mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-09-10 14:59:11 +02:00
537 lines
1.3 MiB
Plaintext
537 lines
1.3 MiB
Plaintext
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<link rel="icon" href="data:image/x-icon;base64,AAABAAEAICAAAAEAIACoEAAAFgAAACgAAAAgAAAAQAAAAAEAIAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAg7hBAIO4QQCDuEEAg7hBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIO4QQCDuEEAg7hBM4O4QTODuEEAg7hBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAg7hBAIO4QQuDuEGxg7hBsYO4QQuDuEEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIO4QQCDuEEAg7hBWoO4QfeDuEH3g7hBWoO4QQCDuEEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAg7hBAIO4QRqDuEHJg7hB/4O4Qf+DuEHJg7hBGoO4QQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIO4QQCDuEEAg7hBeoO4Qf6DuEH/g7hB/4O4Qf6DuEF6g7hBAIO4QQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACDuEEAg7hBAIO4QS6DuEHfg7hB/4O4Qf+DuEH/g7hB/4O4Qd+DuEEug7hBAIO4QQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIO4QQCDuEEFg7hBmoO4Qf+DuEH/g7hB/4O4Qf+DuEH/g7hB/4O4QZqDuEEFg7hBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACDuEEAg7hBAIO4QUiDuEHwg7hB/4O4Qf+DuEH/g7hB/4O4Qf+DuEH/g7hB8IO4QUiDuEEAg7hBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIO4QQCDuEEQg7hBuIO4Qf+DuEH/g7hB/4O4Qf+DuEH/g7hB/4O4Qf+DuEH/g7hBuIO4QRCDuEEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACDuEEAg7hBAIO4QWaDuEH6g7hB/4O4Qf+DuEH/g7hB/4O4Qf+DuEH/g7hB/4O4Qf+DuEH6g7hBZoO4QQCDuEEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIO4QQCDuEEgg7hB0oO4Qf+DuEH/g7hB/4O4Qf+DuUH/g7lB/4O4Qf+DuEH/g7hB/4O4Qf+DuEHSg7hBIIO4QQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACDuEEAg7hBAYO4QYaDuEH/g7hB/4O4Qf+DuEH/g7lB/3ykP/98pD//g7lB/4O4Qf+DuEH/g7hB/4O4Qf+DuEGGg7hBAYO4QQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAg7hBAIO4QQCDuEE3g7hB5oO4Qf+DuEH/g7hB/4O4Qf+CtEH/amw5/2psOf+CtEH/g7hB/4O4Qf+DuEH/g7hB/4O4QeaDuEE3g7hBAIO4QQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACDuEEAg7hBCYO4QaaDuEH/g7hB/4O4Qf+DuEH/g7lB/3eTPf9fTDX/X0w1/3eTPf+DuUH/g7hB/4O4Qf+DuEH/g7hB/4O4QaaDuEEJg7hBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAg7hBAIO4QQCDuEFSg7hB9IO4Qf+DuEH/g7hB/4O5Qf+ArkD/ZmE4/15INf9eSDX/ZmE4/4CuQP+DuUH/g7hB/4O4Qf+DuEH/g7hB9IO4QVKDuEEAg7hBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACDuEEAg7hBFYO4QcKDuEH/g7hB/4O4Qf+DuEH/g7lB/3KFPP9eSTX/Xkk1/15JNf9eSTX/coU8/4O5Qf+DuEH/g7hB/4O4Qf+DuEH/g7hBwoO4QRWDuEEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAg7hBAIO4QQCDuEFxg7hB/IO4Qf+DuEH/g7hB/4O5Qf99pj//Y1c3/15INf9eSTX/Xkk1/15INf9jVzf/faY//4O5Qf+DuEH/g7hB/4O4Qf+DuEH8g7hBcYO4QQCDuEEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACDuEEAg7hBKIO4QdqDuEH/g7hB/4O4Qf+DuEH/g7dB/212Ov9eSDX/Xkk1/15JNf9eSTX/Xkk1/15INf9tdjr/g7dB/4O4Qf+DuEH/g7hB/4O4Qf+DuEHag7hBKIO4QQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAg7hBAIO4QQODuEGSg7hB/4O4Qf+DuEH/g7hB/4O5Qf95mz7/YFA2/15INf9eSTX/Xkk1/15JNf9eSTX/Xkg1/2BQNv95mz7/g7lB/4O4Qf+DuEH/g7hB/4O4Qf+DuEGSg7hBA4O4QQAAAAAAAAAAAAAAAAAAAAAAAAAAAIO4QQCDuEEAg7hBQIO4QeyDuEH/g7hB/4O4Qf+DuEH/gbJA/2lpOf9dRzX/Xkk1/15JNf9eSTX/Xkk1/15JNf9eSTX/XUc1/2lpOf+BskD/g7hB/4O4Qf+DuEH/g7hB/4O4QeyDuEFAg7hBAIO4QQAAAAAAAAAAAAAAAAAAAAAAg7hBAIO4QQ2DuEGxg7hB/4O4Qf+DuEH/g7hB/4O5Qf91jj3/X0s1/15JNf9eSTX/Xkk1/15JNf9eSTX/Xkk1/15JNf9eSTX/X0s1/3WOPf+DuUH/g7hB/4O4Qf+DuEH/g7hB/4O4QbGDuEENg7hBAAAAAAAAAAAAAAAAAIO4QQCDuEEAg7hBXYO4QfiDuEH/g7hB/4O4Qf+DuUH/f6xA/2VdN/9eSDX/Xkk1/15JNf9eSTX/Xko15V5KNeVeSTX/Xkk1/15JNf9eSDX/ZV03/3+sQP+DuUH/g7hB/4O4Qf+DuEH/g7hB+IO4QV2DuEEAg7hBAAAAAAAAAAAAg7hBAIO4QRuDuEHMg7hB/4O4Qf+DuEH/g7hB/4O4Qf9wfzv/Xkk1/15JNf9eSTX/Xkk1/15JNfxfTDVuX0w1bl5JNfxeSTX/Xkk1/15JNf9eSTX/cH87/4O4Qf+DuEH/g7hB/4O4Qf+DuEH/g7hBzIO4QRuDuEEAAAAAAIO4QQCDuEEAg7hBfYO4Qf6DuEH/g7hB/4O4Qf+DuUH/fKI//2JUNv9eSDX/Xkk1/15JNf9eSTX/X0o1wWFQNhNhUDYTX0o1wV5JNf9eSTX/Xkk1/15INf9iVDb/fKI//4O5Qf+DuEH/g7hB/4O4Qf+DuEH+g7hBfYO4QQCDuEEAg7hBAIO4QS+DuEHhg7hB/4O4Qf+DuEH/g7hB/4K1Qf9scTn/Xkg1/15JNf9eSTX/Xkk1/15JNfNfTDVQXkg1AF5INQBfTDVQXkk1815JNf9eSTX/Xkk1/15INf9scTn/grVB/4O4Qf+DuEH/g7hB/4O4Qf+DuEHhg7hBL4O4QQCDuEEHg7hBnIO4Qf+DuEH/g7hB/4O4Qf+EukH/eJY9/2BONv9eSTX/Xkk1/15JNf9eSTX/X0s1pGJUNwhhUTYAYVE2AGJUNwhfSzWkXkk1/15JNf9eSTX/Xkk1/2BONv94lj3/hLpB/4O4Qf+DuEH/g7hB/4O4Qf+DuEGcg7hBB4O4QVeDuEHwg7hB/4O4Qf+DuEH/g7lB/4CvQP9nZDj/Xkg1/15JNf9eSTX/Xkk1/15KNeVgTTY1X0s1AGpmOQBqZjkAX0s1AGBNNjVeSjXlXkk1/15JNf9eSTX/Xkg1/2dkOP+Ar0D/g7lB/4O4Qf+DuEH/g7hB/4O4QfCDuEFXg7hBmoO4QciDuEHGg7hBxoO4QcaEukHGdpE9xl9LNcZeSTXGXkk1xl5JNcZeSTXJX0s1dWhhOQJiUzcAAAAAAAAAAABiUzcAaGE5Al9LNXVeSTXJXkk1xl5JNcZeSTXGX0s1xnaRPcaEukHGg7hBxoO4QcaDuEHGg7hByIO4QZqDuEEOg7hBDYO4QQ2DuEENg7hBDYO5QQ1scjoNXEQ0DV5JNQ1eSTUNXkk1DV5JNQ1gTTYFXkg1AAAAAAAAAAAAAAAAAAAAAABeSDUAYE02BV5JNQ1eSTUNXkk1DV5JNQ1cRDQNbHI5DYO5QQ2DuEENg7hBDYO4QQ2DuEENg7hBDgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/////////////n////w////8P///+B////gf///wD///4Af//+AH///AA///wAP//4AB//8AAP//AAD//gAAf/4AAH/8AAA//AAAP/gAAB/wAAAP8AAAD+AAAAfgAAAHwAAAA8AAAAOAAYABAAGAAAADwAAAA8AAAAfgAP////8=" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>Stable UI for KoboldCpp</title>
|
|
<script type="module" crossorigin>
|
|
var ax=Object.defineProperty;var ox=(e,t,n)=>t in e?ax(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var sx=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var xg=(e,t,n)=>(ox(e,typeof t!="symbol"?t+"":t,n),n);var WY=sx((Zn,Jn)=>{(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const u of i)if(u.type==="childList")for(const p of u.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&r(p)}).observe(document,{childList:!0,subtree:!0});function n(i){const u={};return i.integrity&&(u.integrity=i.integrity),i.referrerpolicy&&(u.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?u.credentials="include":i.crossorigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function r(i){if(i.ep)return;i.ep=!0;const u=n(i);fetch(i.href,u)}})();/**
|
|
* @vue/shared v3.5.21
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
* @license MIT
|
|
**/function Cp(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const It={},Do=[],ot=()=>{},Nb=()=>!1,uf=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),xp=e=>e.startsWith("onUpdate:"),Xt=Object.assign,Tp=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},lx=Object.prototype.hasOwnProperty,lt=(e,t)=>lx.call(e,t),We=Array.isArray,Fo=e=>Xl(e)==="[object Map]",zb=e=>Xl(e)==="[object Set]",Tg=e=>Xl(e)==="[object Date]",He=e=>typeof e=="function",Xe=e=>typeof e=="string",Er=e=>typeof e=="symbol",it=e=>e!==null&&typeof e=="object",Sc=e=>(it(e)||He(e))&&He(e.then)&&He(e.catch),jb=Object.prototype.toString,Xl=e=>jb.call(e),Ju=e=>Xl(e).slice(8,-1),Vb=e=>Xl(e)==="[object Object]",kp=e=>Xe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,zs=Cp(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),cf=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},ux=/-\w/g,er=cf(e=>e.replace(ux,t=>t.slice(1).toUpperCase())),cx=/\B([A-Z])/g,da=cf(e=>e.replace(cx,"-$1").toLowerCase()),ql=cf(e=>e.charAt(0).toUpperCase()+e.slice(1)),Qu=cf(e=>e?`on${ql(e)}`:""),Ji=(e,t)=>!Object.is(e,t),ec=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Ub=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Qd=e=>{const t=parseFloat(e);return isNaN(t)?e:t},fx=e=>{const t=Xe(e)?Number(e):NaN;return isNaN(t)?e:t};let kg;const Zl=()=>kg||(kg=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function je(e){if(We(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],i=Xe(r)?mx(r):je(r);if(i)for(const u in i)t[u]=i[u]}return t}else if(Xe(e)||it(e))return e}const dx=/;(?![^(]*\))/g,hx=/:([^]+)/,px=/\/\*[^]*?\*\//g;function mx(e){const t={};return e.replace(px,"").split(dx).forEach(n=>{if(n){const r=n.split(hx);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function ce(e){let t="";if(Xe(e))t=e;else if(We(e))for(let n=0;n<e.length;n++){const r=ce(e[n]);r&&(t+=r+" ")}else if(it(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const gx="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",vx=Cp(gx);function Hb(e){return!!e||e===""}function yx(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Cc(e[r],t[r]);return n}function Cc(e,t){if(e===t)return!0;let n=Tg(e),r=Tg(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=Er(e),r=Er(t),n||r)return e===t;if(n=We(e),r=We(t),n||r)return n&&r?yx(e,t):!1;if(n=it(e),r=it(t),n||r){if(!n||!r)return!1;const i=Object.keys(e).length,u=Object.keys(t).length;if(i!==u)return!1;for(const p in e){const o=e.hasOwnProperty(p),a=t.hasOwnProperty(p);if(o&&!a||!o&&a||!Cc(e[p],t[p]))return!1}}return String(e)===String(t)}const Wb=e=>!!(e&&e.__v_isRef===!0),Ee=e=>Xe(e)?e:e==null?"":We(e)||it(e)&&(e.toString===jb||!He(e.toString))?Wb(e)?Ee(e.value):JSON.stringify(e,Gb,2):String(e),Gb=(e,t)=>Wb(t)?Gb(e,t.value):Fo(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i],u)=>(n[Gf(r,u)+" =>"]=i,n),{})}:zb(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Gf(n))}:Er(t)?Gf(t):it(t)&&!We(t)&&!Vb(t)?String(t):t,Gf=(e,t="")=>{var n;return Er(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};function bx(e){return e==null?"initial":typeof e=="string"?e===""?" ":e:String(e)}/**
|
|
* @vue/reactivity v3.5.21
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
* @license MIT
|
|
**/let bn;class Yb{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=bn,!t&&bn&&(this.index=(bn.scopes||(bn.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=bn;try{return bn=this,t()}finally{bn=n}}}on(){++this._on===1&&(this.prevScope=bn,bn=this)}off(){this._on>0&&--this._on===0&&(bn=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].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 Ep(e){return new Yb(e)}function Op(){return bn}function Ap(e,t=!1){bn&&bn.cleanups.push(e)}let Dt;const Yf=new WeakSet;class Kb{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,bn&&bn.active&&bn.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Yf.has(this)&&(Yf.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||qb(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Eg(this),Zb(this);const t=Dt,n=Tr;Dt=this,Tr=!0;try{return this.fn()}finally{Jb(this),Dt=t,Tr=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Mp(t);this.deps=this.depsTail=void 0,Eg(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Yf.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){eh(this)&&this.run()}get dirty(){return eh(this)}}let Xb=0,js,Vs;function qb(e,t=!1){if(e.flags|=8,t){e.next=Vs,Vs=e;return}e.next=js,js=e}function Pp(){Xb++}function Ip(){if(--Xb>0)return;if(Vs){let t=Vs;for(Vs=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;js;){let t=js;for(js=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function Zb(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Jb(e){let t,n=e.depsTail,r=n;for(;r;){const i=r.prevDep;r.version===-1?(r===n&&(n=i),Mp(r),_x(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}e.deps=t,e.depsTail=n}function eh(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Qb(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Qb(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||!eh(e))))return;e.flags|=2;const t=e.dep,n=Dt,r=Tr;Dt=e,Tr=!0;try{Zb(e);const i=e.fn(e._value);(t.version===0||Ji(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{Dt=n,Tr=r,Jb(e),e.flags&=-3}}function Mp(e,t=!1){const{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let u=n.computed.deps;u;u=u.nextDep)Mp(u,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function _x(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Tr=!0;const e_=[];function _i(){e_.push(Tr),Tr=!1}function wi(){const e=e_.pop();Tr=e===void 0?!0:e}function Eg(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Dt;Dt=void 0;try{t()}finally{Dt=n}}}let cl=0;class wx{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Lp{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!Dt||!Tr||Dt===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Dt)n=this.activeLink=new wx(Dt,this),Dt.deps?(n.prevDep=Dt.depsTail,Dt.depsTail.nextDep=n,Dt.depsTail=n):Dt.deps=Dt.depsTail=n,t_(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=Dt.depsTail,n.nextDep=void 0,Dt.depsTail.nextDep=n,Dt.depsTail=n,Dt.deps===n&&(Dt.deps=r)}return n}trigger(t){this.version++,cl++,this.notify(t)}notify(t){Pp();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Ip()}}}function t_(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)t_(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const xc=new WeakMap,za=Symbol(""),th=Symbol(""),fl=Symbol("");function _n(e,t,n){if(Tr&&Dt){let r=xc.get(e);r||xc.set(e,r=new Map);let i=r.get(n);i||(r.set(n,i=new Lp),i.map=r,i.key=n),i.track()}}function pi(e,t,n,r,i,u){const p=xc.get(e);if(!p){cl++;return}const o=a=>{a&&a.trigger()};if(Pp(),t==="clear")p.forEach(o);else{const a=We(e),l=a&&kp(n);if(a&&n==="length"){const h=Number(r);p.forEach((c,f)=>{(f==="length"||f===fl||!Er(f)&&f>=h)&&o(c)})}else switch((n!==void 0||p.has(void 0))&&o(p.get(n)),l&&o(p.get(fl)),t){case"add":a?l&&o(p.get("length")):(o(p.get(za)),Fo(e)&&o(p.get(th)));break;case"delete":a||(o(p.get(za)),Fo(e)&&o(p.get(th)));break;case"set":Fo(e)&&o(p.get(za));break}}Ip()}function Sx(e,t){const n=xc.get(e);return n&&n.get(t)}function yo(e){const t=at(e);return t===e?t:(_n(t,"iterate",fl),fr(e)?t:t.map(dn))}function ff(e){return _n(e=at(e),"iterate",fl),e}const Cx={__proto__:null,[Symbol.iterator](){return Kf(this,Symbol.iterator,dn)},concat(...e){return yo(this).concat(...e.map(t=>We(t)?yo(t):t))},entries(){return Kf(this,"entries",e=>(e[1]=dn(e[1]),e))},every(e,t){return ri(this,"every",e,t,void 0,arguments)},filter(e,t){return ri(this,"filter",e,t,n=>n.map(dn),arguments)},find(e,t){return ri(this,"find",e,t,dn,arguments)},findIndex(e,t){return ri(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return ri(this,"findLast",e,t,dn,arguments)},findLastIndex(e,t){return ri(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return ri(this,"forEach",e,t,void 0,arguments)},includes(...e){return Xf(this,"includes",e)},indexOf(...e){return Xf(this,"indexOf",e)},join(e){return yo(this).join(e)},lastIndexOf(...e){return Xf(this,"lastIndexOf",e)},map(e,t){return ri(this,"map",e,t,void 0,arguments)},pop(){return Cs(this,"pop")},push(...e){return Cs(this,"push",e)},reduce(e,...t){return Og(this,"reduce",e,t)},reduceRight(e,...t){return Og(this,"reduceRight",e,t)},shift(){return Cs(this,"shift")},some(e,t){return ri(this,"some",e,t,void 0,arguments)},splice(...e){return Cs(this,"splice",e)},toReversed(){return yo(this).toReversed()},toSorted(e){return yo(this).toSorted(e)},toSpliced(...e){return yo(this).toSpliced(...e)},unshift(...e){return Cs(this,"unshift",e)},values(){return Kf(this,"values",dn)}};function Kf(e,t,n){const r=ff(e),i=r[t]();return r!==e&&!fr(e)&&(i._next=i.next,i.next=()=>{const u=i._next();return u.value&&(u.value=n(u.value)),u}),i}const xx=Array.prototype;function ri(e,t,n,r,i,u){const p=ff(e),o=p!==e&&!fr(e),a=p[t];if(a!==xx[t]){const c=a.apply(e,u);return o?dn(c):c}let l=n;p!==e&&(o?l=function(c,f){return n.call(this,dn(c),f,e)}:n.length>2&&(l=function(c,f){return n.call(this,c,f,e)}));const h=a.call(p,l,r);return o&&i?i(h):h}function Og(e,t,n,r){const i=ff(e);let u=n;return i!==e&&(fr(e)?n.length>3&&(u=function(p,o,a){return n.call(this,p,o,a,e)}):u=function(p,o,a){return n.call(this,p,dn(o),a,e)}),i[t](u,...r)}function Xf(e,t,n){const r=at(e);_n(r,"iterate",fl);const i=r[t](...n);return(i===-1||i===!1)&&Bp(n[0])?(n[0]=at(n[0]),r[t](...n)):i}function Cs(e,t,n=[]){_i(),Pp();const r=at(e)[t].apply(e,n);return Ip(),wi(),r}const Tx=Cp("__proto__,__v_isRef,__isVue"),n_=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Er));function kx(e){Er(e)||(e=String(e));const t=at(this);return _n(t,"has",e),t.hasOwnProperty(e)}class r_{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const i=this._isReadonly,u=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return u;if(n==="__v_raw")return r===(i?u?Fx:s_:u?o_:a_).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const p=We(t);if(!i){let a;if(p&&(a=Cx[n]))return a;if(n==="hasOwnProperty")return kx}const o=Reflect.get(t,n,Pt(t)?t:r);return(Er(n)?n_.has(n):Tx(n))||(i||_n(t,"get",n),u)?o:Pt(o)?p&&kp(n)?o:o.value:it(o)?i?os(o):kt(o):o}}class i_ extends r_{constructor(t=!1){super(!1,t)}set(t,n,r,i){let u=t[n];if(!this._isShallow){const a=ia(u);if(!fr(r)&&!ia(r)&&(u=at(u),r=at(r)),!We(t)&&Pt(u)&&!Pt(r))return a||(u.value=r),!0}const p=We(t)&&kp(n)?Number(n)<t.length:lt(t,n),o=Reflect.set(t,n,r,Pt(t)?t:i);return t===at(i)&&(p?Ji(r,u)&&pi(t,"set",n,r):pi(t,"add",n,r)),o}deleteProperty(t,n){const r=lt(t,n);t[n];const i=Reflect.deleteProperty(t,n);return i&&r&&pi(t,"delete",n,void 0),i}has(t,n){const r=Reflect.has(t,n);return(!Er(n)||!n_.has(n))&&_n(t,"has",n),r}ownKeys(t){return _n(t,"iterate",We(t)?"length":za),Reflect.ownKeys(t)}}class Ex extends r_{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Ox=new i_,Ax=new Ex,Px=new i_(!0),nh=e=>e,wu=e=>Reflect.getPrototypeOf(e);function Ix(e,t,n){return function(...r){const i=this.__v_raw,u=at(i),p=Fo(u),o=e==="entries"||e===Symbol.iterator&&p,a=e==="keys"&&p,l=i[e](...r),h=n?nh:t?Tc:dn;return!t&&_n(u,"iterate",a?th:za),{next(){const{value:c,done:f}=l.next();return f?{value:c,done:f}:{value:o?[h(c[0]),h(c[1])]:h(c),done:f}},[Symbol.iterator](){return this}}}}function Su(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Mx(e,t){const n={get(i){const u=this.__v_raw,p=at(u),o=at(i);e||(Ji(i,o)&&_n(p,"get",i),_n(p,"get",o));const{has:a}=wu(p),l=t?nh:e?Tc:dn;if(a.call(p,i))return l(u.get(i));if(a.call(p,o))return l(u.get(o));u!==p&&u.get(i)},get size(){const i=this.__v_raw;return!e&&_n(at(i),"iterate",za),i.size},has(i){const u=this.__v_raw,p=at(u),o=at(i);return e||(Ji(i,o)&&_n(p,"has",i),_n(p,"has",o)),i===o?u.has(i):u.has(i)||u.has(o)},forEach(i,u){const p=this,o=p.__v_raw,a=at(o),l=t?nh:e?Tc:dn;return!e&&_n(a,"iterate",za),o.forEach((h,c)=>i.call(u,l(h),l(c),p))}};return Xt(n,e?{add:Su("add"),set:Su("set"),delete:Su("delete"),clear:Su("clear")}:{add(i){!t&&!fr(i)&&!ia(i)&&(i=at(i));const u=at(this);return wu(u).has.call(u,i)||(u.add(i),pi(u,"add",i,i)),this},set(i,u){!t&&!fr(u)&&!ia(u)&&(u=at(u));const p=at(this),{has:o,get:a}=wu(p);let l=o.call(p,i);l||(i=at(i),l=o.call(p,i));const h=a.call(p,i);return p.set(i,u),l?Ji(u,h)&&pi(p,"set",i,u):pi(p,"add",i,u),this},delete(i){const u=at(this),{has:p,get:o}=wu(u);let a=p.call(u,i);a||(i=at(i),a=p.call(u,i)),o&&o.call(u,i);const l=u.delete(i);return a&&pi(u,"delete",i,void 0),l},clear(){const i=at(this),u=i.size!==0,p=i.clear();return u&&pi(i,"clear",void 0,void 0),p}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=Ix(i,e,t)}),n}function Rp(e,t){const n=Mx(e,t);return(r,i,u)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(lt(n,i)&&i in r?n:r,i,u)}const Lx={get:Rp(!1,!1)},Rx={get:Rp(!1,!0)},Dx={get:Rp(!0,!1)},a_=new WeakMap,o_=new WeakMap,s_=new WeakMap,Fx=new WeakMap;function Bx(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function $x(e){return e.__v_skip||!Object.isExtensible(e)?0:Bx(Ju(e))}function kt(e){return ia(e)?e:Fp(e,!1,Ox,Lx,a_)}function Dp(e){return Fp(e,!1,Px,Rx,o_)}function os(e){return Fp(e,!0,Ax,Dx,s_)}function Fp(e,t,n,r,i){if(!it(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const u=$x(e);if(u===0)return e;const p=i.get(e);if(p)return p;const o=new Proxy(e,u===2?r:n);return i.set(e,o),o}function Qi(e){return ia(e)?Qi(e.__v_raw):!!(e&&e.__v_isReactive)}function ia(e){return!!(e&&e.__v_isReadonly)}function fr(e){return!!(e&&e.__v_isShallow)}function Bp(e){return e?!!e.__v_raw:!1}function at(e){const t=e&&e.__v_raw;return t?at(t):e}function dl(e){return!lt(e,"__v_skip")&&Object.isExtensible(e)&&Ub(e,"__v_skip",!0),e}const dn=e=>it(e)?kt(e):e,Tc=e=>it(e)?os(e):e;function Pt(e){return e?e.__v_isRef===!0:!1}function ae(e){return l_(e,!1)}function mn(e){return l_(e,!0)}function l_(e,t){return Pt(e)?e:new Nx(e,t)}class Nx{constructor(t,n){this.dep=new Lp,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:at(t),this._value=n?t:dn(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||fr(t)||ia(t);t=r?t:at(t),Ji(t,n)&&(this._rawValue=t,this._value=r?t:dn(t),this.dep.trigger())}}function xs(e){e.dep&&e.dep.trigger()}function _(e){return Pt(e)?e.value:e}const zx={get:(e,t,n)=>t==="__v_raw"?e:_(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return Pt(i)&&!Pt(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function u_(e){return Qi(e)?e:new Proxy(e,zx)}function hr(e){const t=We(e)?new Array(e.length):{};for(const n in e)t[n]=c_(e,n);return t}class jx{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Sx(at(this._object),this._key)}}class Vx{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function tr(e,t,n){return Pt(e)?e:He(e)?new Vx(e):it(e)&&arguments.length>1?c_(e,t,n):ae(e)}function c_(e,t,n){const r=e[t];return Pt(r)?r:new jx(e,t,n)}class Ux{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Lp(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=cl-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&Dt!==this)return qb(this,!0),!0}get value(){const t=this.dep.track();return Qb(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function f_(e,t,n=!1){let r,i;return He(e)?r=e:(r=e.get,i=e.set),new Ux(r,i,n)}const Cu={},kc=new WeakMap;let xa;function Hx(e,t=!1,n=xa){if(n){let r=kc.get(n);r||kc.set(n,r=[]),r.push(e)}}function Wx(e,t,n=It){const{immediate:r,deep:i,once:u,scheduler:p,augmentJob:o,call:a}=n,l=w=>i?w:fr(w)||i===!1||i===0?mi(w,1):mi(w);let h,c,f,s,d=!1,g=!1;if(Pt(e)?(c=()=>e.value,d=fr(e)):Qi(e)?(c=()=>l(e),d=!0):We(e)?(g=!0,d=e.some(w=>Qi(w)||fr(w)),c=()=>e.map(w=>{if(Pt(w))return w.value;if(Qi(w))return l(w);if(He(w))return a?a(w,2):w()})):He(e)?t?c=a?()=>a(e,2):e:c=()=>{if(f){_i();try{f()}finally{wi()}}const w=xa;xa=h;try{return a?a(e,3,[s]):e(s)}finally{xa=w}}:c=ot,t&&i){const w=c,S=i===!0?1/0:i;c=()=>mi(w(),S)}const m=Op(),v=()=>{h.stop(),m&&m.active&&Tp(m.effects,h)};if(u&&t){const w=t;t=(...S)=>{w(...S),v()}}let y=g?new Array(e.length).fill(Cu):Cu;const b=w=>{if(!(!(h.flags&1)||!h.dirty&&!w))if(t){const S=h.run();if(i||d||(g?S.some((C,T)=>Ji(C,y[T])):Ji(S,y))){f&&f();const C=xa;xa=h;try{const T=[S,y===Cu?void 0:g&&y[0]===Cu?[]:y,s];y=S,a?a(t,3,T):t(...T)}finally{xa=C}}}else h.run()};return o&&o(b),h=new Kb(c),h.scheduler=p?()=>p(b,!1):b,s=w=>Hx(w,!1,h),f=h.onStop=()=>{const w=kc.get(h);if(w){if(a)a(w,4);else for(const S of w)S();kc.delete(h)}},t?r?b(!0):y=h.run():p?p(b.bind(null,!0),!0):h.run(),v.pause=h.pause.bind(h),v.resume=h.resume.bind(h),v.stop=v,v}function mi(e,t=1/0,n){if(t<=0||!it(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Pt(e))mi(e.value,t,n);else if(We(e))for(let r=0;r<e.length;r++)mi(e[r],t,n);else if(zb(e)||Fo(e))e.forEach(r=>{mi(r,t,n)});else if(Vb(e)){for(const r in e)mi(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&mi(e[r],t,n)}return e}/**
|
|
* @vue/runtime-core v3.5.21
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
* @license MIT
|
|
**/function Jl(e,t,n,r){try{return r?e(...r):e()}catch(i){df(i,t,n)}}function Or(e,t,n,r){if(He(e)){const i=Jl(e,t,n,r);return i&&Sc(i)&&i.catch(u=>{df(u,t,n)}),i}if(We(e)){const i=[];for(let u=0;u<e.length;u++)i.push(Or(e[u],t,n,r));return i}}function df(e,t,n,r=!0){const i=t?t.vnode:null,{errorHandler:u,throwUnhandledErrorInProduction:p}=t&&t.appContext.config||It;if(t){let o=t.parent;const a=t.proxy,l=`https://vuejs.org/error-reference/#runtime-${n}`;for(;o;){const h=o.ec;if(h){for(let c=0;c<h.length;c++)if(h[c](e,a,l)===!1)return}o=o.parent}if(u){_i(),Jl(u,null,10,[e,a,l]),wi();return}}Gx(e,n,i,r,p)}function Gx(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}const An=[];let Nr=-1;const Bo=[];let Ui=null,Eo=0;const d_=Promise.resolve();let Ec=null;function Ge(e){const t=Ec||d_;return e?t.then(this?e.bind(this):e):t}function Yx(e){let t=Nr+1,n=An.length;for(;t<n;){const r=t+n>>>1,i=An[r],u=hl(i);u<e||u===e&&i.flags&2?t=r+1:n=r}return t}function $p(e){if(!(e.flags&1)){const t=hl(e),n=An[An.length-1];!n||!(e.flags&2)&&t>=hl(n)?An.push(e):An.splice(Yx(t),0,e),e.flags|=1,h_()}}function h_(){Ec||(Ec=d_.then(g_))}function p_(e){We(e)?Bo.push(...e):Ui&&e.id===-1?Ui.splice(Eo+1,0,e):e.flags&1||(Bo.push(e),e.flags|=1),h_()}function Ag(e,t,n=Nr+1){for(;n<An.length;n++){const r=An[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;An.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function m_(e){if(Bo.length){const t=[...new Set(Bo)].sort((n,r)=>hl(n)-hl(r));if(Bo.length=0,Ui){Ui.push(...t);return}for(Ui=t,Eo=0;Eo<Ui.length;Eo++){const n=Ui[Eo];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Ui=null,Eo=0}}const hl=e=>e.id==null?e.flags&2?-1:1/0:e.id;function g_(e){const t=ot;try{for(Nr=0;Nr<An.length;Nr++){const n=An[Nr];n&&!(n.flags&8)&&(n.flags&4&&(n.flags&=-2),Jl(n,n.i,n.i?15:14),n.flags&4||(n.flags&=-2))}}finally{for(;Nr<An.length;Nr++){const n=An[Nr];n&&(n.flags&=-2)}Nr=-1,An.length=0,m_(),Ec=null,(An.length||Bo.length)&&g_()}}let pn=null,v_=null;function Oc(e){const t=pn;return pn=e,v_=e&&e.type.__scopeId||null,t}function ue(e,t=pn,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&Mc(-1);const u=Oc(t);let p;try{p=e(...i)}finally{Oc(u),r._d&&Mc(1)}return p};return r._n=!0,r._c=!0,r._d=!0,r}function Tt(e,t){if(pn===null)return e;const n=vf(pn),r=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[u,p,o,a=It]=t[i];u&&(He(u)&&(u={mounted:u,updated:u}),u.deep&&mi(p),r.push({dir:u,instance:n,value:p,oldValue:void 0,arg:o,modifiers:a}))}return e}function ba(e,t,n,r){const i=e.dirs,u=t&&t.dirs;for(let p=0;p<i.length;p++){const o=i[p];u&&(o.oldValue=u[p].value);let a=o.dir[r];a&&(_i(),Or(a,n,8,[e.el,o,e,t]),wi())}}const y_=Symbol("_vte"),b_=e=>e.__isTeleport,Us=e=>e&&(e.disabled||e.disabled===""),Pg=e=>e&&(e.defer||e.defer===""),Ig=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Mg=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,rh=(e,t)=>{const n=e&&e.to;return Xe(n)?t?t(n):null:n},__={name:"Teleport",__isTeleport:!0,process(e,t,n,r,i,u,p,o,a,l){const{mc:h,pc:c,pbc:f,o:{insert:s,querySelector:d,createText:g,createComment:m}}=l,v=Us(t.props);let{shapeFlag:y,children:b,dynamicChildren:w}=t;if(e==null){const S=t.el=g(""),C=t.anchor=g("");s(S,n,r),s(C,n,r);const T=(A,P)=>{y&16&&(i&&i.isCE&&(i.ce._teleportTarget=A),h(b,A,P,i,u,p,o,a))},k=()=>{const A=t.target=rh(t.props,d),P=w_(A,t,g,s);A&&(p!=="svg"&&Ig(A)?p="svg":p!=="mathml"&&Mg(A)&&(p="mathml"),v||(T(A,P),tc(t,!1)))};v&&(T(n,C),tc(t,!0)),Pg(t.props)?(t.el.__isMounted=!1,On(()=>{k(),delete t.el.__isMounted},u)):k()}else{if(Pg(t.props)&&e.el.__isMounted===!1){On(()=>{__.process(e,t,n,r,i,u,p,o,a,l)},u);return}t.el=e.el,t.targetStart=e.targetStart;const S=t.anchor=e.anchor,C=t.target=e.target,T=t.targetAnchor=e.targetAnchor,k=Us(e.props),A=k?n:C,P=k?S:T;if(p==="svg"||Ig(C)?p="svg":(p==="mathml"||Mg(C))&&(p="mathml"),w?(f(e.dynamicChildren,w,A,i,u,p,o),Gp(e,t,!0)):a||c(e,t,A,P,i,u,p,o,!1),v)k?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):xu(t,n,S,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const z=t.target=rh(t.props,d);z&&xu(t,z,null,l,0)}else k&&xu(t,C,T,l,1);tc(t,v)}},remove(e,t,n,{um:r,o:{remove:i}},u){const{shapeFlag:p,children:o,anchor:a,targetStart:l,targetAnchor:h,target:c,props:f}=e;if(c&&(i(l),i(h)),u&&i(a),p&16){const s=u||!Us(f);for(let d=0;d<o.length;d++){const g=o[d];r(g,t,n,s,!!g.dynamicChildren)}}},move:xu,hydrate:Kx};function xu(e,t,n,{o:{insert:r},m:i},u=2){u===0&&r(e.targetAnchor,t,n);const{el:p,anchor:o,shapeFlag:a,children:l,props:h}=e,c=u===2;if(c&&r(p,t,n),(!c||Us(h))&&a&16)for(let f=0;f<l.length;f++)i(l[f],t,n,2);c&&r(o,t,n)}function Kx(e,t,n,r,i,u,{o:{nextSibling:p,parentNode:o,querySelector:a,insert:l,createText:h}},c){function f(g,m,v,y){m.anchor=c(p(g),m,o(g),n,r,i,u),m.targetStart=v,m.targetAnchor=y}const s=t.target=rh(t.props,a),d=Us(t.props);if(s){const g=s._lpa||s.firstChild;if(t.shapeFlag&16)if(d)f(e,t,g,g&&p(g));else{t.anchor=p(e);let m=g;for(;m;){if(m&&m.nodeType===8){if(m.data==="teleport start anchor")t.targetStart=m;else if(m.data==="teleport anchor"){t.targetAnchor=m,s._lpa=t.targetAnchor&&p(t.targetAnchor);break}}m=p(m)}t.targetAnchor||w_(s,t,h,l),c(g&&p(g),t,s,n,r,i,u)}tc(t,d)}else d&&t.shapeFlag&16&&f(e,t,e,p(e));return t.anchor&&p(t.anchor)}const Np=__;function tc(e,t){const n=e.ctx;if(n&&n.ut){let r,i;for(t?(r=e.el,i=e.anchor):(r=e.targetStart,i=e.targetAnchor);r&&r!==i;)r.nodeType===1&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function w_(e,t,n,r){const i=t.targetStart=n(""),u=t.targetAnchor=n("");return i[y_]=u,e&&(r(i,e),r(u,e)),u}const ci=Symbol("_leaveCb"),Tu=Symbol("_enterCb");function S_(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return rt(()=>{e.isMounted=!0}),tn(()=>{e.isUnmounting=!0}),e}const sr=[Function,Array],C_={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:sr,onEnter:sr,onAfterEnter:sr,onEnterCancelled:sr,onBeforeLeave:sr,onLeave:sr,onAfterLeave:sr,onLeaveCancelled:sr,onBeforeAppear:sr,onAppear:sr,onAfterAppear:sr,onAppearCancelled:sr},x_=e=>{const t=e.subTree;return t.component?x_(t.component):t},Xx={name:"BaseTransition",props:C_,setup(e,{slots:t}){const n=Et(),r=S_();return()=>{const i=t.default&&zp(t.default(),!0);if(!i||!i.length)return;const u=T_(i),p=at(e),{mode:o}=p;if(r.isLeaving)return qf(u);const a=Lg(u);if(!a)return qf(u);let l=pl(a,p,r,n,c=>l=c);a.type!==hn&&Ga(a,l);let h=n.subTree&&Lg(n.subTree);if(h&&h.type!==hn&&!Ea(h,a)&&x_(n).type!==hn){let c=pl(h,p,r,n);if(Ga(h,c),o==="out-in"&&a.type!==hn)return r.isLeaving=!0,c.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete c.afterLeave,h=void 0},qf(u);o==="in-out"&&a.type!==hn?c.delayLeave=(f,s,d)=>{const g=k_(r,h);g[String(h.key)]=h,f[ci]=()=>{s(),f[ci]=void 0,delete l.delayedLeave,h=void 0},l.delayedLeave=()=>{d(),delete l.delayedLeave,h=void 0}}:h=void 0}else h&&(h=void 0);return u}}};function T_(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==hn){t=n;break}}return t}const qx=Xx;function k_(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function pl(e,t,n,r,i){const{appear:u,mode:p,persisted:o=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:h,onEnterCancelled:c,onBeforeLeave:f,onLeave:s,onAfterLeave:d,onLeaveCancelled:g,onBeforeAppear:m,onAppear:v,onAfterAppear:y,onAppearCancelled:b}=t,w=String(e.key),S=k_(n,e),C=(A,P)=>{A&&Or(A,r,9,P)},T=(A,P)=>{const z=P[1];C(A,P),We(A)?A.every(I=>I.length<=1)&&z():A.length<=1&&z()},k={mode:p,persisted:o,beforeEnter(A){let P=a;if(!n.isMounted)if(u)P=m||a;else return;A[ci]&&A[ci](!0);const z=S[w];z&&Ea(e,z)&&z.el[ci]&&z.el[ci](),C(P,[A])},enter(A){let P=l,z=h,I=c;if(!n.isMounted)if(u)P=v||l,z=y||h,I=b||c;else return;let $=!1;const O=A[Tu]=Y=>{$||($=!0,Y?C(I,[A]):C(z,[A]),k.delayedLeave&&k.delayedLeave(),A[Tu]=void 0)};P?T(P,[A,O]):O()},leave(A,P){const z=String(e.key);if(A[Tu]&&A[Tu](!0),n.isUnmounting)return P();C(f,[A]);let I=!1;const $=A[ci]=O=>{I||(I=!0,P(),O?C(g,[A]):C(d,[A]),A[ci]=void 0,S[z]===e&&delete S[z])};S[z]=e,s?T(s,[A,$]):$()},clone(A){const P=pl(A,t,n,r,i);return i&&i(P),P}};return k}function qf(e){if(hf(e))return e=Ci(e),e.children=null,e}function Lg(e){if(!hf(e))return b_(e.type)&&e.children?T_(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&He(n.default))return n.default()}}function Ga(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Ga(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 zp(e,t=!1,n){let r=[],i=0;for(let u=0;u<e.length;u++){let p=e[u];const o=n==null?p.key:String(n)+String(p.key!=null?p.key:u);p.type===$e?(p.patchFlag&128&&i++,r=r.concat(zp(p.children,t,o))):(t||p.type!==hn)&&r.push(o!=null?Ci(p,{key:o}):p)}if(i>1)for(let u=0;u<r.length;u++)r[u].patchFlag=-2;return r}function be(e,t){return He(e)?(()=>Xt({name:e.name},t,{setup:e}))():e}function E_(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const Ac=new WeakMap;function Hs(e,t,n,r,i=!1){if(We(e)){e.forEach((d,g)=>Hs(d,t&&(We(t)?t[g]:t),n,r,i));return}if($o(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Hs(e,t,n,r.component.subTree);return}const u=r.shapeFlag&4?vf(r.component):r.el,p=i?null:u,{i:o,r:a}=e,l=t&&t.r,h=o.refs===It?o.refs={}:o.refs,c=o.setupState,f=at(c),s=c===It?Nb:d=>lt(f,d);if(l!=null&&l!==a){if(Rg(t),Xe(l))h[l]=null,s(l)&&(c[l]=null);else if(Pt(l)){l.value=null;const d=t;d.k&&(h[d.k]=null)}}if(He(a))Jl(a,o,12,[p,h]);else{const d=Xe(a),g=Pt(a);if(d||g){const m=()=>{if(e.f){const v=d?s(a)?c[a]:h[a]:a.value;if(i)We(v)&&Tp(v,u);else if(We(v))v.includes(u)||v.push(u);else if(d)h[a]=[u],s(a)&&(c[a]=h[a]);else{const y=[u];a.value=y,e.k&&(h[e.k]=y)}}else d?(h[a]=p,s(a)&&(c[a]=p)):g&&(a.value=p,e.k&&(h[e.k]=p))};if(p){const v=()=>{m(),Ac.delete(e)};v.id=-1,Ac.set(e,v),On(v,n)}else Rg(e),m()}}}function Rg(e){const t=Ac.get(e);t&&(t.flags|=8,Ac.delete(e))}Zl().requestIdleCallback;Zl().cancelIdleCallback;const $o=e=>!!e.type.__asyncLoader,hf=e=>e.type.__isKeepAlive;function Zx(e,t){A_(e,"a",t)}function O_(e,t){A_(e,"da",t)}function A_(e,t,n=wn){const r=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(pf(t,r,n),n){let i=n.parent;for(;i&&i.parent;)hf(i.parent.vnode)&&Jx(r,t,n,i),i=i.parent}}function Jx(e,t,n,r){const i=pf(t,e,r,!0);ha(()=>{Tp(r[t],i)},n)}function pf(e,t,n=wn,r=!1){if(n){const i=n[e]||(n[e]=[]),u=t.__weh||(t.__weh=(...p)=>{_i();const o=Ql(n),a=Or(t,n,e,p);return o(),wi(),a});return r?i.unshift(u):i.push(u),u}}const Oi=e=>(t,n=wn)=>{(!gl||e==="sp")&&pf(e,(...r)=>t(...r),n)},P_=Oi("bm"),rt=Oi("m"),I_=Oi("bu"),ro=Oi("u"),tn=Oi("bum"),ha=Oi("um"),Qx=Oi("sp"),eT=Oi("rtg"),tT=Oi("rtc");function nT(e,t=wn){pf("ec",e,t)}const jp="components",rT="directives";function bt(e,t){return Vp(jp,e,!0,t)||e}const M_=Symbol.for("v-ndc");function xt(e){return Xe(e)?Vp(jp,e,!1)||e:e||M_}function L_(e){return Vp(rT,e)}function Vp(e,t,n=!0,r=!1){const i=pn||wn;if(i){const u=i.type;if(e===jp){const o=GT(u,!1);if(o&&(o===t||o===er(t)||o===ql(er(t))))return u}const p=Dg(i[e]||u[e],t)||Dg(i.appContext[e],t);return!p&&r?u:p}}function Dg(e,t){return e&&(e[t]||e[er(t)]||e[ql(er(t))])}function zt(e,t,n,r){let i;const u=n&&n[r],p=We(e);if(p||Xe(e)){const o=p&&Qi(e);let a=!1,l=!1;o&&(a=!fr(e),l=ia(e),e=ff(e)),i=new Array(e.length);for(let h=0,c=e.length;h<c;h++)i[h]=t(a?l?Tc(dn(e[h])):dn(e[h]):e[h],h,void 0,u&&u[h])}else if(typeof e=="number"){i=new Array(e);for(let o=0;o<e;o++)i[o]=t(o+1,o,void 0,u&&u[o])}else if(it(e))if(e[Symbol.iterator])i=Array.from(e,(o,a)=>t(o,a,void 0,u&&u[a]));else{const o=Object.keys(e);i=new Array(o.length);for(let a=0,l=o.length;a<l;a++){const h=o[a];i[a]=t(e[h],h,a,u&&u[a])}}else i=[];return n&&(n[r]=i),i}function Pc(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(We(r))for(let i=0;i<r.length;i++)e[r[i].name]=r[i].fn;else r&&(e[r.name]=r.key?(...i)=>{const u=r.fn(...i);return u&&(u.key=r.key),u}:r.fn)}return e}function ke(e,t,n={},r,i){if(pn.ce||pn.parent&&$o(pn.parent)&&pn.parent.ce)return t!=="default"&&(n.name=t),N(),ve($e,null,[se("slot",n,r&&r())],64);let u=e[t];u&&u._c&&(u._d=!1),N();const p=u&&R_(u(n)),o=n.key||p&&p.key,a=ve($e,{key:(o&&!Er(o)?o:`_${t}`)+(!p&&r?"_fb":"")},p||(r?r():[]),p&&e._===1?64:-2);return!i&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),u&&u._c&&(u._d=!0),a}function R_(e){return e.some(t=>Si(t)?!(t.type===hn||t.type===$e&&!R_(t.children)):!0)?e:null}function iT(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:Qu(r)]=e[r];return n}const ih=e=>e?Q_(e)?vf(e):ih(e.parent):null,Ws=Xt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ih(e.parent),$root:e=>ih(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Up(e),$forceUpdate:e=>e.f||(e.f=()=>{$p(e.update)}),$nextTick:e=>e.n||(e.n=Ge.bind(e.proxy)),$watch:e=>OT.bind(e)}),Zf=(e,t)=>e!==It&&!e.__isScriptSetup&<(e,t),aT={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:i,props:u,accessCache:p,type:o,appContext:a}=e;let l;if(t[0]!=="$"){const s=p[t];if(s!==void 0)switch(s){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return u[t]}else{if(Zf(r,t))return p[t]=1,r[t];if(i!==It&<(i,t))return p[t]=2,i[t];if((l=e.propsOptions[0])&<(l,t))return p[t]=3,u[t];if(n!==It&<(n,t))return p[t]=4,n[t];ah&&(p[t]=0)}}const h=Ws[t];let c,f;if(h)return t==="$attrs"&&_n(e.attrs,"get",""),h(e);if((c=o.__cssModules)&&(c=c[t]))return c;if(n!==It&<(n,t))return p[t]=4,n[t];if(f=a.config.globalProperties,lt(f,t))return f[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:u}=e;return Zf(i,t)?(i[t]=n,!0):r!==It&<(r,t)?(r[t]=n,!0):lt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(u[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:u,type:p}},o){let a,l;return!!(n[o]||e!==It&&o[0]!=="$"&<(e,o)||Zf(t,o)||(a=u[0])&<(a,o)||lt(r,o)||lt(Ws,o)||lt(i.config.globalProperties,o)||(l=p.__cssModules)&&l[o])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:lt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function ss(){return F_().slots}function D_(){return F_().attrs}function F_(e){const t=Et();return t.setupContext||(t.setupContext=t1(t))}function Fg(e){return We(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let ah=!0;function oT(e){const t=Up(e),n=e.proxy,r=e.ctx;ah=!1,t.beforeCreate&&Bg(t.beforeCreate,e,"bc");const{data:i,computed:u,methods:p,watch:o,provide:a,inject:l,created:h,beforeMount:c,mounted:f,beforeUpdate:s,updated:d,activated:g,deactivated:m,beforeDestroy:v,beforeUnmount:y,destroyed:b,unmounted:w,render:S,renderTracked:C,renderTriggered:T,errorCaptured:k,serverPrefetch:A,expose:P,inheritAttrs:z,components:I,directives:$,filters:O}=t;if(l&&sT(l,r,null),p)for(const q in p){const J=p[q];He(J)&&(r[q]=J.bind(n))}if(i){const q=i.call(n,n);it(q)&&(e.data=kt(q))}if(ah=!0,u)for(const q in u){const J=u[q],E=He(J)?J.bind(n,n):He(J.get)?J.get.bind(n,n):ot,V=!He(J)&&He(J.set)?J.set.bind(n):ot,M=ee({get:E,set:V});Object.defineProperty(r,q,{enumerable:!0,configurable:!0,get:()=>M.value,set:R=>M.value=R})}if(o)for(const q in o)B_(o[q],r,n,q);if(a){const q=He(a)?a.call(n):a;Reflect.ownKeys(q).forEach(J=>{vt(J,q[J])})}h&&Bg(h,e,"c");function re(q,J){We(J)?J.forEach(E=>q(E.bind(n))):J&&q(J.bind(n))}if(re(P_,c),re(rt,f),re(I_,s),re(ro,d),re(Zx,g),re(O_,m),re(nT,k),re(tT,C),re(eT,T),re(tn,y),re(ha,w),re(Qx,A),We(P))if(P.length){const q=e.exposed||(e.exposed={});P.forEach(J=>{Object.defineProperty(q,J,{get:()=>n[J],set:E=>n[J]=E,enumerable:!0})})}else e.exposed||(e.exposed={});S&&e.render===ot&&(e.render=S),z!=null&&(e.inheritAttrs=z),I&&(e.components=I),$&&(e.directives=$),A&&E_(e)}function sT(e,t,n=ot){We(e)&&(e=oh(e));for(const r in e){const i=e[r];let u;it(i)?"default"in i?u=qe(i.from||r,i.default,!0):u=qe(i.from||r):u=qe(i),Pt(u)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>u.value,set:p=>u.value=p}):t[r]=u}}function Bg(e,t,n){Or(We(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function B_(e,t,n,r){let i=r.includes(".")?K_(n,r):()=>n[r];if(Xe(e)){const u=t[e];He(u)&&xe(i,u)}else if(He(e))xe(i,e.bind(n));else if(it(e))if(We(e))e.forEach(u=>B_(u,t,n,r));else{const u=He(e.handler)?e.handler.bind(n):t[e.handler];He(u)&&xe(i,u,e)}}function Up(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:u,config:{optionMergeStrategies:p}}=e.appContext,o=u.get(t);let a;return o?a=o:!i.length&&!n&&!r?a=t:(a={},i.length&&i.forEach(l=>Ic(a,l,p,!0)),Ic(a,t,p)),it(t)&&u.set(t,a),a}function Ic(e,t,n,r=!1){const{mixins:i,extends:u}=t;u&&Ic(e,u,n,!0),i&&i.forEach(p=>Ic(e,p,n,!0));for(const p in t)if(!(r&&p==="expose")){const o=lT[p]||n&&n[p];e[p]=o?o(e[p],t[p]):t[p]}return e}const lT={data:$g,props:Ng,emits:Ng,methods:Ls,computed:Ls,beforeCreate:En,created:En,beforeMount:En,mounted:En,beforeUpdate:En,updated:En,beforeDestroy:En,beforeUnmount:En,destroyed:En,unmounted:En,activated:En,deactivated:En,errorCaptured:En,serverPrefetch:En,components:Ls,directives:Ls,watch:cT,provide:$g,inject:uT};function $g(e,t){return t?e?function(){return Xt(He(e)?e.call(this,this):e,He(t)?t.call(this,this):t)}:t:e}function uT(e,t){return Ls(oh(e),oh(t))}function oh(e){if(We(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function En(e,t){return e?[...new Set([].concat(e,t))]:t}function Ls(e,t){return e?Xt(Object.create(null),e,t):t}function Ng(e,t){return e?We(e)&&We(t)?[...new Set([...e,...t])]:Xt(Object.create(null),Fg(e),Fg(t!=null?t:{})):t}function cT(e,t){if(!e)return t;if(!t)return e;const n=Xt(Object.create(null),e);for(const r in t)n[r]=En(e[r],t[r]);return n}function $_(){return{app:null,config:{isNativeTag:Nb,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let fT=0;function dT(e,t){return function(r,i=null){He(r)||(r=Xt({},r)),i!=null&&!it(i)&&(i=null);const u=$_(),p=new WeakSet,o=[];let a=!1;const l=u.app={_uid:fT++,_component:r,_props:i,_container:null,_context:u,_instance:null,version:KT,get config(){return u.config},set config(h){},use(h,...c){return p.has(h)||(h&&He(h.install)?(p.add(h),h.install(l,...c)):He(h)&&(p.add(h),h(l,...c))),l},mixin(h){return u.mixins.includes(h)||u.mixins.push(h),l},component(h,c){return c?(u.components[h]=c,l):u.components[h]},directive(h,c){return c?(u.directives[h]=c,l):u.directives[h]},mount(h,c,f){if(!a){const s=l._ceVNode||se(r,i);return s.appContext=u,f===!0?f="svg":f===!1&&(f=void 0),c&&t?t(s,h):e(s,h,f),a=!0,l._container=h,h.__vue_app__=l,vf(s.component)}},onUnmount(h){o.push(h)},unmount(){a&&(Or(o,l._instance,16),e(null,l._container),delete l._container.__vue_app__)},provide(h,c){return u.provides[h]=c,l},runWithContext(h){const c=ja;ja=l;try{return h()}finally{ja=c}}};return l}}let ja=null;function vt(e,t){if(wn){let n=wn.provides;const r=wn.parent&&wn.parent.provides;r===n&&(n=wn.provides=Object.create(r)),n[e]=t}}function qe(e,t,n=!1){const r=Et();if(r||ja){let i=ja?ja._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&He(t)?t.call(r&&r.proxy):t}}function hT(){return!!(Et()||ja)}const N_={},z_=()=>Object.create(N_),j_=e=>Object.getPrototypeOf(e)===N_;function pT(e,t,n,r=!1){const i={},u=z_();e.propsDefaults=Object.create(null),V_(e,t,i,u);for(const p in e.propsOptions[0])p in i||(i[p]=void 0);n?e.props=r?i:Dp(i):e.type.props?e.props=i:e.props=u,e.attrs=u}function mT(e,t,n,r){const{props:i,attrs:u,vnode:{patchFlag:p}}=e,o=at(i),[a]=e.propsOptions;let l=!1;if((r||p>0)&&!(p&16)){if(p&8){const h=e.vnode.dynamicProps;for(let c=0;c<h.length;c++){let f=h[c];if(gf(e.emitsOptions,f))continue;const s=t[f];if(a)if(lt(u,f))s!==u[f]&&(u[f]=s,l=!0);else{const d=er(f);i[d]=sh(a,o,d,s,e,!1)}else s!==u[f]&&(u[f]=s,l=!0)}}}else{V_(e,t,i,u)&&(l=!0);let h;for(const c in o)(!t||!lt(t,c)&&((h=da(c))===c||!lt(t,h)))&&(a?n&&(n[c]!==void 0||n[h]!==void 0)&&(i[c]=sh(a,o,c,void 0,e,!0)):delete i[c]);if(u!==o)for(const c in u)(!t||!lt(t,c)&&!0)&&(delete u[c],l=!0)}l&&pi(e.attrs,"set","")}function V_(e,t,n,r){const[i,u]=e.propsOptions;let p=!1,o;if(t)for(let a in t){if(zs(a))continue;const l=t[a];let h;i&<(i,h=er(a))?!u||!u.includes(h)?n[h]=l:(o||(o={}))[h]=l:gf(e.emitsOptions,a)||(!(a in r)||l!==r[a])&&(r[a]=l,p=!0)}if(u){const a=at(n),l=o||It;for(let h=0;h<u.length;h++){const c=u[h];n[c]=sh(i,a,c,l[c],e,!lt(l,c))}}return p}function sh(e,t,n,r,i,u){const p=e[n];if(p!=null){const o=lt(p,"default");if(o&&r===void 0){const a=p.default;if(p.type!==Function&&!p.skipFactory&&He(a)){const{propsDefaults:l}=i;if(n in l)r=l[n];else{const h=Ql(i);r=l[n]=a.call(null,t),h()}}else r=a;i.ce&&i.ce._setProp(n,r)}p[0]&&(u&&!o?r=!1:p[1]&&(r===""||r===da(n))&&(r=!0))}return r}const gT=new WeakMap;function U_(e,t,n=!1){const r=n?gT:t.propsCache,i=r.get(e);if(i)return i;const u=e.props,p={},o=[];let a=!1;if(!He(e)){const h=c=>{a=!0;const[f,s]=U_(c,t,!0);Xt(p,f),s&&o.push(...s)};!n&&t.mixins.length&&t.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}if(!u&&!a)return it(e)&&r.set(e,Do),Do;if(We(u))for(let h=0;h<u.length;h++){const c=er(u[h]);zg(c)&&(p[c]=It)}else if(u)for(const h in u){const c=er(h);if(zg(c)){const f=u[h],s=p[c]=We(f)||He(f)?{type:f}:Xt({},f),d=s.type;let g=!1,m=!0;if(We(d))for(let v=0;v<d.length;++v){const y=d[v],b=He(y)&&y.name;if(b==="Boolean"){g=!0;break}else b==="String"&&(m=!1)}else g=He(d)&&d.name==="Boolean";s[0]=g,s[1]=m,(g||lt(s,"default"))&&o.push(c)}}const l=[p,o];return it(e)&&r.set(e,l),l}function zg(e){return e[0]!=="$"&&!zs(e)}const Hp=e=>e==="_"||e==="_ctx"||e==="$stable",Wp=e=>We(e)?e.map(jr):[jr(e)],vT=(e,t,n)=>{if(t._n)return t;const r=ue((...i)=>Wp(t(...i)),n);return r._c=!1,r},H_=(e,t,n)=>{const r=e._ctx;for(const i in e){if(Hp(i))continue;const u=e[i];if(He(u))t[i]=vT(i,u,r);else if(u!=null){const p=Wp(u);t[i]=()=>p}}},W_=(e,t)=>{const n=Wp(t);e.slots.default=()=>n},G_=(e,t,n)=>{for(const r in t)(n||!Hp(r))&&(e[r]=t[r])},yT=(e,t,n)=>{const r=e.slots=z_();if(e.vnode.shapeFlag&32){const i=t._;i?(G_(r,t,n),n&&Ub(r,"_",i,!0)):H_(t,r)}else t&&W_(e,t)},bT=(e,t,n)=>{const{vnode:r,slots:i}=e;let u=!0,p=It;if(r.shapeFlag&32){const o=t._;o?n&&o===1?u=!1:G_(i,t,n):(u=!t.$stable,H_(t,i)),p=t}else t&&(W_(e,t),p={default:1});if(u)for(const o in i)!Hp(o)&&p[o]==null&&delete i[o]};function _T(){typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(Zl().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const On=FT;function wT(e){return ST(e)}function ST(e,t){_T();const n=Zl();n.__VUE__=!0;const{insert:r,remove:i,patchProp:u,createElement:p,createText:o,createComment:a,setText:l,setElementText:h,parentNode:c,nextSibling:f,setScopeId:s=ot,insertStaticContent:d}=e,g=(j,x,U,K=null,L=null,F=null,X=void 0,de=null,le=!!x.dynamicChildren)=>{if(j===x)return;j&&!Ea(j,x)&&(K=H(j),R(j,L,F,!0),j=null),x.patchFlag===-2&&(le=!1,x.dynamicChildren=null);const{type:W,ref:pe,shapeFlag:ie}=x;switch(W){case ls:m(j,x,U,K);break;case hn:v(j,x,U,K);break;case nc:j==null&&y(x,U,K,X);break;case $e:I(j,x,U,K,L,F,X,de,le);break;default:ie&1?S(j,x,U,K,L,F,X,de,le):ie&6?$(j,x,U,K,L,F,X,de,le):(ie&64||ie&128)&&W.process(j,x,U,K,L,F,X,de,le,fe)}pe!=null&&L?Hs(pe,j&&j.ref,F,x||j,!x):pe==null&&j&&j.ref!=null&&Hs(j.ref,null,F,j,!0)},m=(j,x,U,K)=>{if(j==null)r(x.el=o(x.children),U,K);else{const L=x.el=j.el;x.children!==j.children&&l(L,x.children)}},v=(j,x,U,K)=>{j==null?r(x.el=a(x.children||""),U,K):x.el=j.el},y=(j,x,U,K)=>{[j.el,j.anchor]=d(j.children,x,U,K,j.el,j.anchor)},b=({el:j,anchor:x},U,K)=>{let L;for(;j&&j!==x;)L=f(j),r(j,U,K),j=L;r(x,U,K)},w=({el:j,anchor:x})=>{let U;for(;j&&j!==x;)U=f(j),i(j),j=U;i(x)},S=(j,x,U,K,L,F,X,de,le)=>{x.type==="svg"?X="svg":x.type==="math"&&(X="mathml"),j==null?C(x,U,K,L,F,X,de,le):A(j,x,L,F,X,de,le)},C=(j,x,U,K,L,F,X,de)=>{let le,W;const{props:pe,shapeFlag:ie,transition:he,dirs:we}=j;if(le=j.el=p(j.type,F,pe&&pe.is,pe),ie&8?h(le,j.children):ie&16&&k(j.children,le,null,K,L,Jf(j,F),X,de),we&&ba(j,null,K,"created"),T(le,j,j.scopeId,X,K),pe){for(const Ae in pe)Ae!=="value"&&!zs(Ae)&&u(le,Ae,null,pe[Ae],F,K);"value"in pe&&u(le,"value",null,pe.value,F),(W=pe.onVnodeBeforeMount)&&Fr(W,K,j)}we&&ba(j,null,K,"beforeMount");const Te=CT(L,he);Te&&he.beforeEnter(le),r(le,x,U),((W=pe&&pe.onVnodeMounted)||Te||we)&&On(()=>{W&&Fr(W,K,j),Te&&he.enter(le),we&&ba(j,null,K,"mounted")},L)},T=(j,x,U,K,L)=>{if(U&&s(j,U),K)for(let F=0;F<K.length;F++)s(j,K[F]);if(L){let F=L.subTree;if(x===F||q_(F.type)&&(F.ssContent===x||F.ssFallback===x)){const X=L.vnode;T(j,X,X.scopeId,X.slotScopeIds,L.parent)}}},k=(j,x,U,K,L,F,X,de,le=0)=>{for(let W=le;W<j.length;W++){const pe=j[W]=de?Hi(j[W]):jr(j[W]);g(null,pe,x,U,K,L,F,X,de)}},A=(j,x,U,K,L,F,X)=>{const de=x.el=j.el;let{patchFlag:le,dynamicChildren:W,dirs:pe}=x;le|=j.patchFlag&16;const ie=j.props||It,he=x.props||It;let we;if(U&&_a(U,!1),(we=he.onVnodeBeforeUpdate)&&Fr(we,U,x,j),pe&&ba(x,j,U,"beforeUpdate"),U&&_a(U,!0),(ie.innerHTML&&he.innerHTML==null||ie.textContent&&he.textContent==null)&&h(de,""),W?P(j.dynamicChildren,W,de,U,K,Jf(x,L),F):X||J(j,x,de,null,U,K,Jf(x,L),F,!1),le>0){if(le&16)z(de,ie,he,U,L);else if(le&2&&ie.class!==he.class&&u(de,"class",null,he.class,L),le&4&&u(de,"style",ie.style,he.style,L),le&8){const Te=x.dynamicProps;for(let Ae=0;Ae<Te.length;Ae++){const Le=Te[Ae],ye=ie[Le],Ce=he[Le];(Ce!==ye||Le==="value")&&u(de,Le,ye,Ce,L,U)}}le&1&&j.children!==x.children&&h(de,x.children)}else!X&&W==null&&z(de,ie,he,U,L);((we=he.onVnodeUpdated)||pe)&&On(()=>{we&&Fr(we,U,x,j),pe&&ba(x,j,U,"updated")},K)},P=(j,x,U,K,L,F,X)=>{for(let de=0;de<x.length;de++){const le=j[de],W=x[de],pe=le.el&&(le.type===$e||!Ea(le,W)||le.shapeFlag&198)?c(le.el):U;g(le,W,pe,null,K,L,F,X,!0)}},z=(j,x,U,K,L)=>{if(x!==U){if(x!==It)for(const F in x)!zs(F)&&!(F in U)&&u(j,F,x[F],null,L,K);for(const F in U){if(zs(F))continue;const X=U[F],de=x[F];X!==de&&F!=="value"&&u(j,F,de,X,L,K)}"value"in U&&u(j,"value",x.value,U.value,L)}},I=(j,x,U,K,L,F,X,de,le)=>{const W=x.el=j?j.el:o(""),pe=x.anchor=j?j.anchor:o("");let{patchFlag:ie,dynamicChildren:he,slotScopeIds:we}=x;we&&(de=de?de.concat(we):we),j==null?(r(W,U,K),r(pe,U,K),k(x.children||[],U,pe,L,F,X,de,le)):ie>0&&ie&64&&he&&j.dynamicChildren?(P(j.dynamicChildren,he,U,L,F,X,de),(x.key!=null||L&&x===L.subTree)&&Gp(j,x,!0)):J(j,x,U,pe,L,F,X,de,le)},$=(j,x,U,K,L,F,X,de,le)=>{x.slotScopeIds=de,j==null?x.shapeFlag&512?L.ctx.activate(x,U,K,X,le):O(x,U,K,L,F,X,le):Y(j,x,le)},O=(j,x,U,K,L,F,X)=>{const de=j.component=VT(j,K,L);if(hf(j)&&(de.ctx.renderer=fe),UT(de,!1,X),de.asyncDep){if(L&&L.registerDep(de,re,X),!j.el){const le=de.subTree=se(hn);v(null,le,x,U),j.placeholder=le.el}}else re(de,j,x,U,L,F,X)},Y=(j,x,U)=>{const K=x.component=j.component;if(RT(j,x,U))if(K.asyncDep&&!K.asyncResolved){q(K,x,U);return}else K.next=x,K.update();else x.el=j.el,K.vnode=x},re=(j,x,U,K,L,F,X)=>{const de=()=>{if(j.isMounted){let{next:ie,bu:he,u:we,parent:Te,vnode:Ae}=j;{const Me=Y_(j);if(Me){ie&&(ie.el=Ae.el,q(j,ie,X)),Me.asyncDep.then(()=>{j.isUnmounted||de()});return}}let Le=ie,ye;_a(j,!1),ie?(ie.el=Ae.el,q(j,ie,X)):ie=Ae,he&&ec(he),(ye=ie.props&&ie.props.onVnodeBeforeUpdate)&&Fr(ye,Te,ie,Ae),_a(j,!0);const Ce=Qf(j),Ie=j.subTree;j.subTree=Ce,g(Ie,Ce,c(Ie.el),H(Ie),j,L,F),ie.el=Ce.el,Le===null&&DT(j,Ce.el),we&&On(we,L),(ye=ie.props&&ie.props.onVnodeUpdated)&&On(()=>Fr(ye,Te,ie,Ae),L)}else{let ie;const{el:he,props:we}=x,{bm:Te,m:Ae,parent:Le,root:ye,type:Ce}=j,Ie=$o(x);if(_a(j,!1),Te&&ec(Te),!Ie&&(ie=we&&we.onVnodeBeforeMount)&&Fr(ie,Le,x),_a(j,!0),he&&_e){const Me=()=>{j.subTree=Qf(j),_e(he,j.subTree,j,L,null)};Ie&&Ce.__asyncHydrate?Ce.__asyncHydrate(he,j,Me):Me()}else{ye.ce&&ye.ce._def.shadowRoot!==!1&&ye.ce._injectChildStyle(Ce);const Me=j.subTree=Qf(j);g(null,Me,U,K,j,L,F),x.el=Me.el}if(Ae&&On(Ae,L),!Ie&&(ie=we&&we.onVnodeMounted)){const Me=x;On(()=>Fr(ie,Le,Me),L)}(x.shapeFlag&256||Le&&$o(Le.vnode)&&Le.vnode.shapeFlag&256)&&j.a&&On(j.a,L),j.isMounted=!0,x=U=K=null}};j.scope.on();const le=j.effect=new Kb(de);j.scope.off();const W=j.update=le.run.bind(le),pe=j.job=le.runIfDirty.bind(le);pe.i=j,pe.id=j.uid,le.scheduler=()=>$p(pe),_a(j,!0),W()},q=(j,x,U)=>{x.component=j;const K=j.vnode.props;j.vnode=x,j.next=null,mT(j,x.props,K,U),bT(j,x.children,U),_i(),Ag(j),wi()},J=(j,x,U,K,L,F,X,de,le=!1)=>{const W=j&&j.children,pe=j?j.shapeFlag:0,ie=x.children,{patchFlag:he,shapeFlag:we}=x;if(he>0){if(he&128){V(W,ie,U,K,L,F,X,de,le);return}else if(he&256){E(W,ie,U,K,L,F,X,de,le);return}}we&8?(pe&16&&Z(W,L,F),ie!==W&&h(U,ie)):pe&16?we&16?V(W,ie,U,K,L,F,X,de,le):Z(W,L,F,!0):(pe&8&&h(U,""),we&16&&k(ie,U,K,L,F,X,de,le))},E=(j,x,U,K,L,F,X,de,le)=>{j=j||Do,x=x||Do;const W=j.length,pe=x.length,ie=Math.min(W,pe);let he;for(he=0;he<ie;he++){const we=x[he]=le?Hi(x[he]):jr(x[he]);g(j[he],we,U,null,L,F,X,de,le)}W>pe?Z(j,L,F,!0,!1,ie):k(x,U,K,L,F,X,de,le,ie)},V=(j,x,U,K,L,F,X,de,le)=>{let W=0;const pe=x.length;let ie=j.length-1,he=pe-1;for(;W<=ie&&W<=he;){const we=j[W],Te=x[W]=le?Hi(x[W]):jr(x[W]);if(Ea(we,Te))g(we,Te,U,null,L,F,X,de,le);else break;W++}for(;W<=ie&&W<=he;){const we=j[ie],Te=x[he]=le?Hi(x[he]):jr(x[he]);if(Ea(we,Te))g(we,Te,U,null,L,F,X,de,le);else break;ie--,he--}if(W>ie){if(W<=he){const we=he+1,Te=we<pe?x[we].el:K;for(;W<=he;)g(null,x[W]=le?Hi(x[W]):jr(x[W]),U,Te,L,F,X,de,le),W++}}else if(W>he)for(;W<=ie;)R(j[W],L,F,!0),W++;else{const we=W,Te=W,Ae=new Map;for(W=Te;W<=he;W++){const tt=x[W]=le?Hi(x[W]):jr(x[W]);tt.key!=null&&Ae.set(tt.key,W)}let Le,ye=0;const Ce=he-Te+1;let Ie=!1,Me=0;const mt=new Array(Ce);for(W=0;W<Ce;W++)mt[W]=0;for(W=we;W<=ie;W++){const tt=j[W];if(ye>=Ce){R(tt,L,F,!0);continue}let Lt;if(tt.key!=null)Lt=Ae.get(tt.key);else for(Le=Te;Le<=he;Le++)if(mt[Le-Te]===0&&Ea(tt,x[Le])){Lt=Le;break}Lt===void 0?R(tt,L,F,!0):(mt[Lt-Te]=W+1,Lt>=Me?Me=Lt:Ie=!0,g(tt,x[Lt],U,null,L,F,X,de,le),ye++)}const qt=Ie?xT(mt):Do;for(Le=qt.length-1,W=Ce-1;W>=0;W--){const tt=Te+W,Lt=x[tt],Wt=x[tt+1],rr=tt+1<pe?Wt.el||Wt.placeholder:K;mt[W]===0?g(null,Lt,U,rr,L,F,X,de,le):Ie&&(Le<0||W!==qt[Le]?M(Lt,U,rr,2):Le--)}}},M=(j,x,U,K,L=null)=>{const{el:F,type:X,transition:de,children:le,shapeFlag:W}=j;if(W&6){M(j.component.subTree,x,U,K);return}if(W&128){j.suspense.move(x,U,K);return}if(W&64){X.move(j,x,U,fe);return}if(X===$e){r(F,x,U);for(let ie=0;ie<le.length;ie++)M(le[ie],x,U,K);r(j.anchor,x,U);return}if(X===nc){b(j,x,U);return}if(K!==2&&W&1&&de)if(K===0)de.beforeEnter(F),r(F,x,U),On(()=>de.enter(F),L);else{const{leave:ie,delayLeave:he,afterLeave:we}=de,Te=()=>{j.ctx.isUnmounted?i(F):r(F,x,U)},Ae=()=>{F._isLeaving&&F[ci](!0),ie(F,()=>{Te(),we&&we()})};he?he(F,Te,Ae):Ae()}else r(F,x,U)},R=(j,x,U,K=!1,L=!1)=>{const{type:F,props:X,ref:de,children:le,dynamicChildren:W,shapeFlag:pe,patchFlag:ie,dirs:he,cacheIndex:we}=j;if(ie===-2&&(L=!1),de!=null&&(_i(),Hs(de,null,U,j,!0),wi()),we!=null&&(x.renderCache[we]=void 0),pe&256){x.ctx.deactivate(j);return}const Te=pe&1&&he,Ae=!$o(j);let Le;if(Ae&&(Le=X&&X.onVnodeBeforeUnmount)&&Fr(Le,x,j),pe&6)B(j.component,U,K);else{if(pe&128){j.suspense.unmount(U,K);return}Te&&ba(j,null,x,"beforeUnmount"),pe&64?j.type.remove(j,x,U,fe,K):W&&!W.hasOnce&&(F!==$e||ie>0&&ie&64)?Z(W,x,U,!1,!0):(F===$e&&ie&384||!L&&pe&16)&&Z(le,x,U),K&&G(j)}(Ae&&(Le=X&&X.onVnodeUnmounted)||Te)&&On(()=>{Le&&Fr(Le,x,j),Te&&ba(j,null,x,"unmounted")},U)},G=j=>{const{type:x,el:U,anchor:K,transition:L}=j;if(x===$e){D(U,K);return}if(x===nc){w(j);return}const F=()=>{i(U),L&&!L.persisted&&L.afterLeave&&L.afterLeave()};if(j.shapeFlag&1&&L&&!L.persisted){const{leave:X,delayLeave:de}=L,le=()=>X(U,F);de?de(j.el,F,le):le()}else F()},D=(j,x)=>{let U;for(;j!==x;)U=f(j),i(j),j=U;i(x)},B=(j,x,U)=>{const{bum:K,scope:L,job:F,subTree:X,um:de,m:le,a:W}=j;jg(le),jg(W),K&&ec(K),L.stop(),F&&(F.flags|=8,R(X,j,x,U)),de&&On(de,x),On(()=>{j.isUnmounted=!0},x)},Z=(j,x,U,K=!1,L=!1,F=0)=>{for(let X=F;X<j.length;X++)R(j[X],x,U,K,L)},H=j=>{if(j.shapeFlag&6)return H(j.component.subTree);if(j.shapeFlag&128)return j.suspense.next();const x=f(j.anchor||j.el),U=x&&x[y_];return U?f(U):x};let Q=!1;const te=(j,x,U)=>{j==null?x._vnode&&R(x._vnode,null,null,!0):g(x._vnode||null,j,x,null,null,null,U),x._vnode=j,Q||(Q=!0,Ag(),m_(),Q=!1)},fe={p:g,um:R,m:M,r:G,mt:O,mc:k,pc:J,pbc:P,n:H,o:e};let me,_e;return t&&([me,_e]=t(fe)),{render:te,hydrate:me,createApp:dT(te,me)}}function Jf({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function _a({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function CT(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Gp(e,t,n=!1){const r=e.children,i=t.children;if(We(r)&&We(i))for(let u=0;u<r.length;u++){const p=r[u];let o=i[u];o.shapeFlag&1&&!o.dynamicChildren&&((o.patchFlag<=0||o.patchFlag===32)&&(o=i[u]=Hi(i[u]),o.el=p.el),!n&&o.patchFlag!==-2&&Gp(p,o)),o.type===ls&&o.patchFlag!==-1&&(o.el=p.el),o.type===hn&&!o.el&&(o.el=p.el)}}function xT(e){const t=e.slice(),n=[0];let r,i,u,p,o;const a=e.length;for(r=0;r<a;r++){const l=e[r];if(l!==0){if(i=n[n.length-1],e[i]<l){t[r]=i,n.push(r);continue}for(u=0,p=n.length-1;u<p;)o=u+p>>1,e[n[o]]<l?u=o+1:p=o;l<e[n[u]]&&(u>0&&(t[r]=n[u-1]),n[u]=r)}}for(u=n.length,p=n[u-1];u-- >0;)n[u]=p,p=t[p];return n}function Y_(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Y_(t)}function jg(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const TT=Symbol.for("v-scx"),kT=()=>qe(TT);function io(e,t){return mf(e,null,t)}function ET(e,t){return mf(e,null,{flush:"post"})}function xe(e,t,n){return mf(e,t,n)}function mf(e,t,n=It){const{immediate:r,deep:i,flush:u,once:p}=n,o=Xt({},n),a=t&&r||!t&&u!=="post";let l;if(gl){if(u==="sync"){const s=kT();l=s.__watcherHandles||(s.__watcherHandles=[])}else if(!a){const s=()=>{};return s.stop=ot,s.resume=ot,s.pause=ot,s}}const h=wn;o.call=(s,d,g)=>Or(s,h,d,g);let c=!1;u==="post"?o.scheduler=s=>{On(s,h&&h.suspense)}:u!=="sync"&&(c=!0,o.scheduler=(s,d)=>{d?s():$p(s)}),o.augmentJob=s=>{t&&(s.flags|=4),c&&(s.flags|=2,h&&(s.id=h.uid,s.i=h))};const f=Wx(e,t,o);return gl&&(l?l.push(f):a&&f()),f}function OT(e,t,n){const r=this.proxy,i=Xe(e)?e.includes(".")?K_(r,e):()=>r[e]:e.bind(r,r);let u;He(t)?u=t:(u=t.handler,n=t);const p=Ql(this),o=mf(i,u.bind(r),n);return p(),o}function K_(e,t){const n=t.split(".");return()=>{let r=e;for(let i=0;i<n.length&&r;i++)r=r[n[i]];return r}}const AT=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${er(t)}Modifiers`]||e[`${da(t)}Modifiers`];function PT(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||It;let i=n;const u=t.startsWith("update:"),p=u&&AT(r,t.slice(7));p&&(p.trim&&(i=n.map(h=>Xe(h)?h.trim():h)),p.number&&(i=n.map(Qd)));let o,a=r[o=Qu(t)]||r[o=Qu(er(t))];!a&&u&&(a=r[o=Qu(da(t))]),a&&Or(a,e,6,i);const l=r[o+"Once"];if(l){if(!e.emitted)e.emitted={};else if(e.emitted[o])return;e.emitted[o]=!0,Or(l,e,6,i)}}const IT=new WeakMap;function X_(e,t,n=!1){const r=n?IT:t.emitsCache,i=r.get(e);if(i!==void 0)return i;const u=e.emits;let p={},o=!1;if(!He(e)){const a=l=>{const h=X_(l,t,!0);h&&(o=!0,Xt(p,h))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!u&&!o?(it(e)&&r.set(e,null),null):(We(u)?u.forEach(a=>p[a]=null):Xt(p,u),it(e)&&r.set(e,p),p)}function gf(e,t){return!e||!uf(t)?!1:(t=t.slice(2).replace(/Once$/,""),lt(e,t[0].toLowerCase()+t.slice(1))||lt(e,da(t))||lt(e,t))}function Qf(e){const{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[u],slots:p,attrs:o,emit:a,render:l,renderCache:h,props:c,data:f,setupState:s,ctx:d,inheritAttrs:g}=e,m=Oc(e);let v,y;try{if(n.shapeFlag&4){const w=i||r,S=w;v=jr(l.call(S,w,h,c,s,f,d)),y=o}else{const w=t;v=jr(w.length>1?w(c,{attrs:o,slots:p,emit:a}):w(c,null)),y=t.props?o:MT(o)}}catch(w){Gs.length=0,df(w,e,1),v=se(hn)}let b=v;if(y&&g!==!1){const w=Object.keys(y),{shapeFlag:S}=b;w.length&&S&7&&(u&&w.some(xp)&&(y=LT(y,u)),b=Ci(b,y,!1,!0))}return n.dirs&&(b=Ci(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&Ga(b,n.transition),v=b,Oc(m),v}const MT=e=>{let t;for(const n in e)(n==="class"||n==="style"||uf(n))&&((t||(t={}))[n]=e[n]);return t},LT=(e,t)=>{const n={};for(const r in e)(!xp(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function RT(e,t,n){const{props:r,children:i,component:u}=e,{props:p,children:o,patchFlag:a}=t,l=u.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return r?Vg(r,p,l):!!p;if(a&8){const h=t.dynamicProps;for(let c=0;c<h.length;c++){const f=h[c];if(p[f]!==r[f]&&!gf(l,f))return!0}}}else return(i||o)&&(!o||!o.$stable)?!0:r===p?!1:r?p?Vg(r,p,l):!0:!!p;return!1}function Vg(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){const u=r[i];if(t[u]!==e[u]&&!gf(n,u))return!0}return!1}function DT({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const q_=e=>e.__isSuspense;function FT(e,t){t&&t.pendingBranch?We(e)?t.effects.push(...e):t.effects.push(e):p_(e)}const $e=Symbol.for("v-fgt"),ls=Symbol.for("v-txt"),hn=Symbol.for("v-cmt"),nc=Symbol.for("v-stc"),Gs=[];let Kn=null;function N(e=!1){Gs.push(Kn=e?null:[])}function BT(){Gs.pop(),Kn=Gs[Gs.length-1]||null}let ml=1;function Mc(e,t=!1){ml+=e,e<0&&Kn&&t&&(Kn.hasOnce=!0)}function Z_(e){return e.dynamicChildren=ml>0?Kn||Do:null,BT(),ml>0&&Kn&&Kn.push(e),e}function oe(e,t,n,r,i,u){return Z_(ne(e,t,n,r,i,u,!0))}function ve(e,t,n,r,i){return Z_(se(e,t,n,r,i,!0))}function Si(e){return e?e.__v_isVNode===!0:!1}function Ea(e,t){return e.type===t.type&&e.key===t.key}const J_=({key:e})=>e!=null?e:null,rc=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Xe(e)||Pt(e)||He(e)?{i:pn,r:e,k:t,f:!!n}:e:null);function ne(e,t=null,n=null,r=0,i=null,u=e===$e?0:1,p=!1,o=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&J_(t),ref:t&&rc(t),scopeId:v_,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:u,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:pn};return o?(Yp(a,n),u&128&&e.normalize(a)):n&&(a.shapeFlag|=Xe(n)?8:16),ml>0&&!p&&Kn&&(a.patchFlag>0||u&6)&&a.patchFlag!==32&&Kn.push(a),a}const se=$T;function $T(e,t=null,n=null,r=0,i=null,u=!1){if((!e||e===M_)&&(e=hn),Si(e)){const o=Ci(e,t,!0);return n&&Yp(o,n),ml>0&&!u&&Kn&&(o.shapeFlag&6?Kn[Kn.indexOf(e)]=o:Kn.push(o)),o.patchFlag=-2,o}if(YT(e)&&(e=e.__vccOpts),t){t=NT(t);let{class:o,style:a}=t;o&&!Xe(o)&&(t.class=ce(o)),it(a)&&(Bp(a)&&!We(a)&&(a=Xt({},a)),t.style=je(a))}const p=Xe(e)?1:q_(e)?128:b_(e)?64:it(e)?4:He(e)?2:0;return ne(e,t,n,r,i,p,u,!0)}function NT(e){return e?Bp(e)||j_(e)?Xt({},e):e:null}function Ci(e,t,n=!1,r=!1){const{props:i,ref:u,patchFlag:p,children:o,transition:a}=e,l=t?$n(i||{},t):i,h={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&J_(l),ref:t&&t.ref?n&&u?We(u)?u.concat(rc(t)):[u,rc(t)]:rc(t):u,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==$e?p===-1?16:p|16:p,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ci(e.ssContent),ssFallback:e.ssFallback&&Ci(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&r&&Ga(h,a.clone(h)),h}function ze(e=" ",t=0){return se(ls,null,e,t)}function ge(e="",t=!1){return t?(N(),ve(hn,null,e)):se(hn,null,e)}function jr(e){return e==null||typeof e=="boolean"?se(hn):We(e)?se($e,null,e.slice()):Si(e)?Hi(e):se(ls,null,String(e))}function Hi(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ci(e)}function Yp(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(We(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),Yp(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!j_(t)?t._ctx=pn:i===3&&pn&&(pn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else He(t)?(t={default:t,_ctx:pn},n=32):(t=String(t),r&64?(n=16,t=[ze(t)]):n=8);e.children=t,e.shapeFlag|=n}function $n(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const i in r)if(i==="class")t.class!==r.class&&(t.class=ce([t.class,r.class]));else if(i==="style")t.style=je([t.style,r.style]);else if(uf(i)){const u=t[i],p=r[i];p&&u!==p&&!(We(u)&&u.includes(p))&&(t[i]=u?[].concat(u,p):p)}else i!==""&&(t[i]=r[i])}return t}function Fr(e,t,n,r=null){Or(e,t,7,[n,r])}const zT=$_();let jT=0;function VT(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||zT,u={uid:jT++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Yb(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:U_(r,i),emitsOptions:X_(r,i),emit:null,emitted:null,propsDefaults:It,inheritAttrs:r.inheritAttrs,ctx:It,data:It,props:It,attrs:It,slots:It,refs:It,setupState:It,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return u.ctx={_:u},u.root=t?t.root:u,u.emit=PT.bind(null,u),e.ce&&e.ce(u),u}let wn=null;const Et=()=>wn||pn;let Lc,lh;{const e=Zl(),t=(n,r)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(r),u=>{i.length>1?i.forEach(p=>p(u)):i[0](u)}};Lc=t("__VUE_INSTANCE_SETTERS__",n=>wn=n),lh=t("__VUE_SSR_SETTERS__",n=>gl=n)}const Ql=e=>{const t=wn;return Lc(e),e.scope.on(),()=>{e.scope.off(),Lc(t)}},Ug=()=>{wn&&wn.scope.off(),Lc(null)};function Q_(e){return e.vnode.shapeFlag&4}let gl=!1;function UT(e,t=!1,n=!1){t&&lh(t);const{props:r,children:i}=e.vnode,u=Q_(e);pT(e,r,u,t),yT(e,i,n||t);const p=u?HT(e,t):void 0;return t&&lh(!1),p}function HT(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,aT);const{setup:r}=n;if(r){_i();const i=e.setupContext=r.length>1?t1(e):null,u=Ql(e),p=Jl(r,e,0,[e.props,i]),o=Sc(p);if(wi(),u(),(o||e.sp)&&!$o(e)&&E_(e),o){if(p.then(Ug,Ug),t)return p.then(a=>{Hg(e,a,t)}).catch(a=>{df(a,e,0)});e.asyncDep=p}else Hg(e,p,t)}else e1(e,t)}function Hg(e,t,n){He(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:it(t)&&(e.setupState=u_(t)),e1(e,n)}let Wg;function e1(e,t,n){const r=e.type;if(!e.render){if(!t&&Wg&&!r.render){const i=r.template||Up(e).template;if(i){const{isCustomElement:u,compilerOptions:p}=e.appContext.config,{delimiters:o,compilerOptions:a}=r,l=Xt(Xt({isCustomElement:u,delimiters:o},p),a);r.render=Wg(i,l)}}e.render=r.render||ot}{const i=Ql(e);_i();try{oT(e)}finally{wi(),i()}}}const WT={get(e,t){return _n(e,"get",""),e[t]}};function t1(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,WT),slots:e.slots,emit:e.emit,expose:t}}function vf(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(u_(dl(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ws)return Ws[n](e)},has(t,n){return n in t||n in Ws}})):e.proxy}function GT(e,t=!0){return He(e)?e.displayName||e.name:e.name||t&&e.__name}function YT(e){return He(e)&&"__vccOpts"in e}const ee=(e,t)=>f_(e,t,gl);function Ct(e,t,n){const r=(u,p,o)=>{Mc(-1);try{return se(u,p,o)}finally{Mc(1)}},i=arguments.length;return i===2?it(t)&&!We(t)?Si(t)?r(e,null,[t]):r(e,t):r(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&Si(n)&&(n=[n]),r(e,t,n))}const KT="3.5.21",XT=ot;/**
|
|
* @vue/runtime-dom v3.5.21
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
* @license MIT
|
|
**/let uh;const Gg=typeof window<"u"&&window.trustedTypes;if(Gg)try{uh=Gg.createPolicy("vue",{createHTML:e=>e})}catch{}const n1=uh?e=>uh.createHTML(e):e=>e,qT="http://www.w3.org/2000/svg",ZT="http://www.w3.org/1998/Math/MathML",li=typeof document<"u"?document:null,Yg=li&&li.createElement("template"),JT={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const i=t==="svg"?li.createElementNS(qT,e):t==="mathml"?li.createElementNS(ZT,e):n?li.createElement(e,{is:n}):li.createElement(e);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>li.createTextNode(e),createComment:e=>li.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>li.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,u){const p=n?n.previousSibling:t.lastChild;if(i&&(i===u||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===u||!(i=i.nextSibling)););else{Yg.innerHTML=n1(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const o=Yg.content;if(r==="svg"||r==="mathml"){const a=o.firstChild;for(;a.firstChild;)o.appendChild(a.firstChild);o.removeChild(a)}t.insertBefore(o,n)}return[p?p.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Li="transition",Ts="animation",Wo=Symbol("_vtc"),r1={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},i1=Xt({},C_,r1),QT=e=>(e.displayName="Transition",e.props=i1,e),Vn=QT((e,{slots:t})=>Ct(qx,a1(e),t)),wa=(e,t=[])=>{We(e)?e.forEach(n=>n(...t)):e&&e(...t)},Kg=e=>e?We(e)?e.some(t=>t.length>1):e.length>1:!1;function a1(e){const t={};for(const I in e)I in r1||(t[I]=e[I]);if(e.css===!1)return t;const{name:n="v",type:r,duration:i,enterFromClass:u=`${n}-enter-from`,enterActiveClass:p=`${n}-enter-active`,enterToClass:o=`${n}-enter-to`,appearFromClass:a=u,appearActiveClass:l=p,appearToClass:h=o,leaveFromClass:c=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:s=`${n}-leave-to`}=e,d=ek(i),g=d&&d[0],m=d&&d[1],{onBeforeEnter:v,onEnter:y,onEnterCancelled:b,onLeave:w,onLeaveCancelled:S,onBeforeAppear:C=v,onAppear:T=y,onAppearCancelled:k=b}=t,A=(I,$,O,Y)=>{I._enterCancelled=Y,Bi(I,$?h:o),Bi(I,$?l:p),O&&O()},P=(I,$)=>{I._isLeaving=!1,Bi(I,c),Bi(I,s),Bi(I,f),$&&$()},z=I=>($,O)=>{const Y=I?T:y,re=()=>A($,I,O);wa(Y,[$,re]),Xg(()=>{Bi($,I?a:u),$r($,I?h:o),Kg(Y)||qg($,r,g,re)})};return Xt(t,{onBeforeEnter(I){wa(v,[I]),$r(I,u),$r(I,p)},onBeforeAppear(I){wa(C,[I]),$r(I,a),$r(I,l)},onEnter:z(!1),onAppear:z(!0),onLeave(I,$){I._isLeaving=!0;const O=()=>P(I,$);$r(I,c),I._enterCancelled?($r(I,f),ch()):(ch(),$r(I,f)),Xg(()=>{!I._isLeaving||(Bi(I,c),$r(I,s),Kg(w)||qg(I,r,m,O))}),wa(w,[I,O])},onEnterCancelled(I){A(I,!1,void 0,!0),wa(b,[I])},onAppearCancelled(I){A(I,!0,void 0,!0),wa(k,[I])},onLeaveCancelled(I){P(I),wa(S,[I])}})}function ek(e){if(e==null)return null;if(it(e))return[ed(e.enter),ed(e.leave)];{const t=ed(e);return[t,t]}}function ed(e){return fx(e)}function $r(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Wo]||(e[Wo]=new Set)).add(t)}function Bi(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[Wo];n&&(n.delete(t),n.size||(e[Wo]=void 0))}function Xg(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let tk=0;function qg(e,t,n,r){const i=e._endId=++tk,u=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(u,n);const{type:p,timeout:o,propCount:a}=o1(e,t);if(!p)return r();const l=p+"end";let h=0;const c=()=>{e.removeEventListener(l,f),u()},f=s=>{s.target===e&&++h>=a&&c()};setTimeout(()=>{h<a&&c()},o+1),e.addEventListener(l,f)}function o1(e,t){const n=window.getComputedStyle(e),r=d=>(n[d]||"").split(", "),i=r(`${Li}Delay`),u=r(`${Li}Duration`),p=Zg(i,u),o=r(`${Ts}Delay`),a=r(`${Ts}Duration`),l=Zg(o,a);let h=null,c=0,f=0;t===Li?p>0&&(h=Li,c=p,f=u.length):t===Ts?l>0&&(h=Ts,c=l,f=a.length):(c=Math.max(p,l),h=c>0?p>l?Li:Ts:null,f=h?h===Li?u.length:a.length:0);const s=h===Li&&/\b(?:transform|all)(?:,|$)/.test(r(`${Li}Property`).toString());return{type:h,timeout:c,propCount:f,hasTransform:s}}function Zg(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>Jg(n)+Jg(e[r])))}function Jg(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function ch(){return document.body.offsetHeight}function nk(e,t,n){const r=e[Wo];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Rc=Symbol("_vod"),s1=Symbol("_vsh"),Kt={name:"show",beforeMount(e,{value:t},{transition:n}){e[Rc]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):ks(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),ks(e,!0),r.enter(e)):r.leave(e,()=>{ks(e,!1)}):ks(e,t))},beforeUnmount(e,{value:t}){ks(e,t)}};function ks(e,t){e.style.display=t?e[Rc]:"none",e[s1]=!t}const l1=Symbol("");function rk(e){const t=Et();if(!t)return;const n=t.ut=(i=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(u=>Dc(u,i))},r=()=>{const i=e(t.proxy);t.ce?Dc(t.ce,i):fh(t.subTree,i),n(i)};I_(()=>{p_(r)}),rt(()=>{xe(r,ot,{flush:"post"});const i=new MutationObserver(r);i.observe(t.subTree.el.parentNode,{childList:!0}),ha(()=>i.disconnect())})}function fh(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{fh(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Dc(e.el,t);else if(e.type===$e)e.children.forEach(n=>fh(n,t));else if(e.type===nc){let{el:n,anchor:r}=e;for(;n&&(Dc(n,t),n!==r);)n=n.nextSibling}}function Dc(e,t){if(e.nodeType===1){const n=e.style;let r="";for(const i in t){const u=bx(t[i]);n.setProperty(`--${i}`,u),r+=`--${i}: ${u};`}n[l1]=r}}const ik=/(?:^|;)\s*display\s*:/;function ak(e,t,n){const r=e.style,i=Xe(n);let u=!1;if(n&&!i){if(t)if(Xe(t))for(const p of t.split(";")){const o=p.slice(0,p.indexOf(":")).trim();n[o]==null&&ic(r,o,"")}else for(const p in t)n[p]==null&&ic(r,p,"");for(const p in n)p==="display"&&(u=!0),ic(r,p,n[p])}else if(i){if(t!==n){const p=r[l1];p&&(n+=";"+p),r.cssText=n,u=ik.test(n)}}else t&&e.removeAttribute("style");Rc in e&&(e[Rc]=u?r.display:"",e[s1]&&(r.display="none"))}const Qg=/\s*!important$/;function ic(e,t,n){if(We(n))n.forEach(r=>ic(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=ok(e,t);Qg.test(n)?e.setProperty(da(r),n.replace(Qg,""),"important"):e[r]=n}}const ev=["Webkit","Moz","ms"],td={};function ok(e,t){const n=td[t];if(n)return n;let r=er(t);if(r!=="filter"&&r in e)return td[t]=r;r=ql(r);for(let i=0;i<ev.length;i++){const u=ev[i]+r;if(u in e)return td[t]=u}return t}const tv="http://www.w3.org/1999/xlink";function nv(e,t,n,r,i,u=vx(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(tv,t.slice(6,t.length)):e.setAttributeNS(tv,t,n):n==null||u&&!Hb(n)?e.removeAttribute(t):e.setAttribute(t,u?"":Er(n)?String(n):n)}function rv(e,t,n,r,i){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?n1(n):n);return}const u=e.tagName;if(t==="value"&&u!=="PROGRESS"&&!u.includes("-")){const o=u==="OPTION"?e.getAttribute("value")||"":e.value,a=n==null?e.type==="checkbox"?"on":"":String(n);(o!==a||!("_value"in e))&&(e.value=a),n==null&&e.removeAttribute(t),e._value=n;return}let p=!1;if(n===""||n==null){const o=typeof e[t];o==="boolean"?n=Hb(n):n==null&&o==="string"?(n="",p=!0):o==="number"&&(n=0,p=!0)}try{e[t]=n}catch{}p&&e.removeAttribute(i||t)}function Oa(e,t,n,r){e.addEventListener(t,n,r)}function sk(e,t,n,r){e.removeEventListener(t,n,r)}const iv=Symbol("_vei");function lk(e,t,n,r,i=null){const u=e[iv]||(e[iv]={}),p=u[t];if(r&&p)p.value=r;else{const[o,a]=uk(t);if(r){const l=u[t]=dk(r,i);Oa(e,o,l,a)}else p&&(sk(e,o,p,a),u[t]=void 0)}}const av=/(?:Once|Passive|Capture)$/;function uk(e){let t;if(av.test(e)){t={};let r;for(;r=e.match(av);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):da(e.slice(2)),t]}let nd=0;const ck=Promise.resolve(),fk=()=>nd||(ck.then(()=>nd=0),nd=Date.now());function dk(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Or(hk(r,n.value),t,5,[r])};return n.value=e,n.attached=fk(),n}function hk(e,t){if(We(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>i=>!i._stopped&&r&&r(i))}else return t}const ov=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,pk=(e,t,n,r,i,u)=>{const p=i==="svg";t==="class"?nk(e,r,p):t==="style"?ak(e,n,r):uf(t)?xp(t)||lk(e,t,n,r,u):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):mk(e,t,r,p))?(rv(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&nv(e,t,r,p,u,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Xe(r))?rv(e,er(t),r,u,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),nv(e,t,r,p))};function mk(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&ov(t)&&He(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return ov(t)&&Xe(n)?!1:t in e}const u1=new WeakMap,c1=new WeakMap,Fc=Symbol("_moveCb"),sv=Symbol("_enterCb"),gk=e=>(delete e.props.mode,e),vk=gk({name:"TransitionGroup",props:Xt({},i1,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Et(),r=S_();let i,u;return ro(()=>{if(!i.length)return;const p=e.moveClass||`${e.name||"v"}-move`;if(!Sk(i[0].el,n.vnode.el,p)){i=[];return}i.forEach(bk),i.forEach(_k);const o=i.filter(wk);ch(),o.forEach(a=>{const l=a.el,h=l.style;$r(l,p),h.transform=h.webkitTransform=h.transitionDuration="";const c=l[Fc]=f=>{f&&f.target!==l||(!f||f.propertyName.endsWith("transform"))&&(l.removeEventListener("transitionend",c),l[Fc]=null,Bi(l,p))};l.addEventListener("transitionend",c)}),i=[]}),()=>{const p=at(e),o=a1(p);let a=p.tag||$e;if(i=[],u)for(let l=0;l<u.length;l++){const h=u[l];h.el&&h.el instanceof Element&&(i.push(h),Ga(h,pl(h,o,r,n)),u1.set(h,h.el.getBoundingClientRect()))}u=t.default?zp(t.default()):[];for(let l=0;l<u.length;l++){const h=u[l];h.key!=null&&Ga(h,pl(h,o,r,n))}return se(a,null,u)}}}),yk=vk;function bk(e){const t=e.el;t[Fc]&&t[Fc](),t[sv]&&t[sv]()}function _k(e){c1.set(e,e.el.getBoundingClientRect())}function wk(e){const t=u1.get(e),n=c1.get(e),r=t.left-n.left,i=t.top-n.top;if(r||i){const u=e.el.style;return u.transform=u.webkitTransform=`translate(${r}px,${i}px)`,u.transitionDuration="0s",e}}function Sk(e,t,n){const r=e.cloneNode(),i=e[Wo];i&&i.forEach(o=>{o.split(/\s+/).forEach(a=>a&&r.classList.remove(a))}),n.split(/\s+/).forEach(o=>o&&r.classList.add(o)),r.style.display="none";const u=t.nodeType===1?t:t.parentNode;u.appendChild(r);const{hasTransform:p}=o1(r);return u.removeChild(r),p}const Bc=e=>{const t=e.props["onUpdate:modelValue"]||!1;return We(t)?n=>ec(t,n):t};function Ck(e){e.target.composing=!0}function lv(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const No=Symbol("_assign"),xk={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[No]=Bc(i);const u=r||i.props&&i.props.type==="number";Oa(e,t?"change":"input",p=>{if(p.target.composing)return;let o=e.value;n&&(o=o.trim()),u&&(o=Qd(o)),e[No](o)}),n&&Oa(e,"change",()=>{e.value=e.value.trim()}),t||(Oa(e,"compositionstart",Ck),Oa(e,"compositionend",lv),Oa(e,"change",lv))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:u}},p){if(e[No]=Bc(p),e.composing)return;const o=(u||e.type==="number")&&!/^0\d/.test(e.value)?Qd(e.value):e.value,a=t==null?"":t;o!==a&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||i&&e.value.trim()===a)||(e.value=a))}},f1={created(e,{value:t},n){e.checked=Cc(t,n.props.value),e[No]=Bc(n),Oa(e,"change",()=>{e[No](Tk(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[No]=Bc(r),t!==n&&(e.checked=Cc(t,r.props.value))}};function Tk(e){return"_value"in e?e._value:e.value}const kk=["ctrl","shift","alt","meta"],Ek={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>kk.some(n=>e[`${n}Key`]&&!t.includes(n))},Qe=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(i,...u)=>{for(let p=0;p<t.length;p++){const o=Ek[t[p]];if(o&&o(i,t))return}return e(i,...u)})},Ok={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Bt=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=i=>{if(!("key"in i))return;const u=da(i.key);if(t.some(p=>p===u||Ok[p]===u))return e(i)})},Ak=Xt({patchProp:pk},JT);let uv;function d1(){return uv||(uv=wT(Ak))}const $c=(...e)=>{d1().render(...e)},Pk=(...e)=>{const t=d1().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=Mk(r);if(!i)return;const u=t._component;!He(u)&&!u.render&&!u.template&&(u.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const p=n(i,!1,Ik(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),p},t};function Ik(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Mk(e){return Xe(e)?document.querySelector(e):e}var Lk=!1;/*!
|
|
* pinia v2.3.1
|
|
* (c) 2025 Eduardo San Martin Morote
|
|
* @license MIT
|
|
*/let h1;const yf=e=>h1=e,p1=Symbol();function dh(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Ys;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Ys||(Ys={}));function Rk(){const e=Ep(!0),t=e.run(()=>ae({}));let n=[],r=[];const i=dl({install(u){yf(i),i._a=u,u.provide(p1,i),u.config.globalProperties.$pinia=i,r.forEach(p=>n.push(p)),r=[]},use(u){return!this._a&&!Lk?r.push(u):n.push(u),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}const m1=()=>{};function cv(e,t,n,r=m1){e.push(t);const i=()=>{const u=e.indexOf(t);u>-1&&(e.splice(u,1),r())};return!n&&Op()&&Ap(i),i}function bo(e,...t){e.slice().forEach(n=>{n(...t)})}const Dk=e=>e(),fv=Symbol(),rd=Symbol();function hh(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,r)=>e.set(r,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],i=e[n];dh(i)&&dh(r)&&e.hasOwnProperty(n)&&!Pt(r)&&!Qi(r)?e[n]=hh(i,r):e[n]=r}return e}const Fk=Symbol();function Bk(e){return!dh(e)||!e.hasOwnProperty(Fk)}const{assign:$i}=Object;function $k(e){return!!(Pt(e)&&e.effect)}function Nk(e,t,n,r){const{state:i,actions:u,getters:p}=t,o=n.state.value[e];let a;function l(){o||(n.state.value[e]=i?i():{});const h=hr(n.state.value[e]);return $i(h,u,Object.keys(p||{}).reduce((c,f)=>(c[f]=dl(ee(()=>{yf(n);const s=n._s.get(e);return p[f].call(s,s)})),c),{}))}return a=g1(e,l,t,n,r,!0),a}function g1(e,t,n={},r,i,u){let p;const o=$i({actions:{}},n),a={deep:!0};let l,h,c=[],f=[],s;const d=r.state.value[e];!u&&!d&&(r.state.value[e]={}),ae({});let g;function m(k){let A;l=h=!1,typeof k=="function"?(k(r.state.value[e]),A={type:Ys.patchFunction,storeId:e,events:s}):(hh(r.state.value[e],k),A={type:Ys.patchObject,payload:k,storeId:e,events:s});const P=g=Symbol();Ge().then(()=>{g===P&&(l=!0)}),h=!0,bo(c,A,r.state.value[e])}const v=u?function(){const{state:A}=n,P=A?A():{};this.$patch(z=>{$i(z,P)})}:m1;function y(){p.stop(),c=[],f=[],r._s.delete(e)}const b=(k,A="")=>{if(fv in k)return k[rd]=A,k;const P=function(){yf(r);const z=Array.from(arguments),I=[],$=[];function O(q){I.push(q)}function Y(q){$.push(q)}bo(f,{args:z,name:P[rd],store:S,after:O,onError:Y});let re;try{re=k.apply(this&&this.$id===e?this:S,z)}catch(q){throw bo($,q),q}return re instanceof Promise?re.then(q=>(bo(I,q),q)).catch(q=>(bo($,q),Promise.reject(q))):(bo(I,re),re)};return P[fv]=!0,P[rd]=A,P},w={_p:r,$id:e,$onAction:cv.bind(null,f),$patch:m,$reset:v,$subscribe(k,A={}){const P=cv(c,k,A.detached,()=>z()),z=p.run(()=>xe(()=>r.state.value[e],I=>{(A.flush==="sync"?h:l)&&k({storeId:e,type:Ys.direct,events:s},I)},$i({},a,A)));return P},$dispose:y},S=kt(w);r._s.set(e,S);const T=(r._a&&r._a.runWithContext||Dk)(()=>r._e.run(()=>(p=Ep()).run(()=>t({action:b}))));for(const k in T){const A=T[k];if(Pt(A)&&!$k(A)||Qi(A))u||(d&&Bk(A)&&(Pt(A)?A.value=d[k]:hh(A,d[k])),r.state.value[e][k]=A);else if(typeof A=="function"){const P=b(A,k);T[k]=P,o.actions[k]=A}}return $i(S,T),$i(at(S),T),Object.defineProperty(S,"$state",{get:()=>r.state.value[e],set:k=>{m(A=>{$i(A,k)})}}),r._p.forEach(k=>{$i(S,p.run(()=>k({store:S,app:r._a,pinia:r,options:o})))}),d&&u&&n.hydrate&&n.hydrate(S.$state,d),l=!0,h=!0,S}/*! #__NO_SIDE_EFFECTS__ */function us(e,t,n){let r,i;const u=typeof t=="function";typeof e=="string"?(r=e,i=u?n:t):(i=e,r=e.id);function p(o,a){const l=hT();return o=o||(l?qe(p1,null):null),o&&yf(o),o=h1,o._s.has(r)||(u?g1(r,t,i,o):Nk(r,i,o)),o._s.get(r)}return p.$id=r,p}/*!
|
|
* vue-router v4.5.1
|
|
* (c) 2025 Eduardo San Martin Morote
|
|
* @license MIT
|
|
*/const Oo=typeof document<"u";function v1(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function zk(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&v1(e.default)}const St=Object.assign;function id(e,t){const n={};for(const r in t){const i=t[r];n[r]=Ar(i)?i.map(e):e(i)}return n}const Ks=()=>{},Ar=Array.isArray,y1=/#/g,jk=/&/g,Vk=/\//g,Uk=/=/g,Hk=/\?/g,b1=/\+/g,Wk=/%5B/g,Gk=/%5D/g,_1=/%5E/g,Yk=/%60/g,w1=/%7B/g,Kk=/%7C/g,S1=/%7D/g,Xk=/%20/g;function Kp(e){return encodeURI(""+e).replace(Kk,"|").replace(Wk,"[").replace(Gk,"]")}function qk(e){return Kp(e).replace(w1,"{").replace(S1,"}").replace(_1,"^")}function ph(e){return Kp(e).replace(b1,"%2B").replace(Xk,"+").replace(y1,"%23").replace(jk,"%26").replace(Yk,"`").replace(w1,"{").replace(S1,"}").replace(_1,"^")}function Zk(e){return ph(e).replace(Uk,"%3D")}function Jk(e){return Kp(e).replace(y1,"%23").replace(Hk,"%3F")}function Qk(e){return e==null?"":Jk(e).replace(Vk,"%2F")}function vl(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const eE=/\/$/,tE=e=>e.replace(eE,"");function ad(e,t,n="/"){let r,i={},u="",p="";const o=t.indexOf("#");let a=t.indexOf("?");return o<a&&o>=0&&(a=-1),a>-1&&(r=t.slice(0,a),u=t.slice(a+1,o>-1?o:t.length),i=e(u)),o>-1&&(r=r||t.slice(0,o),p=t.slice(o,t.length)),r=aE(r!=null?r:t,n),{fullPath:r+(u&&"?")+u+p,path:r,query:i,hash:vl(p)}}function nE(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function dv(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function rE(e,t,n){const r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&Go(t.matched[r],n.matched[i])&&C1(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Go(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function C1(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!iE(e[n],t[n]))return!1;return!0}function iE(e,t){return Ar(e)?hv(e,t):Ar(t)?hv(t,e):e===t}function hv(e,t){return Ar(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function aE(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),i=r[r.length-1];(i===".."||i===".")&&r.push("");let u=n.length-1,p,o;for(p=0;p<r.length;p++)if(o=r[p],o!==".")if(o==="..")u>1&&u--;else break;return n.slice(0,u).join("/")+"/"+r.slice(p).join("/")}const Ri={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var yl;(function(e){e.pop="pop",e.push="push"})(yl||(yl={}));var Xs;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Xs||(Xs={}));function oE(e){if(!e)if(Oo){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),tE(e)}const sE=/^[^#]+#/;function lE(e,t){return e.replace(sE,"#")+t}function uE(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const bf=()=>({left:window.scrollX,top:window.scrollY});function cE(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),i=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=uE(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function pv(e,t){return(history.state?history.state.position-t:-1)+e}const mh=new Map;function fE(e,t){mh.set(e,t)}function dE(e){const t=mh.get(e);return mh.delete(e),t}let hE=()=>location.protocol+"//"+location.host;function x1(e,t){const{pathname:n,search:r,hash:i}=t,u=e.indexOf("#");if(u>-1){let o=i.includes(e.slice(u))?e.slice(u).length:1,a=i.slice(o);return a[0]!=="/"&&(a="/"+a),dv(a,"")}return dv(n,e)+r+i}function pE(e,t,n,r){let i=[],u=[],p=null;const o=({state:f})=>{const s=x1(e,location),d=n.value,g=t.value;let m=0;if(f){if(n.value=s,t.value=f,p&&p===d){p=null;return}m=g?f.position-g.position:0}else r(s);i.forEach(v=>{v(n.value,d,{delta:m,type:yl.pop,direction:m?m>0?Xs.forward:Xs.back:Xs.unknown})})};function a(){p=n.value}function l(f){i.push(f);const s=()=>{const d=i.indexOf(f);d>-1&&i.splice(d,1)};return u.push(s),s}function h(){const{history:f}=window;!f.state||f.replaceState(St({},f.state,{scroll:bf()}),"")}function c(){for(const f of u)f();u=[],window.removeEventListener("popstate",o),window.removeEventListener("beforeunload",h)}return window.addEventListener("popstate",o),window.addEventListener("beforeunload",h,{passive:!0}),{pauseListeners:a,listen:l,destroy:c}}function mv(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?bf():null}}function mE(e){const{history:t,location:n}=window,r={value:x1(e,n)},i={value:t.state};i.value||u(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function u(a,l,h){const c=e.indexOf("#"),f=c>-1?(n.host&&document.querySelector("base")?e:e.slice(c))+a:hE()+e+a;try{t[h?"replaceState":"pushState"](l,"",f),i.value=l}catch(s){console.error(s),n[h?"replace":"assign"](f)}}function p(a,l){const h=St({},t.state,mv(i.value.back,a,i.value.forward,!0),l,{position:i.value.position});u(a,h,!0),r.value=a}function o(a,l){const h=St({},i.value,t.state,{forward:a,scroll:bf()});u(h.current,h,!0);const c=St({},mv(r.value,a,null),{position:h.position+1},l);u(a,c,!1),r.value=a}return{location:r,state:i,push:o,replace:p}}function gE(e){e=oE(e);const t=mE(e),n=pE(e,t.state,t.location,t.replace);function r(u,p=!0){p||n.pauseListeners(),history.go(u)}const i=St({location:"",base:e,go:r,createHref:lE.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function vE(e){return typeof e=="string"||e&&typeof e=="object"}function T1(e){return typeof e=="string"||typeof e=="symbol"}const k1=Symbol("");var gv;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(gv||(gv={}));function Yo(e,t){return St(new Error,{type:e,[k1]:!0},t)}function ii(e,t){return e instanceof Error&&k1 in e&&(t==null||!!(e.type&t))}const vv="[^/]+?",yE={sensitive:!1,strict:!1,start:!0,end:!0},bE=/[.+*?^${}()[\]/\\]/g;function _E(e,t){const n=St({},yE,t),r=[];let i=n.start?"^":"";const u=[];for(const l of e){const h=l.length?[]:[90];n.strict&&!l.length&&(i+="/");for(let c=0;c<l.length;c++){const f=l[c];let s=40+(n.sensitive?.25:0);if(f.type===0)c||(i+="/"),i+=f.value.replace(bE,"\\$&"),s+=40;else if(f.type===1){const{value:d,repeatable:g,optional:m,regexp:v}=f;u.push({name:d,repeatable:g,optional:m});const y=v||vv;if(y!==vv){s+=10;try{new RegExp(`(${y})`)}catch(w){throw new Error(`Invalid custom RegExp for param "${d}" (${y}): `+w.message)}}let b=g?`((?:${y})(?:/(?:${y}))*)`:`(${y})`;c||(b=m&&l.length<2?`(?:/${b})`:"/"+b),m&&(b+="?"),i+=b,s+=20,m&&(s+=-8),g&&(s+=-20),y===".*"&&(s+=-50)}h.push(s)}r.push(h)}if(n.strict&&n.end){const l=r.length-1;r[l][r[l].length-1]+=.7000000000000001}n.strict||(i+="/?"),n.end?i+="$":n.strict&&!i.endsWith("/")&&(i+="(?:/|$)");const p=new RegExp(i,n.sensitive?"":"i");function o(l){const h=l.match(p),c={};if(!h)return null;for(let f=1;f<h.length;f++){const s=h[f]||"",d=u[f-1];c[d.name]=s&&d.repeatable?s.split("/"):s}return c}function a(l){let h="",c=!1;for(const f of e){(!c||!h.endsWith("/"))&&(h+="/"),c=!1;for(const s of f)if(s.type===0)h+=s.value;else if(s.type===1){const{value:d,repeatable:g,optional:m}=s,v=d in l?l[d]:"";if(Ar(v)&&!g)throw new Error(`Provided param "${d}" is an array but it is not repeatable (* or + modifiers)`);const y=Ar(v)?v.join("/"):v;if(!y)if(m)f.length<2&&(h.endsWith("/")?h=h.slice(0,-1):c=!0);else throw new Error(`Missing required param "${d}"`);h+=y}}return h||"/"}return{re:p,score:r,keys:u,parse:o,stringify:a}}function wE(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===40+40?-1:1:e.length>t.length?t.length===1&&t[0]===40+40?1:-1:0}function E1(e,t){let n=0;const r=e.score,i=t.score;for(;n<r.length&&n<i.length;){const u=wE(r[n],i[n]);if(u)return u;n++}if(Math.abs(i.length-r.length)===1){if(yv(r))return 1;if(yv(i))return-1}return i.length-r.length}function yv(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const SE={type:0,value:""},CE=/[a-zA-Z0-9_]/;function xE(e){if(!e)return[[]];if(e==="/")return[[SE]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(s){throw new Error(`ERR (${n})/"${l}": ${s}`)}let n=0,r=n;const i=[];let u;function p(){u&&i.push(u),u=[]}let o=0,a,l="",h="";function c(){!l||(n===0?u.push({type:0,value:l}):n===1||n===2||n===3?(u.length>1&&(a==="*"||a==="+")&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),u.push({type:1,value:l,regexp:h,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):t("Invalid state to consume buffer"),l="")}function f(){l+=a}for(;o<e.length;){if(a=e[o++],a==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:a==="/"?(l&&c(),p()):a===":"?(c(),n=1):f();break;case 4:f(),n=r;break;case 1:a==="("?n=2:CE.test(a)?f():(c(),n=0,a!=="*"&&a!=="?"&&a!=="+"&&o--);break;case 2:a===")"?h[h.length-1]=="\\"?h=h.slice(0,-1)+a:n=3:h+=a;break;case 3:c(),n=0,a!=="*"&&a!=="?"&&a!=="+"&&o--,h="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${l}"`),c(),p(),i}function TE(e,t,n){const r=_E(xE(e.path),n),i=St(r,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function kE(e,t){const n=[],r=new Map;t=Sv({strict:!1,end:!0,sensitive:!1},t);function i(c){return r.get(c)}function u(c,f,s){const d=!s,g=_v(c);g.aliasOf=s&&s.record;const m=Sv(t,c),v=[g];if("alias"in c){const w=typeof c.alias=="string"?[c.alias]:c.alias;for(const S of w)v.push(_v(St({},g,{components:s?s.record.components:g.components,path:S,aliasOf:s?s.record:g})))}let y,b;for(const w of v){const{path:S}=w;if(f&&S[0]!=="/"){const C=f.record.path,T=C[C.length-1]==="/"?"":"/";w.path=f.record.path+(S&&T+S)}if(y=TE(w,f,m),s?s.alias.push(y):(b=b||y,b!==y&&b.alias.push(y),d&&c.name&&!wv(y)&&p(c.name)),O1(y)&&a(y),g.children){const C=g.children;for(let T=0;T<C.length;T++)u(C[T],y,s&&s.children[T])}s=s||y}return b?()=>{p(b)}:Ks}function p(c){if(T1(c)){const f=r.get(c);f&&(r.delete(c),n.splice(n.indexOf(f),1),f.children.forEach(p),f.alias.forEach(p))}else{const f=n.indexOf(c);f>-1&&(n.splice(f,1),c.record.name&&r.delete(c.record.name),c.children.forEach(p),c.alias.forEach(p))}}function o(){return n}function a(c){const f=AE(c,n);n.splice(f,0,c),c.record.name&&!wv(c)&&r.set(c.record.name,c)}function l(c,f){let s,d={},g,m;if("name"in c&&c.name){if(s=r.get(c.name),!s)throw Yo(1,{location:c});m=s.record.name,d=St(bv(f.params,s.keys.filter(b=>!b.optional).concat(s.parent?s.parent.keys.filter(b=>b.optional):[]).map(b=>b.name)),c.params&&bv(c.params,s.keys.map(b=>b.name))),g=s.stringify(d)}else if(c.path!=null)g=c.path,s=n.find(b=>b.re.test(g)),s&&(d=s.parse(g),m=s.record.name);else{if(s=f.name?r.get(f.name):n.find(b=>b.re.test(f.path)),!s)throw Yo(1,{location:c,currentLocation:f});m=s.record.name,d=St({},f.params,c.params),g=s.stringify(d)}const v=[];let y=s;for(;y;)v.unshift(y.record),y=y.parent;return{name:m,path:g,params:d,matched:v,meta:OE(v)}}e.forEach(c=>u(c));function h(){n.length=0,r.clear()}return{addRoute:u,resolve:l,removeRoute:p,clearRoutes:h,getRoutes:o,getRecordMatcher:i}}function bv(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function _v(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:EE(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function EE(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function wv(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function OE(e){return e.reduce((t,n)=>St(t,n.meta),{})}function Sv(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function AE(e,t){let n=0,r=t.length;for(;n!==r;){const u=n+r>>1;E1(e,t[u])<0?r=u:n=u+1}const i=PE(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function PE(e){let t=e;for(;t=t.parent;)if(O1(t)&&E1(e,t)===0)return t}function O1({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function IE(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;i<r.length;++i){const u=r[i].replace(b1," "),p=u.indexOf("="),o=vl(p<0?u:u.slice(0,p)),a=p<0?null:vl(u.slice(p+1));if(o in t){let l=t[o];Ar(l)||(l=t[o]=[l]),l.push(a)}else t[o]=a}return t}function Cv(e){let t="";for(let n in e){const r=e[n];if(n=Zk(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(Ar(r)?r.map(u=>u&&ph(u)):[r&&ph(r)]).forEach(u=>{u!==void 0&&(t+=(t.length?"&":"")+n,u!=null&&(t+="="+u))})}return t}function ME(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Ar(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return t}const LE=Symbol(""),xv=Symbol(""),Xp=Symbol(""),qp=Symbol(""),gh=Symbol("");function Es(){let e=[];function t(r){return e.push(r),()=>{const i=e.indexOf(r);i>-1&&e.splice(i,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Wi(e,t,n,r,i,u=p=>p()){const p=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((o,a)=>{const l=f=>{f===!1?a(Yo(4,{from:n,to:t})):f instanceof Error?a(f):vE(f)?a(Yo(2,{from:t,to:f})):(p&&r.enterCallbacks[i]===p&&typeof f=="function"&&p.push(f),o())},h=u(()=>e.call(r&&r.instances[i],t,n,l));let c=Promise.resolve(h);e.length<3&&(c=c.then(l)),c.catch(f=>a(f))})}function od(e,t,n,r,i=u=>u()){const u=[];for(const p of e)for(const o in p.components){let a=p.components[o];if(!(t!=="beforeRouteEnter"&&!p.instances[o]))if(v1(a)){const h=(a.__vccOpts||a)[t];h&&u.push(Wi(h,n,r,p,o,i))}else{let l=a();u.push(()=>l.then(h=>{if(!h)throw new Error(`Couldn't resolve component "${o}" at "${p.path}"`);const c=zk(h)?h.default:h;p.mods[o]=h,p.components[o]=c;const s=(c.__vccOpts||c)[t];return s&&Wi(s,n,r,p,o,i)()}))}}return u}function Tv(e){const t=qe(Xp),n=qe(qp),r=ee(()=>{const a=_(e.to);return t.resolve(a)}),i=ee(()=>{const{matched:a}=r.value,{length:l}=a,h=a[l-1],c=n.matched;if(!h||!c.length)return-1;const f=c.findIndex(Go.bind(null,h));if(f>-1)return f;const s=kv(a[l-2]);return l>1&&kv(h)===s&&c[c.length-1].path!==s?c.findIndex(Go.bind(null,a[l-2])):f}),u=ee(()=>i.value>-1&&$E(n.params,r.value.params)),p=ee(()=>i.value>-1&&i.value===n.matched.length-1&&C1(n.params,r.value.params));function o(a={}){if(BE(a)){const l=t[_(e.replace)?"replace":"push"](_(e.to)).catch(Ks);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>l),l}return Promise.resolve()}return{route:r,href:ee(()=>r.value.href),isActive:u,isExactActive:p,navigate:o}}function RE(e){return e.length===1?e[0]:e}const DE=be({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:Tv,setup(e,{slots:t}){const n=kt(Tv(e)),{options:r}=qe(Xp),i=ee(()=>({[Ev(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Ev(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const u=t.default&&RE(t.default(n));return e.custom?u:Ct("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},u)}}}),FE=DE;function BE(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function $E(e,t){for(const n in t){const r=t[n],i=e[n];if(typeof r=="string"){if(r!==i)return!1}else if(!Ar(i)||i.length!==r.length||r.some((u,p)=>u!==i[p]))return!1}return!0}function kv(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ev=(e,t,n)=>e!=null?e:t!=null?t:n,NE=be({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=qe(gh),i=ee(()=>e.route||r.value),u=qe(xv,0),p=ee(()=>{let l=_(u);const{matched:h}=i.value;let c;for(;(c=h[l])&&!c.components;)l++;return l}),o=ee(()=>i.value.matched[p.value]);vt(xv,ee(()=>p.value+1)),vt(LE,o),vt(gh,i);const a=ae();return xe(()=>[a.value,o.value,e.name],([l,h,c],[f,s,d])=>{h&&(h.instances[c]=l,s&&s!==h&&l&&l===f&&(h.leaveGuards.size||(h.leaveGuards=s.leaveGuards),h.updateGuards.size||(h.updateGuards=s.updateGuards))),l&&h&&(!s||!Go(h,s)||!f)&&(h.enterCallbacks[c]||[]).forEach(g=>g(l))},{flush:"post"}),()=>{const l=i.value,h=e.name,c=o.value,f=c&&c.components[h];if(!f)return Ov(n.default,{Component:f,route:l});const s=c.props[h],d=s?s===!0?l.params:typeof s=="function"?s(l):s:null,m=Ct(f,St({},d,t,{onVnodeUnmounted:v=>{v.component.isUnmounted&&(c.instances[h]=null)},ref:a}));return Ov(n.default,{Component:m,route:l})||m}}});function Ov(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const A1=NE;function zE(e){const t=kE(e.routes,e),n=e.parseQuery||IE,r=e.stringifyQuery||Cv,i=e.history,u=Es(),p=Es(),o=Es(),a=mn(Ri);let l=Ri;Oo&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const h=id.bind(null,H=>""+H),c=id.bind(null,Qk),f=id.bind(null,vl);function s(H,Q){let te,fe;return T1(H)?(te=t.getRecordMatcher(H),fe=Q):fe=H,t.addRoute(fe,te)}function d(H){const Q=t.getRecordMatcher(H);Q&&t.removeRoute(Q)}function g(){return t.getRoutes().map(H=>H.record)}function m(H){return!!t.getRecordMatcher(H)}function v(H,Q){if(Q=St({},Q||a.value),typeof H=="string"){const x=ad(n,H,Q.path),U=t.resolve({path:x.path},Q),K=i.createHref(x.fullPath);return St(x,U,{params:f(U.params),hash:vl(x.hash),redirectedFrom:void 0,href:K})}let te;if(H.path!=null)te=St({},H,{path:ad(n,H.path,Q.path).path});else{const x=St({},H.params);for(const U in x)x[U]==null&&delete x[U];te=St({},H,{params:c(x)}),Q.params=c(Q.params)}const fe=t.resolve(te,Q),me=H.hash||"";fe.params=h(f(fe.params));const _e=nE(r,St({},H,{hash:qk(me),path:fe.path})),j=i.createHref(_e);return St({fullPath:_e,hash:me,query:r===Cv?ME(H.query):H.query||{}},fe,{redirectedFrom:void 0,href:j})}function y(H){return typeof H=="string"?ad(n,H,a.value.path):St({},H)}function b(H,Q){if(l!==H)return Yo(8,{from:Q,to:H})}function w(H){return T(H)}function S(H){return w(St(y(H),{replace:!0}))}function C(H){const Q=H.matched[H.matched.length-1];if(Q&&Q.redirect){const{redirect:te}=Q;let fe=typeof te=="function"?te(H):te;return typeof fe=="string"&&(fe=fe.includes("?")||fe.includes("#")?fe=y(fe):{path:fe},fe.params={}),St({query:H.query,hash:H.hash,params:fe.path!=null?{}:H.params},fe)}}function T(H,Q){const te=l=v(H),fe=a.value,me=H.state,_e=H.force,j=H.replace===!0,x=C(te);if(x)return T(St(y(x),{state:typeof x=="object"?St({},me,x.state):me,force:_e,replace:j}),Q||te);const U=te;U.redirectedFrom=Q;let K;return!_e&&rE(r,fe,te)&&(K=Yo(16,{to:U,from:fe}),M(fe,fe,!0,!1)),(K?Promise.resolve(K):P(U,fe)).catch(L=>ii(L)?ii(L,2)?L:V(L):J(L,U,fe)).then(L=>{if(L){if(ii(L,2))return T(St({replace:j},y(L.to),{state:typeof L.to=="object"?St({},me,L.to.state):me,force:_e}),Q||U)}else L=I(U,fe,!0,j,me);return z(U,fe,L),L})}function k(H,Q){const te=b(H,Q);return te?Promise.reject(te):Promise.resolve()}function A(H){const Q=D.values().next().value;return Q&&typeof Q.runWithContext=="function"?Q.runWithContext(H):H()}function P(H,Q){let te;const[fe,me,_e]=jE(H,Q);te=od(fe.reverse(),"beforeRouteLeave",H,Q);for(const x of fe)x.leaveGuards.forEach(U=>{te.push(Wi(U,H,Q))});const j=k.bind(null,H,Q);return te.push(j),Z(te).then(()=>{te=[];for(const x of u.list())te.push(Wi(x,H,Q));return te.push(j),Z(te)}).then(()=>{te=od(me,"beforeRouteUpdate",H,Q);for(const x of me)x.updateGuards.forEach(U=>{te.push(Wi(U,H,Q))});return te.push(j),Z(te)}).then(()=>{te=[];for(const x of _e)if(x.beforeEnter)if(Ar(x.beforeEnter))for(const U of x.beforeEnter)te.push(Wi(U,H,Q));else te.push(Wi(x.beforeEnter,H,Q));return te.push(j),Z(te)}).then(()=>(H.matched.forEach(x=>x.enterCallbacks={}),te=od(_e,"beforeRouteEnter",H,Q,A),te.push(j),Z(te))).then(()=>{te=[];for(const x of p.list())te.push(Wi(x,H,Q));return te.push(j),Z(te)}).catch(x=>ii(x,8)?x:Promise.reject(x))}function z(H,Q,te){o.list().forEach(fe=>A(()=>fe(H,Q,te)))}function I(H,Q,te,fe,me){const _e=b(H,Q);if(_e)return _e;const j=Q===Ri,x=Oo?history.state:{};te&&(fe||j?i.replace(H.fullPath,St({scroll:j&&x&&x.scroll},me)):i.push(H.fullPath,me)),a.value=H,M(H,Q,te,j),V()}let $;function O(){$||($=i.listen((H,Q,te)=>{if(!B.listening)return;const fe=v(H),me=C(fe);if(me){T(St(me,{replace:!0,force:!0}),fe).catch(Ks);return}l=fe;const _e=a.value;Oo&&fE(pv(_e.fullPath,te.delta),bf()),P(fe,_e).catch(j=>ii(j,12)?j:ii(j,2)?(T(St(y(j.to),{force:!0}),fe).then(x=>{ii(x,20)&&!te.delta&&te.type===yl.pop&&i.go(-1,!1)}).catch(Ks),Promise.reject()):(te.delta&&i.go(-te.delta,!1),J(j,fe,_e))).then(j=>{j=j||I(fe,_e,!1),j&&(te.delta&&!ii(j,8)?i.go(-te.delta,!1):te.type===yl.pop&&ii(j,20)&&i.go(-1,!1)),z(fe,_e,j)}).catch(Ks)}))}let Y=Es(),re=Es(),q;function J(H,Q,te){V(H);const fe=re.list();return fe.length?fe.forEach(me=>me(H,Q,te)):console.error(H),Promise.reject(H)}function E(){return q&&a.value!==Ri?Promise.resolve():new Promise((H,Q)=>{Y.add([H,Q])})}function V(H){return q||(q=!H,O(),Y.list().forEach(([Q,te])=>H?te(H):Q()),Y.reset()),H}function M(H,Q,te,fe){const{scrollBehavior:me}=e;if(!Oo||!me)return Promise.resolve();const _e=!te&&dE(pv(H.fullPath,0))||(fe||!te)&&history.state&&history.state.scroll||null;return Ge().then(()=>me(H,Q,_e)).then(j=>j&&cE(j)).catch(j=>J(j,H,Q))}const R=H=>i.go(H);let G;const D=new Set,B={currentRoute:a,listening:!0,addRoute:s,removeRoute:d,clearRoutes:t.clearRoutes,hasRoute:m,getRoutes:g,resolve:v,options:e,push:w,replace:S,go:R,back:()=>R(-1),forward:()=>R(1),beforeEach:u.add,beforeResolve:p.add,afterEach:o.add,onError:re.add,isReady:E,install(H){const Q=this;H.component("RouterLink",FE),H.component("RouterView",A1),H.config.globalProperties.$router=Q,Object.defineProperty(H.config.globalProperties,"$route",{enumerable:!0,get:()=>_(a)}),Oo&&!G&&a.value===Ri&&(G=!0,w(i.location).catch(me=>{}));const te={};for(const me in Ri)Object.defineProperty(te,me,{get:()=>a.value[me],enumerable:!0});H.provide(Xp,Q),H.provide(qp,Dp(te)),H.provide(gh,a);const fe=H.unmount;D.add(H),H.unmount=function(){D.delete(H),D.size<1&&(l=Ri,$&&$(),$=null,a.value=Ri,G=!1,q=!1),fe()}}};function Z(H){return H.reduce((Q,te)=>Q.then(()=>A(te)),Promise.resolve())}return B}function jE(e,t){const n=[],r=[],i=[],u=Math.max(t.matched.length,e.matched.length);for(let p=0;p<u;p++){const o=t.matched[p];o&&(e.matched.find(l=>Go(l,o))?r.push(o):n.push(o));const a=e.matched[p];a&&(t.matched.find(l=>Go(l,a))||i.push(a))}return[n,r,i]}function VE(e){return qe(qp)}/*! Element Plus Icons Vue v2.3.2 */var UE=be({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,n)=>(N(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.59 30.59 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.59 30.59 0 0 0-42.752 0z"})]))}}),Ko=UE,HE=be({name:"ArrowLeft",__name:"arrow-left",setup(e){return(t,n)=>(N(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.59 30.59 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.59 30.59 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0"})]))}}),_f=HE,WE=be({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,n)=>(N(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"M340.864 149.312a30.59 30.59 0 0 0 0 42.752L652.736 512 340.864 831.872a30.59 30.59 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),cs=WE,GE=be({name:"ArrowUp",__name:"arrow-up",setup(e){return(t,n)=>(N(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}}),vh=GE,YE=be({name:"Back",__name:"back",setup(e){return(t,n)=>(N(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64"}),ne("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312z"})]))}}),P1=YE,KE=be({name:"Check",__name:"check",setup(e){return(t,n)=>(N(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"})]))}}),I1=KE,XE=be({name:"CircleCheckFilled",__name:"circle-check-filled",setup(e){return(t,n)=>(N(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),M1=XE,qE=be({name:"CircleCheck",__name:"circle-check",setup(e){return(t,n)=>(N(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),ne("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752z"})]))}}),eu=qE,ZE=be({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,n)=>(N(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),L1=ZE,JE=be({name:"CircleClose",__name:"circle-close",setup(e){return(t,n)=>(N(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),ne("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),wf=JE,QE=be({name:"CloseBold",__name:"close-bold",setup(e){return(t,n)=>(N(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"M195.2 195.2a64 64 0 0 1 90.496 0L512 421.504 738.304 195.2a64 64 0 0 1 90.496 90.496L602.496 512 828.8 738.304a64 64 0 0 1-90.496 90.496L512 602.496 285.696 828.8a64 64 0 0 1-90.496-90.496L421.504 512 195.2 285.696a64 64 0 0 1 0-90.496"})]))}}),eO=QE,tO=be({name:"Close",__name:"close",setup(e){return(t,n)=>(N(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),Kr=tO,nO=be({name:"Comment",__name:"comment",setup(e){return(t,n)=>(N(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"M736 504a56 56 0 1 1 0-112 56 56 0 0 1 0 112m-224 0a56 56 0 1 1 0-112 56 56 0 0 1 0 112m-224 0a56 56 0 1 1 0-112 56 56 0 0 1 0 112M128 128v640h192v160l224-160h352V128z"})]))}}),rO=nO,iO=be({name:"DArrowLeft",__name:"d-arrow-left",setup(e){return(t,n)=>(N(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.59 30.59 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.59 30.59 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672zm256 0a29.12 29.12 0 0 1 41.728 0 30.59 30.59 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.59 30.59 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672z"})]))}}),aO=iO,oO=be({name:"DArrowRight",__name:"d-arrow-right",setup(e){return(t,n)=>(N(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.59 30.59 0 0 1 0-42.752L764.736 512 452.864 192a30.59 30.59 0 0 1 0-42.688m-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.59 30.59 0 0 1 0-42.752L508.736 512 196.864 192a30.59 30.59 0 0 1 0-42.688"})]))}}),sO=oO,lO=be({name:"Delete",__name:"delete",setup(e){return(t,n)=>(N(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),Ki=lO,uO=be({name:"Document",__name:"document",setup(e){return(t,n)=>(N(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"})]))}}),R1=uO,cO=be({name:"Download",__name:"download",setup(e){return(t,n)=>(N(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64z"})]))}}),bl=cO,fO=be({name:"EditPen",__name:"edit-pen",setup(e){return(t,n)=>(N(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"m199.04 672.64 193.984 112 224-387.968-193.92-112-224 388.032zm-23.872 60.16 32.896 148.288 144.896-45.696zM455.04 229.248l193.92 112 56.704-98.112-193.984-112zM104.32 708.8l384-665.024 304.768 175.936L409.152 884.8h.064l-248.448 78.336zm384 254.272v-64h448v64z"})]))}}),dO=fO,hO=be({name:"Filter",__name:"filter",setup(e){return(t,n)=>(N(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"M384 523.392V928a32 32 0 0 0 46.336 28.608l192-96A32 32 0 0 0 640 832V523.392l280.768-343.104a32 32 0 1 0-49.536-40.576l-288 352A32 32 0 0 0 576 512v300.224l-128 64V512a32 32 0 0 0-7.232-20.288L195.52 192H704a32 32 0 1 0 0-64H128a32 32 0 0 0-24.768 52.288z"})]))}}),pO=hO,mO=be({name:"FullScreen",__name:"full-screen",setup(e){return(t,n)=>(N(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"})]))}}),gO=mO,vO=be({name:"Hide",__name:"hide",setup(e){return(t,n)=>(N(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4s-12.8-9.6-22.4-9.6-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176S0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4s3.2 16 9.6 22.4 12.8 9.6 22.4 9.6 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4m-646.4 528Q115.2 579.2 76.8 512q43.2-72 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4m140.8-96Q352 555.2 352 512c0-44.8 16-83.2 48-112s67.2-48 112-48c28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6q-43.2 72-153.6 172.8c-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176S1024 528 1024 512s-48.001-73.6-134.401-176"}),ne("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112s-67.2 48-112 48"})]))}}),yO=vO,bO=be({name:"InfoFilled",__name:"info-filled",setup(e){return(t,n)=>(N(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.99 12.99 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),Zp=bO,_O=be({name:"Link",__name:"link",setup(e){return(t,n)=>(N(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"M715.648 625.152 670.4 579.904l90.496-90.56c75.008-74.944 85.12-186.368 22.656-248.896-62.528-62.464-173.952-52.352-248.96 22.656L444.16 353.6l-45.248-45.248 90.496-90.496c100.032-99.968 251.968-110.08 339.456-22.656 87.488 87.488 77.312 239.424-22.656 339.456l-90.496 90.496zm-90.496 90.496-90.496 90.496C434.624 906.112 282.688 916.224 195.2 828.8c-87.488-87.488-77.312-239.424 22.656-339.456l90.496-90.496 45.248 45.248-90.496 90.56c-75.008 74.944-85.12 186.368-22.656 248.896 62.528 62.464 173.952 52.352 248.96-22.656l90.496-90.496zm0-362.048 45.248 45.248L398.848 670.4 353.6 625.152z"})]))}}),wO=_O,SO=be({name:"Loading",__name:"loading",setup(e){return(t,n)=>(N(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248m452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248M828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0"})]))}}),Jp=SO,CO=be({name:"MagicStick",__name:"magic-stick",setup(e){return(t,n)=>(N(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"M512 64h64v192h-64zm0 576h64v192h-64zM160 480v-64h192v64zm576 0v-64h192v64zM249.856 199.04l45.248-45.184L430.848 289.6 385.6 334.848 249.856 199.104zM657.152 606.4l45.248-45.248 135.744 135.744-45.248 45.248zM114.048 923.2 68.8 877.952l316.8-316.8 45.248 45.248zM702.4 334.848 657.152 289.6l135.744-135.744 45.248 45.248z"})]))}}),xO=CO,TO=be({name:"Menu",__name:"menu",setup(e){return(t,n)=>(N(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"M160 448a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zM160 896a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32z"})]))}}),kO=TO,EO=be({name:"Minus",__name:"minus",setup(e){return(t,n)=>(N(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),D1=EO,OO=be({name:"MoreFilled",__name:"more-filled",setup(e){return(t,n)=>(N(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224"})]))}}),Av=OO,AO=be({name:"More",__name:"more",setup(e){return(t,n)=>(N(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96"})]))}}),PO=AO,IO=be({name:"Operation",__name:"operation",setup(e){return(t,n)=>(N(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"M389.44 768a96.064 96.064 0 0 1 181.12 0H896v64H570.56a96.064 96.064 0 0 1-181.12 0H128v-64zm192-288a96.064 96.064 0 0 1 181.12 0H896v64H762.56a96.064 96.064 0 0 1-181.12 0H128v-64zm-320-288a96.064 96.064 0 0 1 181.12 0H896v64H442.56a96.064 96.064 0 0 1-181.12 0H128v-64z"})]))}}),MO=IO,LO=be({name:"PictureFilled",__name:"picture-filled",setup(e){return(t,n)=>(N(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112M256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384"})]))}}),ku=LO,RO=be({name:"Plus",__name:"plus",setup(e){return(t,n)=>(N(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),Sf=RO,DO=be({name:"RefreshLeft",__name:"refresh-left",setup(e){return(t,n)=>(N(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"})]))}}),F1=DO,FO=be({name:"RefreshRight",__name:"refresh-right",setup(e){return(t,n)=>(N(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88"})]))}}),B1=FO,BO=be({name:"Refresh",__name:"refresh",setup(e){return(t,n)=>(N(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"})]))}}),yh=BO,$O=be({name:"Right",__name:"right",setup(e){return(t,n)=>(N(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"M754.752 480H160a32 32 0 1 0 0 64h594.752L521.344 777.344a32 32 0 0 0 45.312 45.312l288-288a32 32 0 0 0 0-45.312l-288-288a32 32 0 1 0-45.312 45.312z"})]))}}),NO=$O,zO=be({name:"ScaleToOriginal",__name:"scale-to-original",setup(e){return(t,n)=>(N(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.12 30.12 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.12 30.12 0 0 0-30.118-30.118m-361.412 0a30.12 30.12 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.12 30.12 0 0 0-30.118-30.118M512 361.412a30.12 30.12 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.12 30.12 0 0 0 512 361.412M512 512a30.12 30.12 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.12 30.12 0 0 0 512 512"})]))}}),jO=zO,VO=be({name:"Sort",__name:"sort",setup(e){return(t,n)=>(N(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"M384 96a32 32 0 0 1 64 0v786.752a32 32 0 0 1-54.592 22.656L95.936 608a32 32 0 0 1 0-45.312h.128a32 32 0 0 1 45.184 0L384 805.632zm192 45.248a32 32 0 0 1 54.592-22.592L928.064 416a32 32 0 0 1 0 45.312h-.128a32 32 0 0 1-45.184 0L640 218.496V928a32 32 0 1 1-64 0z"})]))}}),UO=VO,HO=be({name:"StarFilled",__name:"star-filled",setup(e){return(t,n)=>(N(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"M313.6 924.48a70.4 70.4 0 0 1-74.152-5.365 70.4 70.4 0 0 1-27.992-68.875l37.888-220.928L88.96 472.96a70.4 70.4 0 0 1 3.788-104.225A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 100.246-28.595 70.4 70.4 0 0 1 25.962 28.595l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"})]))}}),$1=HO,WO=be({name:"Star",__name:"star",setup(e){return(t,n)=>(N(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"m512 747.84 228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"})]))}}),GO=WO,YO=be({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,n)=>(N(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),N1=YO,KO=be({name:"Tools",__name:"tools",setup(e){return(t,n)=>(N(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"M764.416 254.72a351.7 351.7 0 0 1 86.336 149.184H960v192.064H850.752a351.7 351.7 0 0 1-86.336 149.312l54.72 94.72-166.272 96-54.592-94.72a352.64 352.64 0 0 1-172.48 0L371.136 936l-166.272-96 54.72-94.72a351.7 351.7 0 0 1-86.336-149.312H64v-192h109.248a351.7 351.7 0 0 1 86.336-149.312L204.8 160l166.208-96h.192l54.656 94.592a352.64 352.64 0 0 1 172.48 0L652.8 64h.128L819.2 160l-54.72 94.72zM704 499.968a192 192 0 1 0-384 0 192 192 0 0 0 384 0"})]))}}),XO=KO,qO=be({name:"UploadFilled",__name:"upload-filled",setup(e){return(t,n)=>(N(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"M544 864V672h128L512 480 352 672h128v192H320v-1.6c-5.376.32-10.496 1.6-16 1.6A240 240 0 0 1 64 624c0-123.136 93.12-223.488 212.608-237.248A239.81 239.81 0 0 1 512 192a239.87 239.87 0 0 1 235.456 194.752c119.488 13.76 212.48 114.112 212.48 237.248a240 240 0 0 1-240 240c-5.376 0-10.56-1.28-16-1.6v1.6z"})]))}}),Qp=qO,ZO=be({name:"View",__name:"view",setup(e){return(t,n)=>(N(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288m0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.19 160.19 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),JO=ZO,QO=be({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,n)=>(N(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.43 58.43 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.43 58.43 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),em=QO,e3=be({name:"ZoomIn",__name:"zoom-in",setup(e){return(t,n)=>(N(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"})]))}}),z1=e3,t3=be({name:"ZoomOut",__name:"zoom-out",setup(e){return(t,n)=>(N(),oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ne("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704M352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64"})]))}}),n3=t3,r3=typeof global=="object"&&global&&global.Object===Object&&global;const j1=r3;var i3=typeof self=="object"&&self&&self.Object===Object&&self,a3=j1||i3||Function("return this")();const Mr=a3;var o3=Mr.Symbol;const Xr=o3;var V1=Object.prototype,s3=V1.hasOwnProperty,l3=V1.toString,Os=Xr?Xr.toStringTag:void 0;function u3(e){var t=s3.call(e,Os),n=e[Os];try{e[Os]=void 0;var r=!0}catch{}var i=l3.call(e);return r&&(t?e[Os]=n:delete e[Os]),i}var c3=Object.prototype,f3=c3.toString;function d3(e){return f3.call(e)}var h3="[object Null]",p3="[object Undefined]",Pv=Xr?Xr.toStringTag:void 0;function fs(e){return e==null?e===void 0?p3:h3:Pv&&Pv in Object(e)?u3(e):d3(e)}function aa(e){return e!=null&&typeof e=="object"}var m3="[object Symbol]";function Cf(e){return typeof e=="symbol"||aa(e)&&fs(e)==m3}function g3(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var v3=Array.isArray;const xi=v3;var y3=1/0,Iv=Xr?Xr.prototype:void 0,Mv=Iv?Iv.toString:void 0;function U1(e){if(typeof e=="string")return e;if(xi(e))return g3(e,U1)+"";if(Cf(e))return Mv?Mv.call(e):"";var t=e+"";return t=="0"&&1/e==-y3?"-0":t}var b3=/\s/;function _3(e){for(var t=e.length;t--&&b3.test(e.charAt(t)););return t}var w3=/^\s+/;function S3(e){return e&&e.slice(0,_3(e)+1).replace(w3,"")}function Pr(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Lv=0/0,C3=/^[-+]0x[0-9a-f]+$/i,x3=/^0b[01]+$/i,T3=/^0o[0-7]+$/i,k3=parseInt;function Rv(e){if(typeof e=="number")return e;if(Cf(e))return Lv;if(Pr(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Pr(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=S3(e);var n=x3.test(e);return n||T3.test(e)?k3(e.slice(2),n?2:8):C3.test(e)?Lv:+e}var E3="[object AsyncFunction]",O3="[object Function]",A3="[object GeneratorFunction]",P3="[object Proxy]";function H1(e){if(!Pr(e))return!1;var t=fs(e);return t==O3||t==A3||t==E3||t==P3}var I3=Mr["__core-js_shared__"];const sd=I3;var Dv=function(){var e=/[^.]+$/.exec(sd&&sd.keys&&sd.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function M3(e){return!!Dv&&Dv in e}var L3=Function.prototype,R3=L3.toString;function ao(e){if(e!=null){try{return R3.call(e)}catch{}try{return e+""}catch{}}return""}var D3=/[\\^$.*+?()[\]{}|]/g,F3=/^\[object .+?Constructor\]$/,B3=Function.prototype,$3=Object.prototype,N3=B3.toString,z3=$3.hasOwnProperty,j3=RegExp("^"+N3.call(z3).replace(D3,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function V3(e){if(!Pr(e)||M3(e))return!1;var t=H1(e)?j3:F3;return t.test(ao(e))}function U3(e,t){return e==null?void 0:e[t]}function oo(e,t){var n=U3(e,t);return V3(n)?n:void 0}var H3=oo(Mr,"WeakMap");const bh=H3;var Fv=Object.create,W3=function(){function e(){}return function(t){if(!Pr(t))return{};if(Fv)return Fv(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const G3=W3;function Y3(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var K3=function(){try{var e=oo(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Bv=K3;function X3(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var q3=9007199254740991,Z3=/^(?:0|[1-9]\d*)$/;function W1(e,t){var n=typeof e;return t=t==null?q3:t,!!t&&(n=="number"||n!="symbol"&&Z3.test(e))&&e>-1&&e%1==0&&e<t}function G1(e,t,n){t=="__proto__"&&Bv?Bv(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function tm(e,t){return e===t||e!==e&&t!==t}var J3=Object.prototype,Q3=J3.hasOwnProperty;function nm(e,t,n){var r=e[t];(!(Q3.call(e,t)&&tm(r,n))||n===void 0&&!(t in e))&&G1(e,t,n)}function xf(e,t,n,r){var i=!n;n||(n={});for(var u=-1,p=t.length;++u<p;){var o=t[u],a=r?r(n[o],e[o],o,n,e):void 0;a===void 0&&(a=e[o]),i?G1(n,o,a):nm(n,o,a)}return n}var e4=9007199254740991;function Y1(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=e4}function K1(e){return e!=null&&Y1(e.length)&&!H1(e)}var t4=Object.prototype;function rm(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||t4;return e===n}function n4(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var r4="[object Arguments]";function $v(e){return aa(e)&&fs(e)==r4}var X1=Object.prototype,i4=X1.hasOwnProperty,a4=X1.propertyIsEnumerable,o4=$v(function(){return arguments}())?$v:function(e){return aa(e)&&i4.call(e,"callee")&&!a4.call(e,"callee")};const s4=o4;function l4(){return!1}var q1=typeof Zn=="object"&&Zn&&!Zn.nodeType&&Zn,Nv=q1&&typeof Jn=="object"&&Jn&&!Jn.nodeType&&Jn,u4=Nv&&Nv.exports===q1,zv=u4?Mr.Buffer:void 0,c4=zv?zv.isBuffer:void 0,f4=c4||l4;const Nc=f4;var d4="[object Arguments]",h4="[object Array]",p4="[object Boolean]",m4="[object Date]",g4="[object Error]",v4="[object Function]",y4="[object Map]",b4="[object Number]",_4="[object Object]",w4="[object RegExp]",S4="[object Set]",C4="[object String]",x4="[object WeakMap]",T4="[object ArrayBuffer]",k4="[object DataView]",E4="[object Float32Array]",O4="[object Float64Array]",A4="[object Int8Array]",P4="[object Int16Array]",I4="[object Int32Array]",M4="[object Uint8Array]",L4="[object Uint8ClampedArray]",R4="[object Uint16Array]",D4="[object Uint32Array]",Nt={};Nt[E4]=Nt[O4]=Nt[A4]=Nt[P4]=Nt[I4]=Nt[M4]=Nt[L4]=Nt[R4]=Nt[D4]=!0;Nt[d4]=Nt[h4]=Nt[T4]=Nt[p4]=Nt[k4]=Nt[m4]=Nt[g4]=Nt[v4]=Nt[y4]=Nt[b4]=Nt[_4]=Nt[w4]=Nt[S4]=Nt[C4]=Nt[x4]=!1;function F4(e){return aa(e)&&Y1(e.length)&&!!Nt[fs(e)]}function im(e){return function(t){return e(t)}}var Z1=typeof Zn=="object"&&Zn&&!Zn.nodeType&&Zn,qs=Z1&&typeof Jn=="object"&&Jn&&!Jn.nodeType&&Jn,B4=qs&&qs.exports===Z1,ld=B4&&j1.process,$4=function(){try{var e=qs&&qs.require&&qs.require("util").types;return e||ld&&ld.binding&&ld.binding("util")}catch{}}();const Xo=$4;var jv=Xo&&Xo.isTypedArray,N4=jv?im(jv):F4;const J1=N4;var z4=Object.prototype,j4=z4.hasOwnProperty;function Q1(e,t){var n=xi(e),r=!n&&s4(e),i=!n&&!r&&Nc(e),u=!n&&!r&&!i&&J1(e),p=n||r||i||u,o=p?n4(e.length,String):[],a=o.length;for(var l in e)(t||j4.call(e,l))&&!(p&&(l=="length"||i&&(l=="offset"||l=="parent")||u&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||W1(l,a)))&&o.push(l);return o}function ew(e,t){return function(n){return e(t(n))}}var V4=ew(Object.keys,Object);const U4=V4;var H4=Object.prototype,W4=H4.hasOwnProperty;function G4(e){if(!rm(e))return U4(e);var t=[];for(var n in Object(e))W4.call(e,n)&&n!="constructor"&&t.push(n);return t}function am(e){return K1(e)?Q1(e):G4(e)}function Y4(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var K4=Object.prototype,X4=K4.hasOwnProperty;function q4(e){if(!Pr(e))return Y4(e);var t=rm(e),n=[];for(var r in e)r=="constructor"&&(t||!X4.call(e,r))||n.push(r);return n}function om(e){return K1(e)?Q1(e,!0):q4(e)}var Z4=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,J4=/^\w*$/;function Q4(e,t){if(xi(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Cf(e)?!0:J4.test(e)||!Z4.test(e)||t!=null&&e in Object(t)}var eA=oo(Object,"create");const _l=eA;function tA(){this.__data__=_l?_l(null):{},this.size=0}function nA(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var rA="__lodash_hash_undefined__",iA=Object.prototype,aA=iA.hasOwnProperty;function oA(e){var t=this.__data__;if(_l){var n=t[e];return n===rA?void 0:n}return aA.call(t,e)?t[e]:void 0}var sA=Object.prototype,lA=sA.hasOwnProperty;function uA(e){var t=this.__data__;return _l?t[e]!==void 0:lA.call(t,e)}var cA="__lodash_hash_undefined__";function fA(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=_l&&t===void 0?cA:t,this}function Ya(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ya.prototype.clear=tA;Ya.prototype.delete=nA;Ya.prototype.get=oA;Ya.prototype.has=uA;Ya.prototype.set=fA;function dA(){this.__data__=[],this.size=0}function Tf(e,t){for(var n=e.length;n--;)if(tm(e[n][0],t))return n;return-1}var hA=Array.prototype,pA=hA.splice;function mA(e){var t=this.__data__,n=Tf(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():pA.call(t,n,1),--this.size,!0}function gA(e){var t=this.__data__,n=Tf(t,e);return n<0?void 0:t[n][1]}function vA(e){return Tf(this.__data__,e)>-1}function yA(e,t){var n=this.__data__,r=Tf(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Ai(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ai.prototype.clear=dA;Ai.prototype.delete=mA;Ai.prototype.get=gA;Ai.prototype.has=vA;Ai.prototype.set=yA;var bA=oo(Mr,"Map");const wl=bA;function _A(){this.size=0,this.__data__={hash:new Ya,map:new(wl||Ai),string:new Ya}}function wA(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function kf(e,t){var n=e.__data__;return wA(t)?n[typeof t=="string"?"string":"hash"]:n.map}function SA(e){var t=kf(this,e).delete(e);return this.size-=t?1:0,t}function CA(e){return kf(this,e).get(e)}function xA(e){return kf(this,e).has(e)}function TA(e,t){var n=kf(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Pi(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Pi.prototype.clear=_A;Pi.prototype.delete=SA;Pi.prototype.get=CA;Pi.prototype.has=xA;Pi.prototype.set=TA;var kA="Expected a function";function sm(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(kA);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],u=n.cache;if(u.has(i))return u.get(i);var p=e.apply(this,r);return n.cache=u.set(i,p)||u,p};return n.cache=new(sm.Cache||Pi),n}sm.Cache=Pi;var EA=500;function OA(e){var t=sm(e,function(r){return n.size===EA&&n.clear(),r}),n=t.cache;return t}var AA=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,PA=/\\(\\)?/g,IA=OA(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(AA,function(n,r,i,u){t.push(i?u.replace(PA,"$1"):r||n)}),t});const MA=IA;function LA(e){return e==null?"":U1(e)}function tw(e,t){return xi(e)?e:Q4(e,t)?[e]:MA(LA(e))}var RA=1/0;function nw(e){if(typeof e=="string"||Cf(e))return e;var t=e+"";return t=="0"&&1/e==-RA?"-0":t}function DA(e,t){t=tw(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[nw(t[n++])];return n&&n==r?e:void 0}function Yn(e,t,n){var r=e==null?void 0:DA(e,t);return r===void 0?n:r}function rw(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var FA=ew(Object.getPrototypeOf,Object);const iw=FA;function Sl(){if(!arguments.length)return[];var e=arguments[0];return xi(e)?e:[e]}function BA(){this.__data__=new Ai,this.size=0}function $A(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function NA(e){return this.__data__.get(e)}function zA(e){return this.__data__.has(e)}var jA=200;function VA(e,t){var n=this.__data__;if(n instanceof Ai){var r=n.__data__;if(!wl||r.length<jA-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Pi(r)}return n.set(e,t),this.size=n.size,this}function yi(e){var t=this.__data__=new Ai(e);this.size=t.size}yi.prototype.clear=BA;yi.prototype.delete=$A;yi.prototype.get=NA;yi.prototype.has=zA;yi.prototype.set=VA;function UA(e,t){return e&&xf(t,am(t),e)}function HA(e,t){return e&&xf(t,om(t),e)}var aw=typeof Zn=="object"&&Zn&&!Zn.nodeType&&Zn,Vv=aw&&typeof Jn=="object"&&Jn&&!Jn.nodeType&&Jn,WA=Vv&&Vv.exports===aw,Uv=WA?Mr.Buffer:void 0,Hv=Uv?Uv.allocUnsafe:void 0;function GA(e,t){if(t)return e.slice();var n=e.length,r=Hv?Hv(n):new e.constructor(n);return e.copy(r),r}function YA(e,t){for(var n=-1,r=e==null?0:e.length,i=0,u=[];++n<r;){var p=e[n];t(p,n,e)&&(u[i++]=p)}return u}function ow(){return[]}var KA=Object.prototype,XA=KA.propertyIsEnumerable,Wv=Object.getOwnPropertySymbols,qA=Wv?function(e){return e==null?[]:(e=Object(e),YA(Wv(e),function(t){return XA.call(e,t)}))}:ow;const lm=qA;function ZA(e,t){return xf(e,lm(e),t)}var JA=Object.getOwnPropertySymbols,QA=JA?function(e){for(var t=[];e;)rw(t,lm(e)),e=iw(e);return t}:ow;const sw=QA;function eP(e,t){return xf(e,sw(e),t)}function lw(e,t,n){var r=t(e);return xi(e)?r:rw(r,n(e))}function _h(e){return lw(e,am,lm)}function tP(e){return lw(e,om,sw)}var nP=oo(Mr,"DataView");const wh=nP;var rP=oo(Mr,"Promise");const Sh=rP;var iP=oo(Mr,"Set");const Ch=iP;var Gv="[object Map]",aP="[object Object]",Yv="[object Promise]",Kv="[object Set]",Xv="[object WeakMap]",qv="[object DataView]",oP=ao(wh),sP=ao(wl),lP=ao(Sh),uP=ao(Ch),cP=ao(bh),Ta=fs;(wh&&Ta(new wh(new ArrayBuffer(1)))!=qv||wl&&Ta(new wl)!=Gv||Sh&&Ta(Sh.resolve())!=Yv||Ch&&Ta(new Ch)!=Kv||bh&&Ta(new bh)!=Xv)&&(Ta=function(e){var t=fs(e),n=t==aP?e.constructor:void 0,r=n?ao(n):"";if(r)switch(r){case oP:return qv;case sP:return Gv;case lP:return Yv;case uP:return Kv;case cP:return Xv}return t});const Cl=Ta;var fP=Object.prototype,dP=fP.hasOwnProperty;function hP(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&dP.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var pP=Mr.Uint8Array;const zc=pP;function um(e){var t=new e.constructor(e.byteLength);return new zc(t).set(new zc(e)),t}function mP(e,t){var n=t?um(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var gP=/\w*$/;function vP(e){var t=new e.constructor(e.source,gP.exec(e));return t.lastIndex=e.lastIndex,t}var Zv=Xr?Xr.prototype:void 0,Jv=Zv?Zv.valueOf:void 0;function yP(e){return Jv?Object(Jv.call(e)):{}}function bP(e,t){var n=t?um(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var _P="[object Boolean]",wP="[object Date]",SP="[object Map]",CP="[object Number]",xP="[object RegExp]",TP="[object Set]",kP="[object String]",EP="[object Symbol]",OP="[object ArrayBuffer]",AP="[object DataView]",PP="[object Float32Array]",IP="[object Float64Array]",MP="[object Int8Array]",LP="[object Int16Array]",RP="[object Int32Array]",DP="[object Uint8Array]",FP="[object Uint8ClampedArray]",BP="[object Uint16Array]",$P="[object Uint32Array]";function NP(e,t,n){var r=e.constructor;switch(t){case OP:return um(e);case _P:case wP:return new r(+e);case AP:return mP(e,n);case PP:case IP:case MP:case LP:case RP:case DP:case FP:case BP:case $P:return bP(e,n);case SP:return new r;case CP:case kP:return new r(e);case xP:return vP(e);case TP:return new r;case EP:return yP(e)}}function zP(e){return typeof e.constructor=="function"&&!rm(e)?G3(iw(e)):{}}var jP="[object Map]";function VP(e){return aa(e)&&Cl(e)==jP}var Qv=Xo&&Xo.isMap,UP=Qv?im(Qv):VP;const HP=UP;var WP="[object Set]";function GP(e){return aa(e)&&Cl(e)==WP}var e0=Xo&&Xo.isSet,YP=e0?im(e0):GP;const KP=YP;var XP=1,qP=2,ZP=4,uw="[object Arguments]",JP="[object Array]",QP="[object Boolean]",eI="[object Date]",tI="[object Error]",cw="[object Function]",nI="[object GeneratorFunction]",rI="[object Map]",iI="[object Number]",fw="[object Object]",aI="[object RegExp]",oI="[object Set]",sI="[object String]",lI="[object Symbol]",uI="[object WeakMap]",cI="[object ArrayBuffer]",fI="[object DataView]",dI="[object Float32Array]",hI="[object Float64Array]",pI="[object Int8Array]",mI="[object Int16Array]",gI="[object Int32Array]",vI="[object Uint8Array]",yI="[object Uint8ClampedArray]",bI="[object Uint16Array]",_I="[object Uint32Array]",Rt={};Rt[uw]=Rt[JP]=Rt[cI]=Rt[fI]=Rt[QP]=Rt[eI]=Rt[dI]=Rt[hI]=Rt[pI]=Rt[mI]=Rt[gI]=Rt[rI]=Rt[iI]=Rt[fw]=Rt[aI]=Rt[oI]=Rt[sI]=Rt[lI]=Rt[vI]=Rt[yI]=Rt[bI]=Rt[_I]=!0;Rt[tI]=Rt[cw]=Rt[uI]=!1;function ac(e,t,n,r,i,u){var p,o=t&XP,a=t&qP,l=t&ZP;if(n&&(p=i?n(e,r,i,u):n(e)),p!==void 0)return p;if(!Pr(e))return e;var h=xi(e);if(h){if(p=hP(e),!o)return Y3(e,p)}else{var c=Cl(e),f=c==cw||c==nI;if(Nc(e))return GA(e,o);if(c==fw||c==uw||f&&!i){if(p=a||f?{}:zP(e),!o)return a?eP(e,HA(p,e)):ZA(e,UA(p,e))}else{if(!Rt[c])return i?e:{};p=NP(e,c,o)}}u||(u=new yi);var s=u.get(e);if(s)return s;u.set(e,p),KP(e)?e.forEach(function(m){p.add(ac(m,t,n,m,e,u))}):HP(e)&&e.forEach(function(m,v){p.set(v,ac(m,t,n,v,e,u))});var d=l?a?tP:_h:a?om:am,g=h?void 0:d(e);return X3(g||e,function(m,v){g&&(v=m,m=e[v]),nm(p,v,ac(m,t,n,v,e,u))}),p}var wI=4;function t0(e){return ac(e,wI)}var SI="__lodash_hash_undefined__";function CI(e){return this.__data__.set(e,SI),this}function xI(e){return this.__data__.has(e)}function jc(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Pi;++t<n;)this.add(e[t])}jc.prototype.add=jc.prototype.push=CI;jc.prototype.has=xI;function TI(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function kI(e,t){return e.has(t)}var EI=1,OI=2;function dw(e,t,n,r,i,u){var p=n&EI,o=e.length,a=t.length;if(o!=a&&!(p&&a>o))return!1;var l=u.get(e),h=u.get(t);if(l&&h)return l==t&&h==e;var c=-1,f=!0,s=n&OI?new jc:void 0;for(u.set(e,t),u.set(t,e);++c<o;){var d=e[c],g=t[c];if(r)var m=p?r(g,d,c,t,e,u):r(d,g,c,e,t,u);if(m!==void 0){if(m)continue;f=!1;break}if(s){if(!TI(t,function(v,y){if(!kI(s,y)&&(d===v||i(d,v,n,r,u)))return s.push(y)})){f=!1;break}}else if(!(d===g||i(d,g,n,r,u))){f=!1;break}}return u.delete(e),u.delete(t),f}function AI(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}function PI(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var II=1,MI=2,LI="[object Boolean]",RI="[object Date]",DI="[object Error]",FI="[object Map]",BI="[object Number]",$I="[object RegExp]",NI="[object Set]",zI="[object String]",jI="[object Symbol]",VI="[object ArrayBuffer]",UI="[object DataView]",n0=Xr?Xr.prototype:void 0,ud=n0?n0.valueOf:void 0;function HI(e,t,n,r,i,u,p){switch(n){case UI:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case VI:return!(e.byteLength!=t.byteLength||!u(new zc(e),new zc(t)));case LI:case RI:case BI:return tm(+e,+t);case DI:return e.name==t.name&&e.message==t.message;case $I:case zI:return e==t+"";case FI:var o=AI;case NI:var a=r&II;if(o||(o=PI),e.size!=t.size&&!a)return!1;var l=p.get(e);if(l)return l==t;r|=MI,p.set(e,t);var h=dw(o(e),o(t),r,i,u,p);return p.delete(e),h;case jI:if(ud)return ud.call(e)==ud.call(t)}return!1}var WI=1,GI=Object.prototype,YI=GI.hasOwnProperty;function KI(e,t,n,r,i,u){var p=n&WI,o=_h(e),a=o.length,l=_h(t),h=l.length;if(a!=h&&!p)return!1;for(var c=a;c--;){var f=o[c];if(!(p?f in t:YI.call(t,f)))return!1}var s=u.get(e),d=u.get(t);if(s&&d)return s==t&&d==e;var g=!0;u.set(e,t),u.set(t,e);for(var m=p;++c<a;){f=o[c];var v=e[f],y=t[f];if(r)var b=p?r(y,v,f,t,e,u):r(v,y,f,e,t,u);if(!(b===void 0?v===y||i(v,y,n,r,u):b)){g=!1;break}m||(m=f=="constructor")}if(g&&!m){var w=e.constructor,S=t.constructor;w!=S&&"constructor"in e&&"constructor"in t&&!(typeof w=="function"&&w instanceof w&&typeof S=="function"&&S instanceof S)&&(g=!1)}return u.delete(e),u.delete(t),g}var XI=1,r0="[object Arguments]",i0="[object Array]",Eu="[object Object]",qI=Object.prototype,a0=qI.hasOwnProperty;function ZI(e,t,n,r,i,u){var p=xi(e),o=xi(t),a=p?i0:Cl(e),l=o?i0:Cl(t);a=a==r0?Eu:a,l=l==r0?Eu:l;var h=a==Eu,c=l==Eu,f=a==l;if(f&&Nc(e)){if(!Nc(t))return!1;p=!0,h=!1}if(f&&!h)return u||(u=new yi),p||J1(e)?dw(e,t,n,r,i,u):HI(e,t,a,n,r,i,u);if(!(n&XI)){var s=h&&a0.call(e,"__wrapped__"),d=c&&a0.call(t,"__wrapped__");if(s||d){var g=s?e.value():e,m=d?t.value():t;return u||(u=new yi),i(g,m,n,r,u)}}return f?(u||(u=new yi),KI(e,t,n,r,i,u)):!1}function hw(e,t,n,r,i){return e===t?!0:e==null||t==null||!aa(e)&&!aa(t)?e!==e&&t!==t:ZI(e,t,n,r,hw,i)}var JI=function(){return Mr.Date.now()};const cd=JI;var QI="Expected a function",e5=Math.max,t5=Math.min;function qo(e,t,n){var r,i,u,p,o,a,l=0,h=!1,c=!1,f=!0;if(typeof e!="function")throw new TypeError(QI);t=Rv(t)||0,Pr(n)&&(h=!!n.leading,c="maxWait"in n,u=c?e5(Rv(n.maxWait)||0,t):u,f="trailing"in n?!!n.trailing:f);function s(C){var T=r,k=i;return r=i=void 0,l=C,p=e.apply(k,T),p}function d(C){return l=C,o=setTimeout(v,t),h?s(C):p}function g(C){var T=C-a,k=C-l,A=t-T;return c?t5(A,u-k):A}function m(C){var T=C-a,k=C-l;return a===void 0||T>=t||T<0||c&&k>=u}function v(){var C=cd();if(m(C))return y(C);o=setTimeout(v,g(C))}function y(C){return o=void 0,f&&r?s(C):(r=i=void 0,p)}function b(){o!==void 0&&clearTimeout(o),l=0,r=a=i=o=void 0}function w(){return o===void 0?p:y(cd())}function S(){var C=cd(),T=m(C);if(r=arguments,i=this,a=C,T){if(o===void 0)return d(a);if(c)return clearTimeout(o),o=setTimeout(v,t),s(a)}return o===void 0&&(o=setTimeout(v,t)),p}return S.cancel=b,S.flush=w,S}function pw(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r}function xh(e,t){return hw(e,t)}function Hr(e){return e==null}function n5(e,t,n,r){if(!Pr(e))return e;t=tw(t,e);for(var i=-1,u=t.length,p=u-1,o=e;o!=null&&++i<u;){var a=nw(t[i]),l=n;if(a==="__proto__"||a==="constructor"||a==="prototype")return e;if(i!=p){var h=o[a];l=r?r(h,a,o):void 0,l===void 0&&(l=Pr(h)?h:W1(t[i+1])?[]:{})}nm(o,a,l),o=o[a]}return e}function r5(e,t,n){return e==null?e:n5(e,t,n)}var i5="Expected a function";function Zs(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(i5);return Pr(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),qo(e,t,{leading:r,maxWait:t,trailing:i})}const a5='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',o5=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,o0=e=>Array.from(e.querySelectorAll(a5)).filter(t=>s5(t)&&o5(t)),s5=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},oc=function(e,t,...n){let r;t.includes("mouse")||t.includes("click")?r="MouseEvents":t.includes("key")?r="KeyboardEvent":r="HTMLEvents";const i=document.createEvent(r);return i.initEvent(t,...n),e.dispatchEvent(i),e},ui=(e,t,{checkForDefaultPrevented:n=!0}={})=>i=>{const u=e==null?void 0:e(i);if(n===!1||!u)return t==null?void 0:t(i)};var l5=Object.defineProperty,u5=Object.defineProperties,c5=Object.getOwnPropertyDescriptors,s0=Object.getOwnPropertySymbols,f5=Object.prototype.hasOwnProperty,d5=Object.prototype.propertyIsEnumerable,l0=(e,t,n)=>t in e?l5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,h5=(e,t)=>{for(var n in t||(t={}))f5.call(t,n)&&l0(e,n,t[n]);if(s0)for(var n of s0(t))d5.call(t,n)&&l0(e,n,t[n]);return e},p5=(e,t)=>u5(e,c5(t));function u0(e,t){var n;const r=mn();return io(()=>{r.value=e()},p5(h5({},t),{flush:(n=t==null?void 0:t.flush)!=null?n:"sync"})),os(r)}var c0;const ht=typeof window<"u",m5=e=>typeof e<"u",Qn=e=>typeof e=="boolean",mw=e=>typeof e=="function",ut=e=>typeof e=="number",g5=e=>typeof e=="string",Nn=()=>{},v5=ht&&((c0=window==null?void 0:window.navigator)==null?void 0:c0.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Sr(e){return typeof e=="function"?e():_(e)}function cm(e,t){function n(...r){return new Promise((i,u)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(i).catch(u)})}return n}const gw=e=>e();function y5(e,t={}){let n,r,i=Nn;const u=o=>{clearTimeout(o),i(),i=Nn};return o=>{const a=Sr(e),l=Sr(t.maxWait);return n&&u(n),a<=0||l!==void 0&&l<=0?(r&&(u(r),r=null),Promise.resolve(o())):new Promise((h,c)=>{i=t.rejectOnCancel?c:h,l&&!r&&(r=setTimeout(()=>{n&&u(n),r=null,h(o())},l)),n=setTimeout(()=>{r&&u(r),r=null,h(o())},a)})}}function b5(e,t=!0,n=!0,r=!1){let i=0,u,p=!0,o=Nn,a;const l=()=>{u&&(clearTimeout(u),u=void 0,o(),o=Nn)};return c=>{const f=Sr(e),s=Date.now()-i,d=()=>a=c();return l(),f<=0?(i=Date.now(),d()):(s>f&&(n||!p)?(i=Date.now(),d()):t&&(a=new Promise((g,m)=>{o=r?m:g,u=setTimeout(()=>{i=Date.now(),p=!0,g(d()),l()},Math.max(0,f-s))})),!n&&!u&&(u=setTimeout(()=>p=!0,f)),p=!1,a)}}function _5(e=gw){const t=ae(!0);function n(){t.value=!1}function r(){t.value=!0}const i=(...u)=>{t.value&&e(...u)};return{isActive:os(t),pause:n,resume:r,eventFilter:i}}function w5(e){return e}function S5(e,t){var n;if(typeof e=="number")return e+t;const r=((n=e.match(/^-?[0-9]+\.?[0-9]*/))==null?void 0:n[0])||"",i=e.slice(r.length),u=parseFloat(r)+t;return Number.isNaN(u)?e:u+i}function so(e){return Op()?(Ap(e),!0):!1}function vw(e,t=200,n={}){return cm(y5(t,n),e)}function C5(e,t=200,n={}){const r=ae(e.value),i=vw(()=>{r.value=e.value},t,n);return xe(e,()=>i()),r}function yw(e,t=200,n=!1,r=!0,i=!1){return cm(b5(t,n,r,i),e)}function x5(e){return typeof e=="function"?ee(e):ae(e)}function fm(e,t=!0){Et()?rt(e):t?e():Ge(e)}function xl(e,t,n={}){const{immediate:r=!0}=n,i=ae(!1);let u=null;function p(){u&&(clearTimeout(u),u=null)}function o(){i.value=!1,p()}function a(...l){p(),i.value=!0,u=setTimeout(()=>{i.value=!1,u=null,e(...l)},Sr(t))}return r&&(i.value=!0,ht&&a()),so(o),{isPending:os(i),start:a,stop:o}}var f0=Object.getOwnPropertySymbols,T5=Object.prototype.hasOwnProperty,k5=Object.prototype.propertyIsEnumerable,E5=(e,t)=>{var n={};for(var r in e)T5.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&f0)for(var r of f0(e))t.indexOf(r)<0&&k5.call(e,r)&&(n[r]=e[r]);return n};function O5(e,t,n={}){const r=n,{eventFilter:i=gw}=r,u=E5(r,["eventFilter"]);return xe(e,cm(i,t),u)}var A5=Object.defineProperty,P5=Object.defineProperties,I5=Object.getOwnPropertyDescriptors,Vc=Object.getOwnPropertySymbols,bw=Object.prototype.hasOwnProperty,_w=Object.prototype.propertyIsEnumerable,d0=(e,t,n)=>t in e?A5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,M5=(e,t)=>{for(var n in t||(t={}))bw.call(t,n)&&d0(e,n,t[n]);if(Vc)for(var n of Vc(t))_w.call(t,n)&&d0(e,n,t[n]);return e},L5=(e,t)=>P5(e,I5(t)),R5=(e,t)=>{var n={};for(var r in e)bw.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Vc)for(var r of Vc(e))t.indexOf(r)<0&&_w.call(e,r)&&(n[r]=e[r]);return n};function D5(e,t,n={}){const r=n,{eventFilter:i}=r,u=R5(r,["eventFilter"]),{eventFilter:p,pause:o,resume:a,isActive:l}=_5(i);return{stop:O5(e,t,L5(M5({},u),{eventFilter:p})),pause:o,resume:a,isActive:l}}function h0(e,t,n){let r;Pt(n)?r={evaluating:n}:r=n||{};const{lazy:i=!1,evaluating:u=void 0,shallow:p=!1,onError:o=Nn}=r,a=ae(!i),l=p?mn(t):ae(t);let h=0;return io(async c=>{if(!a.value)return;h++;const f=h;let s=!1;u&&Promise.resolve().then(()=>{u.value=!0});try{const d=await e(g=>{c(()=>{u&&(u.value=!1),s||g()})});f===h&&(l.value=d)}catch(d){o(d)}finally{u&&f===h&&(u.value=!1),s=!0}}),i?ee(()=>(a.value=!0,l.value)):l}function Cr(e){var t;const n=Sr(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Un=ht?window:void 0,F5=ht?window.document:void 0;ht&&window.navigator;ht&&window.location;function _t(...e){let t,n,r,i;if(g5(e[0])||Array.isArray(e[0])?([n,r,i]=e,t=Un):[t,n,r,i]=e,!t)return Nn;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const u=[],p=()=>{u.forEach(h=>h()),u.length=0},o=(h,c,f,s)=>(h.addEventListener(c,f,s),()=>h.removeEventListener(c,f,s)),a=xe(()=>[Cr(t),Sr(i)],([h,c])=>{p(),h&&u.push(...n.flatMap(f=>r.map(s=>o(h,f,s,c))))},{immediate:!0,flush:"post"}),l=()=>{a(),p()};return so(l),l}let p0=!1;function B5(e,t,n={}){const{window:r=Un,ignore:i=[],capture:u=!0,detectIframe:p=!1}=n;if(!r)return;v5&&!p0&&(p0=!0,Array.from(r.document.body.children).forEach(f=>f.addEventListener("click",Nn)));let o=!0;const a=f=>i.some(s=>{if(typeof s=="string")return Array.from(r.document.querySelectorAll(s)).some(d=>d===f.target||f.composedPath().includes(d));{const d=Cr(s);return d&&(f.target===d||f.composedPath().includes(d))}}),h=[_t(r,"click",f=>{const s=Cr(e);if(!(!s||s===f.target||f.composedPath().includes(s))){if(f.detail===0&&(o=!a(f)),!o){o=!0;return}t(f)}},{passive:!0,capture:u}),_t(r,"pointerdown",f=>{const s=Cr(e);s&&(o=!f.composedPath().includes(s)&&!a(f))},{passive:!0}),p&&_t(r,"blur",f=>{var s;const d=Cr(e);((s=r.document.activeElement)==null?void 0:s.tagName)==="IFRAME"&&!(d!=null&&d.contains(r.document.activeElement))&&t(f)})].filter(Boolean);return()=>h.forEach(f=>f())}const $5=e=>typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0;function m0(...e){let t,n,r={};e.length===3?(t=e[0],n=e[1],r=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],r=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:i=Un,eventName:u="keydown",passive:p=!1}=r,o=$5(t);return _t(i,u,l=>{o(l)&&n(l)},p)}const N5=500;function z5(e,t,n){var r,i;const u=ee(()=>Cr(e));let p;function o(){p&&(clearTimeout(p),p=void 0)}function a(h){var c,f,s,d;((c=n==null?void 0:n.modifiers)==null?void 0:c.self)&&h.target!==u.value||(o(),(f=n==null?void 0:n.modifiers)!=null&&f.prevent&&h.preventDefault(),(s=n==null?void 0:n.modifiers)!=null&&s.stop&&h.stopPropagation(),p=setTimeout(()=>t(h),(d=n==null?void 0:n.delay)!=null?d:N5))}const l={capture:(r=n==null?void 0:n.modifiers)==null?void 0:r.capture,once:(i=n==null?void 0:n.modifiers)==null?void 0:i.once};_t(u,"pointerdown",a,l),_t(u,"pointerup",o,l),_t(u,"pointerleave",o,l)}function dm(e,t=!1){const n=ae(),r=()=>n.value=Boolean(e());return r(),fm(r,t),n}function Ao(e,t={}){const{window:n=Un}=t,r=dm(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let i;const u=ae(!1),p=()=>{!i||("removeEventListener"in i?i.removeEventListener("change",o):i.removeListener(o))},o=()=>{!r.value||(p(),i=n.matchMedia(x5(e).value),u.value=i.matches,"addEventListener"in i?i.addEventListener("change",o):i.addListener(o))};return io(o),so(()=>p()),u}const hm={sm:640,md:768,lg:1024,xl:1280,"2xl":1536};var j5=Object.defineProperty,g0=Object.getOwnPropertySymbols,V5=Object.prototype.hasOwnProperty,U5=Object.prototype.propertyIsEnumerable,v0=(e,t,n)=>t in e?j5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,H5=(e,t)=>{for(var n in t||(t={}))V5.call(t,n)&&v0(e,n,t[n]);if(g0)for(var n of g0(t))U5.call(t,n)&&v0(e,n,t[n]);return e};function pm(e,t={}){function n(o,a){let l=e[o];return a!=null&&(l=S5(l,a)),typeof l=="number"&&(l=`${l}px`),l}const{window:r=Un}=t;function i(o){return r?r.matchMedia(o).matches:!1}const u=o=>Ao(`(min-width: ${n(o)})`,t),p=Object.keys(e).reduce((o,a)=>(Object.defineProperty(o,a,{get:()=>u(a),enumerable:!0,configurable:!0}),o),{});return H5({greater(o){return Ao(`(min-width: ${n(o,.1)})`,t)},greaterOrEqual:u,smaller(o){return Ao(`(max-width: ${n(o,-.1)})`,t)},smallerOrEqual(o){return Ao(`(max-width: ${n(o)})`,t)},between(o,a){return Ao(`(min-width: ${n(o)}) and (max-width: ${n(a,-.1)})`,t)},isGreater(o){return i(`(min-width: ${n(o,.1)})`)},isGreaterOrEqual(o){return i(`(min-width: ${n(o)})`)},isSmaller(o){return i(`(max-width: ${n(o,-.1)})`)},isSmallerOrEqual(o){return i(`(max-width: ${n(o)})`)},isInBetween(o,a){return i(`(min-width: ${n(o)}) and (max-width: ${n(a,-.1)})`)}},p)}function W5(e){return JSON.parse(JSON.stringify(e))}const Th=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},kh="__vueuse_ssr_handlers__";Th[kh]=Th[kh]||{};const G5=Th[kh];function ww(e,t){return G5[e]||t}function Y5(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}var K5=Object.defineProperty,y0=Object.getOwnPropertySymbols,X5=Object.prototype.hasOwnProperty,q5=Object.prototype.propertyIsEnumerable,b0=(e,t,n)=>t in e?K5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_0=(e,t)=>{for(var n in t||(t={}))X5.call(t,n)&&b0(e,n,t[n]);if(y0)for(var n of y0(t))q5.call(t,n)&&b0(e,n,t[n]);return e};const Z5={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},w0="vueuse-storage";function Sw(e,t,n,r={}){var i;const{flush:u="pre",deep:p=!0,listenToStorageChanges:o=!0,writeDefaults:a=!0,mergeDefaults:l=!1,shallow:h,window:c=Un,eventFilter:f,onError:s=k=>{console.error(k)}}=r,d=(h?mn:ae)(t);if(!n)try{n=ww("getDefaultStorage",()=>{var k;return(k=Un)==null?void 0:k.localStorage})()}catch(k){s(k)}if(!n)return d;const g=Sr(t),m=Y5(g),v=(i=r.serializer)!=null?i:Z5[m],{pause:y,resume:b}=D5(d,()=>w(d.value),{flush:u,deep:p,eventFilter:f});return c&&o&&(_t(c,"storage",T),_t(c,w0,C)),T(),d;function w(k){try{if(k==null)n.removeItem(e);else{const A=v.write(k),P=n.getItem(e);P!==A&&(n.setItem(e,A),c&&c.dispatchEvent(new CustomEvent(w0,{detail:{key:e,oldValue:P,newValue:A,storageArea:n}})))}}catch(A){s(A)}}function S(k){const A=k?k.newValue:n.getItem(e);if(A==null)return a&&g!==null&&n.setItem(e,v.write(g)),g;if(!k&&l){const P=v.read(A);return mw(l)?l(P,g):m==="object"&&!Array.isArray(P)?_0(_0({},g),P):P}else return typeof A!="string"?A:v.read(A)}function C(k){T(k.detail)}function T(k){if(!(k&&k.storageArea!==n)){if(k&&k.key==null){d.value=g;return}if(!(k&&k.key!==e)){y();try{d.value=S(k)}catch(A){s(A)}finally{k?Ge(b):b()}}}}}function J5(e){return Ao("(prefers-color-scheme: dark)",e)}var Q5=Object.defineProperty,S0=Object.getOwnPropertySymbols,e6=Object.prototype.hasOwnProperty,t6=Object.prototype.propertyIsEnumerable,C0=(e,t,n)=>t in e?Q5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,n6=(e,t)=>{for(var n in t||(t={}))e6.call(t,n)&&C0(e,n,t[n]);if(S0)for(var n of S0(t))t6.call(t,n)&&C0(e,n,t[n]);return e};function x0(e={}){const{selector:t="html",attribute:n="class",initialValue:r="auto",window:i=Un,storage:u,storageKey:p="vueuse-color-scheme",listenToStorageChanges:o=!0,storageRef:a,emitAuto:l}=e,h=n6({auto:"",light:"light",dark:"dark"},e.modes||{}),c=J5({window:i}),f=ee(()=>c.value?"dark":"light"),s=a||(p==null?ae(r):Sw(p,r,u,{window:i,listenToStorageChanges:o})),d=ee({get(){return s.value==="auto"&&!l?f.value:s.value},set(y){s.value=y}}),g=ww("updateHTMLAttrs",(y,b,w)=>{const S=i==null?void 0:i.document.querySelector(y);if(!!S)if(b==="class"){const C=w.split(/\s/g);Object.values(h).flatMap(T=>(T||"").split(/\s/g)).filter(Boolean).forEach(T=>{C.includes(T)?S.classList.add(T):S.classList.remove(T)})}else S.setAttribute(b,w)});function m(y){var b;const w=y==="auto"?f.value:y;g(t,n,(b=h[w])!=null?b:w)}function v(y){e.onChanged?e.onChanged(y,m):m(y)}return xe(d,v,{flush:"post",immediate:!0}),l&&xe(f,()=>v(d.value),{flush:"post"}),fm(()=>v(d.value)),d}function r6({document:e=F5}={}){if(!e)return ae("visible");const t=ae(e.visibilityState);return _t(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var T0=Object.getOwnPropertySymbols,i6=Object.prototype.hasOwnProperty,a6=Object.prototype.propertyIsEnumerable,o6=(e,t)=>{var n={};for(var r in e)i6.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&T0)for(var r of T0(e))t.indexOf(r)<0&&a6.call(e,r)&&(n[r]=e[r]);return n};function Jr(e,t,n={}){const r=n,{window:i=Un}=r,u=o6(r,["window"]);let p;const o=dm(()=>i&&"ResizeObserver"in i),a=()=>{p&&(p.disconnect(),p=void 0)},l=xe(()=>Cr(e),c=>{a(),o.value&&i&&c&&(p=new ResizeObserver(t),p.observe(c,u))},{immediate:!0,flush:"post"}),h=()=>{a(),l()};return so(h),{isSupported:o,stop:h}}const k0=1;function s6(e,t={}){const{throttle:n=0,idle:r=200,onStop:i=Nn,onScroll:u=Nn,offset:p={left:0,right:0,top:0,bottom:0},eventListenerOptions:o={capture:!1,passive:!0},behavior:a="auto"}=t,l=ae(0),h=ae(0),c=ee({get(){return l.value},set(w){s(w,void 0)}}),f=ee({get(){return h.value},set(w){s(void 0,w)}});function s(w,S){var C,T,k;const A=Sr(e);!A||(k=A instanceof Document?document.body:A)==null||k.scrollTo({top:(C=Sr(S))!=null?C:f.value,left:(T=Sr(w))!=null?T:c.value,behavior:Sr(a)})}const d=ae(!1),g=kt({left:!0,right:!1,top:!0,bottom:!1}),m=kt({left:!1,right:!1,top:!1,bottom:!1}),v=w=>{!d.value||(d.value=!1,m.left=!1,m.right=!1,m.top=!1,m.bottom=!1,i(w))},y=vw(v,n+r),b=w=>{const S=w.target===document?w.target.documentElement:w.target,C=S.scrollLeft;m.left=C<l.value,m.right=C>h.value,g.left=C<=0+(p.left||0),g.right=C+S.clientWidth>=S.scrollWidth-(p.right||0)-k0,l.value=C;let T=S.scrollTop;w.target===document&&!T&&(T=document.body.scrollTop),m.top=T<h.value,m.bottom=T>h.value,g.top=T<=0+(p.top||0),g.bottom=T+S.clientHeight>=S.scrollHeight-(p.bottom||0)-k0,h.value=T,d.value=!0,y(w),u(w)};return _t(e,"scroll",n?yw(b,n,!0,!1):b,o),_t(e,"scrollend",v,o),{x:c,y:f,isScrolling:d,arrivedState:g,directions:m}}function l6(e,t,n={}){const{root:r,rootMargin:i="0px",threshold:u=.1,window:p=Un}=n,o=dm(()=>p&&"IntersectionObserver"in p);let a=Nn;const l=o.value?xe(()=>({el:Cr(e),root:Cr(r)}),({el:c,root:f})=>{if(a(),!c)return;const s=new IntersectionObserver(t,{root:f,rootMargin:i,threshold:u});s.observe(c),a=()=>{s.disconnect(),a=Nn}},{immediate:!0,flush:"post"}):Nn,h=()=>{a(),l()};return so(h),{isSupported:o,stop:h}}function sn(e,t,n={}){const{window:r=Un}=n;return Sw(e,t,r==null?void 0:r.localStorage,n)}var Aa;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Aa||(Aa={}));function u6(e,t={}){const{threshold:n=50,onSwipe:r,onSwipeEnd:i,onSwipeStart:u,passive:p=!0,window:o=Un}=t,a=kt({x:0,y:0}),l=kt({x:0,y:0}),h=ee(()=>a.x-l.x),c=ee(()=>a.y-l.y),{max:f,abs:s}=Math,d=ee(()=>f(s(h.value),s(c.value))>=n),g=ae(!1),m=ee(()=>d.value?s(h.value)>s(c.value)?h.value>0?Aa.LEFT:Aa.RIGHT:c.value>0?Aa.UP:Aa.DOWN:Aa.NONE),v=A=>[A.touches[0].clientX,A.touches[0].clientY],y=(A,P)=>{a.x=A,a.y=P},b=(A,P)=>{l.x=A,l.y=P};let w;const S=c6(o==null?void 0:o.document);p?w=S?{passive:!0}:{capture:!1}:w=S?{passive:!1,capture:!0}:{capture:!0};const C=A=>{g.value&&(i==null||i(A,m.value)),g.value=!1},T=[_t(e,"touchstart",A=>{w.capture&&!w.passive&&A.preventDefault();const[P,z]=v(A);y(P,z),b(P,z),u==null||u(A)},w),_t(e,"touchmove",A=>{const[P,z]=v(A);b(P,z),!g.value&&d.value&&(g.value=!0),g.value&&(r==null||r(A))},w),_t(e,"touchend",C,w),_t(e,"touchcancel",C,w)];return{isPassiveEventSupported:S,isSwiping:g,direction:m,coordsStart:a,coordsEnd:l,lengthX:h,lengthY:c,stop:()=>T.forEach(A=>A())}}function c6(e){if(!e)return!1;let t=!1;const n={get passive(){return t=!0,!1}};return e.addEventListener("x",Nn,n),e.removeEventListener("x",Nn),t}var f6=Object.defineProperty,E0=Object.getOwnPropertySymbols,d6=Object.prototype.hasOwnProperty,h6=Object.prototype.propertyIsEnumerable,O0=(e,t,n)=>t in e?f6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,p6=(e,t)=>{for(var n in t||(t={}))d6.call(t,n)&&O0(e,n,t[n]);if(E0)for(var n of E0(t))h6.call(t,n)&&O0(e,n,t[n]);return e};const m6={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};p6({linear:w5},m6);function g6(e,t,n,r={}){var i,u,p;const{clone:o=!1,passive:a=!1,eventName:l,deep:h=!1,defaultValue:c}=r,f=Et(),s=n||(f==null?void 0:f.emit)||((i=f==null?void 0:f.$emit)==null?void 0:i.bind(f))||((p=(u=f==null?void 0:f.proxy)==null?void 0:u.$emit)==null?void 0:p.bind(f==null?void 0:f.proxy));let d=l;t||(t="modelValue"),d=l||d||`update:${t.toString()}`;const g=v=>o?mw(o)?o(v):W5(v):v,m=()=>m5(e[t])?g(e[t]):c;if(a){const v=m(),y=ae(v);return xe(()=>e[t],b=>y.value=g(b)),xe(y,b=>{(b!==e[t]||h)&&s(d,b)},{deep:h}),y}else return ee({get(){return m()},set(v){s(d,v)}})}function v6({window:e=Un}={}){if(!e)return ae(!1);const t=ae(e.document.hasFocus());return _t(e,"blur",()=>{t.value=!1}),_t(e,"focus",()=>{t.value=!0}),t}function Cw(e={}){const{window:t=Un,initialWidth:n=1/0,initialHeight:r=1/0,listenOrientation:i=!0,includeScrollbar:u=!0}=e,p=ae(n),o=ae(r),a=()=>{t&&(u?(p.value=t.innerWidth,o.value=t.innerHeight):(p.value=t.document.documentElement.clientWidth,o.value=t.document.documentElement.clientHeight))};return a(),fm(a),_t("resize",a,{passive:!0}),i&&_t("orientationchange",a,{passive:!0}),{width:p,height:o}}const y6=(e,t)=>{if(!ht||!e||!t)return!1;const n=e.getBoundingClientRect();let r;return t instanceof Element?r=t.getBoundingClientRect():r={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0},n.top<r.bottom&&n.bottom>r.top&&n.right>r.left&&n.left<r.right},mm=e=>{let t,n;return e.type==="touchend"?(n=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(n=e.touches[0].clientY,t=e.touches[0].clientX):(n=e.clientY,t=e.clientX),{clientX:t,clientY:n}},xr=e=>e===void 0,Ka=e=>typeof Element>"u"?!1:e instanceof Element,b6=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),Pa=e=>ql(e),Eh=e=>Object.keys(e),_6=e=>Object.entries(e),fd=(e,t,n)=>({get value(){return Yn(e,t,n)},set value(r){r5(e,t,r)}});class w6 extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function Mn(e,t){throw new w6(`[${e}] ${t}`)}const xw=(e="")=>e.split(" ").filter(t=>!!t.trim()),Oh=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Rs=(e,t)=>{!e||!t.trim()||e.classList.add(...xw(t))},sc=(e,t)=>{!e||!t.trim()||e.classList.remove(...xw(t))},Tw=(e,t)=>{var n;if(!ht||!e||!t)return"";let r=er(t);r==="float"&&(r="cssFloat");try{const i=e.style[r];if(i)return i;const u=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return u?u[r]:""}catch{return e.style[r]}};function qr(e,t="px"){if(!e)return"";if(Xe(e))return e;if(ut(e))return`${e}${t}`}const S6=(e,t)=>{if(!ht)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],r=Tw(e,n);return["scroll","auto","overlay"].some(i=>r.includes(i))},C6=(e,t)=>{if(!ht)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(S6(n,t))return n;n=n.parentNode}return n};let Ou;const x6=e=>{var t;if(!ht)return 0;if(Ou!==void 0)return Ou;const n=document.createElement("div");n.className=`${e}-scrollbar__wrap`,n.style.visibility="hidden",n.style.width="100px",n.style.position="absolute",n.style.top="-9999px",document.body.appendChild(n);const r=n.offsetWidth;n.style.overflow="scroll";const i=document.createElement("div");i.style.width="100%",n.appendChild(i);const u=i.offsetWidth;return(t=n.parentNode)==null||t.removeChild(n),Ou=r-u,Ou};function T6(e,t){if(!ht)return;if(!t){e.scrollTop=0;return}const n=[];let r=t.offsetParent;for(;r!==null&&e!==r&&e.contains(r);)n.push(r),r=r.offsetParent;const i=t.offsetTop+n.reduce((a,l)=>a+l.offsetTop,0),u=i+t.offsetHeight,p=e.scrollTop,o=p+e.clientHeight;i<p?e.scrollTop=i:u>o&&(e.scrollTop=u-e.clientHeight)}const kw="__epPropKey",Oe=e=>e,k6=e=>it(e)&&!!e[kw],Ef=(e,t)=>{if(!it(e)||k6(e))return e;const{values:n,required:r,default:i,type:u,validator:p}=e,a={type:u,required:!!r,validator:n||p?l=>{let h=!1,c=[];if(n&&(c=Array.from(n),lt(e,"default")&&c.push(i),h||(h=c.includes(l))),p&&(h||(h=p(l))),!h&&c.length>0){const f=[...new Set(c)].map(s=>JSON.stringify(s)).join(", ");XT(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${f}], got value ${JSON.stringify(l)}.`)}return h}:void 0,[kw]:!0};return lt(e,"default")&&(a.default=i),a},Be=e=>pw(Object.entries(e).map(([t,n])=>[t,Ef(n,t)])),Qt=Oe([String,Object,Function]),E6={Close:Kr},Ew={Close:Kr,SuccessFilled:N1,InfoFilled:Zp,WarningFilled:em,CircleCloseFilled:L1},Uc={success:N1,warning:em,error:L1,info:Zp},O6={validating:Jp,success:eu,error:wf},wt=(e,t)=>{if(e.install=n=>{for(const r of[e,...Object.values(t!=null?t:{})])n.component(r.name,r)},t)for(const[n,r]of Object.entries(t))e[n]=r;return e},A6=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),P6=(e,t)=>(e.install=n=>{n.directive(t,e)},e),vr=e=>(e.install=ot,e),I6=(...e)=>t=>{e.forEach(n=>{He(n)?n(t):n.value=t})},At={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},gt="update:modelValue",Ir="change",Xa="input",tu=["","default","small","large"],M6={large:40,default:32,small:24},L6=e=>M6[e||"default"],Of=e=>["",...tu].includes(e);var lc=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(lc||{});const Ow=e=>{const t=We(e)?e:[e],n=[];return t.forEach(r=>{We(r.children)?n.push(...Ow(r.children)):n.push(r)}),n},R6=()=>ht&&/firefox/i.test(window.navigator.userAgent),Aw=e=>/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi.test(e),gm=()=>Math.floor(Math.random()*1e4),un=e=>e,D6=["class","style"],F6=/^on[A-Z]/,Pw=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,r=ee(()=>((n==null?void 0:n.value)||[]).concat(D6)),i=Et();return ee(i?()=>{var u;return pw(Object.entries((u=i.proxy)==null?void 0:u.$attrs).filter(([p])=>!r.value.includes(p)&&!(t&&F6.test(p))))}:()=>({}))},Iw=Symbol("buttonGroupContextKey"),Mw=Symbol("carouselContextKey"),Lw=Symbol("collapseContextKey"),Rw=Symbol(),Dw=Symbol("dialogInjectionKey"),ds=Symbol("formContextKey"),qa=Symbol("formItemContextKey"),Fw=Symbol("elPaginationKey"),Bw=Symbol("radioGroupKey"),$w=Symbol("rowContextKey"),Nw=Symbol("scrollbarContextKey"),zw=Symbol("sliderContextKey"),Af=Symbol("tabsRootContextKey"),jw=Symbol("uploadContextKey"),vm=Symbol("popper"),Vw=Symbol("popperContent"),Uw=e=>{const t=Et();return ee(()=>{var n,r;return(r=((n=t.proxy)==null?void 0:n.$props)[e])!=null?r:void 0})},Hc=ae();function Ii(e,t=void 0){const n=Et()?qe(Rw,Hc):Hc;return e?ee(()=>{var r,i;return(i=(r=n.value)==null?void 0:r[e])!=null?i:t}):n}const B6=(e,t,n=!1)=>{var r;const i=!!Et(),u=i?Ii():void 0,p=(r=t==null?void 0:t.provide)!=null?r:i?vt:void 0;if(!p)return;const o=ee(()=>{const a=_(e);return u!=null&&u.value?$6(u.value,a):a});return p(Rw,o),(n||!Hc.value)&&(Hc.value=o.value),o},$6=(e,t)=>{var n;const r=[...new Set([...Eh(e),...Eh(t)])],i={};for(const u of r)i[u]=(n=t[u])!=null?n:e[u];return i},oa=Ef({type:String,values:tu,required:!1}),yr=(e,t={})=>{const n=ae(void 0),r=t.prop?n:Uw("size"),i=t.global?n:Ii("size"),u=t.form?{size:void 0}:qe(ds,void 0),p=t.formItem?{size:void 0}:qe(qa,void 0);return ee(()=>r.value||_(e)||(p==null?void 0:p.size)||(u==null?void 0:u.size)||i.value||"")},lo=e=>{const t=Uw("disabled"),n=qe(ds,void 0);return ee(()=>t.value||_(e)||(n==null?void 0:n.disabled)||!1)},Tl=({from:e,replacement:t,scope:n,version:r,ref:i,type:u="API"},p)=>{xe(()=>_(p),o=>{},{immediate:!0})},Hw=(e,t,n)=>{let r={offsetX:0,offsetY:0};const i=o=>{const a=o.clientX,l=o.clientY,{offsetX:h,offsetY:c}=r,f=e.value.getBoundingClientRect(),s=f.left,d=f.top,g=f.width,m=f.height,v=document.documentElement.clientWidth,y=document.documentElement.clientHeight,b=-s+h,w=-d+c,S=v-s-g+h,C=y-d-m+c,T=A=>{const P=Math.min(Math.max(h+A.clientX-a,b),S),z=Math.min(Math.max(c+A.clientY-l,w),C);r={offsetX:P,offsetY:z},e.value.style.transform=`translate(${qr(P)}, ${qr(z)})`},k=()=>{document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",k)};document.addEventListener("mousemove",T),document.addEventListener("mouseup",k)},u=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",i)},p=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",i)};rt(()=>{io(()=>{n.value?u():p()})}),tn(()=>{p()})},N6=e=>({focus:()=>{var t,n;(n=(t=e.value)==null?void 0:t.focus)==null||n.call(t)}}),Pf="el",z6="is-",Sa=(e,t,n,r,i)=>{let u=`${e}-${t}`;return n&&(u+=`-${n}`),r&&(u+=`__${r}`),i&&(u+=`--${i}`),u},Pe=e=>{const t=Ii("namespace",Pf);return{namespace:t,b:(d="")=>Sa(t.value,e,d,"",""),e:d=>d?Sa(t.value,e,"",d,""):"",m:d=>d?Sa(t.value,e,"","",d):"",be:(d,g)=>d&&g?Sa(t.value,e,d,g,""):"",em:(d,g)=>d&&g?Sa(t.value,e,"",d,g):"",bm:(d,g)=>d&&g?Sa(t.value,e,d,"",g):"",bem:(d,g,m)=>d&&g&&m?Sa(t.value,e,d,g,m):"",is:(d,...g)=>{const m=g.length>=1?g[0]:!0;return d&&m?`${z6}${d}`:""},cssVar:d=>{const g={};for(const m in d)d[m]&&(g[`--${t.value}-${m}`]=d[m]);return g},cssVarName:d=>`--${t.value}-${d}`,cssVarBlock:d=>{const g={};for(const m in d)d[m]&&(g[`--${t.value}-${e}-${m}`]=d[m]);return g},cssVarBlockName:d=>`--${t.value}-${e}-${d}`}},j6={prefix:Math.floor(Math.random()*1e4),current:0},V6=Symbol("elIdInjection"),sa=e=>{const t=qe(V6,j6),n=Ii("namespace",Pf);return ee(()=>_(e)||`${n.value}-id-${t.prefix}-${t.current++}`)},pa=()=>{const e=qe(ds,void 0),t=qe(qa,void 0);return{form:e,formItem:t}},nu=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=ae(!1)),r||(r=ae(!1));const i=ae();let u;const p=ee(()=>{var o;return!!(!e.label&&t&&t.inputIds&&((o=t.inputIds)==null?void 0:o.length)<=1)});return rt(()=>{u=xe([tr(e,"id"),n],([o,a])=>{const l=o!=null?o:a?void 0:sa().value;l!==i.value&&(t!=null&&t.removeInputId&&(i.value&&t.removeInputId(i.value),!(r!=null&&r.value)&&!a&&l&&t.addInputId(l)),i.value=l)},{immediate:!0})}),ha(()=>{u&&u(),t!=null&&t.removeInputId&&i.value&&t.removeInputId(i.value)}),{isLabeledByFormItem:p,inputId:i}};var U6={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}};const H6=e=>(t,n)=>W6(t,n,_(e)),W6=(e,t,n)=>Yn(n,e,e).replace(/\{(\w+)\}/g,(r,i)=>{var u;return`${(u=t==null?void 0:t[i])!=null?u:`{${i}}`}`}),G6=e=>{const t=ee(()=>_(e).name),n=Pt(e)?e:ae(e);return{lang:t,locale:n,t:H6(e)}},xn=()=>{const e=Ii("locale");return G6(ee(()=>e.value||U6))},Ww=e=>{Pt(e)||Mn("[useLockscreen]","You need to pass a ref param to this function");const t=Pe("popup"),n=f_(()=>t.bm("parent","hidden"));if(!ht||Oh(document.body,n.value))return;let r=0,i=!1,u="0";const p=()=>{setTimeout(()=>{sc(document.body,n.value),i&&(document.body.style.width=u)},200)};xe(e,o=>{if(!o){p();return}i=!Oh(document.body,n.value),i&&(u=document.body.style.width),r=x6(t.namespace.value);const a=document.documentElement.clientHeight<document.body.scrollHeight,l=Tw(document.body,"overflowY");r>0&&(a||l==="scroll")&&i&&(document.body.style.width=`calc(100% - ${r}px)`),Rs(document.body,n.value)}),Ap(()=>p())},Y6=Ef({type:Oe(Boolean),default:null}),K6=Ef({type:Oe(Function)}),X6=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,r=[t],i={[e]:Y6,[n]:K6};return{useModelToggle:({indicator:p,toggleReason:o,shouldHideWhenRouteChanges:a,shouldProceed:l,onShow:h,onHide:c})=>{const f=Et(),{emit:s}=f,d=f.props,g=ee(()=>He(d[n])),m=ee(()=>d[e]===null),v=T=>{p.value!==!0&&(p.value=!0,o&&(o.value=T),He(h)&&h(T))},y=T=>{p.value!==!1&&(p.value=!1,o&&(o.value=T),He(c)&&c(T))},b=T=>{if(d.disabled===!0||He(l)&&!l())return;const k=g.value&&ht;k&&s(t,!0),(m.value||!k)&&v(T)},w=T=>{if(d.disabled===!0||!ht)return;const k=g.value&&ht;k&&s(t,!1),(m.value||!k)&&y(T)},S=T=>{!Qn(T)||(d.disabled&&T?g.value&&s(t,!1):p.value!==T&&(T?v():y()))},C=()=>{p.value?w():b()};return xe(()=>d[e],S),a&&f.appContext.config.globalProperties.$route!==void 0&&xe(()=>({...f.proxy.$route}),()=>{a.value&&p.value&&w()}),rt(()=>{S(d[e])}),{hide:w,show:b,toggle:C,hasUpdateHandler:g}},useModelToggleProps:i,useModelToggleEmits:r}},q6=(e,t)=>{let n;xe(()=>e.value,r=>{var i,u;r?(n=document.activeElement,Pt(t)&&((u=(i=t.value).focus)==null||u.call(i))):n.focus()})},ym=e=>{if(!e)return{onClick:ot,onMousedown:ot,onMouseup:ot};let t=!1,n=!1;return{onClick:p=>{t&&n&&e(p),t=n=!1},onMousedown:p=>{t=p.target===p.currentTarget},onMouseup:p=>{n=p.target===p.currentTarget}}};function Z6(){let e;const t=(r,i)=>{n(),e=window.setTimeout(r,i)},n=()=>window.clearTimeout(e);return so(()=>n()),{registerTimeout:t,cancelTimeout:n}}let Po=[];const A0=e=>{const t=e;t.key===At.esc&&Po.forEach(n=>n(t))},J6=e=>{rt(()=>{Po.length===0&&document.addEventListener("keydown",A0),ht&&Po.push(e)}),tn(()=>{Po=Po.filter(t=>t!==e),Po.length===0&&ht&&document.removeEventListener("keydown",A0)})};let P0;const Q6=Ii("namespace",Pf),Gw=`${Q6.value}-popper-container-${gm()}`,Yw=`#${Gw}`,e8=()=>{const e=document.createElement("div");return e.id=Gw,document.body.appendChild(e),e},t8=()=>{P_(()=>{!ht||(!P0||!document.body.querySelector(Yw))&&(P0=e8())})},n8=Be({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200}}),r8=({showAfter:e,hideAfter:t,open:n,close:r})=>{const{registerTimeout:i}=Z6();return{onOpen:o=>{i(()=>{n(o)},_(e))},onClose:o=>{i(()=>{r(o)},_(t))}}},Kw=Symbol("elForwardRef"),i8=e=>{vt(Kw,{setForwardRef:n=>{e.value=n}})},a8=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),I0=ae(0),ru=()=>{const e=Ii("zIndex",2e3),t=ee(()=>e.value+I0.value);return{initialZIndex:e,currentZIndex:t,nextZIndex:()=>(I0.value++,t.value)}};function o8(e){const t=ae();function n(){if(e.value==null)return;const{selectionStart:i,selectionEnd:u,value:p}=e.value;if(i==null||u==null)return;const o=p.slice(0,Math.max(0,i)),a=p.slice(Math.max(0,u));t.value={selectionStart:i,selectionEnd:u,value:p,beforeTxt:o,afterTxt:a}}function r(){if(e.value==null||t.value==null)return;const{value:i}=e.value,{beforeTxt:u,afterTxt:p,selectionStart:o}=t.value;if(u==null||p==null||o==null)return;let a=i.length;if(i.endsWith(p))a=i.length-p.length;else if(i.startsWith(u))a=u.length;else{const l=u[o-1],h=i.indexOf(l,o-1);h!==-1&&(a=h+1)}e.value.setSelectionRange(a,a)}return[n,r]}var Re=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n};const s8=Be({size:{type:Oe([Number,String])},color:{type:String}}),l8={name:"ElIcon",inheritAttrs:!1},u8=be({...l8,props:s8,setup(e){const t=e,n=Pe("icon"),r=ee(()=>{const{size:i,color:u}=t;return!i&&!u?{}:{fontSize:xr(i)?void 0:qr(i),"--color":u}});return(i,u)=>(N(),oe("i",$n({class:_(n).b(),style:_(r)},i.$attrs),[ke(i.$slots,"default")],16))}});var c8=Re(u8,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const De=wt(c8);let _r;const f8=`
|
|
height:0 !important;
|
|
visibility:hidden !important;
|
|
overflow:hidden !important;
|
|
position:absolute !important;
|
|
z-index:-1000 !important;
|
|
top:0 !important;
|
|
right:0 !important;
|
|
`,d8=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function h8(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),i=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:d8.map(p=>`${p}:${t.getPropertyValue(p)}`).join(";"),paddingSize:r,borderSize:i,boxSizing:n}}function M0(e,t=1,n){var r;_r||(_r=document.createElement("textarea"),document.body.appendChild(_r));const{paddingSize:i,borderSize:u,boxSizing:p,contextStyle:o}=h8(e);_r.setAttribute("style",`${o};${f8}`),_r.value=e.value||e.placeholder||"";let a=_r.scrollHeight;const l={};p==="border-box"?a=a+u:p==="content-box"&&(a=a-i),_r.value="";const h=_r.scrollHeight-i;if(ut(t)){let c=h*t;p==="border-box"&&(c=c+i+u),a=Math.max(c,a),l.minHeight=`${c}px`}if(ut(n)){let c=h*n;p==="border-box"&&(c=c+i+u),a=Math.min(c,a)}return l.height=`${a}px`,(r=_r.parentNode)==null||r.removeChild(_r),_r=void 0,l}const p8=Be({id:{type:String,default:void 0},size:oa,disabled:Boolean,modelValue:{type:Oe([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:Oe([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String,default:""},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:Qt},prefixIcon:{type:Qt},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:Oe([Object,Array,String]),default:()=>un({})}}),m8={[gt]:e=>Xe(e),input:e=>Xe(e),change:e=>Xe(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},g8=["role"],v8=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder"],y8=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder"],b8={name:"ElInput",inheritAttrs:!1},_8=be({...b8,props:p8,emits:m8,setup(e,{expose:t,emit:n}){const r=e,i={suffix:"append",prefix:"prepend"},u=Et(),p=D_(),o=ss(),a=ee(()=>{const ie={};return r.containerRole==="combobox"&&(ie["aria-haspopup"]=p["aria-haspopup"],ie["aria-owns"]=p["aria-owns"],ie["aria-expanded"]=p["aria-expanded"]),ie}),l=Pw({excludeKeys:ee(()=>Object.keys(a.value))}),{form:h,formItem:c}=pa(),{inputId:f}=nu(r,{formItemContext:c}),s=yr(),d=lo(),g=Pe("input"),m=Pe("textarea"),v=mn(),y=mn(),b=ae(!1),w=ae(!1),S=ae(!1),C=ae(!1),T=ae(),k=mn(r.inputStyle),A=ee(()=>v.value||y.value),P=ee(()=>{var ie;return(ie=h==null?void 0:h.statusIcon)!=null?ie:!1}),z=ee(()=>(c==null?void 0:c.validateState)||""),I=ee(()=>z.value&&O6[z.value]),$=ee(()=>C.value?JO:yO),O=ee(()=>[p.style,r.inputStyle]),Y=ee(()=>[r.inputStyle,k.value,{resize:r.resize}]),re=ee(()=>Hr(r.modelValue)?"":String(r.modelValue)),q=ee(()=>r.clearable&&!d.value&&!r.readonly&&!!re.value&&(b.value||w.value)),J=ee(()=>r.showPassword&&!d.value&&!r.readonly&&!!re.value&&(!!re.value||b.value)),E=ee(()=>r.showWordLimit&&!!l.value.maxlength&&(r.type==="text"||r.type==="textarea")&&!d.value&&!r.readonly&&!r.showPassword),V=ee(()=>Array.from(re.value).length),M=ee(()=>!!E.value&&V.value>Number(l.value.maxlength)),R=ee(()=>!!o.suffix||!!r.suffixIcon||q.value||r.showPassword||E.value||!!z.value&&P.value),[G,D]=o8(v);Jr(y,ie=>{if(!E.value||r.resize!=="both")return;const he=ie[0],{width:we}=he.contentRect;T.value={right:`calc(100% - ${we+15+6}px)`}});const B=()=>{const{type:ie,autosize:he}=r;if(!(!ht||ie!=="textarea"))if(he){const we=it(he)?he.minRows:void 0,Te=it(he)?he.maxRows:void 0;k.value={...M0(y.value,we,Te)}}else k.value={minHeight:M0(y.value).minHeight}},Z=()=>{const ie=A.value;!ie||ie.value===re.value||(ie.value=re.value)},H=ie=>{const{el:he}=u.vnode;if(!he)return;const Te=Array.from(he.querySelectorAll(`.${g.e(ie)}`)).find(Le=>Le.parentNode===he);if(!Te)return;const Ae=i[ie];o[Ae]?Te.style.transform=`translateX(${ie==="suffix"?"-":""}${he.querySelector(`.${g.be("group",Ae)}`).offsetWidth}px)`:Te.removeAttribute("style")},Q=()=>{H("prefix"),H("suffix")},te=async ie=>{G();let{value:he}=ie.target;if(r.formatter&&(he=r.parser?r.parser(he):he,he=r.formatter(he)),!S.value){if(he===re.value){Z();return}n(gt,he),n("input",he),await Ge(),Z(),D()}},fe=ie=>{n("change",ie.target.value)},me=ie=>{n("compositionstart",ie),S.value=!0},_e=ie=>{var he;n("compositionupdate",ie);const we=(he=ie.target)==null?void 0:he.value,Te=we[we.length-1]||"";S.value=!Aw(Te)},j=ie=>{n("compositionend",ie),S.value&&(S.value=!1,te(ie))},x=()=>{C.value=!C.value,U()},U=async()=>{var ie;await Ge(),(ie=A.value)==null||ie.focus()},K=()=>{var ie;return(ie=A.value)==null?void 0:ie.blur()},L=ie=>{b.value=!0,n("focus",ie)},F=ie=>{var he;b.value=!1,n("blur",ie),r.validateEvent&&((he=c==null?void 0:c.validate)==null||he.call(c,"blur").catch(we=>void 0))},X=ie=>{w.value=!1,n("mouseleave",ie)},de=ie=>{w.value=!0,n("mouseenter",ie)},le=ie=>{n("keydown",ie)},W=()=>{var ie;(ie=A.value)==null||ie.select()},pe=()=>{n(gt,""),n("change",""),n("clear"),n("input","")};return xe(()=>r.modelValue,()=>{var ie;Ge(()=>B()),r.validateEvent&&((ie=c==null?void 0:c.validate)==null||ie.call(c,"change").catch(he=>void 0))}),xe(re,()=>Z()),xe(()=>r.type,async()=>{await Ge(),Z(),B(),Q()}),rt(async()=>{!r.formatter&&r.parser,Z(),Q(),await Ge(),B()}),ro(async()=>{await Ge(),Q()}),t({input:v,textarea:y,ref:A,textareaStyle:Y,autosize:tr(r,"autosize"),focus:U,blur:K,select:W,clear:pe,resizeTextarea:B}),(ie,he)=>Tt((N(),oe("div",$n(_(a),{class:[ie.type==="textarea"?_(m).b():_(g).b(),_(g).m(_(s)),_(g).is("disabled",_(d)),_(g).is("exceed",_(M)),{[_(g).b("group")]:ie.$slots.prepend||ie.$slots.append,[_(g).bm("group","append")]:ie.$slots.append,[_(g).bm("group","prepend")]:ie.$slots.prepend,[_(g).m("prefix")]:ie.$slots.prefix||ie.prefixIcon,[_(g).m("suffix")]:ie.$slots.suffix||ie.suffixIcon||ie.clearable||ie.showPassword,[_(g).bm("suffix","password-clear")]:_(q)&&_(J)},ie.$attrs.class],style:_(O),role:ie.containerRole,onMouseenter:de,onMouseleave:X}),[ge(" input "),ie.type!=="textarea"?(N(),oe($e,{key:0},[ge(" prepend slot "),ie.$slots.prepend?(N(),oe("div",{key:0,class:ce(_(g).be("group","prepend"))},[ke(ie.$slots,"prepend")],2)):ge("v-if",!0),ne("div",{class:ce([_(g).e("wrapper"),_(g).is("focus",b.value)])},[ge(" prefix slot "),ie.$slots.prefix||ie.prefixIcon?(N(),oe("span",{key:0,class:ce(_(g).e("prefix"))},[ne("span",{class:ce(_(g).e("prefix-inner"))},[ke(ie.$slots,"prefix"),ie.prefixIcon?(N(),ve(_(De),{key:0,class:ce(_(g).e("icon"))},{default:ue(()=>[(N(),ve(xt(ie.prefixIcon)))]),_:1},8,["class"])):ge("v-if",!0)],2)],2)):ge("v-if",!0),ne("input",$n({id:_(f),ref_key:"input",ref:v,class:_(g).e("inner")},_(l),{type:ie.showPassword?C.value?"text":"password":ie.type,disabled:_(d),formatter:ie.formatter,parser:ie.parser,readonly:ie.readonly,autocomplete:ie.autocomplete,tabindex:ie.tabindex,"aria-label":ie.label,placeholder:ie.placeholder,style:ie.inputStyle,onCompositionstart:me,onCompositionupdate:_e,onCompositionend:j,onInput:te,onFocus:L,onBlur:F,onChange:fe,onKeydown:le}),null,16,v8),ge(" suffix slot "),_(R)?(N(),oe("span",{key:1,class:ce(_(g).e("suffix"))},[ne("span",{class:ce(_(g).e("suffix-inner"))},[!_(q)||!_(J)||!_(E)?(N(),oe($e,{key:0},[ke(ie.$slots,"suffix"),ie.suffixIcon?(N(),ve(_(De),{key:0,class:ce(_(g).e("icon"))},{default:ue(()=>[(N(),ve(xt(ie.suffixIcon)))]),_:1},8,["class"])):ge("v-if",!0)],64)):ge("v-if",!0),_(q)?(N(),ve(_(De),{key:1,class:ce([_(g).e("icon"),_(g).e("clear")]),onMousedown:Qe(_(ot),["prevent"]),onClick:pe},{default:ue(()=>[se(_(wf))]),_:1},8,["class","onMousedown"])):ge("v-if",!0),_(J)?(N(),ve(_(De),{key:2,class:ce([_(g).e("icon"),_(g).e("password")]),onClick:x},{default:ue(()=>[(N(),ve(xt(_($))))]),_:1},8,["class"])):ge("v-if",!0),_(E)?(N(),oe("span",{key:3,class:ce(_(g).e("count"))},[ne("span",{class:ce(_(g).e("count-inner"))},Ee(_(V))+" / "+Ee(_(l).maxlength),3)],2)):ge("v-if",!0),_(z)&&_(I)&&_(P)?(N(),ve(_(De),{key:4,class:ce([_(g).e("icon"),_(g).e("validateIcon"),_(g).is("loading",_(z)==="validating")])},{default:ue(()=>[(N(),ve(xt(_(I))))]),_:1},8,["class"])):ge("v-if",!0)],2)],2)):ge("v-if",!0)],2),ge(" append slot "),ie.$slots.append?(N(),oe("div",{key:1,class:ce(_(g).be("group","append"))},[ke(ie.$slots,"append")],2)):ge("v-if",!0)],64)):(N(),oe($e,{key:1},[ge(" textarea "),ne("textarea",$n({id:_(f),ref_key:"textarea",ref:y,class:_(m).e("inner")},_(l),{tabindex:ie.tabindex,disabled:_(d),readonly:ie.readonly,autocomplete:ie.autocomplete,style:_(Y),"aria-label":ie.label,placeholder:ie.placeholder,onCompositionstart:me,onCompositionupdate:_e,onCompositionend:j,onInput:te,onFocus:L,onBlur:F,onChange:fe,onKeydown:le}),null,16,y8),_(E)?(N(),oe("span",{key:0,style:je(T.value),class:ce(_(g).e("count"))},Ee(_(V))+" / "+Ee(_(l).maxlength),7)):ge("v-if",!0)],64))],16,g8)),[[Kt,ie.type!=="hidden"]])}});var w8=Re(_8,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]]);const uo=wt(w8),Mo=4,S8={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},C8=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),x8=Be({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),T8=be({__name:"thumb",props:x8,setup(e){const t=e,n="Thumb",r=qe(Nw),i=Pe("scrollbar");r||Mn(n,"can not inject scrollbar context");const u=ae(),p=ae(),o=ae({}),a=ae(!1);let l=!1,h=!1,c=ht?document.onselectstart:null;const f=ee(()=>S8[t.vertical?"vertical":"horizontal"]),s=ee(()=>C8({size:t.size,move:t.move,bar:f.value})),d=ee(()=>u.value[f.value.offset]**2/r.wrapElement[f.value.scrollSize]/t.ratio/p.value[f.value.offset]),g=T=>{var k;if(T.stopPropagation(),T.ctrlKey||[1,2].includes(T.button))return;(k=window.getSelection())==null||k.removeAllRanges(),v(T);const A=T.currentTarget;!A||(o.value[f.value.axis]=A[f.value.offset]-(T[f.value.client]-A.getBoundingClientRect()[f.value.direction]))},m=T=>{if(!p.value||!u.value||!r.wrapElement)return;const k=Math.abs(T.target.getBoundingClientRect()[f.value.direction]-T[f.value.client]),A=p.value[f.value.offset]/2,P=(k-A)*100*d.value/u.value[f.value.offset];r.wrapElement[f.value.scroll]=P*r.wrapElement[f.value.scrollSize]/100},v=T=>{T.stopImmediatePropagation(),l=!0,document.addEventListener("mousemove",y),document.addEventListener("mouseup",b),c=document.onselectstart,document.onselectstart=()=>!1},y=T=>{if(!u.value||!p.value||l===!1)return;const k=o.value[f.value.axis];if(!k)return;const A=(u.value.getBoundingClientRect()[f.value.direction]-T[f.value.client])*-1,P=p.value[f.value.offset]-k,z=(A-P)*100*d.value/u.value[f.value.offset];r.wrapElement[f.value.scroll]=z*r.wrapElement[f.value.scrollSize]/100},b=()=>{l=!1,o.value[f.value.axis]=0,document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",b),C(),h&&(a.value=!1)},w=()=>{h=!1,a.value=!!t.size},S=()=>{h=!0,a.value=l};tn(()=>{C(),document.removeEventListener("mouseup",b)});const C=()=>{document.onselectstart!==c&&(document.onselectstart=c)};return _t(tr(r,"scrollbarElement"),"mousemove",w),_t(tr(r,"scrollbarElement"),"mouseleave",S),(T,k)=>(N(),ve(Vn,{name:_(i).b("fade"),persisted:""},{default:ue(()=>[Tt(ne("div",{ref_key:"instance",ref:u,class:ce([_(i).e("bar"),_(i).is(_(f).key)]),onMousedown:m},[ne("div",{ref_key:"thumb",ref:p,class:ce(_(i).e("thumb")),style:je(_(s)),onMousedown:g},null,38)],34),[[Kt,T.always||a.value]])]),_:1},8,["name"]))}});var L0=Re(T8,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const k8=Be({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),E8=be({__name:"bar",props:k8,setup(e,{expose:t}){const n=e,r=ae(0),i=ae(0);return t({handleScroll:p=>{if(p){const o=p.offsetHeight-Mo,a=p.offsetWidth-Mo;i.value=p.scrollTop*100/o*n.ratioY,r.value=p.scrollLeft*100/a*n.ratioX}}}),(p,o)=>(N(),oe($e,null,[se(L0,{move:r.value,ratio:p.ratioX,size:p.width,always:p.always},null,8,["move","ratio","size","always"]),se(L0,{move:i.value,ratio:p.ratioY,size:p.height,vertical:"",always:p.always},null,8,["move","ratio","size","always"])],64))}});var O8=Re(E8,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const A8=Be({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:Boolean,wrapStyle:{type:Oe([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20}}),P8={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(ut)},I8={name:"ElScrollbar"},M8=be({...I8,props:A8,emits:P8,setup(e,{expose:t,emit:n}){const r=e,i=Pe("scrollbar");let u,p;const o=ae(),a=ae(),l=ae(),h=ae("0"),c=ae("0"),f=ae(),s=ae(1),d=ae(1),g=ee(()=>{const S={};return r.height&&(S.height=qr(r.height)),r.maxHeight&&(S.maxHeight=qr(r.maxHeight)),[r.wrapStyle,S]}),m=()=>{var S;a.value&&((S=f.value)==null||S.handleScroll(a.value),n("scroll",{scrollTop:a.value.scrollTop,scrollLeft:a.value.scrollLeft}))};function v(S,C){it(S)?a.value.scrollTo(S):ut(S)&&ut(C)&&a.value.scrollTo(S,C)}const y=S=>{!ut(S)||(a.value.scrollTop=S)},b=S=>{!ut(S)||(a.value.scrollLeft=S)},w=()=>{if(!a.value)return;const S=a.value.offsetHeight-Mo,C=a.value.offsetWidth-Mo,T=S**2/a.value.scrollHeight,k=C**2/a.value.scrollWidth,A=Math.max(T,r.minSize),P=Math.max(k,r.minSize);s.value=T/(S-T)/(A/(S-A)),d.value=k/(C-k)/(P/(C-P)),c.value=A+Mo<S?`${A}px`:"",h.value=P+Mo<C?`${P}px`:""};return xe(()=>r.noresize,S=>{S?(u==null||u(),p==null||p()):({stop:u}=Jr(l,w),p=_t("resize",w))},{immediate:!0}),xe(()=>[r.maxHeight,r.height],()=>{r.native||Ge(()=>{var S;w(),a.value&&((S=f.value)==null||S.handleScroll(a.value))})}),vt(Nw,kt({scrollbarElement:o,wrapElement:a})),rt(()=>{r.native||Ge(()=>{w()})}),ro(()=>w()),t({wrap$:a,update:w,scrollTo:v,setScrollTop:y,setScrollLeft:b,handleScroll:m}),(S,C)=>(N(),oe("div",{ref_key:"scrollbar$",ref:o,class:ce(_(i).b())},[ne("div",{ref_key:"wrap$",ref:a,class:ce([S.wrapClass,_(i).e("wrap"),{[_(i).em("wrap","hidden-default")]:!S.native}]),style:je(_(g)),onScroll:m},[(N(),ve(xt(S.tag),{ref_key:"resize$",ref:l,class:ce([_(i).e("view"),S.viewClass]),style:je(S.viewStyle)},{default:ue(()=>[ke(S.$slots,"default")]),_:3},8,["class","style"]))],38),S.native?ge("v-if",!0):(N(),ve(O8,{key:0,ref_key:"barRef",ref:f,height:c.value,width:h.value,always:S.always,"ratio-x":d.value,"ratio-y":s.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});var L8=Re(M8,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);const Xw=wt(L8),R8={LIGHT:"light",DARK:"dark"},D8=["dialog","grid","listbox","menu","tooltip","tree"],qw=Be({role:{type:String,values:D8,default:"tooltip"}}),F8={name:"ElPopperRoot",inheritAttrs:!1},B8=be({...F8,props:qw,setup(e,{expose:t}){const n=e,r=ae(),i=ae(),u=ae(),p=ae(),o=ee(()=>n.role),a={triggerRef:r,popperInstanceRef:i,contentRef:u,referenceRef:p,role:o};return t(a),vt(vm,a),(l,h)=>ke(l.$slots,"default")}});var $8=Re(B8,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const Zw=Be({arrowOffset:{type:Number,default:5}}),N8={name:"ElPopperArrow",inheritAttrs:!1},z8=be({...N8,props:Zw,setup(e,{expose:t}){const n=e,r=Pe("popper"),{arrowOffset:i,arrowRef:u}=qe(Vw,void 0);return xe(()=>n.arrowOffset,p=>{i.value=p}),tn(()=>{u.value=void 0}),t({arrowRef:u}),(p,o)=>(N(),oe("span",{ref_key:"arrowRef",ref:u,class:ce(_(r).e("arrow")),"data-popper-arrow":""},null,2))}});var j8=Re(z8,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const V8="ElOnlyChild",U8=be({name:V8,setup(e,{slots:t,attrs:n}){var r;const i=qe(Kw),u=a8((r=i==null?void 0:i.setForwardRef)!=null?r:ot);return()=>{var p;const o=(p=t.default)==null?void 0:p.call(t,n);if(!o||o.length>1)return null;const a=Jw(o);return a?Tt(Ci(a,n),[[u]]):null}}});function Jw(e){if(!e)return null;const t=e;for(const n of t){if(it(n))switch(n.type){case hn:continue;case ls:case"svg":return R0(n);case $e:return Jw(n.children);default:return n}return R0(n)}return null}function R0(e){const t=Pe("only-child");return se("span",{class:t.e("content")},[e])}const Qw=Be({virtualRef:{type:Oe(Object)},virtualTriggering:Boolean,onMouseenter:Function,onMouseleave:Function,onClick:Function,onKeydown:Function,onFocus:Function,onBlur:Function,onContextmenu:Function,id:String,open:Boolean}),H8={name:"ElPopperTrigger",inheritAttrs:!1},W8=be({...H8,props:Qw,setup(e,{expose:t}){const n=e,{role:r,triggerRef:i}=qe(vm,void 0);i8(i);const u=ee(()=>o.value?n.id:void 0),p=ee(()=>{if(r&&r.value==="tooltip")return n.open&&n.id?n.id:void 0}),o=ee(()=>{if(r&&r.value!=="tooltip")return r.value}),a=ee(()=>o.value?`${n.open}`:void 0);let l;return rt(()=>{xe(()=>n.virtualRef,h=>{h&&(i.value=Cr(h))},{immediate:!0}),xe(()=>i.value,(h,c)=>{l==null||l(),l=void 0,Ka(h)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(f=>{var s;const d=n[f];d&&(h.addEventListener(f.slice(2).toLowerCase(),d),(s=c==null?void 0:c.removeEventListener)==null||s.call(c,f.slice(2).toLowerCase(),d))}),l=xe([u,p,o,a],f=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((s,d)=>{Hr(f[d])?h.removeAttribute(s):h.setAttribute(s,f[d])})},{immediate:!0})),Ka(c)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(f=>c.removeAttribute(f))},{immediate:!0})}),tn(()=>{l==null||l(),l=void 0}),t({triggerRef:i}),(h,c)=>h.virtualTriggering?ge("v-if",!0):(N(),ve(_(U8),$n({key:0},h.$attrs,{"aria-controls":_(u),"aria-describedby":_(p),"aria-expanded":_(a),"aria-haspopup":_(o)}),{default:ue(()=>[ke(h.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var G8=Re(W8,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]),zn="top",pr="bottom",mr="right",jn="left",bm="auto",iu=[zn,pr,mr,jn],Zo="start",kl="end",Y8="clippingParents",e2="viewport",As="popper",K8="reference",D0=iu.reduce(function(e,t){return e.concat([t+"-"+Zo,t+"-"+kl])},[]),hs=[].concat(iu,[bm]).reduce(function(e,t){return e.concat([t,t+"-"+Zo,t+"-"+kl])},[]),X8="beforeRead",q8="read",Z8="afterRead",J8="beforeMain",Q8="main",eM="afterMain",tM="beforeWrite",nM="write",rM="afterWrite",iM=[X8,q8,Z8,J8,Q8,eM,tM,nM,rM];function Zr(e){return e?(e.nodeName||"").toLowerCase():null}function Lr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Jo(e){var t=Lr(e).Element;return e instanceof t||e instanceof Element}function dr(e){var t=Lr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function _m(e){if(typeof ShadowRoot>"u")return!1;var t=Lr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function aM(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},u=t.elements[n];!dr(u)||!Zr(u)||(Object.assign(u.style,r),Object.keys(i).forEach(function(p){var o=i[p];o===!1?u.removeAttribute(p):u.setAttribute(p,o===!0?"":o)}))})}function oM(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],u=t.attributes[r]||{},p=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),o=p.reduce(function(a,l){return a[l]="",a},{});!dr(i)||!Zr(i)||(Object.assign(i.style,o),Object.keys(u).forEach(function(a){i.removeAttribute(a)}))})}}var t2={name:"applyStyles",enabled:!0,phase:"write",fn:aM,effect:oM,requires:["computeStyles"]};function Wr(e){return e.split("-")[0]}var Va=Math.max,Wc=Math.min,Qo=Math.round;function es(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,i=1;if(dr(e)&&t){var u=e.offsetHeight,p=e.offsetWidth;p>0&&(r=Qo(n.width)/p||1),u>0&&(i=Qo(n.height)/u||1)}return{width:n.width/r,height:n.height/i,top:n.top/i,right:n.right/r,bottom:n.bottom/i,left:n.left/r,x:n.left/r,y:n.top/i}}function wm(e){var t=es(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function n2(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&_m(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ti(e){return Lr(e).getComputedStyle(e)}function sM(e){return["table","td","th"].indexOf(Zr(e))>=0}function ma(e){return((Jo(e)?e.ownerDocument:e.document)||window.document).documentElement}function If(e){return Zr(e)==="html"?e:e.assignedSlot||e.parentNode||(_m(e)?e.host:null)||ma(e)}function F0(e){return!dr(e)||Ti(e).position==="fixed"?null:e.offsetParent}function lM(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&dr(e)){var r=Ti(e);if(r.position==="fixed")return null}var i=If(e);for(_m(i)&&(i=i.host);dr(i)&&["html","body"].indexOf(Zr(i))<0;){var u=Ti(i);if(u.transform!=="none"||u.perspective!=="none"||u.contain==="paint"||["transform","perspective"].indexOf(u.willChange)!==-1||t&&u.willChange==="filter"||t&&u.filter&&u.filter!=="none")return i;i=i.parentNode}return null}function au(e){for(var t=Lr(e),n=F0(e);n&&sM(n)&&Ti(n).position==="static";)n=F0(n);return n&&(Zr(n)==="html"||Zr(n)==="body"&&Ti(n).position==="static")?t:n||lM(e)||t}function Sm(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Js(e,t,n){return Va(e,Wc(t,n))}function uM(e,t,n){var r=Js(e,t,n);return r>n?n:r}function r2(){return{top:0,right:0,bottom:0,left:0}}function i2(e){return Object.assign({},r2(),e)}function a2(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var cM=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,i2(typeof e!="number"?e:a2(e,iu))};function fM(e){var t,n=e.state,r=e.name,i=e.options,u=n.elements.arrow,p=n.modifiersData.popperOffsets,o=Wr(n.placement),a=Sm(o),l=[jn,mr].indexOf(o)>=0,h=l?"height":"width";if(!(!u||!p)){var c=cM(i.padding,n),f=wm(u),s=a==="y"?zn:jn,d=a==="y"?pr:mr,g=n.rects.reference[h]+n.rects.reference[a]-p[a]-n.rects.popper[h],m=p[a]-n.rects.reference[a],v=au(u),y=v?a==="y"?v.clientHeight||0:v.clientWidth||0:0,b=g/2-m/2,w=c[s],S=y-f[h]-c[d],C=y/2-f[h]/2+b,T=Js(w,C,S),k=a;n.modifiersData[r]=(t={},t[k]=T,t.centerOffset=T-C,t)}}function dM(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||!n2(t.elements.popper,i)||(t.elements.arrow=i))}var hM={name:"arrow",enabled:!0,phase:"main",fn:fM,effect:dM,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ts(e){return e.split("-")[1]}var pM={top:"auto",right:"auto",bottom:"auto",left:"auto"};function mM(e){var t=e.x,n=e.y,r=window,i=r.devicePixelRatio||1;return{x:Qo(t*i)/i||0,y:Qo(n*i)/i||0}}function B0(e){var t,n=e.popper,r=e.popperRect,i=e.placement,u=e.variation,p=e.offsets,o=e.position,a=e.gpuAcceleration,l=e.adaptive,h=e.roundOffsets,c=e.isFixed,f=p.x,s=f===void 0?0:f,d=p.y,g=d===void 0?0:d,m=typeof h=="function"?h({x:s,y:g}):{x:s,y:g};s=m.x,g=m.y;var v=p.hasOwnProperty("x"),y=p.hasOwnProperty("y"),b=jn,w=zn,S=window;if(l){var C=au(n),T="clientHeight",k="clientWidth";if(C===Lr(n)&&(C=ma(n),Ti(C).position!=="static"&&o==="absolute"&&(T="scrollHeight",k="scrollWidth")),C=C,i===zn||(i===jn||i===mr)&&u===kl){w=pr;var A=c&&C===S&&S.visualViewport?S.visualViewport.height:C[T];g-=A-r.height,g*=a?1:-1}if(i===jn||(i===zn||i===pr)&&u===kl){b=mr;var P=c&&C===S&&S.visualViewport?S.visualViewport.width:C[k];s-=P-r.width,s*=a?1:-1}}var z=Object.assign({position:o},l&&pM),I=h===!0?mM({x:s,y:g}):{x:s,y:g};if(s=I.x,g=I.y,a){var $;return Object.assign({},z,($={},$[w]=y?"0":"",$[b]=v?"0":"",$.transform=(S.devicePixelRatio||1)<=1?"translate("+s+"px, "+g+"px)":"translate3d("+s+"px, "+g+"px, 0)",$))}return Object.assign({},z,(t={},t[w]=y?g+"px":"",t[b]=v?s+"px":"",t.transform="",t))}function gM(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,u=n.adaptive,p=u===void 0?!0:u,o=n.roundOffsets,a=o===void 0?!0:o,l={placement:Wr(t.placement),variation:ts(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,B0(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:p,roundOffsets:a})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,B0(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var o2={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:gM,data:{}},Au={passive:!0};function vM(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,u=i===void 0?!0:i,p=r.resize,o=p===void 0?!0:p,a=Lr(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return u&&l.forEach(function(h){h.addEventListener("scroll",n.update,Au)}),o&&a.addEventListener("resize",n.update,Au),function(){u&&l.forEach(function(h){h.removeEventListener("scroll",n.update,Au)}),o&&a.removeEventListener("resize",n.update,Au)}}var s2={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:vM,data:{}},yM={left:"right",right:"left",bottom:"top",top:"bottom"};function uc(e){return e.replace(/left|right|bottom|top/g,function(t){return yM[t]})}var bM={start:"end",end:"start"};function $0(e){return e.replace(/start|end/g,function(t){return bM[t]})}function Cm(e){var t=Lr(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function xm(e){return es(ma(e)).left+Cm(e).scrollLeft}function _M(e){var t=Lr(e),n=ma(e),r=t.visualViewport,i=n.clientWidth,u=n.clientHeight,p=0,o=0;return r&&(i=r.width,u=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(p=r.offsetLeft,o=r.offsetTop)),{width:i,height:u,x:p+xm(e),y:o}}function wM(e){var t,n=ma(e),r=Cm(e),i=(t=e.ownerDocument)==null?void 0:t.body,u=Va(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),p=Va(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),o=-r.scrollLeft+xm(e),a=-r.scrollTop;return Ti(i||n).direction==="rtl"&&(o+=Va(n.clientWidth,i?i.clientWidth:0)-u),{width:u,height:p,x:o,y:a}}function Tm(e){var t=Ti(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function l2(e){return["html","body","#document"].indexOf(Zr(e))>=0?e.ownerDocument.body:dr(e)&&Tm(e)?e:l2(If(e))}function Qs(e,t){var n;t===void 0&&(t=[]);var r=l2(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),u=Lr(r),p=i?[u].concat(u.visualViewport||[],Tm(r)?r:[]):r,o=t.concat(p);return i?o:o.concat(Qs(If(p)))}function Ah(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function SM(e){var t=es(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function N0(e,t){return t===e2?Ah(_M(e)):Jo(t)?SM(t):Ah(wM(ma(e)))}function CM(e){var t=Qs(If(e)),n=["absolute","fixed"].indexOf(Ti(e).position)>=0,r=n&&dr(e)?au(e):e;return Jo(r)?t.filter(function(i){return Jo(i)&&n2(i,r)&&Zr(i)!=="body"}):[]}function xM(e,t,n){var r=t==="clippingParents"?CM(e):[].concat(t),i=[].concat(r,[n]),u=i[0],p=i.reduce(function(o,a){var l=N0(e,a);return o.top=Va(l.top,o.top),o.right=Wc(l.right,o.right),o.bottom=Wc(l.bottom,o.bottom),o.left=Va(l.left,o.left),o},N0(e,u));return p.width=p.right-p.left,p.height=p.bottom-p.top,p.x=p.left,p.y=p.top,p}function u2(e){var t=e.reference,n=e.element,r=e.placement,i=r?Wr(r):null,u=r?ts(r):null,p=t.x+t.width/2-n.width/2,o=t.y+t.height/2-n.height/2,a;switch(i){case zn:a={x:p,y:t.y-n.height};break;case pr:a={x:p,y:t.y+t.height};break;case mr:a={x:t.x+t.width,y:o};break;case jn:a={x:t.x-n.width,y:o};break;default:a={x:t.x,y:t.y}}var l=i?Sm(i):null;if(l!=null){var h=l==="y"?"height":"width";switch(u){case Zo:a[l]=a[l]-(t[h]/2-n[h]/2);break;case kl:a[l]=a[l]+(t[h]/2-n[h]/2);break}}return a}function El(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,u=n.boundary,p=u===void 0?Y8:u,o=n.rootBoundary,a=o===void 0?e2:o,l=n.elementContext,h=l===void 0?As:l,c=n.altBoundary,f=c===void 0?!1:c,s=n.padding,d=s===void 0?0:s,g=i2(typeof d!="number"?d:a2(d,iu)),m=h===As?K8:As,v=e.rects.popper,y=e.elements[f?m:h],b=xM(Jo(y)?y:y.contextElement||ma(e.elements.popper),p,a),w=es(e.elements.reference),S=u2({reference:w,element:v,strategy:"absolute",placement:i}),C=Ah(Object.assign({},v,S)),T=h===As?C:w,k={top:b.top-T.top+g.top,bottom:T.bottom-b.bottom+g.bottom,left:b.left-T.left+g.left,right:T.right-b.right+g.right},A=e.modifiersData.offset;if(h===As&&A){var P=A[i];Object.keys(k).forEach(function(z){var I=[mr,pr].indexOf(z)>=0?1:-1,$=[zn,pr].indexOf(z)>=0?"y":"x";k[z]+=P[$]*I})}return k}function TM(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,u=n.rootBoundary,p=n.padding,o=n.flipVariations,a=n.allowedAutoPlacements,l=a===void 0?hs:a,h=ts(r),c=h?o?D0:D0.filter(function(d){return ts(d)===h}):iu,f=c.filter(function(d){return l.indexOf(d)>=0});f.length===0&&(f=c);var s=f.reduce(function(d,g){return d[g]=El(e,{placement:g,boundary:i,rootBoundary:u,padding:p})[Wr(g)],d},{});return Object.keys(s).sort(function(d,g){return s[d]-s[g]})}function kM(e){if(Wr(e)===bm)return[];var t=uc(e);return[$0(e),t,$0(t)]}function EM(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,u=i===void 0?!0:i,p=n.altAxis,o=p===void 0?!0:p,a=n.fallbackPlacements,l=n.padding,h=n.boundary,c=n.rootBoundary,f=n.altBoundary,s=n.flipVariations,d=s===void 0?!0:s,g=n.allowedAutoPlacements,m=t.options.placement,v=Wr(m),y=v===m,b=a||(y||!d?[uc(m)]:kM(m)),w=[m].concat(b).reduce(function(D,B){return D.concat(Wr(B)===bm?TM(t,{placement:B,boundary:h,rootBoundary:c,padding:l,flipVariations:d,allowedAutoPlacements:g}):B)},[]),S=t.rects.reference,C=t.rects.popper,T=new Map,k=!0,A=w[0],P=0;P<w.length;P++){var z=w[P],I=Wr(z),$=ts(z)===Zo,O=[zn,pr].indexOf(I)>=0,Y=O?"width":"height",re=El(t,{placement:z,boundary:h,rootBoundary:c,altBoundary:f,padding:l}),q=O?$?mr:jn:$?pr:zn;S[Y]>C[Y]&&(q=uc(q));var J=uc(q),E=[];if(u&&E.push(re[I]<=0),o&&E.push(re[q]<=0,re[J]<=0),E.every(function(D){return D})){A=z,k=!1;break}T.set(z,E)}if(k)for(var V=d?3:1,M=function(D){var B=w.find(function(Z){var H=T.get(Z);if(H)return H.slice(0,D).every(function(Q){return Q})});if(B)return A=B,"break"},R=V;R>0;R--){var G=M(R);if(G==="break")break}t.placement!==A&&(t.modifiersData[r]._skip=!0,t.placement=A,t.reset=!0)}}var OM={name:"flip",enabled:!0,phase:"main",fn:EM,requiresIfExists:["offset"],data:{_skip:!1}};function z0(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function j0(e){return[zn,mr,pr,jn].some(function(t){return e[t]>=0})}function AM(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,u=t.modifiersData.preventOverflow,p=El(t,{elementContext:"reference"}),o=El(t,{altBoundary:!0}),a=z0(p,r),l=z0(o,i,u),h=j0(a),c=j0(l);t.modifiersData[n]={referenceClippingOffsets:a,popperEscapeOffsets:l,isReferenceHidden:h,hasPopperEscaped:c},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":c})}var PM={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:AM};function IM(e,t,n){var r=Wr(e),i=[jn,zn].indexOf(r)>=0?-1:1,u=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,p=u[0],o=u[1];return p=p||0,o=(o||0)*i,[jn,mr].indexOf(r)>=0?{x:o,y:p}:{x:p,y:o}}function MM(e){var t=e.state,n=e.options,r=e.name,i=n.offset,u=i===void 0?[0,0]:i,p=hs.reduce(function(h,c){return h[c]=IM(c,t.rects,u),h},{}),o=p[t.placement],a=o.x,l=o.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=a,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=p}var LM={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:MM};function RM(e){var t=e.state,n=e.name;t.modifiersData[n]=u2({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var c2={name:"popperOffsets",enabled:!0,phase:"read",fn:RM,data:{}};function DM(e){return e==="x"?"y":"x"}function FM(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,u=i===void 0?!0:i,p=n.altAxis,o=p===void 0?!1:p,a=n.boundary,l=n.rootBoundary,h=n.altBoundary,c=n.padding,f=n.tether,s=f===void 0?!0:f,d=n.tetherOffset,g=d===void 0?0:d,m=El(t,{boundary:a,rootBoundary:l,padding:c,altBoundary:h}),v=Wr(t.placement),y=ts(t.placement),b=!y,w=Sm(v),S=DM(w),C=t.modifiersData.popperOffsets,T=t.rects.reference,k=t.rects.popper,A=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,P=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),z=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(C){if(u){var $,O=w==="y"?zn:jn,Y=w==="y"?pr:mr,re=w==="y"?"height":"width",q=C[w],J=q+m[O],E=q-m[Y],V=s?-k[re]/2:0,M=y===Zo?T[re]:k[re],R=y===Zo?-k[re]:-T[re],G=t.elements.arrow,D=s&&G?wm(G):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:r2(),Z=B[O],H=B[Y],Q=Js(0,T[re],D[re]),te=b?T[re]/2-V-Q-Z-P.mainAxis:M-Q-Z-P.mainAxis,fe=b?-T[re]/2+V+Q+H+P.mainAxis:R+Q+H+P.mainAxis,me=t.elements.arrow&&au(t.elements.arrow),_e=me?w==="y"?me.clientTop||0:me.clientLeft||0:0,j=($=z==null?void 0:z[w])!=null?$:0,x=q+te-j-_e,U=q+fe-j,K=Js(s?Wc(J,x):J,q,s?Va(E,U):E);C[w]=K,I[w]=K-q}if(o){var L,F=w==="x"?zn:jn,X=w==="x"?pr:mr,de=C[S],le=S==="y"?"height":"width",W=de+m[F],pe=de-m[X],ie=[zn,jn].indexOf(v)!==-1,he=(L=z==null?void 0:z[S])!=null?L:0,we=ie?W:de-T[le]-k[le]-he+P.altAxis,Te=ie?de+T[le]+k[le]-he-P.altAxis:pe,Ae=s&&ie?uM(we,de,Te):Js(s?we:W,de,s?Te:pe);C[S]=Ae,I[S]=Ae-de}t.modifiersData[r]=I}}var BM={name:"preventOverflow",enabled:!0,phase:"main",fn:FM,requiresIfExists:["offset"]};function $M(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function NM(e){return e===Lr(e)||!dr(e)?Cm(e):$M(e)}function zM(e){var t=e.getBoundingClientRect(),n=Qo(t.width)/e.offsetWidth||1,r=Qo(t.height)/e.offsetHeight||1;return n!==1||r!==1}function jM(e,t,n){n===void 0&&(n=!1);var r=dr(t),i=dr(t)&&zM(t),u=ma(t),p=es(e,i),o={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(r||!r&&!n)&&((Zr(t)!=="body"||Tm(u))&&(o=NM(t)),dr(t)?(a=es(t,!0),a.x+=t.clientLeft,a.y+=t.clientTop):u&&(a.x=xm(u))),{x:p.left+o.scrollLeft-a.x,y:p.top+o.scrollTop-a.y,width:p.width,height:p.height}}function VM(e){var t=new Map,n=new Set,r=[];e.forEach(function(u){t.set(u.name,u)});function i(u){n.add(u.name);var p=[].concat(u.requires||[],u.requiresIfExists||[]);p.forEach(function(o){if(!n.has(o)){var a=t.get(o);a&&i(a)}}),r.push(u)}return e.forEach(function(u){n.has(u.name)||i(u)}),r}function UM(e){var t=VM(e);return iM.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function HM(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function WM(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var V0={placement:"bottom",modifiers:[],strategy:"absolute"};function U0(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function km(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,u=i===void 0?V0:i;return function(p,o,a){a===void 0&&(a=u);var l={placement:"bottom",orderedModifiers:[],options:Object.assign({},V0,u),modifiersData:{},elements:{reference:p,popper:o},attributes:{},styles:{}},h=[],c=!1,f={state:l,setOptions:function(g){var m=typeof g=="function"?g(l.options):g;d(),l.options=Object.assign({},u,l.options,m),l.scrollParents={reference:Jo(p)?Qs(p):p.contextElement?Qs(p.contextElement):[],popper:Qs(o)};var v=UM(WM([].concat(r,l.options.modifiers)));return l.orderedModifiers=v.filter(function(y){return y.enabled}),s(),f.update()},forceUpdate:function(){if(!c){var g=l.elements,m=g.reference,v=g.popper;if(U0(m,v)){l.rects={reference:jM(m,au(v),l.options.strategy==="fixed"),popper:wm(v)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach(function(k){return l.modifiersData[k.name]=Object.assign({},k.data)});for(var y=0;y<l.orderedModifiers.length;y++){if(l.reset===!0){l.reset=!1,y=-1;continue}var b=l.orderedModifiers[y],w=b.fn,S=b.options,C=S===void 0?{}:S,T=b.name;typeof w=="function"&&(l=w({state:l,options:C,name:T,instance:f})||l)}}}},update:HM(function(){return new Promise(function(g){f.forceUpdate(),g(l)})}),destroy:function(){d(),c=!0}};if(!U0(p,o))return f;f.setOptions(a).then(function(g){!c&&a.onFirstUpdate&&a.onFirstUpdate(g)});function s(){l.orderedModifiers.forEach(function(g){var m=g.name,v=g.options,y=v===void 0?{}:v,b=g.effect;if(typeof b=="function"){var w=b({state:l,name:m,instance:f,options:y}),S=function(){};h.push(w||S)}})}function d(){h.forEach(function(g){return g()}),h=[]}return f}}km();var GM=[s2,c2,o2,t2];km({defaultModifiers:GM});var YM=[s2,c2,o2,t2,LM,OM,BM,hM,PM],KM=km({defaultModifiers:YM});const f2=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0||r===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},H0=(e,t)=>{for(const n of e)if(!XM(n,t))return n},XM=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},qM=e=>{const t=f2(e),n=H0(t,e),r=H0(t.reverse(),e);return[n,r]},ZM=e=>e instanceof HTMLInputElement&&"select"in e,Ni=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&ZM(e)&&t&&e.select()}};function W0(e,t){const n=[...e],r=e.indexOf(t);return r!==-1&&n.splice(r,1),n}const JM=()=>{let e=[];return{push:r=>{const i=e[0];i&&r!==i&&i.pause(),e=W0(e,r),e.unshift(r)},remove:r=>{var i,u;e=W0(e,r),(u=(i=e[0])==null?void 0:i.resume)==null||u.call(i)}}},QM=(e,t=!1)=>{const n=document.activeElement;for(const r of e)if(Ni(r,t),document.activeElement!==n)return},G0=JM(),dd="focus-trap.focus-after-trapped",hd="focus-trap.focus-after-released",Y0={cancelable:!0,bubbles:!1},K0="focusAfterTrapped",X0="focusAfterReleased",d2=Symbol("elFocusTrap"),eL=be({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[K0,X0,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=ae();let r,i;J6(s=>{e.trapped&&!u.paused&&t("release-requested",s)});const u={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},p=s=>{if(!e.loop&&!e.trapped||u.paused)return;const{key:d,altKey:g,ctrlKey:m,metaKey:v,currentTarget:y,shiftKey:b}=s,{loop:w}=e,S=d===At.tab&&!g&&!m&&!v,C=document.activeElement;if(S&&C){const T=y,[k,A]=qM(T);k&&A?!b&&C===A?(s.preventDefault(),w&&Ni(k,!0),t("focusout-prevented")):b&&[k,T].includes(C)&&(s.preventDefault(),w&&Ni(A,!0),t("focusout-prevented")):C===T&&(s.preventDefault(),t("focusout-prevented"))}};vt(d2,{focusTrapRef:n,onKeydown:p}),xe(()=>e.focusTrapEl,s=>{s&&(n.value=s)},{immediate:!0}),xe([n],([s],[d])=>{s&&(s.addEventListener("keydown",p),s.addEventListener("focusin",l),s.addEventListener("focusout",h)),d&&(d.removeEventListener("keydown",p),d.removeEventListener("focusin",l),d.removeEventListener("focusout",h))});const o=s=>{t(K0,s)},a=s=>t(X0,s),l=s=>{const d=_(n);if(!d)return;const g=s.target,m=g&&d.contains(g);m&&t("focusin",s),!u.paused&&e.trapped&&(m?i=g:Ni(i,!0))},h=s=>{const d=_(n);if(!(u.paused||!d))if(e.trapped){const g=s.relatedTarget;!Hr(g)&&!d.contains(g)&&setTimeout(()=>{!u.paused&&e.trapped&&Ni(i,!0)},0)}else{const g=s.target;g&&d.contains(g)||t("focusout",s)}};async function c(){await Ge();const s=_(n);if(s){G0.push(u);const d=document.activeElement;if(r=d,!s.contains(d)){const m=new Event(dd,Y0);s.addEventListener(dd,o),s.dispatchEvent(m),m.defaultPrevented||Ge(()=>{let v=e.focusStartEl;Xe(v)||(Ni(v),document.activeElement!==v&&(v="first")),v==="first"&&QM(f2(s),!0),(document.activeElement===d||v==="container")&&Ni(s)})}}}function f(){const s=_(n);if(s){s.removeEventListener(dd,o);const d=new Event(hd,Y0);s.addEventListener(hd,a),s.dispatchEvent(d),d.defaultPrevented||Ni(r!=null?r:document.body,!0),s.removeEventListener(hd,o),G0.remove(u)}}return rt(()=>{e.trapped&&c(),xe(()=>e.trapped,s=>{s?c():f()})}),tn(()=>{e.trapped&&f()}),{onKeydown:p}}});function tL(e,t,n,r,i,u){return ke(e.$slots,"default",{handleKeydown:e.onKeydown})}var Em=Re(eL,[["render",tL],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const nL=["fixed","absolute"],rL=Be({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:Oe(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:hs,default:"bottom"},popperOptions:{type:Oe(Object),default:()=>({})},strategy:{type:String,values:nL,default:"absolute"}}),h2=Be({...rL,id:String,style:{type:Oe([String,Array,Object])},className:{type:Oe([String,Array,Object])},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:Oe([String,Array,Object])},popperStyle:{type:Oe([String,Array,Object])},referenceEl:{type:Oe(Object)},triggerTargetEl:{type:Oe(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),iL=["mouseenter","mouseleave","focus","blur","close"],q0=(e,t)=>{const{placement:n,strategy:r,popperOptions:i}=e,u={placement:n,strategy:r,...i,modifiers:oL(e)};return sL(u,t),lL(u,i==null?void 0:i.modifiers),u},aL=e=>{if(!!ht)return Cr(e)};function oL(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:r}=e;return[{name:"offset",options:{offset:[0,t!=null?t:12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:r}},{name:"computeStyles",options:{gpuAcceleration:n,adaptive:n}}]}function sL(e,{arrowEl:t,arrowOffset:n}){e.modifiers.push({name:"arrow",options:{element:t,padding:n!=null?n:5}})}function lL(e,t){t&&(e.modifiers=[...e.modifiers,...t!=null?t:[]])}const uL={name:"ElPopperContent"},cL=be({...uL,props:h2,emits:iL,setup(e,{expose:t,emit:n}){const r=e,{popperInstanceRef:i,contentRef:u,triggerRef:p,role:o}=qe(vm,void 0),a=qe(qa,void 0),{nextZIndex:l}=ru(),h=Pe("popper"),c=ae(),f=ae("first"),s=ae(),d=ae();vt(Vw,{arrowRef:s,arrowOffset:d}),a&&(a.addInputId||a.removeInputId)&&vt(qa,{...a,addInputId:ot,removeInputId:ot});const g=ae(r.zIndex||l()),m=ae(!1);let v;const y=ee(()=>aL(r.referenceEl)||_(p)),b=ee(()=>[{zIndex:_(g)},r.popperStyle]),w=ee(()=>[h.b(),h.is("pure",r.pure),h.is(r.effect),r.popperClass]),S=ee(()=>o&&o.value==="dialog"?"false":void 0),C=({referenceEl:O,popperContentEl:Y,arrowEl:re})=>{const q=q0(r,{arrowEl:re,arrowOffset:_(d)});return KM(O,Y,q)},T=(O=!0)=>{var Y;(Y=_(i))==null||Y.update(),O&&(g.value=r.zIndex||l())},k=()=>{var O,Y;const re={name:"eventListeners",enabled:r.visible};(Y=(O=_(i))==null?void 0:O.setOptions)==null||Y.call(O,q=>({...q,modifiers:[...q.modifiers||[],re]})),T(!1),r.visible&&r.focusOnShow?m.value=!0:r.visible===!1&&(m.value=!1)},A=()=>{n("focus")},P=()=>{f.value="first",n("blur")},z=O=>{var Y;r.visible&&!m.value&&(O.target&&(f.value=O.target),m.value=!0,O.relatedTarget&&((Y=O.relatedTarget)==null||Y.focus()))},I=()=>{r.trapping||(m.value=!1)},$=()=>{m.value=!1,n("close")};return rt(()=>{let O;xe(y,Y=>{var re;O==null||O();const q=_(i);if((re=q==null?void 0:q.destroy)==null||re.call(q),Y){const J=_(c);u.value=J,i.value=C({referenceEl:Y,popperContentEl:J,arrowEl:_(s)}),O=xe(()=>Y.getBoundingClientRect(),()=>T(),{immediate:!0})}else i.value=void 0},{immediate:!0}),xe(()=>r.triggerTargetEl,(Y,re)=>{v==null||v(),v=void 0;const q=_(Y||c.value),J=_(re||c.value);if(Ka(q)){const{ariaLabel:E,id:V}=hr(r);v=xe([o,E,S,V],M=>{["role","aria-label","aria-modal","id"].forEach((R,G)=>{Hr(M[G])?q.removeAttribute(R):q.setAttribute(R,M[G])})},{immediate:!0})}J!==q&&Ka(J)&&["role","aria-label","aria-modal","id"].forEach(E=>{J.removeAttribute(E)})},{immediate:!0}),xe(()=>r.visible,k,{immediate:!0}),xe(()=>q0(r,{arrowEl:_(s),arrowOffset:_(d)}),Y=>{var re;return(re=i.value)==null?void 0:re.setOptions(Y)})}),tn(()=>{v==null||v(),v=void 0}),t({popperContentRef:c,popperInstanceRef:i,updatePopper:T,contentStyle:b}),(O,Y)=>(N(),oe("div",{ref_key:"popperContentRef",ref:c,style:je(_(b)),class:ce(_(w)),tabindex:"-1",onMouseenter:Y[0]||(Y[0]=re=>O.$emit("mouseenter",re)),onMouseleave:Y[1]||(Y[1]=re=>O.$emit("mouseleave",re))},[se(_(Em),{trapped:m.value,"trap-on-focus-in":!0,"focus-trap-el":c.value,"focus-start-el":f.value,onFocusAfterTrapped:A,onFocusAfterReleased:P,onFocusin:z,onFocusoutPrevented:I,onReleaseRequested:$},{default:ue(()=>[ke(O.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el"])],38))}});var fL=Re(cL,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const dL=wt($8),hL=Pe("tooltip"),lr=Be({...n8,...h2,appendTo:{type:Oe([String,Object]),default:Yw},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:Oe(Boolean),default:null},transition:{type:String,default:`${hL.namespace.value}-fade-in-linear`},teleported:{type:Boolean,default:!0},disabled:{type:Boolean}}),Ol=Be({...Qw,disabled:Boolean,trigger:{type:Oe([String,Array]),default:"hover"},triggerKeys:{type:Oe(Array),default:()=>[At.enter,At.space]}}),pL=Be({openDelay:{type:Number},visibleArrow:{type:Boolean,default:void 0},hideAfter:{type:Number,default:200},showArrow:{type:Boolean,default:!0}}),Om=Symbol("elTooltip"),mL=be({name:"ElTooltipContent",components:{ElPopperContent:fL},inheritAttrs:!1,props:lr,setup(e){const t=ae(null),n=ae(!1),r=ae(!1),i=ae(!1),u=ae(!1),{controlled:p,id:o,open:a,trigger:l,onClose:h,onOpen:c,onShow:f,onHide:s,onBeforeShow:d,onBeforeHide:g}=qe(Om,void 0),m=ee(()=>e.persistent);tn(()=>{u.value=!0});const v=ee(()=>_(m)?!0:_(a)),y=ee(()=>e.disabled?!1:_(a)),b=ee(()=>{var O;return(O=e.style)!=null?O:{}}),w=ee(()=>!_(a)),S=()=>{s()},C=()=>{if(_(p))return!0},T=ui(C,()=>{e.enterable&&_(l)==="hover"&&c()}),k=ui(C,()=>{_(l)==="hover"&&h()}),A=()=>{var O,Y;(Y=(O=t.value)==null?void 0:O.updatePopper)==null||Y.call(O),d==null||d()},P=()=>{g==null||g()},z=()=>{f(),$=B5(ee(()=>{var O;return(O=t.value)==null?void 0:O.popperContentRef}),()=>{if(_(p))return;_(l)!=="hover"&&h()})},I=()=>{e.virtualTriggering||h()};let $;return xe(()=>_(a),O=>{O||$==null||$()},{flush:"post"}),{ariaHidden:w,entering:r,leaving:i,id:o,intermediateOpen:n,contentStyle:b,contentRef:t,destroyed:u,shouldRender:v,shouldShow:y,onClose:h,open:a,onAfterShow:z,onBeforeEnter:A,onBeforeLeave:P,onContentEnter:T,onContentLeave:k,onTransitionLeave:S,onBlur:I}}});function gL(e,t,n,r,i,u){const p=bt("el-popper-content");return N(),ve(Np,{disabled:!e.teleported,to:e.appendTo},[se(Vn,{name:e.transition,onAfterLeave:e.onTransitionLeave,onBeforeEnter:e.onBeforeEnter,onAfterEnter:e.onAfterShow,onBeforeLeave:e.onBeforeLeave},{default:ue(()=>[e.shouldRender?Tt((N(),ve(p,$n({key:0,id:e.id,ref:"contentRef"},e.$attrs,{"aria-label":e.ariaLabel,"aria-hidden":e.ariaHidden,"boundaries-padding":e.boundariesPadding,"fallback-placements":e.fallbackPlacements,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,placement:e.placement,"popper-options":e.popperOptions,strategy:e.strategy,effect:e.effect,enterable:e.enterable,pure:e.pure,"popper-class":e.popperClass,"popper-style":[e.popperStyle,e.contentStyle],"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,visible:e.shouldShow,"z-index":e.zIndex,onMouseenter:e.onContentEnter,onMouseleave:e.onContentLeave,onBlur:e.onBlur,onClose:e.onClose}),{default:ue(()=>[ge(" Workaround bug #6378 "),e.destroyed?ge("v-if",!0):ke(e.$slots,"default",{key:0})]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onBlur","onClose"])),[[Kt,e.shouldShow]]):ge("v-if",!0)]),_:3},8,["name","onAfterLeave","onBeforeEnter","onAfterEnter","onBeforeLeave"])],8,["disabled","to"])}var vL=Re(mL,[["render",gL],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const yL=(e,t)=>We(e)?e.includes(t):e===t,_o=(e,t,n)=>r=>{yL(_(e),t)&&n(r)},bL=be({name:"ElTooltipTrigger",components:{ElPopperTrigger:G8},props:Ol,setup(e){const t=Pe("tooltip"),{controlled:n,id:r,open:i,onOpen:u,onClose:p,onToggle:o}=qe(Om,void 0),a=ae(null),l=()=>{if(_(n)||e.disabled)return!0},h=tr(e,"trigger"),c=ui(l,_o(h,"hover",u)),f=ui(l,_o(h,"hover",p)),s=ui(l,_o(h,"click",y=>{y.button===0&&o(y)})),d=ui(l,_o(h,"focus",u)),g=ui(l,_o(h,"focus",p)),m=ui(l,_o(h,"contextmenu",y=>{y.preventDefault(),o(y)})),v=ui(l,y=>{const{code:b}=y;e.triggerKeys.includes(b)&&(y.preventDefault(),o(y))});return{onBlur:g,onContextMenu:m,onFocus:d,onMouseenter:c,onMouseleave:f,onClick:s,onKeydown:v,open:i,id:r,triggerRef:a,ns:t}}});function _L(e,t,n,r,i,u){const p=bt("el-popper-trigger");return N(),ve(p,{id:e.id,"virtual-ref":e.virtualRef,open:e.open,"virtual-triggering":e.virtualTriggering,class:ce(e.ns.e("trigger")),onBlur:e.onBlur,onClick:e.onClick,onContextmenu:e.onContextMenu,onFocus:e.onFocus,onMouseenter:e.onMouseenter,onMouseleave:e.onMouseleave,onKeydown:e.onKeydown},{default:ue(()=>[ke(e.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"])}var wL=Re(bL,[["render",_L],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const{useModelToggleProps:SL,useModelToggle:CL,useModelToggleEmits:xL}=X6("visible"),TL=be({name:"ElTooltip",components:{ElPopper:dL,ElPopperArrow:j8,ElTooltipContent:vL,ElTooltipTrigger:wL},props:{...qw,...SL,...lr,...Ol,...Zw,...pL},emits:[...xL,"before-show","before-hide","show","hide","open","close"],setup(e,{emit:t}){t8();const n=ee(()=>(xr(e.openDelay),e.openDelay||e.showAfter)),r=ee(()=>(xr(e.visibleArrow),Qn(e.visibleArrow)?e.visibleArrow:e.showArrow)),i=sa(),u=ae(null),p=ae(null),o=()=>{var v;const y=_(u);y&&((v=y.popperInstanceRef)==null||v.update())},a=ae(!1),l=ae(void 0),{show:h,hide:c,hasUpdateHandler:f}=CL({indicator:a,toggleReason:l}),{onOpen:s,onClose:d}=r8({showAfter:n,hideAfter:tr(e,"hideAfter"),open:h,close:c}),g=ee(()=>Qn(e.visible)&&!f.value);vt(Om,{controlled:g,id:i,open:os(a),trigger:tr(e,"trigger"),onOpen:v=>{s(v)},onClose:v=>{d(v)},onToggle:v=>{_(a)?d(v):s(v)},onShow:()=>{t("show",l.value)},onHide:()=>{t("hide",l.value)},onBeforeShow:()=>{t("before-show",l.value)},onBeforeHide:()=>{t("before-hide",l.value)},updatePopper:o}),xe(()=>e.disabled,v=>{v&&a.value&&(a.value=!1)});const m=()=>{var v,y;const b=(y=(v=p.value)==null?void 0:v.contentRef)==null?void 0:y.popperContentRef;return b&&b.contains(document.activeElement)};return O_(()=>a.value&&c()),{compatShowAfter:n,compatShowArrow:r,popperRef:u,contentRef:p,open:a,hide:c,isFocusInsideContent:m,updatePopper:o,onOpen:s,onClose:d}}}),kL=["innerHTML"],EL={key:1};function OL(e,t,n,r,i,u){const p=bt("el-tooltip-trigger"),o=bt("el-popper-arrow"),a=bt("el-tooltip-content"),l=bt("el-popper");return N(),ve(l,{ref:"popperRef",role:e.role},{default:ue(()=>[se(p,{disabled:e.disabled,trigger:e.trigger,"trigger-keys":e.triggerKeys,"virtual-ref":e.virtualRef,"virtual-triggering":e.virtualTriggering},{default:ue(()=>[e.$slots.default?ke(e.$slots,"default",{key:0}):ge("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),se(a,{ref:"contentRef","aria-label":e.ariaLabel,"boundaries-padding":e.boundariesPadding,content:e.content,disabled:e.disabled,effect:e.effect,enterable:e.enterable,"fallback-placements":e.fallbackPlacements,"hide-after":e.hideAfter,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,persistent:e.persistent,"popper-class":e.popperClass,"popper-style":e.popperStyle,placement:e.placement,"popper-options":e.popperOptions,pure:e.pure,"raw-content":e.rawContent,"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,"show-after":e.compatShowAfter,strategy:e.strategy,teleported:e.teleported,transition:e.transition,"virtual-triggering":e.virtualTriggering,"z-index":e.zIndex,"append-to":e.appendTo},{default:ue(()=>[ke(e.$slots,"content",{},()=>[e.rawContent?(N(),oe("span",{key:0,innerHTML:e.content},null,8,kL)):(N(),oe("span",EL,Ee(e.content),1))]),e.compatShowArrow?(N(),ve(o,{key:0,"arrow-offset":e.arrowOffset},null,8,["arrow-offset"])):ge("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"])}var AL=Re(TL,[["render",OL],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);const fn=wt(AL),PL=Be({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"}}),IL=["textContent"],ML={name:"ElBadge"},LL=be({...ML,props:PL,setup(e,{expose:t}){const n=e,r=Pe("badge"),i=ee(()=>n.isDot?"":ut(n.value)&&ut(n.max)?n.max<n.value?`${n.max}+`:`${n.value}`:`${n.value}`);return t({content:i}),(u,p)=>(N(),oe("div",{class:ce(_(r).b())},[ke(u.$slots,"default"),se(Vn,{name:`${_(r).namespace.value}-zoom-in-center`,persisted:""},{default:ue(()=>[Tt(ne("sup",{class:ce([_(r).e("content"),_(r).em("content",u.type),_(r).is("fixed",!!u.$slots.default),_(r).is("dot",u.isDot)]),textContent:Ee(_(i))},null,10,IL),[[Kt,!u.hidden&&(_(i)||u.isDot)]])]),_:1},8,["name"])],2))}});var RL=Re(LL,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);const DL=wt(RL),FL=["default","primary","success","warning","info","danger","text",""],BL=["button","submit","reset"],Ph=Be({size:oa,disabled:Boolean,type:{type:String,values:FL,default:""},icon:{type:Qt},nativeType:{type:String,values:BL,default:"button"},loading:Boolean,loadingIcon:{type:Qt,default:()=>Jp},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0}}),$L={click:e=>e instanceof MouseEvent};function gn(e,t){NL(e)&&(e="100%");var n=zL(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function Pu(e){return Math.min(1,Math.max(0,e))}function NL(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function zL(e){return typeof e=="string"&&e.indexOf("%")!==-1}function p2(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Iu(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Ma(e){return e.length===1?"0"+e:String(e)}function jL(e,t,n){return{r:gn(e,255)*255,g:gn(t,255)*255,b:gn(n,255)*255}}function Z0(e,t,n){e=gn(e,255),t=gn(t,255),n=gn(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),u=0,p=0,o=(r+i)/2;if(r===i)p=0,u=0;else{var a=r-i;switch(p=o>.5?a/(2-r-i):a/(r+i),r){case e:u=(t-n)/a+(t<n?6:0);break;case t:u=(n-e)/a+2;break;case n:u=(e-t)/a+4;break}u/=6}return{h:u,s:p,l:o}}function pd(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function VL(e,t,n){var r,i,u;if(e=gn(e,360),t=gn(t,100),n=gn(n,100),t===0)i=n,u=n,r=n;else{var p=n<.5?n*(1+t):n+t-n*t,o=2*n-p;r=pd(o,p,e+1/3),i=pd(o,p,e),u=pd(o,p,e-1/3)}return{r:r*255,g:i*255,b:u*255}}function J0(e,t,n){e=gn(e,255),t=gn(t,255),n=gn(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),u=0,p=r,o=r-i,a=r===0?0:o/r;if(r===i)u=0;else{switch(r){case e:u=(t-n)/o+(t<n?6:0);break;case t:u=(n-e)/o+2;break;case n:u=(e-t)/o+4;break}u/=6}return{h:u,s:a,v:p}}function UL(e,t,n){e=gn(e,360)*6,t=gn(t,100),n=gn(n,100);var r=Math.floor(e),i=e-r,u=n*(1-t),p=n*(1-i*t),o=n*(1-(1-i)*t),a=r%6,l=[n,p,u,u,o,n][a],h=[o,n,n,p,u,u][a],c=[u,u,o,n,n,p][a];return{r:l*255,g:h*255,b:c*255}}function Q0(e,t,n,r){var i=[Ma(Math.round(e).toString(16)),Ma(Math.round(t).toString(16)),Ma(Math.round(n).toString(16))];return r&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function HL(e,t,n,r,i){var u=[Ma(Math.round(e).toString(16)),Ma(Math.round(t).toString(16)),Ma(Math.round(n).toString(16)),Ma(WL(r))];return i&&u[0].startsWith(u[0].charAt(1))&&u[1].startsWith(u[1].charAt(1))&&u[2].startsWith(u[2].charAt(1))&&u[3].startsWith(u[3].charAt(1))?u[0].charAt(0)+u[1].charAt(0)+u[2].charAt(0)+u[3].charAt(0):u.join("")}function WL(e){return Math.round(parseFloat(e)*255).toString(16)}function ey(e){return Hn(e)/255}function Hn(e){return parseInt(e,16)}function GL(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var Ih={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function YL(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,u=null,p=!1,o=!1;return typeof e=="string"&&(e=qL(e)),typeof e=="object"&&(ai(e.r)&&ai(e.g)&&ai(e.b)?(t=jL(e.r,e.g,e.b),p=!0,o=String(e.r).substr(-1)==="%"?"prgb":"rgb"):ai(e.h)&&ai(e.s)&&ai(e.v)?(r=Iu(e.s),i=Iu(e.v),t=UL(e.h,r,i),p=!0,o="hsv"):ai(e.h)&&ai(e.s)&&ai(e.l)&&(r=Iu(e.s),u=Iu(e.l),t=VL(e.h,r,u),p=!0,o="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=p2(n),{ok:p,format:e.format||o,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var KL="[-\\+]?\\d+%?",XL="[-\\+]?\\d*\\.\\d+%?",Xi="(?:".concat(XL,")|(?:").concat(KL,")"),md="[\\s|\\(]+(".concat(Xi,")[,|\\s]+(").concat(Xi,")[,|\\s]+(").concat(Xi,")\\s*\\)?"),gd="[\\s|\\(]+(".concat(Xi,")[,|\\s]+(").concat(Xi,")[,|\\s]+(").concat(Xi,")[,|\\s]+(").concat(Xi,")\\s*\\)?"),wr={CSS_UNIT:new RegExp(Xi),rgb:new RegExp("rgb"+md),rgba:new RegExp("rgba"+gd),hsl:new RegExp("hsl"+md),hsla:new RegExp("hsla"+gd),hsv:new RegExp("hsv"+md),hsva:new RegExp("hsva"+gd),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function qL(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Ih[e])e=Ih[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=wr.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=wr.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=wr.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=wr.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=wr.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=wr.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=wr.hex8.exec(e),n?{r:Hn(n[1]),g:Hn(n[2]),b:Hn(n[3]),a:ey(n[4]),format:t?"name":"hex8"}:(n=wr.hex6.exec(e),n?{r:Hn(n[1]),g:Hn(n[2]),b:Hn(n[3]),format:t?"name":"hex"}:(n=wr.hex4.exec(e),n?{r:Hn(n[1]+n[1]),g:Hn(n[2]+n[2]),b:Hn(n[3]+n[3]),a:ey(n[4]+n[4]),format:t?"name":"hex8"}:(n=wr.hex3.exec(e),n?{r:Hn(n[1]+n[1]),g:Hn(n[2]+n[2]),b:Hn(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function ai(e){return Boolean(wr.CSS_UNIT.exec(String(e)))}var m2=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=GL(t)),this.originalInput=t;var i=YL(t);this.originalInput=t,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:i.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=i.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,i,u=t.r/255,p=t.g/255,o=t.b/255;return u<=.03928?n=u/12.92:n=Math.pow((u+.055)/1.055,2.4),p<=.03928?r=p/12.92:r=Math.pow((p+.055)/1.055,2.4),o<=.03928?i=o/12.92:i=Math.pow((o+.055)/1.055,2.4),.2126*n+.7152*r+.0722*i},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=p2(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=J0(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=J0(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Z0(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=Z0(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Q0(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),HL(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(gn(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(gn(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+Q0(this.r,this.g,this.b,!1),n=0,r=Object.entries(Ih);n<r.length;n++){var i=r[n],u=i[0],p=i[1];if(t===p)return u}return!1},e.prototype.toString=function(t){var n=Boolean(t);t=t!=null?t:this.format;var r=!1,i=this.a<1&&this.a>=0,u=!n&&i&&(t.startsWith("hex")||t==="name");return u?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=Pu(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=Pu(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=Pu(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=Pu(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),i=new e(t).toRgb(),u=n/100,p={r:(i.r-r.r)*u+r.r,g:(i.g-r.g)*u+r.g,b:(i.b-r.b)*u+r.b,a:(i.a-r.a)*u+r.a};return new e(p)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),i=360/n,u=[this];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,u.push(new e(r));return u},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,i=n.s,u=n.v,p=[],o=1/t;t--;)p.push(new e({h:r,s:i,v:u})),u=(u+o)%1;return p},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),i=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/i,g:(n.g*n.a+r.g*r.a*(1-n.a))/i,b:(n.b*n.a+r.b*r.a*(1-n.a))/i,a:i})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,i=[this],u=360/t,p=1;p<t;p++)i.push(new e({h:(r+p*u)%360,s:n.s,l:n.l}));return i},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function Di(e,t=20){return e.mix("#141414",t).toString()}function ZL(e){const t=lo(),n=Pe("button");return ee(()=>{let r={};const i=e.color;if(i){const u=new m2(i),p=e.dark?u.tint(20).toString():Di(u,20);if(e.plain)r=n.cssVarBlock({"bg-color":e.dark?Di(u,90):u.tint(90).toString(),"text-color":i,"border-color":e.dark?Di(u,50):u.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":i,"hover-border-color":i,"active-bg-color":p,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":p}),t.value&&(r[n.cssVarBlockName("disabled-bg-color")]=e.dark?Di(u,90):u.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=e.dark?Di(u,50):u.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=e.dark?Di(u,80):u.tint(80).toString());else{const o=e.dark?Di(u,30):u.tint(30).toString(),a=u.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(r=n.cssVarBlock({"bg-color":i,"text-color":a,"border-color":i,"hover-bg-color":o,"hover-text-color":a,"hover-border-color":o,"active-bg-color":p,"active-border-color":p}),t.value){const l=e.dark?Di(u,50):u.tint(50).toString();r[n.cssVarBlockName("disabled-bg-color")]=l,r[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,r[n.cssVarBlockName("disabled-border-color")]=l}}}return r})}const JL=["aria-disabled","disabled","autofocus","type"],QL={name:"ElButton"},eR=be({...QL,props:Ph,emits:$L,setup(e,{expose:t,emit:n}){const r=e,i=ss();Tl({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},ee(()=>r.type==="text"));const u=qe(Iw,void 0),p=Ii("button"),o=Pe("button"),{form:a}=pa(),l=yr(ee(()=>u==null?void 0:u.size)),h=lo(),c=ae(),f=ee(()=>r.type||(u==null?void 0:u.type)||""),s=ee(()=>{var v,y,b;return(b=(y=r.autoInsertSpace)!=null?y:(v=p.value)==null?void 0:v.autoInsertSpace)!=null?b:!1}),d=ee(()=>{var v;const y=(v=i.default)==null?void 0:v.call(i);if(s.value&&(y==null?void 0:y.length)===1){const b=y[0];if((b==null?void 0:b.type)===ls){const w=b.children;return/^\p{Unified_Ideograph}{2}$/u.test(w.trim())}}return!1}),g=ZL(r),m=v=>{r.nativeType==="reset"&&(a==null||a.resetFields()),n("click",v)};return t({ref:c,size:l,type:f,disabled:h,shouldAddSpace:d}),(v,y)=>(N(),oe("button",{ref_key:"_ref",ref:c,class:ce([_(o).b(),_(o).m(_(f)),_(o).m(_(l)),_(o).is("disabled",_(h)),_(o).is("loading",v.loading),_(o).is("plain",v.plain),_(o).is("round",v.round),_(o).is("circle",v.circle),_(o).is("text",v.text),_(o).is("link",v.link),_(o).is("has-bg",v.bg)]),"aria-disabled":_(h)||v.loading,disabled:_(h)||v.loading,autofocus:v.autofocus,type:v.nativeType,style:je(_(g)),onClick:m},[v.loading?(N(),oe($e,{key:0},[v.$slots.loading?ke(v.$slots,"loading",{key:0}):(N(),ve(_(De),{key:1,class:ce(_(o).is("loading"))},{default:ue(()=>[(N(),ve(xt(v.loadingIcon)))]),_:1},8,["class"]))],64)):v.icon||v.$slots.icon?(N(),ve(_(De),{key:1},{default:ue(()=>[v.icon?(N(),ve(xt(v.icon),{key:0})):ke(v.$slots,"icon",{key:1})]),_:3})):ge("v-if",!0),v.$slots.default?(N(),oe("span",{key:2,class:ce({[_(o).em("text","expand")]:_(d)})},[ke(v.$slots,"default")],2)):ge("v-if",!0)],14,JL))}});var tR=Re(eR,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const nR={size:Ph.size,type:Ph.type},rR={name:"ElButtonGroup"},iR=be({...rR,props:nR,setup(e){const t=e;vt(Iw,kt({size:tr(t,"size"),type:tr(t,"type")}));const n=Pe("button");return(r,i)=>(N(),oe("div",{class:ce(`${_(n).b("group")}`)},[ke(r.$slots,"default")],2))}});var g2=Re(iR,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const Je=wt(tR,{ButtonGroup:g2});vr(g2);var Mu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function aR(e){var t=e.default;if(typeof t=="function"){var n=function(){return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}const zi=new Map;let ty;ht&&(document.addEventListener("mousedown",e=>ty=e),document.addEventListener("mouseup",e=>{for(const t of zi.values())for(const{documentHandler:n}of t)n(e,ty)}));function ny(e,t){let n=[];return Array.isArray(t.arg)?n=t.arg:Ka(t.arg)&&n.push(t.arg),function(r,i){const u=t.instance.popperRef,p=r.target,o=i==null?void 0:i.target,a=!t||!t.instance,l=!p||!o,h=e.contains(p)||e.contains(o),c=e===p,f=n.length&&n.some(d=>d==null?void 0:d.contains(p))||n.length&&n.includes(o),s=u&&(u.contains(p)||u.contains(o));a||l||h||c||f||s||t.value(r,i)}}const v2={beforeMount(e,t){zi.has(e)||zi.set(e,[]),zi.get(e).push({documentHandler:ny(e,t),bindingFn:t.value})},updated(e,t){zi.has(e)||zi.set(e,[]);const n=zi.get(e),r=n.findIndex(u=>u.bindingFn===t.oldValue),i={documentHandler:ny(e,t),bindingFn:t.value};r>=0?n.splice(r,1,i):n.push(i)},unmounted(e){zi.delete(e)}},oR=100,sR=600,ry={beforeMount(e,t){let n=null,r=null;const i=()=>t.value&&t.value(),u=()=>{r&&(clearTimeout(r),r=null),n&&(clearInterval(n),n=null)};e.addEventListener("mousedown",p=>{p.button===0&&(i(),document.addEventListener("mouseup",u,{once:!0}),u(),r=setTimeout(()=>{n=setInterval(()=>{i()},oR)},sR))})}},Mh="_trap-focus-children",La=[],iy=e=>{if(La.length===0)return;const t=La[La.length-1][Mh];if(t.length>0&&e.code===At.tab){if(t.length===1){e.preventDefault(),document.activeElement!==t[0]&&t[0].focus();return}const n=e.shiftKey,r=e.target===t[0],i=e.target===t[t.length-1];r&&n&&(e.preventDefault(),t[t.length-1].focus()),i&&!n&&(e.preventDefault(),t[0].focus())}},lR={beforeMount(e){e[Mh]=o0(e),La.push(e),La.length<=1&&document.addEventListener("keydown",iy)},updated(e){Ge(()=>{e[Mh]=o0(e)})},unmounted(){La.shift(),La.length===0&&document.removeEventListener("keydown",iy)}},uR=Be({header:{type:String,default:""},bodyStyle:{type:Oe([String,Object,Array]),default:""},shadow:{type:String,values:["always","hover","never"],default:"always"}}),cR={name:"ElCard"},fR=be({...cR,props:uR,setup(e){const t=Pe("card");return(n,r)=>(N(),oe("div",{class:ce([_(t).b(),_(t).is(`${n.shadow}-shadow`)])},[n.$slots.header||n.header?(N(),oe("div",{key:0,class:ce(_(t).e("header"))},[ke(n.$slots,"header",{},()=>[ze(Ee(n.header),1)])],2)):ge("v-if",!0),ne("div",{class:ce(_(t).e("body")),style:je(n.bodyStyle)},[ke(n.$slots,"default")],6)],2))}});var dR=Re(fR,[["__file","/home/runner/work/element-plus/element-plus/packages/components/card/src/card.vue"]]);const hR=wt(dR),pR=Be({initialIndex:{type:Number,default:0},height:{type:String,default:""},trigger:{type:String,values:["hover","click"],default:"hover"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:{type:String,values:["","none","outside"],default:""},indicator:{type:Boolean,default:!0},arrow:{type:String,values:["always","hover","never"],default:"hover"},type:{type:String,values:["","card"],default:""},loop:{type:Boolean,default:!0},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},pauseOnHover:{type:Boolean,default:!0}}),mR={change:(e,t)=>[e,t].every(ut)},gR=["onMouseenter","onMouseleave"],vR=["onMouseenter","onClick"],yR={key:0},bR={name:"ElCarousel"},_R=be({...bR,props:pR,emits:mR,setup(e,{expose:t,emit:n}){const r=e,i=Pe("carousel"),u=300,p=ae(-1),o=ae(null),a=ae(!1),l=ae(),h=ae([]),c=ee(()=>r.arrow!=="never"&&!_(m)),f=ee(()=>h.value.some(M=>M.props.label.toString().length>0)),s=ee(()=>{const M=[i.b(),i.m(r.direction)];return _(g)&&M.push(i.m("card")),M}),d=ee(()=>{const M=[i.e("indicators"),i.em("indicators",r.direction)];return f.value&&M.push(i.em("indicators","labels")),(r.indicatorPosition==="outside"||_(g))&&M.push(i.em("indicators","outside")),M}),g=ee(()=>r.type==="card"),m=ee(()=>r.direction==="vertical"),v=Zs(M=>{C(M)},u,{trailing:!0}),y=Zs(M=>{re(M)},u);function b(){o.value&&(clearInterval(o.value),o.value=null)}function w(){r.interval<=0||!r.autoplay||o.value||(o.value=setInterval(()=>S(),r.interval))}const S=()=>{p.value<h.value.length-1?p.value=p.value+1:r.loop&&(p.value=0)};function C(M){if(Xe(M)){const D=h.value.filter(B=>B.props.name===M);D.length>0&&(M=h.value.indexOf(D[0]))}if(M=Number(M),Number.isNaN(M)||M!==Math.floor(M))return;const R=h.value.length,G=p.value;M<0?p.value=r.loop?R-1:0:M>=R?p.value=r.loop?0:R-1:p.value=M,G===p.value&&T(G),E()}function T(M){h.value.forEach((R,G)=>{R.translateItem(G,p.value,M)})}function k(M){h.value.push(M)}function A(M){const R=h.value.findIndex(G=>G.uid===M);R!==-1&&(h.value.splice(R,1),p.value===R&&J())}function P(M,R){var G,D,B,Z;const H=_(h),Q=H.length;if(Q===0||!M.states.inStage)return!1;const te=R+1,fe=R-1,me=Q-1,_e=H[me].states.active,j=H[0].states.active,x=(D=(G=H[te])==null?void 0:G.states)==null?void 0:D.active,U=(Z=(B=H[fe])==null?void 0:B.states)==null?void 0:Z.active;return R===me&&j||x?"left":R===0&&_e||U?"right":!1}function z(){a.value=!0,r.pauseOnHover&&b()}function I(){a.value=!1,w()}function $(M){_(m)||h.value.forEach((R,G)=>{M===P(R,G)&&(R.states.hover=!0)})}function O(){_(m)||h.value.forEach(M=>{M.states.hover=!1})}function Y(M){p.value=M}function re(M){r.trigger==="hover"&&M!==p.value&&(p.value=M)}function q(){C(p.value-1)}function J(){C(p.value+1)}function E(){b(),w()}xe(()=>p.value,(M,R)=>{T(R),R>-1&&n("change",M,R)}),xe(()=>r.autoplay,M=>{M?w():b()}),xe(()=>r.loop,()=>{C(p.value)}),xe(()=>r.interval,()=>{E()});const V=mn();return rt(async()=>{await Ge(),V.value=Jr(l.value,()=>{T()}),r.initialIndex<h.value.length&&r.initialIndex>=0&&(p.value=r.initialIndex),w()}),tn(()=>{b(),l.value&&V.value&&V.value.stop()}),vt(Mw,{root:l,isCardType:g,isVertical:m,items:h,loop:r.loop,addItem:k,removeItem:A,setActiveItem:C}),t({setActiveItem:C,prev:q,next:J}),(M,R)=>(N(),oe("div",{ref_key:"root",ref:l,class:ce(_(s)),onMouseenter:Qe(z,["stop"]),onMouseleave:Qe(I,["stop"])},[ne("div",{class:ce(_(i).e("container")),style:je({height:M.height})},[_(c)?(N(),ve(Vn,{key:0,name:"carousel-arrow-left",persisted:""},{default:ue(()=>[Tt(ne("button",{type:"button",class:ce([_(i).e("arrow"),_(i).em("arrow","left")]),onMouseenter:R[0]||(R[0]=G=>$("left")),onMouseleave:O,onClick:R[1]||(R[1]=Qe(G=>_(v)(p.value-1),["stop"]))},[se(_(De),null,{default:ue(()=>[se(_(_f))]),_:1})],34),[[Kt,(M.arrow==="always"||a.value)&&(r.loop||p.value>0)]])]),_:1})):ge("v-if",!0),_(c)?(N(),ve(Vn,{key:1,name:"carousel-arrow-right",persisted:""},{default:ue(()=>[Tt(ne("button",{type:"button",class:ce([_(i).e("arrow"),_(i).em("arrow","right")]),onMouseenter:R[2]||(R[2]=G=>$("right")),onMouseleave:O,onClick:R[3]||(R[3]=Qe(G=>_(v)(p.value+1),["stop"]))},[se(_(De),null,{default:ue(()=>[se(_(cs))]),_:1})],34),[[Kt,(M.arrow==="always"||a.value)&&(r.loop||p.value<h.value.length-1)]])]),_:1})):ge("v-if",!0),ke(M.$slots,"default")],6),M.indicatorPosition!=="none"?(N(),oe("ul",{key:0,class:ce(_(d))},[(N(!0),oe($e,null,zt(h.value,(G,D)=>(N(),oe("li",{key:D,class:ce([_(i).e("indicator"),_(i).em("indicator",M.direction),_(i).is("active",D===p.value)]),onMouseenter:B=>_(y)(D),onClick:Qe(B=>Y(D),["stop"])},[ne("button",{class:ce(_(i).e("button"))},[_(f)?(N(),oe("span",yR,Ee(G.props.label),1)):ge("v-if",!0)],2)],42,vR))),128))],2)):ge("v-if",!0)],42,gR))}});var wR=Re(_R,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel.vue"]]);const SR=Be({name:{type:String,default:""},label:{type:[String,Number],default:""}}),CR={name:"ElCarouselItem"},xR=be({...CR,props:SR,setup(e){const t=e,n=Pe("carousel"),r=qe(Mw),i=Et(),u=.83,p=ae(!1),o=ae(0),a=ae(1),l=ae(!1),h=ae(!1),c=ae(!1),f=ae(!1),{isCardType:s,isVertical:d}=r,g=ee(()=>{const C=`${`translate${_(d)?"Y":"X"}`}(${_(o)}px)`,T=`scale(${_(a)})`;return{transform:[C,T].join(" ")}});function m(S,C,T){const k=T-1,A=C-1,P=C+1,z=T/2;return C===0&&S===k?-1:C===k&&S===0?T:S<A&&C-S>=z?T+1:S>P&&S-C>=z?-2:S}function v(S,C){var T;const k=((T=r.root.value)==null?void 0:T.offsetWidth)||0;return c.value?k*((2-u)*(S-C)+1)/4:S<C?-(1+u)*k/4:(3+u)*k/4}function y(S,C,T){const k=r.root.value;return k?((T?k.offsetHeight:k.offsetWidth)||0)*(S-C):0}const b=(S,C,T)=>{var k;const A=_(s),P=(k=r.items.value.length)!=null?k:Number.NaN,z=S===C;!A&&!xr(T)&&(f.value=z||S===T),!z&&P>2&&r.loop&&(S=m(S,C,P));const I=_(d);l.value=z,A?(c.value=Math.round(Math.abs(S-C))<=1,o.value=v(S,C),a.value=_(l)?1:u):o.value=y(S,C,I),h.value=!0};function w(){if(r&&_(s)){const S=r.items.value.findIndex(({uid:C})=>C===i.uid);r.setActiveItem(S)}}return rt(()=>{r.addItem({props:t,states:kt({hover:p,translate:o,scale:a,active:l,ready:h,inStage:c,animating:f}),uid:i.uid,translateItem:b})}),ha(()=>{r.removeItem(i.uid)}),(S,C)=>Tt((N(),oe("div",{class:ce([_(n).e("item"),_(n).is("active",l.value),_(n).is("in-stage",c.value),_(n).is("hover",p.value),_(n).is("animating",f.value),{[_(n).em("item","card")]:_(s)}]),style:je(_(g)),onClick:w},[_(s)?Tt((N(),oe("div",{key:0,class:ce(_(n).e("mask"))},null,2)),[[Kt,!l.value]]):ge("v-if",!0),ke(S.$slots,"default")],6)),[[Kt,h.value]])}});var y2=Re(xR,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel-item.vue"]]);const TR=wt(wR,{CarouselItem:y2}),kR=vr(y2),b2=Be({size:oa,disabled:Boolean,label:{type:[String,Number,Boolean],default:""}}),ER=Be({...b2,modelValue:{type:[String,Number,Boolean],default:""},name:{type:String,default:""},border:Boolean}),_2={[gt]:e=>Xe(e)||ut(e)||Qn(e),[Ir]:e=>Xe(e)||ut(e)||Qn(e)},w2=(e,t)=>{const n=ae(),r=qe(Bw,void 0),i=ee(()=>!!r),u=ee({get(){return i.value?r.modelValue:e.modelValue},set(h){i.value?r.changeEvent(h):t&&t(gt,h),n.value.checked=e.modelValue===e.label}}),p=yr(ee(()=>r==null?void 0:r.size)),o=lo(ee(()=>r==null?void 0:r.disabled)),a=ae(!1),l=ee(()=>o.value||i.value&&u.value!==e.label?-1:0);return{radioRef:n,isGroup:i,radioGroup:r,focus:a,size:p,disabled:o,tabIndex:l,modelValue:u}},OR=["value","name","disabled"],AR={name:"ElRadio"},PR=be({...AR,props:ER,emits:_2,setup(e,{emit:t}){const n=e,r=Pe("radio"),{radioRef:i,radioGroup:u,focus:p,size:o,disabled:a,modelValue:l}=w2(n,t);function h(){Ge(()=>t("change",l.value))}return(c,f)=>{var s;return N(),oe("label",{class:ce([_(r).b(),_(r).is("disabled",_(a)),_(r).is("focus",_(p)),_(r).is("bordered",c.border),_(r).is("checked",_(l)===c.label),_(r).m(_(o))])},[ne("span",{class:ce([_(r).e("input"),_(r).is("disabled",_(a)),_(r).is("checked",_(l)===c.label)])},[Tt(ne("input",{ref_key:"radioRef",ref:i,"onUpdate:modelValue":f[0]||(f[0]=d=>Pt(l)?l.value=d:null),class:ce(_(r).e("original")),value:c.label,name:c.name||((s=_(u))==null?void 0:s.name),disabled:_(a),type:"radio",onFocus:f[1]||(f[1]=d=>p.value=!0),onBlur:f[2]||(f[2]=d=>p.value=!1),onChange:h},null,42,OR),[[f1,_(l)]]),ne("span",{class:ce(_(r).e("inner"))},null,2)],2),ne("span",{class:ce(_(r).e("label")),onKeydown:f[3]||(f[3]=Qe(()=>{},["stop"]))},[ke(c.$slots,"default",{},()=>[ze(Ee(c.label),1)])],34)],2)}}});var IR=Re(PR,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio.vue"]]);const MR=Be({...b2,name:{type:String,default:""}}),LR=["value","name","disabled"],RR={name:"ElRadioButton"},DR=be({...RR,props:MR,setup(e){const t=e,n=Pe("radio"),{radioRef:r,focus:i,size:u,disabled:p,modelValue:o,radioGroup:a}=w2(t),l=ee(()=>({backgroundColor:(a==null?void 0:a.fill)||"",borderColor:(a==null?void 0:a.fill)||"",boxShadow:a!=null&&a.fill?`-1px 0 0 0 ${a.fill}`:"",color:(a==null?void 0:a.textColor)||""}));return(h,c)=>{var f;return N(),oe("label",{class:ce([_(n).b("button"),_(n).is("active",_(o)===h.label),_(n).is("disabled",_(p)),_(n).is("focus",_(i)),_(n).bm("button",_(u))])},[Tt(ne("input",{ref_key:"radioRef",ref:r,"onUpdate:modelValue":c[0]||(c[0]=s=>Pt(o)?o.value=s:null),class:ce(_(n).be("button","original-radio")),value:h.label,type:"radio",name:h.name||((f=_(a))==null?void 0:f.name),disabled:_(p),onFocus:c[1]||(c[1]=s=>i.value=!0),onBlur:c[2]||(c[2]=s=>i.value=!1)},null,42,LR),[[f1,_(o)]]),ne("span",{class:ce(_(n).be("button","inner")),style:je(_(o)===h.label?_(l):{}),onKeydown:c[3]||(c[3]=Qe(()=>{},["stop"]))},[ke(h.$slots,"default",{},()=>[ze(Ee(h.label),1)])],38)],2)}}});var S2=Re(DR,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-button.vue"]]);const FR=Be({id:{type:String,default:void 0},size:oa,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:""},fill:{type:String,default:""},label:{type:String,default:void 0},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0}}),BR=_2,$R=["id","aria-label","aria-labelledby"],NR={name:"ElRadioGroup"},zR=be({...NR,props:FR,emits:BR,setup(e,{emit:t}){const n=e,r=Pe("radio"),i=sa(),u=ae(),{formItem:p}=pa(),{inputId:o,isLabeledByFormItem:a}=nu(n,{formItemContext:p}),l=c=>{t(gt,c),Ge(()=>t("change",c))};rt(()=>{const c=u.value.querySelectorAll("[type=radio]"),f=c[0];!Array.from(c).some(s=>s.checked)&&f&&(f.tabIndex=0)});const h=ee(()=>n.name||i.value);return vt(Bw,kt({...hr(n),changeEvent:l,name:h})),xe(()=>n.modelValue,()=>{n.validateEvent&&(p==null||p.validate("change").catch(c=>void 0))}),(c,f)=>(N(),oe("div",{id:_(o),ref_key:"radioGroupRef",ref:u,class:ce(_(r).b("group")),role:"radiogroup","aria-label":_(a)?void 0:c.label||"radio-group","aria-labelledby":_(a)?_(p).labelId:void 0},[ke(c.$slots,"default")],10,$R))}});var C2=Re(zR,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-group.vue"]]);wt(IR,{RadioButton:S2,RadioGroup:C2});const jR=vr(C2),VR=vr(S2),x2=Be({closable:Boolean,type:{type:String,values:["success","info","warning","danger",""],default:""},hit:Boolean,disableTransitions:Boolean,color:{type:String,default:""},size:{type:String,values:tu,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),UR={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},HR={name:"ElTag"},WR=be({...HR,props:x2,emits:UR,setup(e,{emit:t}){const n=e,r=yr(),i=Pe("tag"),u=ee(()=>{const{type:a,hit:l,effect:h,closable:c,round:f}=n;return[i.b(),i.is("closable",c),i.m(a),i.m(r.value),i.m(h),i.is("hit",l),i.is("round",f)]}),p=a=>{t("close",a)},o=a=>{t("click",a)};return(a,l)=>a.disableTransitions?(N(),oe("span",{key:0,class:ce(_(u)),style:je({backgroundColor:a.color}),onClick:o},[ne("span",{class:ce(_(i).e("content"))},[ke(a.$slots,"default")],2),a.closable?(N(),ve(_(De),{key:0,class:ce(_(i).e("close")),onClick:Qe(p,["stop"])},{default:ue(()=>[se(_(Kr))]),_:1},8,["class","onClick"])):ge("v-if",!0)],6)):(N(),ve(Vn,{key:1,name:`${_(i).namespace.value}-zoom-in-center`,appear:""},{default:ue(()=>[ne("span",{class:ce(_(u)),style:je({backgroundColor:a.color}),onClick:o},[ne("span",{class:ce(_(i).e("content"))},[ke(a.$slots,"default")],2),a.closable?(N(),ve(_(De),{key:0,class:ce(_(i).e("close")),onClick:Qe(p,["stop"])},{default:ue(()=>[se(_(Kr))]),_:1},8,["class","onClick"])):ge("v-if",!0)],6)]),_:3},8,["name"]))}});var GR=Re(WR,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);const YR=wt(GR),KR=Be({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:Oe([Number,Object]),default:()=>un({})},sm:{type:Oe([Number,Object]),default:()=>un({})},md:{type:Oe([Number,Object]),default:()=>un({})},lg:{type:Oe([Number,Object]),default:()=>un({})},xl:{type:Oe([Number,Object]),default:()=>un({})}}),XR={name:"ElCol"},qR=be({...XR,props:KR,setup(e){const t=e,{gutter:n}=qe($w,{gutter:ee(()=>0)}),r=Pe("col"),i=ee(()=>{const p={};return n.value&&(p.paddingLeft=p.paddingRight=`${n.value/2}px`),p}),u=ee(()=>{const p=[];return["span","offset","pull","push"].forEach(l=>{const h=t[l];ut(h)&&(l==="span"?p.push(r.b(`${t[l]}`)):h>0&&p.push(r.b(`${l}-${t[l]}`)))}),["xs","sm","md","lg","xl"].forEach(l=>{ut(t[l])?p.push(r.b(`${l}-${t[l]}`)):it(t[l])&&Object.entries(t[l]).forEach(([h,c])=>{p.push(h!=="span"?r.b(`${l}-${h}-${c}`):r.b(`${l}-${c}`))})}),n.value&&p.push(r.is("guttered")),p});return(p,o)=>(N(),ve(xt(p.tag),{class:ce([_(r).b(),_(u)]),style:je(_(i))},{default:ue(()=>[ke(p.$slots,"default")]),_:3},8,["class","style"]))}});var ZR=Re(qR,[["__file","/home/runner/work/element-plus/element-plus/packages/components/col/src/col.vue"]]);const wo=wt(ZR),ay=e=>typeof ut(e),JR=Be({accordion:Boolean,modelValue:{type:Oe([Array,String,Number]),default:()=>un([])}}),QR={[gt]:ay,[Ir]:ay},eD={name:"ElCollapse"},tD=be({...eD,props:JR,emits:QR,setup(e,{expose:t,emit:n}){const r=e,i=Pe("collapse"),u=ae(Sl(r.modelValue)),p=a=>{u.value=a;const l=r.accordion?u.value[0]:u.value;n(gt,l),n(Ir,l)},o=a=>{if(r.accordion)p([(u.value[0]||u.value[0]===0)&&u.value[0]===a?"":a]);else{const l=[...u.value],h=l.indexOf(a);h>-1?l.splice(h,1):l.push(a),p(l)}};return xe(()=>r.modelValue,()=>u.value=Sl(r.modelValue),{deep:!0}),vt(Lw,{activeNames:u,handleItemClick:o}),t({activeNames:u,setActiveNames:p}),(a,l)=>(N(),oe("div",{class:ce(_(i).b()),role:"tablist","aria-multiselectable":"true"},[ke(a.$slots,"default")],2))}});var nD=Re(tD,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse.vue"]]);const rD={name:"ElCollapseTransition"},iD=be({...rD,setup(e){const t=Pe("collapse-transition"),n={beforeEnter(r){r.dataset||(r.dataset={}),r.dataset.oldPaddingTop=r.style.paddingTop,r.dataset.oldPaddingBottom=r.style.paddingBottom,r.style.maxHeight=0,r.style.paddingTop=0,r.style.paddingBottom=0},enter(r){r.dataset.oldOverflow=r.style.overflow,r.scrollHeight!==0?(r.style.maxHeight=`${r.scrollHeight}px`,r.style.paddingTop=r.dataset.oldPaddingTop,r.style.paddingBottom=r.dataset.oldPaddingBottom):(r.style.maxHeight=0,r.style.paddingTop=r.dataset.oldPaddingTop,r.style.paddingBottom=r.dataset.oldPaddingBottom),r.style.overflow="hidden"},afterEnter(r){r.style.maxHeight="",r.style.overflow=r.dataset.oldOverflow},beforeLeave(r){r.dataset||(r.dataset={}),r.dataset.oldPaddingTop=r.style.paddingTop,r.dataset.oldPaddingBottom=r.style.paddingBottom,r.dataset.oldOverflow=r.style.overflow,r.style.maxHeight=`${r.scrollHeight}px`,r.style.overflow="hidden"},leave(r){r.scrollHeight!==0&&(r.style.maxHeight=0,r.style.paddingTop=0,r.style.paddingBottom=0)},afterLeave(r){r.style.maxHeight="",r.style.overflow=r.dataset.oldOverflow,r.style.paddingTop=r.dataset.oldPaddingTop,r.style.paddingBottom=r.dataset.oldPaddingBottom}};return(r,i)=>(N(),ve(Vn,$n({name:_(t).b()},iT(n)),{default:ue(()=>[ke(r.$slots,"default")]),_:3},16,["name"]))}});var cc=Re(iD,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse-transition/src/collapse-transition.vue"]]);cc.install=e=>{e.component(cc.name,cc)};const T2=cc,aD=Be({title:{type:String,default:""},name:{type:Oe([String,Number]),default:()=>gm()},disabled:Boolean}),oD=["aria-expanded","aria-controls","aria-describedby"],sD=["id","tabindex","onKeypress"],lD=["id","aria-hidden","aria-labelledby"],uD={name:"ElCollapseItem"},cD=be({...uD,props:aD,setup(e,{expose:t}){const n=e,r=qe(Lw),i=Pe("collapse"),u=ae(!1),p=ae(!1),o=ae(gm()),a=ee(()=>r==null?void 0:r.activeNames.value.includes(n.name)),l=()=>{setTimeout(()=>{p.value?p.value=!1:u.value=!0},50)},h=()=>{n.disabled||(r==null||r.handleItemClick(n.name),u.value=!1,p.value=!0)},c=()=>{r==null||r.handleItemClick(n.name)};return t({isActive:a}),(f,s)=>(N(),oe("div",{class:ce([_(i).b("item"),_(i).is("active",_(a)),_(i).is("disabled",f.disabled)])},[ne("div",{role:"tab","aria-expanded":_(a),"aria-controls":_(i).b(`content-${o.value}`),"aria-describedby":_(i).b(`content-${o.value}`)},[ne("div",{id:_(i).b(`head-${o.value}`),class:ce([_(i).be("item","header"),_(i).is("active",_(a)),{focusing:u.value&&!f.disabled}]),role:"button",tabindex:f.disabled?-1:0,onClick:h,onKeypress:Bt(Qe(c,["stop","prevent"]),["space","enter"]),onFocus:l,onBlur:s[0]||(s[0]=d=>u.value=!1)},[ke(f.$slots,"title",{},()=>[ze(Ee(f.title),1)]),se(_(De),{class:ce([_(i).be("item","arrow"),_(i).is("active",_(a))])},{default:ue(()=>[se(_(cs))]),_:1},8,["class"])],42,sD)],8,oD),se(_(T2),null,{default:ue(()=>[Tt(ne("div",{id:_(i).b(`content-${o.value}`),class:ce(_(i).be("item","wrap")),role:"tabpanel","aria-hidden":!_(a),"aria-labelledby":_(i).b(`head-${o.value}`)},[ne("div",{class:ce(_(i).be("item","content"))},[ke(f.$slots,"default")],2)],10,lD),[[Kt,_(a)]])]),_:3})],2))}});var k2=Re(cD,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse-item.vue"]]);const fD=wt(nD,{CollapseItem:k2}),dD=vr(k2);let vd=!1;function Al(e,t){if(!ht)return;const n=function(u){var p;(p=t.drag)==null||p.call(t,u)},r=function(u){var p;document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",r),document.removeEventListener("touchmove",n),document.removeEventListener("touchend",r),document.onselectstart=null,document.ondragstart=null,vd=!1,(p=t.end)==null||p.call(t,u)},i=function(u){var p;vd||(u.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",n),document.addEventListener("mouseup",r),document.addEventListener("touchmove",n),document.addEventListener("touchend",r),vd=!0,(p=t.start)==null||p.call(t,u))};e.addEventListener("mousedown",i),e.addEventListener("touchstart",i)}const hD=be({name:"ElColorAlphaSlider",props:{color:{type:Object,required:!0},vertical:{type:Boolean,default:!1}},setup(e){const t=Pe("color-alpha-slider"),n=Et(),r=mn(null),i=mn(null),u=ae(0),p=ae(0),o=ae(null);xe(()=>e.color.get("alpha"),()=>{s()}),xe(()=>e.color.value,()=>{s()});function a(){if(e.vertical)return 0;const d=n.vnode.el,g=e.color.get("alpha");return d?Math.round(g*(d.offsetWidth-r.value.offsetWidth/2)/100):0}function l(){const d=n.vnode.el;if(!e.vertical)return 0;const g=e.color.get("alpha");return d?Math.round(g*(d.offsetHeight-r.value.offsetHeight/2)/100):0}function h(){if(e.color&&e.color.value){const{r:d,g,b:m}=e.color.toRgb();return`linear-gradient(to right, rgba(${d}, ${g}, ${m}, 0) 0%, rgba(${d}, ${g}, ${m}, 1) 100%)`}return null}function c(d){d.target!==r.value&&f(d)}function f(d){const m=n.vnode.el.getBoundingClientRect(),{clientX:v,clientY:y}=mm(d);if(e.vertical){let b=y-m.top;b=Math.max(r.value.offsetHeight/2,b),b=Math.min(b,m.height-r.value.offsetHeight/2),e.color.set("alpha",Math.round((b-r.value.offsetHeight/2)/(m.height-r.value.offsetHeight)*100))}else{let b=v-m.left;b=Math.max(r.value.offsetWidth/2,b),b=Math.min(b,m.width-r.value.offsetWidth/2),e.color.set("alpha",Math.round((b-r.value.offsetWidth/2)/(m.width-r.value.offsetWidth)*100))}}function s(){u.value=a(),p.value=l(),o.value=h()}return rt(()=>{const d={drag:g=>{f(g)},end:g=>{f(g)}};Al(i.value,d),Al(r.value,d),s()}),{thumb:r,bar:i,thumbLeft:u,thumbTop:p,background:o,handleClick:c,update:s,ns:t}}});function pD(e,t,n,r,i,u){return N(),oe("div",{class:ce([e.ns.b(),e.ns.is("vertical",e.vertical)])},[ne("div",{ref:"bar",class:ce(e.ns.e("bar")),style:je({background:e.background}),onClick:t[0]||(t[0]=(...p)=>e.handleClick&&e.handleClick(...p))},null,6),ne("div",{ref:"thumb",class:ce(e.ns.e("thumb")),style:je({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}var mD=Re(hD,[["render",pD],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/alpha-slider.vue"]]);const gD=be({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(e){const t=Pe("color-hue-slider"),n=Et(),r=ae(null),i=ae(null),u=ae(0),p=ae(0),o=ee(()=>e.color.get("hue"));xe(()=>o.value,()=>{f()});function a(s){s.target!==r.value&&l(s)}function l(s){const g=n.vnode.el.getBoundingClientRect(),{clientX:m,clientY:v}=mm(s);let y;if(e.vertical){let b=v-g.top;b=Math.min(b,g.height-r.value.offsetHeight/2),b=Math.max(r.value.offsetHeight/2,b),y=Math.round((b-r.value.offsetHeight/2)/(g.height-r.value.offsetHeight)*360)}else{let b=m-g.left;b=Math.min(b,g.width-r.value.offsetWidth/2),b=Math.max(r.value.offsetWidth/2,b),y=Math.round((b-r.value.offsetWidth/2)/(g.width-r.value.offsetWidth)*360)}e.color.set("hue",y)}function h(){const s=n.vnode.el;if(e.vertical)return 0;const d=e.color.get("hue");return s?Math.round(d*(s.offsetWidth-r.value.offsetWidth/2)/360):0}function c(){const s=n.vnode.el;if(!e.vertical)return 0;const d=e.color.get("hue");return s?Math.round(d*(s.offsetHeight-r.value.offsetHeight/2)/360):0}function f(){u.value=h(),p.value=c()}return rt(()=>{const s={drag:d=>{l(d)},end:d=>{l(d)}};Al(i.value,s),Al(r.value,s),f()}),{bar:i,thumb:r,thumbLeft:u,thumbTop:p,hueValue:o,handleClick:a,update:f,ns:t}}});function vD(e,t,n,r,i,u){return N(),oe("div",{class:ce([e.ns.b(),e.ns.is("vertical",e.vertical)])},[ne("div",{ref:"bar",class:ce(e.ns.e("bar")),onClick:t[0]||(t[0]=(...p)=>e.handleClick&&e.handleClick(...p))},null,2),ne("div",{ref:"thumb",class:ce(e.ns.e("thumb")),style:je({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}var yD=Re(gD,[["render",vD],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/hue-slider.vue"]]);const E2=Symbol(),bD=()=>qe(E2),oy=function(e,t,n){return[e,t*n/((e=(2-t)*n)<1?e:2-e)||0,e/2]},_D=function(e){return typeof e=="string"&&e.includes(".")&&Number.parseFloat(e)===1},wD=function(e){return typeof e=="string"&&e.includes("%")},zo=function(e,t){_D(e)&&(e="100%");const n=wD(e);return e=Math.min(t,Math.max(0,Number.parseFloat(`${e}`))),n&&(e=Number.parseInt(`${e*t}`,10)/100),Math.abs(e-t)<1e-6?1:e%t/Number.parseFloat(t)},sy={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},fc=function(e){e=Math.min(Math.round(e),255);const t=Math.floor(e/16),n=e%16;return`${sy[t]||t}${sy[n]||n}`},ly=function({r:e,g:t,b:n}){return Number.isNaN(+e)||Number.isNaN(+t)||Number.isNaN(+n)?"":`#${fc(e)}${fc(t)}${fc(n)}`},yd={A:10,B:11,C:12,D:13,E:14,F:15},Ca=function(e){return e.length===2?(yd[e[0].toUpperCase()]||+e[0])*16+(yd[e[1].toUpperCase()]||+e[1]):yd[e[1].toUpperCase()]||+e[1]},SD=function(e,t,n){t=t/100,n=n/100;let r=t;const i=Math.max(n,.01);n*=2,t*=n<=1?n:2-n,r*=i<=1?i:2-i;const u=(n+t)/2,p=n===0?2*r/(i+r):2*t/(n+t);return{h:e,s:p*100,v:u*100}},uy=function(e,t,n){e=zo(e,255),t=zo(t,255),n=zo(n,255);const r=Math.max(e,t,n),i=Math.min(e,t,n);let u;const p=r,o=r-i,a=r===0?0:o/r;if(r===i)u=0;else{switch(r){case e:{u=(t-n)/o+(t<n?6:0);break}case t:{u=(n-e)/o+2;break}case n:{u=(e-t)/o+4;break}}u/=6}return{h:u*360,s:a*100,v:p*100}},Ps=function(e,t,n){e=zo(e,360)*6,t=zo(t,100),n=zo(n,100);const r=Math.floor(e),i=e-r,u=n*(1-t),p=n*(1-i*t),o=n*(1-(1-i)*t),a=r%6,l=[n,p,u,u,o,n][a],h=[o,n,n,p,u,u][a],c=[u,u,o,n,n,p][a];return{r:Math.round(l*255),g:Math.round(h*255),b:Math.round(c*255)}};class el{constructor(t){this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this.enableAlpha=!1,this.format="hex",this.value="",t=t||{};for(const n in t)lt(t,n)&&(this[n]=t[n]);t.value?this.fromString(t.value):this.doOnChange()}set(t,n){if(arguments.length===1&&typeof t=="object"){for(const r in t)lt(t,r)&&this.set(r,t[r]);return}this[`_${t}`]=n,this.doOnChange()}get(t){return t==="alpha"?Math.floor(this[`_${t}`]):this[`_${t}`]}toRgb(){return Ps(this._hue,this._saturation,this._value)}fromString(t){if(!t){this._hue=0,this._saturation=100,this._value=100,this.doOnChange();return}const n=(r,i,u)=>{this._hue=Math.max(0,Math.min(360,r)),this._saturation=Math.max(0,Math.min(100,i)),this._value=Math.max(0,Math.min(100,u)),this.doOnChange()};if(t.includes("hsl")){const r=t.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter(i=>i!=="").map((i,u)=>u>2?Number.parseFloat(i):Number.parseInt(i,10));if(r.length===4?this._alpha=Number.parseFloat(r[3])*100:r.length===3&&(this._alpha=100),r.length>=3){const{h:i,s:u,v:p}=SD(r[0],r[1],r[2]);n(i,u,p)}}else if(t.includes("hsv")){const r=t.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter(i=>i!=="").map((i,u)=>u>2?Number.parseFloat(i):Number.parseInt(i,10));r.length===4?this._alpha=Number.parseFloat(r[3])*100:r.length===3&&(this._alpha=100),r.length>=3&&n(r[0],r[1],r[2])}else if(t.includes("rgb")){const r=t.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter(i=>i!=="").map((i,u)=>u>2?Number.parseFloat(i):Number.parseInt(i,10));if(r.length===4?this._alpha=Number.parseFloat(r[3])*100:r.length===3&&(this._alpha=100),r.length>=3){const{h:i,s:u,v:p}=uy(r[0],r[1],r[2]);n(i,u,p)}}else if(t.includes("#")){const r=t.replace("#","").trim();if(!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(r))return;let i,u,p;r.length===3?(i=Ca(r[0]+r[0]),u=Ca(r[1]+r[1]),p=Ca(r[2]+r[2])):(r.length===6||r.length===8)&&(i=Ca(r.slice(0,2)),u=Ca(r.slice(2,4)),p=Ca(r.slice(4,6))),r.length===8?this._alpha=Ca(r.slice(6))/255*100:(r.length===3||r.length===6)&&(this._alpha=100);const{h:o,s:a,v:l}=uy(i,u,p);n(o,a,l)}}compare(t){return Math.abs(t._hue-this._hue)<2&&Math.abs(t._saturation-this._saturation)<1&&Math.abs(t._value-this._value)<1&&Math.abs(t._alpha-this._alpha)<1}doOnChange(){const{_hue:t,_saturation:n,_value:r,_alpha:i,format:u}=this;if(this.enableAlpha)switch(u){case"hsl":{const p=oy(t,n/100,r/100);this.value=`hsla(${t}, ${Math.round(p[1]*100)}%, ${Math.round(p[2]*100)}%, ${this.get("alpha")/100})`;break}case"hsv":{this.value=`hsva(${t}, ${Math.round(n)}%, ${Math.round(r)}%, ${this.get("alpha")/100})`;break}case"hex":{this.value=`${ly(Ps(t,n,r))}${fc(i*255/100)}`;break}default:{const{r:p,g:o,b:a}=Ps(t,n,r);this.value=`rgba(${p}, ${o}, ${a}, ${this.get("alpha")/100})`}}else switch(u){case"hsl":{const p=oy(t,n/100,r/100);this.value=`hsl(${t}, ${Math.round(p[1]*100)}%, ${Math.round(p[2]*100)}%)`;break}case"hsv":{this.value=`hsv(${t}, ${Math.round(n)}%, ${Math.round(r)}%)`;break}case"rgb":{const{r:p,g:o,b:a}=Ps(t,n,r);this.value=`rgb(${p}, ${o}, ${a})`;break}default:this.value=ly(Ps(t,n,r))}}}const CD=be({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0}},setup(e){const t=Pe("color-predefine"),{currentColor:n}=bD(),r=ae(u(e.colors,e.color));xe(()=>n.value,p=>{const o=new el;o.fromString(p),r.value.forEach(a=>{a.selected=o.compare(a)})}),io(()=>{r.value=u(e.colors,e.color)});function i(p){e.color.fromString(e.colors[p])}function u(p,o){return p.map(a=>{const l=new el;return l.enableAlpha=!0,l.format="rgba",l.fromString(a),l.selected=l.value===o.value,l})}return{rgbaColors:r,handleSelect:i,ns:t}}}),xD=["onClick"];function TD(e,t,n,r,i,u){return N(),oe("div",{class:ce(e.ns.b())},[ne("div",{class:ce(e.ns.e("colors"))},[(N(!0),oe($e,null,zt(e.rgbaColors,(p,o)=>(N(),oe("div",{key:e.colors[o],class:ce([e.ns.e("color-selector"),e.ns.is("alpha",p._alpha<100),{selected:p.selected}]),onClick:a=>e.handleSelect(o)},[ne("div",{style:je({backgroundColor:p.value})},null,4)],10,xD))),128))],2)],2)}var kD=Re(CD,[["render",TD],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/predefine.vue"]]);const ED=be({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(e){const t=Pe("color-svpanel"),n=Et(),r=ae(0),i=ae(0),u=ae("hsl(0, 100%, 50%)"),p=ee(()=>{const l=e.color.get("hue"),h=e.color.get("value");return{hue:l,value:h}});function o(){const l=e.color.get("saturation"),h=e.color.get("value"),c=n.vnode.el,{clientWidth:f,clientHeight:s}=c;i.value=l*f/100,r.value=(100-h)*s/100,u.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}function a(l){const c=n.vnode.el.getBoundingClientRect(),{clientX:f,clientY:s}=mm(l);let d=f-c.left,g=s-c.top;d=Math.max(0,d),d=Math.min(d,c.width),g=Math.max(0,g),g=Math.min(g,c.height),i.value=d,r.value=g,e.color.set({saturation:d/c.width*100,value:100-g/c.height*100})}return xe(()=>p.value,()=>{o()}),rt(()=>{Al(n.vnode.el,{drag:l=>{a(l)},end:l=>{a(l)}}),o()}),{cursorTop:r,cursorLeft:i,background:u,colorValue:p,handleDrag:a,update:o,ns:t}}}),OD=ne("div",null,null,-1),AD=[OD];function PD(e,t,n,r,i,u){return N(),oe("div",{class:ce(e.ns.b()),style:je({backgroundColor:e.background})},[ne("div",{class:ce(e.ns.e("white"))},null,2),ne("div",{class:ce(e.ns.e("black"))},null,2),ne("div",{class:ce(e.ns.e("cursor")),style:je({top:e.cursorTop+"px",left:e.cursorLeft+"px"})},AD,6)],6)}var ID=Re(ED,[["render",PD],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/sv-panel.vue"]]);const MD=be({name:"ElColorPicker",components:{ElButton:Je,ElTooltip:fn,ElInput:uo,ElIcon:De,Close:Kr,ArrowDown:Ko,SvPanel:ID,HueSlider:yD,AlphaSlider:mD,Predefine:kD},directives:{ClickOutside:v2},props:{modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:{type:String,validator:Of},popperClass:String,label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},predefine:Array,validateEvent:{type:Boolean,default:!0}},emits:["change","active-change",gt],setup(e,{emit:t}){const{t:n}=xn(),r=Pe("color"),{form:i,formItem:u}=pa(),{inputId:p,isLabeledByFormItem:o}=nu(e,{formItemContext:u}),a=ae(),l=ae(),h=ae(),c=ae(null);let f=!0;const s=kt(new el({enableAlpha:e.showAlpha,format:e.colorFormat||"",value:e.modelValue})),d=ae(!1),g=ae(!1),m=ae(""),v=ee(()=>!e.modelValue&&!g.value?"transparent":T(s,e.showAlpha)),y=yr(),b=ee(()=>!!(e.disabled||(i==null?void 0:i.disabled))),w=ee(()=>!e.modelValue&&!g.value?"":s.value),S=ee(()=>o.value?void 0:e.label||n("el.colorpicker.defaultLabel")),C=ee(()=>o.value?u==null?void 0:u.labelId:void 0);xe(()=>e.modelValue,re=>{re?re&&re!==s.value&&(f=!1,s.fromString(re)):g.value=!1}),xe(()=>w.value,re=>{m.value=re,f&&t("active-change",re),f=!0}),xe(()=>s.value,()=>{!e.modelValue&&!g.value&&(g.value=!0)});function T(re,q){if(!(re instanceof el))throw new TypeError("color should be instance of _color Class");const{r:J,g:E,b:V}=re.toRgb();return q?`rgba(${J}, ${E}, ${V}, ${re.get("alpha")/100})`:`rgb(${J}, ${E}, ${V})`}function k(re){d.value=re}const A=qo(k,100);function P(){A(!1),z()}function z(){Ge(()=>{e.modelValue?s.fromString(e.modelValue):(s.value="",Ge(()=>{g.value=!1}))})}function I(){b.value||A(!d.value)}function $(){s.fromString(m.value)}function O(){const re=s.value;t(gt,re),t("change",re),e.validateEvent&&(u==null||u.validate("change").catch(q=>void 0)),A(!1),Ge(()=>{const q=new el({enableAlpha:e.showAlpha,format:e.colorFormat||"",value:e.modelValue});s.compare(q)||z()})}function Y(){A(!1),t(gt,null),t("change",null),e.modelValue!==null&&e.validateEvent&&(u==null||u.validate("change").catch(re=>void 0)),z()}return rt(()=>{e.modelValue&&(m.value=w.value)}),xe(()=>d.value,()=>{Ge(()=>{var re,q,J;(re=a.value)==null||re.update(),(q=l.value)==null||q.update(),(J=h.value)==null||J.update()})}),vt(E2,{currentColor:w}),{color:s,colorDisabled:b,colorSize:y,displayedColor:v,showPanelColor:g,showPicker:d,customInput:m,buttonId:p,buttonAriaLabel:S,buttonAriaLabelledby:C,handleConfirm:$,hide:P,handleTrigger:I,clear:Y,confirmValue:O,t:n,ns:r,hue:a,svPanel:l,alpha:h,popper:c}}}),LD=["id","aria-label","aria-labelledby","aria-description","tabindex"];function RD(e,t,n,r,i,u){const p=bt("hue-slider"),o=bt("sv-panel"),a=bt("alpha-slider"),l=bt("predefine"),h=bt("el-input"),c=bt("el-button"),f=bt("arrow-down"),s=bt("el-icon"),d=bt("close"),g=bt("el-tooltip"),m=L_("click-outside");return N(),ve(g,{ref:"popper",visible:e.showPicker,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[e.ns.be("picker","panel"),e.ns.b("dropdown"),e.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",transition:`${e.ns.namespace.value}-zoom-in-top`,persistent:""},{content:ue(()=>[Tt((N(),oe("div",null,[ne("div",{class:ce(e.ns.be("dropdown","main-wrapper"))},[se(p,{ref:"hue",class:"hue-slider",color:e.color,vertical:""},null,8,["color"]),se(o,{ref:"svPanel",color:e.color},null,8,["color"])],2),e.showAlpha?(N(),ve(a,{key:0,ref:"alpha",color:e.color},null,8,["color"])):ge("v-if",!0),e.predefine?(N(),ve(l,{key:1,ref:"predefine",color:e.color,colors:e.predefine},null,8,["color","colors"])):ge("v-if",!0),ne("div",{class:ce(e.ns.be("dropdown","btns"))},[ne("span",{class:ce(e.ns.be("dropdown","value"))},[se(h,{modelValue:e.customInput,"onUpdate:modelValue":t[0]||(t[0]=v=>e.customInput=v),"validate-event":!1,size:"small",onKeyup:Bt(e.handleConfirm,["enter"]),onBlur:e.handleConfirm},null,8,["modelValue","onKeyup","onBlur"])],2),se(c,{class:ce(e.ns.be("dropdown","link-btn")),text:"",size:"small",onClick:e.clear},{default:ue(()=>[ze(Ee(e.t("el.colorpicker.clear")),1)]),_:1},8,["class","onClick"]),se(c,{plain:"",size:"small",class:ce(e.ns.be("dropdown","btn")),onClick:e.confirmValue},{default:ue(()=>[ze(Ee(e.t("el.colorpicker.confirm")),1)]),_:1},8,["class","onClick"])],2)])),[[m,e.hide]])]),default:ue(()=>[ne("div",{id:e.buttonId,class:ce([e.ns.b("picker"),e.ns.is("disabled",e.colorDisabled),e.ns.bm("picker",e.colorSize)]),role:"button","aria-label":e.buttonAriaLabel,"aria-labelledby":e.buttonAriaLabelledby,"aria-description":e.t("el.colorpicker.description",{color:e.modelValue||""}),tabindex:e.tabindex,onKeydown:t[2]||(t[2]=Bt((...v)=>e.handleTrigger&&e.handleTrigger(...v),["enter"]))},[e.colorDisabled?(N(),oe("div",{key:0,class:ce(e.ns.be("picker","mask"))},null,2)):ge("v-if",!0),ne("div",{class:ce(e.ns.be("picker","trigger")),onClick:t[1]||(t[1]=(...v)=>e.handleTrigger&&e.handleTrigger(...v))},[ne("span",{class:ce([e.ns.be("picker","color"),e.ns.is("alpha",e.showAlpha)])},[ne("span",{class:ce(e.ns.be("picker","color-inner")),style:je({backgroundColor:e.displayedColor})},[Tt(se(s,{class:ce([e.ns.be("picker","icon"),e.ns.is("icon-arrow-down")])},{default:ue(()=>[se(f)]),_:1},8,["class"]),[[Kt,e.modelValue||e.showPanelColor]]),!e.modelValue&&!e.showPanelColor?(N(),ve(s,{key:0,class:ce([e.ns.be("picker","empty"),e.ns.is("icon-close")])},{default:ue(()=>[se(d)]),_:1},8,["class"])):ge("v-if",!0)],6)],2)],2)],42,LD)]),_:1},8,["visible","popper-class","transition"])}var dc=Re(MD,[["render",RD],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/index.vue"]]);dc.install=e=>{e.component(dc.name,dc)};const DD=dc,FD=DD,Lh={},BD=Be({a11y:{type:Boolean,default:!0},locale:{type:Oe(Object)},size:oa,button:{type:Oe(Object)},experimentalFeatures:{type:Oe(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:Oe(Object)},zIndex:Number,namespace:{type:String,default:"el"}});be({name:"ElConfigProvider",props:BD,setup(e,{slots:t}){xe(()=>e.message,r=>{Object.assign(Lh,r!=null?r:{})},{immediate:!0,deep:!0});const n=B6(e);return()=>ke(t,"default",{config:n==null?void 0:n.value})}});const $D=Be({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:Oe([String,Array,Object])},zIndex:{type:Oe([String,Number])}}),ND={click:e=>e instanceof MouseEvent};var zD=be({name:"ElOverlay",props:$D,emits:ND,setup(e,{slots:t,emit:n}){const r=Pe("overlay"),i=a=>{n("click",a)},{onClick:u,onMousedown:p,onMouseup:o}=ym(e.customMaskEvent?void 0:i);return()=>e.mask?se("div",{class:[r.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:u,onMousedown:p,onMouseup:o},[ke(t,"default")],lc.STYLE|lc.CLASS|lc.PROPS,["onClick","onMouseup","onMousedown"]):Ct("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[ke(t,"default")])}});const O2=zD,A2=Be({center:{type:Boolean,default:!1},alignCenter:{type:Boolean,default:!1},closeIcon:{type:Qt},customClass:{type:String,default:""},draggable:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},title:{type:String,default:""}}),jD={close:()=>!0},VD=["aria-label"],UD=["id"],HD={name:"ElDialogContent"},WD=be({...HD,props:A2,emits:jD,setup(e){const t=e,{t:n}=xn(),{Close:r}=E6,{dialogRef:i,headerRef:u,bodyId:p,ns:o,style:a}=qe(Dw),{focusTrapRef:l}=qe(d2),h=I6(l,i),c=ee(()=>t.draggable);return Hw(i,u,c),(f,s)=>(N(),oe("div",{ref:_(h),class:ce([_(o).b(),_(o).is("fullscreen",f.fullscreen),_(o).is("draggable",_(c)),_(o).is("align-center",f.alignCenter),{[_(o).m("center")]:f.center},f.customClass]),style:je(_(a)),tabindex:"-1",onClick:s[1]||(s[1]=Qe(()=>{},["stop"]))},[ne("header",{ref_key:"headerRef",ref:u,class:ce(_(o).e("header"))},[ke(f.$slots,"header",{},()=>[ne("span",{role:"heading",class:ce(_(o).e("title"))},Ee(f.title),3)]),f.showClose?(N(),oe("button",{key:0,"aria-label":_(n)("el.dialog.close"),class:ce(_(o).e("headerbtn")),type:"button",onClick:s[0]||(s[0]=d=>f.$emit("close"))},[se(_(De),{class:ce(_(o).e("close"))},{default:ue(()=>[(N(),ve(xt(f.closeIcon||_(r))))]),_:1},8,["class"])],10,VD)):ge("v-if",!0)],2),ne("div",{id:_(p),class:ce(_(o).e("body"))},[ke(f.$slots,"default")],10,UD),f.$slots.footer?(N(),oe("footer",{key:0,class:ce(_(o).e("footer"))},[ke(f.$slots,"footer")],2)):ge("v-if",!0)],6))}});var GD=Re(WD,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog-content.vue"]]);const YD=Be({...A2,appendToBody:{type:Boolean,default:!1},beforeClose:{type:Oe(Function)},destroyOnClose:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:{type:Boolean,default:!1},modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1}}),KD={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[gt]:e=>Qn(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},XD=(e,t)=>{const r=Et().emit,{nextZIndex:i}=ru();let u="";const p=sa(),o=sa(),a=ae(!1),l=ae(!1),h=ae(!1),c=ae(e.zIndex||i());let f,s;const d=Ii("namespace",Pf),g=ee(()=>{const $={},O=`--${d.value}-dialog`;return e.fullscreen||(e.top&&($[`${O}-margin-top`]=e.top),e.width&&($[`${O}-width`]=qr(e.width))),$}),m=ee(()=>e.alignCenter?{display:"flex"}:{});function v(){r("opened")}function y(){r("closed"),r(gt,!1),e.destroyOnClose&&(h.value=!1)}function b(){r("close")}function w(){s==null||s(),f==null||f(),e.openDelay&&e.openDelay>0?{stop:f}=xl(()=>k(),e.openDelay):k()}function S(){f==null||f(),s==null||s(),e.closeDelay&&e.closeDelay>0?{stop:s}=xl(()=>A(),e.closeDelay):A()}function C(){function $(O){O||(l.value=!0,a.value=!1)}e.beforeClose?e.beforeClose($):S()}function T(){e.closeOnClickModal&&C()}function k(){!ht||(a.value=!0)}function A(){a.value=!1}function P(){r("openAutoFocus")}function z(){r("closeAutoFocus")}e.lockScroll&&Ww(a);function I(){e.closeOnPressEscape&&C()}return xe(()=>e.modelValue,$=>{$?(l.value=!1,w(),h.value=!0,c.value=e.zIndex?c.value++:i(),Ge(()=>{r("open"),t.value&&(t.value.scrollTop=0)})):a.value&&S()}),xe(()=>e.fullscreen,$=>{!t.value||($?(u=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=u)}),rt(()=>{e.modelValue&&(a.value=!0,h.value=!0,w())}),{afterEnter:v,afterLeave:y,beforeLeave:b,handleClose:C,onModalClick:T,close:S,doClose:A,onOpenAutoFocus:P,onCloseAutoFocus:z,onCloseRequested:I,titleId:p,bodyId:o,closed:l,style:g,overlayDialogStyle:m,rendered:h,visible:a,zIndex:c}},qD=["aria-label","aria-labelledby","aria-describedby"],ZD={name:"ElDialog",inheritAttrs:!1},JD=be({...ZD,props:YD,emits:KD,setup(e,{expose:t}){const n=e,r=ss();Tl({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},ee(()=>!!r.title)),Tl({scope:"el-dialog",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/dialog.html#attributes",type:"Attribute"},ee(()=>!!n.customClass));const i=Pe("dialog"),u=ae(),p=ae(),o=ae(),{visible:a,titleId:l,bodyId:h,style:c,overlayDialogStyle:f,rendered:s,zIndex:d,afterEnter:g,afterLeave:m,beforeLeave:v,handleClose:y,onModalClick:b,onOpenAutoFocus:w,onCloseAutoFocus:S,onCloseRequested:C}=XD(n,u);vt(Dw,{dialogRef:u,headerRef:p,bodyId:h,ns:i,rendered:s,style:c});const T=ym(b),k=ee(()=>n.draggable&&!n.fullscreen);return t({visible:a,dialogContentRef:o}),(A,P)=>(N(),ve(Np,{to:"body",disabled:!A.appendToBody},[se(Vn,{name:"dialog-fade",onAfterEnter:_(g),onAfterLeave:_(m),onBeforeLeave:_(v),persisted:""},{default:ue(()=>[Tt(se(_(O2),{"custom-mask-event":"",mask:A.modal,"overlay-class":A.modalClass,"z-index":_(d)},{default:ue(()=>[ne("div",{role:"dialog","aria-modal":"true","aria-label":A.title||void 0,"aria-labelledby":A.title?void 0:_(l),"aria-describedby":_(h),class:ce(`${_(i).namespace.value}-overlay-dialog`),style:je(_(f)),onClick:P[0]||(P[0]=(...z)=>_(T).onClick&&_(T).onClick(...z)),onMousedown:P[1]||(P[1]=(...z)=>_(T).onMousedown&&_(T).onMousedown(...z)),onMouseup:P[2]||(P[2]=(...z)=>_(T).onMouseup&&_(T).onMouseup(...z))},[se(_(Em),{loop:"",trapped:_(a),"focus-start-el":"container",onFocusAfterTrapped:_(w),onFocusAfterReleased:_(S),onReleaseRequested:_(C)},{default:ue(()=>[_(s)?(N(),ve(GD,$n({key:0,ref_key:"dialogContentRef",ref:o},A.$attrs,{"custom-class":A.customClass,center:A.center,"align-center":A.alignCenter,"close-icon":A.closeIcon,draggable:_(k),fullscreen:A.fullscreen,"show-close":A.showClose,title:A.title,onClose:_(y)}),Pc({header:ue(()=>[A.$slots.title?ke(A.$slots,"title",{key:1}):ke(A.$slots,"header",{key:0,close:_(y),titleId:_(l),titleClass:_(i).e("title")})]),default:ue(()=>[ke(A.$slots,"default")]),_:2},[A.$slots.footer?{name:"footer",fn:ue(()=>[ke(A.$slots,"footer")])}:void 0]),1040,["custom-class","center","align-center","close-icon","draggable","fullscreen","show-close","title","onClose"])):ge("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onReleaseRequested"])],46,qD)]),_:3},8,["mask","overlay-class","z-index"]),[[Kt,_(a)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"]))}});var QD=Re(JD,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog.vue"]]);const eF=wt(QD),tF=Be({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:Oe(String),default:"solid"}}),nF={name:"ElDivider"},rF=be({...nF,props:tF,setup(e){const t=e,n=Pe("divider"),r=ee(()=>n.cssVar({"border-style":t.borderStyle}));return(i,u)=>(N(),oe("div",{class:ce([_(n).b(),_(n).m(i.direction)]),style:je(_(r)),role:"separator"},[i.$slots.default&&i.direction!=="vertical"?(N(),oe("div",{key:0,class:ce([_(n).e("text"),_(n).is(i.contentPosition)])},[ke(i.$slots,"default")],2)):ge("v-if",!0)],6))}});var iF=Re(rF,[["__file","/home/runner/work/element-plus/element-plus/packages/components/divider/src/divider.vue"]]);const aF=wt(iF),oF={inheritAttrs:!1};function sF(e,t,n,r,i,u){return ke(e.$slots,"default")}var lF=Re(oF,[["render",sF],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);const uF={name:"ElCollectionItem",inheritAttrs:!1};function cF(e,t,n,r,i,u){return ke(e.$slots,"default")}var fF=Re(uF,[["render",cF],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);const dF="data-el-collection-item",hF=e=>{const t=`El${e}Collection`,n=`${t}Item`,r=Symbol(t),i=Symbol(n),u={...lF,name:t,setup(){const o=ae(null),a=new Map;vt(r,{itemMap:a,getItems:()=>{const h=_(o);if(!h)return[];const c=Array.from(h.querySelectorAll(`[${dF}]`));return[...a.values()].sort((s,d)=>c.indexOf(s.ref)-c.indexOf(d.ref))},collectionRef:o})}},p={...fF,name:n,setup(o,{attrs:a}){const l=ae(null),h=qe(r,void 0);vt(i,{collectionItemRef:l}),rt(()=>{const c=_(l);c&&h.itemMap.set(c,{ref:c,...a})}),tn(()=>{const c=_(l);h.itemMap.delete(c)})}};return{COLLECTION_INJECTION_KEY:r,COLLECTION_ITEM_INJECTION_KEY:i,ElCollection:u,ElCollectionItem:p}},bd=Be({trigger:Ol.trigger,effect:{...lr.effect,default:"light"},type:{type:Oe(String)},placement:{type:Oe(String),default:"bottom"},popperOptions:{type:Oe(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:Oe([Number,String]),default:0},maxHeight:{type:Oe([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:Oe(Object)}});Be({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:Qt}});Be({onKeydown:{type:Oe(Function)}});hF("Dropdown");let pF=0;const mF=be({name:"ImgEmpty",setup(){return{ns:Pe("empty"),id:++pF}}}),gF={viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},vF=["id"],yF=["stop-color"],bF=["stop-color"],_F=["id"],wF=["stop-color"],SF=["stop-color"],CF=["id"],xF={id:"Illustrations",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},TF={id:"B-type",transform:"translate(-1268.000000, -535.000000)"},kF={id:"Group-2",transform:"translate(1268.000000, 535.000000)"},EF=["fill"],OF=["fill"],AF={id:"Group-Copy",transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},PF=["fill"],IF=["fill"],MF=["fill"],LF=["fill"],RF=["fill"],DF={id:"Rectangle-Copy-17",transform:"translate(53.000000, 45.000000)"},FF=["fill","xlink:href"],BF=["fill","mask"],$F=["fill"];function NF(e,t,n,r,i,u){return N(),oe("svg",gF,[ne("defs",null,[ne("linearGradient",{id:`linearGradient-1-${e.id}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[ne("stop",{"stop-color":`var(${e.ns.cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,yF),ne("stop",{"stop-color":`var(${e.ns.cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,bF)],8,vF),ne("linearGradient",{id:`linearGradient-2-${e.id}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[ne("stop",{"stop-color":`var(${e.ns.cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,wF),ne("stop",{"stop-color":`var(${e.ns.cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,SF)],8,_F),ne("rect",{id:`path-3-${e.id}`,x:"0",y:"0",width:"17",height:"36"},null,8,CF)]),ne("g",xF,[ne("g",TF,[ne("g",kF,[ne("path",{id:"Oval-Copy-2",d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:`var(${e.ns.cssVarBlockName("fill-color-3")})`},null,8,EF),ne("polygon",{id:"Rectangle-Copy-14",fill:`var(${e.ns.cssVarBlockName("fill-color-7")})`,transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"},null,8,OF),ne("g",AF,[ne("polygon",{id:"Rectangle-Copy-10",fill:`var(${e.ns.cssVarBlockName("fill-color-7")})`,transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"},null,8,PF),ne("polygon",{id:"Rectangle-Copy-11",fill:`var(${e.ns.cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,IF),ne("rect",{id:"Rectangle-Copy-12",fill:`url(#linearGradient-1-${e.id})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,MF),ne("polygon",{id:"Rectangle-Copy-13",fill:`var(${e.ns.cssVarBlockName("fill-color-2")})`,transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"},null,8,LF)]),ne("rect",{id:"Rectangle-Copy-15",fill:`url(#linearGradient-2-${e.id})`,x:"13",y:"45",width:"40",height:"36"},null,8,RF),ne("g",DF,[ne("use",{id:"Mask",fill:`var(${e.ns.cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${e.id}`},null,8,FF),ne("polygon",{id:"Rectangle-Copy",fill:`var(${e.ns.cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${e.id})`,transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 7 16.5"},null,8,BF)]),ne("polygon",{id:"Rectangle-Copy-18",fill:`var(${e.ns.cssVarBlockName("fill-color-2")})`,transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"},null,8,$F)])])])])}var zF=Re(mF,[["render",NF],["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/img-empty.vue"]]);const jF={image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}},VF=["src"],UF={key:1},HF={name:"ElEmpty"},WF=be({...HF,props:jF,setup(e){const t=e,{t:n}=xn(),r=Pe("empty"),i=ee(()=>t.description||n("el.table.emptyText")),u=ee(()=>({width:t.imageSize?`${t.imageSize}px`:""}));return(p,o)=>(N(),oe("div",{class:ce(_(r).b())},[ne("div",{class:ce(_(r).e("image")),style:je(_(u))},[p.image?(N(),oe("img",{key:0,src:p.image,ondragstart:"return false"},null,8,VF)):ke(p.$slots,"image",{key:1},()=>[se(zF)])],6),ne("div",{class:ce(_(r).e("description"))},[p.$slots.description?ke(p.$slots,"description",{key:0}):(N(),oe("p",UF,Ee(_(i)),1))],2),p.$slots.default?(N(),oe("div",{key:0,class:ce(_(r).e("bottom"))},[ke(p.$slots,"default")],2)):ge("v-if",!0)],2))}});var GF=Re(WF,[["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/empty.vue"]]);const YF=wt(GF),KF=Be({model:Object,rules:{type:Oe(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},size:{type:String,values:tu},disabled:Boolean,validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:{type:Boolean,default:!1},scrollToError:Boolean}),XF={validate:(e,t,n)=>(We(e)||Xe(e))&&Qn(t)&&Xe(n)};function qF(){const e=ae([]),t=ee(()=>{if(!e.value.length)return"0";const u=Math.max(...e.value);return u?`${u}px`:""});function n(u){return e.value.indexOf(u)}function r(u,p){if(u&&p){const o=n(p);e.value.splice(o,1,u)}else u&&e.value.push(u)}function i(u){const p=n(u);p>-1&&e.value.splice(p,1)}return{autoLabelWidth:t,registerLabelWidth:r,deregisterLabelWidth:i}}const Lu=(e,t)=>{const n=Sl(t);return n.length>0?e.filter(r=>r.prop&&n.includes(r.prop)):e},ZF={name:"ElForm"},JF=be({...ZF,props:KF,emits:XF,setup(e,{expose:t,emit:n}){const r=e,i=[],u=yr(),p=Pe("form"),o=ee(()=>{const{labelPosition:y,inline:b}=r;return[p.b(),p.m(u.value||"default"),{[p.m(`label-${y}`)]:y,[p.m("inline")]:b}]}),a=y=>{i.push(y)},l=y=>{y.prop&&i.splice(i.indexOf(y),1)},h=(y=[])=>{!r.model||Lu(i,y).forEach(b=>b.resetField())},c=(y=[])=>{Lu(i,y).forEach(b=>b.clearValidate())},f=ee(()=>!!r.model),s=y=>{if(i.length===0)return[];const b=Lu(i,y);return b.length?b:[]},d=async y=>m(void 0,y),g=async(y=[])=>{if(!f.value)return!1;const b=s(y);if(b.length===0)return!0;let w={};for(const S of b)try{await S.validate("")}catch(C){w={...w,...C}}return Object.keys(w).length===0?!0:Promise.reject(w)},m=async(y=[],b)=>{const w=!He(b);try{const S=await g(y);return S===!0&&(b==null||b(S)),S}catch(S){const C=S;return r.scrollToError&&v(Object.keys(C)[0]),b==null||b(!1,C),w&&Promise.reject(C)}},v=y=>{var b;const w=Lu(i,y)[0];w&&((b=w.$el)==null||b.scrollIntoView())};return xe(()=>r.rules,()=>{r.validateOnRuleChange&&d().catch(y=>void 0)},{deep:!0}),vt(ds,kt({...hr(r),emit:n,resetFields:h,clearValidate:c,validateField:m,addField:a,removeField:l,...qF()})),t({validate:d,validateField:m,resetFields:h,clearValidate:c,scrollToField:v}),(y,b)=>(N(),oe("form",{class:ce(_(o))},[ke(y.$slots,"default")],2))}});var QF=Re(JF,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]);function Ra(){return Ra=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ra.apply(this,arguments)}function eB(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Pl(e,t)}function Rh(e){return Rh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Rh(e)}function Pl(e,t){return Pl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Pl(e,t)}function tB(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function hc(e,t,n){return tB()?hc=Reflect.construct.bind():hc=function(i,u,p){var o=[null];o.push.apply(o,u);var a=Function.bind.apply(i,o),l=new a;return p&&Pl(l,p.prototype),l},hc.apply(null,arguments)}function nB(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Dh(e){var t=typeof Map=="function"?new Map:void 0;return Dh=function(r){if(r===null||!nB(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return hc(r,arguments,Rh(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Pl(i,r)},Dh(e)}var rB=/%[sdj%]/g,iB=function(){};typeof process<"u"&&process.env;function Fh(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function Xn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=0,u=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var p=e.replace(rB,function(o){if(o==="%%")return"%";if(i>=u)return o;switch(o){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch{return"[Circular]"}break;default:return o}});return p}return e}function aB(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function an(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||aB(t)&&typeof e=="string"&&!e)}function oB(e,t,n){var r=[],i=0,u=e.length;function p(o){r.push.apply(r,o||[]),i++,i===u&&n(r)}e.forEach(function(o){t(o,p)})}function cy(e,t,n){var r=0,i=e.length;function u(p){if(p&&p.length){n(p);return}var o=r;r=r+1,o<i?t(e[o],u):n([])}u([])}function sB(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[])}),t}var fy=function(e){eB(t,e);function t(n,r){var i;return i=e.call(this,"Async Validation Error")||this,i.errors=n,i.fields=r,i}return t}(Dh(Error));function lB(e,t,n,r,i){if(t.first){var u=new Promise(function(f,s){var d=function(v){return r(v),v.length?s(new fy(v,Fh(v))):f(i)},g=sB(e);cy(g,n,d)});return u.catch(function(f){return f}),u}var p=t.firstFields===!0?Object.keys(e):t.firstFields||[],o=Object.keys(e),a=o.length,l=0,h=[],c=new Promise(function(f,s){var d=function(m){if(h.push.apply(h,m),l++,l===a)return r(h),h.length?s(new fy(h,Fh(h))):f(i)};o.length||(r(h),f(i)),o.forEach(function(g){var m=e[g];p.indexOf(g)!==-1?cy(m,n,d):oB(m,n,d)})});return c.catch(function(f){return f}),c}function uB(e){return!!(e&&e.message!==void 0)}function cB(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function dy(e,t){return function(n){var r;return e.fullFields?r=cB(t,e.fullFields):r=t[n.field||e.fullField],uB(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function hy(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];typeof r=="object"&&typeof e[n]=="object"?e[n]=Ra({},e[n],r):e[n]=r}}return e}var P2=function(t,n,r,i,u,p){t.required&&(!r.hasOwnProperty(t.field)||an(n,p||t.type))&&i.push(Xn(u.messages.required,t.fullField))},fB=function(t,n,r,i,u){(/^\s+$/.test(n)||n==="")&&i.push(Xn(u.messages.whitespace,t.fullField))},Ru,dB=function(){if(Ru)return Ru;var e="[a-fA-F\\d:]",t=function(w){return w&&w.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",i=(`
|
|
(?:
|
|
(?:`+r+":){7}(?:"+r+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
|
|
(?:`+r+":){6}(?:"+n+"|:"+r+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
|
|
(?:`+r+":){5}(?::"+n+"|(?::"+r+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
|
|
(?:`+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
|
|
(?:`+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
|
|
(?:`+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
|
|
(?:`+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
|
|
(?::(?:(?::`+r+"){0,5}:"+n+"|(?::"+r+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
|
|
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
|
|
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),u=new RegExp("(?:^"+n+"$)|(?:^"+i+"$)"),p=new RegExp("^"+n+"$"),o=new RegExp("^"+i+"$"),a=function(w){return w&&w.exact?u:new RegExp("(?:"+t(w)+n+t(w)+")|(?:"+t(w)+i+t(w)+")","g")};a.v4=function(b){return b&&b.exact?p:new RegExp(""+t(b)+n+t(b),"g")},a.v6=function(b){return b&&b.exact?o:new RegExp(""+t(b)+i+t(b),"g")};var l="(?:(?:[a-z]+:)?//)",h="(?:\\S+(?::\\S*)?@)?",c=a.v4().source,f=a.v6().source,s="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",d="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",g="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",m="(?::\\d{2,5})?",v='(?:[/?#][^\\s"]*)?',y="(?:"+l+"|www\\.)"+h+"(?:localhost|"+c+"|"+f+"|"+s+d+g+")"+m+v;return Ru=new RegExp("(?:^"+y+"$)","i"),Ru},py={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Ds={integer:function(t){return Ds.number(t)&&parseInt(t,10)===t},float:function(t){return Ds.number(t)&&!Ds.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!Ds.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(py.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(dB())},hex:function(t){return typeof t=="string"&&!!t.match(py.hex)}},hB=function(t,n,r,i,u){if(t.required&&n===void 0){P2(t,n,r,i,u);return}var p=["integer","float","array","regexp","object","method","email","number","date","url","hex"],o=t.type;p.indexOf(o)>-1?Ds[o](n)||i.push(Xn(u.messages.types[o],t.fullField,t.type)):o&&typeof n!==t.type&&i.push(Xn(u.messages.types[o],t.fullField,t.type))},pB=function(t,n,r,i,u){var p=typeof t.len=="number",o=typeof t.min=="number",a=typeof t.max=="number",l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,h=n,c=null,f=typeof n=="number",s=typeof n=="string",d=Array.isArray(n);if(f?c="number":s?c="string":d&&(c="array"),!c)return!1;d&&(h=n.length),s&&(h=n.replace(l,"_").length),p?h!==t.len&&i.push(Xn(u.messages[c].len,t.fullField,t.len)):o&&!a&&h<t.min?i.push(Xn(u.messages[c].min,t.fullField,t.min)):a&&!o&&h>t.max?i.push(Xn(u.messages[c].max,t.fullField,t.max)):o&&a&&(h<t.min||h>t.max)&&i.push(Xn(u.messages[c].range,t.fullField,t.min,t.max))},So="enum",mB=function(t,n,r,i,u){t[So]=Array.isArray(t[So])?t[So]:[],t[So].indexOf(n)===-1&&i.push(Xn(u.messages[So],t.fullField,t[So].join(", ")))},gB=function(t,n,r,i,u){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||i.push(Xn(u.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var p=new RegExp(t.pattern);p.test(n)||i.push(Xn(u.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},ct={required:P2,whitespace:fB,type:hB,range:pB,enum:mB,pattern:gB},vB=function(t,n,r,i,u){var p=[],o=t.required||!t.required&&i.hasOwnProperty(t.field);if(o){if(an(n,"string")&&!t.required)return r();ct.required(t,n,i,p,u,"string"),an(n,"string")||(ct.type(t,n,i,p,u),ct.range(t,n,i,p,u),ct.pattern(t,n,i,p,u),t.whitespace===!0&&ct.whitespace(t,n,i,p,u))}r(p)},yB=function(t,n,r,i,u){var p=[],o=t.required||!t.required&&i.hasOwnProperty(t.field);if(o){if(an(n)&&!t.required)return r();ct.required(t,n,i,p,u),n!==void 0&&ct.type(t,n,i,p,u)}r(p)},bB=function(t,n,r,i,u){var p=[],o=t.required||!t.required&&i.hasOwnProperty(t.field);if(o){if(n===""&&(n=void 0),an(n)&&!t.required)return r();ct.required(t,n,i,p,u),n!==void 0&&(ct.type(t,n,i,p,u),ct.range(t,n,i,p,u))}r(p)},_B=function(t,n,r,i,u){var p=[],o=t.required||!t.required&&i.hasOwnProperty(t.field);if(o){if(an(n)&&!t.required)return r();ct.required(t,n,i,p,u),n!==void 0&&ct.type(t,n,i,p,u)}r(p)},wB=function(t,n,r,i,u){var p=[],o=t.required||!t.required&&i.hasOwnProperty(t.field);if(o){if(an(n)&&!t.required)return r();ct.required(t,n,i,p,u),an(n)||ct.type(t,n,i,p,u)}r(p)},SB=function(t,n,r,i,u){var p=[],o=t.required||!t.required&&i.hasOwnProperty(t.field);if(o){if(an(n)&&!t.required)return r();ct.required(t,n,i,p,u),n!==void 0&&(ct.type(t,n,i,p,u),ct.range(t,n,i,p,u))}r(p)},CB=function(t,n,r,i,u){var p=[],o=t.required||!t.required&&i.hasOwnProperty(t.field);if(o){if(an(n)&&!t.required)return r();ct.required(t,n,i,p,u),n!==void 0&&(ct.type(t,n,i,p,u),ct.range(t,n,i,p,u))}r(p)},xB=function(t,n,r,i,u){var p=[],o=t.required||!t.required&&i.hasOwnProperty(t.field);if(o){if(n==null&&!t.required)return r();ct.required(t,n,i,p,u,"array"),n!=null&&(ct.type(t,n,i,p,u),ct.range(t,n,i,p,u))}r(p)},TB=function(t,n,r,i,u){var p=[],o=t.required||!t.required&&i.hasOwnProperty(t.field);if(o){if(an(n)&&!t.required)return r();ct.required(t,n,i,p,u),n!==void 0&&ct.type(t,n,i,p,u)}r(p)},kB="enum",EB=function(t,n,r,i,u){var p=[],o=t.required||!t.required&&i.hasOwnProperty(t.field);if(o){if(an(n)&&!t.required)return r();ct.required(t,n,i,p,u),n!==void 0&&ct[kB](t,n,i,p,u)}r(p)},OB=function(t,n,r,i,u){var p=[],o=t.required||!t.required&&i.hasOwnProperty(t.field);if(o){if(an(n,"string")&&!t.required)return r();ct.required(t,n,i,p,u),an(n,"string")||ct.pattern(t,n,i,p,u)}r(p)},AB=function(t,n,r,i,u){var p=[],o=t.required||!t.required&&i.hasOwnProperty(t.field);if(o){if(an(n,"date")&&!t.required)return r();if(ct.required(t,n,i,p,u),!an(n,"date")){var a;n instanceof Date?a=n:a=new Date(n),ct.type(t,a,i,p,u),a&&ct.range(t,a.getTime(),i,p,u)}}r(p)},PB=function(t,n,r,i,u){var p=[],o=Array.isArray(n)?"array":typeof n;ct.required(t,n,i,p,u,o),r(p)},_d=function(t,n,r,i,u){var p=t.type,o=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(an(n,p)&&!t.required)return r();ct.required(t,n,i,o,u,p),an(n,p)||ct.type(t,n,i,o,u)}r(o)},IB=function(t,n,r,i,u){var p=[],o=t.required||!t.required&&i.hasOwnProperty(t.field);if(o){if(an(n)&&!t.required)return r();ct.required(t,n,i,p,u)}r(p)},tl={string:vB,method:yB,number:bB,boolean:_B,regexp:wB,integer:SB,float:CB,array:xB,object:TB,enum:EB,pattern:OB,date:AB,url:_d,hex:_d,email:_d,required:PB,any:IB};function Bh(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var $h=Bh(),ou=function(){function e(n){this.rules=null,this._messages=$h,this.define(n)}var t=e.prototype;return t.define=function(r){var i=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(u){var p=r[u];i.rules[u]=Array.isArray(p)?p:[p]})},t.messages=function(r){return r&&(this._messages=hy(Bh(),r)),this._messages},t.validate=function(r,i,u){var p=this;i===void 0&&(i={}),u===void 0&&(u=function(){});var o=r,a=i,l=u;if(typeof a=="function"&&(l=a,a={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,o),Promise.resolve(o);function h(g){var m=[],v={};function y(w){if(Array.isArray(w)){var S;m=(S=m).concat.apply(S,w)}else m.push(w)}for(var b=0;b<g.length;b++)y(g[b]);m.length?(v=Fh(m),l(m,v)):l(null,o)}if(a.messages){var c=this.messages();c===$h&&(c=Bh()),hy(c,a.messages),a.messages=c}else a.messages=this.messages();var f={},s=a.keys||Object.keys(this.rules);s.forEach(function(g){var m=p.rules[g],v=o[g];m.forEach(function(y){var b=y;typeof b.transform=="function"&&(o===r&&(o=Ra({},o)),v=o[g]=b.transform(v)),typeof b=="function"?b={validator:b}:b=Ra({},b),b.validator=p.getValidationMethod(b),b.validator&&(b.field=g,b.fullField=b.fullField||g,b.type=p.getType(b),f[g]=f[g]||[],f[g].push({rule:b,value:v,source:o,field:g}))})});var d={};return lB(f,a,function(g,m){var v=g.rule,y=(v.type==="object"||v.type==="array")&&(typeof v.fields=="object"||typeof v.defaultField=="object");y=y&&(v.required||!v.required&&g.value),v.field=g.field;function b(C,T){return Ra({},T,{fullField:v.fullField+"."+C,fullFields:v.fullFields?[].concat(v.fullFields,[C]):[C]})}function w(C){C===void 0&&(C=[]);var T=Array.isArray(C)?C:[C];!a.suppressWarning&&T.length&&e.warning("async-validator:",T),T.length&&v.message!==void 0&&(T=[].concat(v.message));var k=T.map(dy(v,o));if(a.first&&k.length)return d[v.field]=1,m(k);if(!y)m(k);else{if(v.required&&!g.value)return v.message!==void 0?k=[].concat(v.message).map(dy(v,o)):a.error&&(k=[a.error(v,Xn(a.messages.required,v.field))]),m(k);var A={};v.defaultField&&Object.keys(g.value).map(function(I){A[I]=v.defaultField}),A=Ra({},A,g.rule.fields);var P={};Object.keys(A).forEach(function(I){var $=A[I],O=Array.isArray($)?$:[$];P[I]=O.map(b.bind(null,I))});var z=new e(P);z.messages(a.messages),g.rule.options&&(g.rule.options.messages=a.messages,g.rule.options.error=a.error),z.validate(g.value,g.rule.options||a,function(I){var $=[];k&&k.length&&$.push.apply($,k),I&&I.length&&$.push.apply($,I),m($.length?$:null)})}}var S;if(v.asyncValidator)S=v.asyncValidator(v,g.value,w,g.source,a);else if(v.validator){try{S=v.validator(v,g.value,w,g.source,a)}catch(C){console.error==null||console.error(C),a.suppressValidatorError||setTimeout(function(){throw C},0),w(C.message)}S===!0?w():S===!1?w(typeof v.message=="function"?v.message(v.fullField||v.field):v.message||(v.fullField||v.field)+" fails"):S instanceof Array?w(S):S instanceof Error&&w(S.message)}S&&S.then&&S.then(function(){return w()},function(C){return w(C)})},function(g){h(g)},o)},t.getType=function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!tl.hasOwnProperty(r.type))throw new Error(Xn("Unknown rule type %s",r.type));return r.type||"string"},t.getValidationMethod=function(r){if(typeof r.validator=="function")return r.validator;var i=Object.keys(r),u=i.indexOf("message");return u!==-1&&i.splice(u,1),i.length===1&&i[0]==="required"?tl.required:tl[this.getType(r)]||void 0},e}();ou.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");tl[t]=n};ou.warning=iB;ou.messages=$h;ou.validators=tl;const MB=["","error","validating","success"],LB=Be({label:String,labelWidth:{type:[String,Number],default:""},prop:{type:Oe([String,Array])},required:{type:Boolean,default:void 0},rules:{type:Oe([Object,Array])},error:String,validateStatus:{type:String,values:MB},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:tu}}),my="ElLabelWrap";var RB=be({name:my,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const n=qe(ds,void 0);qe(qa)||Mn(my,"usage: <el-form-item><label-wrap /></el-form-item>");const i=Pe("form"),u=ae(),p=ae(0),o=()=>{var h;if((h=u.value)!=null&&h.firstElementChild){const c=window.getComputedStyle(u.value.firstElementChild).width;return Math.ceil(Number.parseFloat(c))}else return 0},a=(h="update")=>{Ge(()=>{t.default&&e.isAutoWidth&&(h==="update"?p.value=o():h==="remove"&&(n==null||n.deregisterLabelWidth(p.value)))})},l=()=>a("update");return rt(()=>{l()}),tn(()=>{a("remove")}),ro(()=>l()),xe(p,(h,c)=>{e.updateAll&&(n==null||n.registerLabelWidth(h,c))}),Jr(ee(()=>{var h,c;return(c=(h=u.value)==null?void 0:h.firstElementChild)!=null?c:null}),l),()=>{var h,c;if(!t)return null;const{isAutoWidth:f}=e;if(f){const s=n==null?void 0:n.autoLabelWidth,d={};if(s&&s!=="auto"){const g=Math.max(0,Number.parseInt(s,10)-p.value),m=n.labelPosition==="left"?"marginRight":"marginLeft";g&&(d[m]=`${g}px`)}return se("div",{ref:u,class:[i.be("item","label-wrap")],style:d},[(h=t.default)==null?void 0:h.call(t)])}else return se($e,{ref:u},[(c=t.default)==null?void 0:c.call(t)])}}});const DB=["role","aria-labelledby"],FB={name:"ElFormItem"},BB=be({...FB,props:LB,setup(e,{expose:t}){const n=e,r=ss(),i=qe(ds,void 0),u=qe(qa,void 0),p=yr(void 0,{formItem:!1}),o=Pe("form-item"),a=sa().value,l=ae([]),h=ae(""),c=C5(h,100),f=ae(""),s=ae();let d,g=!1;const m=ee(()=>{if((i==null?void 0:i.labelPosition)==="top")return{};const H=qr(n.labelWidth||(i==null?void 0:i.labelWidth)||"");return H?{width:H}:{}}),v=ee(()=>{if((i==null?void 0:i.labelPosition)==="top"||(i==null?void 0:i.inline))return{};if(!n.label&&!n.labelWidth&&A)return{};const H=qr(n.labelWidth||(i==null?void 0:i.labelWidth)||"");return!n.label&&!r.label?{marginLeft:H}:{}}),y=ee(()=>[o.b(),o.m(p.value),o.is("error",h.value==="error"),o.is("validating",h.value==="validating"),o.is("success",h.value==="success"),o.is("required",O.value||n.required),o.is("no-asterisk",i==null?void 0:i.hideRequiredAsterisk),(i==null?void 0:i.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[o.m("feedback")]:i==null?void 0:i.statusIcon}]),b=ee(()=>Qn(n.inlineMessage)?n.inlineMessage:(i==null?void 0:i.inlineMessage)||!1),w=ee(()=>[o.e("error"),{[o.em("error","inline")]:b.value}]),S=ee(()=>n.prop?Xe(n.prop)?n.prop:n.prop.join("."):""),C=ee(()=>!!(n.label||r.label)),T=ee(()=>n.for||l.value.length===1?l.value[0]:void 0),k=ee(()=>!T.value&&C.value),A=!!u,P=ee(()=>{const H=i==null?void 0:i.model;if(!(!H||!n.prop))return fd(H,n.prop).value}),z=ee(()=>{const{required:H}=n,Q=[];n.rules&&Q.push(...Sl(n.rules));const te=i==null?void 0:i.rules;if(te&&n.prop){const fe=fd(te,n.prop).value;fe&&Q.push(...Sl(fe))}if(H!==void 0){const fe=Q.map((me,_e)=>[me,_e]).filter(([me])=>Object.keys(me).includes("required"));if(fe.length>0)for(const[me,_e]of fe)me.required!==H&&(Q[_e]={...me,required:H});else Q.push({required:H})}return Q}),I=ee(()=>z.value.length>0),$=H=>z.value.filter(te=>!te.trigger||!H?!0:Array.isArray(te.trigger)?te.trigger.includes(H):te.trigger===H).map(({trigger:te,...fe})=>fe),O=ee(()=>z.value.some(H=>H.required)),Y=ee(()=>{var H;return c.value==="error"&&n.showMessage&&((H=i==null?void 0:i.showMessage)!=null?H:!0)}),re=ee(()=>`${n.label||""}${(i==null?void 0:i.labelSuffix)||""}`),q=H=>{h.value=H},J=H=>{var Q,te;const{errors:fe,fields:me}=H;(!fe||!me)&&console.error(H),q("error"),f.value=fe?(te=(Q=fe==null?void 0:fe[0])==null?void 0:Q.message)!=null?te:`${n.prop} is required`:"",i==null||i.emit("validate",n.prop,!1,f.value)},E=()=>{q("success"),i==null||i.emit("validate",n.prop,!0,"")},V=async H=>{const Q=S.value;return new ou({[Q]:H}).validate({[Q]:P.value},{firstFields:!0}).then(()=>(E(),!0)).catch(fe=>(J(fe),Promise.reject(fe)))},M=async(H,Q)=>{if(g)return!1;const te=He(Q);if(!I.value)return Q==null||Q(!1),!1;const fe=$(H);return fe.length===0?(Q==null||Q(!0),!0):(q("validating"),V(fe).then(()=>(Q==null||Q(!0),!0)).catch(me=>{const{fields:_e}=me;return Q==null||Q(!1,_e),te?!1:Promise.reject(_e)}))},R=()=>{q(""),f.value="",g=!1},G=async()=>{const H=i==null?void 0:i.model;if(!H||!n.prop)return;const Q=fd(H,n.prop);g=!0,Q.value=t0(d),await Ge(),R(),g=!1},D=H=>{l.value.includes(H)||l.value.push(H)},B=H=>{l.value=l.value.filter(Q=>Q!==H)};xe(()=>n.error,H=>{f.value=H||"",q(H?"error":"")},{immediate:!0}),xe(()=>n.validateStatus,H=>q(H||""));const Z=kt({...hr(n),$el:s,size:p,validateState:h,labelId:a,inputIds:l,isGroup:k,addInputId:D,removeInputId:B,resetField:G,clearValidate:R,validate:M});return vt(qa,Z),rt(()=>{n.prop&&(i==null||i.addField(Z),d=t0(P.value))}),tn(()=>{i==null||i.removeField(Z)}),t({size:p,validateMessage:f,validateState:h,validate:M,clearValidate:R,resetField:G}),(H,Q)=>{var te;return N(),oe("div",{ref_key:"formItemRef",ref:s,class:ce(_(y)),role:_(k)?"group":void 0,"aria-labelledby":_(k)?_(a):void 0},[se(_(RB),{"is-auto-width":_(m).width==="auto","update-all":((te=_(i))==null?void 0:te.labelWidth)==="auto"},{default:ue(()=>[_(C)?(N(),ve(xt(_(T)?"label":"div"),{key:0,id:_(a),for:_(T),class:ce(_(o).e("label")),style:je(_(m))},{default:ue(()=>[ke(H.$slots,"label",{label:_(re)},()=>[ze(Ee(_(re)),1)])]),_:3},8,["id","for","class","style"])):ge("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),ne("div",{class:ce(_(o).e("content")),style:je(_(v))},[ke(H.$slots,"default"),se(Vn,{name:`${_(o).namespace.value}-zoom-in-top`},{default:ue(()=>[_(Y)?ke(H.$slots,"error",{key:0,error:f.value},()=>[ne("div",{class:ce(_(w))},Ee(f.value),3)]):ge("v-if",!0)]),_:3},8,["name"])],6)],10,DB)}}});var I2=Re(BB,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);const Am=wt(QF,{FormItem:I2}),ea=vr(I2),$B=Be({urlList:{type:Oe(Array),default:()=>un([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:{type:Boolean,default:!1},teleported:{type:Boolean,default:!1},closeOnPressEscape:{type:Boolean,default:!0}}),NB={close:()=>!0,switch:e=>ut(e)},zB=["src"],jB={name:"ElImageViewer"},VB=be({...jB,props:$B,emits:NB,setup(e,{expose:t,emit:n}){const r=e,i={CONTAIN:{name:"contain",icon:dl(gO)},ORIGINAL:{name:"original",icon:dl(jO)}},u=R6()?"DOMMouseScroll":"mousewheel",{t:p}=xn(),o=Pe("image-viewer"),{nextZIndex:a}=ru(),l=ae(),h=ae([]),c=Ep(),f=ae(!0),s=ae(r.initialIndex),d=mn(i.CONTAIN),g=ae({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),m=ee(()=>{const{urlList:J}=r;return J.length<=1}),v=ee(()=>s.value===0),y=ee(()=>s.value===r.urlList.length-1),b=ee(()=>r.urlList[s.value]),w=ee(()=>{const{scale:J,deg:E,offsetX:V,offsetY:M,enableTransition:R}=g.value;let G=V/J,D=M/J;switch(E%360){case 90:case-270:[G,D]=[D,-G];break;case 180:case-180:[G,D]=[-G,-D];break;case 270:case-90:[G,D]=[-D,G];break}const B={transform:`scale(${J}) rotate(${E}deg) translate(${G}px, ${D}px)`,transition:R?"transform .3s":""};return d.value.name===i.CONTAIN.name&&(B.maxWidth=B.maxHeight="100%"),B}),S=ee(()=>ut(r.zIndex)?r.zIndex:a());function C(){k(),n("close")}function T(){const J=Zs(V=>{switch(V.code){case At.esc:r.closeOnPressEscape&&C();break;case At.space:$();break;case At.left:Y();break;case At.up:q("zoomIn");break;case At.right:re();break;case At.down:q("zoomOut");break}}),E=Zs(V=>{(V.wheelDelta?V.wheelDelta:-V.detail)>0?q("zoomIn",{zoomRate:1.2,enableTransition:!1}):q("zoomOut",{zoomRate:1.2,enableTransition:!1})});c.run(()=>{_t(document,"keydown",J),_t(document,u,E)})}function k(){c.stop()}function A(){f.value=!1}function P(J){f.value=!1,J.target.alt=p("el.image.error")}function z(J){if(f.value||J.button!==0||!l.value)return;g.value.enableTransition=!1;const{offsetX:E,offsetY:V}=g.value,M=J.pageX,R=J.pageY,G=Zs(B=>{g.value={...g.value,offsetX:E+B.pageX-M,offsetY:V+B.pageY-R}}),D=_t(document,"mousemove",G);_t(document,"mouseup",()=>{D()}),J.preventDefault()}function I(){g.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function $(){if(f.value)return;const J=Eh(i),E=Object.values(i),V=d.value.name,R=(E.findIndex(G=>G.name===V)+1)%J.length;d.value=i[J[R]],I()}function O(J){const E=r.urlList.length;s.value=(J+E)%E}function Y(){v.value&&!r.infinite||O(s.value-1)}function re(){y.value&&!r.infinite||O(s.value+1)}function q(J,E={}){if(f.value)return;const{zoomRate:V,rotateDeg:M,enableTransition:R}={zoomRate:1.4,rotateDeg:90,enableTransition:!0,...E};switch(J){case"zoomOut":g.value.scale>.2&&(g.value.scale=Number.parseFloat((g.value.scale/V).toFixed(3)));break;case"zoomIn":g.value.scale<7&&(g.value.scale=Number.parseFloat((g.value.scale*V).toFixed(3)));break;case"clockwise":g.value.deg+=M;break;case"anticlockwise":g.value.deg-=M;break}g.value.enableTransition=R}return xe(b,()=>{Ge(()=>{const J=h.value[0];J!=null&&J.complete||(f.value=!0)})}),xe(s,J=>{I(),n("switch",J)}),rt(()=>{var J,E;T(),(E=(J=l.value)==null?void 0:J.focus)==null||E.call(J)}),t({setActiveItem:O}),(J,E)=>(N(),ve(Np,{to:"body",disabled:!J.teleported},[se(Vn,{name:"viewer-fade",appear:""},{default:ue(()=>[ne("div",{ref_key:"wrapper",ref:l,tabindex:-1,class:ce(_(o).e("wrapper")),style:je({zIndex:_(S)})},[ne("div",{class:ce(_(o).e("mask")),onClick:E[0]||(E[0]=Qe(V=>J.hideOnClickModal&&C(),["self"]))},null,2),ge(" CLOSE "),ne("span",{class:ce([_(o).e("btn"),_(o).e("close")]),onClick:C},[se(_(De),null,{default:ue(()=>[se(_(Kr))]),_:1})],2),ge(" ARROW "),_(m)?ge("v-if",!0):(N(),oe($e,{key:0},[ne("span",{class:ce([_(o).e("btn"),_(o).e("prev"),_(o).is("disabled",!J.infinite&&_(v))]),onClick:Y},[se(_(De),null,{default:ue(()=>[se(_(_f))]),_:1})],2),ne("span",{class:ce([_(o).e("btn"),_(o).e("next"),_(o).is("disabled",!J.infinite&&_(y))]),onClick:re},[se(_(De),null,{default:ue(()=>[se(_(cs))]),_:1})],2)],64)),ge(" ACTIONS "),ne("div",{class:ce([_(o).e("btn"),_(o).e("actions")])},[ne("div",{class:ce(_(o).e("actions__inner"))},[se(_(De),{onClick:E[1]||(E[1]=V=>q("zoomOut"))},{default:ue(()=>[se(_(n3))]),_:1}),se(_(De),{onClick:E[2]||(E[2]=V=>q("zoomIn"))},{default:ue(()=>[se(_(z1))]),_:1}),ne("i",{class:ce(_(o).e("actions__divider"))},null,2),se(_(De),{onClick:$},{default:ue(()=>[(N(),ve(xt(_(d).icon)))]),_:1}),ne("i",{class:ce(_(o).e("actions__divider"))},null,2),se(_(De),{onClick:E[3]||(E[3]=V=>q("anticlockwise"))},{default:ue(()=>[se(_(F1))]),_:1}),se(_(De),{onClick:E[4]||(E[4]=V=>q("clockwise"))},{default:ue(()=>[se(_(B1))]),_:1})],2)],2),ge(" CANVAS "),ne("div",{class:ce(_(o).e("canvas"))},[(N(!0),oe($e,null,zt(J.urlList,(V,M)=>Tt((N(),oe("img",{ref_for:!0,ref:R=>h.value[M]=R,key:V,src:V,style:je(_(w)),class:ce(_(o).e("img")),onLoad:A,onError:P,onMousedown:z},null,46,zB)),[[Kt,M===s.value]])),128))],2),ke(J.$slots,"default")],6)]),_:3})],8,["disabled"]))}});var UB=Re(VB,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image-viewer/src/image-viewer.vue"]]);const HB=wt(UB),WB=Be({hideOnClickModal:{type:Boolean,default:!1},src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:{type:Boolean,default:!1},scrollContainer:{type:Oe([String,Object])},previewSrcList:{type:Oe(Array),default:()=>un([])},previewTeleported:{type:Boolean,default:!1},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0}}),GB={load:e=>e instanceof Event,error:e=>e instanceof Event,switch:e=>ut(e),close:()=>!0,show:()=>!0},YB=["src","loading"],KB={key:0},XB={name:"ElImage",inheritAttrs:!1},qB=be({...XB,props:WB,emits:GB,setup(e,{emit:t}){const n=e;let r="";const{t:i}=xn(),u=Pe("image"),p=D_(),o=Pw(),a=ae(),l=ae(!1),h=ae(!0),c=ae(!1),f=ae(),s=ae(),d=ht&&"loading"in HTMLImageElement.prototype;let g,m;const v=ee(()=>p.style),y=ee(()=>{const{fit:q}=n;return ht&&q?{objectFit:q}:{}}),b=ee(()=>{const{previewSrcList:q}=n;return Array.isArray(q)&&q.length>0}),w=ee(()=>{const{previewSrcList:q,initialIndex:J}=n;let E=J;return J>q.length-1&&(E=0),E}),S=ee(()=>n.loading==="eager"?!1:!d&&n.loading==="lazy"||n.lazy),C=()=>{!ht||(h.value=!0,l.value=!1,a.value=n.src)};function T(q){h.value=!1,l.value=!1,t("load",q)}function k(q){h.value=!1,l.value=!0,t("error",q)}function A(){y6(f.value,s.value)&&(C(),I())}const P=yw(A,200);async function z(){var q;if(!ht)return;await Ge();const{scrollContainer:J}=n;Ka(J)?s.value=J:Xe(J)&&J!==""?s.value=(q=document.querySelector(J))!=null?q:void 0:f.value&&(s.value=C6(f.value)),s.value&&(g=_t(s,"scroll",P),setTimeout(()=>A(),100))}function I(){!ht||!s.value||!P||(g==null||g(),s.value=void 0)}function $(q){if(!!q.ctrlKey){if(q.deltaY<0)return q.preventDefault(),!1;if(q.deltaY>0)return q.preventDefault(),!1}}function O(){!b.value||(m=_t("wheel",$,{passive:!1}),r=document.body.style.overflow,document.body.style.overflow="hidden",c.value=!0,t("show"))}function Y(){m==null||m(),document.body.style.overflow=r,c.value=!1,t("close")}function re(q){t("switch",q)}return xe(()=>n.src,()=>{S.value?(h.value=!0,l.value=!1,I(),z()):C()}),rt(()=>{S.value?z():C()}),(q,J)=>(N(),oe("div",{ref_key:"container",ref:f,class:ce([_(u).b(),q.$attrs.class]),style:je(_(v))},[a.value!==void 0&&!l.value?(N(),oe("img",$n({key:0},_(o),{src:a.value,loading:q.loading,style:_(y),class:[_(u).e("inner"),_(b)&&_(u).e("preview"),h.value&&_(u).is("loading")],onClick:O,onLoad:T,onError:k}),null,16,YB)):ge("v-if",!0),h.value||l.value?(N(),oe("div",{key:1,class:ce(_(u).e("wrapper"))},[h.value?ke(q.$slots,"placeholder",{key:0},()=>[ne("div",{class:ce(_(u).e("placeholder"))},null,2)]):l.value?ke(q.$slots,"error",{key:1},()=>[ne("div",{class:ce(_(u).e("error"))},Ee(_(i)("el.image.error")),3)]):ge("v-if",!0)],2)):ge("v-if",!0),_(b)?(N(),oe($e,{key:2},[c.value?(N(),ve(_(HB),{key:0,"z-index":q.zIndex,"initial-index":_(w),infinite:q.infinite,"url-list":q.previewSrcList,"hide-on-click-modal":q.hideOnClickModal,teleported:q.previewTeleported,"close-on-press-escape":q.closeOnPressEscape,onClose:Y,onSwitch:re},{default:ue(()=>[q.$slots.viewer?(N(),oe("div",KB,[ke(q.$slots,"viewer")])):ge("v-if",!0)]),_:3},8,["z-index","initial-index","infinite","url-list","hide-on-click-modal","teleported","close-on-press-escape"])):ge("v-if",!0)],64)):ge("v-if",!0)],6))}});var ZB=Re(qB,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image/src/image.vue"]]);const jo=wt(ZB),JB=Be({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.POSITIVE_INFINITY},min:{type:Number,default:Number.NEGATIVE_INFINITY},modelValue:Number,readonly:Boolean,disabled:Boolean,size:oa,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:e=>e===null||ut(e)||["min","max"].includes(e),default:null},name:String,label:String,placeholder:String,precision:{type:Number,validator:e=>e>=0&&e===Number.parseInt(`${e}`,10)},validateEvent:{type:Boolean,default:!0}}),QB={[Ir]:(e,t)=>e!==t,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[Xa]:e=>ut(e)||Hr(e),[gt]:e=>ut(e)||Hr(e)},e$=["aria-label","onKeydown"],t$=["aria-label","onKeydown"],n$={name:"ElInputNumber"},r$=be({...n$,props:JB,emits:QB,setup(e,{expose:t,emit:n}){const r=e,{t:i}=xn(),u=Pe("input-number"),p=ae(),o=kt({currentValue:r.modelValue,userInput:null}),{formItem:a}=pa(),l=ee(()=>ut(r.modelValue)&&y(r.modelValue,-1)<r.min),h=ee(()=>ut(r.modelValue)&&y(r.modelValue)>r.max),c=ee(()=>{const $=v(r.step);return xr(r.precision)?Math.max(v(r.modelValue),$):($>r.precision,r.precision)}),f=ee(()=>r.controls&&r.controlsPosition==="right"),s=yr(),d=lo(),g=ee(()=>{if(o.userInput!==null)return o.userInput;let $=o.currentValue;if(Hr($))return"";if(ut($)){if(Number.isNaN($))return"";xr(r.precision)||($=$.toFixed(r.precision))}return $}),m=($,O)=>{if(xr(O)&&(O=c.value),O===0)return Math.round($);let Y=String($);const re=Y.indexOf(".");if(re===-1||!Y.replace(".","").split("")[re+O])return $;const E=Y.length;return Y.charAt(E-1)==="5"&&(Y=`${Y.slice(0,Math.max(0,E-1))}6`),Number.parseFloat(Number(Y).toFixed(O))},v=$=>{if(Hr($))return 0;const O=$.toString(),Y=O.indexOf(".");let re=0;return Y!==-1&&(re=O.length-Y-1),re},y=($,O=1)=>ut($)?m($+r.step*O):o.currentValue,b=()=>{if(r.readonly||d.value||h.value)return;const $=r.modelValue||0,O=y($);C(O)},w=()=>{if(r.readonly||d.value||l.value)return;const $=r.modelValue||0,O=y($,-1);C(O)},S=($,O)=>{const{max:Y,min:re,step:q,precision:J,stepStrictly:E,valueOnClear:V}=r;let M=Number($);if(Hr($)||Number.isNaN(M))return null;if($===""){if(V===null)return null;M=Xe(V)?{min:re,max:Y}[V]:V}return E&&(M=m(Math.round(M/q)*q,J)),xr(J)||(M=m(M,J)),(M>Y||M<re)&&(M=M>Y?Y:re,O&&n("update:modelValue",M)),M},C=$=>{var O;const Y=o.currentValue,re=S($);Y!==re&&(o.userInput=null,n("update:modelValue",re),n("input",re),n("change",re,Y),r.validateEvent&&((O=a==null?void 0:a.validate)==null||O.call(a,"change").catch(q=>void 0)),o.currentValue=re)},T=$=>o.userInput=$,k=$=>{const O=$!==""?Number($):"";(ut(O)&&!Number.isNaN(O)||$==="")&&C(O),o.userInput=null},A=()=>{var $,O;(O=($=p.value)==null?void 0:$.focus)==null||O.call($)},P=()=>{var $,O;(O=($=p.value)==null?void 0:$.blur)==null||O.call($)},z=$=>{n("focus",$)},I=$=>{var O;n("blur",$),r.validateEvent&&((O=a==null?void 0:a.validate)==null||O.call(a,"blur").catch(Y=>void 0))};return xe(()=>r.modelValue,$=>{o.currentValue=S($,!0),o.userInput=null},{immediate:!0}),rt(()=>{var $;const{min:O,max:Y,modelValue:re}=r,q=($=p.value)==null?void 0:$.input;if(q.setAttribute("role","spinbutton"),Number.isFinite(Y)?q.setAttribute("aria-valuemax",String(Y)):q.removeAttribute("aria-valuemax"),Number.isFinite(O)?q.setAttribute("aria-valuemin",String(O)):q.removeAttribute("aria-valuemin"),q.setAttribute("aria-valuenow",String(o.currentValue)),q.setAttribute("aria-disabled",String(d.value)),!ut(re)&&re!=null){let J=Number(re);Number.isNaN(J)&&(J=null),n("update:modelValue",J)}}),ro(()=>{var $;const O=($=p.value)==null?void 0:$.input;O==null||O.setAttribute("aria-valuenow",`${o.currentValue}`)}),t({focus:A,blur:P}),($,O)=>(N(),oe("div",{class:ce([_(u).b(),_(u).m(_(s)),_(u).is("disabled",_(d)),_(u).is("without-controls",!$.controls),_(u).is("controls-right",_(f))]),onDragstart:O[0]||(O[0]=Qe(()=>{},["prevent"]))},[$.controls?Tt((N(),oe("span",{key:0,role:"button","aria-label":_(i)("el.inputNumber.decrease"),class:ce([_(u).e("decrease"),_(u).is("disabled",_(l))]),onKeydown:Bt(w,["enter"])},[se(_(De),null,{default:ue(()=>[_(f)?(N(),ve(_(Ko),{key:0})):(N(),ve(_(D1),{key:1}))]),_:1})],42,e$)),[[_(ry),w]]):ge("v-if",!0),$.controls?Tt((N(),oe("span",{key:1,role:"button","aria-label":_(i)("el.inputNumber.increase"),class:ce([_(u).e("increase"),_(u).is("disabled",_(h))]),onKeydown:Bt(b,["enter"])},[se(_(De),null,{default:ue(()=>[_(f)?(N(),ve(_(vh),{key:0})):(N(),ve(_(Sf),{key:1}))]),_:1})],42,t$)),[[_(ry),b]]):ge("v-if",!0),se(_(uo),{id:$.id,ref_key:"input",ref:p,type:"number",step:$.step,"model-value":_(g),placeholder:$.placeholder,readonly:$.readonly,disabled:_(d),size:_(s),max:$.max,min:$.min,name:$.name,label:$.label,"validate-event":!1,onKeydown:[Bt(Qe(b,["prevent"]),["up"]),Bt(Qe(w,["prevent"]),["down"])],onBlur:I,onFocus:z,onInput:T,onChange:k},null,8,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","label","onKeydown"])],34))}});var i$=Re(r$,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input-number/src/input-number.vue"]]);const Gc=wt(i$),a$=Be({type:{type:String,values:["primary","success","warning","info","danger","default"],default:"default"},underline:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},href:{type:String,default:""},icon:{type:Qt}}),o$={click:e=>e instanceof MouseEvent},s$=["href"],l$={name:"ElLink"},u$=be({...l$,props:a$,emits:o$,setup(e,{emit:t}){const n=e,r=Pe("link");function i(u){n.disabled||t("click",u)}return(u,p)=>(N(),oe("a",{class:ce([_(r).b(),_(r).m(u.type),_(r).is("disabled",u.disabled),_(r).is("underline",u.underline&&!u.disabled)]),href:u.disabled||!u.href?void 0:u.href,onClick:i},[u.icon?(N(),ve(_(De),{key:0},{default:ue(()=>[(N(),ve(xt(u.icon)))]),_:1})):ge("v-if",!0),u.$slots.default?(N(),oe("span",{key:1,class:ce(_(r).e("inner"))},[ke(u.$slots,"default")],2)):ge("v-if",!0),u.$slots.icon?ke(u.$slots,"icon",{key:2}):ge("v-if",!0)],10,s$))}});var c$=Re(u$,[["__file","/home/runner/work/element-plus/element-plus/packages/components/link/src/link.vue"]]);const f$=wt(c$);class d${constructor(t,n){this.parent=t,this.domNode=n,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(t){t===this.subMenuItems.length?t=0:t<0&&(t=this.subMenuItems.length-1),this.subMenuItems[t].focus(),this.subIndex=t}addListeners(){const t=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,n=>{n.addEventListener("keydown",r=>{let i=!1;switch(r.code){case At.down:{this.gotoSubIndex(this.subIndex+1),i=!0;break}case At.up:{this.gotoSubIndex(this.subIndex-1),i=!0;break}case At.tab:{oc(t,"mouseleave");break}case At.enter:case At.space:{i=!0,r.currentTarget.click();break}}return i&&(r.preventDefault(),r.stopPropagation()),!1})})}}class h${constructor(t,n){this.domNode=t,this.submenu=null,this.submenu=null,this.init(n)}init(t){this.domNode.setAttribute("tabindex","0");const n=this.domNode.querySelector(`.${t}-menu`);n&&(this.submenu=new d$(this,n)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{let n=!1;switch(t.code){case At.down:{oc(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),n=!0;break}case At.up:{oc(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),n=!0;break}case At.tab:{oc(t.currentTarget,"mouseleave");break}case At.enter:case At.space:{n=!0,t.currentTarget.click();break}}n&&t.preventDefault()})}}class p${constructor(t,n){this.domNode=t,this.init(n)}init(t){const n=this.domNode.childNodes;Array.from(n).forEach(r=>{r.nodeType===1&&new h$(r,t)})}}const m$=be({name:"ElMenuCollapseTransition",setup(){const e=Pe("menu");return{listeners:{onBeforeEnter:n=>n.style.opacity="0.2",onEnter(n,r){Rs(n,`${e.namespace.value}-opacity-transition`),n.style.opacity="1",r()},onAfterEnter(n){sc(n,`${e.namespace.value}-opacity-transition`),n.style.opacity=""},onBeforeLeave(n){n.dataset||(n.dataset={}),Oh(n,e.m("collapse"))?(sc(n,e.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),Rs(n,e.m("collapse"))):(Rs(n,e.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),sc(n,e.m("collapse"))),n.style.width=`${n.scrollWidth}px`,n.style.overflow="hidden"},onLeave(n){Rs(n,"horizontal-collapse-transition"),n.style.width=`${n.dataset.scrollWidth}px`}}}}});function g$(e,t,n,r,i,u){return N(),ve(Vn,$n({mode:"out-in"},e.listeners),{default:ue(()=>[ke(e.$slots,"default")]),_:3},16)}var v$=Re(m$,[["render",g$],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-collapse-transition.vue"]]);function M2(e,t){const n=ee(()=>{let i=e.parent;const u=[t.value];for(;i.type.name!=="ElMenu";)i.props.index&&u.unshift(i.props.index),i=i.parent;return u});return{parentMenu:ee(()=>{let i=e.parent;for(;i&&!["ElMenu","ElSubMenu"].includes(i.type.name);)i=i.parent;return i}),indexPath:n}}function y$(e){return ee(()=>{const n=e.backgroundColor;return n?new m2(n).shade(20).toString():""})}const L2=(e,t)=>{const n=Pe("menu");return ee(()=>n.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":y$(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},b$=Be({index:{type:String,required:!0},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},popperClass:String,disabled:Boolean,popperAppendToBody:{type:Boolean,default:void 0},popperOffset:{type:Number,default:6},expandCloseIcon:{type:Qt},expandOpenIcon:{type:Qt},collapseCloseIcon:{type:Qt},collapseOpenIcon:{type:Qt}}),wd="ElSubMenu";var Pm=be({name:wd,props:b$,setup(e,{slots:t,expose:n}){const r=Et(),{indexPath:i,parentMenu:u}=M2(r,ee(()=>e.index)),p=Pe("menu"),o=Pe("sub-menu"),a=qe("rootMenu");a||Mn(wd,"can not inject root menu");const l=qe(`subMenu:${u.value.uid}`);l||Mn(wd,"can not inject sub menu");const h=ae({}),c=ae({});let f;const s=ae(!1),d=ae(),g=ae(null),m=ee(()=>z.value==="horizontal"&&y.value?"bottom-start":"right-start"),v=ee(()=>z.value==="horizontal"&&y.value||z.value==="vertical"&&!a.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?C.value?e.expandOpenIcon:e.expandCloseIcon:Ko:e.collapseCloseIcon&&e.collapseOpenIcon?C.value?e.collapseOpenIcon:e.collapseCloseIcon:cs),y=ee(()=>l.level===0),b=ee(()=>e.popperAppendToBody===void 0?y.value:Boolean(e.popperAppendToBody)),w=ee(()=>a.props.collapse?`${p.namespace.value}-zoom-in-left`:`${p.namespace.value}-zoom-in-top`),S=ee(()=>z.value==="horizontal"&&y.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","left-start","bottom-start","bottom-end","top-start","top-end"]),C=ee(()=>a.openedMenus.includes(e.index)),T=ee(()=>{let E=!1;return Object.values(h.value).forEach(V=>{V.active&&(E=!0)}),Object.values(c.value).forEach(V=>{V.active&&(E=!0)}),E}),k=ee(()=>a.props.backgroundColor||""),A=ee(()=>a.props.activeTextColor||""),P=ee(()=>a.props.textColor||""),z=ee(()=>a.props.mode),I=kt({index:e.index,indexPath:i,active:T}),$=ee(()=>z.value!=="horizontal"?{color:P.value}:{borderBottomColor:T.value?a.props.activeTextColor?A.value:"":"transparent",color:T.value?A.value:P.value}),O=()=>{var E,V,M;return(M=(V=(E=g.value)==null?void 0:E.popperRef)==null?void 0:V.popperInstanceRef)==null?void 0:M.destroy()},Y=E=>{E||O()},re=()=>{a.props.menuTrigger==="hover"&&a.props.mode==="horizontal"||a.props.collapse&&a.props.mode==="vertical"||e.disabled||a.handleSubMenuClick({index:e.index,indexPath:i.value,active:T.value})},q=(E,V=e.showTimeout)=>{var M;E.type!=="focus"&&(a.props.menuTrigger==="click"&&a.props.mode==="horizontal"||!a.props.collapse&&a.props.mode==="vertical"||e.disabled||(l.mouseInChild.value=!0,f==null||f(),{stop:f}=xl(()=>{a.openMenu(e.index,i.value)},V),b.value&&((M=u.value.vnode.el)==null||M.dispatchEvent(new MouseEvent("mouseenter")))))},J=(E=!1)=>{var V,M;a.props.menuTrigger==="click"&&a.props.mode==="horizontal"||!a.props.collapse&&a.props.mode==="vertical"||(f==null||f(),l.mouseInChild.value=!1,{stop:f}=xl(()=>!s.value&&a.closeMenu(e.index,i.value),e.hideTimeout),b.value&&E&&((V=r.parent)==null?void 0:V.type.name)==="ElSubMenu"&&((M=l.handleMouseleave)==null||M.call(l,!0)))};xe(()=>a.props.collapse,E=>Y(Boolean(E)));{const E=M=>{c.value[M.index]=M},V=M=>{delete c.value[M.index]};vt(`subMenu:${r.uid}`,{addSubMenu:E,removeSubMenu:V,handleMouseleave:J,mouseInChild:s,level:l.level+1})}return n({opened:C}),rt(()=>{a.addSubMenu(I),l.addSubMenu(I)}),tn(()=>{l.removeSubMenu(I),a.removeSubMenu(I)}),()=>{var E;const V=[(E=t.title)==null?void 0:E.call(t),Ct(De,{class:o.e("icon-arrow"),style:{transform:C.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&a.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>Xe(v.value)?Ct(r.appContext.components[v.value]):Ct(v.value)})],M=L2(a.props,l.level+1),R=a.isMenuPopup?Ct(fn,{ref:g,visible:C.value,effect:"light",pure:!0,offset:e.popperOffset,showArrow:!1,persistent:!0,popperClass:e.popperClass,placement:m.value,teleported:b.value,fallbackPlacements:S.value,transition:w.value,gpuAcceleration:!1},{content:()=>{var G;return Ct("div",{class:[p.m(z.value),p.m("popup-container"),e.popperClass],onMouseenter:D=>q(D,100),onMouseleave:()=>J(!0),onFocus:D=>q(D,100)},[Ct("ul",{class:[p.b(),p.m("popup"),p.m(`popup-${m.value}`)],style:M.value},[(G=t.default)==null?void 0:G.call(t)])])},default:()=>Ct("div",{class:o.e("title"),style:[$.value,{backgroundColor:k.value}],onClick:re},V)}):Ct($e,{},[Ct("div",{class:o.e("title"),style:[$.value,{backgroundColor:k.value}],ref:d,onClick:re},V),Ct(T2,{},{default:()=>{var G;return Tt(Ct("ul",{role:"menu",class:[p.b(),p.m("inline")],style:M.value},[(G=t.default)==null?void 0:G.call(t)]),[[Kt,C.value]])}})]);return Ct("li",{class:[o.b(),o.is("active",T.value),o.is("opened",C.value),o.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:C.value,onMouseenter:q,onMouseleave:()=>J(!0),onFocus:q},[R])}}});const _$=Be({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:Oe(Array),default:()=>un([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0}}),Sd=e=>Array.isArray(e)&&e.every(t=>Xe(t)),w$={close:(e,t)=>Xe(e)&&Sd(t),open:(e,t)=>Xe(e)&&Sd(t),select:(e,t,n,r)=>Xe(e)&&Sd(t)&&it(n)&&(r===void 0||r instanceof Promise)};var S$=be({name:"ElMenu",props:_$,emits:w$,setup(e,{emit:t,slots:n,expose:r}){const i=Et(),u=i.appContext.config.globalProperties.$router,p=ae(),o=Pe("menu"),a=Pe("sub-menu"),l=ae(-1),h=ae(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),c=ae(e.defaultActive),f=ae({}),s=ae({}),d=ee(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),g=()=>{const P=c.value&&f.value[c.value];if(!P||e.mode==="horizontal"||e.collapse)return;P.indexPath.forEach(I=>{const $=s.value[I];$&&m(I,$.indexPath)})},m=(P,z)=>{h.value.includes(P)||(e.uniqueOpened&&(h.value=h.value.filter(I=>z.includes(I))),h.value.push(P),t("open",P,z))},v=(P,z)=>{const I=h.value.indexOf(P);I!==-1&&h.value.splice(I,1),t("close",P,z)},y=({index:P,indexPath:z})=>{h.value.includes(P)?v(P,z):m(P,z)},b=P=>{(e.mode==="horizontal"||e.collapse)&&(h.value=[]);const{index:z,indexPath:I}=P;if(!(z===void 0||I===void 0))if(e.router&&u){const $=P.route||z,O=u.push($).then(Y=>(Y||(c.value=z),Y));t("select",z,I,{index:z,indexPath:I,route:$},O)}else c.value=z,t("select",z,I,{index:z,indexPath:I})},w=P=>{const z=f.value,I=z[P]||c.value&&z[c.value]||z[e.defaultActive];I?c.value=I.index:c.value=P},S=()=>{var P,z;if(!p.value)return-1;const I=Array.from((z=(P=p.value)==null?void 0:P.childNodes)!=null?z:[]).filter(E=>E.nodeName!=="#text"||E.nodeValue),$=64,O=Number.parseInt(getComputedStyle(p.value).paddingLeft,10),Y=Number.parseInt(getComputedStyle(p.value).paddingRight,10),re=p.value.clientWidth-O-Y;let q=0,J=0;return I.forEach((E,V)=>{q+=E.offsetWidth||0,q<=re-$&&(J=V+1)}),J===I.length?-1:J},C=(P,z=33.34)=>{let I;return()=>{I&&clearTimeout(I),I=setTimeout(()=>{P()},z)}};let T=!0;const k=()=>{const P=()=>{l.value=-1,Ge(()=>{l.value=S()})};T?P():C(P)(),T=!1};xe(()=>e.defaultActive,P=>{f.value[P]||(c.value=""),w(P)}),xe(()=>e.collapse,P=>{P&&(h.value=[])}),xe(f.value,g);let A;io(()=>{e.mode==="horizontal"&&e.ellipsis?A=Jr(p,k).stop:A==null||A()});{const P=O=>{s.value[O.index]=O},z=O=>{delete s.value[O.index]};vt("rootMenu",kt({props:e,openedMenus:h,items:f,subMenus:s,activeIndex:c,isMenuPopup:d,addMenuItem:O=>{f.value[O.index]=O},removeMenuItem:O=>{delete f.value[O.index]},addSubMenu:P,removeSubMenu:z,openMenu:m,closeMenu:v,handleMenuItemClick:b,handleSubMenuClick:y})),vt(`subMenu:${i.uid}`,{addSubMenu:P,removeSubMenu:z,mouseInChild:ae(!1),level:0})}return rt(()=>{e.mode==="horizontal"&&new p$(i.vnode.el,o.namespace.value)}),r({open:z=>{const{indexPath:I}=s.value[z];I.forEach($=>m($,I))},close:v,handleResize:k}),()=>{var P,z;let I=(z=(P=n.default)==null?void 0:P.call(n))!=null?z:[];const $=[];if(e.mode==="horizontal"&&p.value){const re=Ow(I),q=l.value===-1?re:re.slice(0,l.value),J=l.value===-1?[]:re.slice(l.value);(J==null?void 0:J.length)&&e.ellipsis&&(I=q,$.push(Ct(Pm,{index:"sub-menu-more",class:a.e("hide-arrow")},{title:()=>Ct(De,{class:a.e("icon-more")},{default:()=>Ct(PO)}),default:()=>J})))}const O=L2(e,0),Y=Ct("ul",{key:String(e.collapse),role:"menubar",ref:p,style:O.value,class:{[o.b()]:!0,[o.m(e.mode)]:!0,[o.m("collapse")]:e.collapse}},[...I,...$]);return e.collapseTransition&&e.mode==="vertical"?Ct(v$,()=>Y):Y}}});const C$=Be({index:{type:Oe([String,null]),default:null},route:{type:Oe([String,Object])},disabled:Boolean}),x$={click:e=>Xe(e.index)&&Array.isArray(e.indexPath)},Cd="ElMenuItem",T$=be({name:Cd,components:{ElTooltip:fn},props:C$,emits:x$,setup(e,{emit:t}){const n=Et(),r=qe("rootMenu"),i=Pe("menu"),u=Pe("menu-item");r||Mn(Cd,"can not inject root menu");const{parentMenu:p,indexPath:o}=M2(n,tr(e,"index")),a=qe(`subMenu:${p.value.uid}`);a||Mn(Cd,"can not inject sub menu");const l=ee(()=>e.index===r.activeIndex),h=kt({index:e.index,indexPath:o,active:l}),c=()=>{e.disabled||(r.handleMenuItemClick({index:e.index,indexPath:o.value,route:e.route}),t("click",h))};return rt(()=>{a.addSubMenu(h),r.addMenuItem(h)}),tn(()=>{a.removeSubMenu(h),r.removeMenuItem(h)}),{Effect:R8,parentMenu:p,rootMenu:r,active:l,nsMenu:i,nsMenuItem:u,handleClick:c}}});function k$(e,t,n,r,i,u){const p=bt("el-tooltip");return N(),oe("li",{class:ce([e.nsMenuItem.b(),e.nsMenuItem.is("active",e.active),e.nsMenuItem.is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",onClick:t[0]||(t[0]=(...o)=>e.handleClick&&e.handleClick(...o))},[e.parentMenu.type.name==="ElMenu"&&e.rootMenu.props.collapse&&e.$slots.title?(N(),ve(p,{key:0,effect:e.Effect.DARK,placement:"right","fallback-placements":["left"],persistent:""},{content:ue(()=>[ke(e.$slots,"title")]),default:ue(()=>[ne("div",{class:ce(e.nsMenu.be("tooltip","trigger"))},[ke(e.$slots,"default")],2)]),_:3},8,["effect"])):(N(),oe($e,{key:1},[ke(e.$slots,"default"),ke(e.$slots,"title")],64))],2)}var R2=Re(T$,[["render",k$],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item.vue"]]);const E$={title:String},O$="ElMenuItemGroup",A$=be({name:O$,props:E$,setup(){return{ns:Pe("menu-item-group")}}});function P$(e,t,n,r,i,u){return N(),oe("li",{class:ce(e.ns.b())},[ne("div",{class:ce(e.ns.e("title"))},[e.$slots.title?ke(e.$slots,"title",{key:1}):(N(),oe($e,{key:0},[ze(Ee(e.title),1)],64))],2),ne("ul",null,[ke(e.$slots,"default")])],2)}var D2=Re(A$,[["render",P$],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item-group.vue"]]);const F2=wt(S$,{MenuItem:R2,MenuItemGroup:D2,SubMenu:Pm}),Im=vr(R2);vr(D2);vr(Pm);const I$=Be({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:Qt}}),M$={click:e=>e instanceof MouseEvent},L$=["disabled","aria-disabled"],R$={key:0},D$={name:"ElPaginationPrev"},F$=be({...D$,props:I$,emits:M$,setup(e){const t=e,n=ee(()=>t.disabled||t.currentPage<=1);return(r,i)=>(N(),oe("button",{type:"button",class:"btn-prev",disabled:_(n),"aria-disabled":_(n),onClick:i[0]||(i[0]=u=>r.$emit("click",u))},[r.prevText?(N(),oe("span",R$,Ee(r.prevText),1)):(N(),ve(_(De),{key:1},{default:ue(()=>[(N(),ve(xt(r.prevIcon)))]),_:1}))],8,L$))}});var B$=Re(F$,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/prev.vue"]]);const $$=Be({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:Qt}}),N$=["disabled","aria-disabled"],z$={key:0},j$={name:"ElPaginationNext"},V$=be({...j$,props:$$,emits:["click"],setup(e){const t=e,n=ee(()=>t.disabled||t.currentPage===t.pageCount||t.pageCount===0);return(r,i)=>(N(),oe("button",{type:"button",class:"btn-next",disabled:_(n),"aria-disabled":_(n),onClick:i[0]||(i[0]=u=>r.$emit("click",u))},[r.nextText?(N(),oe("span",z$,Ee(r.nextText),1)):(N(),ve(_(De),{key:1},{default:ue(()=>[(N(),ve(xt(r.nextIcon)))]),_:1}))],8,N$))}});var U$=Re(V$,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/next.vue"]]);const B2="ElSelectGroup",Mf="ElSelect";function H$(e,t){const n=qe(Mf),r=qe(B2,{disabled:!1}),i=ee(()=>Object.prototype.toString.call(e.value).toLowerCase()==="[object object]"),u=ee(()=>n.props.multiple?c(n.props.modelValue,e.value):f(e.value,n.props.modelValue)),p=ee(()=>{if(n.props.multiple){const g=n.props.modelValue||[];return!u.value&&g.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),o=ee(()=>e.label||(i.value?"":e.value)),a=ee(()=>e.value||e.label||""),l=ee(()=>e.disabled||t.groupDisabled||p.value),h=Et(),c=(g=[],m)=>{if(i.value){const v=n.props.valueKey;return g&&g.some(y=>at(Yn(y,v))===Yn(m,v))}else return g&&g.includes(m)},f=(g,m)=>{if(i.value){const{valueKey:v}=n.props;return Yn(g,v)===Yn(m,v)}else return g===m},s=()=>{!e.disabled&&!r.disabled&&(n.hoverIndex=n.optionsArray.indexOf(h.proxy))};xe(()=>o.value,()=>{!e.created&&!n.props.remote&&n.setSelected()}),xe(()=>e.value,(g,m)=>{const{remote:v,valueKey:y}=n.props;if(Object.is(g,m)||(n.onOptionDestroy(m,h.proxy),n.onOptionCreate(h.proxy)),!e.created&&!v){if(y&&typeof g=="object"&&typeof m=="object"&&g[y]===m[y])return;n.setSelected()}}),xe(()=>r.disabled,()=>{t.groupDisabled=r.disabled},{immediate:!0});const{queryChange:d}=at(n);return xe(d,g=>{const{query:m}=_(g),v=new RegExp(b6(m),"i");t.visible=v.test(o.value)||e.created,t.visible||n.filteredOptionsCount--}),{select:n,currentLabel:o,currentValue:a,itemSelected:u,isDisabled:l,hoverItem:s}}const W$=be({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},setup(e){const t=Pe("select"),n=kt({index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}),{currentLabel:r,itemSelected:i,isDisabled:u,select:p,hoverItem:o}=H$(e,n),{visible:a,hover:l}=hr(n),h=Et().proxy;p.onOptionCreate(h),tn(()=>{const f=h.value,{selected:s}=p,g=(p.props.multiple?s:[s]).some(m=>m.value===h.value);Ge(()=>{p.cachedOptions.get(f)===h&&!g&&p.cachedOptions.delete(f)}),p.onOptionDestroy(f,h)});function c(){e.disabled!==!0&&n.groupDisabled!==!0&&p.handleOptionSelect(h,!0)}return{ns:t,currentLabel:r,itemSelected:i,isDisabled:u,select:p,hoverItem:o,visible:a,hover:l,selectOptionClick:c,states:n}}});function G$(e,t,n,r,i,u){return Tt((N(),oe("li",{class:ce([e.ns.be("dropdown","item"),e.ns.is("disabled",e.isDisabled),{selected:e.itemSelected,hover:e.hover}]),onMouseenter:t[0]||(t[0]=(...p)=>e.hoverItem&&e.hoverItem(...p)),onClick:t[1]||(t[1]=Qe((...p)=>e.selectOptionClick&&e.selectOptionClick(...p),["stop"]))},[ke(e.$slots,"default",{},()=>[ne("span",null,Ee(e.currentLabel),1)])],34)),[[Kt,e.visible]])}var Mm=Re(W$,[["render",G$],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option.vue"]]);const Y$=be({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=qe(Mf),t=Pe("select"),n=ee(()=>e.props.popperClass),r=ee(()=>e.props.multiple),i=ee(()=>e.props.fitInputWidth),u=ae("");function p(){var o;u.value=`${(o=e.selectWrapper)==null?void 0:o.offsetWidth}px`}return rt(()=>{p(),Jr(e.selectWrapper,p)}),{ns:t,minWidth:u,popperClass:n,isMultiple:r,isFitInputWidth:i}}});function K$(e,t,n,r,i,u){return N(),oe("div",{class:ce([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:je({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[ke(e.$slots,"default")],6)}var X$=Re(Y$,[["render",K$],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select-dropdown.vue"]]);function q$(e){const{t}=xn();return kt({options:new Map,cachedOptions:new Map,createdLabel:null,createdSelected:!1,selected:e.multiple?[]:{},inputLength:20,inputWidth:0,optionsCount:0,filteredOptionsCount:0,visible:!1,softFocus:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,cachedPlaceHolder:"",currentPlaceholder:t("el.select.placeholder"),menuVisibleOnFocus:!1,isOnComposition:!1,isSilentBlur:!1,prefixWidth:11,tagInMultiLine:!1})}const Z$=(e,t,n)=>{const{t:r}=xn(),i=Pe("select"),u=ae(null),p=ae(null),o=ae(null),a=ae(null),l=ae(null),h=ae(null),c=ae(-1),f=mn({query:""}),s=mn(""),{form:d,formItem:g}=pa(),m=ee(()=>!e.filterable||e.multiple||!t.visible),v=ee(()=>e.disabled||(d==null?void 0:d.disabled)),y=ee(()=>{const ye=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:e.modelValue!==void 0&&e.modelValue!==null&&e.modelValue!=="";return e.clearable&&!v.value&&t.inputHovering&&ye}),b=ee(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),w=ee(()=>i.is("reverse",b.value&&t.visible&&e.suffixTransition)),S=ee(()=>e.remote?300:0),C=ee(()=>e.loading?e.loadingText||r("el.select.loading"):e.remote&&t.query===""&&t.options.size===0?!1:e.filterable&&t.query&&t.options.size>0&&t.filteredOptionsCount===0?e.noMatchText||r("el.select.noMatch"):t.options.size===0?e.noDataText||r("el.select.noData"):null),T=ee(()=>Array.from(t.options.values())),k=ee(()=>Array.from(t.cachedOptions.values())),A=ee(()=>{const ye=T.value.filter(Ce=>!Ce.created).some(Ce=>Ce.currentLabel===t.query);return e.filterable&&e.allowCreate&&t.query!==""&&!ye}),P=yr(),z=ee(()=>["small"].includes(P.value)?"small":"default"),I=ee({get(){return t.visible&&C.value!==!1},set(ye){t.visible=ye}});xe([()=>v.value,()=>P.value,()=>d==null?void 0:d.size],()=>{Ge(()=>{$()})}),xe(()=>e.placeholder,ye=>{t.cachedPlaceHolder=t.currentPlaceholder=ye}),xe(()=>e.modelValue,(ye,Ce)=>{e.multiple&&($(),ye&&ye.length>0||p.value&&t.query!==""?t.currentPlaceholder="":t.currentPlaceholder=t.cachedPlaceHolder,e.filterable&&!e.reserveKeyword&&(t.query="",O(t.query))),q(),e.filterable&&!e.multiple&&(t.inputLength=20),!xh(ye,Ce)&&e.validateEvent&&(g==null||g.validate("change").catch(Ie=>void 0))},{flush:"post",deep:!0}),xe(()=>t.visible,ye=>{var Ce,Ie,Me;ye?((Ie=(Ce=o.value)==null?void 0:Ce.updatePopper)==null||Ie.call(Ce),e.filterable&&(t.filteredOptionsCount=t.optionsCount,t.query=e.remote?"":t.selectedLabel,e.multiple?(Me=p.value)==null||Me.focus():t.selectedLabel&&(t.currentPlaceholder=`${t.selectedLabel}`,t.selectedLabel=""),O(t.query),!e.multiple&&!e.remote&&(f.value.query="",xs(f),xs(s)))):(p.value&&p.value.blur(),t.query="",t.previousQuery=null,t.selectedLabel="",t.inputLength=20,t.menuVisibleOnFocus=!1,E(),Ge(()=>{p.value&&p.value.value===""&&t.selected.length===0&&(t.currentPlaceholder=t.cachedPlaceHolder)}),e.multiple||(t.selected&&(e.filterable&&e.allowCreate&&t.createdSelected&&t.createdLabel?t.selectedLabel=t.createdLabel:t.selectedLabel=t.selected.currentLabel,e.filterable&&(t.query=t.selectedLabel)),e.filterable&&(t.currentPlaceholder=t.cachedPlaceHolder))),n.emit("visible-change",ye)}),xe(()=>t.options.entries(),()=>{var ye,Ce,Ie;if(!ht)return;(Ce=(ye=o.value)==null?void 0:ye.updatePopper)==null||Ce.call(ye),e.multiple&&$();const Me=((Ie=l.value)==null?void 0:Ie.querySelectorAll("input"))||[];Array.from(Me).includes(document.activeElement)||q(),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&re()},{flush:"post"}),xe(()=>t.hoverIndex,ye=>{typeof ye=="number"&&ye>-1?c.value=T.value[ye]||{}:c.value={},T.value.forEach(Ce=>{Ce.hover=c.value===Ce})});const $=()=>{e.collapseTags&&!e.filterable||Ge(()=>{var ye,Ce;if(!u.value)return;const Ie=u.value.$el.querySelector("input"),Me=a.value,mt=L6(P.value||(d==null?void 0:d.size));Ie.style.height=`${(t.selected.length===0?mt:Math.max(Me?Me.clientHeight+(Me.clientHeight>mt?6:0):0,mt))-2}px`,t.tagInMultiLine=Number.parseFloat(Ie.style.height)>=mt,t.visible&&C.value!==!1&&((Ce=(ye=o.value)==null?void 0:ye.updatePopper)==null||Ce.call(ye))})},O=async ye=>{if(!(t.previousQuery===ye||t.isOnComposition)){if(t.previousQuery===null&&(typeof e.filterMethod=="function"||typeof e.remoteMethod=="function")){t.previousQuery=ye;return}t.previousQuery=ye,Ge(()=>{var Ce,Ie;t.visible&&((Ie=(Ce=o.value)==null?void 0:Ce.updatePopper)==null||Ie.call(Ce))}),t.hoverIndex=-1,e.multiple&&e.filterable&&Ge(()=>{const Ce=p.value.value.length*15+20;t.inputLength=e.collapseTags?Math.min(50,Ce):Ce,Y(),$()}),e.remote&&typeof e.remoteMethod=="function"?(t.hoverIndex=-1,e.remoteMethod(ye)):typeof e.filterMethod=="function"?(e.filterMethod(ye),xs(s)):(t.filteredOptionsCount=t.optionsCount,f.value.query=ye,xs(f),xs(s)),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&(await Ge(),re())}},Y=()=>{t.currentPlaceholder!==""&&(t.currentPlaceholder=p.value.value?"":t.cachedPlaceHolder)},re=()=>{const ye=T.value.filter(Me=>Me.visible&&!Me.disabled&&!Me.states.groupDisabled),Ce=ye.find(Me=>Me.created),Ie=ye[0];t.hoverIndex=fe(T.value,Ce||Ie)},q=()=>{var ye;if(e.multiple)t.selectedLabel="";else{const Ie=J(e.modelValue);(ye=Ie.props)!=null&&ye.created?(t.createdLabel=Ie.props.value,t.createdSelected=!0):t.createdSelected=!1,t.selectedLabel=Ie.currentLabel,t.selected=Ie,e.filterable&&(t.query=t.selectedLabel);return}const Ce=[];Array.isArray(e.modelValue)&&e.modelValue.forEach(Ie=>{Ce.push(J(Ie))}),t.selected=Ce,Ge(()=>{$()})},J=ye=>{let Ce;const Ie=Ju(ye).toLowerCase()==="object",Me=Ju(ye).toLowerCase()==="null",mt=Ju(ye).toLowerCase()==="undefined";for(let Lt=t.cachedOptions.size-1;Lt>=0;Lt--){const Wt=k.value[Lt];if(Ie?Yn(Wt.value,e.valueKey)===Yn(ye,e.valueKey):Wt.value===ye){Ce={value:ye,currentLabel:Wt.currentLabel,isDisabled:Wt.isDisabled};break}}if(Ce)return Ce;const qt=Ie?ye.label:!Me&&!mt?ye:"",tt={value:ye,currentLabel:qt};return e.multiple&&(tt.hitState=!1),tt},E=()=>{setTimeout(()=>{const ye=e.valueKey;e.multiple?t.selected.length>0?t.hoverIndex=Math.min.apply(null,t.selected.map(Ce=>T.value.findIndex(Ie=>Yn(Ie,ye)===Yn(Ce,ye)))):t.hoverIndex=-1:t.hoverIndex=T.value.findIndex(Ce=>Te(Ce)===Te(t.selected))},300)},V=()=>{var ye,Ce;M(),(Ce=(ye=o.value)==null?void 0:ye.updatePopper)==null||Ce.call(ye),e.multiple&&!e.filterable&&$()},M=()=>{var ye;t.inputWidth=(ye=u.value)==null?void 0:ye.$el.getBoundingClientRect().width},R=()=>{e.filterable&&t.query!==t.selectedLabel&&(t.query=t.selectedLabel,O(t.query))},G=qo(()=>{R()},S.value),D=qo(ye=>{O(ye.target.value)},S.value),B=ye=>{xh(e.modelValue,ye)||n.emit(Ir,ye)},Z=ye=>{if(ye.target.value.length<=0&&!K()){const Ce=e.modelValue.slice();Ce.pop(),n.emit(gt,Ce),B(Ce)}ye.target.value.length===1&&e.modelValue.length===0&&(t.currentPlaceholder=t.cachedPlaceHolder)},H=(ye,Ce)=>{const Ie=t.selected.indexOf(Ce);if(Ie>-1&&!v.value){const Me=e.modelValue.slice();Me.splice(Ie,1),n.emit(gt,Me),B(Me),n.emit("remove-tag",Ce.value)}ye.stopPropagation()},Q=ye=>{ye.stopPropagation();const Ce=e.multiple?[]:"";if(typeof Ce!="string")for(const Ie of t.selected)Ie.isDisabled&&Ce.push(Ie.value);n.emit(gt,Ce),B(Ce),t.hoverIndex=-1,t.visible=!1,n.emit("clear")},te=(ye,Ce)=>{var Ie;if(e.multiple){const Me=(e.modelValue||[]).slice(),mt=fe(Me,ye.value);mt>-1?Me.splice(mt,1):(e.multipleLimit<=0||Me.length<e.multipleLimit)&&Me.push(ye.value),n.emit(gt,Me),B(Me),ye.created&&(t.query="",O(""),t.inputLength=20),e.filterable&&((Ie=p.value)==null||Ie.focus())}else n.emit(gt,ye.value),B(ye.value),t.visible=!1;t.isSilentBlur=Ce,me(),!t.visible&&Ge(()=>{_e(ye)})},fe=(ye=[],Ce)=>{if(!it(Ce))return ye.indexOf(Ce);const Ie=e.valueKey;let Me=-1;return ye.some((mt,qt)=>at(Yn(mt,Ie))===Yn(Ce,Ie)?(Me=qt,!0):!1),Me},me=()=>{t.softFocus=!0;const ye=p.value||u.value;ye&&(ye==null||ye.focus())},_e=ye=>{var Ce,Ie,Me,mt,qt;const tt=Array.isArray(ye)?ye[0]:ye;let Lt=null;if(tt!=null&&tt.value){const Wt=T.value.filter(rr=>rr.value===tt.value);Wt.length>0&&(Lt=Wt[0].$el)}if(o.value&&Lt){const Wt=(mt=(Me=(Ie=(Ce=o.value)==null?void 0:Ce.popperRef)==null?void 0:Ie.contentRef)==null?void 0:Me.querySelector)==null?void 0:mt.call(Me,`.${i.be("dropdown","wrap")}`);Wt&&T6(Wt,Lt)}(qt=h.value)==null||qt.handleScroll()},j=ye=>{t.optionsCount++,t.filteredOptionsCount++,t.options.set(ye.value,ye),t.cachedOptions.set(ye.value,ye)},x=(ye,Ce)=>{t.options.get(ye)===Ce&&(t.optionsCount--,t.filteredOptionsCount--,t.options.delete(ye))},U=ye=>{ye.code!==At.backspace&&K(!1),t.inputLength=p.value.value.length*15+20,$()},K=ye=>{if(!Array.isArray(t.selected))return;const Ce=t.selected[t.selected.length-1];if(!!Ce)return ye===!0||ye===!1?(Ce.hitState=ye,ye):(Ce.hitState=!Ce.hitState,Ce.hitState)},L=ye=>{const Ce=ye.target.value;if(ye.type==="compositionend")t.isOnComposition=!1,Ge(()=>O(Ce));else{const Ie=Ce[Ce.length-1]||"";t.isOnComposition=!Aw(Ie)}},F=()=>{Ge(()=>_e(t.selected))},X=ye=>{t.softFocus?t.softFocus=!1:((e.automaticDropdown||e.filterable)&&(e.filterable&&!t.visible&&(t.menuVisibleOnFocus=!0),t.visible=!0),n.emit("focus",ye))},de=()=>{var ye;t.visible=!1,(ye=u.value)==null||ye.blur()},le=ye=>{Ge(()=>{t.isSilentBlur?t.isSilentBlur=!1:n.emit("blur",ye)}),t.softFocus=!1},W=ye=>{Q(ye)},pe=()=>{t.visible=!1},ie=ye=>{t.visible&&(ye.preventDefault(),ye.stopPropagation(),t.visible=!1)},he=()=>{var ye;v.value||(t.menuVisibleOnFocus?t.menuVisibleOnFocus=!1:t.visible=!t.visible,t.visible&&((ye=p.value||u.value)==null||ye.focus()))},we=()=>{t.visible?T.value[t.hoverIndex]&&te(T.value[t.hoverIndex],void 0):he()},Te=ye=>it(ye.value)?Yn(ye.value,e.valueKey):ye.value,Ae=ee(()=>T.value.filter(ye=>ye.visible).every(ye=>ye.disabled)),Le=ye=>{if(!t.visible){t.visible=!0;return}if(!(t.options.size===0||t.filteredOptionsCount===0)&&!t.isOnComposition&&!Ae.value){ye==="next"?(t.hoverIndex++,t.hoverIndex===t.options.size&&(t.hoverIndex=0)):ye==="prev"&&(t.hoverIndex--,t.hoverIndex<0&&(t.hoverIndex=t.options.size-1));const Ce=T.value[t.hoverIndex];(Ce.disabled===!0||Ce.states.groupDisabled===!0||!Ce.visible)&&Le(ye),Ge(()=>_e(c.value))}};return{optionsArray:T,selectSize:P,handleResize:V,debouncedOnInputChange:G,debouncedQueryChange:D,deletePrevTag:Z,deleteTag:H,deleteSelected:Q,handleOptionSelect:te,scrollToOption:_e,readonly:m,resetInputHeight:$,showClose:y,iconComponent:b,iconReverse:w,showNewOption:A,collapseTagSize:z,setSelected:q,managePlaceholder:Y,selectDisabled:v,emptyText:C,toggleLastOptionHitState:K,resetInputState:U,handleComposition:L,onOptionCreate:j,onOptionDestroy:x,handleMenuEnter:F,handleFocus:X,blur:de,handleBlur:le,handleClearClick:W,handleClose:pe,handleKeydownEscape:ie,toggleMenu:he,selectOption:we,getValueKey:Te,navigateOptions:Le,dropMenuVisible:I,queryChange:f,groupQueryChange:s,reference:u,input:p,tooltipRef:o,tags:a,selectWrapper:l,scrollbar:h}},gy="ElSelect",J$=be({name:gy,componentName:gy,components:{ElInput:uo,ElSelectMenu:X$,ElOption:Mm,ElTag:YR,ElScrollbar:Xw,ElTooltip:fn,ElIcon:De},directives:{ClickOutside:v2},props:{name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:{type:String,validator:Of},effect:{type:String,default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},teleported:lr.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:Qt,default:wf},fitInputWidth:{type:Boolean,default:!1},suffixIcon:{type:Qt,default:Ko},tagType:{...x2.type,default:"info"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:{type:Boolean,default:!1},suffixTransition:{type:Boolean,default:!0},placement:{type:String,values:hs,default:"bottom-start"}},emits:[gt,Ir,"remove-tag","clear","visible-change","focus","blur"],setup(e,t){const n=Pe("select"),r=Pe("input"),{t:i}=xn(),u=q$(e),{optionsArray:p,selectSize:o,readonly:a,handleResize:l,collapseTagSize:h,debouncedOnInputChange:c,debouncedQueryChange:f,deletePrevTag:s,deleteTag:d,deleteSelected:g,handleOptionSelect:m,scrollToOption:v,setSelected:y,resetInputHeight:b,managePlaceholder:w,showClose:S,selectDisabled:C,iconComponent:T,iconReverse:k,showNewOption:A,emptyText:P,toggleLastOptionHitState:z,resetInputState:I,handleComposition:$,onOptionCreate:O,onOptionDestroy:Y,handleMenuEnter:re,handleFocus:q,blur:J,handleBlur:E,handleClearClick:V,handleClose:M,handleKeydownEscape:R,toggleMenu:G,selectOption:D,getValueKey:B,navigateOptions:Z,dropMenuVisible:H,reference:Q,input:te,tooltipRef:fe,tags:me,selectWrapper:_e,scrollbar:j,queryChange:x,groupQueryChange:U}=Z$(e,u,t),{focus:K}=N6(Q),{inputWidth:L,selected:F,inputLength:X,filteredOptionsCount:de,visible:le,softFocus:W,selectedLabel:pe,hoverIndex:ie,query:he,inputHovering:we,currentPlaceholder:Te,menuVisibleOnFocus:Ae,isOnComposition:Le,isSilentBlur:ye,options:Ce,cachedOptions:Ie,optionsCount:Me,prefixWidth:mt,tagInMultiLine:qt}=hr(u),tt=ee(()=>{const Tn=[n.b()],ir=_(o);return ir&&Tn.push(n.m(ir)),e.disabled&&Tn.push(n.m("disabled")),Tn}),Lt=ee(()=>({maxWidth:`${_(L)-32}px`,width:"100%"})),Wt=ee(()=>({maxWidth:`${_(L)>123?_(L)-123:_(L)-75}px`}));vt(Mf,kt({props:e,options:Ce,optionsArray:p,cachedOptions:Ie,optionsCount:Me,filteredOptionsCount:de,hoverIndex:ie,handleOptionSelect:m,onOptionCreate:O,onOptionDestroy:Y,selectWrapper:_e,selected:F,setSelected:y,queryChange:x,groupQueryChange:U})),rt(()=>{u.cachedPlaceHolder=Te.value=e.placeholder||i("el.select.placeholder"),e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(Te.value=""),Jr(_e,l),e.remote&&e.multiple&&b(),Ge(()=>{const Tn=Q.value&&Q.value.$el;if(!!Tn&&(L.value=Tn.getBoundingClientRect().width,t.slots.prefix)){const ir=Tn.querySelector(`.${r.e("prefix")}`);mt.value=Math.max(ir.getBoundingClientRect().width+5,30)}}),y()}),e.multiple&&!Array.isArray(e.modelValue)&&t.emit(gt,[]),!e.multiple&&Array.isArray(e.modelValue)&&t.emit(gt,"");const rr=ee(()=>{var Tn,ir;return(ir=(Tn=fe.value)==null?void 0:Tn.popperRef)==null?void 0:ir.contentRef});return{tagInMultiLine:qt,prefixWidth:mt,selectSize:o,readonly:a,handleResize:l,collapseTagSize:h,debouncedOnInputChange:c,debouncedQueryChange:f,deletePrevTag:s,deleteTag:d,deleteSelected:g,handleOptionSelect:m,scrollToOption:v,inputWidth:L,selected:F,inputLength:X,filteredOptionsCount:de,visible:le,softFocus:W,selectedLabel:pe,hoverIndex:ie,query:he,inputHovering:we,currentPlaceholder:Te,menuVisibleOnFocus:Ae,isOnComposition:Le,isSilentBlur:ye,options:Ce,resetInputHeight:b,managePlaceholder:w,showClose:S,selectDisabled:C,iconComponent:T,iconReverse:k,showNewOption:A,emptyText:P,toggleLastOptionHitState:z,resetInputState:I,handleComposition:$,handleMenuEnter:re,handleFocus:q,blur:J,handleBlur:E,handleClearClick:V,handleClose:M,handleKeydownEscape:R,toggleMenu:G,selectOption:D,getValueKey:B,navigateOptions:Z,dropMenuVisible:H,focus:K,reference:Q,input:te,tooltipRef:fe,popperPaneRef:rr,tags:me,selectWrapper:_e,scrollbar:j,wrapperKls:tt,selectTagsStyle:Lt,nsSelect:n,tagTextStyle:Wt}}}),Q$=["disabled","autocomplete"],eN={style:{height:"100%",display:"flex","justify-content":"center","align-items":"center"}};function tN(e,t,n,r,i,u){const p=bt("el-tag"),o=bt("el-tooltip"),a=bt("el-icon"),l=bt("el-input"),h=bt("el-option"),c=bt("el-scrollbar"),f=bt("el-select-menu"),s=L_("click-outside");return Tt((N(),oe("div",{ref:"selectWrapper",class:ce(e.wrapperKls),onClick:t[22]||(t[22]=Qe((...d)=>e.toggleMenu&&e.toggleMenu(...d),["stop"]))},[se(o,{ref:"tooltipRef",visible:e.dropMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"fallback-placements":["bottom-start","top-start","right","left"],effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,onShow:e.handleMenuEnter},{default:ue(()=>[ne("div",{class:"select-trigger",onMouseenter:t[20]||(t[20]=d=>e.inputHovering=!0),onMouseleave:t[21]||(t[21]=d=>e.inputHovering=!1)},[e.multiple?(N(),oe("div",{key:0,ref:"tags",class:ce(e.nsSelect.e("tags")),style:je(e.selectTagsStyle)},[e.collapseTags&&e.selected.length?(N(),oe("span",{key:0,class:ce([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}])},[se(p,{closable:!e.selectDisabled&&!e.selected[0].isDisabled,size:e.collapseTagSize,hit:e.selected[0].hitState,type:e.tagType,"disable-transitions":"",onClose:t[0]||(t[0]=d=>e.deleteTag(d,e.selected[0]))},{default:ue(()=>[ne("span",{class:ce(e.nsSelect.e("tags-text")),style:je(e.tagTextStyle)},Ee(e.selected[0].currentLabel),7)]),_:1},8,["closable","size","hit","type"]),e.selected.length>1?(N(),ve(p,{key:0,closable:!1,size:e.collapseTagSize,type:e.tagType,"disable-transitions":""},{default:ue(()=>[e.collapseTagsTooltip?(N(),ve(o,{key:0,disabled:e.dropMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:ue(()=>[ne("span",{class:ce(e.nsSelect.e("tags-text"))},"+ "+Ee(e.selected.length-1),3)]),content:ue(()=>[ne("div",{class:ce(e.nsSelect.e("collapse-tags"))},[(N(!0),oe($e,null,zt(e.selected.slice(1),(d,g)=>(N(),oe("div",{key:g,class:ce(e.nsSelect.e("collapse-tag"))},[(N(),ve(p,{key:e.getValueKey(d),class:"in-tooltip",closable:!e.selectDisabled&&!d.isDisabled,size:e.collapseTagSize,hit:d.hitState,type:e.tagType,"disable-transitions":"",style:{margin:"2px"},onClose:m=>e.deleteTag(m,d)},{default:ue(()=>[ne("span",{class:ce(e.nsSelect.e("tags-text")),style:je({maxWidth:e.inputWidth-75+"px"})},Ee(d.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))],2))),128))],2)]),_:1},8,["disabled","effect","teleported"])):(N(),oe("span",{key:1,class:ce(e.nsSelect.e("tags-text"))},"+ "+Ee(e.selected.length-1),3))]),_:1},8,["size","type"])):ge("v-if",!0)],2)):ge("v-if",!0),ge(" <div> "),e.collapseTags?ge("v-if",!0):(N(),ve(Vn,{key:1,onAfterLeave:e.resetInputHeight},{default:ue(()=>[ne("span",{class:ce([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}])},[(N(!0),oe($e,null,zt(e.selected,d=>(N(),ve(p,{key:e.getValueKey(d),closable:!e.selectDisabled&&!d.isDisabled,size:e.collapseTagSize,hit:d.hitState,type:e.tagType,"disable-transitions":"",onClose:g=>e.deleteTag(g,d)},{default:ue(()=>[ne("span",{class:ce(e.nsSelect.e("tags-text")),style:je({maxWidth:e.inputWidth-75+"px"})},Ee(d.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128))],2)]),_:1},8,["onAfterLeave"])),ge(" </div> "),e.filterable?Tt((N(),oe("input",{key:2,ref:"input","onUpdate:modelValue":t[1]||(t[1]=d=>e.query=d),type:"text",class:ce([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:je({marginLeft:e.prefixWidth&&!e.selected.length||e.tagInMultiLine?`${e.prefixWidth}px`:"",flexGrow:1,width:`${e.inputLength/(e.inputWidth-32)}%`,maxWidth:`${e.inputWidth-42}px`}),onFocus:t[2]||(t[2]=(...d)=>e.handleFocus&&e.handleFocus(...d)),onBlur:t[3]||(t[3]=(...d)=>e.handleBlur&&e.handleBlur(...d)),onKeyup:t[4]||(t[4]=(...d)=>e.managePlaceholder&&e.managePlaceholder(...d)),onKeydown:[t[5]||(t[5]=(...d)=>e.resetInputState&&e.resetInputState(...d)),t[6]||(t[6]=Bt(Qe(d=>e.navigateOptions("next"),["prevent"]),["down"])),t[7]||(t[7]=Bt(Qe(d=>e.navigateOptions("prev"),["prevent"]),["up"])),t[8]||(t[8]=Bt((...d)=>e.handleKeydownEscape&&e.handleKeydownEscape(...d),["esc"])),t[9]||(t[9]=Bt(Qe((...d)=>e.selectOption&&e.selectOption(...d),["stop","prevent"]),["enter"])),t[10]||(t[10]=Bt((...d)=>e.deletePrevTag&&e.deletePrevTag(...d),["delete"])),t[11]||(t[11]=Bt(d=>e.visible=!1,["tab"]))],onCompositionstart:t[12]||(t[12]=(...d)=>e.handleComposition&&e.handleComposition(...d)),onCompositionupdate:t[13]||(t[13]=(...d)=>e.handleComposition&&e.handleComposition(...d)),onCompositionend:t[14]||(t[14]=(...d)=>e.handleComposition&&e.handleComposition(...d)),onInput:t[15]||(t[15]=(...d)=>e.debouncedQueryChange&&e.debouncedQueryChange(...d))},null,46,Q$)),[[xk,e.query]]):ge("v-if",!0)],6)):ge("v-if",!0),se(l,{id:e.id,ref:"reference",modelValue:e.selectedLabel,"onUpdate:modelValue":t[16]||(t[16]=d=>e.selectedLabel=d),type:"text",placeholder:e.currentPlaceholder,name:e.name,autocomplete:e.autocomplete,size:e.selectSize,disabled:e.selectDisabled,readonly:e.readonly,"validate-event":!1,class:ce([e.nsSelect.is("focus",e.visible)]),tabindex:e.multiple&&e.filterable?-1:void 0,onFocus:e.handleFocus,onBlur:e.handleBlur,onInput:e.debouncedOnInputChange,onPaste:e.debouncedOnInputChange,onCompositionstart:e.handleComposition,onCompositionupdate:e.handleComposition,onCompositionend:e.handleComposition,onKeydown:[t[17]||(t[17]=Bt(Qe(d=>e.navigateOptions("next"),["stop","prevent"]),["down"])),t[18]||(t[18]=Bt(Qe(d=>e.navigateOptions("prev"),["stop","prevent"]),["up"])),Bt(Qe(e.selectOption,["stop","prevent"]),["enter"]),Bt(e.handleKeydownEscape,["esc"]),t[19]||(t[19]=Bt(d=>e.visible=!1,["tab"]))]},Pc({suffix:ue(()=>[e.iconComponent&&!e.showClose?(N(),ve(a,{key:0,class:ce([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:ue(()=>[(N(),ve(xt(e.iconComponent)))]),_:1},8,["class"])):ge("v-if",!0),e.showClose&&e.clearIcon?(N(),ve(a,{key:1,class:ce([e.nsSelect.e("caret"),e.nsSelect.e("icon")]),onClick:e.handleClearClick},{default:ue(()=>[(N(),ve(xt(e.clearIcon)))]),_:1},8,["class","onClick"])):ge("v-if",!0)]),_:2},[e.$slots.prefix?{name:"prefix",fn:ue(()=>[ne("div",eN,[ke(e.$slots,"prefix")])])}:void 0]),1032,["id","modelValue","placeholder","name","autocomplete","size","disabled","readonly","class","tabindex","onFocus","onBlur","onInput","onPaste","onCompositionstart","onCompositionupdate","onCompositionend","onKeydown"])],32)]),content:ue(()=>[se(f,null,{default:ue(()=>[Tt(se(c,{ref:"scrollbar",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:ce([e.nsSelect.is("empty",!e.allowCreate&&Boolean(e.query)&&e.filteredOptionsCount===0)])},{default:ue(()=>[e.showNewOption?(N(),ve(h,{key:0,value:e.query,created:!0},null,8,["value"])):ge("v-if",!0),ke(e.$slots,"default")]),_:3},8,["wrap-class","view-class","class"]),[[Kt,e.options.size>0&&!e.loading]]),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&e.options.size===0)?(N(),oe($e,{key:0},[e.$slots.empty?ke(e.$slots,"empty",{key:0}):(N(),oe("p",{key:1,class:ce(e.nsSelect.be("dropdown","empty"))},Ee(e.emptyText),3))],64)):ge("v-if",!0)]),_:3})]),_:3},8,["visible","placement","teleported","popper-class","effect","transition","persistent","onShow"])],2)),[[s,e.handleClose,e.popperPaneRef]])}var nN=Re(J$,[["render",tN],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select.vue"]]);const rN=be({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:{type:Boolean,default:!1}},setup(e){const t=Pe("select"),n=ae(!0),r=Et(),i=ae([]);vt(B2,kt({...hr(e)}));const u=qe(Mf);rt(()=>{i.value=p(r.subTree)});const p=a=>{const l=[];return Array.isArray(a.children)&&a.children.forEach(h=>{var c;h.type&&h.type.name==="ElOption"&&h.component&&h.component.proxy?l.push(h.component.proxy):(c=h.children)!=null&&c.length&&l.push(...p(h))}),l},{groupQueryChange:o}=at(u);return xe(o,()=>{n.value=i.value.some(a=>a.visible===!0)},{flush:"post"}),{visible:n,ns:t}}});function iN(e,t,n,r,i,u){return Tt((N(),oe("ul",{class:ce(e.ns.be("group","wrap"))},[ne("li",{class:ce(e.ns.be("group","title"))},Ee(e.label),3),ne("li",null,[ne("ul",{class:ce(e.ns.b("group"))},[ke(e.$slots,"default")],2)])],2)),[[Kt,e.visible]])}var $2=Re(rN,[["render",iN],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option-group.vue"]]);const Lm=wt(nN,{Option:Mm,OptionGroup:$2}),Yc=vr(Mm);vr($2);const Rm=()=>qe(Fw,{}),aN=Be({pageSize:{type:Number,required:!0},pageSizes:{type:Oe(Array),default:()=>un([10,20,30,40,50,100])},popperClass:{type:String},disabled:Boolean,size:{type:String,default:"default"}}),oN={name:"ElPaginationSizes"},sN=be({...oN,props:aN,emits:["page-size-change"],setup(e,{emit:t}){const n=e,{t:r}=xn(),i=Pe("pagination"),u=Rm(),p=ae(n.pageSize);xe(()=>n.pageSizes,(l,h)=>{if(!xh(l,h)&&Array.isArray(l)){const c=l.includes(n.pageSize)?n.pageSize:n.pageSizes[0];t("page-size-change",c)}}),xe(()=>n.pageSize,l=>{p.value=l});const o=ee(()=>n.pageSizes);function a(l){var h;l!==p.value&&(p.value=l,(h=u.handleSizeChange)==null||h.call(u,Number(l)))}return(l,h)=>(N(),oe("span",{class:ce(_(i).e("sizes"))},[se(_(Lm),{"model-value":p.value,disabled:l.disabled,"popper-class":l.popperClass,size:l.size,"validate-event":!1,onChange:a},{default:ue(()=>[(N(!0),oe($e,null,zt(_(o),c=>(N(),ve(_(Yc),{key:c,value:c,label:c+_(r)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","size"])],2))}});var lN=Re(sN,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/sizes.vue"]]);const uN=["disabled"],cN={name:"ElPaginationJumper"},fN=be({...cN,setup(e){const{t}=xn(),n=Pe("pagination"),{pageCount:r,disabled:i,currentPage:u,changeEvent:p}=Rm(),o=ae(),a=ee(()=>{var c;return(c=o.value)!=null?c:u==null?void 0:u.value});function l(c){o.value=+c}function h(c){c=Math.trunc(+c),p==null||p(+c),o.value=void 0}return(c,f)=>(N(),oe("span",{class:ce(_(n).e("jump")),disabled:_(i)},[ze(Ee(_(t)("el.pagination.goto"))+" ",1),se(_(uo),{size:"small",class:ce([_(n).e("editor"),_(n).is("in-pagination")]),min:1,max:_(r),disabled:_(i),"model-value":_(a),"validate-event":!1,type:"number","onUpdate:modelValue":l,onChange:h},null,8,["class","max","disabled","model-value"]),ze(" "+Ee(_(t)("el.pagination.pageClassifier")),1)],10,uN))}});var dN=Re(fN,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/jumper.vue"]]);const hN=Be({total:{type:Number,default:1e3}}),pN=["disabled"],mN={name:"ElPaginationTotal"},gN=be({...mN,props:hN,setup(e){const{t}=xn(),n=Pe("pagination"),{disabled:r}=Rm();return(i,u)=>(N(),oe("span",{class:ce(_(n).e("total")),disabled:_(r)},Ee(_(t)("el.pagination.total",{total:i.total})),11,pN))}});var vN=Re(gN,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/total.vue"]]);const yN=Be({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),bN=["onKeyup"],_N=["aria-current","tabindex"],wN=["tabindex"],SN=["aria-current","tabindex"],CN=["tabindex"],xN=["aria-current","tabindex"],TN={name:"ElPaginationPager"},kN=be({...TN,props:yN,emits:["change"],setup(e,{emit:t}){const n=e,r=Pe("pager"),i=Pe("icon"),u=ae(!1),p=ae(!1),o=ae(!1),a=ae(!1),l=ae(!1),h=ae(!1),c=ee(()=>{const v=n.pagerCount,y=(v-1)/2,b=Number(n.currentPage),w=Number(n.pageCount);let S=!1,C=!1;w>v&&(b>v-y&&(S=!0),b<w-y&&(C=!0));const T=[];if(S&&!C){const k=w-(v-2);for(let A=k;A<w;A++)T.push(A)}else if(!S&&C)for(let k=2;k<v;k++)T.push(k);else if(S&&C){const k=Math.floor(v/2)-1;for(let A=b-k;A<=b+k;A++)T.push(A)}else for(let k=2;k<w;k++)T.push(k);return T}),f=ee(()=>n.disabled?-1:0);io(()=>{const v=(n.pagerCount-1)/2;u.value=!1,p.value=!1,n.pageCount>n.pagerCount&&(n.currentPage>n.pagerCount-v&&(u.value=!0),n.currentPage<n.pageCount-v&&(p.value=!0))});function s(v=!1){n.disabled||(v?o.value=!0:a.value=!0)}function d(v=!1){v?l.value=!0:h.value=!0}function g(v){const y=v.target;if(y.tagName.toLowerCase()==="li"&&Array.from(y.classList).includes("number")){const b=Number(y.textContent);b!==n.currentPage&&t("change",b)}else y.tagName.toLowerCase()==="li"&&Array.from(y.classList).includes("more")&&m(v)}function m(v){const y=v.target;if(y.tagName.toLowerCase()==="ul"||n.disabled)return;let b=Number(y.textContent);const w=n.pageCount,S=n.currentPage,C=n.pagerCount-2;y.className.includes("more")&&(y.className.includes("quickprev")?b=S-C:y.className.includes("quicknext")&&(b=S+C)),Number.isNaN(+b)||(b<1&&(b=1),b>w&&(b=w)),b!==S&&t("change",b)}return(v,y)=>(N(),oe("ul",{class:ce(_(r).b()),onClick:m,onKeyup:Bt(g,["enter"])},[v.pageCount>0?(N(),oe("li",{key:0,class:ce([[_(r).is("active",v.currentPage===1),_(r).is("disabled",v.disabled)],"number"]),"aria-current":v.currentPage===1,tabindex:_(f)}," 1 ",10,_N)):ge("v-if",!0),u.value?(N(),oe("li",{key:1,class:ce(["more","btn-quickprev",_(i).b(),_(r).is("disabled",v.disabled)]),tabindex:_(f),onMouseenter:y[0]||(y[0]=b=>s(!0)),onMouseleave:y[1]||(y[1]=b=>o.value=!1),onFocus:y[2]||(y[2]=b=>d(!0)),onBlur:y[3]||(y[3]=b=>l.value=!1)},[o.value||l.value?(N(),ve(_(aO),{key:0})):(N(),ve(_(Av),{key:1}))],42,wN)):ge("v-if",!0),(N(!0),oe($e,null,zt(_(c),b=>(N(),oe("li",{key:b,class:ce([[_(r).is("active",v.currentPage===b),_(r).is("disabled",v.disabled)],"number"]),"aria-current":v.currentPage===b,tabindex:_(f)},Ee(b),11,SN))),128)),p.value?(N(),oe("li",{key:2,class:ce(["more","btn-quicknext",_(i).b(),_(r).is("disabled",v.disabled)]),tabindex:_(f),onMouseenter:y[4]||(y[4]=b=>s()),onMouseleave:y[5]||(y[5]=b=>a.value=!1),onFocus:y[6]||(y[6]=b=>d()),onBlur:y[7]||(y[7]=b=>h.value=!1)},[a.value||h.value?(N(),ve(_(sO),{key:0})):(N(),ve(_(Av),{key:1}))],42,CN)):ge("v-if",!0),v.pageCount>1?(N(),oe("li",{key:3,class:ce([[_(r).is("active",v.currentPage===v.pageCount),_(r).is("disabled",v.disabled)],"number"]),"aria-current":v.currentPage===v.pageCount,tabindex:_(f)},Ee(v.pageCount),11,xN)):ge("v-if",!0)],42,bN))}});var EN=Re(kN,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/pager.vue"]]);const kn=e=>typeof e!="number",ON=Be({total:Number,pageSize:Number,defaultPageSize:Number,currentPage:Number,defaultCurrentPage:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>typeof e=="number"&&Math.trunc(e)===e&&e>4&&e<22&&e%2===1,default:7},layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:Oe(Array),default:()=>un([10,20,30,40,50,100])},popperClass:{type:String,default:""},prevText:{type:String,default:""},prevIcon:{type:Qt,default:()=>_f},nextText:{type:String,default:""},nextIcon:{type:Qt,default:()=>cs},small:Boolean,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean}),AN={"update:current-page":e=>typeof e=="number","update:page-size":e=>typeof e=="number","size-change":e=>typeof e=="number","current-change":e=>typeof e=="number","prev-click":e=>typeof e=="number","next-click":e=>typeof e=="number"},vy="ElPagination";var PN=be({name:vy,props:ON,emits:AN,setup(e,{emit:t,slots:n}){const{t:r}=xn(),i=Pe("pagination"),u=Et().vnode.props||{},p="onUpdate:currentPage"in u||"onUpdate:current-page"in u||"onCurrentChange"in u,o="onUpdate:pageSize"in u||"onUpdate:page-size"in u||"onSizeChange"in u,a=ee(()=>{if(kn(e.total)&&kn(e.pageCount)||!kn(e.currentPage)&&!p)return!1;if(e.layout.includes("sizes")){if(kn(e.pageCount)){if(!kn(e.total)&&!kn(e.pageSize)&&!o)return!1}else if(!o)return!1}return!0}),l=ae(kn(e.defaultPageSize)?10:e.defaultPageSize),h=ae(kn(e.defaultCurrentPage)?1:e.defaultCurrentPage),c=ee({get(){return kn(e.pageSize)?l.value:e.pageSize},set(b){kn(e.pageSize)&&(l.value=b),o&&(t("update:page-size",b),t("size-change",b))}}),f=ee(()=>{let b=0;return kn(e.pageCount)?kn(e.total)||(b=Math.max(1,Math.ceil(e.total/c.value))):b=e.pageCount,b}),s=ee({get(){return kn(e.currentPage)?h.value:e.currentPage},set(b){let w=b;b<1?w=1:b>f.value&&(w=f.value),kn(e.currentPage)&&(h.value=w),p&&(t("update:current-page",w),t("current-change",w))}});xe(f,b=>{s.value>b&&(s.value=b)});function d(b){s.value=b}function g(b){c.value=b;const w=f.value;s.value>w&&(s.value=w)}function m(){e.disabled||(s.value-=1,t("prev-click",s.value))}function v(){e.disabled||(s.value+=1,t("next-click",s.value))}function y(b,w){b&&(b.props||(b.props={}),b.props.class=[b.props.class,w].join(" "))}return vt(Fw,{pageCount:f,disabled:ee(()=>e.disabled),currentPage:s,changeEvent:d,handleSizeChange:g}),()=>{var b,w;if(!a.value)return r("el.pagination.deprecationWarning"),null;if(!e.layout||e.hideOnSinglePage&&f.value<=1)return null;const S=[],C=[],T=Ct("div",{class:i.e("rightwrapper")},C),k={prev:Ct(B$,{disabled:e.disabled,currentPage:s.value,prevText:e.prevText,prevIcon:e.prevIcon,onClick:m}),jumper:Ct(dN),pager:Ct(EN,{currentPage:s.value,pageCount:f.value,pagerCount:e.pagerCount,onChange:d,disabled:e.disabled}),next:Ct(U$,{disabled:e.disabled,currentPage:s.value,pageCount:f.value,nextText:e.nextText,nextIcon:e.nextIcon,onClick:v}),sizes:Ct(lN,{pageSize:c.value,pageSizes:e.pageSizes,popperClass:e.popperClass,disabled:e.disabled,size:e.small?"small":"default"}),slot:(w=(b=n==null?void 0:n.default)==null?void 0:b.call(n))!=null?w:null,total:Ct(vN,{total:kn(e.total)?0:e.total})},A=e.layout.split(",").map(z=>z.trim());let P=!1;return A.forEach(z=>{if(z==="->"){P=!0;return}P?C.push(k[z]):S.push(k[z])}),y(S[0],i.is("first")),y(S[S.length-1],i.is("last")),P&&C.length>0&&(y(C[0],i.is("first")),y(C[C.length-1],i.is("last")),S.push(T)),Ct("div",{role:"pagination","aria-label":"pagination",class:[i.b(),i.is("background",e.background),{[i.m("small")]:e.small}]},S)}}});const IN=wt(PN),MN=Be({trigger:Ol.trigger,placement:bd.placement,disabled:Ol.disabled,visible:lr.visible,transition:lr.transition,popperOptions:bd.popperOptions,tabindex:bd.tabindex,content:lr.content,popperStyle:lr.popperStyle,popperClass:lr.popperClass,enterable:{...lr.enterable,default:!0},effect:{...lr.effect,default:"light"},teleported:lr.teleported,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),LN={"update:visible":e=>Qn(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},RN={name:"ElPopover"},DN=be({...RN,props:MN,emits:LN,setup(e,{expose:t,emit:n}){const r=e,i="onUpdate:visible",u=ee(()=>r[i]),p=Pe("popover"),o=ae(),a=ee(()=>{var v;return(v=_(o))==null?void 0:v.popperRef}),l=ee(()=>[{width:qr(r.width)},r.popperStyle]),h=ee(()=>[p.b(),r.popperClass,{[p.m("plain")]:!!r.content}]),c=ee(()=>r.transition===`${p.namespace.value}-fade-in-linear`),f=()=>{var v;(v=o.value)==null||v.hide()},s=()=>{n("before-enter")},d=()=>{n("before-leave")},g=()=>{n("after-enter")},m=()=>{n("update:visible",!1),n("after-leave")};return t({popperRef:a,hide:f}),(v,y)=>(N(),ve(_(fn),$n({ref_key:"tooltipRef",ref:o},v.$attrs,{trigger:v.trigger,placement:v.placement,disabled:v.disabled,visible:v.visible,transition:v.transition,"popper-options":v.popperOptions,tabindex:v.tabindex,content:v.content,offset:v.offset,"show-after":v.showAfter,"hide-after":v.hideAfter,"auto-close":v.autoClose,"show-arrow":v.showArrow,"aria-label":v.title,effect:v.effect,enterable:v.enterable,"popper-class":_(h),"popper-style":_(l),teleported:v.teleported,persistent:v.persistent,"gpu-acceleration":_(c),"onUpdate:visible":_(u),onBeforeShow:s,onBeforeHide:d,onShow:g,onHide:m}),{content:ue(()=>[v.title?(N(),oe("div",{key:0,class:ce(_(p).e("title")),role:"title"},Ee(v.title),3)):ge("v-if",!0),ke(v.$slots,"default",{},()=>[ze(Ee(v.content),1)])]),default:ue(()=>[v.$slots.reference?ke(v.$slots,"reference",{key:0}):ge("v-if",!0)]),_:3},16,["trigger","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","persistent","gpu-acceleration","onUpdate:visible"]))}});var FN=Re(DN,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popover/src/popover.vue"]]);const yy=(e,t)=>{const n=t.arg||t.value,r=n==null?void 0:n.popperRef;r&&(r.triggerRef=e)};var BN={mounted(e,t){yy(e,t)},updated(e,t){yy(e,t)}};const $N="popover",NN=P6(BN,$N),Du=wt(FN,{directive:NN}),zN=Be({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:e=>e>=0&&e<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:{type:Boolean,default:!1},duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:Oe(String),default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:Oe([String,Array,Function]),default:""},format:{type:Oe(Function),default:e=>`${e}%`}}),jN=["aria-valuenow"],VN={viewBox:"0 0 100 100"},UN=["d","stroke","stroke-width"],HN=["d","stroke","opacity","stroke-linecap","stroke-width"],WN={key:0},GN={name:"ElProgress"},YN=be({...GN,props:zN,setup(e){const t=e,n={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},r=Pe("progress"),i=ee(()=>({width:`${t.percentage}%`,animationDuration:`${t.duration}s`,backgroundColor:y(t.percentage)})),u=ee(()=>(t.strokeWidth/t.width*100).toFixed(1)),p=ee(()=>["circle","dashboard"].includes(t.type)?Number.parseInt(`${50-Number.parseFloat(u.value)/2}`,10):0),o=ee(()=>{const b=p.value,w=t.type==="dashboard";return`
|
|
M 50 50
|
|
m 0 ${w?"":"-"}${b}
|
|
a ${b} ${b} 0 1 1 0 ${w?"-":""}${b*2}
|
|
a ${b} ${b} 0 1 1 0 ${w?"":"-"}${b*2}
|
|
`}),a=ee(()=>2*Math.PI*p.value),l=ee(()=>t.type==="dashboard"?.75:1),h=ee(()=>`${-1*a.value*(1-l.value)/2}px`),c=ee(()=>({strokeDasharray:`${a.value*l.value}px, ${a.value}px`,strokeDashoffset:h.value})),f=ee(()=>({strokeDasharray:`${a.value*l.value*(t.percentage/100)}px, ${a.value}px`,strokeDashoffset:h.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),s=ee(()=>{let b;return t.color?b=y(t.percentage):b=n[t.status]||n.default,b}),d=ee(()=>t.status==="warning"?em:t.type==="line"?t.status==="success"?eu:wf:t.status==="success"?I1:Kr),g=ee(()=>t.type==="line"?12+t.strokeWidth*.4:t.width*.111111+2),m=ee(()=>t.format(t.percentage));function v(b){const w=100/b.length;return b.map((C,T)=>Xe(C)?{color:C,percentage:(T+1)*w}:C).sort((C,T)=>C.percentage-T.percentage)}const y=b=>{var w;const{color:S}=t;if(He(S))return S(b);if(Xe(S))return S;{const C=v(S);for(const T of C)if(T.percentage>b)return T.color;return(w=C[C.length-1])==null?void 0:w.color}};return(b,w)=>(N(),oe("div",{class:ce([_(r).b(),_(r).m(b.type),_(r).is(b.status),{[_(r).m("without-text")]:!b.showText,[_(r).m("text-inside")]:b.textInside}]),role:"progressbar","aria-valuenow":b.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[b.type==="line"?(N(),oe("div",{key:0,class:ce(_(r).b("bar"))},[ne("div",{class:ce(_(r).be("bar","outer")),style:je({height:`${b.strokeWidth}px`})},[ne("div",{class:ce([_(r).be("bar","inner"),{[_(r).bem("bar","inner","indeterminate")]:b.indeterminate}]),style:je(_(i))},[(b.showText||b.$slots.default)&&b.textInside?(N(),oe("div",{key:0,class:ce(_(r).be("bar","innerText"))},[ke(b.$slots,"default",{percentage:b.percentage},()=>[ne("span",null,Ee(_(m)),1)])],2)):ge("v-if",!0)],6)],6)],2)):(N(),oe("div",{key:1,class:ce(_(r).b("circle")),style:je({height:`${b.width}px`,width:`${b.width}px`})},[(N(),oe("svg",VN,[ne("path",{class:ce(_(r).be("circle","track")),d:_(o),stroke:`var(${_(r).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-width":_(u),fill:"none",style:je(_(c))},null,14,UN),ne("path",{class:ce(_(r).be("circle","path")),d:_(o),stroke:_(s),fill:"none",opacity:b.percentage?1:0,"stroke-linecap":b.strokeLinecap,"stroke-width":_(u),style:je(_(f))},null,14,HN)]))],6)),(b.showText||b.$slots.default)&&!b.textInside?(N(),oe("div",{key:2,class:ce(_(r).e("text")),style:je({fontSize:`${_(g)}px`})},[ke(b.$slots,"default",{percentage:b.percentage},()=>[b.status?(N(),ve(_(De),{key:1},{default:ue(()=>[(N(),ve(xt(_(d))))]),_:1})):(N(),oe("span",WN,Ee(_(m)),1))])],6)):ge("v-if",!0)],10,jN))}});var KN=Re(YN,[["__file","/home/runner/work/element-plus/element-plus/packages/components/progress/src/progress.vue"]]);const N2=wt(KN),XN=["start","center","end","space-around","space-between","space-evenly"],qN=["top","middle","bottom"],ZN=Be({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:XN,default:"start"},align:{type:String,values:qN,default:"top"}}),JN={name:"ElRow"},QN=be({...JN,props:ZN,setup(e){const t=e,n=Pe("row"),r=ee(()=>t.gutter);vt($w,{gutter:r});const i=ee(()=>{const u={};return t.gutter&&(u.marginRight=u.marginLeft=`-${t.gutter/2}px`),u});return(u,p)=>(N(),ve(xt(u.tag),{class:ce([_(n).b(),_(n).is(`justify-${t.justify}`,u.justify!=="start"),_(n).is(`align-${t.align}`,u.align!=="top")]),style:je(_(i))},{default:ue(()=>[ke(u.$slots,"default")]),_:3},8,["class","style"]))}});var ez=Re(QN,[["__file","/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);const by=wt(ez),tz=Be({modelValue:{type:Oe([Number,Array]),default:0},id:{type:String,default:void 0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},showInput:Boolean,showInputControls:{type:Boolean,default:!0},size:oa,inputSize:oa,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:Oe(Function),default:void 0},disabled:Boolean,range:Boolean,vertical:Boolean,height:String,debounce:{type:Number,default:300},label:{type:String,default:void 0},rangeStartLabel:{type:String,default:void 0},rangeEndLabel:{type:String,default:void 0},formatValueText:{type:Oe(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:hs,default:"top"},marks:{type:Oe(Object)},validateEvent:{type:Boolean,default:!0}}),xd=e=>ut(e)||We(e)&&e.every(ut),nz={[gt]:xd,[Xa]:xd,[Ir]:xd},rz=(e,t,n)=>{const r=ae();return rt(async()=>{e.range?(Array.isArray(e.modelValue)?(t.firstValue=Math.max(e.min,e.modelValue[0]),t.secondValue=Math.min(e.max,e.modelValue[1])):(t.firstValue=e.min,t.secondValue=e.max),t.oldValue=[t.firstValue,t.secondValue]):(typeof e.modelValue!="number"||Number.isNaN(e.modelValue)?t.firstValue=e.min:t.firstValue=Math.min(e.max,Math.max(e.min,e.modelValue)),t.oldValue=t.firstValue),_t(window,"resize",n),await Ge(),n()}),{sliderWrapper:r}},iz=e=>ee(()=>e.marks?Object.keys(e.marks).map(Number.parseFloat).sort((n,r)=>n-r).filter(n=>n<=e.max&&n>=e.min).map(n=>({point:n,position:(n-e.min)*100/(e.max-e.min),mark:e.marks[n]})):[]),az=(e,t,n)=>{const{form:r,formItem:i}=pa(),u=mn(),p=ae(),o=ae(),a={firstButton:p,secondButton:o},l=ee(()=>e.disabled||(r==null?void 0:r.disabled)||!1),h=ee(()=>Math.min(t.firstValue,t.secondValue)),c=ee(()=>Math.max(t.firstValue,t.secondValue)),f=ee(()=>e.range?`${100*(c.value-h.value)/(e.max-e.min)}%`:`${100*(t.firstValue-e.min)/(e.max-e.min)}%`),s=ee(()=>e.range?`${100*(h.value-e.min)/(e.max-e.min)}%`:"0%"),d=ee(()=>e.vertical?{height:e.height}:{}),g=ee(()=>e.vertical?{height:f.value,bottom:s.value}:{width:f.value,left:s.value}),m=()=>{u.value&&(t.sliderSize=u.value[`client${e.vertical?"Height":"Width"}`])},v=z=>{const I=e.min+z*(e.max-e.min)/100;if(!e.range)return p;let $;return Math.abs(h.value-I)<Math.abs(c.value-I)?$=t.firstValue<t.secondValue?"firstButton":"secondButton":$=t.firstValue>t.secondValue?"firstButton":"secondButton",a[$]},y=z=>{const I=v(z);return I.value.setPosition(z),I},b=z=>{t.firstValue=z,S(e.range?[h.value,c.value]:z)},w=z=>{t.secondValue=z,e.range&&S([h.value,c.value])},S=z=>{n(gt,z),n(Xa,z)},C=async()=>{await Ge(),n(Ir,e.range?[h.value,c.value]:e.modelValue)},T=z=>{var I,$,O,Y,re,q;if(l.value||t.dragging)return;m();let J=0;if(e.vertical){const E=(O=($=(I=z.touches)==null?void 0:I.item(0))==null?void 0:$.clientY)!=null?O:z.clientY;J=(u.value.getBoundingClientRect().bottom-E)/t.sliderSize*100}else{const E=(q=(re=(Y=z.touches)==null?void 0:Y.item(0))==null?void 0:re.clientX)!=null?q:z.clientX,V=u.value.getBoundingClientRect().left;J=(E-V)/t.sliderSize*100}if(!(J<0||J>100))return y(J)};return{elFormItem:i,slider:u,firstButton:p,secondButton:o,sliderDisabled:l,minValue:h,maxValue:c,runwayStyle:d,barStyle:g,resetSize:m,setPosition:y,emitChange:C,onSliderWrapperPrevent:z=>{var I,$;(((I=a.firstButton.value)==null?void 0:I.dragging)||(($=a.secondButton.value)==null?void 0:$.dragging))&&z.preventDefault()},onSliderClick:z=>{T(z)&&C()},onSliderDown:async z=>{const I=T(z);I&&(await Ge(),I.value.onButtonDown(z))},setFirstValue:b,setSecondValue:w}},{left:oz,down:sz,right:lz,up:uz,home:cz,end:fz,pageUp:dz,pageDown:hz}=At,pz=(e,t,n)=>{const r=ae(),i=ae(!1),u=ee(()=>t.value instanceof Function),p=ee(()=>u.value&&t.value(e.modelValue)||e.modelValue),o=qo(()=>{n.value&&(i.value=!0)},50),a=qo(()=>{n.value&&(i.value=!1)},50);return{tooltip:r,tooltipVisible:i,formatValue:p,displayTooltip:o,hideTooltip:a}},mz=(e,t,n)=>{const{disabled:r,min:i,max:u,step:p,showTooltip:o,precision:a,sliderSize:l,formatTooltip:h,emitChange:c,resetSize:f,updateDragging:s}=qe(zw),{tooltip:d,tooltipVisible:g,formatValue:m,displayTooltip:v,hideTooltip:y}=pz(e,h,o),b=ae(),w=ee(()=>`${(e.modelValue-i.value)/(u.value-i.value)*100}%`),S=ee(()=>e.vertical?{bottom:w.value}:{left:w.value}),C=()=>{t.hovering=!0,v()},T=()=>{t.hovering=!1,t.dragging||y()},k=R=>{r.value||(R.preventDefault(),J(R),window.addEventListener("mousemove",E),window.addEventListener("touchmove",E),window.addEventListener("mouseup",V),window.addEventListener("touchend",V),window.addEventListener("contextmenu",V),b.value.focus())},A=R=>{r.value||(t.newPosition=Number.parseFloat(w.value)+R/(u.value-i.value)*100,M(t.newPosition),c())},P=()=>{A(-p.value)},z=()=>{A(p.value)},I=()=>{A(-p.value*4)},$=()=>{A(p.value*4)},O=()=>{r.value||(M(0),c())},Y=()=>{r.value||(M(100),c())},re=R=>{let G=!0;[oz,sz].includes(R.key)?P():[lz,uz].includes(R.key)?z():R.key===cz?O():R.key===fz?Y():R.key===hz?I():R.key===dz?$():G=!1,G&&R.preventDefault()},q=R=>{let G,D;return R.type.startsWith("touch")?(D=R.touches[0].clientY,G=R.touches[0].clientX):(D=R.clientY,G=R.clientX),{clientX:G,clientY:D}},J=R=>{t.dragging=!0,t.isClick=!0;const{clientX:G,clientY:D}=q(R);e.vertical?t.startY=D:t.startX=G,t.startPosition=Number.parseFloat(w.value),t.newPosition=t.startPosition},E=R=>{if(t.dragging){t.isClick=!1,v(),f();let G;const{clientX:D,clientY:B}=q(R);e.vertical?(t.currentY=B,G=(t.startY-t.currentY)/l.value*100):(t.currentX=D,G=(t.currentX-t.startX)/l.value*100),t.newPosition=t.startPosition+G,M(t.newPosition)}},V=()=>{t.dragging&&(setTimeout(()=>{t.dragging=!1,t.hovering||y(),t.isClick||M(t.newPosition),c()},0),window.removeEventListener("mousemove",E),window.removeEventListener("touchmove",E),window.removeEventListener("mouseup",V),window.removeEventListener("touchend",V),window.removeEventListener("contextmenu",V))},M=async R=>{if(R===null||Number.isNaN(+R))return;R<0?R=0:R>100&&(R=100);const G=100/((u.value-i.value)/p.value);let B=Math.round(R/G)*G*(u.value-i.value)*.01+i.value;B=Number.parseFloat(B.toFixed(a.value)),B!==e.modelValue&&n(gt,B),!t.dragging&&e.modelValue!==t.oldValue&&(t.oldValue=e.modelValue),await Ge(),t.dragging&&v(),d.value.updatePopper()};return xe(()=>t.dragging,R=>{s(R)}),{disabled:r,button:b,tooltip:d,tooltipVisible:g,showTooltip:o,wrapperStyle:S,formatValue:m,handleMouseEnter:C,handleMouseLeave:T,onButtonDown:k,onKeyDown:re,setPosition:M}},gz=(e,t,n,r)=>({stops:ee(()=>{if(!e.showStops||e.min>e.max)return[];if(e.step===0)return[];const p=(e.max-e.min)/e.step,o=100*e.step/(e.max-e.min),a=Array.from({length:p-1}).map((l,h)=>(h+1)*o);return e.range?a.filter(l=>l<100*(n.value-e.min)/(e.max-e.min)||l>100*(r.value-e.min)/(e.max-e.min)):a.filter(l=>l>100*(t.firstValue-e.min)/(e.max-e.min))}),getStopStyle:p=>e.vertical?{bottom:`${p}%`}:{left:`${p}%`}}),vz=(e,t,n,r,i,u)=>{const p=l=>{i(gt,l),i(Xa,l)},o=()=>e.range?![n.value,r.value].every((l,h)=>l===t.oldValue[h]):e.modelValue!==t.oldValue,a=()=>{var l,h;if(e.min>e.max){Mn("Slider","min should not be greater than max.");return}const c=e.modelValue;e.range&&Array.isArray(c)?c[1]<e.min?p([e.min,e.min]):c[0]>e.max?p([e.max,e.max]):c[0]<e.min?p([e.min,c[1]]):c[1]>e.max?p([c[0],e.max]):(t.firstValue=c[0],t.secondValue=c[1],o()&&(e.validateEvent&&((l=u==null?void 0:u.validate)==null||l.call(u,"change").catch(f=>void 0)),t.oldValue=c.slice())):!e.range&&typeof c=="number"&&!Number.isNaN(c)&&(c<e.min?p(e.min):c>e.max?p(e.max):(t.firstValue=c,o()&&(e.validateEvent&&((h=u==null?void 0:u.validate)==null||h.call(u,"change").catch(f=>void 0)),t.oldValue=c)))};a(),xe(()=>t.dragging,l=>{l||a()}),xe(()=>e.modelValue,(l,h)=>{t.dragging||Array.isArray(l)&&Array.isArray(h)&&l.every((c,f)=>c===h[f])&&t.firstValue===l[0]&&t.secondValue===l[1]||a()},{deep:!0}),xe(()=>[e.min,e.max],()=>{a()})},yz=Be({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:hs,default:"top"}}),bz={[gt]:e=>ut(e)},_z=["tabindex"],wz={name:"ElSliderButton"},Sz=be({...wz,props:yz,emits:bz,setup(e,{expose:t,emit:n}){const r=e,i=Pe("slider"),u=kt({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:r.modelValue}),{disabled:p,button:o,tooltip:a,showTooltip:l,tooltipVisible:h,wrapperStyle:c,formatValue:f,handleMouseEnter:s,handleMouseLeave:d,onButtonDown:g,onKeyDown:m,setPosition:v}=mz(r,u,n),{hovering:y,dragging:b}=hr(u);return t({onButtonDown:g,onKeyDown:m,setPosition:v,hovering:y,dragging:b}),(w,S)=>(N(),oe("div",{ref_key:"button",ref:o,class:ce([_(i).e("button-wrapper"),{hover:_(y),dragging:_(b)}]),style:je(_(c)),tabindex:_(p)?-1:0,onMouseenter:S[0]||(S[0]=(...C)=>_(s)&&_(s)(...C)),onMouseleave:S[1]||(S[1]=(...C)=>_(d)&&_(d)(...C)),onMousedown:S[2]||(S[2]=(...C)=>_(g)&&_(g)(...C)),onTouchstart:S[3]||(S[3]=(...C)=>_(g)&&_(g)(...C)),onFocus:S[4]||(S[4]=(...C)=>_(s)&&_(s)(...C)),onBlur:S[5]||(S[5]=(...C)=>_(d)&&_(d)(...C)),onKeydown:S[6]||(S[6]=(...C)=>_(m)&&_(m)(...C))},[se(_(fn),{ref_key:"tooltip",ref:a,visible:_(h),placement:w.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":w.tooltipClass,disabled:!_(l),persistent:""},{content:ue(()=>[ne("span",null,Ee(_(f)),1)]),default:ue(()=>[ne("div",{class:ce([_(i).e("button"),{hover:_(y),dragging:_(b)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled"])],46,_z))}});var _y=Re(Sz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/button.vue"]]);const Cz=Be({mark:{type:Oe([String,Object]),default:void 0}});var xz=be({name:"ElSliderMarker",props:Cz,setup(e){const t=Pe("slider"),n=ee(()=>Xe(e.mark)?e.mark:e.mark.label),r=ee(()=>Xe(e.mark)?void 0:e.mark.style);return()=>Ct("div",{class:t.e("marks-text"),style:r.value},n.value)}});const Tz=["id","role","aria-label","aria-labelledby"],kz={key:1},Ez={name:"ElSlider"},Oz=be({...Ez,props:tz,emits:nz,setup(e,{expose:t,emit:n}){const r=e,i=Pe("slider"),{t:u}=xn(),p=kt({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:o,slider:a,firstButton:l,secondButton:h,sliderDisabled:c,minValue:f,maxValue:s,runwayStyle:d,barStyle:g,resetSize:m,emitChange:v,onSliderWrapperPrevent:y,onSliderClick:b,onSliderDown:w,setFirstValue:S,setSecondValue:C}=az(r,p,n),{stops:T,getStopStyle:k}=gz(r,p,f,s),{inputId:A,isLabeledByFormItem:P}=nu(r,{formItemContext:o}),z=yr(),I=ee(()=>r.inputSize||z.value),$=ee(()=>r.label||u("el.slider.defaultLabel",{min:r.min,max:r.max})),O=ee(()=>r.range?r.rangeStartLabel||u("el.slider.defaultRangeStartLabel"):$.value),Y=ee(()=>r.formatValueText?r.formatValueText(R.value):`${R.value}`),re=ee(()=>r.rangeEndLabel||u("el.slider.defaultRangeEndLabel")),q=ee(()=>r.formatValueText?r.formatValueText(G.value):`${G.value}`),J=ee(()=>[i.b(),i.m(z.value),i.is("vertical",r.vertical),{[i.m("with-input")]:r.showInput}]),E=iz(r);vz(r,p,f,s,n,o);const V=ee(()=>{const Z=[r.min,r.max,r.step].map(H=>{const Q=`${H}`.split(".")[1];return Q?Q.length:0});return Math.max.apply(null,Z)}),{sliderWrapper:M}=rz(r,p,m),{firstValue:R,secondValue:G,sliderSize:D}=hr(p),B=Z=>{p.dragging=Z};return vt(zw,{...hr(r),sliderSize:D,disabled:c,precision:V,emitChange:v,resetSize:m,updateDragging:B}),t({onSliderClick:b}),(Z,H)=>{var Q,te;return N(),oe("div",{id:Z.range?_(A):void 0,ref_key:"sliderWrapper",ref:M,class:ce(_(J)),role:Z.range?"group":void 0,"aria-label":Z.range&&!_(P)?_($):void 0,"aria-labelledby":Z.range&&_(P)?(Q=_(o))==null?void 0:Q.labelId:void 0,onTouchstart:H[2]||(H[2]=(...fe)=>_(y)&&_(y)(...fe)),onTouchmove:H[3]||(H[3]=(...fe)=>_(y)&&_(y)(...fe))},[ne("div",{ref_key:"slider",ref:a,class:ce([_(i).e("runway"),{"show-input":Z.showInput&&!Z.range},_(i).is("disabled",_(c))]),style:je(_(d)),onMousedown:H[0]||(H[0]=(...fe)=>_(w)&&_(w)(...fe)),onTouchstart:H[1]||(H[1]=(...fe)=>_(w)&&_(w)(...fe))},[ne("div",{class:ce(_(i).e("bar")),style:je(_(g))},null,6),se(_y,{id:Z.range?void 0:_(A),ref_key:"firstButton",ref:l,"model-value":_(R),vertical:Z.vertical,"tooltip-class":Z.tooltipClass,placement:Z.placement,role:"slider","aria-label":Z.range||!_(P)?_(O):void 0,"aria-labelledby":!Z.range&&_(P)?(te=_(o))==null?void 0:te.labelId:void 0,"aria-valuemin":Z.min,"aria-valuemax":Z.range?_(G):Z.max,"aria-valuenow":_(R),"aria-valuetext":_(Y),"aria-orientation":Z.vertical?"vertical":"horizontal","aria-disabled":_(c),"onUpdate:modelValue":_(S)},null,8,["id","model-value","vertical","tooltip-class","placement","aria-label","aria-labelledby","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"]),Z.range?(N(),ve(_y,{key:0,ref_key:"secondButton",ref:h,"model-value":_(G),vertical:Z.vertical,"tooltip-class":Z.tooltipClass,placement:Z.placement,role:"slider","aria-label":_(re),"aria-valuemin":_(R),"aria-valuemax":Z.max,"aria-valuenow":_(G),"aria-valuetext":_(q),"aria-orientation":Z.vertical?"vertical":"horizontal","aria-disabled":_(c),"onUpdate:modelValue":_(C)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):ge("v-if",!0),Z.showStops?(N(),oe("div",kz,[(N(!0),oe($e,null,zt(_(T),(fe,me)=>(N(),oe("div",{key:me,class:ce(_(i).e("stop")),style:je(_(k)(fe))},null,6))),128))])):ge("v-if",!0),_(E).length>0?(N(),oe($e,{key:2},[ne("div",null,[(N(!0),oe($e,null,zt(_(E),(fe,me)=>(N(),oe("div",{key:me,style:je(_(k)(fe.position)),class:ce([_(i).e("stop"),_(i).e("marks-stop")])},null,6))),128))]),ne("div",{class:ce(_(i).e("marks"))},[(N(!0),oe($e,null,zt(_(E),(fe,me)=>(N(),ve(_(xz),{key:me,mark:fe.mark,style:je(_(k)(fe.position))},null,8,["mark","style"]))),128))],2)],64)):ge("v-if",!0)],38),Z.showInput&&!Z.range?(N(),ve(_(Gc),{key:0,ref:"input","model-value":_(R),class:ce(_(i).e("input")),step:Z.step,disabled:_(c),controls:Z.showInputControls,min:Z.min,max:Z.max,debounce:Z.debounce,size:_(I),"onUpdate:modelValue":_(S),onChange:_(v)},null,8,["model-value","class","step","disabled","controls","min","max","debounce","size","onUpdate:modelValue","onChange"])):ge("v-if",!0)],42,Tz)}}});var Az=Re(Oz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/slider.vue"]]);const wy=wt(Az),Pz=Be({modelValue:{type:[Boolean,String,Number],default:!1},value:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},width:{type:[String,Number],default:""},inlinePrompt:{type:Boolean,default:!1},activeIcon:{type:Qt},inactiveIcon:{type:Qt},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},borderColor:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},id:String,loading:{type:Boolean,default:!1},beforeChange:{type:Oe(Function)},size:{type:String,validator:Of},tabindex:{type:[String,Number]}}),Iz={[gt]:e=>Qn(e)||Xe(e)||ut(e),[Ir]:e=>Qn(e)||Xe(e)||ut(e),[Xa]:e=>Qn(e)||Xe(e)||ut(e)},Mz=["onClick"],Lz=["id","aria-checked","aria-disabled","name","true-value","false-value","disabled","tabindex","onKeydown"],Rz=["aria-hidden"],Dz=["aria-hidden"],Fz=["aria-hidden"],Bz=["aria-hidden"],$z={name:"ElSwitch"},Nz=be({...$z,props:Pz,emits:Iz,setup(e,{expose:t,emit:n}){const r=e,i="ElSwitch",u=Et(),{formItem:p}=pa(),o=yr(),a=Pe("switch");Tl({from:'"value"',replacement:'"model-value" or "v-model"',scope:i,version:"2.3.0",ref:"https://element-plus.org/en-US/component/switch.html#attributes",type:"Attribute"},ee(()=>{var C;return!!((C=u.vnode.props)!=null&&C.value)}));const{inputId:l}=nu(r,{formItemContext:p}),h=lo(ee(()=>r.loading)),c=ae(r.modelValue!==!1),f=ae(),s=ae(),d=ee(()=>[a.b(),a.m(o.value),a.is("disabled",h.value),a.is("checked",v.value)]),g=ee(()=>({width:qr(r.width)}));xe(()=>r.modelValue,()=>{c.value=!0}),xe(()=>r.value,()=>{c.value=!1});const m=ee(()=>c.value?r.modelValue:r.value),v=ee(()=>m.value===r.activeValue);[r.activeValue,r.inactiveValue].includes(m.value)||(n(gt,r.inactiveValue),n(Ir,r.inactiveValue),n(Xa,r.inactiveValue)),xe(v,C=>{var T;f.value.checked=C,r.validateEvent&&((T=p==null?void 0:p.validate)==null||T.call(p,"change").catch(k=>void 0))});const y=()=>{const C=v.value?r.inactiveValue:r.activeValue;n(gt,C),n(Ir,C),n(Xa,C),Ge(()=>{f.value.checked=v.value})},b=()=>{if(h.value)return;const{beforeChange:C}=r;if(!C){y();return}const T=C();[Sc(T),Qn(T)].includes(!0)||Mn(i,"beforeChange must return type `Promise<boolean>` or `boolean`"),Sc(T)?T.then(A=>{A&&y()}).catch(A=>{}):T&&y()},w=ee(()=>a.cssVarBlock({...r.activeColor?{"on-color":r.activeColor}:null,...r.inactiveColor?{"off-color":r.inactiveColor}:null,...r.borderColor?{"border-color":r.borderColor}:null})),S=()=>{var C,T;(T=(C=f.value)==null?void 0:C.focus)==null||T.call(C)};return rt(()=>{f.value.checked=v.value}),t({focus:S,checked:v}),(C,T)=>(N(),oe("div",{class:ce(_(d)),style:je(_(w)),onClick:Qe(b,["prevent"])},[ne("input",{id:_(l),ref_key:"input",ref:f,class:ce(_(a).e("input")),type:"checkbox",role:"switch","aria-checked":_(v),"aria-disabled":_(h),name:C.name,"true-value":C.activeValue,"false-value":C.inactiveValue,disabled:_(h),tabindex:C.tabindex,onChange:y,onKeydown:Bt(b,["enter"])},null,42,Lz),!C.inlinePrompt&&(C.inactiveIcon||C.inactiveText)?(N(),oe("span",{key:0,class:ce([_(a).e("label"),_(a).em("label","left"),_(a).is("active",!_(v))])},[C.inactiveIcon?(N(),ve(_(De),{key:0},{default:ue(()=>[(N(),ve(xt(C.inactiveIcon)))]),_:1})):ge("v-if",!0),!C.inactiveIcon&&C.inactiveText?(N(),oe("span",{key:1,"aria-hidden":_(v)},Ee(C.inactiveText),9,Rz)):ge("v-if",!0)],2)):ge("v-if",!0),ne("span",{ref_key:"core",ref:s,class:ce(_(a).e("core")),style:je(_(g))},[C.inlinePrompt?(N(),oe("div",{key:0,class:ce(_(a).e("inner"))},[C.activeIcon||C.inactiveIcon?(N(),oe($e,{key:0},[C.activeIcon?(N(),ve(_(De),{key:0,class:ce([_(a).is("icon"),_(v)?_(a).is("show"):_(a).is("hide")])},{default:ue(()=>[(N(),ve(xt(C.activeIcon)))]),_:1},8,["class"])):ge("v-if",!0),C.inactiveIcon?(N(),ve(_(De),{key:1,class:ce([_(a).is("icon"),_(v)?_(a).is("hide"):_(a).is("show")])},{default:ue(()=>[(N(),ve(xt(C.inactiveIcon)))]),_:1},8,["class"])):ge("v-if",!0)],64)):C.activeText||C.inactiveIcon?(N(),oe($e,{key:1},[C.activeText?(N(),oe("span",{key:0,class:ce([_(a).is("text"),_(v)?_(a).is("show"):_(a).is("hide")]),"aria-hidden":!_(v)},Ee(C.activeText.substring(0,3)),11,Dz)):ge("v-if",!0),C.inactiveText?(N(),oe("span",{key:1,class:ce([_(a).is("text"),_(v)?_(a).is("hide"):_(a).is("show")]),"aria-hidden":_(v)},Ee(C.inactiveText.substring(0,3)),11,Fz)):ge("v-if",!0)],64)):ge("v-if",!0)],2)):ge("v-if",!0),ne("div",{class:ce(_(a).e("action"))},[C.loading?(N(),ve(_(De),{key:0,class:ce(_(a).is("loading"))},{default:ue(()=>[se(_(Jp))]),_:1},8,["class"])):ge("v-if",!0)],2)],6),!C.inlinePrompt&&(C.activeIcon||C.activeText)?(N(),oe("span",{key:1,class:ce([_(a).e("label"),_(a).em("label","right"),_(a).is("active",_(v))])},[C.activeIcon?(N(),ve(_(De),{key:0},{default:ue(()=>[(N(),ve(xt(C.activeIcon)))]),_:1})):ge("v-if",!0),!C.activeIcon&&C.activeText?(N(),oe("span",{key:1,"aria-hidden":!_(v)},Ee(C.activeText),9,Bz)):ge("v-if",!0)],2)):ge("v-if",!0)],14,Mz))}});var zz=Re(Nz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/switch/src/switch.vue"]]);const Sy=wt(zz),jz=Be({tabs:{type:Oe(Array),default:()=>un([])}}),Vz={name:"ElTabBar"},Uz=be({...Vz,props:jz,setup(e,{expose:t}){const n=e,r="ElTabBar",i=Et(),u=qe(Af);u||Mn(r,"<el-tabs><el-tab-bar /></el-tabs>");const p=Pe("tabs"),o=ae(),a=ae(),l=()=>{let c=0,f=0;const s=["top","bottom"].includes(u.props.tabPosition)?"width":"height",d=s==="width"?"x":"y";return n.tabs.every(g=>{var m,v,y,b;const w=(v=(m=i.parent)==null?void 0:m.refs)==null?void 0:v[`tab-${g.uid}`];if(!w)return!1;if(!g.active)return!0;f=w[`client${Pa(s)}`];const S=d==="x"?"left":"top";c=w.getBoundingClientRect()[S]-((b=(y=w.parentElement)==null?void 0:y.getBoundingClientRect()[S])!=null?b:0);const C=window.getComputedStyle(w);return s==="width"&&(n.tabs.length>1&&(f-=Number.parseFloat(C.paddingLeft)+Number.parseFloat(C.paddingRight)),c+=Number.parseFloat(C.paddingLeft)),!1}),{[s]:`${f}px`,transform:`translate${Pa(d)}(${c}px)`}},h=()=>a.value=l();return xe(()=>n.tabs,async()=>{await Ge(),h()},{immediate:!0}),Jr(o,()=>h()),t({ref:o,update:h}),(c,f)=>(N(),oe("div",{ref_key:"barRef",ref:o,class:ce([_(p).e("active-bar"),_(p).is(_(u).props.tabPosition)]),style:je(a.value)},null,6))}});var Hz=Re(Uz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-bar.vue"]]);const Wz=Be({panes:{type:Oe(Array),default:()=>un([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),Gz={tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},Cy="ElTabNav",Yz=be({name:Cy,props:Wz,emits:Gz,setup(e,{expose:t,emit:n}){const r=Et(),i=qe(Af);i||Mn(Cy,"<el-tabs><tab-nav /></el-tabs>");const u=Pe("tabs"),p=r6(),o=v6(),a=ae(),l=ae(),h=ae(),c=ae(!1),f=ae(0),s=ae(!1),d=ae(!0),g=ee(()=>["top","bottom"].includes(i.props.tabPosition)?"width":"height"),m=ee(()=>({transform:`translate${g.value==="width"?"X":"Y"}(-${f.value}px)`})),v=()=>{if(!a.value)return;const k=a.value[`offset${Pa(g.value)}`],A=f.value;if(!A)return;const P=A>k?A-k:0;f.value=P},y=()=>{if(!a.value||!l.value)return;const k=l.value[`offset${Pa(g.value)}`],A=a.value[`offset${Pa(g.value)}`],P=f.value;if(k-P<=A)return;const z=k-P>A*2?P+A:k-A;f.value=z},b=async()=>{const k=l.value;if(!c.value||!h.value||!a.value||!k)return;await Ge();const A=h.value.querySelector(".is-active");if(!A)return;const P=a.value,z=["top","bottom"].includes(i.props.tabPosition),I=A.getBoundingClientRect(),$=P.getBoundingClientRect(),O=z?k.offsetWidth-$.width:k.offsetHeight-$.height,Y=f.value;let re=Y;z?(I.left<$.left&&(re=Y-($.left-I.left)),I.right>$.right&&(re=Y+I.right-$.right)):(I.top<$.top&&(re=Y-($.top-I.top)),I.bottom>$.bottom&&(re=Y+(I.bottom-$.bottom))),re=Math.max(re,0),f.value=Math.min(re,O)},w=()=>{if(!l.value||!a.value)return;const k=l.value[`offset${Pa(g.value)}`],A=a.value[`offset${Pa(g.value)}`],P=f.value;if(A<k){const z=f.value;c.value=c.value||{},c.value.prev=z,c.value.next=z+A<k,k-z<A&&(f.value=k-A)}else c.value=!1,P>0&&(f.value=0)},S=k=>{const A=k.code,{up:P,down:z,left:I,right:$}=At;if(![P,z,I,$].includes(A))return;const O=Array.from(k.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")),Y=O.indexOf(k.target);let re;A===I||A===P?Y===0?re=O.length-1:re=Y-1:Y<O.length-1?re=Y+1:re=0,O[re].focus(),O[re].click(),C()},C=()=>{d.value&&(s.value=!0)},T=()=>s.value=!1;return xe(p,k=>{k==="hidden"?d.value=!1:k==="visible"&&setTimeout(()=>d.value=!0,50)}),xe(o,k=>{k?setTimeout(()=>d.value=!0,50):d.value=!1}),Jr(h,w),rt(()=>setTimeout(()=>b(),0)),ro(()=>w()),t({scrollToActiveTab:b,removeFocus:T}),xe(()=>e.panes,()=>r.update(),{flush:"post"}),()=>{const k=c.value?[se("span",{class:[u.e("nav-prev"),u.is("disabled",!c.value.prev)],onClick:v},[se(De,null,{default:()=>[se(_f,null,null)]})]),se("span",{class:[u.e("nav-next"),u.is("disabled",!c.value.next)],onClick:y},[se(De,null,{default:()=>[se(cs,null,null)]})])]:null,A=e.panes.map((P,z)=>{var I,$,O,Y;const re=P.uid,q=P.props.disabled,J=($=(I=P.props.name)!=null?I:P.index)!=null?$:`${z}`,E=!q&&(P.isClosable||e.editable);P.index=`${z}`;const V=E?se(De,{class:"is-icon-close",onClick:G=>n("tabRemove",P,G)},{default:()=>[se(Kr,null,null)]}):null,M=((Y=(O=P.slots).label)==null?void 0:Y.call(O))||P.props.label,R=!q&&P.active?0:-1;return se("div",{ref:`tab-${re}`,class:[u.e("item"),u.is(i.props.tabPosition),u.is("active",P.active),u.is("disabled",q),u.is("closable",E),u.is("focus",s.value)],id:`tab-${J}`,key:`tab-${re}`,"aria-controls":`pane-${J}`,role:"tab","aria-selected":P.active,tabindex:R,onFocus:()=>C(),onBlur:()=>T(),onClick:G=>{T(),n("tabClick",P,J,G)},onKeydown:G=>{E&&(G.code===At.delete||G.code===At.backspace)&&n("tabRemove",P,G)}},[M,V])});return se("div",{ref:h,class:[u.e("nav-wrap"),u.is("scrollable",!!c.value),u.is(i.props.tabPosition)]},[k,se("div",{class:u.e("nav-scroll"),ref:a},[se("div",{class:[u.e("nav"),u.is(i.props.tabPosition),u.is("stretch",e.stretch&&["top","bottom"].includes(i.props.tabPosition))],ref:l,style:m.value,role:"tablist",onKeydown:S},[e.type?null:se(Hz,{tabs:[...e.panes]},null),A])])])}}}),Kz=Be({type:{type:String,values:["card","border-card",""],default:""},activeName:{type:[String,Number]},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:Oe(Function),default:()=>!0},stretch:Boolean}),Td=e=>Xe(e)||ut(e),Xz={[gt]:e=>Td(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>Td(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>Td(e),tabAdd:()=>!0};var qz=be({name:"ElTabs",props:Kz,emits:Xz,setup(e,{emit:t,slots:n,expose:r}){var i,u;const p=Pe("tabs"),o=ae(),a=kt({}),l=ae((u=(i=e.modelValue)!=null?i:e.activeName)!=null?u:"0"),h=g=>{l.value=g,t(gt,g),t("tabChange",g)},c=async g=>{var m,v,y;if(!(l.value===g||xr(g)))try{await((m=e.beforeLeave)==null?void 0:m.call(e,g,l.value))!==!1&&(h(g),(y=(v=o.value)==null?void 0:v.removeFocus)==null||y.call(v))}catch{}},f=(g,m,v)=>{g.props.disabled||(c(m),t("tabClick",g,v))},s=(g,m)=>{g.props.disabled||xr(g.props.name)||(m.stopPropagation(),t("edit",g.props.name,"remove"),t("tabRemove",g.props.name))},d=()=>{t("edit",void 0,"add"),t("tabAdd")};return Tl({from:'"activeName"',replacement:'"model-value" or "v-model"',scope:"ElTabs",version:"2.3.0",ref:"https://element-plus.org/en-US/component/tabs.html#attributes",type:"Attribute"},ee(()=>!!e.activeName)),xe(()=>e.activeName,g=>c(g)),xe(()=>e.modelValue,g=>c(g)),xe(l,async()=>{var g;await Ge(),(g=o.value)==null||g.scrollToActiveTab()}),vt(Af,{props:e,currentName:l,registerPane:v=>a[v.uid]=v,unregisterPane:v=>delete a[v]}),r({currentName:l}),()=>{const g=e.editable||e.addable?se("span",{class:p.e("new-tab"),tabindex:"0",onClick:d,onKeydown:y=>{y.code===At.enter&&d()}},[se(De,{class:p.is("icon-plus")},{default:()=>[se(Sf,null,null)]})]):null,m=se("div",{class:[p.e("header"),p.is(e.tabPosition)]},[g,se(Yz,{ref:o,currentName:l.value,editable:e.editable,type:e.type,panes:Object.values(a),stretch:e.stretch,onTabClick:f,onTabRemove:s},null)]),v=se("div",{class:p.e("content")},[ke(n,"default")]);return se("div",{class:[p.b(),p.m(e.tabPosition),{[p.m("card")]:e.type==="card",[p.m("border-card")]:e.type==="border-card"}]},[...e.tabPosition!=="bottom"?[m,v]:[v,m]])}}});const Zz=Be({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),Jz=["id","aria-hidden","aria-labelledby"],Qz={name:"ElTabPane"},ej=be({...Qz,props:Zz,setup(e){const t=e,n="ElTabPane",r=Et(),i=ss(),u=qe(Af);u||Mn(n,"usage: <el-tabs><el-tab-pane /></el-tabs/>");const p=Pe("tab-pane"),o=ae(),a=ee(()=>t.closable||u.props.closable),l=u0(()=>{var d;return u.currentName.value===((d=t.name)!=null?d:o.value)}),h=ae(l.value),c=ee(()=>{var d;return(d=t.name)!=null?d:o.value}),f=u0(()=>!t.lazy||h.value||l.value);xe(l,d=>{d&&(h.value=!0)});const s=kt({uid:r.uid,slots:i,props:t,paneName:c,active:l,index:o,isClosable:a});return rt(()=>{u.registerPane(s)}),ha(()=>{u.unregisterPane(s.uid)}),(d,g)=>_(f)?Tt((N(),oe("div",{key:0,id:`pane-${_(c)}`,class:ce(_(p).b()),role:"tabpanel","aria-hidden":!_(l),"aria-labelledby":`tab-${_(c)}`},[ke(d.$slots,"default")],10,Jz)),[[Kt,_(l)]]):ge("v-if",!0)}});var z2=Re(ej,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-pane.vue"]]);const tj=wt(qz,{TabPane:z2}),kd=vr(z2),nj="ElUpload";class rj extends Error{constructor(t,n,r,i){super(t),this.name="UploadAjaxError",this.status=n,this.method=r,this.url=i}}function xy(e,t,n){let r;return n.response?r=`${n.response.error||n.response}`:n.responseText?r=`${n.responseText}`:r=`fail to ${t.method} ${e} ${n.status}`,new rj(r,n.status,t.method,e)}function ij(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const aj=e=>{typeof XMLHttpRequest>"u"&&Mn(nj,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,n=e.action;t.upload&&t.upload.addEventListener("progress",u=>{const p=u;p.percent=u.total>0?u.loaded/u.total*100:0,e.onProgress(p)});const r=new FormData;if(e.data)for(const[u,p]of Object.entries(e.data))Array.isArray(p)?r.append(u,...p):r.append(u,p);r.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{e.onError(xy(n,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(xy(n,e,t));e.onSuccess(ij(t))}),t.open(e.method,n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const i=e.headers||{};if(i instanceof Headers)i.forEach((u,p)=>t.setRequestHeader(p,u));else for(const[u,p]of Object.entries(i))Hr(p)||t.setRequestHeader(u,String(p));return t.send(r),t},j2=["text","picture","picture-card"];let oj=1;const V2=()=>Date.now()+oj++,U2=Be({action:{type:String,default:"#"},headers:{type:Oe(Object)},method:{type:String,default:"post"},data:{type:Object,default:()=>un({})},multiple:{type:Boolean,default:!1},name:{type:String,default:"file"},drag:{type:Boolean,default:!1},withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},type:{type:String,default:"select"},fileList:{type:Oe(Array),default:()=>un([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:j2,default:"text"},httpRequest:{type:Oe(Function),default:aj},disabled:Boolean,limit:Number}),sj=Be({...U2,beforeUpload:{type:Oe(Function),default:ot},beforeRemove:{type:Oe(Function)},onRemove:{type:Oe(Function),default:ot},onChange:{type:Oe(Function),default:ot},onPreview:{type:Oe(Function),default:ot},onSuccess:{type:Oe(Function),default:ot},onProgress:{type:Oe(Function),default:ot},onError:{type:Oe(Function),default:ot},onExceed:{type:Oe(Function),default:ot}}),lj=Be({files:{type:Oe(Array),default:()=>un([])},disabled:{type:Boolean,default:!1},handlePreview:{type:Oe(Function),default:ot},listType:{type:String,values:j2,default:"text"}}),uj={remove:e=>!!e},cj=["onKeydown"],fj=["src"],dj=["onClick"],hj=["onClick"],pj=["onClick"],mj={name:"ElUploadList"},gj=be({...mj,props:lj,emits:uj,setup(e,{emit:t}){const{t:n}=xn(),r=Pe("upload"),i=Pe("icon"),u=Pe("list"),p=ae(!1),o=a=>{t("remove",a)};return(a,l)=>(N(),ve(yk,{tag:"ul",class:ce([_(r).b("list"),_(r).bm("list",a.listType),_(r).is("disabled",a.disabled)]),name:_(u).b()},{default:ue(()=>[(N(!0),oe($e,null,zt(a.files,h=>(N(),oe("li",{key:h.uid||h.name,class:ce([_(r).be("list","item"),_(r).is(h.status),{focusing:p.value}]),tabindex:"0",onKeydown:Bt(c=>!a.disabled&&o(h),["delete"]),onFocus:l[0]||(l[0]=c=>p.value=!0),onBlur:l[1]||(l[1]=c=>p.value=!1),onClick:l[2]||(l[2]=c=>p.value=!1)},[ke(a.$slots,"default",{file:h},()=>[a.listType==="picture"||h.status!=="uploading"&&a.listType==="picture-card"?(N(),oe("img",{key:0,class:ce(_(r).be("list","item-thumbnail")),src:h.url,alt:""},null,10,fj)):ge("v-if",!0),h.status==="uploading"||a.listType!=="picture-card"?(N(),oe("div",{key:1,class:ce(_(r).be("list","item-info"))},[ne("a",{class:ce(_(r).be("list","item-name")),onClick:Qe(c=>a.handlePreview(h),["prevent"])},[se(_(De),{class:ce(_(i).m("document"))},{default:ue(()=>[se(_(R1))]),_:1},8,["class"]),ne("span",{class:ce(_(r).be("list","item-file-name"))},Ee(h.name),3)],10,dj),h.status==="uploading"?(N(),ve(_(N2),{key:0,type:a.listType==="picture-card"?"circle":"line","stroke-width":a.listType==="picture-card"?6:2,percentage:Number(h.percentage),style:je(a.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):ge("v-if",!0)],2)):ge("v-if",!0),ne("label",{class:ce(_(r).be("list","item-status-label"))},[a.listType==="text"?(N(),ve(_(De),{key:0,class:ce([_(i).m("upload-success"),_(i).m("circle-check")])},{default:ue(()=>[se(_(eu))]),_:1},8,["class"])):["picture-card","picture"].includes(a.listType)?(N(),ve(_(De),{key:1,class:ce([_(i).m("upload-success"),_(i).m("check")])},{default:ue(()=>[se(_(I1))]),_:1},8,["class"])):ge("v-if",!0)],2),a.disabled?ge("v-if",!0):(N(),ve(_(De),{key:2,class:ce(_(i).m("close")),onClick:c=>o(h)},{default:ue(()=>[se(_(Kr))]),_:2},1032,["class","onClick"])),ge(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),ge(" This is a bug which needs to be fixed "),ge(" TODO: Fix the incorrect navigation interaction "),a.disabled?ge("v-if",!0):(N(),oe("i",{key:3,class:ce(_(i).m("close-tip"))},Ee(_(n)("el.upload.deleteTip")),3)),a.listType==="picture-card"?(N(),oe("span",{key:4,class:ce(_(r).be("list","item-actions"))},[ne("span",{class:ce(_(r).be("list","item-preview")),onClick:c=>a.handlePreview(h)},[se(_(De),{class:ce(_(i).m("zoom-in"))},{default:ue(()=>[se(_(z1))]),_:1},8,["class"])],10,hj),a.disabled?ge("v-if",!0):(N(),oe("span",{key:0,class:ce(_(r).be("list","item-delete")),onClick:c=>o(h)},[se(_(De),{class:ce(_(i).m("delete"))},{default:ue(()=>[se(_(Ki))]),_:1},8,["class"])],10,pj))],2)):ge("v-if",!0)])],42,cj))),128)),ke(a.$slots,"append")]),_:3},8,["class","name"]))}});var Ty=Re(gj,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-list.vue"]]);const vj=Be({disabled:{type:Boolean,default:!1}}),yj={file:e=>We(e)},bj=["onDrop","onDragover"],_j={name:"ElUploadDrag"},wj=be({..._j,props:vj,emits:yj,setup(e,{emit:t}){const n=e,r="ElUploadDrag",i=qe(jw);i||Mn(r,"usage: <el-upload><el-upload-dragger /></el-upload>");const u=Pe("upload"),p=ae(!1),o=l=>{if(n.disabled)return;p.value=!1;const h=Array.from(l.dataTransfer.files),c=i.accept.value;if(!c){t("file",h);return}const f=h.filter(s=>{const{type:d,name:g}=s,m=g.includes(".")?`.${g.split(".").pop()}`:"",v=d.replace(/\/.*$/,"");return c.split(",").map(y=>y.trim()).filter(y=>y).some(y=>y.startsWith(".")?m===y:/\/\*$/.test(y)?v===y.replace(/\/\*$/,""):/^[^/]+\/[^/]+$/.test(y)?d===y:!1)});t("file",f)},a=()=>{n.disabled||(p.value=!0)};return(l,h)=>(N(),oe("div",{class:ce([_(u).b("dragger"),_(u).is("dragover",p.value)]),onDrop:Qe(o,["prevent"]),onDragover:Qe(a,["prevent"]),onDragleave:h[0]||(h[0]=Qe(c=>p.value=!1,["prevent"]))},[ke(l.$slots,"default")],42,bj))}});var Sj=Re(wj,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-dragger.vue"]]);const Cj=Be({...U2,beforeUpload:{type:Oe(Function),default:ot},onRemove:{type:Oe(Function),default:ot},onStart:{type:Oe(Function),default:ot},onSuccess:{type:Oe(Function),default:ot},onProgress:{type:Oe(Function),default:ot},onError:{type:Oe(Function),default:ot},onExceed:{type:Oe(Function),default:ot}}),xj=["onKeydown"],Tj=["name","multiple","accept"],kj={name:"ElUploadContent",inheritAttrs:!1},Ej=be({...kj,props:Cj,setup(e,{expose:t}){const n=e,r=Pe("upload"),i=mn({}),u=mn(),p=s=>{if(s.length===0)return;const{autoUpload:d,limit:g,fileList:m,multiple:v,onStart:y,onExceed:b}=n;if(g&&m.length+s.length>g){b(s,m);return}v||(s=s.slice(0,1));for(const w of s){const S=w;S.uid=V2(),y(S),d&&o(S)}},o=async s=>{if(u.value.value="",!n.beforeUpload)return a(s);let d;try{d=await n.beforeUpload(s)}catch{d=!1}if(d===!1){n.onRemove(s);return}let g=s;d instanceof Blob&&(d instanceof File?g=d:g=new File([d],s.name,{type:s.type})),a(Object.assign(g,{uid:s.uid}))},a=s=>{const{headers:d,data:g,method:m,withCredentials:v,name:y,action:b,onProgress:w,onSuccess:S,onError:C,httpRequest:T}=n,{uid:k}=s,A={headers:d||{},withCredentials:v,file:s,data:g,method:m,filename:y,action:b,onProgress:z=>{w(z,s)},onSuccess:z=>{S(z,s),delete i.value[k]},onError:z=>{C(z,s),delete i.value[k]}},P=T(A);i.value[k]=P,P instanceof Promise&&P.then(A.onSuccess,A.onError)},l=s=>{const d=s.target.files;!d||p(Array.from(d))},h=()=>{n.disabled||(u.value.value="",u.value.click())},c=()=>{h()};return t({abort:s=>{_6(i.value).filter(s?([g])=>String(s.uid)===g:()=>!0).forEach(([g,m])=>{m instanceof XMLHttpRequest&&m.abort(),delete i.value[g]})},upload:o}),(s,d)=>(N(),oe("div",{class:ce([_(r).b(),_(r).m(s.listType),_(r).is("drag",s.drag)]),tabindex:"0",onClick:h,onKeydown:Bt(Qe(c,["self"]),["enter","space"])},[s.drag?(N(),ve(Sj,{key:0,disabled:s.disabled,onFile:p},{default:ue(()=>[ke(s.$slots,"default")]),_:3},8,["disabled"])):ke(s.$slots,"default",{key:1}),ne("input",{ref_key:"inputRef",ref:u,class:ce(_(r).e("input")),name:s.name,multiple:s.multiple,accept:s.accept,type:"file",onChange:l,onClick:d[0]||(d[0]=Qe(()=>{},["stop"]))},null,42,Tj)],42,xj))}});var ky=Re(Ej,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-content.vue"]]);const Ey="ElUpload",Oj=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},Aj=(e,t)=>{const n=g6(e,"fileList",void 0,{passive:!0}),r=f=>n.value.find(s=>s.uid===f.uid);function i(f){var s;(s=t.value)==null||s.abort(f)}function u(f=["ready","uploading","success","fail"]){n.value=n.value.filter(s=>!f.includes(s.status))}const p=(f,s)=>{const d=r(s);!d||(console.error(f),d.status="fail",n.value.splice(n.value.indexOf(d),1),e.onError(f,d,n.value),e.onChange(d,n.value))},o=(f,s)=>{const d=r(s);!d||(e.onProgress(f,d,n.value),d.status="uploading",d.percentage=Math.round(f.percent))},a=(f,s)=>{const d=r(s);!d||(d.status="success",d.response=f,e.onSuccess(f,d,n.value),e.onChange(d,n.value))},l=f=>{const s={name:f.name,percentage:0,status:"ready",size:f.size,raw:f,uid:f.uid};if(e.listType==="picture-card"||e.listType==="picture")try{s.url=URL.createObjectURL(f)}catch(d){d.message,e.onError(d,s,n.value)}n.value=[...n.value,s],e.onChange(s,n.value)},h=async f=>{const s=f instanceof File?r(f):f;s||Mn(Ey,"file to be removed not found");const d=g=>{i(g);const m=n.value;m.splice(m.indexOf(g),1),e.onRemove(g,m),Oj(g)};e.beforeRemove?await e.beforeRemove(s,n.value)!==!1&&d(s):d(s)};function c(){n.value.filter(({status:f})=>f==="ready").forEach(({raw:f})=>{var s;return f&&((s=t.value)==null?void 0:s.upload(f))})}return xe(()=>e.listType,f=>{f!=="picture-card"&&f!=="picture"||(n.value=n.value.map(s=>{const{raw:d,url:g}=s;if(!g&&d)try{s.url=URL.createObjectURL(d)}catch(m){e.onError(m,s,n.value)}return s}))}),xe(n,f=>{for(const s of f)s.uid||(s.uid=V2()),s.status||(s.status="success")},{immediate:!0,deep:!0}),{uploadFiles:n,abort:i,clearFiles:u,handleError:p,handleProgress:o,handleStart:l,handleSuccess:a,handleRemove:h,submit:c}},Pj={name:"ElUpload"},Ij=be({...Pj,props:sj,setup(e,{expose:t}){const n=e,r=ss(),i=lo(),u=mn(),{abort:p,submit:o,clearFiles:a,uploadFiles:l,handleStart:h,handleError:c,handleRemove:f,handleSuccess:s,handleProgress:d}=Aj(n,u),g=ee(()=>n.listType==="picture-card"),m=ee(()=>({...n,fileList:l.value,onStart:h,onProgress:d,onSuccess:s,onError:c,onRemove:f}));return tn(()=>{l.value.forEach(({url:v})=>{v!=null&&v.startsWith("blob:")&&URL.revokeObjectURL(v)})}),vt(jw,{accept:tr(n,"accept")}),t({abort:p,submit:o,clearFiles:a,handleStart:h,handleRemove:f}),(v,y)=>(N(),oe("div",null,[_(g)&&v.showFileList?(N(),ve(Ty,{key:0,disabled:_(i),"list-type":v.listType,files:_(l),"handle-preview":v.onPreview,onRemove:_(f)},Pc({append:ue(()=>[se(ky,$n({ref_key:"uploadRef",ref:u},_(m)),{default:ue(()=>[_(r).trigger?ke(v.$slots,"trigger",{key:0}):ge("v-if",!0),!_(r).trigger&&_(r).default?ke(v.$slots,"default",{key:1}):ge("v-if",!0)]),_:3},16)]),_:2},[v.$slots.file?{name:"default",fn:ue(({file:b})=>[ke(v.$slots,"file",{file:b})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):ge("v-if",!0),!_(g)||_(g)&&!v.showFileList?(N(),ve(ky,$n({key:1,ref_key:"uploadRef",ref:u},_(m)),{default:ue(()=>[_(r).trigger?ke(v.$slots,"trigger",{key:0}):ge("v-if",!0),!_(r).trigger&&_(r).default?ke(v.$slots,"default",{key:1}):ge("v-if",!0)]),_:3},16)):ge("v-if",!0),v.$slots.trigger?ke(v.$slots,"default",{key:2}):ge("v-if",!0),ke(v.$slots,"tip"),!_(g)&&v.showFileList?(N(),ve(Ty,{key:3,disabled:_(i),"list-type":v.listType,files:_(l),"handle-preview":v.onPreview,onRemove:_(f)},Pc({_:2},[v.$slots.file?{name:"default",fn:ue(({file:b})=>[ke(v.$slots,"file",{file:b})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):ge("v-if",!0)]))}});var Mj=Re(Ij,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload.vue"]]);const Dm=wt(Mj),H2=["success","info","warning","error"],Fn=un({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:ht?document.body:void 0}),Lj=Be({customClass:{type:String,default:Fn.customClass},center:{type:Boolean,default:Fn.center},dangerouslyUseHTMLString:{type:Boolean,default:Fn.dangerouslyUseHTMLString},duration:{type:Number,default:Fn.duration},icon:{type:Qt,default:Fn.icon},id:{type:String,default:Fn.id},message:{type:Oe([String,Object,Function]),default:Fn.message},onClose:{type:Oe(Function),required:!1},showClose:{type:Boolean,default:Fn.showClose},type:{type:String,values:H2,default:Fn.type},offset:{type:Number,default:Fn.offset},zIndex:{type:Number,default:Fn.zIndex},grouping:{type:Boolean,default:Fn.grouping},repeatNum:{type:Number,default:Fn.repeatNum}}),Rj={destroy:()=>!0},Ur=Dp([]),Dj=e=>{const t=Ur.findIndex(i=>i.id===e),n=Ur[t];let r;return t>0&&(r=Ur[t-1]),{current:n,prev:r}},Fj=e=>{const{prev:t}=Dj(e);return t?t.vm.exposed.bottom.value:0},Bj=["id"],$j=["innerHTML"],Nj={name:"ElMessage"},zj=be({...Nj,props:Lj,emits:Rj,setup(e,{expose:t}){const n=e,{Close:r}=Ew,i=Pe("message"),u=ae(),p=ae(!1),o=ae(0);let a;const l=ee(()=>n.type?n.type==="error"?"danger":n.type:"info"),h=ee(()=>{const w=n.type;return{[i.bm("icon",w)]:w&&Uc[w]}}),c=ee(()=>n.icon||Uc[n.type]||""),f=ee(()=>Fj(n.id)),s=ee(()=>n.offset+f.value),d=ee(()=>o.value+s.value),g=ee(()=>({top:`${s.value}px`,zIndex:n.zIndex}));function m(){n.duration!==0&&({stop:a}=xl(()=>{y()},n.duration))}function v(){a==null||a()}function y(){p.value=!1}function b({code:w}){w===At.esc&&y()}return rt(()=>{m(),p.value=!0}),xe(()=>n.repeatNum,()=>{v(),m()}),_t(document,"keydown",b),Jr(u,()=>{o.value=u.value.getBoundingClientRect().height}),t({visible:p,bottom:d,close:y}),(w,S)=>(N(),ve(Vn,{name:_(i).b("fade"),onBeforeLeave:w.onClose,onAfterLeave:S[0]||(S[0]=C=>w.$emit("destroy")),persisted:""},{default:ue(()=>[Tt(ne("div",{id:w.id,ref_key:"messageRef",ref:u,class:ce([_(i).b(),{[_(i).m(w.type)]:w.type&&!w.icon},_(i).is("center",w.center),_(i).is("closable",w.showClose),w.customClass]),style:je(_(g)),role:"alert",onMouseenter:v,onMouseleave:m},[w.repeatNum>1?(N(),ve(_(DL),{key:0,value:w.repeatNum,type:_(l),class:ce(_(i).e("badge"))},null,8,["value","type","class"])):ge("v-if",!0),_(c)?(N(),ve(_(De),{key:1,class:ce([_(i).e("icon"),_(h)])},{default:ue(()=>[(N(),ve(xt(_(c))))]),_:1},8,["class"])):ge("v-if",!0),ke(w.$slots,"default",{},()=>[w.dangerouslyUseHTMLString?(N(),oe($e,{key:1},[ge(" Caution here, message could've been compromised, never use user's input as message "),ne("p",{class:ce(_(i).e("content")),innerHTML:w.message},null,10,$j)],2112)):(N(),oe("p",{key:0,class:ce(_(i).e("content"))},Ee(w.message),3))]),w.showClose?(N(),ve(_(De),{key:2,class:ce(_(i).e("closeBtn")),onClick:Qe(y,["stop"])},{default:ue(()=>[se(_(r))]),_:1},8,["class","onClick"])):ge("v-if",!0)],46,Bj),[[Kt,p.value]])]),_:3},8,["name","onBeforeLeave"]))}});var jj=Re(zj,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let Vj=1;const W2=e=>{const t=!e||Xe(e)||Si(e)||He(e)?{message:e}:e,n={...Fn,...t};if(!n.appendTo)n.appendTo=document.body;else if(Xe(n.appendTo)){let r=document.querySelector(n.appendTo);Ka(r)||(r=document.body),n.appendTo=r}return n},Uj=e=>{const t=Ur.indexOf(e);if(t===-1)return;Ur.splice(t,1);const{handler:n}=e;n.close()},Hj=({appendTo:e,...t},n)=>{const{nextZIndex:r}=ru(),i=`message_${Vj++}`,u=t.onClose,p=document.createElement("div"),o={...t,zIndex:r()+t.zIndex,id:i,onClose:()=>{u==null||u(),Uj(c)},onDestroy:()=>{$c(null,p)}},a=se(jj,o,He(o.message)||Si(o.message)?{default:He(o.message)?o.message:()=>o.message}:null);a.appContext=n||ns._context,$c(a,p),e.appendChild(p.firstElementChild);const l=a.component,c={id:i,vnode:a,vm:l,handler:{close:()=>{l.exposed.visible.value=!1}},props:a.component.props};return c},ns=(e={},t)=>{if(!ht)return{close:()=>{}};if(ut(Lh.max)&&Ur.length>=Lh.max)return{close:()=>{}};const n=W2(e);if(n.grouping&&Ur.length){const i=Ur.find(({vnode:u})=>{var p;return((p=u.props)==null?void 0:p.message)===n.message});if(i)return i.props.repeatNum+=1,i.props.type=n.type,i.handler}const r=Hj(n,t);return Ur.push(r),r.handler};H2.forEach(e=>{ns[e]=(t={},n)=>{const r=W2(t);return ns({...r,type:e},n)}});function Wj(e){for(const t of Ur)(!e||e===t.props.type)&&t.handler.close()}ns.closeAll=Wj;ns._context=null;const la=A6(ns,"$message"),Gj=be({name:"ElMessageBox",directives:{TrapFocus:lR},components:{ElButton:Je,ElFocusTrap:Em,ElInput:uo,ElOverlay:O2,ElIcon:De,...Ew},inheritAttrs:!1,props:{buttonSize:{type:String,validator:Of},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{t:n}=xn(),r=Pe("message-box"),i=ae(!1),{nextZIndex:u}=ru(),p=kt({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:null,inputValidator:null,inputErrorMessage:"",message:null,modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:u()}),o=ee(()=>{const $=p.type;return{[r.bm("icon",$)]:$&&Uc[$]}}),a=sa(),l=sa(),h=yr(ee(()=>e.buttonSize),{prop:!0,form:!0,formItem:!0}),c=ee(()=>p.icon||Uc[p.type]||""),f=ee(()=>!!p.message),s=ae(),d=ae(),g=ae(),m=ae(),v=ae(),y=ee(()=>p.confirmButtonClass);xe(()=>p.inputValue,async $=>{await Ge(),e.boxType==="prompt"&&$!==null&&A()},{immediate:!0}),xe(()=>i.value,$=>{var O,Y;$&&(e.boxType!=="prompt"&&(p.autofocus?g.value=(Y=(O=v.value)==null?void 0:O.$el)!=null?Y:s.value:g.value=s.value),p.zIndex=u()),e.boxType==="prompt"&&($?Ge().then(()=>{var re;m.value&&m.value.$el&&(p.autofocus?g.value=(re=P())!=null?re:s.value:g.value=s.value)}):(p.editorErrorMessage="",p.validateError=!1))});const b=ee(()=>e.draggable);Hw(s,d,b),rt(async()=>{await Ge(),e.closeOnHashChange&&window.addEventListener("hashchange",w)}),tn(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",w)});function w(){!i.value||(i.value=!1,Ge(()=>{p.action&&t("action",p.action)}))}const S=()=>{e.closeOnClickModal&&k(p.distinguishCancelAndClose?"close":"cancel")},C=ym(S),T=$=>{if(p.inputType!=="textarea")return $.preventDefault(),k("confirm")},k=$=>{var O;e.boxType==="prompt"&&$==="confirm"&&!A()||(p.action=$,p.beforeClose?(O=p.beforeClose)==null||O.call(p,$,p,w):w())},A=()=>{if(e.boxType==="prompt"){const $=p.inputPattern;if($&&!$.test(p.inputValue||""))return p.editorErrorMessage=p.inputErrorMessage||n("el.messagebox.error"),p.validateError=!0,!1;const O=p.inputValidator;if(typeof O=="function"){const Y=O(p.inputValue);if(Y===!1)return p.editorErrorMessage=p.inputErrorMessage||n("el.messagebox.error"),p.validateError=!0,!1;if(typeof Y=="string")return p.editorErrorMessage=Y,p.validateError=!0,!1}}return p.editorErrorMessage="",p.validateError=!1,!0},P=()=>{const $=m.value.$refs;return $.input||$.textarea},z=()=>{k("close")},I=()=>{e.closeOnPressEscape&&z()};return e.lockScroll&&Ww(i),q6(i),{...hr(p),ns:r,overlayEvent:C,visible:i,hasMessage:f,typeClass:o,contentId:a,inputId:l,btnSize:h,iconComponent:c,confirmButtonClasses:y,rootRef:s,focusStartRef:g,headerRef:d,inputRef:m,confirmRef:v,doClose:w,handleClose:z,onCloseRequested:I,handleWrapperClick:S,handleInputEnter:T,handleAction:k,t:n}}}),Yj=["aria-label","aria-describedby"],Kj=["aria-label"],Xj=["id"];function qj(e,t,n,r,i,u){const p=bt("el-icon"),o=bt("close"),a=bt("el-input"),l=bt("el-button"),h=bt("el-focus-trap"),c=bt("el-overlay");return N(),ve(Vn,{name:"fade-in-linear",onAfterLeave:t[11]||(t[11]=f=>e.$emit("vanish")),persisted:""},{default:ue(()=>[Tt(se(c,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:ue(()=>[ne("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:ce(`${e.ns.namespace.value}-overlay-message-box`),onClick:t[8]||(t[8]=(...f)=>e.overlayEvent.onClick&&e.overlayEvent.onClick(...f)),onMousedown:t[9]||(t[9]=(...f)=>e.overlayEvent.onMousedown&&e.overlayEvent.onMousedown(...f)),onMouseup:t[10]||(t[10]=(...f)=>e.overlayEvent.onMouseup&&e.overlayEvent.onMouseup(...f))},[se(h,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:ue(()=>[ne("div",{ref:"rootRef",class:ce([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:je(e.customStyle),tabindex:"-1",onClick:t[7]||(t[7]=Qe(()=>{},["stop"]))},[e.title!==null&&e.title!==void 0?(N(),oe("div",{key:0,ref:"headerRef",class:ce(e.ns.e("header"))},[ne("div",{class:ce(e.ns.e("title"))},[e.iconComponent&&e.center?(N(),ve(p,{key:0,class:ce([e.ns.e("status"),e.typeClass])},{default:ue(()=>[(N(),ve(xt(e.iconComponent)))]),_:1},8,["class"])):ge("v-if",!0),ne("span",null,Ee(e.title),1)],2),e.showClose?(N(),oe("button",{key:0,type:"button",class:ce(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:t[0]||(t[0]=f=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),onKeydown:t[1]||(t[1]=Bt(Qe(f=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[se(p,{class:ce(e.ns.e("close"))},{default:ue(()=>[se(o)]),_:1},8,["class"])],42,Kj)):ge("v-if",!0)],2)):ge("v-if",!0),ne("div",{id:e.contentId,class:ce(e.ns.e("content"))},[ne("div",{class:ce(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(N(),ve(p,{key:0,class:ce([e.ns.e("status"),e.typeClass])},{default:ue(()=>[(N(),ve(xt(e.iconComponent)))]),_:1},8,["class"])):ge("v-if",!0),e.hasMessage?(N(),oe("div",{key:1,class:ce(e.ns.e("message"))},[ke(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(N(),ve(xt(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(N(),ve(xt(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:ue(()=>[ze(Ee(e.dangerouslyUseHTMLString?"":e.message),1)]),_:1},8,["for"]))])],2)):ge("v-if",!0)],2),Tt(ne("div",{class:ce(e.ns.e("input"))},[se(a,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[2]||(t[2]=f=>e.inputValue=f),type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:ce({invalid:e.validateError}),onKeydown:Bt(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),ne("div",{class:ce(e.ns.e("errormsg")),style:je({visibility:e.editorErrorMessage?"visible":"hidden"})},Ee(e.editorErrorMessage),7)],2),[[Kt,e.showInput]])],10,Xj),ne("div",{class:ce(e.ns.e("btns"))},[e.showCancelButton?(N(),ve(l,{key:0,loading:e.cancelButtonLoading,class:ce([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:t[3]||(t[3]=f=>e.handleAction("cancel")),onKeydown:t[4]||(t[4]=Bt(Qe(f=>e.handleAction("cancel"),["prevent"]),["enter"]))},{default:ue(()=>[ze(Ee(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","class","round","size"])):ge("v-if",!0),Tt(se(l,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,class:ce([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:t[5]||(t[5]=f=>e.handleAction("confirm")),onKeydown:t[6]||(t[6]=Bt(Qe(f=>e.handleAction("confirm"),["prevent"]),["enter"]))},{default:ue(()=>[ze(Ee(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","class","round","disabled","size"]),[[Kt,e.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,Yj)]),_:3},8,["z-index","overlay-class","mask"]),[[Kt,e.visible]])]),_:3})}var Zj=Re(Gj,[["render",qj],["__file","/home/runner/work/element-plus/element-plus/packages/components/message-box/src/index.vue"]]);const Il=new Map,Jj=(e,t,n=null)=>{const r=se(Zj,e,He(e.message)||Si(e.message)?{default:He(e.message)?e.message:()=>e.message}:null);return r.appContext=n,$c(r,t),document.body.appendChild(t.firstElementChild),r.component},Qj=()=>document.createElement("div"),e9=(e,t)=>{const n=Qj();e.onVanish=()=>{$c(null,n),Il.delete(i)},e.onAction=u=>{const p=Il.get(i);let o;e.showInput?o={value:i.inputValue,action:u}:o=u,e.callback?e.callback(o,r.proxy):u==="cancel"||u==="close"?e.distinguishCancelAndClose&&u!=="cancel"?p.reject("close"):p.reject("cancel"):p.resolve(o)};const r=Jj(e,n,t),i=r.proxy;for(const u in e)lt(e,u)&&!lt(i.$props,u)&&(i[u]=e[u]);return i.visible=!0,i};function ps(e,t=null){if(!ht)return Promise.reject();let n;return Xe(e)||Si(e)?e={message:e}:n=e.callback,new Promise((r,i)=>{const u=e9(e,t!=null?t:ps._context);Il.set(u,{options:e,callback:n,resolve:r,reject:i})})}const t9=["alert","confirm","prompt"],n9={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};t9.forEach(e=>{ps[e]=r9(e)});function r9(e){return(t,n,r,i)=>{let u="";return it(n)?(r=n,u=""):xr(n)?u="":u=n,ps(Object.assign({title:u,message:t,type:"",...n9[e]},r,{boxType:e}),i)}}ps.close=()=>{Il.forEach((e,t)=>{t.doClose()}),Il.clear()};ps._context=null;const ji=ps;ji.install=e=>{ji._context=e._context,e.config.globalProperties.$msgbox=ji,e.config.globalProperties.$messageBox=ji,e.config.globalProperties.$alert=ji.alert,e.config.globalProperties.$confirm=ji.confirm,e.config.globalProperties.$prompt=ji.prompt};const G2=ji,Ft=us("options",()=>{const e=sn("options",ae({colorMode:x0({emitAuto:!0})})),t=sn("pageSize",25),n=sn("pageless","Disabled"),r=sn("allowLargerParams","Disabled"),i=sn("alsoRequestAvi","Enabled"),u=sn("keepImageGenOnDisconnect","Disabled"),p=sn("fetchGenerationProgress","Text"),o=sn("autoCarousel","Enabled"),a=sn("useBeta","Disabled"),l=sn("imageDownloadType","PNG"),h=sn("imageResizeMode","NoScale"),c=sn("baseURL","");return e.value.colorMode=x0({emitAuto:!0,initialValue:e.value.colorMode}),{options:e,pageSize:t,pageless:n,allowLargerParams:r,alsoRequestAvi:i,keepImageGenOnDisconnect:u,fetchGenerationProgress:p,autoCarousel:o,useBeta:a,imageDownloadType:l,imageResizeMode:h,baseURL:c}});/*! *****************************************************************************
|
|
Copyright (c) Microsoft Corporation.
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
purpose with or without fee is hereby granted.
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
PERFORMANCE OF THIS SOFTWARE.
|
|
***************************************************************************** */var dt=function(){return dt=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var u in n)Object.prototype.hasOwnProperty.call(n,u)&&(t[u]=n[u])}return t},dt.apply(this,arguments)};function Nh(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,u;r<i;r++)(u||!(r in t))&&(u||(u=Array.prototype.slice.call(t,0,r)),u[r]=t[r]);return e.concat(u||Array.prototype.slice.call(t))}var jt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,en=Object.keys,Cn=Array.isArray;typeof Promise<"u"&&!jt.Promise&&(jt.Promise=Promise);function Ln(e,t){return typeof t!="object"||en(t).forEach(function(n){e[n]=t[n]}),e}var Ml=Object.getPrototypeOf,i9={}.hasOwnProperty;function nr(e,t){return i9.call(e,t)}function rs(e,t){typeof t=="function"&&(t=t(Ml(e))),(typeof Reflect>"u"?en:Reflect.ownKeys)(t).forEach(function(n){ki(e,n,t[n])})}var Y2=Object.defineProperty;function ki(e,t,n,r){Y2(e,t,Ln(n&&nr(n,"get")&&typeof n.get=="function"?{get:n.get,set:n.set,configurable:!0}:{value:n,configurable:!0,writable:!0},r))}function ms(e){return{from:function(t){return e.prototype=Object.create(t.prototype),ki(e.prototype,"constructor",e),{extend:rs.bind(null,e.prototype)}}}}var a9=Object.getOwnPropertyDescriptor;function Fm(e,t){var n=a9(e,t),r;return n||(r=Ml(e))&&Fm(r,t)}var o9=[].slice;function Lf(e,t,n){return o9.call(e,t,n)}function K2(e,t){return t(e)}function Fs(e){if(!e)throw new Error("Assertion Failed")}function X2(e){jt.setImmediate?setImmediate(e):setTimeout(e,0)}function q2(e,t){return e.reduce(function(n,r,i){var u=t(r,i);return u&&(n[u[0]]=u[1]),n},{})}function s9(e,t,n){try{e.apply(null,n)}catch(r){t&&t(r)}}function bi(e,t){if(typeof t=="string"&&nr(e,t))return e[t];if(!t)return e;if(typeof t!="string"){for(var n=[],r=0,i=t.length;r<i;++r){var u=bi(e,t[r]);n.push(u)}return n}var p=t.indexOf(".");if(p!==-1){var o=e[t.substr(0,p)];return o==null?void 0:bi(o,t.substr(p+1))}}function kr(e,t,n){if(!(!e||t===void 0)&&!("isFrozen"in Object&&Object.isFrozen(e)))if(typeof t!="string"&&"length"in t){Fs(typeof n!="string"&&"length"in n);for(var r=0,i=t.length;r<i;++r)kr(e,t[r],n[r])}else{var u=t.indexOf(".");if(u!==-1){var p=t.substr(0,u),o=t.substr(u+1);if(o==="")n===void 0?Cn(e)&&!isNaN(parseInt(p))?e.splice(p,1):delete e[p]:e[p]=n;else{var a=e[p];(!a||!nr(e,p))&&(a=e[p]={}),kr(a,o,n)}}else n===void 0?Cn(e)&&!isNaN(parseInt(t))?e.splice(t,1):delete e[t]:e[t]=n}}function l9(e,t){typeof t=="string"?kr(e,t,void 0):"length"in t&&[].map.call(t,function(n){kr(e,n,void 0)})}function Z2(e){var t={};for(var n in e)nr(e,n)&&(t[n]=e[n]);return t}var u9=[].concat;function J2(e){return u9.apply([],e)}var Q2="BigUint64Array,BigInt64Array,Array,Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,FileSystemDirectoryHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(J2([8,16,32,64].map(function(e){return["Int","Uint","Float"].map(function(t){return t+e+"Array"})}))).filter(function(e){return jt[e]}),c9=Q2.map(function(e){return jt[e]});q2(Q2,function(e){return[e,!0]});var Gi=null;function su(e){Gi=typeof WeakMap<"u"&&new WeakMap;var t=zh(e);return Gi=null,t}function zh(e){if(!e||typeof e!="object")return e;var t=Gi&&Gi.get(e);if(t)return t;if(Cn(e)){t=[],Gi&&Gi.set(e,t);for(var n=0,r=e.length;n<r;++n)t.push(zh(e[n]))}else if(c9.indexOf(e.constructor)>=0)t=e;else{var i=Ml(e);t=i===Object.prototype?{}:Object.create(i),Gi&&Gi.set(e,t);for(var u in e)nr(e,u)&&(t[u]=zh(e[u]))}return t}var f9={}.toString;function jh(e){return f9.call(e).slice(8,-1)}var Vh=typeof Symbol<"u"?Symbol.iterator:"@@iterator",d9=typeof Vh=="symbol"?function(e){var t;return e!=null&&(t=e[Vh])&&t.apply(e)}:function(){return null},Io={};function gi(e){var t,n,r,i;if(arguments.length===1){if(Cn(e))return e.slice();if(this===Io&&typeof e=="string")return[e];if(i=d9(e)){for(n=[];r=i.next(),!r.done;)n.push(r.value);return n}if(e==null)return[e];if(t=e.length,typeof t=="number"){for(n=new Array(t);t--;)n[t]=e[t];return n}return[e]}for(t=arguments.length,n=new Array(t);t--;)n[t]=arguments[t];return n}var Bm=typeof Symbol<"u"?function(e){return e[Symbol.toStringTag]==="AsyncFunction"}:function(){return!1},Qr=typeof location<"u"&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function eS(e,t){Qr=e,tS=t}var tS=function(){return!0},h9=!new Error("").stack;function co(){if(h9)try{throw co.arguments,new Error}catch(e){return e}return new Error}function Uh(e,t){var n=e.stack;return n?(t=t||0,n.indexOf(e.name)===0&&(t+=(e.name+e.message).split(`
|
|
`).length),n.split(`
|
|
`).slice(t).filter(tS).map(function(r){return`
|
|
`+r}).join("")):""}var p9=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"],nS=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],$m=p9.concat(nS),m9={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function gs(e,t){this._e=co(),this.name=e,this.message=t}ms(gs).from(Error).extend({stack:{get:function(){return this._stack||(this._stack=this.name+": "+this.message+Uh(this._e,2))}},toString:function(){return this.name+": "+this.message}});function rS(e,t){return e+". Errors: "+Object.keys(t).map(function(n){return t[n].toString()}).filter(function(n,r,i){return i.indexOf(n)===r}).join(`
|
|
`)}function Kc(e,t,n,r){this._e=co(),this.failures=t,this.failedKeys=r,this.successCount=n,this.message=rS(e,t)}ms(Kc).from(gs);function nl(e,t){this._e=co(),this.name="BulkError",this.failures=Object.keys(t).map(function(n){return t[n]}),this.failuresByPos=t,this.message=rS(e,t)}ms(nl).from(gs);var Nm=$m.reduce(function(e,t){return e[t]=t+"Error",e},{}),g9=gs,Ze=$m.reduce(function(e,t){var n=t+"Error";function r(i,u){this._e=co(),this.name=n,i?typeof i=="string"?(this.message=""+i+(u?`
|
|
`+u:""),this.inner=u||null):typeof i=="object"&&(this.message=i.name+" "+i.message,this.inner=i):(this.message=m9[t]||n,this.inner=null)}return ms(r).from(g9),e[t]=r,e},{});Ze.Syntax=SyntaxError;Ze.Type=TypeError;Ze.Range=RangeError;var Oy=nS.reduce(function(e,t){return e[t+"Error"]=Ze[t],e},{});function v9(e,t){if(!e||e instanceof gs||e instanceof TypeError||e instanceof SyntaxError||!e.name||!Oy[e.name])return e;var n=new Oy[e.name](t||e.message,e);return"stack"in e&&ki(n,"stack",{get:function(){return this.inner.stack}}),n}var Rf=$m.reduce(function(e,t){return["Syntax","Type","Range"].indexOf(t)===-1&&(e[t+"Error"]=Ze[t]),e},{});Rf.ModifyError=Kc;Rf.DexieError=gs;Rf.BulkError=nl;function Mt(){}function lu(e){return e}function y9(e,t){return e==null||e===lu?t:function(n){return t(e(n))}}function Za(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function b9(e,t){return e===Mt?t:function(){var n=e.apply(this,arguments);n!==void 0&&(arguments[0]=n);var r=this.onsuccess,i=this.onerror;this.onsuccess=null,this.onerror=null;var u=t.apply(this,arguments);return r&&(this.onsuccess=this.onsuccess?Za(r,this.onsuccess):r),i&&(this.onerror=this.onerror?Za(i,this.onerror):i),u!==void 0?u:n}}function _9(e,t){return e===Mt?t:function(){e.apply(this,arguments);var n=this.onsuccess,r=this.onerror;this.onsuccess=this.onerror=null,t.apply(this,arguments),n&&(this.onsuccess=this.onsuccess?Za(n,this.onsuccess):n),r&&(this.onerror=this.onerror?Za(r,this.onerror):r)}}function w9(e,t){return e===Mt?t:function(n){var r=e.apply(this,arguments);Ln(n,r);var i=this.onsuccess,u=this.onerror;this.onsuccess=null,this.onerror=null;var p=t.apply(this,arguments);return i&&(this.onsuccess=this.onsuccess?Za(i,this.onsuccess):i),u&&(this.onerror=this.onerror?Za(u,this.onerror):u),r===void 0?p===void 0?void 0:p:Ln(r,p)}}function S9(e,t){return e===Mt?t:function(){return t.apply(this,arguments)===!1?!1:e.apply(this,arguments)}}function zm(e,t){return e===Mt?t:function(){var n=e.apply(this,arguments);if(n&&typeof n.then=="function"){for(var r=this,i=arguments.length,u=new Array(i);i--;)u[i]=arguments[i];return n.then(function(){return t.apply(r,u)})}return t.apply(this,arguments)}}var Ll={},C9=100,x9=20,iS=100,jm=typeof Promise>"u"?[]:function(){var e=Promise.resolve();if(typeof crypto>"u"||!crypto.subtle)return[e,Ml(e),e];var t=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[t,Ml(t),e]}(),Hh=jm[0],Xc=jm[1],Wh=jm[2],aS=Xc&&Xc.then,pc=Hh&&Hh.constructor,Vm=!!Wh,Gh=!1,T9=Wh?function(){Wh.then(Fu)}:jt.setImmediate?setImmediate.bind(null,Fu):jt.MutationObserver?function(){var e=document.createElement("div");new MutationObserver(function(){Fu(),e=null}).observe(e,{attributes:!0}),e.setAttribute("i","1")}:function(){setTimeout(Fu,0)},Rl=function(e,t){Bs.push([e,t]),qc&&(T9(),qc=!1)},Yh=!0,qc=!0,Ua=[],mc=[],Kh=null,Xh=lu,Vo={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:Iy,pgp:!1,env:{},finalize:function(){this.unhandleds.forEach(function(e){try{Iy(e[0],e[1])}catch{}})}},Ke=Vo,Bs=[],Ha=0,gc=[];function Fe(e){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");this._listeners=[],this.onuncatched=Mt,this._lib=!1;var t=this._PSD=Ke;if(Qr&&(this._stackHolder=co(),this._prev=null,this._numPrev=0),typeof e!="function"){if(e!==Ll)throw new TypeError("Not a function");this._state=arguments[1],this._value=arguments[2],this._state===!1&&Zh(this,this._value);return}this._state=null,this._value=null,++t.ref,sS(this,e)}var qh={get:function(){var e=Ke,t=Zc;function n(r,i){var u=this,p=!e.global&&(e!==Ke||t!==Zc),o=p&&!Ei(),a=new Fe(function(l,h){Um(u,new oS(Qc(r,e,p,o),Qc(i,e,p,o),l,h,e))});return Qr&&cS(a,this),a}return n.prototype=Ll,n},set:function(e){ki(this,"then",e&&e.prototype===Ll?qh:{get:function(){return e},set:qh.set})}};rs(Fe.prototype,{then:qh,_then:function(e,t){Um(this,new oS(null,null,e,t,Ke))},catch:function(e){if(arguments.length===1)return this.then(null,e);var t=arguments[0],n=arguments[1];return typeof t=="function"?this.then(null,function(r){return r instanceof t?n(r):vc(r)}):this.then(null,function(r){return r&&r.name===t?n(r):vc(r)})},finally:function(e){return this.then(function(t){return e(),t},function(t){return e(),vc(t)})},stack:{get:function(){if(this._stack)return this._stack;try{Gh=!0;var e=uS(this,[],x9),t=e.join(`
|
|
From previous: `);return this._state!==null&&(this._stack=t),t}finally{Gh=!1}}},timeout:function(e,t){var n=this;return e<1/0?new Fe(function(r,i){var u=setTimeout(function(){return i(new Ze.Timeout(t))},e);n.then(r,i).finally(clearTimeout.bind(null,u))}):this}});typeof Symbol<"u"&&Symbol.toStringTag&&ki(Fe.prototype,Symbol.toStringTag,"Dexie.Promise");Vo.env=fS();function oS(e,t,n,r,i){this.onFulfilled=typeof e=="function"?e:null,this.onRejected=typeof t=="function"?t:null,this.resolve=n,this.reject=r,this.psd=i}rs(Fe,{all:function(){var e=gi.apply(null,arguments).map(Jc);return new Fe(function(t,n){e.length===0&&t([]);var r=e.length;e.forEach(function(i,u){return Fe.resolve(i).then(function(p){e[u]=p,--r||t(e)},n)})})},resolve:function(e){if(e instanceof Fe)return e;if(e&&typeof e.then=="function")return new Fe(function(n,r){e.then(n,r)});var t=new Fe(Ll,!0,e);return cS(t,Kh),t},reject:vc,race:function(){var e=gi.apply(null,arguments).map(Jc);return new Fe(function(t,n){e.map(function(r){return Fe.resolve(r).then(t,n)})})},PSD:{get:function(){return Ke},set:function(e){return Ke=e}},totalEchoes:{get:function(){return Zc}},newPSD:ua,usePSD:ys,scheduler:{get:function(){return Rl},set:function(e){Rl=e}},rejectionMapper:{get:function(){return Xh},set:function(e){Xh=e}},follow:function(e,t){return new Fe(function(n,r){return ua(function(i,u){var p=Ke;p.unhandleds=[],p.onunhandled=u,p.finalize=Za(function(){var o=this;E9(function(){o.unhandleds.length===0?i():u(o.unhandleds[0])})},p.finalize),e()},t,n,r)})}});pc&&(pc.allSettled&&ki(Fe,"allSettled",function(){var e=gi.apply(null,arguments).map(Jc);return new Fe(function(t){e.length===0&&t([]);var n=e.length,r=new Array(n);e.forEach(function(i,u){return Fe.resolve(i).then(function(p){return r[u]={status:"fulfilled",value:p}},function(p){return r[u]={status:"rejected",reason:p}}).then(function(){return--n||t(r)})})})}),pc.any&&typeof AggregateError<"u"&&ki(Fe,"any",function(){var e=gi.apply(null,arguments).map(Jc);return new Fe(function(t,n){e.length===0&&n(new AggregateError([]));var r=e.length,i=new Array(r);e.forEach(function(u,p){return Fe.resolve(u).then(function(o){return t(o)},function(o){i[p]=o,--r||n(new AggregateError(i))})})})}));function sS(e,t){try{t(function(n){if(e._state===null){if(n===e)throw new TypeError("A promise cannot be resolved with itself.");var r=e._lib&&uu();n&&typeof n.then=="function"?sS(e,function(i,u){n instanceof Fe?n._then(i,u):n.then(i,u)}):(e._state=!0,e._value=n,lS(e)),r&&cu()}},Zh.bind(null,e))}catch(n){Zh(e,n)}}function Zh(e,t){if(mc.push(t),e._state===null){var n=e._lib&&uu();t=Xh(t),e._state=!1,e._value=t,Qr&&t!==null&&typeof t=="object"&&!t._promise&&s9(function(){var r=Fm(t,"stack");t._promise=e,ki(t,"stack",{get:function(){return Gh?r&&(r.get?r.get.apply(t):r.value):e.stack}})}),O9(e),lS(e),n&&cu()}}function lS(e){var t=e._listeners;e._listeners=[];for(var n=0,r=t.length;n<r;++n)Um(e,t[n]);var i=e._PSD;--i.ref||i.finalize(),Ha===0&&(++Ha,Rl(function(){--Ha===0&&Hm()},[]))}function Um(e,t){if(e._state===null){e._listeners.push(t);return}var n=e._state?t.onFulfilled:t.onRejected;if(n===null)return(e._state?t.resolve:t.reject)(e._value);++t.psd.ref,++Ha,Rl(k9,[n,e,t])}function k9(e,t,n){try{Kh=t;var r,i=t._value;t._state?r=e(i):(mc.length&&(mc=[]),r=e(i),mc.indexOf(i)===-1&&A9(t)),n.resolve(r)}catch(u){n.reject(u)}finally{Kh=null,--Ha===0&&Hm(),--n.psd.ref||n.psd.finalize()}}function uS(e,t,n){if(t.length===n)return t;var r="";if(e._state===!1){var i=e._value,u,p;i!=null?(u=i.name||"Error",p=i.message||i,r=Uh(i,0)):(u=i,p=""),t.push(u+(p?": "+p:"")+r)}return Qr&&(r=Uh(e._stackHolder,2),r&&t.indexOf(r)===-1&&t.push(r),e._prev&&uS(e._prev,t,n)),t}function cS(e,t){var n=t?t._numPrev+1:0;n<C9&&(e._prev=t,e._numPrev=n)}function Fu(){uu()&&cu()}function uu(){var e=Yh;return Yh=!1,qc=!1,e}function cu(){var e,t,n;do for(;Bs.length>0;)for(e=Bs,Bs=[],n=e.length,t=0;t<n;++t){var r=e[t];r[0].apply(null,r[1])}while(Bs.length>0);Yh=!0,qc=!0}function Hm(){var e=Ua;Ua=[],e.forEach(function(r){r._PSD.onunhandled.call(null,r._value,r)});for(var t=gc.slice(0),n=t.length;n;)t[--n]()}function E9(e){function t(){e(),gc.splice(gc.indexOf(t),1)}gc.push(t),++Ha,Rl(function(){--Ha===0&&Hm()},[])}function O9(e){Ua.some(function(t){return t._value===e._value})||Ua.push(e)}function A9(e){for(var t=Ua.length;t;)if(Ua[--t]._value===e._value){Ua.splice(t,1);return}}function vc(e){return new Fe(Ll,!1,e)}function Ut(e,t){var n=Ke;return function(){var r=uu(),i=Ke;try{return ca(n,!0),e.apply(this,arguments)}catch(u){t&&t(u)}finally{ca(i,!1),r&&cu()}}}var Sn={awaits:0,echoes:0,id:0},P9=0,yc=[],Ed=0,Zc=0,I9=0;function ua(e,t,n,r){var i=Ke,u=Object.create(i);u.parent=i,u.ref=0,u.global=!1,u.id=++I9;var p=Vo.env;u.env=Vm?{Promise:Fe,PromiseProp:{value:Fe,configurable:!0,writable:!0},all:Fe.all,race:Fe.race,allSettled:Fe.allSettled,any:Fe.any,resolve:Fe.resolve,reject:Fe.reject,nthen:Ay(p.nthen,u),gthen:Ay(p.gthen,u)}:{},t&&Ln(u,t),++i.ref,u.finalize=function(){--this.parent.ref||this.parent.finalize()};var o=ys(u,e,n,r);return u.ref===0&&u.finalize(),o}function vs(){return Sn.id||(Sn.id=++P9),++Sn.awaits,Sn.echoes+=iS,Sn.id}function Ei(){return Sn.awaits?(--Sn.awaits===0&&(Sn.id=0),Sn.echoes=Sn.awaits*iS,!0):!1}(""+aS).indexOf("[native code]")===-1&&(vs=Ei=Mt);function Jc(e){return Sn.echoes&&e&&e.constructor===pc?(vs(),e.then(function(t){return Ei(),t},function(t){return Ei(),rn(t)})):e}function M9(e){++Zc,(!Sn.echoes||--Sn.echoes===0)&&(Sn.echoes=Sn.id=0),yc.push(Ke),ca(e,!0)}function L9(){var e=yc[yc.length-1];yc.pop(),ca(e,!1)}function ca(e,t){var n=Ke;if((t?Sn.echoes&&(!Ed++||e!==Ke):Ed&&(!--Ed||e!==Ke))&&dS(t?M9.bind(null,e):L9),e!==Ke&&(Ke=e,n===Vo&&(Vo.env=fS()),Vm)){var r=Vo.env.Promise,i=e.env;Xc.then=i.nthen,r.prototype.then=i.gthen,(n.global||e.global)&&(Object.defineProperty(jt,"Promise",i.PromiseProp),r.all=i.all,r.race=i.race,r.resolve=i.resolve,r.reject=i.reject,i.allSettled&&(r.allSettled=i.allSettled),i.any&&(r.any=i.any))}}function fS(){var e=jt.Promise;return Vm?{Promise:e,PromiseProp:Object.getOwnPropertyDescriptor(jt,"Promise"),all:e.all,race:e.race,allSettled:e.allSettled,any:e.any,resolve:e.resolve,reject:e.reject,nthen:Xc.then,gthen:e.prototype.then}:{}}function ys(e,t,n,r,i){var u=Ke;try{return ca(e,!0),t(n,r,i)}finally{ca(u,!1)}}function dS(e){aS.call(Hh,e)}function Qc(e,t,n,r){return typeof e!="function"?e:function(){var i=Ke;n&&vs(),ca(t,!0);try{return e.apply(this,arguments)}finally{ca(i,!1),r&&dS(Ei)}}}function Ay(e,t){return function(n,r){return e.call(this,Qc(n,t),Qc(r,t))}}var Py="unhandledrejection";function Iy(e,t){var n;try{n=t.onuncatched(e)}catch{}if(n!==!1)try{var r,i={promise:t,reason:e};if(jt.document&&document.createEvent?(r=document.createEvent("Event"),r.initEvent(Py,!0,!0),Ln(r,i)):jt.CustomEvent&&(r=new CustomEvent(Py,{detail:i}),Ln(r,i)),r&&jt.dispatchEvent&&(dispatchEvent(r),!jt.PromiseRejectionEvent&&jt.onunhandledrejection))try{jt.onunhandledrejection(r)}catch{}Qr&&r&&!r.defaultPrevented&&console.warn("Unhandled rejection: "+(e.stack||e))}catch{}}var rn=Fe.reject;function Jh(e,t,n,r){if(!e.idbdb||!e._state.openComplete&&!Ke.letThrough&&!e._vip){if(e._state.openComplete)return rn(new Ze.DatabaseClosed(e._state.dbOpenError));if(!e._state.isBeingOpened){if(!e._options.autoOpen)return rn(new Ze.DatabaseClosed);e.open().catch(Mt)}return e._state.dbReadyPromise.then(function(){return Jh(e,t,n,r)})}else{var i=e._createTransaction(t,n,e._dbSchema);try{i.create(),e._state.PR1398_maxLoop=3}catch(u){return u.name===Nm.InvalidState&&e.isOpen()&&--e._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),e._close(),e.open().then(function(){return Jh(e,t,n,r)})):rn(u)}return i._promise(t,function(u,p){return ua(function(){return Ke.trans=i,r(u,p,i)})}).then(function(u){return i._completion.then(function(){return u})})}}var My="3.2.7",Da=String.fromCharCode(65535),Qh=-1/0,oi="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",hS="String expected.",rl=[],Df=typeof navigator<"u"&&/(MSIE|Trident|Edge)/.test(navigator.userAgent),R9=Df,D9=Df,pS=function(e){return!/(dexie\.js|dexie\.min\.js)/.test(e)},Ff="__dbnames",Od="readonly",Ad="readwrite";function Ja(e,t){return e?t?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:e:t}var mS={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function Bu(e){return typeof e=="string"&&!/\./.test(e)?function(t){return t[e]===void 0&&e in t&&(t=su(t),delete t[e]),t}:function(t){return t}}var F9=function(){function e(){}return e.prototype._trans=function(t,n,r){var i=this._tx||Ke.trans,u=this.name;function p(a,l,h){if(!h.schema[u])throw new Ze.NotFound("Table "+u+" not part of transaction");return n(h.idbtrans,h)}var o=uu();try{return i&&i.db===this.db?i===Ke.trans?i._promise(t,p,r):ua(function(){return i._promise(t,p,r)},{trans:i,transless:Ke.transless||Ke}):Jh(this.db,t,[this.name],p)}finally{o&&cu()}},e.prototype.get=function(t,n){var r=this;return t&&t.constructor===Object?this.where(t).first(n):this._trans("readonly",function(i){return r.core.get({trans:i,key:t}).then(function(u){return r.hook.reading.fire(u)})}).then(n)},e.prototype.where=function(t){if(typeof t=="string")return new this.db.WhereClause(this,t);if(Cn(t))return new this.db.WhereClause(this,"["+t.join("+")+"]");var n=en(t);if(n.length===1)return this.where(n[0]).equals(t[n[0]]);var r=this.schema.indexes.concat(this.schema.primKey).filter(function(c){if(c.compound&&n.every(function(s){return c.keyPath.indexOf(s)>=0})){for(var f=0;f<n.length;++f)if(n.indexOf(c.keyPath[f])===-1)return!1;return!0}return!1}).sort(function(c,f){return c.keyPath.length-f.keyPath.length})[0];if(r&&this.db._maxKey!==Da){var i=r.keyPath.slice(0,n.length);return this.where(i).equals(i.map(function(c){return t[c]}))}!r&&Qr&&console.warn("The query "+JSON.stringify(t)+" on "+this.name+" would benefit of a "+("compound index ["+n.join("+")+"]"));var u=this.schema.idxByName,p=this.db._deps.indexedDB;function o(c,f){try{return p.cmp(c,f)===0}catch{return!1}}var a=n.reduce(function(c,f){var s=c[0],d=c[1],g=u[f],m=t[f];return[s||g,s||!g?Ja(d,g&&g.multi?function(v){var y=bi(v,f);return Cn(y)&&y.some(function(b){return o(m,b)})}:function(v){return o(m,bi(v,f))}):d]},[null,null]),l=a[0],h=a[1];return l?this.where(l.name).equals(t[l.keyPath]).filter(h):r?this.filter(h):this.where(n).equals("")},e.prototype.filter=function(t){return this.toCollection().and(t)},e.prototype.count=function(t){return this.toCollection().count(t)},e.prototype.offset=function(t){return this.toCollection().offset(t)},e.prototype.limit=function(t){return this.toCollection().limit(t)},e.prototype.each=function(t){return this.toCollection().each(t)},e.prototype.toArray=function(t){return this.toCollection().toArray(t)},e.prototype.toCollection=function(){return new this.db.Collection(new this.db.WhereClause(this))},e.prototype.orderBy=function(t){return new this.db.Collection(new this.db.WhereClause(this,Cn(t)?"["+t.join("+")+"]":t))},e.prototype.reverse=function(){return this.toCollection().reverse()},e.prototype.mapToClass=function(t){this.schema.mappedClass=t;var n=function(r){if(!r)return r;var i=Object.create(t.prototype);for(var u in r)if(nr(r,u))try{i[u]=r[u]}catch{}return i};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=n,this.hook("reading",n),t},e.prototype.defineClass=function(){function t(n){Ln(this,n)}return this.mapToClass(t)},e.prototype.add=function(t,n){var r=this,i=this.schema.primKey,u=i.auto,p=i.keyPath,o=t;return p&&u&&(o=Bu(p)(t)),this._trans("readwrite",function(a){return r.core.mutate({trans:a,type:"add",keys:n!=null?[n]:null,values:[o]})}).then(function(a){return a.numFailures?Fe.reject(a.failures[0]):a.lastResult}).then(function(a){if(p)try{kr(t,p,a)}catch{}return a})},e.prototype.update=function(t,n){if(typeof t=="object"&&!Cn(t)){var r=bi(t,this.schema.primKey.keyPath);if(r===void 0)return rn(new Ze.InvalidArgument("Given object does not contain its primary key"));try{typeof n!="function"?en(n).forEach(function(i){kr(t,i,n[i])}):n(t,{value:t,primKey:r})}catch{}return this.where(":id").equals(r).modify(n)}else return this.where(":id").equals(t).modify(n)},e.prototype.put=function(t,n){var r=this,i=this.schema.primKey,u=i.auto,p=i.keyPath,o=t;return p&&u&&(o=Bu(p)(t)),this._trans("readwrite",function(a){return r.core.mutate({trans:a,type:"put",values:[o],keys:n!=null?[n]:null})}).then(function(a){return a.numFailures?Fe.reject(a.failures[0]):a.lastResult}).then(function(a){if(p)try{kr(t,p,a)}catch{}return a})},e.prototype.delete=function(t){var n=this;return this._trans("readwrite",function(r){return n.core.mutate({trans:r,type:"delete",keys:[t]})}).then(function(r){return r.numFailures?Fe.reject(r.failures[0]):void 0})},e.prototype.clear=function(){var t=this;return this._trans("readwrite",function(n){return t.core.mutate({trans:n,type:"deleteRange",range:mS})}).then(function(n){return n.numFailures?Fe.reject(n.failures[0]):void 0})},e.prototype.bulkGet=function(t){var n=this;return this._trans("readonly",function(r){return n.core.getMany({keys:t,trans:r}).then(function(i){return i.map(function(u){return n.hook.reading.fire(u)})})})},e.prototype.bulkAdd=function(t,n,r){var i=this,u=Array.isArray(n)?n:void 0;r=r||(u?void 0:n);var p=r?r.allKeys:void 0;return this._trans("readwrite",function(o){var a=i.schema.primKey,l=a.auto,h=a.keyPath;if(h&&u)throw new Ze.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(u&&u.length!==t.length)throw new Ze.InvalidArgument("Arguments objects and keys must have the same length");var c=t.length,f=h&&l?t.map(Bu(h)):t;return i.core.mutate({trans:o,type:"add",keys:u,values:f,wantResults:p}).then(function(s){var d=s.numFailures,g=s.results,m=s.lastResult,v=s.failures,y=p?g:m;if(d===0)return y;throw new nl(i.name+".bulkAdd(): "+d+" of "+c+" operations failed",v)})})},e.prototype.bulkPut=function(t,n,r){var i=this,u=Array.isArray(n)?n:void 0;r=r||(u?void 0:n);var p=r?r.allKeys:void 0;return this._trans("readwrite",function(o){var a=i.schema.primKey,l=a.auto,h=a.keyPath;if(h&&u)throw new Ze.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(u&&u.length!==t.length)throw new Ze.InvalidArgument("Arguments objects and keys must have the same length");var c=t.length,f=h&&l?t.map(Bu(h)):t;return i.core.mutate({trans:o,type:"put",keys:u,values:f,wantResults:p}).then(function(s){var d=s.numFailures,g=s.results,m=s.lastResult,v=s.failures,y=p?g:m;if(d===0)return y;throw new nl(i.name+".bulkPut(): "+d+" of "+c+" operations failed",v)})})},e.prototype.bulkDelete=function(t){var n=this,r=t.length;return this._trans("readwrite",function(i){return n.core.mutate({trans:i,type:"delete",keys:t})}).then(function(i){var u=i.numFailures,p=i.lastResult,o=i.failures;if(u===0)return p;throw new nl(n.name+".bulkDelete(): "+u+" of "+r+" operations failed",o)})},e}();function fu(e){var t={},n=function(o,a){if(a){for(var l=arguments.length,h=new Array(l-1);--l;)h[l-1]=arguments[l];return t[o].subscribe.apply(null,h),e}else if(typeof o=="string")return t[o]};n.addEventType=u;for(var r=1,i=arguments.length;r<i;++r)u(arguments[r]);return n;function u(o,a,l){if(typeof o=="object")return p(o);a||(a=S9),l||(l=Mt);var h={subscribers:[],fire:l,subscribe:function(c){h.subscribers.indexOf(c)===-1&&(h.subscribers.push(c),h.fire=a(h.fire,c))},unsubscribe:function(c){h.subscribers=h.subscribers.filter(function(f){return f!==c}),h.fire=h.subscribers.reduce(a,l)}};return t[o]=n[o]=h,h}function p(o){en(o).forEach(function(a){var l=o[a];if(Cn(l))u(a,o[a][0],o[a][1]);else if(l==="asap")var h=u(a,lu,function(){for(var f=arguments.length,s=new Array(f);f--;)s[f]=arguments[f];h.subscribers.forEach(function(d){X2(function(){d.apply(null,s)})})});else throw new Ze.InvalidArgument("Invalid event config")})}}function du(e,t){return ms(t).from({prototype:e}),t}function B9(e){return du(F9.prototype,function(n,r,i){this.db=e,this._tx=i,this.name=n,this.schema=r,this.hook=e._allTables[n]?e._allTables[n].hook:fu(null,{creating:[b9,Mt],reading:[y9,lu],updating:[w9,Mt],deleting:[_9,Mt]})})}function Co(e,t){return!(e.filter||e.algorithm||e.or)&&(t?e.justLimit:!e.replayFilter)}function Pd(e,t){e.filter=Ja(e.filter,t)}function Id(e,t,n){var r=e.replayFilter;e.replayFilter=r?function(){return Ja(r(),t())}:t,e.justLimit=n&&!r}function $9(e,t){e.isMatch=Ja(e.isMatch,t)}function bc(e,t){if(e.isPrimKey)return t.primaryKey;var n=t.getIndexByKeyPath(e.index);if(!n)throw new Ze.Schema("KeyPath "+e.index+" on object store "+t.name+" is not indexed");return n}function Ly(e,t,n){var r=bc(e,t.schema);return t.openCursor({trans:n,values:!e.keysOnly,reverse:e.dir==="prev",unique:!!e.unique,query:{index:r,range:e.range}})}function $u(e,t,n,r){var i=e.replayFilter?Ja(e.filter,e.replayFilter()):e.filter;if(e.or){var u={},p=function(o,a,l){if(!i||i(a,l,function(f){return a.stop(f)},function(f){return a.fail(f)})){var h=a.primaryKey,c=""+h;c==="[object ArrayBuffer]"&&(c=""+new Uint8Array(h)),nr(u,c)||(u[c]=!0,t(o,a,l))}};return Promise.all([e.or._iterate(p,n),Ry(Ly(e,r,n),e.algorithm,p,!e.keysOnly&&e.valueMapper)])}else return Ry(Ly(e,r,n),Ja(e.algorithm,i),t,!e.keysOnly&&e.valueMapper)}function Ry(e,t,n,r){var i=r?function(p,o,a){return n(r(p),o,a)}:n,u=Ut(i);return e.then(function(p){if(p)return p.start(function(){var o=function(){return p.continue()};(!t||t(p,function(a){return o=a},function(a){p.stop(a),o=Mt},function(a){p.fail(a),o=Mt}))&&u(p.value,p,function(a){return o=a}),o()})})}function Pn(e,t){try{var n=Dy(e),r=Dy(t);if(n!==r)return n==="Array"?1:r==="Array"?-1:n==="binary"?1:r==="binary"?-1:n==="string"?1:r==="string"?-1:n==="Date"?1:r!=="Date"?NaN:-1;switch(n){case"number":case"Date":case"string":return e>t?1:e<t?-1:0;case"binary":return z9(Fy(e),Fy(t));case"Array":return N9(e,t)}}catch{}return NaN}function N9(e,t){for(var n=e.length,r=t.length,i=n<r?n:r,u=0;u<i;++u){var p=Pn(e[u],t[u]);if(p!==0)return p}return n===r?0:n<r?-1:1}function z9(e,t){for(var n=e.length,r=t.length,i=n<r?n:r,u=0;u<i;++u)if(e[u]!==t[u])return e[u]<t[u]?-1:1;return n===r?0:n<r?-1:1}function Dy(e){var t=typeof e;if(t!=="object")return t;if(ArrayBuffer.isView(e))return"binary";var n=jh(e);return n==="ArrayBuffer"?"binary":n}function Fy(e){return e instanceof Uint8Array?e:ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(e)}var j9=function(){function e(){}return e.prototype._read=function(t,n){var r=this._ctx;return r.error?r.table._trans(null,rn.bind(null,r.error)):r.table._trans("readonly",t).then(n)},e.prototype._write=function(t){var n=this._ctx;return n.error?n.table._trans(null,rn.bind(null,n.error)):n.table._trans("readwrite",t,"locked")},e.prototype._addAlgorithm=function(t){var n=this._ctx;n.algorithm=Ja(n.algorithm,t)},e.prototype._iterate=function(t,n){return $u(this._ctx,t,n,this._ctx.table.core)},e.prototype.clone=function(t){var n=Object.create(this.constructor.prototype),r=Object.create(this._ctx);return t&&Ln(r,t),n._ctx=r,n},e.prototype.raw=function(){return this._ctx.valueMapper=null,this},e.prototype.each=function(t){var n=this._ctx;return this._read(function(r){return $u(n,t,r,n.table.core)})},e.prototype.count=function(t){var n=this;return this._read(function(r){var i=n._ctx,u=i.table.core;if(Co(i,!0))return u.count({trans:r,query:{index:bc(i,u.schema),range:i.range}}).then(function(o){return Math.min(o,i.limit)});var p=0;return $u(i,function(){return++p,!1},r,u).then(function(){return p})}).then(t)},e.prototype.sortBy=function(t,n){var r=t.split(".").reverse(),i=r[0],u=r.length-1;function p(l,h){return h?p(l[r[h]],h-1):l[i]}var o=this._ctx.dir==="next"?1:-1;function a(l,h){var c=p(l,u),f=p(h,u);return c<f?-o:c>f?o:0}return this.toArray(function(l){return l.sort(a)}).then(n)},e.prototype.toArray=function(t){var n=this;return this._read(function(r){var i=n._ctx;if(i.dir==="next"&&Co(i,!0)&&i.limit>0){var u=i.valueMapper,p=bc(i,i.table.core.schema);return i.table.core.query({trans:r,limit:i.limit,values:!0,query:{index:p,range:i.range}}).then(function(a){var l=a.result;return u?l.map(u):l})}else{var o=[];return $u(i,function(a){return o.push(a)},r,i.table.core).then(function(){return o})}},t)},e.prototype.offset=function(t){var n=this._ctx;return t<=0?this:(n.offset+=t,Co(n)?Id(n,function(){var r=t;return function(i,u){return r===0?!0:r===1?(--r,!1):(u(function(){i.advance(r),r=0}),!1)}}):Id(n,function(){var r=t;return function(){return--r<0}}),this)},e.prototype.limit=function(t){return this._ctx.limit=Math.min(this._ctx.limit,t),Id(this._ctx,function(){var n=t;return function(r,i,u){return--n<=0&&i(u),n>=0}},!0),this},e.prototype.until=function(t,n){return Pd(this._ctx,function(r,i,u){return t(r.value)?(i(u),n):!0}),this},e.prototype.first=function(t){return this.limit(1).toArray(function(n){return n[0]}).then(t)},e.prototype.last=function(t){return this.reverse().first(t)},e.prototype.filter=function(t){return Pd(this._ctx,function(n){return t(n.value)}),$9(this._ctx,t),this},e.prototype.and=function(t){return this.filter(t)},e.prototype.or=function(t){return new this.db.WhereClause(this._ctx.table,t,this)},e.prototype.reverse=function(){return this._ctx.dir=this._ctx.dir==="prev"?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this},e.prototype.desc=function(){return this.reverse()},e.prototype.eachKey=function(t){var n=this._ctx;return n.keysOnly=!n.isMatch,this.each(function(r,i){t(i.key,i)})},e.prototype.eachUniqueKey=function(t){return this._ctx.unique="unique",this.eachKey(t)},e.prototype.eachPrimaryKey=function(t){var n=this._ctx;return n.keysOnly=!n.isMatch,this.each(function(r,i){t(i.primaryKey,i)})},e.prototype.keys=function(t){var n=this._ctx;n.keysOnly=!n.isMatch;var r=[];return this.each(function(i,u){r.push(u.key)}).then(function(){return r}).then(t)},e.prototype.primaryKeys=function(t){var n=this._ctx;if(n.dir==="next"&&Co(n,!0)&&n.limit>0)return this._read(function(i){var u=bc(n,n.table.core.schema);return n.table.core.query({trans:i,values:!1,limit:n.limit,query:{index:u,range:n.range}})}).then(function(i){var u=i.result;return u}).then(t);n.keysOnly=!n.isMatch;var r=[];return this.each(function(i,u){r.push(u.primaryKey)}).then(function(){return r}).then(t)},e.prototype.uniqueKeys=function(t){return this._ctx.unique="unique",this.keys(t)},e.prototype.firstKey=function(t){return this.limit(1).keys(function(n){return n[0]}).then(t)},e.prototype.lastKey=function(t){return this.reverse().firstKey(t)},e.prototype.distinct=function(){var t=this._ctx,n=t.index&&t.table.schema.idxByName[t.index];if(!n||!n.multi)return this;var r={};return Pd(this._ctx,function(i){var u=i.primaryKey.toString(),p=nr(r,u);return r[u]=!0,!p}),this},e.prototype.modify=function(t){var n=this,r=this._ctx;return this._write(function(i){var u;if(typeof t=="function")u=t;else{var p=en(t),o=p.length;u=function(v){for(var y=!1,b=0;b<o;++b){var w=p[b],S=t[w];bi(v,w)!==S&&(kr(v,w,S),y=!0)}return y}}var a=r.table.core,l=a.schema.primaryKey,h=l.outbound,c=l.extractKey,f=n.db._options.modifyChunkSize||200,s=[],d=0,g=[],m=function(v,y){var b=y.failures,w=y.numFailures;d+=v-w;for(var S=0,C=en(b);S<C.length;S++){var T=C[S];s.push(b[T])}};return n.clone().primaryKeys().then(function(v){var y=function(b){var w=Math.min(f,v.length-b);return a.getMany({trans:i,keys:v.slice(b,b+w),cache:"immutable"}).then(function(S){for(var C=[],T=[],k=h?[]:null,A=[],P=0;P<w;++P){var z=S[P],I={value:su(z),primKey:v[b+P]};u.call(I,I.value,I)!==!1&&(I.value==null?A.push(v[b+P]):!h&&Pn(c(z),c(I.value))!==0?(A.push(v[b+P]),C.push(I.value)):(T.push(I.value),h&&k.push(v[b+P])))}var $=Co(r)&&r.limit===1/0&&(typeof t!="function"||t===Md)&&{index:r.index,range:r.range};return Promise.resolve(C.length>0&&a.mutate({trans:i,type:"add",values:C}).then(function(O){for(var Y in O.failures)A.splice(parseInt(Y),1);m(C.length,O)})).then(function(){return(T.length>0||$&&typeof t=="object")&&a.mutate({trans:i,type:"put",keys:k,values:T,criteria:$,changeSpec:typeof t!="function"&&t}).then(function(O){return m(T.length,O)})}).then(function(){return(A.length>0||$&&t===Md)&&a.mutate({trans:i,type:"delete",keys:A,criteria:$}).then(function(O){return m(A.length,O)})}).then(function(){return v.length>b+w&&y(b+f)})})};return y(0).then(function(){if(s.length>0)throw new Kc("Error modifying one or more objects",s,d,g);return v.length})})})},e.prototype.delete=function(){var t=this._ctx,n=t.range;return Co(t)&&(t.isPrimKey&&!D9||n.type===3)?this._write(function(r){var i=t.table.core.schema.primaryKey,u=n;return t.table.core.count({trans:r,query:{index:i,range:u}}).then(function(p){return t.table.core.mutate({trans:r,type:"deleteRange",range:u}).then(function(o){var a=o.failures;o.lastResult,o.results;var l=o.numFailures;if(l)throw new Kc("Could not delete some values",Object.keys(a).map(function(h){return a[h]}),p-l);return p-l})})}):this.modify(Md)},e}(),Md=function(e,t){return t.value=null};function V9(e){return du(j9.prototype,function(n,r){this.db=e;var i=mS,u=null;if(r)try{i=r()}catch(l){u=l}var p=n._ctx,o=p.table,a=o.hook.reading.fire;this._ctx={table:o,index:p.index,isPrimKey:!p.index||o.schema.primKey.keyPath&&p.index===o.schema.primKey.name,range:i,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:u,or:p.or,valueMapper:a!==lu?a:null}})}function U9(e,t){return e<t?-1:e===t?0:1}function H9(e,t){return e>t?-1:e===t?0:1}function Wn(e,t,n){var r=e instanceof vS?new e.Collection(e):e;return r._ctx.error=n?new n(t):new TypeError(t),r}function xo(e){return new e.Collection(e,function(){return gS("")}).limit(0)}function W9(e){return e==="next"?function(t){return t.toUpperCase()}:function(t){return t.toLowerCase()}}function G9(e){return e==="next"?function(t){return t.toLowerCase()}:function(t){return t.toUpperCase()}}function Y9(e,t,n,r,i,u){for(var p=Math.min(e.length,r.length),o=-1,a=0;a<p;++a){var l=t[a];if(l!==r[a])return i(e[a],n[a])<0?e.substr(0,a)+n[a]+n.substr(a+1):i(e[a],r[a])<0?e.substr(0,a)+r[a]+n.substr(a+1):o>=0?e.substr(0,o)+t[o]+n.substr(o+1):null;i(e[a],l)<0&&(o=a)}return p<r.length&&u==="next"?e+n.substr(e.length):p<e.length&&u==="prev"?e.substr(0,n.length):o<0?null:e.substr(0,o)+r[o]+n.substr(o+1)}function Nu(e,t,n,r){var i,u,p,o,a,l,h,c=n.length;if(!n.every(function(g){return typeof g=="string"}))return Wn(e,hS);function f(g){i=W9(g),u=G9(g),p=g==="next"?U9:H9;var m=n.map(function(v){return{lower:u(v),upper:i(v)}}).sort(function(v,y){return p(v.lower,y.lower)});o=m.map(function(v){return v.upper}),a=m.map(function(v){return v.lower}),l=g,h=g==="next"?"":r}f("next");var s=new e.Collection(e,function(){return Vi(o[0],a[c-1]+r)});s._ondirectionchange=function(g){f(g)};var d=0;return s._addAlgorithm(function(g,m,v){var y=g.key;if(typeof y!="string")return!1;var b=u(y);if(t(b,a,d))return!0;for(var w=null,S=d;S<c;++S){var C=Y9(y,b,o[S],a[S],p,l);C===null&&w===null?d=S+1:(w===null||p(w,C)>0)&&(w=C)}return m(w!==null?function(){g.continue(w+h)}:v),!1}),s}function Vi(e,t,n,r){return{type:2,lower:e,upper:t,lowerOpen:n,upperOpen:r}}function gS(e){return{type:1,lower:e,upper:e}}var vS=function(){function e(){}return Object.defineProperty(e.prototype,"Collection",{get:function(){return this._ctx.table.db.Collection},enumerable:!1,configurable:!0}),e.prototype.between=function(t,n,r,i){r=r!==!1,i=i===!0;try{return this._cmp(t,n)>0||this._cmp(t,n)===0&&(r||i)&&!(r&&i)?xo(this):new this.Collection(this,function(){return Vi(t,n,!r,!i)})}catch{return Wn(this,oi)}},e.prototype.equals=function(t){return t==null?Wn(this,oi):new this.Collection(this,function(){return gS(t)})},e.prototype.above=function(t){return t==null?Wn(this,oi):new this.Collection(this,function(){return Vi(t,void 0,!0)})},e.prototype.aboveOrEqual=function(t){return t==null?Wn(this,oi):new this.Collection(this,function(){return Vi(t,void 0,!1)})},e.prototype.below=function(t){return t==null?Wn(this,oi):new this.Collection(this,function(){return Vi(void 0,t,!1,!0)})},e.prototype.belowOrEqual=function(t){return t==null?Wn(this,oi):new this.Collection(this,function(){return Vi(void 0,t)})},e.prototype.startsWith=function(t){return typeof t!="string"?Wn(this,hS):this.between(t,t+Da,!0,!0)},e.prototype.startsWithIgnoreCase=function(t){return t===""?this.startsWith(t):Nu(this,function(n,r){return n.indexOf(r[0])===0},[t],Da)},e.prototype.equalsIgnoreCase=function(t){return Nu(this,function(n,r){return n===r[0]},[t],"")},e.prototype.anyOfIgnoreCase=function(){var t=gi.apply(Io,arguments);return t.length===0?xo(this):Nu(this,function(n,r){return r.indexOf(n)!==-1},t,"")},e.prototype.startsWithAnyOfIgnoreCase=function(){var t=gi.apply(Io,arguments);return t.length===0?xo(this):Nu(this,function(n,r){return r.some(function(i){return n.indexOf(i)===0})},t,Da)},e.prototype.anyOf=function(){var t=this,n=gi.apply(Io,arguments),r=this._cmp;try{n.sort(r)}catch{return Wn(this,oi)}if(n.length===0)return xo(this);var i=new this.Collection(this,function(){return Vi(n[0],n[n.length-1])});i._ondirectionchange=function(p){r=p==="next"?t._ascending:t._descending,n.sort(r)};var u=0;return i._addAlgorithm(function(p,o,a){for(var l=p.key;r(l,n[u])>0;)if(++u,u===n.length)return o(a),!1;return r(l,n[u])===0?!0:(o(function(){p.continue(n[u])}),!1)}),i},e.prototype.notEqual=function(t){return this.inAnyRange([[Qh,t],[t,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})},e.prototype.noneOf=function(){var t=gi.apply(Io,arguments);if(t.length===0)return new this.Collection(this);try{t.sort(this._ascending)}catch{return Wn(this,oi)}var n=t.reduce(function(r,i){return r?r.concat([[r[r.length-1][1],i]]):[[Qh,i]]},null);return n.push([t[t.length-1],this.db._maxKey]),this.inAnyRange(n,{includeLowers:!1,includeUppers:!1})},e.prototype.inAnyRange=function(t,n){var r=this,i=this._cmp,u=this._ascending,p=this._descending,o=this._min,a=this._max;if(t.length===0)return xo(this);if(!t.every(function(S){return S[0]!==void 0&&S[1]!==void 0&&u(S[0],S[1])<=0}))return Wn(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",Ze.InvalidArgument);var l=!n||n.includeLowers!==!1,h=n&&n.includeUppers===!0;function c(S,C){for(var T=0,k=S.length;T<k;++T){var A=S[T];if(i(C[0],A[1])<0&&i(C[1],A[0])>0){A[0]=o(A[0],C[0]),A[1]=a(A[1],C[1]);break}}return T===k&&S.push(C),S}var f=u;function s(S,C){return f(S[0],C[0])}var d;try{d=t.reduce(c,[]),d.sort(s)}catch{return Wn(this,oi)}var g=0,m=h?function(S){return u(S,d[g][1])>0}:function(S){return u(S,d[g][1])>=0},v=l?function(S){return p(S,d[g][0])>0}:function(S){return p(S,d[g][0])>=0};function y(S){return!m(S)&&!v(S)}var b=m,w=new this.Collection(this,function(){return Vi(d[0][0],d[d.length-1][1],!l,!h)});return w._ondirectionchange=function(S){S==="next"?(b=m,f=u):(b=v,f=p),d.sort(s)},w._addAlgorithm(function(S,C,T){for(var k=S.key;b(k);)if(++g,g===d.length)return C(T),!1;return y(k)?!0:(r._cmp(k,d[g][1])===0||r._cmp(k,d[g][0])===0||C(function(){f===u?S.continue(d[g][0]):S.continue(d[g][1])}),!1)}),w},e.prototype.startsWithAnyOf=function(){var t=gi.apply(Io,arguments);return t.every(function(n){return typeof n=="string"})?t.length===0?xo(this):this.inAnyRange(t.map(function(n){return[n,n+Da]})):Wn(this,"startsWithAnyOf() only works with strings")},e}();function K9(e){return du(vS.prototype,function(n,r,i){this.db=e,this._ctx={table:n,index:r===":id"?null:r,or:i};var u=e._deps.indexedDB;if(!u)throw new Ze.MissingAPI;this._cmp=this._ascending=u.cmp.bind(u),this._descending=function(p,o){return u.cmp(o,p)},this._max=function(p,o){return u.cmp(p,o)>0?p:o},this._min=function(p,o){return u.cmp(p,o)<0?p:o},this._IDBKeyRange=e._deps.IDBKeyRange})}function zr(e){return Ut(function(t){return Dl(t),e(t.target.error),!1})}function Dl(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault()}var Fl="storagemutated",qi="x-storagemutated-1",fa=fu(null,Fl),X9=function(){function e(){}return e.prototype._lock=function(){return Fs(!Ke.global),++this._reculock,this._reculock===1&&!Ke.global&&(Ke.lockOwnerFor=this),this},e.prototype._unlock=function(){if(Fs(!Ke.global),--this._reculock===0)for(Ke.global||(Ke.lockOwnerFor=null);this._blockedFuncs.length>0&&!this._locked();){var t=this._blockedFuncs.shift();try{ys(t[1],t[0])}catch{}}return this},e.prototype._locked=function(){return this._reculock&&Ke.lockOwnerFor!==this},e.prototype.create=function(t){var n=this;if(!this.mode)return this;var r=this.db.idbdb,i=this.db._state.dbOpenError;if(Fs(!this.idbtrans),!t&&!r)switch(i&&i.name){case"DatabaseClosedError":throw new Ze.DatabaseClosed(i);case"MissingAPIError":throw new Ze.MissingAPI(i.message,i);default:throw new Ze.OpenFailed(i)}if(!this.active)throw new Ze.TransactionInactive;return Fs(this._completion._state===null),t=this.idbtrans=t||(this.db.core?this.db.core.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}):r.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability})),t.onerror=Ut(function(u){Dl(u),n._reject(t.error)}),t.onabort=Ut(function(u){Dl(u),n.active&&n._reject(new Ze.Abort(t.error)),n.active=!1,n.on("abort").fire(u)}),t.oncomplete=Ut(function(){n.active=!1,n._resolve(),"mutatedParts"in t&&fa.storagemutated.fire(t.mutatedParts)}),this},e.prototype._promise=function(t,n,r){var i=this;if(t==="readwrite"&&this.mode!=="readwrite")return rn(new Ze.ReadOnly("Transaction is readonly"));if(!this.active)return rn(new Ze.TransactionInactive);if(this._locked())return new Fe(function(p,o){i._blockedFuncs.push([function(){i._promise(t,n,r).then(p,o)},Ke])});if(r)return ua(function(){var p=new Fe(function(o,a){i._lock();var l=n(o,a,i);l&&l.then&&l.then(o,a)});return p.finally(function(){return i._unlock()}),p._lib=!0,p});var u=new Fe(function(p,o){var a=n(p,o,i);a&&a.then&&a.then(p,o)});return u._lib=!0,u},e.prototype._root=function(){return this.parent?this.parent._root():this},e.prototype.waitFor=function(t){var n=this._root(),r=Fe.resolve(t);if(n._waitingFor)n._waitingFor=n._waitingFor.then(function(){return r});else{n._waitingFor=r,n._waitingQueue=[];var i=n.idbtrans.objectStore(n.storeNames[0]);(function p(){for(++n._spinCount;n._waitingQueue.length;)n._waitingQueue.shift()();n._waitingFor&&(i.get(-1/0).onsuccess=p)})()}var u=n._waitingFor;return new Fe(function(p,o){r.then(function(a){return n._waitingQueue.push(Ut(p.bind(null,a)))},function(a){return n._waitingQueue.push(Ut(o.bind(null,a)))}).finally(function(){n._waitingFor===u&&(n._waitingFor=null)})})},e.prototype.abort=function(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new Ze.Abort))},e.prototype.table=function(t){var n=this._memoizedTables||(this._memoizedTables={});if(nr(n,t))return n[t];var r=this.schema[t];if(!r)throw new Ze.NotFound("Table "+t+" not part of transaction");var i=new this.db.Table(t,r,this);return i.core=this.db.core.table(t),n[t]=i,i},e}();function q9(e){return du(X9.prototype,function(n,r,i,u,p){var o=this;this.db=e,this.mode=n,this.storeNames=r,this.schema=i,this.chromeTransactionDurability=u,this.idbtrans=null,this.on=fu(this,"complete","error","abort"),this.parent=p||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new Fe(function(a,l){o._resolve=a,o._reject=l}),this._completion.then(function(){o.active=!1,o.on.complete.fire()},function(a){var l=o.active;return o.active=!1,o.on.error.fire(a),o.parent?o.parent._reject(a):l&&o.idbtrans&&o.idbtrans.abort(),rn(a)})})}function ep(e,t,n,r,i,u,p){return{name:e,keyPath:t,unique:n,multi:r,auto:i,compound:u,src:(n&&!p?"&":"")+(r?"*":"")+(i?"++":"")+yS(t)}}function yS(e){return typeof e=="string"?e:e?"["+[].join.call(e,"+")+"]":""}function bS(e,t,n){return{name:e,primKey:t,indexes:n,mappedClass:null,idxByName:q2(n,function(r){return[r.name,r]})}}function Z9(e){return e.length===1?e[0]:e}var Bl=function(e){try{return e.only([[]]),Bl=function(){return[[]]},[[]]}catch{return Bl=function(){return Da},Da}};function tp(e){return e==null?function(){}:typeof e=="string"?J9(e):function(t){return bi(t,e)}}function J9(e){var t=e.split(".");return t.length===1?function(n){return n[e]}:function(n){return bi(n,e)}}function By(e){return[].slice.call(e)}var Q9=0;function il(e){return e==null?":id":typeof e=="string"?e:"["+e.join("+")+"]"}function eV(e,t,n){function r(c,f){var s=By(c.objectStoreNames);return{schema:{name:c.name,tables:s.map(function(d){return f.objectStore(d)}).map(function(d){var g=d.keyPath,m=d.autoIncrement,v=Cn(g),y=g==null,b={},w={name:d.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:y,compound:v,keyPath:g,autoIncrement:m,unique:!0,extractKey:tp(g)},indexes:By(d.indexNames).map(function(S){return d.index(S)}).map(function(S){var C=S.name,T=S.unique,k=S.multiEntry,A=S.keyPath,P=Cn(A),z={name:C,compound:P,keyPath:A,unique:T,multiEntry:k,extractKey:tp(A)};return b[il(A)]=z,z}),getIndexByKeyPath:function(S){return b[il(S)]}};return b[":id"]=w.primaryKey,g!=null&&(b[il(g)]=w.primaryKey),w})},hasGetAll:s.length>0&&"getAll"in f.objectStore(s[0])&&!(typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}}function i(c){if(c.type===3)return null;if(c.type===4)throw new Error("Cannot convert never type to IDBKeyRange");var f=c.lower,s=c.upper,d=c.lowerOpen,g=c.upperOpen,m=f===void 0?s===void 0?null:t.upperBound(s,!!g):s===void 0?t.lowerBound(f,!!d):t.bound(f,s,!!d,!!g);return m}function u(c){var f=c.name;function s(m){var v=m.trans,y=m.type,b=m.keys,w=m.values,S=m.range;return new Promise(function(C,T){C=Ut(C);var k=v.objectStore(f),A=k.keyPath==null,P=y==="put"||y==="add";if(!P&&y!=="delete"&&y!=="deleteRange")throw new Error("Invalid operation type: "+y);var z=(b||w||{length:1}).length;if(b&&w&&b.length!==w.length)throw new Error("Given keys array must have same length as given values array.");if(z===0)return C({numFailures:0,failures:{},results:[],lastResult:void 0});var I,$=[],O=[],Y=0,re=function(R){++Y,Dl(R)};if(y==="deleteRange"){if(S.type===4)return C({numFailures:Y,failures:O,results:[],lastResult:void 0});S.type===3?$.push(I=k.clear()):$.push(I=k.delete(i(S)))}else{var q=P?A?[w,b]:[w,null]:[b,null],J=q[0],E=q[1];if(P)for(var V=0;V<z;++V)$.push(I=E&&E[V]!==void 0?k[y](J[V],E[V]):k[y](J[V])),I.onerror=re;else for(var V=0;V<z;++V)$.push(I=k[y](J[V])),I.onerror=re}var M=function(R){var G=R.target.result;$.forEach(function(D,B){return D.error!=null&&(O[B]=D.error)}),C({numFailures:Y,failures:O,results:y==="delete"?b:$.map(function(D){return D.result}),lastResult:G})};I.onerror=function(R){re(R),M(R)},I.onsuccess=M})}function d(m){var v=m.trans,y=m.values,b=m.query,w=m.reverse,S=m.unique;return new Promise(function(C,T){C=Ut(C);var k=b.index,A=b.range,P=v.objectStore(f),z=k.isPrimaryKey?P:P.index(k.name),I=w?S?"prevunique":"prev":S?"nextunique":"next",$=y||!("openKeyCursor"in z)?z.openCursor(i(A),I):z.openKeyCursor(i(A),I);$.onerror=zr(T),$.onsuccess=Ut(function(O){var Y=$.result;if(!Y){C(null);return}Y.___id=++Q9,Y.done=!1;var re=Y.continue.bind(Y),q=Y.continuePrimaryKey;q&&(q=q.bind(Y));var J=Y.advance.bind(Y),E=function(){throw new Error("Cursor not started")},V=function(){throw new Error("Cursor not stopped")};Y.trans=v,Y.stop=Y.continue=Y.continuePrimaryKey=Y.advance=E,Y.fail=Ut(T),Y.next=function(){var M=this,R=1;return this.start(function(){return R--?M.continue():M.stop()}).then(function(){return M})},Y.start=function(M){var R=new Promise(function(D,B){D=Ut(D),$.onerror=zr(B),Y.fail=B,Y.stop=function(Z){Y.stop=Y.continue=Y.continuePrimaryKey=Y.advance=V,D(Z)}}),G=function(){if($.result)try{M()}catch(D){Y.fail(D)}else Y.done=!0,Y.start=function(){throw new Error("Cursor behind last entry")},Y.stop()};return $.onsuccess=Ut(function(D){$.onsuccess=G,G()}),Y.continue=re,Y.continuePrimaryKey=q,Y.advance=J,G(),R},C(Y)},T)})}function g(m){return function(v){return new Promise(function(y,b){y=Ut(y);var w=v.trans,S=v.values,C=v.limit,T=v.query,k=C===1/0?void 0:C,A=T.index,P=T.range,z=w.objectStore(f),I=A.isPrimaryKey?z:z.index(A.name),$=i(P);if(C===0)return y({result:[]});if(m){var O=S?I.getAll($,k):I.getAllKeys($,k);O.onsuccess=function(J){return y({result:J.target.result})},O.onerror=zr(b)}else{var Y=0,re=S||!("openKeyCursor"in I)?I.openCursor($):I.openKeyCursor($),q=[];re.onsuccess=function(J){var E=re.result;if(!E)return y({result:q});if(q.push(S?E.value:E.primaryKey),++Y===C)return y({result:q});E.continue()},re.onerror=zr(b)}})}}return{name:f,schema:c,mutate:s,getMany:function(m){var v=m.trans,y=m.keys;return new Promise(function(b,w){b=Ut(b);for(var S=v.objectStore(f),C=y.length,T=new Array(C),k=0,A=0,P,z=function(Y){var re=Y.target;(T[re._pos]=re.result)!=null,++A===k&&b(T)},I=zr(w),$=0;$<C;++$){var O=y[$];O!=null&&(P=S.get(y[$]),P._pos=$,P.onsuccess=z,P.onerror=I,++k)}k===0&&b(T)})},get:function(m){var v=m.trans,y=m.key;return new Promise(function(b,w){b=Ut(b);var S=v.objectStore(f),C=S.get(y);C.onsuccess=function(T){return b(T.target.result)},C.onerror=zr(w)})},query:g(a),openCursor:d,count:function(m){var v=m.query,y=m.trans,b=v.index,w=v.range;return new Promise(function(S,C){var T=y.objectStore(f),k=b.isPrimaryKey?T:T.index(b.name),A=i(w),P=A?k.count(A):k.count();P.onsuccess=Ut(function(z){return S(z.target.result)}),P.onerror=zr(C)})}}}var p=r(e,n),o=p.schema,a=p.hasGetAll,l=o.tables.map(function(c){return u(c)}),h={};return l.forEach(function(c){return h[c.name]=c}),{stack:"dbcore",transaction:e.transaction.bind(e),table:function(c){var f=h[c];if(!f)throw new Error("Table '"+c+"' not found");return h[c]},MIN_KEY:-1/0,MAX_KEY:Bl(t),schema:o}}function tV(e,t){return t.reduce(function(n,r){var i=r.create;return dt(dt({},n),i(n))},e)}function nV(e,t,n,r){var i=n.IDBKeyRange;n.indexedDB;var u=tV(eV(t,i,r),e.dbcore);return{dbcore:u}}function Wm(e,t){var n=e._novip,r=t.db,i=nV(n._middlewares,r,n._deps,t);n.core=i.dbcore,n.tables.forEach(function(u){var p=u.name;n.core.schema.tables.some(function(o){return o.name===p})&&(u.core=n.core.table(p),n[p]instanceof n.Table&&(n[p].core=u.core))})}function ef(e,t,n,r){var i=e._novip;n.forEach(function(u){var p=r[u];t.forEach(function(o){var a=Fm(o,u);(!a||"value"in a&&a.value===void 0)&&(o===i.Transaction.prototype||o instanceof i.Transaction?ki(o,u,{get:function(){return this.table(u)},set:function(l){Y2(this,u,{value:l,writable:!0,configurable:!0,enumerable:!0})}}):o[u]=new i.Table(u,p))})})}function np(e,t){var n=e._novip;t.forEach(function(r){for(var i in r)r[i]instanceof n.Table&&delete r[i]})}function rV(e,t){return e._cfg.version-t._cfg.version}function iV(e,t,n,r){var i=e._dbSchema,u=e._createTransaction("readwrite",e._storeNames,i);u.create(n),u._completion.catch(r);var p=u._reject.bind(u),o=Ke.transless||Ke;ua(function(){Ke.trans=u,Ke.transless=o,t===0?(en(i).forEach(function(a){Gm(n,a,i[a].primKey,i[a].indexes)}),Wm(e,n),Fe.follow(function(){return e.on.populate.fire(u)}).catch(p)):aV(e,t,u,n).catch(p)})}function aV(e,t,n,r){var i=e._novip,u=[],p=i._versions,o=i._dbSchema=Ym(i,i.idbdb,r),a=!1,l=p.filter(function(c){return c._cfg.version>=t});l.forEach(function(c){u.push(function(){var f=o,s=c._cfg.dbschema;ip(i,f,r),ip(i,s,r),o=i._dbSchema=s;var d=_S(f,s);d.add.forEach(function(w){Gm(r,w[0],w[1].primKey,w[1].indexes)}),d.change.forEach(function(w){if(w.recreate)throw new Ze.Upgrade("Not yet support for changing primary key");var S=r.objectStore(w.name);w.add.forEach(function(C){return rp(S,C)}),w.change.forEach(function(C){S.deleteIndex(C.name),rp(S,C)}),w.del.forEach(function(C){return S.deleteIndex(C)})});var g=c._cfg.contentUpgrade;if(g&&c._cfg.version>t){Wm(i,r),n._memoizedTables={},a=!0;var m=Z2(s);d.del.forEach(function(w){m[w]=f[w]}),np(i,[i.Transaction.prototype]),ef(i,[i.Transaction.prototype],en(m),m),n.schema=m;var v=Bm(g);v&&vs();var y,b=Fe.follow(function(){if(y=g(n),y&&v){var w=Ei.bind(null,null);y.then(w,w)}});return y&&typeof y.then=="function"?Fe.resolve(y):b.then(function(){return y})}}),u.push(function(f){if(!a||!R9){var s=c._cfg.dbschema;sV(s,f)}np(i,[i.Transaction.prototype]),ef(i,[i.Transaction.prototype],i._storeNames,i._dbSchema),n.schema=i._dbSchema})});function h(){return u.length?Fe.resolve(u.shift()(n.idbtrans)).then(h):Fe.resolve()}return h().then(function(){oV(o,r)})}function _S(e,t){var n={del:[],add:[],change:[]},r;for(r in e)t[r]||n.del.push(r);for(r in t){var i=e[r],u=t[r];if(!i)n.add.push([r,u]);else{var p={name:r,def:u,recreate:!1,del:[],add:[],change:[]};if(""+(i.primKey.keyPath||"")!=""+(u.primKey.keyPath||"")||i.primKey.auto!==u.primKey.auto&&!Df)p.recreate=!0,n.change.push(p);else{var o=i.idxByName,a=u.idxByName,l=void 0;for(l in o)a[l]||p.del.push(l);for(l in a){var h=o[l],c=a[l];h?h.src!==c.src&&p.change.push(c):p.add.push(c)}(p.del.length>0||p.add.length>0||p.change.length>0)&&n.change.push(p)}}}return n}function Gm(e,t,n,r){var i=e.db.createObjectStore(t,n.keyPath?{keyPath:n.keyPath,autoIncrement:n.auto}:{autoIncrement:n.auto});return r.forEach(function(u){return rp(i,u)}),i}function oV(e,t){en(e).forEach(function(n){t.db.objectStoreNames.contains(n)||Gm(t,n,e[n].primKey,e[n].indexes)})}function sV(e,t){[].slice.call(t.db.objectStoreNames).forEach(function(n){return e[n]==null&&t.db.deleteObjectStore(n)})}function rp(e,t){e.createIndex(t.name,t.keyPath,{unique:t.unique,multiEntry:t.multi})}function Ym(e,t,n){var r={},i=Lf(t.objectStoreNames,0);return i.forEach(function(u){for(var p=n.objectStore(u),o=p.keyPath,a=ep(yS(o),o||"",!1,!1,!!p.autoIncrement,o&&typeof o!="string",!0),l=[],h=0;h<p.indexNames.length;++h){var c=p.index(p.indexNames[h]);o=c.keyPath;var f=ep(c.name,o,!!c.unique,!!c.multiEntry,!1,o&&typeof o!="string",!1);l.push(f)}r[u]=bS(u,a,l)}),r}function lV(e,t,n){var r=e._novip;r.verno=t.version/10;var i=r._dbSchema=Ym(r,t,n);r._storeNames=Lf(t.objectStoreNames,0),ef(r,[r._allTables],en(i),i)}function uV(e,t){var n=Ym(e,e.idbdb,t),r=_S(n,e._dbSchema);return!(r.add.length||r.change.some(function(i){return i.add.length||i.change.length}))}function ip(e,t,n){for(var r=e._novip,i=n.db.objectStoreNames,u=0;u<i.length;++u){var p=i[u],o=n.objectStore(p);r._hasGetAll="getAll"in o;for(var a=0;a<o.indexNames.length;++a){var l=o.indexNames[a],h=o.index(l).keyPath,c=typeof h=="string"?h:"["+Lf(h).join("+")+"]";if(t[p]){var f=t[p].idxByName[c];f&&(f.name=l,delete t[p].idxByName[c],t[p].idxByName[l]=f)}}}typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&jt.WorkerGlobalScope&&jt instanceof jt.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(r._hasGetAll=!1)}function cV(e){return e.split(",").map(function(t,n){t=t.trim();var r=t.replace(/([&*]|\+\+)/g,""),i=/^\[/.test(r)?r.match(/^\[(.*)\]$/)[1].split("+"):r;return ep(r,i||null,/\&/.test(t),/\*/.test(t),/\+\+/.test(t),Cn(i),n===0)})}var fV=function(){function e(){}return e.prototype._parseStoresSpec=function(t,n){en(t).forEach(function(r){if(t[r]!==null){var i=cV(t[r]),u=i.shift();if(u.multi)throw new Ze.Schema("Primary key cannot be multi-valued");i.forEach(function(p){if(p.auto)throw new Ze.Schema("Only primary key can be marked as autoIncrement (++)");if(!p.keyPath)throw new Ze.Schema("Index must have a name and cannot be an empty string")}),n[r]=bS(r,u,i)}})},e.prototype.stores=function(t){var n=this.db;this._cfg.storesSource=this._cfg.storesSource?Ln(this._cfg.storesSource,t):t;var r=n._versions,i={},u={};return r.forEach(function(p){Ln(i,p._cfg.storesSource),u=p._cfg.dbschema={},p._parseStoresSpec(i,u)}),n._dbSchema=u,np(n,[n._allTables,n,n.Transaction.prototype]),ef(n,[n._allTables,n,n.Transaction.prototype,this._cfg.tables],en(u),u),n._storeNames=en(u),this},e.prototype.upgrade=function(t){return this._cfg.contentUpgrade=zm(this._cfg.contentUpgrade||Mt,t),this},e}();function dV(e){return du(fV.prototype,function(n){this.db=e,this._cfg={version:n,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}})}function Km(e,t){var n=e._dbNamesDB;return n||(n=e._dbNamesDB=new Jm(Ff,{addons:[],indexedDB:e,IDBKeyRange:t}),n.version(1).stores({dbnames:"name"})),n.table("dbnames")}function Xm(e){return e&&typeof e.databases=="function"}function hV(e){var t=e.indexedDB,n=e.IDBKeyRange;return Xm(t)?Promise.resolve(t.databases()).then(function(r){return r.map(function(i){return i.name}).filter(function(i){return i!==Ff})}):Km(t,n).toCollection().primaryKeys()}function pV(e,t){var n=e.indexedDB,r=e.IDBKeyRange;!Xm(n)&&t!==Ff&&Km(n,r).put({name:t}).catch(Mt)}function mV(e,t){var n=e.indexedDB,r=e.IDBKeyRange;!Xm(n)&&t!==Ff&&Km(n,r).delete(t).catch(Mt)}function ap(e){return ua(function(){return Ke.letThrough=!0,e()})}function gV(){var e=!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent);if(!e||!indexedDB.databases)return Promise.resolve();var t;return new Promise(function(n){var r=function(){return indexedDB.databases().finally(n)};t=setInterval(r,100),r()}).finally(function(){return clearInterval(t)})}function vV(e){var t=e._state,n=e._deps.indexedDB;if(t.isBeingOpened||e.idbdb)return t.dbReadyPromise.then(function(){return t.dbOpenError?rn(t.dbOpenError):e});Qr&&(t.openCanceller._stackHolder=co()),t.isBeingOpened=!0,t.dbOpenError=null,t.openComplete=!1;var r=t.openCanceller;function i(){if(t.openCanceller!==r)throw new Ze.DatabaseClosed("db.open() was cancelled")}var u=t.dbReadyResolve,p=null,o=!1,a=function(){return new Fe(function(l,h){if(i(),!n)throw new Ze.MissingAPI;var c=e.name,f=t.autoSchema?n.open(c):n.open(c,Math.round(e.verno*10));if(!f)throw new Ze.MissingAPI;f.onerror=zr(h),f.onblocked=Ut(e._fireOnBlocked),f.onupgradeneeded=Ut(function(s){if(p=f.transaction,t.autoSchema&&!e._options.allowEmptyDB){f.onerror=Dl,p.abort(),f.result.close();var d=n.deleteDatabase(c);d.onsuccess=d.onerror=Ut(function(){h(new Ze.NoSuchDatabase("Database "+c+" doesnt exist"))})}else{p.onerror=zr(h);var g=s.oldVersion>Math.pow(2,62)?0:s.oldVersion;o=g<1,e._novip.idbdb=f.result,iV(e,g/10,p,h)}},h),f.onsuccess=Ut(function(){p=null;var s=e._novip.idbdb=f.result,d=Lf(s.objectStoreNames);if(d.length>0)try{var g=s.transaction(Z9(d),"readonly");t.autoSchema?lV(e,s,g):(ip(e,e._dbSchema,g),uV(e,g)||console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Some queries may fail.")),Wm(e,g)}catch{}rl.push(e),s.onversionchange=Ut(function(m){t.vcFired=!0,e.on("versionchange").fire(m)}),s.onclose=Ut(function(m){e.on("close").fire(m)}),o&&pV(e._deps,c),l()},h)}).catch(function(l){return l&&l.name==="UnknownError"&&t.PR1398_maxLoop>0?(t.PR1398_maxLoop--,console.warn("Dexie: Workaround for Chrome UnknownError on open()"),a()):Fe.reject(l)})};return Fe.race([r,(typeof navigator>"u"?Fe.resolve():gV()).then(a)]).then(function(){return i(),t.onReadyBeingFired=[],Fe.resolve(ap(function(){return e.on.ready.fire(e.vip)})).then(function l(){if(t.onReadyBeingFired.length>0){var h=t.onReadyBeingFired.reduce(zm,Mt);return t.onReadyBeingFired=[],Fe.resolve(ap(function(){return h(e.vip)})).then(l)}})}).finally(function(){t.onReadyBeingFired=null,t.isBeingOpened=!1}).then(function(){return e}).catch(function(l){t.dbOpenError=l;try{p&&p.abort()}catch{}return r===t.openCanceller&&e._close(),rn(l)}).finally(function(){t.openComplete=!0,u()})}function op(e){var t=function(p){return e.next(p)},n=function(p){return e.throw(p)},r=u(t),i=u(n);function u(p){return function(o){var a=p(o),l=a.value;return a.done?l:!l||typeof l.then!="function"?Cn(l)?Promise.all(l).then(r,i):r(l):l.then(r,i)}}return u(t)()}function yV(e,t,n){var r=arguments.length;if(r<2)throw new Ze.InvalidArgument("Too few arguments");for(var i=new Array(r-1);--r;)i[r-1]=arguments[r];n=i.pop();var u=J2(i);return[e,u,n]}function wS(e,t,n,r,i){return Fe.resolve().then(function(){var u=Ke.transless||Ke,p=e._createTransaction(t,n,e._dbSchema,r),o={trans:p,transless:u};if(r)p.idbtrans=r.idbtrans;else try{p.create(),e._state.PR1398_maxLoop=3}catch(c){return c.name===Nm.InvalidState&&e.isOpen()&&--e._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),e._close(),e.open().then(function(){return wS(e,t,n,null,i)})):rn(c)}var a=Bm(i);a&&vs();var l,h=Fe.follow(function(){if(l=i.call(p,p),l)if(a){var c=Ei.bind(null,null);l.then(c,c)}else typeof l.next=="function"&&typeof l.throw=="function"&&(l=op(l))},o);return(l&&typeof l.then=="function"?Fe.resolve(l).then(function(c){return p.active?c:rn(new Ze.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))}):h.then(function(){return l})).then(function(c){return r&&p._resolve(),p._completion.then(function(){return c})}).catch(function(c){return p._reject(c),rn(c)})})}function zu(e,t,n){for(var r=Cn(e)?e.slice():[e],i=0;i<n;++i)r.push(t);return r}function bV(e){return dt(dt({},e),{table:function(t){var n=e.table(t),r=n.schema,i={},u=[];function p(g,m,v){var y=il(g),b=i[y]=i[y]||[],w=g==null?0:typeof g=="string"?1:g.length,S=m>0,C=dt(dt({},v),{isVirtual:S,keyTail:m,keyLength:w,extractKey:tp(g),unique:!S&&v.unique});if(b.push(C),C.isPrimaryKey||u.push(C),w>1){var T=w===2?g[0]:g.slice(0,w-1);p(T,m+1,v)}return b.sort(function(k,A){return k.keyTail-A.keyTail}),C}var o=p(r.primaryKey.keyPath,0,r.primaryKey);i[":id"]=[o];for(var a=0,l=r.indexes;a<l.length;a++){var h=l[a];p(h.keyPath,0,h)}function c(g){var m=i[il(g)];return m&&m[0]}function f(g,m){return{type:g.type===1?2:g.type,lower:zu(g.lower,g.lowerOpen?e.MAX_KEY:e.MIN_KEY,m),lowerOpen:!0,upper:zu(g.upper,g.upperOpen?e.MIN_KEY:e.MAX_KEY,m),upperOpen:!0}}function s(g){var m=g.query.index;return m.isVirtual?dt(dt({},g),{query:{index:m,range:f(g.query.range,m.keyTail)}}):g}var d=dt(dt({},n),{schema:dt(dt({},r),{primaryKey:o,indexes:u,getIndexByKeyPath:c}),count:function(g){return n.count(s(g))},query:function(g){return n.query(s(g))},openCursor:function(g){var m=g.query.index,v=m.keyTail,y=m.isVirtual,b=m.keyLength;if(!y)return n.openCursor(g);function w(S){function C(k){k!=null?S.continue(zu(k,g.reverse?e.MAX_KEY:e.MIN_KEY,v)):g.unique?S.continue(S.key.slice(0,b).concat(g.reverse?e.MIN_KEY:e.MAX_KEY,v)):S.continue()}var T=Object.create(S,{continue:{value:C},continuePrimaryKey:{value:function(k,A){S.continuePrimaryKey(zu(k,e.MAX_KEY,v),A)}},primaryKey:{get:function(){return S.primaryKey}},key:{get:function(){var k=S.key;return b===1?k[0]:k.slice(0,b)}},value:{get:function(){return S.value}}});return T}return n.openCursor(s(g)).then(function(S){return S&&w(S)})}});return d}})}var _V={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:bV};function qm(e,t,n,r){return n=n||{},r=r||"",en(e).forEach(function(i){if(!nr(t,i))n[r+i]=void 0;else{var u=e[i],p=t[i];if(typeof u=="object"&&typeof p=="object"&&u&&p){var o=jh(u),a=jh(p);o!==a?n[r+i]=t[i]:o==="Object"?qm(u,p,n,r+i+"."):u!==p&&(n[r+i]=t[i])}else u!==p&&(n[r+i]=t[i])}}),en(t).forEach(function(i){nr(e,i)||(n[r+i]=t[i])}),n}function wV(e,t){return t.type==="delete"?t.keys:t.keys||t.values.map(e.extractKey)}var SV={stack:"dbcore",name:"HooksMiddleware",level:2,create:function(e){return dt(dt({},e),{table:function(t){var n=e.table(t),r=n.schema.primaryKey,i=dt(dt({},n),{mutate:function(u){var p=Ke.trans,o=p.table(t).hook,a=o.deleting,l=o.creating,h=o.updating;switch(u.type){case"add":if(l.fire===Mt)break;return p._promise("readwrite",function(){return c(u)},!0);case"put":if(l.fire===Mt&&h.fire===Mt)break;return p._promise("readwrite",function(){return c(u)},!0);case"delete":if(a.fire===Mt)break;return p._promise("readwrite",function(){return c(u)},!0);case"deleteRange":if(a.fire===Mt)break;return p._promise("readwrite",function(){return f(u)},!0)}return n.mutate(u);function c(d){var g=Ke.trans,m=d.keys||wV(r,d);if(!m)throw new Error("Keys missing");return d=d.type==="add"||d.type==="put"?dt(dt({},d),{keys:m}):dt({},d),d.type!=="delete"&&(d.values=Nh([],d.values,!0)),d.keys&&(d.keys=Nh([],d.keys,!0)),CV(n,d,m).then(function(v){var y=m.map(function(b,w){var S=v[w],C={onerror:null,onsuccess:null};if(d.type==="delete")a.fire.call(C,b,S,g);else if(d.type==="add"||S===void 0){var T=l.fire.call(C,b,d.values[w],g);b==null&&T!=null&&(b=T,d.keys[w]=b,r.outbound||kr(d.values[w],r.keyPath,b))}else{var k=qm(S,d.values[w]),A=h.fire.call(C,k,b,S,g);if(A){var P=d.values[w];Object.keys(A).forEach(function(z){nr(P,z)?P[z]=A[z]:kr(P,z,A[z])})}}return C});return n.mutate(d).then(function(b){for(var w=b.failures,S=b.results,C=b.numFailures,T=b.lastResult,k=0;k<m.length;++k){var A=S?S[k]:m[k],P=y[k];A==null?P.onerror&&P.onerror(w[k]):P.onsuccess&&P.onsuccess(d.type==="put"&&v[k]?d.values[k]:A)}return{failures:w,results:S,numFailures:C,lastResult:T}}).catch(function(b){return y.forEach(function(w){return w.onerror&&w.onerror(b)}),Promise.reject(b)})})}function f(d){return s(d.trans,d.range,1e4)}function s(d,g,m){return n.query({trans:d,values:!1,query:{index:r,range:g},limit:m}).then(function(v){var y=v.result;return c({type:"delete",keys:y,trans:d}).then(function(b){return b.numFailures>0?Promise.reject(b.failures[0]):y.length<m?{failures:[],numFailures:0,lastResult:void 0}:s(d,dt(dt({},g),{lower:y[y.length-1],lowerOpen:!0}),m)})})}}});return i}})}};function CV(e,t,n){return t.type==="add"?Promise.resolve([]):e.getMany({trans:t.trans,keys:n,cache:"immutable"})}function SS(e,t,n){try{if(!t||t.keys.length<e.length)return null;for(var r=[],i=0,u=0;i<t.keys.length&&u<e.length;++i)Pn(t.keys[i],e[u])===0&&(r.push(n?su(t.values[i]):t.values[i]),++u);return r.length===e.length?r:null}catch{return null}}var xV={stack:"dbcore",level:-1,create:function(e){return{table:function(t){var n=e.table(t);return dt(dt({},n),{getMany:function(r){if(!r.cache)return n.getMany(r);var i=SS(r.keys,r.trans._cache,r.cache==="clone");return i?Fe.resolve(i):n.getMany(r).then(function(u){return r.trans._cache={keys:r.keys,values:r.cache==="clone"?su(u):u},u})},mutate:function(r){return r.type!=="add"&&(r.trans._cache=null),n.mutate(r)}})}}}},Ld;function Zm(e){return!("from"in e)}var fi=function(e,t){if(this)Ln(this,arguments.length?{d:1,from:e,to:arguments.length>1?t:e}:{d:0});else{var n=new fi;return e&&"d"in e&&Ln(n,e),n}};rs(fi.prototype,(Ld={add:function(e){return tf(this,e),this},addKey:function(e){return $l(this,e,e),this},addKeys:function(e){var t=this;return e.forEach(function(n){return $l(t,n,n)}),this}},Ld[Vh]=function(){return sp(this)},Ld));function $l(e,t,n){var r=Pn(t,n);if(!isNaN(r)){if(r>0)throw RangeError();if(Zm(e))return Ln(e,{from:t,to:n,d:1});var i=e.l,u=e.r;if(Pn(n,e.from)<0)return i?$l(i,t,n):e.l={from:t,to:n,d:1,l:null,r:null},$y(e);if(Pn(t,e.to)>0)return u?$l(u,t,n):e.r={from:t,to:n,d:1,l:null,r:null},$y(e);Pn(t,e.from)<0&&(e.from=t,e.l=null,e.d=u?u.d+1:1),Pn(n,e.to)>0&&(e.to=n,e.r=null,e.d=e.l?e.l.d+1:1);var p=!e.r;i&&!e.l&&tf(e,i),u&&p&&tf(e,u)}}function tf(e,t){function n(r,i){var u=i.from,p=i.to,o=i.l,a=i.r;$l(r,u,p),o&&n(r,o),a&&n(r,a)}Zm(t)||n(e,t)}function TV(e,t){var n=sp(t),r=n.next();if(r.done)return!1;for(var i=r.value,u=sp(e),p=u.next(i.from),o=p.value;!r.done&&!p.done;){if(Pn(o.from,i.to)<=0&&Pn(o.to,i.from)>=0)return!0;Pn(i.from,o.from)<0?i=(r=n.next(o.from)).value:o=(p=u.next(i.from)).value}return!1}function sp(e){var t=Zm(e)?null:{s:0,n:e};return{next:function(n){for(var r=arguments.length>0;t;)switch(t.s){case 0:if(t.s=1,r)for(;t.n.l&&Pn(n,t.n.from)<0;)t={up:t,n:t.n.l,s:1};else for(;t.n.l;)t={up:t,n:t.n.l,s:1};case 1:if(t.s=2,!r||Pn(n,t.n.to)<=0)return{value:t.n,done:!1};case 2:if(t.n.r){t.s=3,t={up:t,n:t.n.r,s:0};continue}case 3:t=t.up}return{done:!0}}}}function $y(e){var t,n,r=(((t=e.r)===null||t===void 0?void 0:t.d)||0)-(((n=e.l)===null||n===void 0?void 0:n.d)||0),i=r>1?"r":r<-1?"l":"";if(i){var u=i==="r"?"l":"r",p=dt({},e),o=e[i];e.from=o.from,e.to=o.to,e[i]=o[i],p[i]=o[u],e[u]=p,p.d=Ny(p)}e.d=Ny(e)}function Ny(e){var t=e.r,n=e.l;return(t?n?Math.max(t.d,n.d):t.d:n?n.d:0)+1}var kV={stack:"dbcore",level:0,create:function(e){var t=e.schema.name,n=new fi(e.MIN_KEY,e.MAX_KEY);return dt(dt({},e),{table:function(r){var i=e.table(r),u=i.schema,p=u.primaryKey,o=p.extractKey,a=p.outbound,l=dt(dt({},i),{mutate:function(f){var s=f.trans,d=s.mutatedParts||(s.mutatedParts={}),g=function(T){var k="idb://"+t+"/"+r+"/"+T;return d[k]||(d[k]=new fi)},m=g(""),v=g(":dels"),y=f.type,b=f.type==="deleteRange"?[f.range]:f.type==="delete"?[f.keys]:f.values.length<50?[[],f.values]:[],w=b[0],S=b[1],C=f.trans._cache;return i.mutate(f).then(function(T){if(Cn(w)){y!=="delete"&&(w=T.results),m.addKeys(w);var k=SS(w,C);!k&&y!=="add"&&v.addKeys(w),(k||S)&&EV(g,u,k,S)}else if(w){var A={from:w.lower,to:w.upper};v.add(A),m.add(A)}else m.add(n),v.add(n),u.indexes.forEach(function(P){return g(P.name).add(n)});return T})}}),h=function(f){var s,d,g=f.query,m=g.index,v=g.range;return[m,new fi((s=v.lower)!==null&&s!==void 0?s:e.MIN_KEY,(d=v.upper)!==null&&d!==void 0?d:e.MAX_KEY)]},c={get:function(f){return[p,new fi(f.key)]},getMany:function(f){return[p,new fi().addKeys(f.keys)]},count:h,query:h,openCursor:h};return en(c).forEach(function(f){l[f]=function(s){var d=Ke.subscr;if(d){var g=function(C){var T="idb://"+t+"/"+r+"/"+C;return d[T]||(d[T]=new fi)},m=g(""),v=g(":dels"),y=c[f](s),b=y[0],w=y[1];if(g(b.name||"").add(w),!b.isPrimaryKey)if(f==="count")v.add(n);else{var S=f==="query"&&a&&s.values&&i.query(dt(dt({},s),{values:!1}));return i[f].apply(this,arguments).then(function(C){if(f==="query"){if(a&&s.values)return S.then(function(P){var z=P.result;return m.addKeys(z),C});var T=s.values?C.result.map(o):C.result;s.values?m.addKeys(T):v.addKeys(T)}else if(f==="openCursor"){var k=C,A=s.values;return k&&Object.create(k,{key:{get:function(){return v.addKey(k.primaryKey),k.key}},primaryKey:{get:function(){var P=k.primaryKey;return v.addKey(P),P}},value:{get:function(){return A&&m.addKey(k.primaryKey),k.value}}})}return C})}}return i[f].apply(this,arguments)}}),l}})}};function EV(e,t,n,r){function i(u){var p=e(u.name||"");function o(l){return l!=null?u.extractKey(l):null}var a=function(l){return u.multiEntry&&Cn(l)?l.forEach(function(h){return p.addKey(h)}):p.addKey(l)};(n||r).forEach(function(l,h){var c=n&&o(n[h]),f=r&&o(r[h]);Pn(c,f)!==0&&(c!=null&&a(c),f!=null&&a(f))})}t.indexes.forEach(i)}var Jm=function(){function e(t,n){var r=this;this._middlewares={},this.verno=0;var i=e.dependencies;this._options=n=dt({addons:e.addons,autoOpen:!0,indexedDB:i.indexedDB,IDBKeyRange:i.IDBKeyRange},n),this._deps={indexedDB:n.indexedDB,IDBKeyRange:n.IDBKeyRange};var u=n.addons;this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;var p={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:Mt,dbReadyPromise:null,cancelOpen:Mt,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3};p.dbReadyPromise=new Fe(function(o){p.dbReadyResolve=o}),p.openCanceller=new Fe(function(o,a){p.cancelOpen=a}),this._state=p,this.name=t,this.on=fu(this,"populate","blocked","versionchange","close",{ready:[zm,Mt]}),this.on.ready.subscribe=K2(this.on.ready.subscribe,function(o){return function(a,l){e.vip(function(){var h=r._state;if(h.openComplete)h.dbOpenError||Fe.resolve().then(a),l&&o(a);else if(h.onReadyBeingFired)h.onReadyBeingFired.push(a),l&&o(a);else{o(a);var c=r;l||o(function f(){c.on.ready.unsubscribe(a),c.on.ready.unsubscribe(f)})}})}}),this.Collection=V9(this),this.Table=B9(this),this.Transaction=q9(this),this.Version=dV(this),this.WhereClause=K9(this),this.on("versionchange",function(o){o.newVersion>0?console.warn("Another connection wants to upgrade database '"+r.name+"'. Closing db now to resume the upgrade."):console.warn("Another connection wants to delete database '"+r.name+"'. Closing db now to resume the delete request."),r.close()}),this.on("blocked",function(o){!o.newVersion||o.newVersion<o.oldVersion?console.warn("Dexie.delete('"+r.name+"') was blocked"):console.warn("Upgrade '"+r.name+"' blocked by other connection holding version "+o.oldVersion/10)}),this._maxKey=Bl(n.IDBKeyRange),this._createTransaction=function(o,a,l,h){return new r.Transaction(o,a,l,r._options.chromeTransactionDurability,h)},this._fireOnBlocked=function(o){r.on("blocked").fire(o),rl.filter(function(a){return a.name===r.name&&a!==r&&!a._state.vcFired}).map(function(a){return a.on("versionchange").fire(o)})},this.use(_V),this.use(SV),this.use(kV),this.use(xV),this.vip=Object.create(this,{_vip:{value:!0}}),u.forEach(function(o){return o(r)})}return e.prototype.version=function(t){if(isNaN(t)||t<.1)throw new Ze.Type("Given version is not a positive number");if(t=Math.round(t*10)/10,this.idbdb||this._state.isBeingOpened)throw new Ze.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,t);var n=this._versions,r=n.filter(function(i){return i._cfg.version===t})[0];return r||(r=new this.Version(t),n.push(r),n.sort(rV),r.stores({}),this._state.autoSchema=!1,r)},e.prototype._whenReady=function(t){var n=this;return this.idbdb&&(this._state.openComplete||Ke.letThrough||this._vip)?t():new Fe(function(r,i){if(n._state.openComplete)return i(new Ze.DatabaseClosed(n._state.dbOpenError));if(!n._state.isBeingOpened){if(!n._options.autoOpen){i(new Ze.DatabaseClosed);return}n.open().catch(Mt)}n._state.dbReadyPromise.then(r,i)}).then(t)},e.prototype.use=function(t){var n=t.stack,r=t.create,i=t.level,u=t.name;u&&this.unuse({stack:n,name:u});var p=this._middlewares[n]||(this._middlewares[n]=[]);return p.push({stack:n,create:r,level:i==null?10:i,name:u}),p.sort(function(o,a){return o.level-a.level}),this},e.prototype.unuse=function(t){var n=t.stack,r=t.name,i=t.create;return n&&this._middlewares[n]&&(this._middlewares[n]=this._middlewares[n].filter(function(u){return i?u.create!==i:r?u.name!==r:!1})),this},e.prototype.open=function(){return vV(this)},e.prototype._close=function(){var t=this._state,n=rl.indexOf(this);if(n>=0&&rl.splice(n,1),this.idbdb){try{this.idbdb.close()}catch{}this._novip.idbdb=null}t.dbReadyPromise=new Fe(function(r){t.dbReadyResolve=r}),t.openCanceller=new Fe(function(r,i){t.cancelOpen=i})},e.prototype.close=function(){this._close();var t=this._state;this._options.autoOpen=!1,t.dbOpenError=new Ze.DatabaseClosed,t.isBeingOpened&&t.cancelOpen(t.dbOpenError)},e.prototype.delete=function(){var t=this,n=arguments.length>0,r=this._state;return new Fe(function(i,u){var p=function(){t.close();var o=t._deps.indexedDB.deleteDatabase(t.name);o.onsuccess=Ut(function(){mV(t._deps,t.name),i()}),o.onerror=zr(u),o.onblocked=t._fireOnBlocked};if(n)throw new Ze.InvalidArgument("Arguments not allowed in db.delete()");r.isBeingOpened?r.dbReadyPromise.then(p):p()})},e.prototype.backendDB=function(){return this.idbdb},e.prototype.isOpen=function(){return this.idbdb!==null},e.prototype.hasBeenClosed=function(){var t=this._state.dbOpenError;return t&&t.name==="DatabaseClosed"},e.prototype.hasFailed=function(){return this._state.dbOpenError!==null},e.prototype.dynamicallyOpened=function(){return this._state.autoSchema},Object.defineProperty(e.prototype,"tables",{get:function(){var t=this;return en(this._allTables).map(function(n){return t._allTables[n]})},enumerable:!1,configurable:!0}),e.prototype.transaction=function(){var t=yV.apply(this,arguments);return this._transaction.apply(this,t)},e.prototype._transaction=function(t,n,r){var i=this,u=Ke.trans;(!u||u.db!==this||t.indexOf("!")!==-1)&&(u=null);var p=t.indexOf("?")!==-1;t=t.replace("!","").replace("?","");var o,a;try{if(a=n.map(function(h){var c=h instanceof i.Table?h.name:h;if(typeof c!="string")throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return c}),t=="r"||t===Od)o=Od;else if(t=="rw"||t==Ad)o=Ad;else throw new Ze.InvalidArgument("Invalid transaction mode: "+t);if(u){if(u.mode===Od&&o===Ad)if(p)u=null;else throw new Ze.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");u&&a.forEach(function(h){if(u&&u.storeNames.indexOf(h)===-1)if(p)u=null;else throw new Ze.SubTransaction("Table "+h+" not included in parent transaction.")}),p&&u&&!u.active&&(u=null)}}catch(h){return u?u._promise(null,function(c,f){f(h)}):rn(h)}var l=wS.bind(null,this,o,a,u,r);return u?u._promise(o,l,"lock"):Ke.trans?ys(Ke.transless,function(){return i._whenReady(l)}):this._whenReady(l)},e.prototype.table=function(t){if(!nr(this._allTables,t))throw new Ze.InvalidTable("Table "+t+" does not exist");return this._allTables[t]},e}(),OV=typeof Symbol<"u"&&"observable"in Symbol?Symbol.observable:"@@observable",AV=function(){function e(t){this._subscribe=t}return e.prototype.subscribe=function(t,n,r){return this._subscribe(!t||typeof t=="function"?{next:t,error:n,complete:r}:t)},e.prototype[OV]=function(){return this},e}();function CS(e,t){return en(t).forEach(function(n){var r=e[n]||(e[n]=new fi);tf(r,t[n])}),e}function Qm(e){var t=!1,n=void 0,r=new AV(function(i){var u=Bm(e);function p(m){u&&vs();var v=function(){return ua(e,{subscr:m,trans:null})},y=Ke.trans?ys(Ke.transless,v):v();return u&&y.then(Ei,Ei),y}var o=!1,a={},l={},h={get closed(){return o},unsubscribe:function(){o=!0,fa.storagemutated.unsubscribe(d)}};i.start&&i.start(h);var c=!1,f=!1;function s(){return en(l).some(function(m){return a[m]&&TV(a[m],l[m])})}var d=function(m){CS(a,m),s()&&g()},g=function(){if(!(c||o)){a={};var m={},v=p(m);f||(fa(Fl,d),f=!0),c=!0,Promise.resolve(v).then(function(y){t=!0,n=y,c=!1,!o&&(s()?g():(a={},l=m,i.next&&i.next(y)))},function(y){c=!1,t=!1,i.error&&i.error(y),h.unsubscribe()})}};return g(),h});return r.hasValue=function(){return t},r.getValue=function(){return n},r}var lp;try{lp={indexedDB:jt.indexedDB||jt.mozIndexedDB||jt.webkitIndexedDB||jt.msIndexedDB,IDBKeyRange:jt.IDBKeyRange||jt.webkitIDBKeyRange}}catch{lp={indexedDB:null,IDBKeyRange:null}}var Ia=Jm;rs(Ia,dt(dt({},Rf),{delete:function(e){var t=new Ia(e,{addons:[]});return t.delete()},exists:function(e){return new Ia(e,{addons:[]}).open().then(function(t){return t.close(),!0}).catch("NoSuchDatabaseError",function(){return!1})},getDatabaseNames:function(e){try{return hV(Ia.dependencies).then(e)}catch{return rn(new Ze.MissingAPI)}},defineClass:function(){function e(t){Ln(this,t)}return e},ignoreTransaction:function(e){return Ke.trans?ys(Ke.transless,e):e()},vip:ap,async:function(e){return function(){try{var t=op(e.apply(this,arguments));return!t||typeof t.then!="function"?Fe.resolve(t):t}catch(n){return rn(n)}}},spawn:function(e,t,n){try{var r=op(e.apply(n,t||[]));return!r||typeof r.then!="function"?Fe.resolve(r):r}catch(i){return rn(i)}},currentTransaction:{get:function(){return Ke.trans||null}},waitFor:function(e,t){var n=Fe.resolve(typeof e=="function"?Ia.ignoreTransaction(e):e).timeout(t||6e4);return Ke.trans?Ke.trans.waitFor(n):n},Promise:Fe,debug:{get:function(){return Qr},set:function(e){eS(e,e==="dexie"?function(){return!0}:pS)}},derive:ms,extend:Ln,props:rs,override:K2,Events:fu,on:fa,liveQuery:Qm,extendObservabilitySet:CS,getByKeyPath:bi,setByKeyPath:kr,delByKeyPath:l9,shallowClone:Z2,deepClone:su,getObjectDiff:qm,cmp:Pn,asap:X2,minKey:Qh,addons:[],connections:rl,errnames:Nm,dependencies:lp,semVer:My,version:My.split(".").map(function(e){return parseInt(e)}).reduce(function(e,t,n){return e+t/Math.pow(10,n*2)})}));Ia.maxKey=Bl(Ia.dependencies.IDBKeyRange);typeof dispatchEvent<"u"&&typeof addEventListener<"u"&&(fa(Fl,function(e){if(!vi){var t;Df?(t=document.createEvent("CustomEvent"),t.initCustomEvent(qi,!0,!0,e)):t=new CustomEvent(qi,{detail:e}),vi=!0,dispatchEvent(t),vi=!1}}),addEventListener(qi,function(e){var t=e.detail;vi||nf(t)}));function nf(e){var t=vi;try{vi=!0,fa.storagemutated.fire(e)}finally{vi=t}}var vi=!1;if(typeof BroadcastChannel<"u"){var ju=new BroadcastChannel(qi);typeof ju.unref=="function"&&ju.unref(),fa(Fl,function(e){vi||ju.postMessage(e)}),ju.onmessage=function(e){e.data&&nf(e.data)}}else if(typeof self<"u"&&typeof navigator<"u"){fa(Fl,function(e){try{vi||(typeof localStorage<"u"&&localStorage.setItem(qi,JSON.stringify({trig:Math.random(),changedParts:e})),typeof self.clients=="object"&&Nh([],self.clients.matchAll({includeUncontrolled:!0}),!0).forEach(function(t){return t.postMessage({type:qi,changedParts:e})}))}catch{}}),typeof addEventListener<"u"&&addEventListener("storage",function(e){if(e.key===qi){var t=JSON.parse(e.newValue);t&&nf(t.changedParts)}});var zy=self.document&&navigator.serviceWorker;zy&&zy.addEventListener("message",PV)}function PV(e){var t=e.data;t&&t.type===qi&&nf(t.changedParts)}Fe.rejectionMapper=v9;eS(Qr,pS);class IV extends Jm{constructor(){super("stableui");xg(this,"outputs");this.version(.2).stores({outputs:""}),this.version(.3).stores({outputs:null,outputsTemp:"++id"}).upgrade(async n=>{const r=await n.table("outputs").get("outputs");await n.table("outputsTemp").bulkPut(JSON.parse(r))}),this.version(.4).stores({outputsTemp:null,outputs:"++id"}).upgrade(async n=>{const r=await n.table("outputsTemp").toArray();await n.table("outputs").bulkPut(r)}),this.version(.5).stores({outputs:"++id,starred,rated"}).upgrade(async n=>await n.table("outputs").toCollection().modify(r=>{r.starred=Number(r.starred),r.rated=Number(r.rated)}))}}const Yt=new IV;Yt.open().catch(()=>{Ht().raiseError("The image database failed to open! This usually happens when using Firefox in Private Browsing mode. Try disabling Private Browsing or using another browser.",!0)});function Vu(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var xS={exports:{}};/*!
|
|
|
|
JSZip v3.10.1 - A JavaScript class for generating and reading zip files
|
|
<http://stuartk.com/jszip>
|
|
|
|
(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
|
|
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
|
|
|
|
JSZip uses the library pako released under the MIT license :
|
|
https://github.com/nodeca/pako/blob/main/LICENSE
|
|
*/(function(e,t){(function(n){e.exports=n()})(function(){return function n(r,i,u){function p(l,h){if(!i[l]){if(!r[l]){var c=typeof Vu=="function"&&Vu;if(!h&&c)return c(l,!0);if(o)return o(l,!0);var f=new Error("Cannot find module '"+l+"'");throw f.code="MODULE_NOT_FOUND",f}var s=i[l]={exports:{}};r[l][0].call(s.exports,function(d){var g=r[l][1][d];return p(g||d)},s,s.exports,n,r,i,u)}return i[l].exports}for(var o=typeof Vu=="function"&&Vu,a=0;a<u.length;a++)p(u[a]);return p}({1:[function(n,r,i){var u=n("./utils"),p=n("./support"),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";i.encode=function(a){for(var l,h,c,f,s,d,g,m=[],v=0,y=a.length,b=y,w=u.getTypeOf(a)!=="string";v<a.length;)b=y-v,c=w?(l=a[v++],h=v<y?a[v++]:0,v<y?a[v++]:0):(l=a.charCodeAt(v++),h=v<y?a.charCodeAt(v++):0,v<y?a.charCodeAt(v++):0),f=l>>2,s=(3&l)<<4|h>>4,d=1<b?(15&h)<<2|c>>6:64,g=2<b?63&c:64,m.push(o.charAt(f)+o.charAt(s)+o.charAt(d)+o.charAt(g));return m.join("")},i.decode=function(a){var l,h,c,f,s,d,g=0,m=0,v="data:";if(a.substr(0,v.length)===v)throw new Error("Invalid base64 input, it looks like a data url.");var y,b=3*(a=a.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(a.charAt(a.length-1)===o.charAt(64)&&b--,a.charAt(a.length-2)===o.charAt(64)&&b--,b%1!=0)throw new Error("Invalid base64 input, bad content length.");for(y=p.uint8array?new Uint8Array(0|b):new Array(0|b);g<a.length;)l=o.indexOf(a.charAt(g++))<<2|(f=o.indexOf(a.charAt(g++)))>>4,h=(15&f)<<4|(s=o.indexOf(a.charAt(g++)))>>2,c=(3&s)<<6|(d=o.indexOf(a.charAt(g++))),y[m++]=l,s!==64&&(y[m++]=h),d!==64&&(y[m++]=c);return y}},{"./support":30,"./utils":32}],2:[function(n,r,i){var u=n("./external"),p=n("./stream/DataWorker"),o=n("./stream/Crc32Probe"),a=n("./stream/DataLengthProbe");function l(h,c,f,s,d){this.compressedSize=h,this.uncompressedSize=c,this.crc32=f,this.compression=s,this.compressedContent=d}l.prototype={getContentWorker:function(){var h=new p(u.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")),c=this;return h.on("end",function(){if(this.streamInfo.data_length!==c.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),h},getCompressedWorker:function(){return new p(u.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},l.createWorkerFrom=function(h,c,f){return h.pipe(new o).pipe(new a("uncompressedSize")).pipe(c.compressWorker(f)).pipe(new a("compressedSize")).withStreamInfo("compression",c)},r.exports=l},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(n,r,i){var u=n("./stream/GenericWorker");i.STORE={magic:"\0\0",compressWorker:function(){return new u("STORE compression")},uncompressWorker:function(){return new u("STORE decompression")}},i.DEFLATE=n("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(n,r,i){var u=n("./utils"),p=function(){for(var o,a=[],l=0;l<256;l++){o=l;for(var h=0;h<8;h++)o=1&o?3988292384^o>>>1:o>>>1;a[l]=o}return a}();r.exports=function(o,a){return o!==void 0&&o.length?u.getTypeOf(o)!=="string"?function(l,h,c,f){var s=p,d=f+c;l^=-1;for(var g=f;g<d;g++)l=l>>>8^s[255&(l^h[g])];return-1^l}(0|a,o,o.length,0):function(l,h,c,f){var s=p,d=f+c;l^=-1;for(var g=f;g<d;g++)l=l>>>8^s[255&(l^h.charCodeAt(g))];return-1^l}(0|a,o,o.length,0):0}},{"./utils":32}],5:[function(n,r,i){i.base64=!1,i.binary=!1,i.dir=!1,i.createFolders=!0,i.date=null,i.compression=null,i.compressionOptions=null,i.comment=null,i.unixPermissions=null,i.dosPermissions=null},{}],6:[function(n,r,i){var u=null;u=typeof Promise<"u"?Promise:n("lie"),r.exports={Promise:u}},{lie:37}],7:[function(n,r,i){var u=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",p=n("pako"),o=n("./utils"),a=n("./stream/GenericWorker"),l=u?"uint8array":"array";function h(c,f){a.call(this,"FlateWorker/"+c),this._pako=null,this._pakoAction=c,this._pakoOptions=f,this.meta={}}i.magic="\b\0",o.inherits(h,a),h.prototype.processChunk=function(c){this.meta=c.meta,this._pako===null&&this._createPako(),this._pako.push(o.transformTo(l,c.data),!1)},h.prototype.flush=function(){a.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},h.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this._pako=null},h.prototype._createPako=function(){this._pako=new p[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var c=this;this._pako.onData=function(f){c.push({data:f,meta:c.meta})}},i.compressWorker=function(c){return new h("Deflate",c)},i.uncompressWorker=function(){return new h("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(n,r,i){function u(s,d){var g,m="";for(g=0;g<d;g++)m+=String.fromCharCode(255&s),s>>>=8;return m}function p(s,d,g,m,v,y){var b,w,S=s.file,C=s.compression,T=y!==l.utf8encode,k=o.transformTo("string",y(S.name)),A=o.transformTo("string",l.utf8encode(S.name)),P=S.comment,z=o.transformTo("string",y(P)),I=o.transformTo("string",l.utf8encode(P)),$=A.length!==S.name.length,O=I.length!==P.length,Y="",re="",q="",J=S.dir,E=S.date,V={crc32:0,compressedSize:0,uncompressedSize:0};d&&!g||(V.crc32=s.crc32,V.compressedSize=s.compressedSize,V.uncompressedSize=s.uncompressedSize);var M=0;d&&(M|=8),T||!$&&!O||(M|=2048);var R=0,G=0;J&&(R|=16),v==="UNIX"?(G=798,R|=function(B,Z){var H=B;return B||(H=Z?16893:33204),(65535&H)<<16}(S.unixPermissions,J)):(G=20,R|=function(B){return 63&(B||0)}(S.dosPermissions)),b=E.getUTCHours(),b<<=6,b|=E.getUTCMinutes(),b<<=5,b|=E.getUTCSeconds()/2,w=E.getUTCFullYear()-1980,w<<=4,w|=E.getUTCMonth()+1,w<<=5,w|=E.getUTCDate(),$&&(re=u(1,1)+u(h(k),4)+A,Y+="up"+u(re.length,2)+re),O&&(q=u(1,1)+u(h(z),4)+I,Y+="uc"+u(q.length,2)+q);var D="";return D+=`
|
|
\0`,D+=u(M,2),D+=C.magic,D+=u(b,2),D+=u(w,2),D+=u(V.crc32,4),D+=u(V.compressedSize,4),D+=u(V.uncompressedSize,4),D+=u(k.length,2),D+=u(Y.length,2),{fileRecord:c.LOCAL_FILE_HEADER+D+k+Y,dirRecord:c.CENTRAL_FILE_HEADER+u(G,2)+D+u(z.length,2)+"\0\0\0\0"+u(R,4)+u(m,4)+k+Y+z}}var o=n("../utils"),a=n("../stream/GenericWorker"),l=n("../utf8"),h=n("../crc32"),c=n("../signature");function f(s,d,g,m){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=d,this.zipPlatform=g,this.encodeFileName=m,this.streamFiles=s,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}o.inherits(f,a),f.prototype.push=function(s){var d=s.meta.percent||0,g=this.entriesCount,m=this._sources.length;this.accumulate?this.contentBuffer.push(s):(this.bytesWritten+=s.data.length,a.prototype.push.call(this,{data:s.data,meta:{currentFile:this.currentFile,percent:g?(d+100*(g-m-1))/g:100}}))},f.prototype.openedSource=function(s){this.currentSourceOffset=this.bytesWritten,this.currentFile=s.file.name;var d=this.streamFiles&&!s.file.dir;if(d){var g=p(s,d,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:g.fileRecord,meta:{percent:0}})}else this.accumulate=!0},f.prototype.closedSource=function(s){this.accumulate=!1;var d=this.streamFiles&&!s.file.dir,g=p(s,d,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(g.dirRecord),d)this.push({data:function(m){return c.DATA_DESCRIPTOR+u(m.crc32,4)+u(m.compressedSize,4)+u(m.uncompressedSize,4)}(s),meta:{percent:100}});else for(this.push({data:g.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},f.prototype.flush=function(){for(var s=this.bytesWritten,d=0;d<this.dirRecords.length;d++)this.push({data:this.dirRecords[d],meta:{percent:100}});var g=this.bytesWritten-s,m=function(v,y,b,w,S){var C=o.transformTo("string",S(w));return c.CENTRAL_DIRECTORY_END+"\0\0\0\0"+u(v,2)+u(v,2)+u(y,4)+u(b,4)+u(C.length,2)+C}(this.dirRecords.length,g,s,this.zipComment,this.encodeFileName);this.push({data:m,meta:{percent:100}})},f.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},f.prototype.registerPrevious=function(s){this._sources.push(s);var d=this;return s.on("data",function(g){d.processChunk(g)}),s.on("end",function(){d.closedSource(d.previous.streamInfo),d._sources.length?d.prepareNextSource():d.end()}),s.on("error",function(g){d.error(g)}),this},f.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},f.prototype.error=function(s){var d=this._sources;if(!a.prototype.error.call(this,s))return!1;for(var g=0;g<d.length;g++)try{d[g].error(s)}catch{}return!0},f.prototype.lock=function(){a.prototype.lock.call(this);for(var s=this._sources,d=0;d<s.length;d++)s[d].lock()},r.exports=f},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(n,r,i){var u=n("../compressions"),p=n("./ZipFileWorker");i.generateWorker=function(o,a,l){var h=new p(a.streamFiles,l,a.platform,a.encodeFileName),c=0;try{o.forEach(function(f,s){c++;var d=function(y,b){var w=y||b,S=u[w];if(!S)throw new Error(w+" is not a valid compression method !");return S}(s.options.compression,a.compression),g=s.options.compressionOptions||a.compressionOptions||{},m=s.dir,v=s.date;s._compressWorker(d,g).withStreamInfo("file",{name:f,dir:m,date:v,comment:s.comment||"",unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions}).pipe(h)}),h.entriesCount=c}catch(f){h.error(f)}return h}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(n,r,i){function u(){if(!(this instanceof u))return new u;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var p=new u;for(var o in this)typeof this[o]!="function"&&(p[o]=this[o]);return p}}(u.prototype=n("./object")).loadAsync=n("./load"),u.support=n("./support"),u.defaults=n("./defaults"),u.version="3.10.1",u.loadAsync=function(p,o){return new u().loadAsync(p,o)},u.external=n("./external"),r.exports=u},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(n,r,i){var u=n("./utils"),p=n("./external"),o=n("./utf8"),a=n("./zipEntries"),l=n("./stream/Crc32Probe"),h=n("./nodejsUtils");function c(f){return new p.Promise(function(s,d){var g=f.decompressed.getContentWorker().pipe(new l);g.on("error",function(m){d(m)}).on("end",function(){g.streamInfo.crc32!==f.decompressed.crc32?d(new Error("Corrupted zip : CRC32 mismatch")):s()}).resume()})}r.exports=function(f,s){var d=this;return s=u.extend(s||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:o.utf8decode}),h.isNode&&h.isStream(f)?p.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):u.prepareContent("the loaded zip file",f,!0,s.optimizedBinaryString,s.base64).then(function(g){var m=new a(s);return m.load(g),m}).then(function(g){var m=[p.Promise.resolve(g)],v=g.files;if(s.checkCRC32)for(var y=0;y<v.length;y++)m.push(c(v[y]));return p.Promise.all(m)}).then(function(g){for(var m=g.shift(),v=m.files,y=0;y<v.length;y++){var b=v[y],w=b.fileNameStr,S=u.resolve(b.fileNameStr);d.file(S,b.decompressed,{binary:!0,optimizedBinaryString:!0,date:b.date,dir:b.dir,comment:b.fileCommentStr.length?b.fileCommentStr:null,unixPermissions:b.unixPermissions,dosPermissions:b.dosPermissions,createFolders:s.createFolders}),b.dir||(d.file(S).unsafeOriginalName=w)}return m.zipComment.length&&(d.comment=m.zipComment),d})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(n,r,i){var u=n("../utils"),p=n("../stream/GenericWorker");function o(a,l){p.call(this,"Nodejs stream input adapter for "+a),this._upstreamEnded=!1,this._bindStream(l)}u.inherits(o,p),o.prototype._bindStream=function(a){var l=this;(this._stream=a).pause(),a.on("data",function(h){l.push({data:h,meta:{percent:0}})}).on("error",function(h){l.isPaused?this.generatedError=h:l.error(h)}).on("end",function(){l.isPaused?l._upstreamEnded=!0:l.end()})},o.prototype.pause=function(){return!!p.prototype.pause.call(this)&&(this._stream.pause(),!0)},o.prototype.resume=function(){return!!p.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},r.exports=o},{"../stream/GenericWorker":28,"../utils":32}],13:[function(n,r,i){var u=n("readable-stream").Readable;function p(o,a,l){u.call(this,a),this._helper=o;var h=this;o.on("data",function(c,f){h.push(c)||h._helper.pause(),l&&l(f)}).on("error",function(c){h.emit("error",c)}).on("end",function(){h.push(null)})}n("../utils").inherits(p,u),p.prototype._read=function(){this._helper.resume()},r.exports=p},{"../utils":32,"readable-stream":16}],14:[function(n,r,i){r.exports={isNode:typeof Buffer<"u",newBufferFrom:function(u,p){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(u,p);if(typeof u=="number")throw new Error('The "data" argument must not be a number');return new Buffer(u,p)},allocBuffer:function(u){if(Buffer.alloc)return Buffer.alloc(u);var p=new Buffer(u);return p.fill(0),p},isBuffer:function(u){return Buffer.isBuffer(u)},isStream:function(u){return u&&typeof u.on=="function"&&typeof u.pause=="function"&&typeof u.resume=="function"}}},{}],15:[function(n,r,i){function u(S,C,T){var k,A=o.getTypeOf(C),P=o.extend(T||{},h);P.date=P.date||new Date,P.compression!==null&&(P.compression=P.compression.toUpperCase()),typeof P.unixPermissions=="string"&&(P.unixPermissions=parseInt(P.unixPermissions,8)),P.unixPermissions&&16384&P.unixPermissions&&(P.dir=!0),P.dosPermissions&&16&P.dosPermissions&&(P.dir=!0),P.dir&&(S=v(S)),P.createFolders&&(k=m(S))&&y.call(this,k,!0);var z=A==="string"&&P.binary===!1&&P.base64===!1;T&&T.binary!==void 0||(P.binary=!z),(C instanceof c&&C.uncompressedSize===0||P.dir||!C||C.length===0)&&(P.base64=!1,P.binary=!0,C="",P.compression="STORE",A="string");var I=null;I=C instanceof c||C instanceof a?C:d.isNode&&d.isStream(C)?new g(S,C):o.prepareContent(S,C,P.binary,P.optimizedBinaryString,P.base64);var $=new f(S,I,P);this.files[S]=$}var p=n("./utf8"),o=n("./utils"),a=n("./stream/GenericWorker"),l=n("./stream/StreamHelper"),h=n("./defaults"),c=n("./compressedObject"),f=n("./zipObject"),s=n("./generate"),d=n("./nodejsUtils"),g=n("./nodejs/NodejsStreamInputAdapter"),m=function(S){S.slice(-1)==="/"&&(S=S.substring(0,S.length-1));var C=S.lastIndexOf("/");return 0<C?S.substring(0,C):""},v=function(S){return S.slice(-1)!=="/"&&(S+="/"),S},y=function(S,C){return C=C!==void 0?C:h.createFolders,S=v(S),this.files[S]||u.call(this,S,null,{dir:!0,createFolders:C}),this.files[S]};function b(S){return Object.prototype.toString.call(S)==="[object RegExp]"}var w={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(S){var C,T,k;for(C in this.files)k=this.files[C],(T=C.slice(this.root.length,C.length))&&C.slice(0,this.root.length)===this.root&&S(T,k)},filter:function(S){var C=[];return this.forEach(function(T,k){S(T,k)&&C.push(k)}),C},file:function(S,C,T){if(arguments.length!==1)return S=this.root+S,u.call(this,S,C,T),this;if(b(S)){var k=S;return this.filter(function(P,z){return!z.dir&&k.test(P)})}var A=this.files[this.root+S];return A&&!A.dir?A:null},folder:function(S){if(!S)return this;if(b(S))return this.filter(function(A,P){return P.dir&&S.test(A)});var C=this.root+S,T=y.call(this,C),k=this.clone();return k.root=T.name,k},remove:function(S){S=this.root+S;var C=this.files[S];if(C||(S.slice(-1)!=="/"&&(S+="/"),C=this.files[S]),C&&!C.dir)delete this.files[S];else for(var T=this.filter(function(A,P){return P.name.slice(0,S.length)===S}),k=0;k<T.length;k++)delete this.files[T[k].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(S){var C,T={};try{if((T=o.extend(S||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:p.utf8encode})).type=T.type.toLowerCase(),T.compression=T.compression.toUpperCase(),T.type==="binarystring"&&(T.type="string"),!T.type)throw new Error("No output type specified.");o.checkSupport(T.type),T.platform!=="darwin"&&T.platform!=="freebsd"&&T.platform!=="linux"&&T.platform!=="sunos"||(T.platform="UNIX"),T.platform==="win32"&&(T.platform="DOS");var k=T.comment||this.comment||"";C=s.generateWorker(this,T,k)}catch(A){(C=new a("error")).error(A)}return new l(C,T.type||"string",T.mimeType)},generateAsync:function(S,C){return this.generateInternalStream(S).accumulate(C)},generateNodeStream:function(S,C){return(S=S||{}).type||(S.type="nodebuffer"),this.generateInternalStream(S).toNodejsStream(C)}};r.exports=w},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(n,r,i){r.exports=n("stream")},{stream:void 0}],17:[function(n,r,i){var u=n("./DataReader");function p(o){u.call(this,o);for(var a=0;a<this.data.length;a++)o[a]=255&o[a]}n("../utils").inherits(p,u),p.prototype.byteAt=function(o){return this.data[this.zero+o]},p.prototype.lastIndexOfSignature=function(o){for(var a=o.charCodeAt(0),l=o.charCodeAt(1),h=o.charCodeAt(2),c=o.charCodeAt(3),f=this.length-4;0<=f;--f)if(this.data[f]===a&&this.data[f+1]===l&&this.data[f+2]===h&&this.data[f+3]===c)return f-this.zero;return-1},p.prototype.readAndCheckSignature=function(o){var a=o.charCodeAt(0),l=o.charCodeAt(1),h=o.charCodeAt(2),c=o.charCodeAt(3),f=this.readData(4);return a===f[0]&&l===f[1]&&h===f[2]&&c===f[3]},p.prototype.readData=function(o){if(this.checkOffset(o),o===0)return[];var a=this.data.slice(this.zero+this.index,this.zero+this.index+o);return this.index+=o,a},r.exports=p},{"../utils":32,"./DataReader":18}],18:[function(n,r,i){var u=n("../utils");function p(o){this.data=o,this.length=o.length,this.index=0,this.zero=0}p.prototype={checkOffset:function(o){this.checkIndex(this.index+o)},checkIndex:function(o){if(this.length<this.zero+o||o<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+o+"). Corrupted zip ?")},setIndex:function(o){this.checkIndex(o),this.index=o},skip:function(o){this.setIndex(this.index+o)},byteAt:function(){},readInt:function(o){var a,l=0;for(this.checkOffset(o),a=this.index+o-1;a>=this.index;a--)l=(l<<8)+this.byteAt(a);return this.index+=o,l},readString:function(o){return u.transformTo("string",this.readData(o))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var o=this.readInt(4);return new Date(Date.UTC(1980+(o>>25&127),(o>>21&15)-1,o>>16&31,o>>11&31,o>>5&63,(31&o)<<1))}},r.exports=p},{"../utils":32}],19:[function(n,r,i){var u=n("./Uint8ArrayReader");function p(o){u.call(this,o)}n("../utils").inherits(p,u),p.prototype.readData=function(o){this.checkOffset(o);var a=this.data.slice(this.zero+this.index,this.zero+this.index+o);return this.index+=o,a},r.exports=p},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(n,r,i){var u=n("./DataReader");function p(o){u.call(this,o)}n("../utils").inherits(p,u),p.prototype.byteAt=function(o){return this.data.charCodeAt(this.zero+o)},p.prototype.lastIndexOfSignature=function(o){return this.data.lastIndexOf(o)-this.zero},p.prototype.readAndCheckSignature=function(o){return o===this.readData(4)},p.prototype.readData=function(o){this.checkOffset(o);var a=this.data.slice(this.zero+this.index,this.zero+this.index+o);return this.index+=o,a},r.exports=p},{"../utils":32,"./DataReader":18}],21:[function(n,r,i){var u=n("./ArrayReader");function p(o){u.call(this,o)}n("../utils").inherits(p,u),p.prototype.readData=function(o){if(this.checkOffset(o),o===0)return new Uint8Array(0);var a=this.data.subarray(this.zero+this.index,this.zero+this.index+o);return this.index+=o,a},r.exports=p},{"../utils":32,"./ArrayReader":17}],22:[function(n,r,i){var u=n("../utils"),p=n("../support"),o=n("./ArrayReader"),a=n("./StringReader"),l=n("./NodeBufferReader"),h=n("./Uint8ArrayReader");r.exports=function(c){var f=u.getTypeOf(c);return u.checkSupport(f),f!=="string"||p.uint8array?f==="nodebuffer"?new l(c):p.uint8array?new h(u.transformTo("uint8array",c)):new o(u.transformTo("array",c)):new a(c)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(n,r,i){i.LOCAL_FILE_HEADER="PK",i.CENTRAL_FILE_HEADER="PK",i.CENTRAL_DIRECTORY_END="PK",i.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",i.ZIP64_CENTRAL_DIRECTORY_END="PK",i.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(n,r,i){var u=n("./GenericWorker"),p=n("../utils");function o(a){u.call(this,"ConvertWorker to "+a),this.destType=a}p.inherits(o,u),o.prototype.processChunk=function(a){this.push({data:p.transformTo(this.destType,a.data),meta:a.meta})},r.exports=o},{"../utils":32,"./GenericWorker":28}],25:[function(n,r,i){var u=n("./GenericWorker"),p=n("../crc32");function o(){u.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}n("../utils").inherits(o,u),o.prototype.processChunk=function(a){this.streamInfo.crc32=p(a.data,this.streamInfo.crc32||0),this.push(a)},r.exports=o},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(n,r,i){var u=n("../utils"),p=n("./GenericWorker");function o(a){p.call(this,"DataLengthProbe for "+a),this.propName=a,this.withStreamInfo(a,0)}u.inherits(o,p),o.prototype.processChunk=function(a){if(a){var l=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=l+a.data.length}p.prototype.processChunk.call(this,a)},r.exports=o},{"../utils":32,"./GenericWorker":28}],27:[function(n,r,i){var u=n("../utils"),p=n("./GenericWorker");function o(a){p.call(this,"DataWorker");var l=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,a.then(function(h){l.dataIsReady=!0,l.data=h,l.max=h&&h.length||0,l.type=u.getTypeOf(h),l.isPaused||l._tickAndRepeat()},function(h){l.error(h)})}u.inherits(o,p),o.prototype.cleanUp=function(){p.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!p.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,u.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(u.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var a=null,l=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":a=this.data.substring(this.index,l);break;case"uint8array":a=this.data.subarray(this.index,l);break;case"array":case"nodebuffer":a=this.data.slice(this.index,l)}return this.index=l,this.push({data:a,meta:{percent:this.max?this.index/this.max*100:0}})},r.exports=o},{"../utils":32,"./GenericWorker":28}],28:[function(n,r,i){function u(p){this.name=p||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}u.prototype={push:function(p){this.emit("data",p)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(p){this.emit("error",p)}return!0},error:function(p){return!this.isFinished&&(this.isPaused?this.generatedError=p:(this.isFinished=!0,this.emit("error",p),this.previous&&this.previous.error(p),this.cleanUp()),!0)},on:function(p,o){return this._listeners[p].push(o),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(p,o){if(this._listeners[p])for(var a=0;a<this._listeners[p].length;a++)this._listeners[p][a].call(this,o)},pipe:function(p){return p.registerPrevious(this)},registerPrevious:function(p){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=p.streamInfo,this.mergeStreamInfo(),this.previous=p;var o=this;return p.on("data",function(a){o.processChunk(a)}),p.on("end",function(){o.end()}),p.on("error",function(a){o.error(a)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var p=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),p=!0),this.previous&&this.previous.resume(),!p},flush:function(){},processChunk:function(p){this.push(p)},withStreamInfo:function(p,o){return this.extraStreamInfo[p]=o,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var p in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,p)&&(this.streamInfo[p]=this.extraStreamInfo[p])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var p="Worker "+this.name;return this.previous?this.previous+" -> "+p:p}},r.exports=u},{}],29:[function(n,r,i){var u=n("../utils"),p=n("./ConvertWorker"),o=n("./GenericWorker"),a=n("../base64"),l=n("../support"),h=n("../external"),c=null;if(l.nodestream)try{c=n("../nodejs/NodejsStreamOutputAdapter")}catch{}function f(d,g){return new h.Promise(function(m,v){var y=[],b=d._internalType,w=d._outputType,S=d._mimeType;d.on("data",function(C,T){y.push(C),g&&g(T)}).on("error",function(C){y=[],v(C)}).on("end",function(){try{var C=function(T,k,A){switch(T){case"blob":return u.newBlob(u.transformTo("arraybuffer",k),A);case"base64":return a.encode(k);default:return u.transformTo(T,k)}}(w,function(T,k){var A,P=0,z=null,I=0;for(A=0;A<k.length;A++)I+=k[A].length;switch(T){case"string":return k.join("");case"array":return Array.prototype.concat.apply([],k);case"uint8array":for(z=new Uint8Array(I),A=0;A<k.length;A++)z.set(k[A],P),P+=k[A].length;return z;case"nodebuffer":return Buffer.concat(k);default:throw new Error("concat : unsupported type '"+T+"'")}}(b,y),S);m(C)}catch(T){v(T)}y=[]}).resume()})}function s(d,g,m){var v=g;switch(g){case"blob":case"arraybuffer":v="uint8array";break;case"base64":v="string"}try{this._internalType=v,this._outputType=g,this._mimeType=m,u.checkSupport(v),this._worker=d.pipe(new p(v)),d.lock()}catch(y){this._worker=new o("error"),this._worker.error(y)}}s.prototype={accumulate:function(d){return f(this,d)},on:function(d,g){var m=this;return d==="data"?this._worker.on(d,function(v){g.call(m,v.data,v.meta)}):this._worker.on(d,function(){u.delay(g,arguments,m)}),this},resume:function(){return u.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(d){if(u.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new c(this,{objectMode:this._outputType!=="nodebuffer"},d)}},r.exports=s},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(n,r,i){if(i.base64=!0,i.array=!0,i.string=!0,i.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",i.nodebuffer=typeof Buffer<"u",i.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")i.blob=!1;else{var u=new ArrayBuffer(0);try{i.blob=new Blob([u],{type:"application/zip"}).size===0}catch{try{var p=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);p.append(u),i.blob=p.getBlob("application/zip").size===0}catch{i.blob=!1}}}try{i.nodestream=!!n("readable-stream").Readable}catch{i.nodestream=!1}},{"readable-stream":16}],31:[function(n,r,i){for(var u=n("./utils"),p=n("./support"),o=n("./nodejsUtils"),a=n("./stream/GenericWorker"),l=new Array(256),h=0;h<256;h++)l[h]=252<=h?6:248<=h?5:240<=h?4:224<=h?3:192<=h?2:1;l[254]=l[254]=1;function c(){a.call(this,"utf-8 decode"),this.leftOver=null}function f(){a.call(this,"utf-8 encode")}i.utf8encode=function(s){return p.nodebuffer?o.newBufferFrom(s,"utf-8"):function(d){var g,m,v,y,b,w=d.length,S=0;for(y=0;y<w;y++)(64512&(m=d.charCodeAt(y)))==55296&&y+1<w&&(64512&(v=d.charCodeAt(y+1)))==56320&&(m=65536+(m-55296<<10)+(v-56320),y++),S+=m<128?1:m<2048?2:m<65536?3:4;for(g=p.uint8array?new Uint8Array(S):new Array(S),y=b=0;b<S;y++)(64512&(m=d.charCodeAt(y)))==55296&&y+1<w&&(64512&(v=d.charCodeAt(y+1)))==56320&&(m=65536+(m-55296<<10)+(v-56320),y++),m<128?g[b++]=m:(m<2048?g[b++]=192|m>>>6:(m<65536?g[b++]=224|m>>>12:(g[b++]=240|m>>>18,g[b++]=128|m>>>12&63),g[b++]=128|m>>>6&63),g[b++]=128|63&m);return g}(s)},i.utf8decode=function(s){return p.nodebuffer?u.transformTo("nodebuffer",s).toString("utf-8"):function(d){var g,m,v,y,b=d.length,w=new Array(2*b);for(g=m=0;g<b;)if((v=d[g++])<128)w[m++]=v;else if(4<(y=l[v]))w[m++]=65533,g+=y-1;else{for(v&=y===2?31:y===3?15:7;1<y&&g<b;)v=v<<6|63&d[g++],y--;1<y?w[m++]=65533:v<65536?w[m++]=v:(v-=65536,w[m++]=55296|v>>10&1023,w[m++]=56320|1023&v)}return w.length!==m&&(w.subarray?w=w.subarray(0,m):w.length=m),u.applyFromCharCode(w)}(s=u.transformTo(p.uint8array?"uint8array":"array",s))},u.inherits(c,a),c.prototype.processChunk=function(s){var d=u.transformTo(p.uint8array?"uint8array":"array",s.data);if(this.leftOver&&this.leftOver.length){if(p.uint8array){var g=d;(d=new Uint8Array(g.length+this.leftOver.length)).set(this.leftOver,0),d.set(g,this.leftOver.length)}else d=this.leftOver.concat(d);this.leftOver=null}var m=function(y,b){var w;for((b=b||y.length)>y.length&&(b=y.length),w=b-1;0<=w&&(192&y[w])==128;)w--;return w<0||w===0?b:w+l[y[w]]>b?w:b}(d),v=d;m!==d.length&&(p.uint8array?(v=d.subarray(0,m),this.leftOver=d.subarray(m,d.length)):(v=d.slice(0,m),this.leftOver=d.slice(m,d.length))),this.push({data:i.utf8decode(v),meta:s.meta})},c.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:i.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},i.Utf8DecodeWorker=c,u.inherits(f,a),f.prototype.processChunk=function(s){this.push({data:i.utf8encode(s.data),meta:s.meta})},i.Utf8EncodeWorker=f},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(n,r,i){var u=n("./support"),p=n("./base64"),o=n("./nodejsUtils"),a=n("./external");function l(g){return g}function h(g,m){for(var v=0;v<g.length;++v)m[v]=255&g.charCodeAt(v);return m}n("setimmediate"),i.newBlob=function(g,m){i.checkSupport("blob");try{return new Blob([g],{type:m})}catch{try{var v=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return v.append(g),v.getBlob(m)}catch{throw new Error("Bug : can't construct the Blob.")}}};var c={stringifyByChunk:function(g,m,v){var y=[],b=0,w=g.length;if(w<=v)return String.fromCharCode.apply(null,g);for(;b<w;)m==="array"||m==="nodebuffer"?y.push(String.fromCharCode.apply(null,g.slice(b,Math.min(b+v,w)))):y.push(String.fromCharCode.apply(null,g.subarray(b,Math.min(b+v,w)))),b+=v;return y.join("")},stringifyByChar:function(g){for(var m="",v=0;v<g.length;v++)m+=String.fromCharCode(g[v]);return m},applyCanBeUsed:{uint8array:function(){try{return u.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return u.nodebuffer&&String.fromCharCode.apply(null,o.allocBuffer(1)).length===1}catch{return!1}}()}};function f(g){var m=65536,v=i.getTypeOf(g),y=!0;if(v==="uint8array"?y=c.applyCanBeUsed.uint8array:v==="nodebuffer"&&(y=c.applyCanBeUsed.nodebuffer),y)for(;1<m;)try{return c.stringifyByChunk(g,v,m)}catch{m=Math.floor(m/2)}return c.stringifyByChar(g)}function s(g,m){for(var v=0;v<g.length;v++)m[v]=g[v];return m}i.applyFromCharCode=f;var d={};d.string={string:l,array:function(g){return h(g,new Array(g.length))},arraybuffer:function(g){return d.string.uint8array(g).buffer},uint8array:function(g){return h(g,new Uint8Array(g.length))},nodebuffer:function(g){return h(g,o.allocBuffer(g.length))}},d.array={string:f,array:l,arraybuffer:function(g){return new Uint8Array(g).buffer},uint8array:function(g){return new Uint8Array(g)},nodebuffer:function(g){return o.newBufferFrom(g)}},d.arraybuffer={string:function(g){return f(new Uint8Array(g))},array:function(g){return s(new Uint8Array(g),new Array(g.byteLength))},arraybuffer:l,uint8array:function(g){return new Uint8Array(g)},nodebuffer:function(g){return o.newBufferFrom(new Uint8Array(g))}},d.uint8array={string:f,array:function(g){return s(g,new Array(g.length))},arraybuffer:function(g){return g.buffer},uint8array:l,nodebuffer:function(g){return o.newBufferFrom(g)}},d.nodebuffer={string:f,array:function(g){return s(g,new Array(g.length))},arraybuffer:function(g){return d.nodebuffer.uint8array(g).buffer},uint8array:function(g){return s(g,new Uint8Array(g.length))},nodebuffer:l},i.transformTo=function(g,m){if(m=m||"",!g)return m;i.checkSupport(g);var v=i.getTypeOf(m);return d[v][g](m)},i.resolve=function(g){for(var m=g.split("/"),v=[],y=0;y<m.length;y++){var b=m[y];b==="."||b===""&&y!==0&&y!==m.length-1||(b===".."?v.pop():v.push(b))}return v.join("/")},i.getTypeOf=function(g){return typeof g=="string"?"string":Object.prototype.toString.call(g)==="[object Array]"?"array":u.nodebuffer&&o.isBuffer(g)?"nodebuffer":u.uint8array&&g instanceof Uint8Array?"uint8array":u.arraybuffer&&g instanceof ArrayBuffer?"arraybuffer":void 0},i.checkSupport=function(g){if(!u[g.toLowerCase()])throw new Error(g+" is not supported by this platform")},i.MAX_VALUE_16BITS=65535,i.MAX_VALUE_32BITS=-1,i.pretty=function(g){var m,v,y="";for(v=0;v<(g||"").length;v++)y+="\\x"+((m=g.charCodeAt(v))<16?"0":"")+m.toString(16).toUpperCase();return y},i.delay=function(g,m,v){setImmediate(function(){g.apply(v||null,m||[])})},i.inherits=function(g,m){function v(){}v.prototype=m.prototype,g.prototype=new v},i.extend=function(){var g,m,v={};for(g=0;g<arguments.length;g++)for(m in arguments[g])Object.prototype.hasOwnProperty.call(arguments[g],m)&&v[m]===void 0&&(v[m]=arguments[g][m]);return v},i.prepareContent=function(g,m,v,y,b){return a.Promise.resolve(m).then(function(w){return u.blob&&(w instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(w))!==-1)&&typeof FileReader<"u"?new a.Promise(function(S,C){var T=new FileReader;T.onload=function(k){S(k.target.result)},T.onerror=function(k){C(k.target.error)},T.readAsArrayBuffer(w)}):w}).then(function(w){var S=i.getTypeOf(w);return S?(S==="arraybuffer"?w=i.transformTo("uint8array",w):S==="string"&&(b?w=p.decode(w):v&&y!==!0&&(w=function(C){return h(C,u.uint8array?new Uint8Array(C.length):new Array(C.length))}(w))),w):a.Promise.reject(new Error("Can't read the data of '"+g+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(n,r,i){var u=n("./reader/readerFor"),p=n("./utils"),o=n("./signature"),a=n("./zipEntry"),l=n("./support");function h(c){this.files=[],this.loadOptions=c}h.prototype={checkSignature:function(c){if(!this.reader.readAndCheckSignature(c)){this.reader.index-=4;var f=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+p.pretty(f)+", expected "+p.pretty(c)+")")}},isSignature:function(c,f){var s=this.reader.index;this.reader.setIndex(c);var d=this.reader.readString(4)===f;return this.reader.setIndex(s),d},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var c=this.reader.readData(this.zipCommentLength),f=l.uint8array?"uint8array":"array",s=p.transformTo(f,c);this.zipComment=this.loadOptions.decodeFileName(s)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var c,f,s,d=this.zip64EndOfCentralSize-44;0<d;)c=this.reader.readInt(2),f=this.reader.readInt(4),s=this.reader.readData(f),this.zip64ExtensibleData[c]={id:c,length:f,value:s}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var c,f;for(c=0;c<this.files.length;c++)f=this.files[c],this.reader.setIndex(f.localHeaderOffset),this.checkSignature(o.LOCAL_FILE_HEADER),f.readLocalPart(this.reader),f.handleUTF8(),f.processAttributes()},readCentralDir:function(){var c;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(o.CENTRAL_FILE_HEADER);)(c=new a({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(c);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var c=this.reader.lastIndexOfSignature(o.CENTRAL_DIRECTORY_END);if(c<0)throw this.isSignature(0,o.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(c);var f=c;if(this.checkSignature(o.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===p.MAX_VALUE_16BITS||this.diskWithCentralDirStart===p.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===p.MAX_VALUE_16BITS||this.centralDirRecords===p.MAX_VALUE_16BITS||this.centralDirSize===p.MAX_VALUE_32BITS||this.centralDirOffset===p.MAX_VALUE_32BITS){if(this.zip64=!0,(c=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(c),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,o.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var s=this.centralDirOffset+this.centralDirSize;this.zip64&&(s+=20,s+=12+this.zip64EndOfCentralSize);var d=f-s;if(0<d)this.isSignature(f,o.CENTRAL_FILE_HEADER)||(this.reader.zero=d);else if(d<0)throw new Error("Corrupted zip: missing "+Math.abs(d)+" bytes.")},prepareReader:function(c){this.reader=u(c)},load:function(c){this.prepareReader(c),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},r.exports=h},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(n,r,i){var u=n("./reader/readerFor"),p=n("./utils"),o=n("./compressedObject"),a=n("./crc32"),l=n("./utf8"),h=n("./compressions"),c=n("./support");function f(s,d){this.options=s,this.loadOptions=d}f.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(s){var d,g;if(s.skip(22),this.fileNameLength=s.readInt(2),g=s.readInt(2),this.fileName=s.readData(this.fileNameLength),s.skip(g),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((d=function(m){for(var v in h)if(Object.prototype.hasOwnProperty.call(h,v)&&h[v].magic===m)return h[v];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+p.pretty(this.compressionMethod)+" unknown (inner file : "+p.transformTo("string",this.fileName)+")");this.decompressed=new o(this.compressedSize,this.uncompressedSize,this.crc32,d,s.readData(this.compressedSize))},readCentralPart:function(s){this.versionMadeBy=s.readInt(2),s.skip(2),this.bitFlag=s.readInt(2),this.compressionMethod=s.readString(2),this.date=s.readDate(),this.crc32=s.readInt(4),this.compressedSize=s.readInt(4),this.uncompressedSize=s.readInt(4);var d=s.readInt(2);if(this.extraFieldsLength=s.readInt(2),this.fileCommentLength=s.readInt(2),this.diskNumberStart=s.readInt(2),this.internalFileAttributes=s.readInt(2),this.externalFileAttributes=s.readInt(4),this.localHeaderOffset=s.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");s.skip(d),this.readExtraFields(s),this.parseZIP64ExtraField(s),this.fileComment=s.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var s=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),s==0&&(this.dosPermissions=63&this.externalFileAttributes),s==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var s=u(this.extraFields[1].value);this.uncompressedSize===p.MAX_VALUE_32BITS&&(this.uncompressedSize=s.readInt(8)),this.compressedSize===p.MAX_VALUE_32BITS&&(this.compressedSize=s.readInt(8)),this.localHeaderOffset===p.MAX_VALUE_32BITS&&(this.localHeaderOffset=s.readInt(8)),this.diskNumberStart===p.MAX_VALUE_32BITS&&(this.diskNumberStart=s.readInt(4))}},readExtraFields:function(s){var d,g,m,v=s.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});s.index+4<v;)d=s.readInt(2),g=s.readInt(2),m=s.readData(g),this.extraFields[d]={id:d,length:g,value:m};s.setIndex(v)},handleUTF8:function(){var s=c.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=l.utf8decode(this.fileName),this.fileCommentStr=l.utf8decode(this.fileComment);else{var d=this.findExtraFieldUnicodePath();if(d!==null)this.fileNameStr=d;else{var g=p.transformTo(s,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(g)}var m=this.findExtraFieldUnicodeComment();if(m!==null)this.fileCommentStr=m;else{var v=p.transformTo(s,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(v)}}},findExtraFieldUnicodePath:function(){var s=this.extraFields[28789];if(s){var d=u(s.value);return d.readInt(1)!==1||a(this.fileName)!==d.readInt(4)?null:l.utf8decode(d.readData(s.length-5))}return null},findExtraFieldUnicodeComment:function(){var s=this.extraFields[25461];if(s){var d=u(s.value);return d.readInt(1)!==1||a(this.fileComment)!==d.readInt(4)?null:l.utf8decode(d.readData(s.length-5))}return null}},r.exports=f},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(n,r,i){function u(d,g,m){this.name=d,this.dir=m.dir,this.date=m.date,this.comment=m.comment,this.unixPermissions=m.unixPermissions,this.dosPermissions=m.dosPermissions,this._data=g,this._dataBinary=m.binary,this.options={compression:m.compression,compressionOptions:m.compressionOptions}}var p=n("./stream/StreamHelper"),o=n("./stream/DataWorker"),a=n("./utf8"),l=n("./compressedObject"),h=n("./stream/GenericWorker");u.prototype={internalStream:function(d){var g=null,m="string";try{if(!d)throw new Error("No output type specified.");var v=(m=d.toLowerCase())==="string"||m==="text";m!=="binarystring"&&m!=="text"||(m="string"),g=this._decompressWorker();var y=!this._dataBinary;y&&!v&&(g=g.pipe(new a.Utf8EncodeWorker)),!y&&v&&(g=g.pipe(new a.Utf8DecodeWorker))}catch(b){(g=new h("error")).error(b)}return new p(g,m,"")},async:function(d,g){return this.internalStream(d).accumulate(g)},nodeStream:function(d,g){return this.internalStream(d||"nodebuffer").toNodejsStream(g)},_compressWorker:function(d,g){if(this._data instanceof l&&this._data.compression.magic===d.magic)return this._data.getCompressedWorker();var m=this._decompressWorker();return this._dataBinary||(m=m.pipe(new a.Utf8EncodeWorker)),l.createWorkerFrom(m,d,g)},_decompressWorker:function(){return this._data instanceof l?this._data.getContentWorker():this._data instanceof h?this._data:new o(this._data)}};for(var c=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],f=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},s=0;s<c.length;s++)u.prototype[c[s]]=f;r.exports=u},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(n,r,i){(function(u){var p,o,a=u.MutationObserver||u.WebKitMutationObserver;if(a){var l=0,h=new a(d),c=u.document.createTextNode("");h.observe(c,{characterData:!0}),p=function(){c.data=l=++l%2}}else if(u.setImmediate||u.MessageChannel===void 0)p="document"in u&&"onreadystatechange"in u.document.createElement("script")?function(){var g=u.document.createElement("script");g.onreadystatechange=function(){d(),g.onreadystatechange=null,g.parentNode.removeChild(g),g=null},u.document.documentElement.appendChild(g)}:function(){setTimeout(d,0)};else{var f=new u.MessageChannel;f.port1.onmessage=d,p=function(){f.port2.postMessage(0)}}var s=[];function d(){var g,m;o=!0;for(var v=s.length;v;){for(m=s,s=[],g=-1;++g<v;)m[g]();v=s.length}o=!1}r.exports=function(g){s.push(g)!==1||o||p()}}).call(this,typeof Mu<"u"?Mu:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(n,r,i){var u=n("immediate");function p(){}var o={},a=["REJECTED"],l=["FULFILLED"],h=["PENDING"];function c(v){if(typeof v!="function")throw new TypeError("resolver must be a function");this.state=h,this.queue=[],this.outcome=void 0,v!==p&&g(this,v)}function f(v,y,b){this.promise=v,typeof y=="function"&&(this.onFulfilled=y,this.callFulfilled=this.otherCallFulfilled),typeof b=="function"&&(this.onRejected=b,this.callRejected=this.otherCallRejected)}function s(v,y,b){u(function(){var w;try{w=y(b)}catch(S){return o.reject(v,S)}w===v?o.reject(v,new TypeError("Cannot resolve promise with itself")):o.resolve(v,w)})}function d(v){var y=v&&v.then;if(v&&(typeof v=="object"||typeof v=="function")&&typeof y=="function")return function(){y.apply(v,arguments)}}function g(v,y){var b=!1;function w(T){b||(b=!0,o.reject(v,T))}function S(T){b||(b=!0,o.resolve(v,T))}var C=m(function(){y(S,w)});C.status==="error"&&w(C.value)}function m(v,y){var b={};try{b.value=v(y),b.status="success"}catch(w){b.status="error",b.value=w}return b}(r.exports=c).prototype.finally=function(v){if(typeof v!="function")return this;var y=this.constructor;return this.then(function(b){return y.resolve(v()).then(function(){return b})},function(b){return y.resolve(v()).then(function(){throw b})})},c.prototype.catch=function(v){return this.then(null,v)},c.prototype.then=function(v,y){if(typeof v!="function"&&this.state===l||typeof y!="function"&&this.state===a)return this;var b=new this.constructor(p);return this.state!==h?s(b,this.state===l?v:y,this.outcome):this.queue.push(new f(b,v,y)),b},f.prototype.callFulfilled=function(v){o.resolve(this.promise,v)},f.prototype.otherCallFulfilled=function(v){s(this.promise,this.onFulfilled,v)},f.prototype.callRejected=function(v){o.reject(this.promise,v)},f.prototype.otherCallRejected=function(v){s(this.promise,this.onRejected,v)},o.resolve=function(v,y){var b=m(d,y);if(b.status==="error")return o.reject(v,b.value);var w=b.value;if(w)g(v,w);else{v.state=l,v.outcome=y;for(var S=-1,C=v.queue.length;++S<C;)v.queue[S].callFulfilled(y)}return v},o.reject=function(v,y){v.state=a,v.outcome=y;for(var b=-1,w=v.queue.length;++b<w;)v.queue[b].callRejected(y);return v},c.resolve=function(v){return v instanceof this?v:o.resolve(new this(p),v)},c.reject=function(v){var y=new this(p);return o.reject(y,v)},c.all=function(v){var y=this;if(Object.prototype.toString.call(v)!=="[object Array]")return this.reject(new TypeError("must be an array"));var b=v.length,w=!1;if(!b)return this.resolve([]);for(var S=new Array(b),C=0,T=-1,k=new this(p);++T<b;)A(v[T],T);return k;function A(P,z){y.resolve(P).then(function(I){S[z]=I,++C!==b||w||(w=!0,o.resolve(k,S))},function(I){w||(w=!0,o.reject(k,I))})}},c.race=function(v){var y=this;if(Object.prototype.toString.call(v)!=="[object Array]")return this.reject(new TypeError("must be an array"));var b=v.length,w=!1;if(!b)return this.resolve([]);for(var S=-1,C=new this(p);++S<b;)T=v[S],y.resolve(T).then(function(k){w||(w=!0,o.resolve(C,k))},function(k){w||(w=!0,o.reject(C,k))});var T;return C}},{immediate:36}],38:[function(n,r,i){var u={};(0,n("./lib/utils/common").assign)(u,n("./lib/deflate"),n("./lib/inflate"),n("./lib/zlib/constants")),r.exports=u},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(n,r,i){var u=n("./zlib/deflate"),p=n("./utils/common"),o=n("./utils/strings"),a=n("./zlib/messages"),l=n("./zlib/zstream"),h=Object.prototype.toString,c=0,f=-1,s=0,d=8;function g(v){if(!(this instanceof g))return new g(v);this.options=p.assign({level:f,method:d,chunkSize:16384,windowBits:15,memLevel:8,strategy:s,to:""},v||{});var y=this.options;y.raw&&0<y.windowBits?y.windowBits=-y.windowBits:y.gzip&&0<y.windowBits&&y.windowBits<16&&(y.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var b=u.deflateInit2(this.strm,y.level,y.method,y.windowBits,y.memLevel,y.strategy);if(b!==c)throw new Error(a[b]);if(y.header&&u.deflateSetHeader(this.strm,y.header),y.dictionary){var w;if(w=typeof y.dictionary=="string"?o.string2buf(y.dictionary):h.call(y.dictionary)==="[object ArrayBuffer]"?new Uint8Array(y.dictionary):y.dictionary,(b=u.deflateSetDictionary(this.strm,w))!==c)throw new Error(a[b]);this._dict_set=!0}}function m(v,y){var b=new g(y);if(b.push(v,!0),b.err)throw b.msg||a[b.err];return b.result}g.prototype.push=function(v,y){var b,w,S=this.strm,C=this.options.chunkSize;if(this.ended)return!1;w=y===~~y?y:y===!0?4:0,typeof v=="string"?S.input=o.string2buf(v):h.call(v)==="[object ArrayBuffer]"?S.input=new Uint8Array(v):S.input=v,S.next_in=0,S.avail_in=S.input.length;do{if(S.avail_out===0&&(S.output=new p.Buf8(C),S.next_out=0,S.avail_out=C),(b=u.deflate(S,w))!==1&&b!==c)return this.onEnd(b),!(this.ended=!0);S.avail_out!==0&&(S.avail_in!==0||w!==4&&w!==2)||(this.options.to==="string"?this.onData(o.buf2binstring(p.shrinkBuf(S.output,S.next_out))):this.onData(p.shrinkBuf(S.output,S.next_out)))}while((0<S.avail_in||S.avail_out===0)&&b!==1);return w===4?(b=u.deflateEnd(this.strm),this.onEnd(b),this.ended=!0,b===c):w!==2||(this.onEnd(c),!(S.avail_out=0))},g.prototype.onData=function(v){this.chunks.push(v)},g.prototype.onEnd=function(v){v===c&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=p.flattenChunks(this.chunks)),this.chunks=[],this.err=v,this.msg=this.strm.msg},i.Deflate=g,i.deflate=m,i.deflateRaw=function(v,y){return(y=y||{}).raw=!0,m(v,y)},i.gzip=function(v,y){return(y=y||{}).gzip=!0,m(v,y)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(n,r,i){var u=n("./zlib/inflate"),p=n("./utils/common"),o=n("./utils/strings"),a=n("./zlib/constants"),l=n("./zlib/messages"),h=n("./zlib/zstream"),c=n("./zlib/gzheader"),f=Object.prototype.toString;function s(g){if(!(this instanceof s))return new s(g);this.options=p.assign({chunkSize:16384,windowBits:0,to:""},g||{});var m=this.options;m.raw&&0<=m.windowBits&&m.windowBits<16&&(m.windowBits=-m.windowBits,m.windowBits===0&&(m.windowBits=-15)),!(0<=m.windowBits&&m.windowBits<16)||g&&g.windowBits||(m.windowBits+=32),15<m.windowBits&&m.windowBits<48&&(15&m.windowBits)==0&&(m.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new h,this.strm.avail_out=0;var v=u.inflateInit2(this.strm,m.windowBits);if(v!==a.Z_OK)throw new Error(l[v]);this.header=new c,u.inflateGetHeader(this.strm,this.header)}function d(g,m){var v=new s(m);if(v.push(g,!0),v.err)throw v.msg||l[v.err];return v.result}s.prototype.push=function(g,m){var v,y,b,w,S,C,T=this.strm,k=this.options.chunkSize,A=this.options.dictionary,P=!1;if(this.ended)return!1;y=m===~~m?m:m===!0?a.Z_FINISH:a.Z_NO_FLUSH,typeof g=="string"?T.input=o.binstring2buf(g):f.call(g)==="[object ArrayBuffer]"?T.input=new Uint8Array(g):T.input=g,T.next_in=0,T.avail_in=T.input.length;do{if(T.avail_out===0&&(T.output=new p.Buf8(k),T.next_out=0,T.avail_out=k),(v=u.inflate(T,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&A&&(C=typeof A=="string"?o.string2buf(A):f.call(A)==="[object ArrayBuffer]"?new Uint8Array(A):A,v=u.inflateSetDictionary(this.strm,C)),v===a.Z_BUF_ERROR&&P===!0&&(v=a.Z_OK,P=!1),v!==a.Z_STREAM_END&&v!==a.Z_OK)return this.onEnd(v),!(this.ended=!0);T.next_out&&(T.avail_out!==0&&v!==a.Z_STREAM_END&&(T.avail_in!==0||y!==a.Z_FINISH&&y!==a.Z_SYNC_FLUSH)||(this.options.to==="string"?(b=o.utf8border(T.output,T.next_out),w=T.next_out-b,S=o.buf2string(T.output,b),T.next_out=w,T.avail_out=k-w,w&&p.arraySet(T.output,T.output,b,w,0),this.onData(S)):this.onData(p.shrinkBuf(T.output,T.next_out)))),T.avail_in===0&&T.avail_out===0&&(P=!0)}while((0<T.avail_in||T.avail_out===0)&&v!==a.Z_STREAM_END);return v===a.Z_STREAM_END&&(y=a.Z_FINISH),y===a.Z_FINISH?(v=u.inflateEnd(this.strm),this.onEnd(v),this.ended=!0,v===a.Z_OK):y!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),!(T.avail_out=0))},s.prototype.onData=function(g){this.chunks.push(g)},s.prototype.onEnd=function(g){g===a.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=p.flattenChunks(this.chunks)),this.chunks=[],this.err=g,this.msg=this.strm.msg},i.Inflate=s,i.inflate=d,i.inflateRaw=function(g,m){return(m=m||{}).raw=!0,d(g,m)},i.ungzip=d},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(n,r,i){var u=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";i.assign=function(a){for(var l=Array.prototype.slice.call(arguments,1);l.length;){var h=l.shift();if(h){if(typeof h!="object")throw new TypeError(h+"must be non-object");for(var c in h)h.hasOwnProperty(c)&&(a[c]=h[c])}}return a},i.shrinkBuf=function(a,l){return a.length===l?a:a.subarray?a.subarray(0,l):(a.length=l,a)};var p={arraySet:function(a,l,h,c,f){if(l.subarray&&a.subarray)a.set(l.subarray(h,h+c),f);else for(var s=0;s<c;s++)a[f+s]=l[h+s]},flattenChunks:function(a){var l,h,c,f,s,d;for(l=c=0,h=a.length;l<h;l++)c+=a[l].length;for(d=new Uint8Array(c),l=f=0,h=a.length;l<h;l++)s=a[l],d.set(s,f),f+=s.length;return d}},o={arraySet:function(a,l,h,c,f){for(var s=0;s<c;s++)a[f+s]=l[h+s]},flattenChunks:function(a){return[].concat.apply([],a)}};i.setTyped=function(a){a?(i.Buf8=Uint8Array,i.Buf16=Uint16Array,i.Buf32=Int32Array,i.assign(i,p)):(i.Buf8=Array,i.Buf16=Array,i.Buf32=Array,i.assign(i,o))},i.setTyped(u)},{}],42:[function(n,r,i){var u=n("./common"),p=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch{p=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{o=!1}for(var a=new u.Buf8(256),l=0;l<256;l++)a[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;function h(c,f){if(f<65537&&(c.subarray&&o||!c.subarray&&p))return String.fromCharCode.apply(null,u.shrinkBuf(c,f));for(var s="",d=0;d<f;d++)s+=String.fromCharCode(c[d]);return s}a[254]=a[254]=1,i.string2buf=function(c){var f,s,d,g,m,v=c.length,y=0;for(g=0;g<v;g++)(64512&(s=c.charCodeAt(g)))==55296&&g+1<v&&(64512&(d=c.charCodeAt(g+1)))==56320&&(s=65536+(s-55296<<10)+(d-56320),g++),y+=s<128?1:s<2048?2:s<65536?3:4;for(f=new u.Buf8(y),g=m=0;m<y;g++)(64512&(s=c.charCodeAt(g)))==55296&&g+1<v&&(64512&(d=c.charCodeAt(g+1)))==56320&&(s=65536+(s-55296<<10)+(d-56320),g++),s<128?f[m++]=s:(s<2048?f[m++]=192|s>>>6:(s<65536?f[m++]=224|s>>>12:(f[m++]=240|s>>>18,f[m++]=128|s>>>12&63),f[m++]=128|s>>>6&63),f[m++]=128|63&s);return f},i.buf2binstring=function(c){return h(c,c.length)},i.binstring2buf=function(c){for(var f=new u.Buf8(c.length),s=0,d=f.length;s<d;s++)f[s]=c.charCodeAt(s);return f},i.buf2string=function(c,f){var s,d,g,m,v=f||c.length,y=new Array(2*v);for(s=d=0;s<v;)if((g=c[s++])<128)y[d++]=g;else if(4<(m=a[g]))y[d++]=65533,s+=m-1;else{for(g&=m===2?31:m===3?15:7;1<m&&s<v;)g=g<<6|63&c[s++],m--;1<m?y[d++]=65533:g<65536?y[d++]=g:(g-=65536,y[d++]=55296|g>>10&1023,y[d++]=56320|1023&g)}return h(y,d)},i.utf8border=function(c,f){var s;for((f=f||c.length)>c.length&&(f=c.length),s=f-1;0<=s&&(192&c[s])==128;)s--;return s<0||s===0?f:s+a[c[s]]>f?s:f}},{"./common":41}],43:[function(n,r,i){r.exports=function(u,p,o,a){for(var l=65535&u|0,h=u>>>16&65535|0,c=0;o!==0;){for(o-=c=2e3<o?2e3:o;h=h+(l=l+p[a++]|0)|0,--c;);l%=65521,h%=65521}return l|h<<16|0}},{}],44:[function(n,r,i){r.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(n,r,i){var u=function(){for(var p,o=[],a=0;a<256;a++){p=a;for(var l=0;l<8;l++)p=1&p?3988292384^p>>>1:p>>>1;o[a]=p}return o}();r.exports=function(p,o,a,l){var h=u,c=l+a;p^=-1;for(var f=l;f<c;f++)p=p>>>8^h[255&(p^o[f])];return-1^p}},{}],46:[function(n,r,i){var u,p=n("../utils/common"),o=n("./trees"),a=n("./adler32"),l=n("./crc32"),h=n("./messages"),c=0,f=4,s=0,d=-2,g=-1,m=4,v=2,y=8,b=9,w=286,S=30,C=19,T=2*w+1,k=15,A=3,P=258,z=P+A+1,I=42,$=113,O=1,Y=2,re=3,q=4;function J(x,U){return x.msg=h[U],U}function E(x){return(x<<1)-(4<x?9:0)}function V(x){for(var U=x.length;0<=--U;)x[U]=0}function M(x){var U=x.state,K=U.pending;K>x.avail_out&&(K=x.avail_out),K!==0&&(p.arraySet(x.output,U.pending_buf,U.pending_out,K,x.next_out),x.next_out+=K,U.pending_out+=K,x.total_out+=K,x.avail_out-=K,U.pending-=K,U.pending===0&&(U.pending_out=0))}function R(x,U){o._tr_flush_block(x,0<=x.block_start?x.block_start:-1,x.strstart-x.block_start,U),x.block_start=x.strstart,M(x.strm)}function G(x,U){x.pending_buf[x.pending++]=U}function D(x,U){x.pending_buf[x.pending++]=U>>>8&255,x.pending_buf[x.pending++]=255&U}function B(x,U){var K,L,F=x.max_chain_length,X=x.strstart,de=x.prev_length,le=x.nice_match,W=x.strstart>x.w_size-z?x.strstart-(x.w_size-z):0,pe=x.window,ie=x.w_mask,he=x.prev,we=x.strstart+P,Te=pe[X+de-1],Ae=pe[X+de];x.prev_length>=x.good_match&&(F>>=2),le>x.lookahead&&(le=x.lookahead);do if(pe[(K=U)+de]===Ae&&pe[K+de-1]===Te&&pe[K]===pe[X]&&pe[++K]===pe[X+1]){X+=2,K++;do;while(pe[++X]===pe[++K]&&pe[++X]===pe[++K]&&pe[++X]===pe[++K]&&pe[++X]===pe[++K]&&pe[++X]===pe[++K]&&pe[++X]===pe[++K]&&pe[++X]===pe[++K]&&pe[++X]===pe[++K]&&X<we);if(L=P-(we-X),X=we-P,de<L){if(x.match_start=U,le<=(de=L))break;Te=pe[X+de-1],Ae=pe[X+de]}}while((U=he[U&ie])>W&&--F!=0);return de<=x.lookahead?de:x.lookahead}function Z(x){var U,K,L,F,X,de,le,W,pe,ie,he=x.w_size;do{if(F=x.window_size-x.lookahead-x.strstart,x.strstart>=he+(he-z)){for(p.arraySet(x.window,x.window,he,he,0),x.match_start-=he,x.strstart-=he,x.block_start-=he,U=K=x.hash_size;L=x.head[--U],x.head[U]=he<=L?L-he:0,--K;);for(U=K=he;L=x.prev[--U],x.prev[U]=he<=L?L-he:0,--K;);F+=he}if(x.strm.avail_in===0)break;if(de=x.strm,le=x.window,W=x.strstart+x.lookahead,pe=F,ie=void 0,ie=de.avail_in,pe<ie&&(ie=pe),K=ie===0?0:(de.avail_in-=ie,p.arraySet(le,de.input,de.next_in,ie,W),de.state.wrap===1?de.adler=a(de.adler,le,ie,W):de.state.wrap===2&&(de.adler=l(de.adler,le,ie,W)),de.next_in+=ie,de.total_in+=ie,ie),x.lookahead+=K,x.lookahead+x.insert>=A)for(X=x.strstart-x.insert,x.ins_h=x.window[X],x.ins_h=(x.ins_h<<x.hash_shift^x.window[X+1])&x.hash_mask;x.insert&&(x.ins_h=(x.ins_h<<x.hash_shift^x.window[X+A-1])&x.hash_mask,x.prev[X&x.w_mask]=x.head[x.ins_h],x.head[x.ins_h]=X,X++,x.insert--,!(x.lookahead+x.insert<A)););}while(x.lookahead<z&&x.strm.avail_in!==0)}function H(x,U){for(var K,L;;){if(x.lookahead<z){if(Z(x),x.lookahead<z&&U===c)return O;if(x.lookahead===0)break}if(K=0,x.lookahead>=A&&(x.ins_h=(x.ins_h<<x.hash_shift^x.window[x.strstart+A-1])&x.hash_mask,K=x.prev[x.strstart&x.w_mask]=x.head[x.ins_h],x.head[x.ins_h]=x.strstart),K!==0&&x.strstart-K<=x.w_size-z&&(x.match_length=B(x,K)),x.match_length>=A)if(L=o._tr_tally(x,x.strstart-x.match_start,x.match_length-A),x.lookahead-=x.match_length,x.match_length<=x.max_lazy_match&&x.lookahead>=A){for(x.match_length--;x.strstart++,x.ins_h=(x.ins_h<<x.hash_shift^x.window[x.strstart+A-1])&x.hash_mask,K=x.prev[x.strstart&x.w_mask]=x.head[x.ins_h],x.head[x.ins_h]=x.strstart,--x.match_length!=0;);x.strstart++}else x.strstart+=x.match_length,x.match_length=0,x.ins_h=x.window[x.strstart],x.ins_h=(x.ins_h<<x.hash_shift^x.window[x.strstart+1])&x.hash_mask;else L=o._tr_tally(x,0,x.window[x.strstart]),x.lookahead--,x.strstart++;if(L&&(R(x,!1),x.strm.avail_out===0))return O}return x.insert=x.strstart<A-1?x.strstart:A-1,U===f?(R(x,!0),x.strm.avail_out===0?re:q):x.last_lit&&(R(x,!1),x.strm.avail_out===0)?O:Y}function Q(x,U){for(var K,L,F;;){if(x.lookahead<z){if(Z(x),x.lookahead<z&&U===c)return O;if(x.lookahead===0)break}if(K=0,x.lookahead>=A&&(x.ins_h=(x.ins_h<<x.hash_shift^x.window[x.strstart+A-1])&x.hash_mask,K=x.prev[x.strstart&x.w_mask]=x.head[x.ins_h],x.head[x.ins_h]=x.strstart),x.prev_length=x.match_length,x.prev_match=x.match_start,x.match_length=A-1,K!==0&&x.prev_length<x.max_lazy_match&&x.strstart-K<=x.w_size-z&&(x.match_length=B(x,K),x.match_length<=5&&(x.strategy===1||x.match_length===A&&4096<x.strstart-x.match_start)&&(x.match_length=A-1)),x.prev_length>=A&&x.match_length<=x.prev_length){for(F=x.strstart+x.lookahead-A,L=o._tr_tally(x,x.strstart-1-x.prev_match,x.prev_length-A),x.lookahead-=x.prev_length-1,x.prev_length-=2;++x.strstart<=F&&(x.ins_h=(x.ins_h<<x.hash_shift^x.window[x.strstart+A-1])&x.hash_mask,K=x.prev[x.strstart&x.w_mask]=x.head[x.ins_h],x.head[x.ins_h]=x.strstart),--x.prev_length!=0;);if(x.match_available=0,x.match_length=A-1,x.strstart++,L&&(R(x,!1),x.strm.avail_out===0))return O}else if(x.match_available){if((L=o._tr_tally(x,0,x.window[x.strstart-1]))&&R(x,!1),x.strstart++,x.lookahead--,x.strm.avail_out===0)return O}else x.match_available=1,x.strstart++,x.lookahead--}return x.match_available&&(L=o._tr_tally(x,0,x.window[x.strstart-1]),x.match_available=0),x.insert=x.strstart<A-1?x.strstart:A-1,U===f?(R(x,!0),x.strm.avail_out===0?re:q):x.last_lit&&(R(x,!1),x.strm.avail_out===0)?O:Y}function te(x,U,K,L,F){this.good_length=x,this.max_lazy=U,this.nice_length=K,this.max_chain=L,this.func=F}function fe(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=y,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new p.Buf16(2*T),this.dyn_dtree=new p.Buf16(2*(2*S+1)),this.bl_tree=new p.Buf16(2*(2*C+1)),V(this.dyn_ltree),V(this.dyn_dtree),V(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new p.Buf16(k+1),this.heap=new p.Buf16(2*w+1),V(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new p.Buf16(2*w+1),V(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function me(x){var U;return x&&x.state?(x.total_in=x.total_out=0,x.data_type=v,(U=x.state).pending=0,U.pending_out=0,U.wrap<0&&(U.wrap=-U.wrap),U.status=U.wrap?I:$,x.adler=U.wrap===2?0:1,U.last_flush=c,o._tr_init(U),s):J(x,d)}function _e(x){var U=me(x);return U===s&&function(K){K.window_size=2*K.w_size,V(K.head),K.max_lazy_match=u[K.level].max_lazy,K.good_match=u[K.level].good_length,K.nice_match=u[K.level].nice_length,K.max_chain_length=u[K.level].max_chain,K.strstart=0,K.block_start=0,K.lookahead=0,K.insert=0,K.match_length=K.prev_length=A-1,K.match_available=0,K.ins_h=0}(x.state),U}function j(x,U,K,L,F,X){if(!x)return d;var de=1;if(U===g&&(U=6),L<0?(de=0,L=-L):15<L&&(de=2,L-=16),F<1||b<F||K!==y||L<8||15<L||U<0||9<U||X<0||m<X)return J(x,d);L===8&&(L=9);var le=new fe;return(x.state=le).strm=x,le.wrap=de,le.gzhead=null,le.w_bits=L,le.w_size=1<<le.w_bits,le.w_mask=le.w_size-1,le.hash_bits=F+7,le.hash_size=1<<le.hash_bits,le.hash_mask=le.hash_size-1,le.hash_shift=~~((le.hash_bits+A-1)/A),le.window=new p.Buf8(2*le.w_size),le.head=new p.Buf16(le.hash_size),le.prev=new p.Buf16(le.w_size),le.lit_bufsize=1<<F+6,le.pending_buf_size=4*le.lit_bufsize,le.pending_buf=new p.Buf8(le.pending_buf_size),le.d_buf=1*le.lit_bufsize,le.l_buf=3*le.lit_bufsize,le.level=U,le.strategy=X,le.method=K,_e(x)}u=[new te(0,0,0,0,function(x,U){var K=65535;for(K>x.pending_buf_size-5&&(K=x.pending_buf_size-5);;){if(x.lookahead<=1){if(Z(x),x.lookahead===0&&U===c)return O;if(x.lookahead===0)break}x.strstart+=x.lookahead,x.lookahead=0;var L=x.block_start+K;if((x.strstart===0||x.strstart>=L)&&(x.lookahead=x.strstart-L,x.strstart=L,R(x,!1),x.strm.avail_out===0)||x.strstart-x.block_start>=x.w_size-z&&(R(x,!1),x.strm.avail_out===0))return O}return x.insert=0,U===f?(R(x,!0),x.strm.avail_out===0?re:q):(x.strstart>x.block_start&&(R(x,!1),x.strm.avail_out),O)}),new te(4,4,8,4,H),new te(4,5,16,8,H),new te(4,6,32,32,H),new te(4,4,16,16,Q),new te(8,16,32,32,Q),new te(8,16,128,128,Q),new te(8,32,128,256,Q),new te(32,128,258,1024,Q),new te(32,258,258,4096,Q)],i.deflateInit=function(x,U){return j(x,U,y,15,8,0)},i.deflateInit2=j,i.deflateReset=_e,i.deflateResetKeep=me,i.deflateSetHeader=function(x,U){return x&&x.state?x.state.wrap!==2?d:(x.state.gzhead=U,s):d},i.deflate=function(x,U){var K,L,F,X;if(!x||!x.state||5<U||U<0)return x?J(x,d):d;if(L=x.state,!x.output||!x.input&&x.avail_in!==0||L.status===666&&U!==f)return J(x,x.avail_out===0?-5:d);if(L.strm=x,K=L.last_flush,L.last_flush=U,L.status===I)if(L.wrap===2)x.adler=0,G(L,31),G(L,139),G(L,8),L.gzhead?(G(L,(L.gzhead.text?1:0)+(L.gzhead.hcrc?2:0)+(L.gzhead.extra?4:0)+(L.gzhead.name?8:0)+(L.gzhead.comment?16:0)),G(L,255&L.gzhead.time),G(L,L.gzhead.time>>8&255),G(L,L.gzhead.time>>16&255),G(L,L.gzhead.time>>24&255),G(L,L.level===9?2:2<=L.strategy||L.level<2?4:0),G(L,255&L.gzhead.os),L.gzhead.extra&&L.gzhead.extra.length&&(G(L,255&L.gzhead.extra.length),G(L,L.gzhead.extra.length>>8&255)),L.gzhead.hcrc&&(x.adler=l(x.adler,L.pending_buf,L.pending,0)),L.gzindex=0,L.status=69):(G(L,0),G(L,0),G(L,0),G(L,0),G(L,0),G(L,L.level===9?2:2<=L.strategy||L.level<2?4:0),G(L,3),L.status=$);else{var de=y+(L.w_bits-8<<4)<<8;de|=(2<=L.strategy||L.level<2?0:L.level<6?1:L.level===6?2:3)<<6,L.strstart!==0&&(de|=32),de+=31-de%31,L.status=$,D(L,de),L.strstart!==0&&(D(L,x.adler>>>16),D(L,65535&x.adler)),x.adler=1}if(L.status===69)if(L.gzhead.extra){for(F=L.pending;L.gzindex<(65535&L.gzhead.extra.length)&&(L.pending!==L.pending_buf_size||(L.gzhead.hcrc&&L.pending>F&&(x.adler=l(x.adler,L.pending_buf,L.pending-F,F)),M(x),F=L.pending,L.pending!==L.pending_buf_size));)G(L,255&L.gzhead.extra[L.gzindex]),L.gzindex++;L.gzhead.hcrc&&L.pending>F&&(x.adler=l(x.adler,L.pending_buf,L.pending-F,F)),L.gzindex===L.gzhead.extra.length&&(L.gzindex=0,L.status=73)}else L.status=73;if(L.status===73)if(L.gzhead.name){F=L.pending;do{if(L.pending===L.pending_buf_size&&(L.gzhead.hcrc&&L.pending>F&&(x.adler=l(x.adler,L.pending_buf,L.pending-F,F)),M(x),F=L.pending,L.pending===L.pending_buf_size)){X=1;break}X=L.gzindex<L.gzhead.name.length?255&L.gzhead.name.charCodeAt(L.gzindex++):0,G(L,X)}while(X!==0);L.gzhead.hcrc&&L.pending>F&&(x.adler=l(x.adler,L.pending_buf,L.pending-F,F)),X===0&&(L.gzindex=0,L.status=91)}else L.status=91;if(L.status===91)if(L.gzhead.comment){F=L.pending;do{if(L.pending===L.pending_buf_size&&(L.gzhead.hcrc&&L.pending>F&&(x.adler=l(x.adler,L.pending_buf,L.pending-F,F)),M(x),F=L.pending,L.pending===L.pending_buf_size)){X=1;break}X=L.gzindex<L.gzhead.comment.length?255&L.gzhead.comment.charCodeAt(L.gzindex++):0,G(L,X)}while(X!==0);L.gzhead.hcrc&&L.pending>F&&(x.adler=l(x.adler,L.pending_buf,L.pending-F,F)),X===0&&(L.status=103)}else L.status=103;if(L.status===103&&(L.gzhead.hcrc?(L.pending+2>L.pending_buf_size&&M(x),L.pending+2<=L.pending_buf_size&&(G(L,255&x.adler),G(L,x.adler>>8&255),x.adler=0,L.status=$)):L.status=$),L.pending!==0){if(M(x),x.avail_out===0)return L.last_flush=-1,s}else if(x.avail_in===0&&E(U)<=E(K)&&U!==f)return J(x,-5);if(L.status===666&&x.avail_in!==0)return J(x,-5);if(x.avail_in!==0||L.lookahead!==0||U!==c&&L.status!==666){var le=L.strategy===2?function(W,pe){for(var ie;;){if(W.lookahead===0&&(Z(W),W.lookahead===0)){if(pe===c)return O;break}if(W.match_length=0,ie=o._tr_tally(W,0,W.window[W.strstart]),W.lookahead--,W.strstart++,ie&&(R(W,!1),W.strm.avail_out===0))return O}return W.insert=0,pe===f?(R(W,!0),W.strm.avail_out===0?re:q):W.last_lit&&(R(W,!1),W.strm.avail_out===0)?O:Y}(L,U):L.strategy===3?function(W,pe){for(var ie,he,we,Te,Ae=W.window;;){if(W.lookahead<=P){if(Z(W),W.lookahead<=P&&pe===c)return O;if(W.lookahead===0)break}if(W.match_length=0,W.lookahead>=A&&0<W.strstart&&(he=Ae[we=W.strstart-1])===Ae[++we]&&he===Ae[++we]&&he===Ae[++we]){Te=W.strstart+P;do;while(he===Ae[++we]&&he===Ae[++we]&&he===Ae[++we]&&he===Ae[++we]&&he===Ae[++we]&&he===Ae[++we]&&he===Ae[++we]&&he===Ae[++we]&&we<Te);W.match_length=P-(Te-we),W.match_length>W.lookahead&&(W.match_length=W.lookahead)}if(W.match_length>=A?(ie=o._tr_tally(W,1,W.match_length-A),W.lookahead-=W.match_length,W.strstart+=W.match_length,W.match_length=0):(ie=o._tr_tally(W,0,W.window[W.strstart]),W.lookahead--,W.strstart++),ie&&(R(W,!1),W.strm.avail_out===0))return O}return W.insert=0,pe===f?(R(W,!0),W.strm.avail_out===0?re:q):W.last_lit&&(R(W,!1),W.strm.avail_out===0)?O:Y}(L,U):u[L.level].func(L,U);if(le!==re&&le!==q||(L.status=666),le===O||le===re)return x.avail_out===0&&(L.last_flush=-1),s;if(le===Y&&(U===1?o._tr_align(L):U!==5&&(o._tr_stored_block(L,0,0,!1),U===3&&(V(L.head),L.lookahead===0&&(L.strstart=0,L.block_start=0,L.insert=0))),M(x),x.avail_out===0))return L.last_flush=-1,s}return U!==f?s:L.wrap<=0?1:(L.wrap===2?(G(L,255&x.adler),G(L,x.adler>>8&255),G(L,x.adler>>16&255),G(L,x.adler>>24&255),G(L,255&x.total_in),G(L,x.total_in>>8&255),G(L,x.total_in>>16&255),G(L,x.total_in>>24&255)):(D(L,x.adler>>>16),D(L,65535&x.adler)),M(x),0<L.wrap&&(L.wrap=-L.wrap),L.pending!==0?s:1)},i.deflateEnd=function(x){var U;return x&&x.state?(U=x.state.status)!==I&&U!==69&&U!==73&&U!==91&&U!==103&&U!==$&&U!==666?J(x,d):(x.state=null,U===$?J(x,-3):s):d},i.deflateSetDictionary=function(x,U){var K,L,F,X,de,le,W,pe,ie=U.length;if(!x||!x.state||(X=(K=x.state).wrap)===2||X===1&&K.status!==I||K.lookahead)return d;for(X===1&&(x.adler=a(x.adler,U,ie,0)),K.wrap=0,ie>=K.w_size&&(X===0&&(V(K.head),K.strstart=0,K.block_start=0,K.insert=0),pe=new p.Buf8(K.w_size),p.arraySet(pe,U,ie-K.w_size,K.w_size,0),U=pe,ie=K.w_size),de=x.avail_in,le=x.next_in,W=x.input,x.avail_in=ie,x.next_in=0,x.input=U,Z(K);K.lookahead>=A;){for(L=K.strstart,F=K.lookahead-(A-1);K.ins_h=(K.ins_h<<K.hash_shift^K.window[L+A-1])&K.hash_mask,K.prev[L&K.w_mask]=K.head[K.ins_h],K.head[K.ins_h]=L,L++,--F;);K.strstart=L,K.lookahead=A-1,Z(K)}return K.strstart+=K.lookahead,K.block_start=K.strstart,K.insert=K.lookahead,K.lookahead=0,K.match_length=K.prev_length=A-1,K.match_available=0,x.next_in=le,x.input=W,x.avail_in=de,K.wrap=X,s},i.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(n,r,i){r.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(n,r,i){r.exports=function(u,p){var o,a,l,h,c,f,s,d,g,m,v,y,b,w,S,C,T,k,A,P,z,I,$,O,Y;o=u.state,a=u.next_in,O=u.input,l=a+(u.avail_in-5),h=u.next_out,Y=u.output,c=h-(p-u.avail_out),f=h+(u.avail_out-257),s=o.dmax,d=o.wsize,g=o.whave,m=o.wnext,v=o.window,y=o.hold,b=o.bits,w=o.lencode,S=o.distcode,C=(1<<o.lenbits)-1,T=(1<<o.distbits)-1;e:do{b<15&&(y+=O[a++]<<b,b+=8,y+=O[a++]<<b,b+=8),k=w[y&C];t:for(;;){if(y>>>=A=k>>>24,b-=A,(A=k>>>16&255)===0)Y[h++]=65535&k;else{if(!(16&A)){if((64&A)==0){k=w[(65535&k)+(y&(1<<A)-1)];continue t}if(32&A){o.mode=12;break e}u.msg="invalid literal/length code",o.mode=30;break e}P=65535&k,(A&=15)&&(b<A&&(y+=O[a++]<<b,b+=8),P+=y&(1<<A)-1,y>>>=A,b-=A),b<15&&(y+=O[a++]<<b,b+=8,y+=O[a++]<<b,b+=8),k=S[y&T];n:for(;;){if(y>>>=A=k>>>24,b-=A,!(16&(A=k>>>16&255))){if((64&A)==0){k=S[(65535&k)+(y&(1<<A)-1)];continue n}u.msg="invalid distance code",o.mode=30;break e}if(z=65535&k,b<(A&=15)&&(y+=O[a++]<<b,(b+=8)<A&&(y+=O[a++]<<b,b+=8)),s<(z+=y&(1<<A)-1)){u.msg="invalid distance too far back",o.mode=30;break e}if(y>>>=A,b-=A,(A=h-c)<z){if(g<(A=z-A)&&o.sane){u.msg="invalid distance too far back",o.mode=30;break e}if($=v,(I=0)===m){if(I+=d-A,A<P){for(P-=A;Y[h++]=v[I++],--A;);I=h-z,$=Y}}else if(m<A){if(I+=d+m-A,(A-=m)<P){for(P-=A;Y[h++]=v[I++],--A;);if(I=0,m<P){for(P-=A=m;Y[h++]=v[I++],--A;);I=h-z,$=Y}}}else if(I+=m-A,A<P){for(P-=A;Y[h++]=v[I++],--A;);I=h-z,$=Y}for(;2<P;)Y[h++]=$[I++],Y[h++]=$[I++],Y[h++]=$[I++],P-=3;P&&(Y[h++]=$[I++],1<P&&(Y[h++]=$[I++]))}else{for(I=h-z;Y[h++]=Y[I++],Y[h++]=Y[I++],Y[h++]=Y[I++],2<(P-=3););P&&(Y[h++]=Y[I++],1<P&&(Y[h++]=Y[I++]))}break}}break}}while(a<l&&h<f);a-=P=b>>3,y&=(1<<(b-=P<<3))-1,u.next_in=a,u.next_out=h,u.avail_in=a<l?l-a+5:5-(a-l),u.avail_out=h<f?f-h+257:257-(h-f),o.hold=y,o.bits=b}},{}],49:[function(n,r,i){var u=n("../utils/common"),p=n("./adler32"),o=n("./crc32"),a=n("./inffast"),l=n("./inftrees"),h=1,c=2,f=0,s=-2,d=1,g=852,m=592;function v(I){return(I>>>24&255)+(I>>>8&65280)+((65280&I)<<8)+((255&I)<<24)}function y(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new u.Buf16(320),this.work=new u.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function b(I){var $;return I&&I.state?($=I.state,I.total_in=I.total_out=$.total=0,I.msg="",$.wrap&&(I.adler=1&$.wrap),$.mode=d,$.last=0,$.havedict=0,$.dmax=32768,$.head=null,$.hold=0,$.bits=0,$.lencode=$.lendyn=new u.Buf32(g),$.distcode=$.distdyn=new u.Buf32(m),$.sane=1,$.back=-1,f):s}function w(I){var $;return I&&I.state?(($=I.state).wsize=0,$.whave=0,$.wnext=0,b(I)):s}function S(I,$){var O,Y;return I&&I.state?(Y=I.state,$<0?(O=0,$=-$):(O=1+($>>4),$<48&&($&=15)),$&&($<8||15<$)?s:(Y.window!==null&&Y.wbits!==$&&(Y.window=null),Y.wrap=O,Y.wbits=$,w(I))):s}function C(I,$){var O,Y;return I?(Y=new y,(I.state=Y).window=null,(O=S(I,$))!==f&&(I.state=null),O):s}var T,k,A=!0;function P(I){if(A){var $;for(T=new u.Buf32(512),k=new u.Buf32(32),$=0;$<144;)I.lens[$++]=8;for(;$<256;)I.lens[$++]=9;for(;$<280;)I.lens[$++]=7;for(;$<288;)I.lens[$++]=8;for(l(h,I.lens,0,288,T,0,I.work,{bits:9}),$=0;$<32;)I.lens[$++]=5;l(c,I.lens,0,32,k,0,I.work,{bits:5}),A=!1}I.lencode=T,I.lenbits=9,I.distcode=k,I.distbits=5}function z(I,$,O,Y){var re,q=I.state;return q.window===null&&(q.wsize=1<<q.wbits,q.wnext=0,q.whave=0,q.window=new u.Buf8(q.wsize)),Y>=q.wsize?(u.arraySet(q.window,$,O-q.wsize,q.wsize,0),q.wnext=0,q.whave=q.wsize):(Y<(re=q.wsize-q.wnext)&&(re=Y),u.arraySet(q.window,$,O-Y,re,q.wnext),(Y-=re)?(u.arraySet(q.window,$,O-Y,Y,0),q.wnext=Y,q.whave=q.wsize):(q.wnext+=re,q.wnext===q.wsize&&(q.wnext=0),q.whave<q.wsize&&(q.whave+=re))),0}i.inflateReset=w,i.inflateReset2=S,i.inflateResetKeep=b,i.inflateInit=function(I){return C(I,15)},i.inflateInit2=C,i.inflate=function(I,$){var O,Y,re,q,J,E,V,M,R,G,D,B,Z,H,Q,te,fe,me,_e,j,x,U,K,L,F=0,X=new u.Buf8(4),de=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!I||!I.state||!I.output||!I.input&&I.avail_in!==0)return s;(O=I.state).mode===12&&(O.mode=13),J=I.next_out,re=I.output,V=I.avail_out,q=I.next_in,Y=I.input,E=I.avail_in,M=O.hold,R=O.bits,G=E,D=V,U=f;e:for(;;)switch(O.mode){case d:if(O.wrap===0){O.mode=13;break}for(;R<16;){if(E===0)break e;E--,M+=Y[q++]<<R,R+=8}if(2&O.wrap&&M===35615){X[O.check=0]=255&M,X[1]=M>>>8&255,O.check=o(O.check,X,2,0),R=M=0,O.mode=2;break}if(O.flags=0,O.head&&(O.head.done=!1),!(1&O.wrap)||(((255&M)<<8)+(M>>8))%31){I.msg="incorrect header check",O.mode=30;break}if((15&M)!=8){I.msg="unknown compression method",O.mode=30;break}if(R-=4,x=8+(15&(M>>>=4)),O.wbits===0)O.wbits=x;else if(x>O.wbits){I.msg="invalid window size",O.mode=30;break}O.dmax=1<<x,I.adler=O.check=1,O.mode=512&M?10:12,R=M=0;break;case 2:for(;R<16;){if(E===0)break e;E--,M+=Y[q++]<<R,R+=8}if(O.flags=M,(255&O.flags)!=8){I.msg="unknown compression method",O.mode=30;break}if(57344&O.flags){I.msg="unknown header flags set",O.mode=30;break}O.head&&(O.head.text=M>>8&1),512&O.flags&&(X[0]=255&M,X[1]=M>>>8&255,O.check=o(O.check,X,2,0)),R=M=0,O.mode=3;case 3:for(;R<32;){if(E===0)break e;E--,M+=Y[q++]<<R,R+=8}O.head&&(O.head.time=M),512&O.flags&&(X[0]=255&M,X[1]=M>>>8&255,X[2]=M>>>16&255,X[3]=M>>>24&255,O.check=o(O.check,X,4,0)),R=M=0,O.mode=4;case 4:for(;R<16;){if(E===0)break e;E--,M+=Y[q++]<<R,R+=8}O.head&&(O.head.xflags=255&M,O.head.os=M>>8),512&O.flags&&(X[0]=255&M,X[1]=M>>>8&255,O.check=o(O.check,X,2,0)),R=M=0,O.mode=5;case 5:if(1024&O.flags){for(;R<16;){if(E===0)break e;E--,M+=Y[q++]<<R,R+=8}O.length=M,O.head&&(O.head.extra_len=M),512&O.flags&&(X[0]=255&M,X[1]=M>>>8&255,O.check=o(O.check,X,2,0)),R=M=0}else O.head&&(O.head.extra=null);O.mode=6;case 6:if(1024&O.flags&&(E<(B=O.length)&&(B=E),B&&(O.head&&(x=O.head.extra_len-O.length,O.head.extra||(O.head.extra=new Array(O.head.extra_len)),u.arraySet(O.head.extra,Y,q,B,x)),512&O.flags&&(O.check=o(O.check,Y,B,q)),E-=B,q+=B,O.length-=B),O.length))break e;O.length=0,O.mode=7;case 7:if(2048&O.flags){if(E===0)break e;for(B=0;x=Y[q+B++],O.head&&x&&O.length<65536&&(O.head.name+=String.fromCharCode(x)),x&&B<E;);if(512&O.flags&&(O.check=o(O.check,Y,B,q)),E-=B,q+=B,x)break e}else O.head&&(O.head.name=null);O.length=0,O.mode=8;case 8:if(4096&O.flags){if(E===0)break e;for(B=0;x=Y[q+B++],O.head&&x&&O.length<65536&&(O.head.comment+=String.fromCharCode(x)),x&&B<E;);if(512&O.flags&&(O.check=o(O.check,Y,B,q)),E-=B,q+=B,x)break e}else O.head&&(O.head.comment=null);O.mode=9;case 9:if(512&O.flags){for(;R<16;){if(E===0)break e;E--,M+=Y[q++]<<R,R+=8}if(M!==(65535&O.check)){I.msg="header crc mismatch",O.mode=30;break}R=M=0}O.head&&(O.head.hcrc=O.flags>>9&1,O.head.done=!0),I.adler=O.check=0,O.mode=12;break;case 10:for(;R<32;){if(E===0)break e;E--,M+=Y[q++]<<R,R+=8}I.adler=O.check=v(M),R=M=0,O.mode=11;case 11:if(O.havedict===0)return I.next_out=J,I.avail_out=V,I.next_in=q,I.avail_in=E,O.hold=M,O.bits=R,2;I.adler=O.check=1,O.mode=12;case 12:if($===5||$===6)break e;case 13:if(O.last){M>>>=7&R,R-=7&R,O.mode=27;break}for(;R<3;){if(E===0)break e;E--,M+=Y[q++]<<R,R+=8}switch(O.last=1&M,R-=1,3&(M>>>=1)){case 0:O.mode=14;break;case 1:if(P(O),O.mode=20,$!==6)break;M>>>=2,R-=2;break e;case 2:O.mode=17;break;case 3:I.msg="invalid block type",O.mode=30}M>>>=2,R-=2;break;case 14:for(M>>>=7&R,R-=7&R;R<32;){if(E===0)break e;E--,M+=Y[q++]<<R,R+=8}if((65535&M)!=(M>>>16^65535)){I.msg="invalid stored block lengths",O.mode=30;break}if(O.length=65535&M,R=M=0,O.mode=15,$===6)break e;case 15:O.mode=16;case 16:if(B=O.length){if(E<B&&(B=E),V<B&&(B=V),B===0)break e;u.arraySet(re,Y,q,B,J),E-=B,q+=B,V-=B,J+=B,O.length-=B;break}O.mode=12;break;case 17:for(;R<14;){if(E===0)break e;E--,M+=Y[q++]<<R,R+=8}if(O.nlen=257+(31&M),M>>>=5,R-=5,O.ndist=1+(31&M),M>>>=5,R-=5,O.ncode=4+(15&M),M>>>=4,R-=4,286<O.nlen||30<O.ndist){I.msg="too many length or distance symbols",O.mode=30;break}O.have=0,O.mode=18;case 18:for(;O.have<O.ncode;){for(;R<3;){if(E===0)break e;E--,M+=Y[q++]<<R,R+=8}O.lens[de[O.have++]]=7&M,M>>>=3,R-=3}for(;O.have<19;)O.lens[de[O.have++]]=0;if(O.lencode=O.lendyn,O.lenbits=7,K={bits:O.lenbits},U=l(0,O.lens,0,19,O.lencode,0,O.work,K),O.lenbits=K.bits,U){I.msg="invalid code lengths set",O.mode=30;break}O.have=0,O.mode=19;case 19:for(;O.have<O.nlen+O.ndist;){for(;te=(F=O.lencode[M&(1<<O.lenbits)-1])>>>16&255,fe=65535&F,!((Q=F>>>24)<=R);){if(E===0)break e;E--,M+=Y[q++]<<R,R+=8}if(fe<16)M>>>=Q,R-=Q,O.lens[O.have++]=fe;else{if(fe===16){for(L=Q+2;R<L;){if(E===0)break e;E--,M+=Y[q++]<<R,R+=8}if(M>>>=Q,R-=Q,O.have===0){I.msg="invalid bit length repeat",O.mode=30;break}x=O.lens[O.have-1],B=3+(3&M),M>>>=2,R-=2}else if(fe===17){for(L=Q+3;R<L;){if(E===0)break e;E--,M+=Y[q++]<<R,R+=8}R-=Q,x=0,B=3+(7&(M>>>=Q)),M>>>=3,R-=3}else{for(L=Q+7;R<L;){if(E===0)break e;E--,M+=Y[q++]<<R,R+=8}R-=Q,x=0,B=11+(127&(M>>>=Q)),M>>>=7,R-=7}if(O.have+B>O.nlen+O.ndist){I.msg="invalid bit length repeat",O.mode=30;break}for(;B--;)O.lens[O.have++]=x}}if(O.mode===30)break;if(O.lens[256]===0){I.msg="invalid code -- missing end-of-block",O.mode=30;break}if(O.lenbits=9,K={bits:O.lenbits},U=l(h,O.lens,0,O.nlen,O.lencode,0,O.work,K),O.lenbits=K.bits,U){I.msg="invalid literal/lengths set",O.mode=30;break}if(O.distbits=6,O.distcode=O.distdyn,K={bits:O.distbits},U=l(c,O.lens,O.nlen,O.ndist,O.distcode,0,O.work,K),O.distbits=K.bits,U){I.msg="invalid distances set",O.mode=30;break}if(O.mode=20,$===6)break e;case 20:O.mode=21;case 21:if(6<=E&&258<=V){I.next_out=J,I.avail_out=V,I.next_in=q,I.avail_in=E,O.hold=M,O.bits=R,a(I,D),J=I.next_out,re=I.output,V=I.avail_out,q=I.next_in,Y=I.input,E=I.avail_in,M=O.hold,R=O.bits,O.mode===12&&(O.back=-1);break}for(O.back=0;te=(F=O.lencode[M&(1<<O.lenbits)-1])>>>16&255,fe=65535&F,!((Q=F>>>24)<=R);){if(E===0)break e;E--,M+=Y[q++]<<R,R+=8}if(te&&(240&te)==0){for(me=Q,_e=te,j=fe;te=(F=O.lencode[j+((M&(1<<me+_e)-1)>>me)])>>>16&255,fe=65535&F,!(me+(Q=F>>>24)<=R);){if(E===0)break e;E--,M+=Y[q++]<<R,R+=8}M>>>=me,R-=me,O.back+=me}if(M>>>=Q,R-=Q,O.back+=Q,O.length=fe,te===0){O.mode=26;break}if(32&te){O.back=-1,O.mode=12;break}if(64&te){I.msg="invalid literal/length code",O.mode=30;break}O.extra=15&te,O.mode=22;case 22:if(O.extra){for(L=O.extra;R<L;){if(E===0)break e;E--,M+=Y[q++]<<R,R+=8}O.length+=M&(1<<O.extra)-1,M>>>=O.extra,R-=O.extra,O.back+=O.extra}O.was=O.length,O.mode=23;case 23:for(;te=(F=O.distcode[M&(1<<O.distbits)-1])>>>16&255,fe=65535&F,!((Q=F>>>24)<=R);){if(E===0)break e;E--,M+=Y[q++]<<R,R+=8}if((240&te)==0){for(me=Q,_e=te,j=fe;te=(F=O.distcode[j+((M&(1<<me+_e)-1)>>me)])>>>16&255,fe=65535&F,!(me+(Q=F>>>24)<=R);){if(E===0)break e;E--,M+=Y[q++]<<R,R+=8}M>>>=me,R-=me,O.back+=me}if(M>>>=Q,R-=Q,O.back+=Q,64&te){I.msg="invalid distance code",O.mode=30;break}O.offset=fe,O.extra=15&te,O.mode=24;case 24:if(O.extra){for(L=O.extra;R<L;){if(E===0)break e;E--,M+=Y[q++]<<R,R+=8}O.offset+=M&(1<<O.extra)-1,M>>>=O.extra,R-=O.extra,O.back+=O.extra}if(O.offset>O.dmax){I.msg="invalid distance too far back",O.mode=30;break}O.mode=25;case 25:if(V===0)break e;if(B=D-V,O.offset>B){if((B=O.offset-B)>O.whave&&O.sane){I.msg="invalid distance too far back",O.mode=30;break}Z=B>O.wnext?(B-=O.wnext,O.wsize-B):O.wnext-B,B>O.length&&(B=O.length),H=O.window}else H=re,Z=J-O.offset,B=O.length;for(V<B&&(B=V),V-=B,O.length-=B;re[J++]=H[Z++],--B;);O.length===0&&(O.mode=21);break;case 26:if(V===0)break e;re[J++]=O.length,V--,O.mode=21;break;case 27:if(O.wrap){for(;R<32;){if(E===0)break e;E--,M|=Y[q++]<<R,R+=8}if(D-=V,I.total_out+=D,O.total+=D,D&&(I.adler=O.check=O.flags?o(O.check,re,D,J-D):p(O.check,re,D,J-D)),D=V,(O.flags?M:v(M))!==O.check){I.msg="incorrect data check",O.mode=30;break}R=M=0}O.mode=28;case 28:if(O.wrap&&O.flags){for(;R<32;){if(E===0)break e;E--,M+=Y[q++]<<R,R+=8}if(M!==(4294967295&O.total)){I.msg="incorrect length check",O.mode=30;break}R=M=0}O.mode=29;case 29:U=1;break e;case 30:U=-3;break e;case 31:return-4;case 32:default:return s}return I.next_out=J,I.avail_out=V,I.next_in=q,I.avail_in=E,O.hold=M,O.bits=R,(O.wsize||D!==I.avail_out&&O.mode<30&&(O.mode<27||$!==4))&&z(I,I.output,I.next_out,D-I.avail_out)?(O.mode=31,-4):(G-=I.avail_in,D-=I.avail_out,I.total_in+=G,I.total_out+=D,O.total+=D,O.wrap&&D&&(I.adler=O.check=O.flags?o(O.check,re,D,I.next_out-D):p(O.check,re,D,I.next_out-D)),I.data_type=O.bits+(O.last?64:0)+(O.mode===12?128:0)+(O.mode===20||O.mode===15?256:0),(G==0&&D===0||$===4)&&U===f&&(U=-5),U)},i.inflateEnd=function(I){if(!I||!I.state)return s;var $=I.state;return $.window&&($.window=null),I.state=null,f},i.inflateGetHeader=function(I,$){var O;return I&&I.state?(2&(O=I.state).wrap)==0?s:((O.head=$).done=!1,f):s},i.inflateSetDictionary=function(I,$){var O,Y=$.length;return I&&I.state?(O=I.state).wrap!==0&&O.mode!==11?s:O.mode===11&&p(1,$,Y,0)!==O.check?-3:z(I,$,Y,Y)?(O.mode=31,-4):(O.havedict=1,f):s},i.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(n,r,i){var u=n("../utils/common"),p=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],l=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];r.exports=function(h,c,f,s,d,g,m,v){var y,b,w,S,C,T,k,A,P,z=v.bits,I=0,$=0,O=0,Y=0,re=0,q=0,J=0,E=0,V=0,M=0,R=null,G=0,D=new u.Buf16(16),B=new u.Buf16(16),Z=null,H=0;for(I=0;I<=15;I++)D[I]=0;for($=0;$<s;$++)D[c[f+$]]++;for(re=z,Y=15;1<=Y&&D[Y]===0;Y--);if(Y<re&&(re=Y),Y===0)return d[g++]=20971520,d[g++]=20971520,v.bits=1,0;for(O=1;O<Y&&D[O]===0;O++);for(re<O&&(re=O),I=E=1;I<=15;I++)if(E<<=1,(E-=D[I])<0)return-1;if(0<E&&(h===0||Y!==1))return-1;for(B[1]=0,I=1;I<15;I++)B[I+1]=B[I]+D[I];for($=0;$<s;$++)c[f+$]!==0&&(m[B[c[f+$]]++]=$);if(T=h===0?(R=Z=m,19):h===1?(R=p,G-=257,Z=o,H-=257,256):(R=a,Z=l,-1),I=O,C=g,J=$=M=0,w=-1,S=(V=1<<(q=re))-1,h===1&&852<V||h===2&&592<V)return 1;for(;;){for(k=I-J,P=m[$]<T?(A=0,m[$]):m[$]>T?(A=Z[H+m[$]],R[G+m[$]]):(A=96,0),y=1<<I-J,O=b=1<<q;d[C+(M>>J)+(b-=y)]=k<<24|A<<16|P|0,b!==0;);for(y=1<<I-1;M&y;)y>>=1;if(y!==0?(M&=y-1,M+=y):M=0,$++,--D[I]==0){if(I===Y)break;I=c[f+m[$]]}if(re<I&&(M&S)!==w){for(J===0&&(J=re),C+=O,E=1<<(q=I-J);q+J<Y&&!((E-=D[q+J])<=0);)q++,E<<=1;if(V+=1<<q,h===1&&852<V||h===2&&592<V)return 1;d[w=M&S]=re<<24|q<<16|C-g|0}}return M!==0&&(d[C+M]=I-J<<24|64<<16|0),v.bits=re,0}},{"../utils/common":41}],51:[function(n,r,i){r.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(n,r,i){var u=n("../utils/common"),p=0,o=1;function a(F){for(var X=F.length;0<=--X;)F[X]=0}var l=0,h=29,c=256,f=c+1+h,s=30,d=19,g=2*f+1,m=15,v=16,y=7,b=256,w=16,S=17,C=18,T=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],k=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],A=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],P=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],z=new Array(2*(f+2));a(z);var I=new Array(2*s);a(I);var $=new Array(512);a($);var O=new Array(256);a(O);var Y=new Array(h);a(Y);var re,q,J,E=new Array(s);function V(F,X,de,le,W){this.static_tree=F,this.extra_bits=X,this.extra_base=de,this.elems=le,this.max_length=W,this.has_stree=F&&F.length}function M(F,X){this.dyn_tree=F,this.max_code=0,this.stat_desc=X}function R(F){return F<256?$[F]:$[256+(F>>>7)]}function G(F,X){F.pending_buf[F.pending++]=255&X,F.pending_buf[F.pending++]=X>>>8&255}function D(F,X,de){F.bi_valid>v-de?(F.bi_buf|=X<<F.bi_valid&65535,G(F,F.bi_buf),F.bi_buf=X>>v-F.bi_valid,F.bi_valid+=de-v):(F.bi_buf|=X<<F.bi_valid&65535,F.bi_valid+=de)}function B(F,X,de){D(F,de[2*X],de[2*X+1])}function Z(F,X){for(var de=0;de|=1&F,F>>>=1,de<<=1,0<--X;);return de>>>1}function H(F,X,de){var le,W,pe=new Array(m+1),ie=0;for(le=1;le<=m;le++)pe[le]=ie=ie+de[le-1]<<1;for(W=0;W<=X;W++){var he=F[2*W+1];he!==0&&(F[2*W]=Z(pe[he]++,he))}}function Q(F){var X;for(X=0;X<f;X++)F.dyn_ltree[2*X]=0;for(X=0;X<s;X++)F.dyn_dtree[2*X]=0;for(X=0;X<d;X++)F.bl_tree[2*X]=0;F.dyn_ltree[2*b]=1,F.opt_len=F.static_len=0,F.last_lit=F.matches=0}function te(F){8<F.bi_valid?G(F,F.bi_buf):0<F.bi_valid&&(F.pending_buf[F.pending++]=F.bi_buf),F.bi_buf=0,F.bi_valid=0}function fe(F,X,de,le){var W=2*X,pe=2*de;return F[W]<F[pe]||F[W]===F[pe]&&le[X]<=le[de]}function me(F,X,de){for(var le=F.heap[de],W=de<<1;W<=F.heap_len&&(W<F.heap_len&&fe(X,F.heap[W+1],F.heap[W],F.depth)&&W++,!fe(X,le,F.heap[W],F.depth));)F.heap[de]=F.heap[W],de=W,W<<=1;F.heap[de]=le}function _e(F,X,de){var le,W,pe,ie,he=0;if(F.last_lit!==0)for(;le=F.pending_buf[F.d_buf+2*he]<<8|F.pending_buf[F.d_buf+2*he+1],W=F.pending_buf[F.l_buf+he],he++,le===0?B(F,W,X):(B(F,(pe=O[W])+c+1,X),(ie=T[pe])!==0&&D(F,W-=Y[pe],ie),B(F,pe=R(--le),de),(ie=k[pe])!==0&&D(F,le-=E[pe],ie)),he<F.last_lit;);B(F,b,X)}function j(F,X){var de,le,W,pe=X.dyn_tree,ie=X.stat_desc.static_tree,he=X.stat_desc.has_stree,we=X.stat_desc.elems,Te=-1;for(F.heap_len=0,F.heap_max=g,de=0;de<we;de++)pe[2*de]!==0?(F.heap[++F.heap_len]=Te=de,F.depth[de]=0):pe[2*de+1]=0;for(;F.heap_len<2;)pe[2*(W=F.heap[++F.heap_len]=Te<2?++Te:0)]=1,F.depth[W]=0,F.opt_len--,he&&(F.static_len-=ie[2*W+1]);for(X.max_code=Te,de=F.heap_len>>1;1<=de;de--)me(F,pe,de);for(W=we;de=F.heap[1],F.heap[1]=F.heap[F.heap_len--],me(F,pe,1),le=F.heap[1],F.heap[--F.heap_max]=de,F.heap[--F.heap_max]=le,pe[2*W]=pe[2*de]+pe[2*le],F.depth[W]=(F.depth[de]>=F.depth[le]?F.depth[de]:F.depth[le])+1,pe[2*de+1]=pe[2*le+1]=W,F.heap[1]=W++,me(F,pe,1),2<=F.heap_len;);F.heap[--F.heap_max]=F.heap[1],function(Ae,Le){var ye,Ce,Ie,Me,mt,qt,tt=Le.dyn_tree,Lt=Le.max_code,Wt=Le.stat_desc.static_tree,rr=Le.stat_desc.has_stree,Tn=Le.stat_desc.extra_bits,ir=Le.stat_desc.extra_base,ga=Le.stat_desc.max_length,va=0;for(Me=0;Me<=m;Me++)Ae.bl_count[Me]=0;for(tt[2*Ae.heap[Ae.heap_max]+1]=0,ye=Ae.heap_max+1;ye<g;ye++)ga<(Me=tt[2*tt[2*(Ce=Ae.heap[ye])+1]+1]+1)&&(Me=ga,va++),tt[2*Ce+1]=Me,Lt<Ce||(Ae.bl_count[Me]++,mt=0,ir<=Ce&&(mt=Tn[Ce-ir]),qt=tt[2*Ce],Ae.opt_len+=qt*(Me+mt),rr&&(Ae.static_len+=qt*(Wt[2*Ce+1]+mt)));if(va!==0){do{for(Me=ga-1;Ae.bl_count[Me]===0;)Me--;Ae.bl_count[Me]--,Ae.bl_count[Me+1]+=2,Ae.bl_count[ga]--,va-=2}while(0<va);for(Me=ga;Me!==0;Me--)for(Ce=Ae.bl_count[Me];Ce!==0;)Lt<(Ie=Ae.heap[--ye])||(tt[2*Ie+1]!==Me&&(Ae.opt_len+=(Me-tt[2*Ie+1])*tt[2*Ie],tt[2*Ie+1]=Me),Ce--)}}(F,X),H(pe,Te,F.bl_count)}function x(F,X,de){var le,W,pe=-1,ie=X[1],he=0,we=7,Te=4;for(ie===0&&(we=138,Te=3),X[2*(de+1)+1]=65535,le=0;le<=de;le++)W=ie,ie=X[2*(le+1)+1],++he<we&&W===ie||(he<Te?F.bl_tree[2*W]+=he:W!==0?(W!==pe&&F.bl_tree[2*W]++,F.bl_tree[2*w]++):he<=10?F.bl_tree[2*S]++:F.bl_tree[2*C]++,pe=W,Te=(he=0)===ie?(we=138,3):W===ie?(we=6,3):(we=7,4))}function U(F,X,de){var le,W,pe=-1,ie=X[1],he=0,we=7,Te=4;for(ie===0&&(we=138,Te=3),le=0;le<=de;le++)if(W=ie,ie=X[2*(le+1)+1],!(++he<we&&W===ie)){if(he<Te)for(;B(F,W,F.bl_tree),--he!=0;);else W!==0?(W!==pe&&(B(F,W,F.bl_tree),he--),B(F,w,F.bl_tree),D(F,he-3,2)):he<=10?(B(F,S,F.bl_tree),D(F,he-3,3)):(B(F,C,F.bl_tree),D(F,he-11,7));pe=W,Te=(he=0)===ie?(we=138,3):W===ie?(we=6,3):(we=7,4)}}a(E);var K=!1;function L(F,X,de,le){D(F,(l<<1)+(le?1:0),3),function(W,pe,ie,he){te(W),he&&(G(W,ie),G(W,~ie)),u.arraySet(W.pending_buf,W.window,pe,ie,W.pending),W.pending+=ie}(F,X,de,!0)}i._tr_init=function(F){K||(function(){var X,de,le,W,pe,ie=new Array(m+1);for(W=le=0;W<h-1;W++)for(Y[W]=le,X=0;X<1<<T[W];X++)O[le++]=W;for(O[le-1]=W,W=pe=0;W<16;W++)for(E[W]=pe,X=0;X<1<<k[W];X++)$[pe++]=W;for(pe>>=7;W<s;W++)for(E[W]=pe<<7,X=0;X<1<<k[W]-7;X++)$[256+pe++]=W;for(de=0;de<=m;de++)ie[de]=0;for(X=0;X<=143;)z[2*X+1]=8,X++,ie[8]++;for(;X<=255;)z[2*X+1]=9,X++,ie[9]++;for(;X<=279;)z[2*X+1]=7,X++,ie[7]++;for(;X<=287;)z[2*X+1]=8,X++,ie[8]++;for(H(z,f+1,ie),X=0;X<s;X++)I[2*X+1]=5,I[2*X]=Z(X,5);re=new V(z,T,c+1,f,m),q=new V(I,k,0,s,m),J=new V(new Array(0),A,0,d,y)}(),K=!0),F.l_desc=new M(F.dyn_ltree,re),F.d_desc=new M(F.dyn_dtree,q),F.bl_desc=new M(F.bl_tree,J),F.bi_buf=0,F.bi_valid=0,Q(F)},i._tr_stored_block=L,i._tr_flush_block=function(F,X,de,le){var W,pe,ie=0;0<F.level?(F.strm.data_type===2&&(F.strm.data_type=function(he){var we,Te=4093624447;for(we=0;we<=31;we++,Te>>>=1)if(1&Te&&he.dyn_ltree[2*we]!==0)return p;if(he.dyn_ltree[18]!==0||he.dyn_ltree[20]!==0||he.dyn_ltree[26]!==0)return o;for(we=32;we<c;we++)if(he.dyn_ltree[2*we]!==0)return o;return p}(F)),j(F,F.l_desc),j(F,F.d_desc),ie=function(he){var we;for(x(he,he.dyn_ltree,he.l_desc.max_code),x(he,he.dyn_dtree,he.d_desc.max_code),j(he,he.bl_desc),we=d-1;3<=we&&he.bl_tree[2*P[we]+1]===0;we--);return he.opt_len+=3*(we+1)+5+5+4,we}(F),W=F.opt_len+3+7>>>3,(pe=F.static_len+3+7>>>3)<=W&&(W=pe)):W=pe=de+5,de+4<=W&&X!==-1?L(F,X,de,le):F.strategy===4||pe===W?(D(F,2+(le?1:0),3),_e(F,z,I)):(D(F,4+(le?1:0),3),function(he,we,Te,Ae){var Le;for(D(he,we-257,5),D(he,Te-1,5),D(he,Ae-4,4),Le=0;Le<Ae;Le++)D(he,he.bl_tree[2*P[Le]+1],3);U(he,he.dyn_ltree,we-1),U(he,he.dyn_dtree,Te-1)}(F,F.l_desc.max_code+1,F.d_desc.max_code+1,ie+1),_e(F,F.dyn_ltree,F.dyn_dtree)),Q(F),le&&te(F)},i._tr_tally=function(F,X,de){return F.pending_buf[F.d_buf+2*F.last_lit]=X>>>8&255,F.pending_buf[F.d_buf+2*F.last_lit+1]=255&X,F.pending_buf[F.l_buf+F.last_lit]=255&de,F.last_lit++,X===0?F.dyn_ltree[2*de]++:(F.matches++,X--,F.dyn_ltree[2*(O[de]+c+1)]++,F.dyn_dtree[2*R(X)]++),F.last_lit===F.lit_bufsize-1},i._tr_align=function(F){D(F,2,3),B(F,b,z),function(X){X.bi_valid===16?(G(X,X.bi_buf),X.bi_buf=0,X.bi_valid=0):8<=X.bi_valid&&(X.pending_buf[X.pending++]=255&X.bi_buf,X.bi_buf>>=8,X.bi_valid-=8)}(F)}},{"../utils/common":41}],53:[function(n,r,i){r.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(n,r,i){(function(u){(function(p,o){if(!p.setImmediate){var a,l,h,c,f=1,s={},d=!1,g=p.document,m=Object.getPrototypeOf&&Object.getPrototypeOf(p);m=m&&m.setTimeout?m:p,a={}.toString.call(p.process)==="[object process]"?function(w){process.nextTick(function(){y(w)})}:function(){if(p.postMessage&&!p.importScripts){var w=!0,S=p.onmessage;return p.onmessage=function(){w=!1},p.postMessage("","*"),p.onmessage=S,w}}()?(c="setImmediate$"+Math.random()+"$",p.addEventListener?p.addEventListener("message",b,!1):p.attachEvent("onmessage",b),function(w){p.postMessage(c+w,"*")}):p.MessageChannel?((h=new MessageChannel).port1.onmessage=function(w){y(w.data)},function(w){h.port2.postMessage(w)}):g&&"onreadystatechange"in g.createElement("script")?(l=g.documentElement,function(w){var S=g.createElement("script");S.onreadystatechange=function(){y(w),S.onreadystatechange=null,l.removeChild(S),S=null},l.appendChild(S)}):function(w){setTimeout(y,0,w)},m.setImmediate=function(w){typeof w!="function"&&(w=new Function(""+w));for(var S=new Array(arguments.length-1),C=0;C<S.length;C++)S[C]=arguments[C+1];var T={callback:w,args:S};return s[f]=T,a(f),f++},m.clearImmediate=v}function v(w){delete s[w]}function y(w){if(d)setTimeout(y,0,w);else{var S=s[w];if(S){d=!0;try{(function(C){var T=C.callback,k=C.args;switch(k.length){case 0:T();break;case 1:T(k[0]);break;case 2:T(k[0],k[1]);break;case 3:T(k[0],k[1],k[2]);break;default:T.apply(o,k)}})(S)}finally{v(w),d=!1}}}}function b(w){w.source===p&&typeof w.data=="string"&&w.data.indexOf(c)===0&&y(+w.data.slice(c.length))}})(typeof self>"u"?u===void 0?this:u:self)}).call(this,typeof Mu<"u"?Mu:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(xS);var up=function(e,t){return up=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},up(e,t)};function eg(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");up(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function MV(e,t,n,r){function i(u){return u instanceof n?u:new n(function(p){p(u)})}return new(n||(n=Promise))(function(u,p){function o(h){try{l(r.next(h))}catch(c){p(c)}}function a(h){try{l(r.throw(h))}catch(c){p(c)}}function l(h){h.done?u(h.value):i(h.value).then(o,a)}l((r=r.apply(e,t||[])).next())})}function TS(e,t){var n={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},r,i,u,p=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return p.next=o(0),p.throw=o(1),p.return=o(2),typeof Symbol=="function"&&(p[Symbol.iterator]=function(){return this}),p;function o(l){return function(h){return a([l,h])}}function a(l){if(r)throw new TypeError("Generator is already executing.");for(;p&&(p=0,l[0]&&(n=0)),n;)try{if(r=1,i&&(u=l[0]&2?i.return:l[0]?i.throw||((u=i.return)&&u.call(i),0):i.next)&&!(u=u.call(i,l[1])).done)return u;switch(i=0,u&&(l=[l[0]&2,u.value]),l[0]){case 0:case 1:u=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,i=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(u=n.trys,!(u=u.length>0&&u[u.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!u||l[1]>u[0]&&l[1]<u[3])){n.label=l[1];break}if(l[0]===6&&n.label<u[1]){n.label=u[1],u=l;break}if(u&&n.label<u[2]){n.label=u[2],n.ops.push(l);break}u[2]&&n.ops.pop(),n.trys.pop();continue}l=t.call(e,n)}catch(h){l=[6,h],i=0}finally{r=u=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function Nl(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function rf(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,u=[],p;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)u.push(i.value)}catch(o){p={error:o}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(p)throw p.error}}return u}function af(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,u;r<i;r++)(u||!(r in t))&&(u||(u=Array.prototype.slice.call(t,0,r)),u[r]=t[r]);return e.concat(u||Array.prototype.slice.call(t))}function Uo(e){return this instanceof Uo?(this.v=e,this):new Uo(e)}function LV(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,u=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),o("next"),o("throw"),o("return",p),i[Symbol.asyncIterator]=function(){return this},i;function p(s){return function(d){return Promise.resolve(d).then(s,c)}}function o(s,d){r[s]&&(i[s]=function(g){return new Promise(function(m,v){u.push([s,g,m,v])>1||a(s,g)})},d&&(i[s]=d(i[s])))}function a(s,d){try{l(r[s](d))}catch(g){f(u[0][3],g)}}function l(s){s.value instanceof Uo?Promise.resolve(s.value.v).then(h,c):f(u[0][2],s)}function h(s){a("next",s)}function c(s){a("throw",s)}function f(s,d){s(d),u.shift(),u.length&&a(u[0][0],u[0][1])}}function RV(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Nl=="function"?Nl(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(u){n[u]=e[u]&&function(p){return new Promise(function(o,a){p=e[u](p),i(o,a,p.done,p.value)})}}function i(u,p,o,a){Promise.resolve(a).then(function(l){u({value:l,done:o})},p)}}function vn(e){return typeof e=="function"}function DV(e){var t=function(r){Error.call(r),r.stack=new Error().stack},n=e(t);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Rd=DV(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
|
|
`+n.map(function(r,i){return i+1+") "+r.toString()}).join(`
|
|
`):"",this.name="UnsubscriptionError",this.errors=n}});function jy(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var tg=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,n,r,i,u;if(!this.closed){this.closed=!0;var p=this._parentage;if(p)if(this._parentage=null,Array.isArray(p))try{for(var o=Nl(p),a=o.next();!a.done;a=o.next()){var l=a.value;l.remove(this)}}catch(g){t={error:g}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}else p.remove(this);var h=this.initialTeardown;if(vn(h))try{h()}catch(g){u=g instanceof Rd?g.errors:[g]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var f=Nl(c),s=f.next();!s.done;s=f.next()){var d=s.value;try{Vy(d)}catch(g){u=u!=null?u:[],g instanceof Rd?u=af(af([],rf(u)),rf(g.errors)):u.push(g)}}}catch(g){r={error:g}}finally{try{s&&!s.done&&(i=f.return)&&i.call(f)}finally{if(r)throw r.error}}}if(u)throw new Rd(u)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)Vy(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&jy(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&jy(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}();tg.EMPTY;function kS(e){return e instanceof tg||e&&"closed"in e&&vn(e.remove)&&vn(e.add)&&vn(e.unsubscribe)}function Vy(e){vn(e)?e():e.unsubscribe()}var Bf={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},cp={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=cp.delegate;return i!=null&&i.setTimeout?i.setTimeout.apply(i,af([e,t],rf(n))):setTimeout.apply(void 0,af([e,t],rf(n)))},clearTimeout:function(e){var t=cp.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function ES(e){cp.setTimeout(function(){var t=Bf.onUnhandledError;if(t)t(e);else throw e})}function Uy(){}var Uu=null;function FV(e){if(Bf.useDeprecatedSynchronousErrorHandling){var t=!Uu;if(t&&(Uu={errorThrown:!1,error:null}),e(),t){var n=Uu,r=n.errorThrown,i=n.error;if(Uu=null,r)throw i}}else e()}var ng=function(e){eg(t,e);function t(n){var r=e.call(this)||this;return r.isStopped=!1,n?(r.destination=n,kS(n)&&n.add(r)):r.destination=zV,r}return t.create=function(n,r,i){return new fp(n,r,i)},t.prototype.next=function(n){this.isStopped||this._next(n)},t.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(n){this.destination.next(n)},t.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(tg),BV=Function.prototype.bind;function Dd(e,t){return BV.call(e,t)}var $V=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(r){Hu(r)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(r){Hu(r)}else Hu(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){Hu(n)}},e}(),fp=function(e){eg(t,e);function t(n,r,i){var u=e.call(this)||this,p;if(vn(n)||!n)p={next:n!=null?n:void 0,error:r!=null?r:void 0,complete:i!=null?i:void 0};else{var o;u&&Bf.useDeprecatedNextContext?(o=Object.create(n),o.unsubscribe=function(){return u.unsubscribe()},p={next:n.next&&Dd(n.next,o),error:n.error&&Dd(n.error,o),complete:n.complete&&Dd(n.complete,o)}):p=n}return u.destination=new $V(p),u}return t}(ng);function Hu(e){ES(e)}function NV(e){throw e}var zV={closed:!0,next:Uy,error:NV,complete:Uy},rg=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function jV(e){return e}function VV(e){return e.length===0?jV:e.length===1?e[0]:function(n){return e.reduce(function(r,i){return i(r)},n)}}var Mi=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(t,n,r){var i=this,u=HV(t)?t:new fp(t,n,r);return FV(function(){var p=i,o=p.operator,a=p.source;u.add(o?o.call(u,a):a?i._subscribe(u):i._trySubscribe(u))}),u},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},e.prototype.forEach=function(t,n){var r=this;return n=Hy(n),new n(function(i,u){var p=new fp({next:function(o){try{t(o)}catch(a){u(a),p.unsubscribe()}},error:u,complete:i});r.subscribe(p)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[rg]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return VV(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=Hy(t),new t(function(r,i){var u;n.subscribe(function(p){return u=p},function(p){return i(p)},function(){return r(u)})})},e.create=function(t){return new e(t)},e}();function Hy(e){var t;return(t=e!=null?e:Bf.Promise)!==null&&t!==void 0?t:Promise}function UV(e){return e&&vn(e.next)&&vn(e.error)&&vn(e.complete)}function HV(e){return e&&e instanceof ng||UV(e)&&kS(e)}function WV(e){return vn(e==null?void 0:e.lift)}function OS(e){return function(t){if(WV(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function GV(e,t,n,r,i){return new YV(e,t,n,r,i)}var YV=function(e){eg(t,e);function t(n,r,i,u,p,o){var a=e.call(this,n)||this;return a.onFinalize=p,a.shouldUnsubscribe=o,a._next=r?function(l){try{r(l)}catch(h){n.error(h)}}:e.prototype._next,a._error=u?function(l){try{u(l)}catch(h){n.error(h)}finally{this.unsubscribe()}}:e.prototype._error,a._complete=i?function(){try{i()}catch(l){n.error(l)}finally{this.unsubscribe()}}:e.prototype._complete,a}return t.prototype.unsubscribe=function(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),!r&&((n=this.onFinalize)===null||n===void 0||n.call(this))}},t}(ng),AS=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function PS(e){return vn(e==null?void 0:e.then)}function IS(e){return vn(e[rg])}function MS(e){return Symbol.asyncIterator&&vn(e==null?void 0:e[Symbol.asyncIterator])}function LS(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function KV(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var RS=KV();function DS(e){return vn(e==null?void 0:e[RS])}function FS(e){return LV(this,arguments,function(){var n,r,i,u;return TS(this,function(p){switch(p.label){case 0:n=e.getReader(),p.label=1;case 1:p.trys.push([1,,9,10]),p.label=2;case 2:return[4,Uo(n.read())];case 3:return r=p.sent(),i=r.value,u=r.done,u?[4,Uo(void 0)]:[3,5];case 4:return[2,p.sent()];case 5:return[4,Uo(i)];case 6:return[4,p.sent()];case 7:return p.sent(),[3,2];case 8:return[3,10];case 9:return n.releaseLock(),[7];case 10:return[2]}})})}function BS(e){return vn(e==null?void 0:e.getReader)}function ig(e){if(e instanceof Mi)return e;if(e!=null){if(IS(e))return XV(e);if(AS(e))return qV(e);if(PS(e))return ZV(e);if(MS(e))return $S(e);if(DS(e))return JV(e);if(BS(e))return QV(e)}throw LS(e)}function XV(e){return new Mi(function(t){var n=e[rg]();if(vn(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function qV(e){return new Mi(function(t){for(var n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function ZV(e){return new Mi(function(t){e.then(function(n){t.closed||(t.next(n),t.complete())},function(n){return t.error(n)}).then(null,ES)})}function JV(e){return new Mi(function(t){var n,r;try{for(var i=Nl(e),u=i.next();!u.done;u=i.next()){var p=u.value;if(t.next(p),t.closed)return}}catch(o){n={error:o}}finally{try{u&&!u.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}t.complete()})}function $S(e){return new Mi(function(t){e7(e,t).catch(function(n){return t.error(n)})})}function QV(e){return $S(FS(e))}function e7(e,t){var n,r,i,u;return MV(this,void 0,void 0,function(){var p,o;return TS(this,function(a){switch(a.label){case 0:a.trys.push([0,5,6,11]),n=RV(e),a.label=1;case 1:return[4,n.next()];case 2:if(r=a.sent(),!!r.done)return[3,4];if(p=r.value,t.next(p),t.closed)return[2];a.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return o=a.sent(),i={error:o},[3,11];case 6:return a.trys.push([6,,9,10]),r&&!r.done&&(u=n.return)?[4,u.call(n)]:[3,8];case 7:a.sent(),a.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function Wa(e,t,n,r,i){r===void 0&&(r=0),i===void 0&&(i=!1);var u=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(u),!i)return u}function NS(e,t){return t===void 0&&(t=0),OS(function(n,r){n.subscribe(GV(r,function(i){return Wa(r,e,function(){return r.next(i)},t)},function(){return Wa(r,e,function(){return r.complete()},t)},function(i){return Wa(r,e,function(){return r.error(i)},t)}))})}function zS(e,t){return t===void 0&&(t=0),OS(function(n,r){r.add(e.schedule(function(){return n.subscribe(r)},t))})}function t7(e,t){return ig(e).pipe(zS(t),NS(t))}function n7(e,t){return ig(e).pipe(zS(t),NS(t))}function r7(e,t){return new Mi(function(n){var r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function i7(e,t){return new Mi(function(n){var r;return Wa(n,t,function(){r=e[RS](),Wa(n,t,function(){var i,u,p;try{i=r.next(),u=i.value,p=i.done}catch(o){n.error(o);return}p?n.complete():n.next(u)},0,!0)}),function(){return vn(r==null?void 0:r.return)&&r.return()}})}function jS(e,t){if(!e)throw new Error("Iterable cannot be null");return new Mi(function(n){Wa(n,t,function(){var r=e[Symbol.asyncIterator]();Wa(n,t,function(){r.next().then(function(i){i.done?n.complete():n.next(i.value)})},0,!0)})})}function a7(e,t){return jS(FS(e),t)}function o7(e,t){if(e!=null){if(IS(e))return t7(e,t);if(AS(e))return r7(e,t);if(PS(e))return n7(e,t);if(MS(e))return jS(e,t);if(DS(e))return i7(e,t);if(BS(e))return a7(e,t)}throw LS(e)}function s7(e,t){return t?o7(e,t):ig(e)}function l7(e,t){const n=ae(t==null?void 0:t.initialValue),r=e.subscribe({next:i=>n.value=i,error:t==null?void 0:t.onError});return so(()=>{r.unsubscribe()}),n}function u7(e,t,n){const r=ae(n==null?void 0:n.initialValue),i=Qm(e);let u=i.subscribe({next:p=>r.value=p,error:n==null?void 0:n.onError});return xe(t,()=>{u.unsubscribe(),u=i.subscribe({next:p=>r.value=p,error:n==null?void 0:n.onError})}),ha(()=>{u.unsubscribe()}),r}const Qa=us("outputs",()=>{const e=l7(s7(Qm(()=>Yt.outputs.count())),{initialValue:0}),t=ae(1),n=sn("sortOutputsBy","Oldest"),r=sn("currentImagesLayout","dynamic"),i=ae("all"),u=u7(()=>{const s=Ft();let d;return i.value==="all"?d=Yt.outputs:i.value==="favourited"?d=Yt.outputs.where("starred").equals(1):i.value==="unfavourited"?d=Yt.outputs.where("starred").equals(0):d=Yt.outputs.where("rated").equals(0),n.value==="Newest"&&(d=d.reverse()),s.pageless==="Enabled"?d.toArray():d.offset((t.value-1)*s.pageSize).limit(s.pageSize).toArray()},[tr(Ft(),"pageless"),tr(Ft(),"pageSize"),t,n,i],{initialValue:[]});async function p(){if(navigator.storage&&navigator.storage.persist){const s=await navigator.storage.persist();console.log(`Persisted storage granted: ${s}`)}}async function o(){const s=localStorage.getItem("outputs");!s||(a(JSON.parse(s)),localStorage.removeItem("outputs"))}p(),o();async function a(s){const d=s.map(v=>{const{id:y,...b}=v;return b}),g=50,m=[];for(let v=0;v<d.length;v+=g){const y=d.slice(v,v+g),b=JSON.parse(JSON.stringify(y));console.log(`Inserting outputs into database. Chunk ${v} - ${v+g}:`,b);const w=await Yt.outputs.bulkAdd(b,void 0,{allKeys:!0});m.push(...w)}return Yt.outputs.bulkGet(m)}async function l(s){const d=Ht();if(!s.raw)return;if(!s.raw.type.includes("zip")){d.raiseError("Uploaded file needs to be a ZIP!",!1);return}const{files:g}=await xS.exports.loadAsync(s.raw);let m=0,v=0;la({message:"Loading images...",type:"info"});const y=[];for(const[w,S]of Object.entries(g)){const C=w.split("."),T=C.slice(-1).join("."),k=C.slice(0,-1).join(".");(T==="webp"||T==="png"||T==="gif"||T==="jpg"||T==="jpeg")&&y.push(new Promise(A=>{S.async("base64").then(async P=>{if(!g[k+".json"])return v++,A(null);const z=JSON.parse(await g[k+".json"].async("text"));m++,A({id:-1,image:`data:image/webp;base64,${P}`,...z,rated:z.rated?1:0,starred:z.starred?1:0})}).catch(P=>(d.raiseError(`Error while importing image: ${P}`,!1),v++,A(null)))}))}const b=await Promise.all(y);a(b.filter(w=>w!==null)),la({message:`Successfully imported ${m}/${m+v} images!`,type:"success"})}async function h(s){const d=await Yt.outputs.get(s);return Yt.outputs.update(s,{starred:d!=null&&d.starred?0:1})}function c(s){return Yt.outputs.delete(s)}async function f(s){const d=Ht();return d.selected=[],d.multiSelect=!1,s===await Yt.outputs.toCollection().primaryKeys()?Yt.outputs.clear():Yt.outputs.bulkDelete(s)}return{outputsLength:e,sortBy:n,filterBy:i,currentPage:t,currentOutputs:u,currentLayout:r,deleteOutput:c,deleteMultipleOutputs:f,toggleStarred:h,pushOutputs:a,importFromZip:l}}),Ht=us("ui",()=>{const e=ae(!1),t=ae([]),n=ae(["1"]),r=ae(-1),i=ae(!1),u=ae(!1);function p(f,s){console.error(f),la({type:"error",message:f,duration:s?0:void 0,showClose:s})}function o(f,s){console.warn(f),la({type:"warning",message:f,duration:s?0:void 0,showClose:s})}function a(){e.value=!e.value,!e.value&&(t.value=[])}function l(f){if(t.value.includes(f)){const s=t.value.indexOf(f);t.value.splice(s,1),t.value.length===0&&(e.value=!1);return}t.value.push(f)}async function h(){const f=Qa(),s=Ft(),d=f.currentOutputs.findIndex(m=>m.id===r.value),g=f.currentOutputs[d+1];if(g){r.value=g.id;return}if(f.currentPage<=Math.floor(f.outputsLength/s.pageSize)){const m=f.sortBy==="Newest"?await Yt.outputs.where(":id").below(r.value).last():await Yt.outputs.where(":id").above(r.value).first();f.currentPage++,r.value=(m==null?void 0:m.id)||r.value;return}}async function c(){const f=Qa(),s=f.currentOutputs.findIndex(g=>g.id===r.value),d=f.currentOutputs[s-1];if(f.currentPage>1&&!d){const g=f.sortBy==="Oldest"?await Yt.outputs.where(":id").below(r.value).last():await Yt.outputs.where(":id").above(r.value).first();f.currentPage--,r.value=(g==null?void 0:g.id)||r.value;return}if(d){r.value=d.id;return}}return{multiSelect:e,selected:t,activeCollapse:n,activeModal:r,showGeneratorBadge:i,showGeneratedImages:u,raiseError:p,raiseWarning:o,toggleMultiSelect:a,toggleSelection:l,openModalToRight:h,openModalToLeft:c}}),on=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},c7={},f7={viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"};function d7(e,t){return N(),oe("svg",f7,[...t[0]||(t[0]=[ne("circle",{cy:"12",cx:"12",r:"12",stroke:"currentColor"},null,-1)])])}const h7=on(c7,[["render",d7]]),Is=be({__name:"MainMenuItem",props:{index:{},isMobile:{type:Boolean}},setup(e){return(t,n)=>(N(),ve(_(Im),{index:t.index},{default:ue(()=>[ke(t.$slots,"icon"),t.isMobile?ge("",!0):ke(t.$slots,"title",{key:0})]),_:3},8,["index"]))}}),p7="modulepreload",m7=function(e){return"/"+e},Wy={},Fd=function(t,n,r){if(!n||n.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(n.map(u=>{if(u=m7(u),u in Wy)return;Wy[u]=!0;const p=u.endsWith(".css"),o=p?'[rel="stylesheet"]':"";if(!!r)for(let h=i.length-1;h>=0;h--){const c=i[h];if(c.href===u&&(!p||c.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${u}"]${o}`))return;const l=document.createElement("link");if(l.rel=p?"stylesheet":p7,p||(l.as="script",l.crossOrigin=""),l.href=u,document.head.appendChild(l),p)return new Promise((h,c)=>{l.addEventListener("load",h),l.addEventListener("error",()=>c(new Error(`Unable to preload CSS for ${u}`)))})})).then(()=>t())},g7={},v7={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"};function y7(e,t){return N(),oe("svg",v7,[...t[0]||(t[0]=[ne("path",{d:"M7 14c-1.66 0-3 1.34-3 3c0 1.31-1.16 2-2 2c.92 1.22 2.49 2 4 2c2.21 0 4-1.79 4-4c0-1.66-1.34-3-3-3zm13.71-9.37l-1.34-1.34a.996.996 0 0 0-1.41 0L9 12.25L11.75 15l8.96-8.96a.996.996 0 0 0 0-1.41z",fill:"currentColor"},null,-1)])])}const VS=on(g7,[["render",y7]]),b7={},_7={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32"};function w7(e,t){return N(),oe("svg",_7,[...t[0]||(t[0]=[ne("path",{d:"M24 14a5.99 5.99 0 0 0-4.885 9.471L14 28.586L15.414 30l5.115-5.115A5.997 5.997 0 1 0 24 14zm0 10a4 4 0 1 1 4-4a4.005 4.005 0 0 1-4 4z",fill:"currentColor"},null,-1),ne("path",{d:"M17 12a3 3 0 1 0-3-3a3.003 3.003 0 0 0 3 3zm0-4a1 1 0 1 1-1 1a1 1 0 0 1 1-1z",fill:"currentColor"},null,-1),ne("path",{d:"M12 24H4v-6.003L9 13l5.586 5.586L16 17.168l-5.586-5.585a2 2 0 0 0-2.828 0L4 15.168V4h20v6h2V4a2.002 2.002 0 0 0-2-2H4a2.002 2.002 0 0 0-2 2v20a2.002 2.002 0 0 0 2 2h8z",fill:"currentColor"},null,-1)])])}const S7=on(b7,[["render",w7]]);function US(){const e=ae("..."),t=setInterval(()=>{e.value=e.value.length>=3?"":".".repeat(e.value.length+1)},1e3);return ha(()=>{clearInterval(t)}),{ellipsis:e}}const C7={style:{"text-align":"center"}},x7={key:0,class:"batch-text"},T7={key:0,class:"step-text"},k7={key:1},E7={class:"gen-text"},O7={key:0},A7={key:1},P7={key:0},I7={key:1},M7={key:2,class:"preview-container"},L7=["src"],R7=be({__name:"ImageProgress",props:{generated:{},total:{},elapsed:{},progressPercentage:{},textInfo:{},currentStep:{},totalSteps:{},previewImage:{},generating:{type:Boolean}},emits:["showGenerated"],setup(e){const{ellipsis:t}=US(),n=(r,i)=>r?r.length>i?r.slice(0,i)+"\u2026":r:"";return(r,i)=>{var u,p,o,a,l;return N(),oe("div",C7,[r.generating&&r.total&&r.total>1?(N(),oe("div",x7," Image "+Ee(((u=r.generated)!=null?u:0)+1)+" of "+Ee(r.total),1)):ge("",!0),se(_(N2),{type:"circle",percentage:(a=r.progressPercentage)!=null?a:100*((p=r.generated)!=null?p:0)/((o=r.total)!=null?o:1),width:200},{default:ue(()=>{var h,c,f,s;return[r.progressPercentage!==void 0&&r.progressPercentage>0?(N(),oe("span",T7,Ee((h=r.currentStep)!=null?h:0)+" / "+Ee((c=r.totalSteps)!=null?c:0),1)):(N(),oe("span",k7,Ee((f=r.generated)!=null?f:0)+" / "+Ee((s=r.total)!=null?s:1),1))]}),_:1},8,["percentage"]),r.generated?(N(),oe("div",{key:1,onClick:i[0]||(i[0]=h=>r.$emit("showGenerated")),class:"view-images"},[ne("span",null,"View image"+Ee(((l=r.total)!=null?l:1)===1?"":"s"),1),se(_(De),null,{default:ue(()=>[se(_(NO))]),_:1})])):ge("",!0),ne("div",E7,[r.generated!==void 0&&r.total!==void 0&&r.generated===r.total&&r.generated>0?(N(),oe("span",O7,"All done!")):(N(),oe("span",A7,[r.textInfo?(N(),oe("span",P7,Ee(n(r.textInfo,60)),1)):(N(),oe("span",I7,"Generating"+Ee(_(t))+Ee("\xA0".repeat(3-_(t).length)),1)),i[1]||(i[1]=ne("br",null,null,-1)),ne("sup",null,Ee(r.elapsed),1)]))]),r.previewImage?(N(),oe("div",M7,[ne("img",{src:`data:image/png;base64,${r.previewImage}`,class:"preview-img",alt:"Generation Preview"},null,8,L7)])):ge("",!0)])}}}),D7=on(R7,[["__scopeId","data-v-d7fade8b"]]),F7={style:{width:"200px"}},B7=be({__name:"InfoTooltip",props:{info:{},size:{},trigger:{}},setup(e){return(t,n)=>(N(),ve(_(fn),{trigger:t.trigger},{content:ue(()=>[ne("div",F7,[ke(t.$slots,"default",{},()=>[ze(Ee(t.info),1)])])]),default:ue(()=>[se(_(De),{size:t.size},{default:ue(()=>[se(_(Zp))]),_:1},8,["size"])]),_:3},8,["trigger"]))}}),$7={key:0,class:"align-vertical",style:{"margin-left":"5px"}},N7=be({__name:"FormLabel",props:{label:{},info:{},labelStyle:{}},setup(e){return(t,n)=>(N(),oe("span",{class:"align-vertical",style:je(t.labelStyle||"height: 100%;")},[ke(t.$slots,"default",{},()=>[ze(Ee(t.label),1)],!0),t.info?(N(),oe("div",$7,[se(B7,{info:t.info,size:15},null,8,["info"])])):ge("",!0)],4))}}),hu=on(N7,[["__scopeId","data-v-ec7e7ec1"]]),z7={key:0,style:{width:"100%"}},j7={key:1,style:{display:"flex","flex-direction":"column",gap:"8px",width:"100%"}},yn=be({__name:"FormSlider",props:{label:{},modelValue:{},prop:{},min:{},max:{},step:{},info:{},disabled:{type:Boolean},labelStyle:{},multiple:{type:Boolean}},emits:["update:modelValue","change","onAdd","onRemove"],setup(e,{emit:t}){const r=pm(hm).smallerOrEqual("md"),i=e,u=t;function p(c,f){var d;if(i.multiple&&Array.isArray(i.modelValue)){f=f||0;const g=(d=Array.isArray(c)?c[0]:c)!=null?d:i.min;let m=i.modelValue;m[f]=g,u("update:modelValue",m),u("change",m);return}const s=c!=null?c:i.min;u("update:modelValue",s),u("change",s)}function o(){if(!i.multiple||!Array.isArray(i.modelValue))return;const c=i.min;u("update:modelValue",[...i.modelValue,c]),u("onAdd",c)}function a(){if(!i.multiple||!Array.isArray(i.modelValue))return;const c=i.modelValue,f=c.pop();u("update:modelValue",c),u("onRemove",f)}const l=ee(()=>i.multiple&&Array.isArray(i.modelValue)?Array.from(Array(i.modelValue.length).keys()):[]),h=ee(()=>Array.isArray(i.modelValue)?i.modelValue[0]:i.modelValue);return(c,f)=>(N(),ve(_(ea),{prop:c.prop},{label:ue(()=>[se(hu,{info:c.info,"label-style":c.labelStyle},{default:ue(()=>[ke(c.$slots,"label",{},()=>[ze(Ee(c.label),1)])]),_:3},8,["info","label-style"])]),default:ue(()=>[!c.multiple||!Array.isArray(c.modelValue)?(N(),oe("div",z7,[_(r)?ge("",!0):(N(),ve(_(wy),{key:0,"model-value":h.value,min:c.min,max:c.max,step:c.step,onInput:p,disabled:c.disabled,"show-input":""},null,8,["model-value","min","max","step","disabled"])),_(r)?(N(),ve(_(Gc),{key:1,"model-value":h.value,min:c.min,max:c.max,step:c.step,onChange:p,disabled:c.disabled},null,8,["model-value","min","max","step","disabled"])):ge("",!0)])):(N(),oe("div",j7,[(N(!0),oe($e,null,zt(l.value,s=>(N(),oe("div",{key:s},[_(r)?ge("",!0):(N(),ve(_(wy),{key:0,"model-value":c.modelValue[s],min:c.min,max:c.max,step:c.step,onInput:d=>p(d,s),disabled:c.disabled,"show-input":""},null,8,["model-value","min","max","step","onInput","disabled"])),_(r)?(N(),ve(_(Gc),{key:1,"model-value":c.modelValue[s],min:c.min,max:c.max,step:c.step,onChange:d=>p(d,s),disabled:c.disabled},null,8,["model-value","min","max","step","onChange","disabled"])):ge("",!0)]))),128)),ne("div",null,[se(_(Je),{icon:_(Sf),onClick:f[0]||(f[0]=()=>o())},null,8,["icon"]),se(_(Je),{icon:_(D1),onClick:f[1]||(f[1]=()=>a()),disabled:l.value.length<=1},null,8,["icon","disabled"])])])),ke(c.$slots,"inline")]),_:3},8,["prop"]))}}),Lo=be({__name:"FormSelect",props:{label:{},modelValue:{},prop:{},options:{},multiple:{type:Boolean},info:{},filterable:{type:Boolean},labelStyle:{},placement:{}},emits:["update:modelValue","change"],setup(e,{emit:t}){const n=t;function r(i){n("update:modelValue",i),n("change",i)}return(i,u)=>(N(),ve(_(ea),{prop:i.prop},{label:ue(()=>[se(hu,{info:i.info,"label-style":i.labelStyle},{default:ue(()=>[ke(i.$slots,"label",{},()=>[ze(Ee(i.label),1)])]),_:3},8,["info","label-style"])]),default:ue(()=>[se(_(Lm),{"model-value":i.modelValue,filterable:i.filterable,multiple:i.multiple,placement:i.placement,onChange:r,placeholder:"Select"},{default:ue(()=>[(N(!0),oe($e,null,zt(i.options,p=>(N(),ve(_(Yc),{key:p,label:p.label!==void 0?p.label:p,value:p.value!==void 0?p.value:p,disabled:p.disabled!==void 0?p.disabled:!1},null,8,["label","value","disabled"]))),128))]),_:1},8,["model-value","filterable","multiple","placement"]),ke(i.$slots,"inline")]),_:3},8,["prop"]))}}),_c=be({__name:"FormInput",props:{label:{},modelValue:{},prop:{},type:{},resize:{},placeholder:{},autosize:{type:[Boolean,Object]},info:{},labelStyle:{},change:{type:Function},clearable:{type:Boolean},clearIcon:{}},emits:["update:modelValue","focus","blur"],setup(e,{emit:t}){const n=e,r=t;function i(u){r("update:modelValue",u),n.change&&n.change(u)}return(u,p)=>(N(),ve(_(ea),{prop:u.prop},{label:ue(()=>[se(hu,{info:u.info,"label-style":u.labelStyle},{default:ue(()=>[ke(u.$slots,"label",{},()=>[ze(Ee(u.label),1)])]),_:3},8,["info","label-style"])]),default:ue(()=>[se(_(uo),{"model-value":u.modelValue,autosize:u.autosize,resize:u.resize,onInput:i,type:u.type,placeholder:u.placeholder,clearable:u.clearable,"clear-icon":u.clearIcon,onFocus:p[0]||(p[0]=o=>u.$emit("focus")),onBlur:p[1]||(p[1]=o=>u.$emit("blur"))},{append:ue(()=>[ke(u.$slots,"append")]),_:3},8,["model-value","autosize","resize","type","placeholder","clearable","clear-icon"]),ke(u.$slots,"inline")]),_:3},8,["prop"]))}}),Gy=be({__name:"FormSwitch",props:{label:{},modelValue:{type:Boolean},prop:{},disabled:{type:Boolean},disabledText:{},defaultValue:{type:Boolean},info:{},labelStyle:{},change:{type:Function}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t;function i(u){const p=!!u;r("update:modelValue",p),n.change&&n.change(p)}return ET(()=>{n.disabled&&n.defaultValue!==void 0&&r("update:modelValue",n.defaultValue)}),(u,p)=>(N(),ve(_(ea),{prop:u.prop},{label:ue(()=>[se(hu,{info:u.info,"label-style":u.labelStyle},{default:ue(()=>[ke(u.$slots,"label",{},()=>[ze(Ee(u.label),1)])]),_:3},8,["info","label-style"])]),default:ue(()=>[u.disabledText&&u.disabled?(N(),ve(_(fn),{key:0,content:u.disabledText,placement:"top",enterable:!1,"hide-after":100},{default:ue(()=>[se(_(Sy),{disabled:u.disabled,"model-value":u.modelValue,onChange:i},null,8,["disabled","model-value"])]),_:1},8,["content"])):(N(),ve(_(Sy),{key:1,disabled:u.disabled,"model-value":u.modelValue,onChange:i},null,8,["disabled","model-value"])),ke(u.$slots,"inline")]),_:3},8,["prop"]))}}),V7=be({__name:"FormPromptInput",setup(e){const t=Jt();return(n,r)=>(N(),ve(_c,{prop:"prompt",modelValue:_(t).prompt,"onUpdate:modelValue":r[0]||(r[0]=i=>_(t).prompt=i),autosize:{minRows:2,maxRows:15},resize:"vertical",type:"textarea",placeholder:"Enter prompt here","label-position":"top","label-style":"justify-content: space-between; width: 100%;"},{label:ue(()=>[...r[1]||(r[1]=[ne("div",null,"Prompt",-1)])]),_:1},8,["modelValue"]))}}),U7=on(V7,[["__scopeId","data-v-cf07eac2"]]),H7={style:{position:"relative",height:"100%",width:"100%"}},W7={class:"carousel-container"},G7=["src"],Y7={class:"carousel-footer"},K7={style:{display:"flex","justify-content":"center"}},X7={style:{"white-space":"nowrap"}},q7=be({__name:"GeneratedCarousel",setup(e){const t=Jt(),n=Ht(),r=Ft(),i=ae(0),u=ee(()=>{var a;return(a=t.outputs[i.value])==null?void 0:a.output});function p(a){i.value=a}function o(a){const l=t.outputs.findIndex(h=>h.output.id===a);l!==-1&&t.outputs.splice(l,1)}return xe(()=>t.outputs.length,a=>{a===0?i.value=0:i.value>=a&&(i.value=a-1)}),(a,l)=>(N(),oe("div",H7,[_(t).generating?(N(),oe("div",{key:0,class:"back-to-generation",onClick:l[0]||(l[0]=h=>_(n).showGeneratedImages=!1)},[se(_(De),null,{default:ue(()=>[se(_(P1))]),_:1}),l[1]||(l[1]=ne("span",null,"Back to generation status",-1))])):ge("",!0),ne("div",W7,[se(_(TR),{class:"carousel",autoplay:_(r).autoCarousel==="Enabled",trigger:"click","indicator-position":"outside",onChange:p},{default:ue(()=>[(N(!0),oe($e,null,zt(_(t).outputs,h=>(N(),ve(_(kR),{key:h.output.id,style:{display:"flex","justify-content":"center"}},{default:ue(()=>[h.type==="video"?(N(),oe("video",{key:0,src:h.output.image,controls:"",style:{"max-width":"100%",height:"100%"}},null,8,G7)):ge("",!0),h.type==="image"?(N(),ve(_(jo),{key:1,src:h.output.image,style:{width:"100%",height:"100%"},fit:"scale-down",onClick:()=>_(n).activeModal=h.output.id},null,8,["src","onClick"])):ge("",!0)]),_:2},1024))),128))]),_:1},8,["autoplay"])]),ne("div",Y7,[se(_(aF)),ne("div",K7,[se(_(Xw),null,{default:ue(()=>[ne("div",X7,[u.value?(N(),ve(RC,{key:0,imageData:u.value,"on-delete":o,"show-dismiss":!0},null,8,["imageData"])):ge("",!0)])]),_:1})])])]))}}),Z7=on(q7,[["__scopeId","data-v-ae935641"]]);var ur={};const J7={},Q7=Object.freeze(Object.defineProperty({__proto__:null,default:J7},Symbol.toStringTag,{value:"Module"})),Bd=aR(Q7);(function(e){/*! Fabric.js Copyright 2008-2015, Printio (Juriy Zaytsev, Maxim Chernyak) */var t=t||{version:"5.5.2"};if(e.fabric=t,typeof document<"u"&&typeof window<"u")document instanceof(typeof HTMLDocument<"u"?HTMLDocument:Document)?t.document=document:t.document=document.implementation.createHTMLDocument(""),t.window=window;else{var n=Bd,r=new n.JSDOM(decodeURIComponent("%3C!DOCTYPE%20html%3E%3Chtml%3E%3Chead%3E%3C%2Fhead%3E%3Cbody%3E%3C%2Fbody%3E%3C%2Fhtml%3E"),{features:{FetchExternalResources:["img"]},resources:"usable"}).window;t.document=r.document,t.jsdomImplForWrapper=Bd.implForWrapper,t.nodeCanvas=Bd.Canvas,t.window=r,DOMParser=t.window.DOMParser}t.isTouchSupported="ontouchstart"in t.window||"ontouchstart"in t.document||t.window&&t.window.navigator&&t.window.navigator.maxTouchPoints>0,t.isLikelyNode=typeof Buffer<"u"&&typeof window>"u",t.SHARED_ATTRIBUTES=["display","transform","fill","fill-opacity","fill-rule","opacity","stroke","stroke-dasharray","stroke-linecap","stroke-dashoffset","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","id","paint-order","vector-effect","instantiated_by_use","clip-path"],t.DPI=96,t.reNum="(?:[-+]?(?:\\d+|\\d*\\.\\d+)(?:[eE][-+]?\\d+)?)",t.commaWsp="(?:\\s+,?\\s*|,\\s*)",t.rePathCommand=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:[eE][-+]?\d+)?)/ig,t.reNonWord=/[ \n\.,;!\?\-]/,t.fontPaths={},t.iMatrix=[1,0,0,1,0,0],t.svgNS="http://www.w3.org/2000/svg",t.perfLimitSizeTotal=2097152,t.maxCacheSideLimit=4096,t.minCacheSideLimit=256,t.charWidthsCache={},t.textureSize=2048,t.disableStyleCopyPaste=!1,t.enableGLFiltering=!0,t.devicePixelRatio=t.window.devicePixelRatio||t.window.webkitDevicePixelRatio||t.window.mozDevicePixelRatio||1,t.browserShadowBlurConstant=1,t.arcToSegmentsCache={},t.boundsOfCurveCache={},t.cachesBoundsOfCurve=!0,t.forceGLPutImageData=!1,t.initFilterBackend=function(){if(t.enableGLFiltering&&t.isWebglSupported&&t.isWebglSupported(t.textureSize))return console.log("max texture size: "+t.maxTextureSize),new t.WebglFilterBackend({tileSize:t.textureSize});if(t.Canvas2dFilterBackend)return new t.Canvas2dFilterBackend},typeof document<"u"&&typeof window<"u"&&(window.fabric=t),function(){function o(s,d){if(!!this.__eventListeners[s]){var g=this.__eventListeners[s];d?g[g.indexOf(d)]=!1:t.util.array.fill(g,!1)}}function a(s,d){if(this.__eventListeners||(this.__eventListeners={}),arguments.length===1)for(var g in s)this.on(g,s[g]);else this.__eventListeners[s]||(this.__eventListeners[s]=[]),this.__eventListeners[s].push(d);return this}function l(s,d){var g=function(){d.apply(this,arguments),this.off(s,g)}.bind(this);this.on(s,g)}function h(s,d){if(arguments.length===1)for(var g in s)l.call(this,g,s[g]);else l.call(this,s,d);return this}function c(s,d){if(!this.__eventListeners)return this;if(arguments.length===0)for(s in this.__eventListeners)o.call(this,s);else if(arguments.length===1&&typeof arguments[0]=="object")for(var g in s)o.call(this,g,s[g]);else o.call(this,s,d);return this}function f(s,d){if(!this.__eventListeners)return this;var g=this.__eventListeners[s];if(!g)return this;for(var m=0,v=g.length;m<v;m++)g[m]&&g[m].call(this,d||{});return this.__eventListeners[s]=g.filter(function(y){return y!==!1}),this}t.Observable={fire:f,on:a,once:h,off:c}}(),t.Collection={_objects:[],add:function(){if(this._objects.push.apply(this._objects,arguments),this._onObjectAdded)for(var o=0,a=arguments.length;o<a;o++)this._onObjectAdded(arguments[o]);return this.renderOnAddRemove&&this.requestRenderAll(),this},insertAt:function(o,a,l){var h=this._objects;return l?h[a]=o:h.splice(a,0,o),this._onObjectAdded&&this._onObjectAdded(o),this.renderOnAddRemove&&this.requestRenderAll(),this},remove:function(){for(var o=this._objects,a,l=!1,h=0,c=arguments.length;h<c;h++)a=o.indexOf(arguments[h]),a!==-1&&(l=!0,o.splice(a,1),this._onObjectRemoved&&this._onObjectRemoved(arguments[h]));return this.renderOnAddRemove&&l&&this.requestRenderAll(),this},forEachObject:function(o,a){for(var l=this.getObjects(),h=0,c=l.length;h<c;h++)o.call(a,l[h],h,l);return this},getObjects:function(o){return typeof o>"u"?this._objects.concat():this._objects.filter(function(a){return a.type===o})},item:function(o){return this._objects[o]},isEmpty:function(){return this._objects.length===0},size:function(){return this._objects.length},contains:function(o,a){return this._objects.indexOf(o)>-1?!0:a?this._objects.some(function(l){return typeof l.contains=="function"&&l.contains(o,!0)}):!1},complexity:function(){return this._objects.reduce(function(o,a){return o+=a.complexity?a.complexity():0,o},0)}},t.CommonMethods={_setOptions:function(o){for(var a in o)this.set(a,o[a])},_initGradient:function(o,a){o&&o.colorStops&&!(o instanceof t.Gradient)&&this.set(a,new t.Gradient(o))},_initPattern:function(o,a,l){o&&o.source&&!(o instanceof t.Pattern)?this.set(a,new t.Pattern(o,l)):l&&l()},_setObject:function(o){for(var a in o)this._set(a,o[a])},set:function(o,a){return typeof o=="object"?this._setObject(o):this._set(o,a),this},_set:function(o,a){this[o]=a},toggle:function(o){var a=this.get(o);return typeof a=="boolean"&&this.set(o,!a),this},get:function(o){return this[o]}},function(o){var a=Math.sqrt,l=Math.atan2,h=Math.pow,c=Math.PI/180,f=Math.PI/2;t.util={cos:function(s){if(s===0)return 1;s<0&&(s=-s);var d=s/f;switch(d){case 1:case 3:return 0;case 2:return-1}return Math.cos(s)},sin:function(s){if(s===0)return 0;var d=s/f,g=1;switch(s<0&&(g=-1),d){case 1:return g;case 2:return 0;case 3:return-g}return Math.sin(s)},removeFromArray:function(s,d){var g=s.indexOf(d);return g!==-1&&s.splice(g,1),s},getRandomInt:function(s,d){return Math.floor(Math.random()*(d-s+1))+s},degreesToRadians:function(s){return s*c},radiansToDegrees:function(s){return s/c},rotatePoint:function(s,d,g){var m=new t.Point(s.x-d.x,s.y-d.y),v=t.util.rotateVector(m,g);return new t.Point(v.x,v.y).addEquals(d)},rotateVector:function(s,d){var g=t.util.sin(d),m=t.util.cos(d),v=s.x*m-s.y*g,y=s.x*g+s.y*m;return{x:v,y}},createVector:function(s,d){return new t.Point(d.x-s.x,d.y-s.y)},calcAngleBetweenVectors:function(s,d){return Math.acos((s.x*d.x+s.y*d.y)/(Math.hypot(s.x,s.y)*Math.hypot(d.x,d.y)))},getHatVector:function(s){return new t.Point(s.x,s.y).multiply(1/Math.hypot(s.x,s.y))},getBisector:function(s,d,g){var m=t.util.createVector(s,d),v=t.util.createVector(s,g),y=t.util.calcAngleBetweenVectors(m,v),b=t.util.calcAngleBetweenVectors(t.util.rotateVector(m,y),v),w=y*(b===0?1:-1)/2;return{vector:t.util.getHatVector(t.util.rotateVector(m,w)),angle:y}},projectStrokeOnPoints:function(s,d,g){var m=[],v=d.strokeWidth/2,y=d.strokeUniform?new t.Point(1/d.scaleX,1/d.scaleY):new t.Point(1,1),b=function(w){var S=v/Math.hypot(w.x,w.y);return new t.Point(w.x*S*y.x,w.y*S*y.y)};return s.length<=1||s.forEach(function(w,S){var C=new t.Point(w.x,w.y),T,k;S===0?(k=s[S+1],T=g?b(t.util.createVector(k,C)).addEquals(C):s[s.length-1]):S===s.length-1?(T=s[S-1],k=g?b(t.util.createVector(T,C)).addEquals(C):s[0]):(T=s[S-1],k=s[S+1]);var A=t.util.getBisector(C,T,k),P=A.vector,z=A.angle,I,$;if(d.strokeLineJoin==="miter"&&(I=-v/Math.sin(z/2),$=new t.Point(P.x*I*y.x,P.y*I*y.y),Math.hypot($.x,$.y)/v<=d.strokeMiterLimit)){m.push(C.add($)),m.push(C.subtract($));return}I=-v*Math.SQRT2,$=new t.Point(P.x*I*y.x,P.y*I*y.y),m.push(C.add($)),m.push(C.subtract($))}),m},transformPoint:function(s,d,g){return g?new t.Point(d[0]*s.x+d[2]*s.y,d[1]*s.x+d[3]*s.y):new t.Point(d[0]*s.x+d[2]*s.y+d[4],d[1]*s.x+d[3]*s.y+d[5])},makeBoundingBoxFromPoints:function(s,d){if(d)for(var g=0;g<s.length;g++)s[g]=t.util.transformPoint(s[g],d);var m=[s[0].x,s[1].x,s[2].x,s[3].x],v=t.util.array.min(m),y=t.util.array.max(m),b=y-v,w=[s[0].y,s[1].y,s[2].y,s[3].y],S=t.util.array.min(w),C=t.util.array.max(w),T=C-S;return{left:v,top:S,width:b,height:T}},invertTransform:function(s){var d=1/(s[0]*s[3]-s[1]*s[2]),g=[d*s[3],-d*s[1],-d*s[2],d*s[0]],m=t.util.transformPoint({x:s[4],y:s[5]},g,!0);return g[4]=-m.x,g[5]=-m.y,g},toFixed:function(s,d){return parseFloat(Number(s).toFixed(d))},parseUnit:function(s,d){var g=/\D{0,2}$/.exec(s),m=parseFloat(s);switch(d||(d=t.Text.DEFAULT_SVG_FONT_SIZE),g[0]){case"mm":return m*t.DPI/25.4;case"cm":return m*t.DPI/2.54;case"in":return m*t.DPI;case"pt":return m*t.DPI/72;case"pc":return m*t.DPI/72*12;case"em":return m*d;default:return m}},falseFunction:function(){return!1},getKlass:function(s,d){return s=t.util.string.camelize(s.charAt(0).toUpperCase()+s.slice(1)),t.util.resolveNamespace(d)[s]},getSvgAttributes:function(s){var d=["instantiated_by_use","style","id","class"];switch(s){case"linearGradient":d=d.concat(["x1","y1","x2","y2","gradientUnits","gradientTransform"]);break;case"radialGradient":d=d.concat(["gradientUnits","gradientTransform","cx","cy","r","fx","fy","fr"]);break;case"stop":d=d.concat(["offset","stop-color","stop-opacity"]);break}return d},resolveNamespace:function(s){if(!s)return t;var d=s.split("."),g=d.length,m,v=o||t.window;for(m=0;m<g;++m)v=v[d[m]];return v},loadImage:function(s,d,g,m){if(!s){d&&d.call(g,s);return}var v=t.util.createImage(),y=function(){d&&d.call(g,v,!1),v=v.onload=v.onerror=null};v.onload=y,v.onerror=function(){t.log("Error loading "+v.src),d&&d.call(g,null,!0),v=v.onload=v.onerror=null},s.indexOf("data")!==0&&m!==void 0&&m!==null&&(v.crossOrigin=m),s.substring(0,14)==="data:image/svg"&&(v.onload=null,t.util.loadImageInDom(v,y)),v.src=s},loadImageInDom:function(s,d){var g=t.document.createElement("div");g.style.width=g.style.height="1px",g.style.left=g.style.top="-100%",g.style.position="absolute",g.appendChild(s),t.document.querySelector("body").appendChild(g),s.onload=function(){d(),g.parentNode.removeChild(g),g=null}},enlivenObjects:function(s,d,g,m){s=s||[];var v=[],y=0,b=s.length;function w(){++y===b&&d&&d(v.filter(function(S){return S}))}if(!b){d&&d(v);return}s.forEach(function(S,C){if(!S||!S.type){w();return}var T=t.util.getKlass(S.type,g);T.fromObject(S,function(k,A){A||(v[C]=k),m&&m(S,k,A),w()})})},enlivenObjectEnlivables:function(s,d,g){var m=t.Object.ENLIVEN_PROPS.filter(function(v){return!!s[v]});t.util.enlivenObjects(m.map(function(v){return s[v]}),function(v){var y={};m.forEach(function(b,w){y[b]=v[w],d&&(d[b]=v[w])}),g&&g(y)})},enlivenPatterns:function(s,d){s=s||[];function g(){++v===y&&d&&d(m)}var m=[],v=0,y=s.length;if(!y){d&&d(m);return}s.forEach(function(b,w){b&&b.source?new t.Pattern(b,function(S){m[w]=S,g()}):(m[w]=b,g())})},groupSVGElements:function(s,d,g){var m;return s&&s.length===1?(typeof g<"u"&&(s[0].sourcePath=g),s[0]):(d&&(d.width&&d.height?d.centerPoint={x:d.width/2,y:d.height/2}:(delete d.width,delete d.height)),m=new t.Group(s,d),typeof g<"u"&&(m.sourcePath=g),m)},populateWithProperties:function(s,d,g){if(g&&Array.isArray(g))for(var m=0,v=g.length;m<v;m++)g[m]in s&&(d[g[m]]=s[g[m]])},createCanvasElement:function(){return t.document.createElement("canvas")},copyCanvasElement:function(s){var d=t.util.createCanvasElement();return d.width=s.width,d.height=s.height,d.getContext("2d").drawImage(s,0,0),d},toDataURL:function(s,d,g){return s.toDataURL("image/"+d,g)},createImage:function(){return t.document.createElement("img")},multiplyTransformMatrices:function(s,d,g){return[s[0]*d[0]+s[2]*d[1],s[1]*d[0]+s[3]*d[1],s[0]*d[2]+s[2]*d[3],s[1]*d[2]+s[3]*d[3],g?0:s[0]*d[4]+s[2]*d[5]+s[4],g?0:s[1]*d[4]+s[3]*d[5]+s[5]]},qrDecompose:function(s){var d=l(s[1],s[0]),g=h(s[0],2)+h(s[1],2),m=a(g),v=(s[0]*s[3]-s[2]*s[1])/m,y=l(s[0]*s[2]+s[1]*s[3],g);return{angle:d/c,scaleX:m,scaleY:v,skewX:y/c,skewY:0,translateX:s[4],translateY:s[5]}},calcRotateMatrix:function(s){if(!s.angle)return t.iMatrix.concat();var d=t.util.degreesToRadians(s.angle),g=t.util.cos(d),m=t.util.sin(d);return[g,m,-m,g,0,0]},calcDimensionsMatrix:function(s){var d=typeof s.scaleX>"u"?1:s.scaleX,g=typeof s.scaleY>"u"?1:s.scaleY,m=[s.flipX?-d:d,0,0,s.flipY?-g:g,0,0],v=t.util.multiplyTransformMatrices,y=t.util.degreesToRadians;return s.skewX&&(m=v(m,[1,0,Math.tan(y(s.skewX)),1],!0)),s.skewY&&(m=v(m,[1,Math.tan(y(s.skewY)),0,1],!0)),m},composeMatrix:function(s){var d=[1,0,0,1,s.translateX||0,s.translateY||0],g=t.util.multiplyTransformMatrices;return s.angle&&(d=g(d,t.util.calcRotateMatrix(s))),(s.scaleX!==1||s.scaleY!==1||s.skewX||s.skewY||s.flipX||s.flipY)&&(d=g(d,t.util.calcDimensionsMatrix(s))),d},resetObjectTransform:function(s){s.scaleX=1,s.scaleY=1,s.skewX=0,s.skewY=0,s.flipX=!1,s.flipY=!1,s.rotate(0)},saveObjectTransform:function(s){return{scaleX:s.scaleX,scaleY:s.scaleY,skewX:s.skewX,skewY:s.skewY,angle:s.angle,left:s.left,flipX:s.flipX,flipY:s.flipY,top:s.top}},isTransparent:function(s,d,g,m){m>0&&(d>m?d-=m:d=0,g>m?g-=m:g=0);var v=!0,y,b,w=s.getImageData(d,g,m*2||1,m*2||1),S=w.data.length;for(y=3;y<S&&(b=w.data[y],v=b<=0,v!==!1);y+=4);return w=null,v},parsePreserveAspectRatioAttribute:function(s){var d="meet",g="Mid",m="Mid",v=s.split(" "),y;return v&&v.length&&(d=v.pop(),d!=="meet"&&d!=="slice"?(y=d,d="meet"):v.length&&(y=v.pop())),g=y!=="none"?y.slice(1,4):"none",m=y!=="none"?y.slice(5,8):"none",{meetOrSlice:d,alignX:g,alignY:m}},clearFabricFontCache:function(s){s=(s||"").toLowerCase(),s?t.charWidthsCache[s]&&delete t.charWidthsCache[s]:t.charWidthsCache={}},limitDimsByArea:function(s,d){var g=Math.sqrt(d*s),m=Math.floor(d/g);return{x:Math.floor(g),y:m}},capValue:function(s,d,g){return Math.max(s,Math.min(d,g))},findScaleToFit:function(s,d){return Math.min(d.width/s.width,d.height/s.height)},findScaleToCover:function(s,d){return Math.max(d.width/s.width,d.height/s.height)},matrixToSVG:function(s){return"matrix("+s.map(function(d){return t.util.toFixed(d,t.Object.NUM_FRACTION_DIGITS)}).join(" ")+")"},removeTransformFromObject:function(s,d){var g=t.util.invertTransform(d),m=t.util.multiplyTransformMatrices(g,s.calcOwnMatrix());t.util.applyTransformToObject(s,m)},addTransformToObject:function(s,d){t.util.applyTransformToObject(s,t.util.multiplyTransformMatrices(d,s.calcOwnMatrix()))},applyTransformToObject:function(s,d){var g=t.util.qrDecompose(d),m=new t.Point(g.translateX,g.translateY);s.flipX=!1,s.flipY=!1,s.set("scaleX",g.scaleX),s.set("scaleY",g.scaleY),s.skewX=g.skewX,s.skewY=g.skewY,s.angle=g.angle,s.setPositionByOrigin(m,"center","center")},sizeAfterTransform:function(s,d,g){var m=s/2,v=d/2,y=[{x:-m,y:-v},{x:m,y:-v},{x:-m,y:v},{x:m,y:v}],b=t.util.calcDimensionsMatrix(g),w=t.util.makeBoundingBoxFromPoints(y,b);return{x:w.width,y:w.height}},mergeClipPaths:function(s,d){var g=s,m=d;g.inverted&&!m.inverted&&(g=d,m=s),t.util.applyTransformToObject(m,t.util.multiplyTransformMatrices(t.util.invertTransform(g.calcTransformMatrix()),m.calcTransformMatrix()));var v=g.inverted&&m.inverted;return v&&(g.inverted=m.inverted=!1),new t.Group([g],{clipPath:m,inverted:v})},hasStyleChanged:function(s,d,g){return g=g||!1,s.fill!==d.fill||s.stroke!==d.stroke||s.strokeWidth!==d.strokeWidth||s.fontSize!==d.fontSize||s.fontFamily!==d.fontFamily||s.fontWeight!==d.fontWeight||s.fontStyle!==d.fontStyle||s.textBackgroundColor!==d.textBackgroundColor||s.deltaY!==d.deltaY||g&&(s.overline!==d.overline||s.underline!==d.underline||s.linethrough!==d.linethrough)},stylesToArray:function(g,d){for(var g=t.util.object.clone(g,!0),m=d.split(`
|
|
`),v=-1,y={},b=[],w=0;w<m.length;w++){if(!g[w]){v+=m[w].length;continue}for(var S=0;S<m[w].length;S++){v++;var C=g[w][S];if(C&&Object.keys(C).length>0){var T=t.util.hasStyleChanged(y,C,!0);T?b.push({start:v,end:v+1,style:C}):b[b.length-1].end++}y=C||{}}}return b},stylesFromArray:function(s,d){if(!Array.isArray(s))return s;for(var g=d.split(`
|
|
`),m=-1,v=0,y={},b=0;b<g.length;b++)for(var w=0;w<g[b].length;w++)m++,s[v]&&s[v].start<=m&&m<s[v].end&&(y[b]=y[b]||{},y[b][w]=Object.assign({},s[v].style),m===s[v].end-1&&v++);return y}}}(e),function(){var o=Array.prototype.join,a={m:2,l:2,h:1,v:1,c:6,s:4,q:4,t:2,a:7},l={m:"l",M:"L"};function h(E,V,M,R,G,D,B,Z,H,Q,te){var fe=t.util.cos(E),me=t.util.sin(E),_e=t.util.cos(V),j=t.util.sin(V),x=M*G*_e-R*D*j+B,U=R*G*_e+M*D*j+Z,K=Q+H*(-M*G*me-R*D*fe),L=te+H*(-R*G*me+M*D*fe),F=x+H*(M*G*j+R*D*_e),X=U+H*(R*G*j-M*D*_e);return["C",K,L,F,X,x,U]}function c(E,V,M,R,G,D,B){var Z=Math.PI,H=B*Z/180,Q=t.util.sin(H),te=t.util.cos(H),fe=0,me=0;M=Math.abs(M),R=Math.abs(R);var _e=-te*E*.5-Q*V*.5,j=-te*V*.5+Q*E*.5,x=M*M,U=R*R,K=j*j,L=_e*_e,F=x*U-x*K-U*L,X=0;if(F<0){var de=Math.sqrt(1-F/(x*U));M*=de,R*=de}else X=(G===D?-1:1)*Math.sqrt(F/(x*K+U*L));var le=X*M*j/R,W=-X*R*_e/M,pe=te*le-Q*W+E*.5,ie=Q*le+te*W+V*.5,he=f(1,0,(_e-le)/M,(j-W)/R),we=f((_e-le)/M,(j-W)/R,(-_e-le)/M,(-j-W)/R);D===0&&we>0?we-=2*Z:D===1&&we<0&&(we+=2*Z);for(var Te=Math.ceil(Math.abs(we/Z*2)),Ae=[],Le=we/Te,ye=8/3*Math.sin(Le/4)*Math.sin(Le/4)/Math.sin(Le/2),Ce=he+Le,Ie=0;Ie<Te;Ie++)Ae[Ie]=h(he,Ce,te,Q,M,R,pe,ie,ye,fe,me),fe=Ae[Ie][5],me=Ae[Ie][6],he=Ce,Ce+=Le;return Ae}function f(E,V,M,R){var G=Math.atan2(V,E),D=Math.atan2(R,M);return D>=G?D-G:2*Math.PI-(G-D)}function s(E,V,M,R,G,D,B,Z){var H;if(t.cachesBoundsOfCurve&&(H=o.call(arguments),t.boundsOfCurveCache[H]))return t.boundsOfCurveCache[H];var Q=Math.sqrt,te=Math.min,fe=Math.max,me=Math.abs,_e=[],j=[[],[]],x,U,K,L,F,X,de,le;U=6*E-12*M+6*G,x=-3*E+9*M-9*G+3*B,K=3*M-3*E;for(var W=0;W<2;++W){if(W>0&&(U=6*V-12*R+6*D,x=-3*V+9*R-9*D+3*Z,K=3*R-3*V),me(x)<1e-12){if(me(U)<1e-12)continue;L=-K/U,0<L&&L<1&&_e.push(L);continue}de=U*U-4*K*x,!(de<0)&&(le=Q(de),F=(-U+le)/(2*x),0<F&&F<1&&_e.push(F),X=(-U-le)/(2*x),0<X&&X<1&&_e.push(X))}for(var pe,ie,he=_e.length,we=he,Te;he--;)L=_e[he],Te=1-L,pe=Te*Te*Te*E+3*Te*Te*L*M+3*Te*L*L*G+L*L*L*B,j[0][he]=pe,ie=Te*Te*Te*V+3*Te*Te*L*R+3*Te*L*L*D+L*L*L*Z,j[1][he]=ie;j[0][we]=E,j[1][we]=V,j[0][we+1]=B,j[1][we+1]=Z;var Ae=[{x:te.apply(null,j[0]),y:te.apply(null,j[1])},{x:fe.apply(null,j[0]),y:fe.apply(null,j[1])}];return t.cachesBoundsOfCurve&&(t.boundsOfCurveCache[H]=Ae),Ae}function d(E,V,M){for(var R=M[1],G=M[2],D=M[3],B=M[4],Z=M[5],H=M[6],Q=M[7],te=c(H-E,Q-V,R,G,B,Z,D),fe=0,me=te.length;fe<me;fe++)te[fe][1]+=E,te[fe][2]+=V,te[fe][3]+=E,te[fe][4]+=V,te[fe][5]+=E,te[fe][6]+=V;return te}function g(E){var V=0,M=0,R=E.length,G=0,D=0,B,Z,H,Q=[],te,fe,me;for(Z=0;Z<R;++Z){switch(H=!1,B=E[Z].slice(0),B[0]){case"l":B[0]="L",B[1]+=V,B[2]+=M;case"L":V=B[1],M=B[2];break;case"h":B[1]+=V;case"H":B[0]="L",B[2]=M,V=B[1];break;case"v":B[1]+=M;case"V":B[0]="L",M=B[1],B[1]=V,B[2]=M;break;case"m":B[0]="M",B[1]+=V,B[2]+=M;case"M":V=B[1],M=B[2],G=B[1],D=B[2];break;case"c":B[0]="C",B[1]+=V,B[2]+=M,B[3]+=V,B[4]+=M,B[5]+=V,B[6]+=M;case"C":fe=B[3],me=B[4],V=B[5],M=B[6];break;case"s":B[0]="S",B[1]+=V,B[2]+=M,B[3]+=V,B[4]+=M;case"S":te==="C"?(fe=2*V-fe,me=2*M-me):(fe=V,me=M),V=B[3],M=B[4],B[0]="C",B[5]=B[3],B[6]=B[4],B[3]=B[1],B[4]=B[2],B[1]=fe,B[2]=me,fe=B[3],me=B[4];break;case"q":B[0]="Q",B[1]+=V,B[2]+=M,B[3]+=V,B[4]+=M;case"Q":fe=B[1],me=B[2],V=B[3],M=B[4];break;case"t":B[0]="T",B[1]+=V,B[2]+=M;case"T":te==="Q"?(fe=2*V-fe,me=2*M-me):(fe=V,me=M),B[0]="Q",V=B[1],M=B[2],B[1]=fe,B[2]=me,B[3]=V,B[4]=M;break;case"a":B[0]="A",B[6]+=V,B[7]+=M;case"A":H=!0,Q=Q.concat(d(V,M,B)),V=B[6],M=B[7];break;case"z":case"Z":V=G,M=D;break}H||Q.push(B),te=B[0]}return Q}function m(E,V,M,R){return Math.sqrt((M-E)*(M-E)+(R-V)*(R-V))}function v(E){return E*E*E}function y(E){return 3*E*E*(1-E)}function b(E){return 3*E*(1-E)*(1-E)}function w(E){return(1-E)*(1-E)*(1-E)}function S(E,V,M,R,G,D,B,Z){return function(H){var Q=v(H),te=y(H),fe=b(H),me=w(H);return{x:B*Q+G*te+M*fe+E*me,y:Z*Q+D*te+R*fe+V*me}}}function C(E,V,M,R,G,D,B,Z){return function(H){var Q=1-H,te=3*Q*Q*(M-E)+6*Q*H*(G-M)+3*H*H*(B-G),fe=3*Q*Q*(R-V)+6*Q*H*(D-R)+3*H*H*(Z-D);return Math.atan2(fe,te)}}function T(E){return E*E}function k(E){return 2*E*(1-E)}function A(E){return(1-E)*(1-E)}function P(E,V,M,R,G,D){return function(B){var Z=T(B),H=k(B),Q=A(B);return{x:G*Z+M*H+E*Q,y:D*Z+R*H+V*Q}}}function z(E,V,M,R,G,D){return function(B){var Z=1-B,H=2*Z*(M-E)+2*B*(G-M),Q=2*Z*(R-V)+2*B*(D-R);return Math.atan2(Q,H)}}function I(E,V,M){var R={x:V,y:M},G,D=0,B;for(B=1;B<=100;B+=1)G=E(B/100),D+=m(R.x,R.y,G.x,G.y),R=G;return D}function $(E,V){for(var M=0,R=0,G=E.iterator,D={x:E.x,y:E.y},B,Z,H=.01,Q=E.angleFinder,te;R<V&&H>1e-4;)B=G(M),te=M,Z=m(D.x,D.y,B.x,B.y),Z+R>V?(M-=H,H/=2):(D=B,M+=H,R+=Z);return B.angle=Q(te),B}function O(E){for(var V=0,M=E.length,R,G=0,D=0,B=0,Z=0,H=[],Q,te,fe,me=0;me<M;me++){switch(R=E[me],te={x:G,y:D,command:R[0]},R[0]){case"M":te.length=0,B=G=R[1],Z=D=R[2];break;case"L":te.length=m(G,D,R[1],R[2]),G=R[1],D=R[2];break;case"C":Q=S(G,D,R[1],R[2],R[3],R[4],R[5],R[6]),fe=C(G,D,R[1],R[2],R[3],R[4],R[5],R[6]),te.iterator=Q,te.angleFinder=fe,te.length=I(Q,G,D),G=R[5],D=R[6];break;case"Q":Q=P(G,D,R[1],R[2],R[3],R[4]),fe=z(G,D,R[1],R[2],R[3],R[4]),te.iterator=Q,te.angleFinder=fe,te.length=I(Q,G,D),G=R[3],D=R[4];break;case"Z":case"z":te.destX=B,te.destY=Z,te.length=m(G,D,B,Z),G=B,D=Z;break}V+=te.length,H.push(te)}return H.push({length:V,x:G,y:D}),H}function Y(E,V,M){M||(M=O(E));for(var R=0;V-M[R].length>0&&R<M.length-2;)V-=M[R].length,R++;var G=M[R],D=V/G.length,B=G.command,Z=E[R],H;switch(B){case"M":return{x:G.x,y:G.y,angle:0};case"Z":case"z":return H=new t.Point(G.x,G.y).lerp(new t.Point(G.destX,G.destY),D),H.angle=Math.atan2(G.destY-G.y,G.destX-G.x),H;case"L":return H=new t.Point(G.x,G.y).lerp(new t.Point(Z[1],Z[2]),D),H.angle=Math.atan2(Z[2]-G.y,Z[1]-G.x),H;case"C":return $(G,V);case"Q":return $(G,V)}}function re(E){var V=[],M=[],R,G,D=t.rePathCommand,B="[-+]?(?:\\d*\\.\\d+|\\d+\\.?)(?:[eE][-+]?\\d+)?\\s*",Z="("+B+")"+t.commaWsp,H="([01])"+t.commaWsp+"?",Q=Z+"?"+Z+"?"+Z+H+H+Z+"?("+B+")",te=new RegExp(Q,"g"),fe,me,_e;if(!E||!E.match)return V;_e=E.match(/[mzlhvcsqta][^mzlhvcsqta]*/gi);for(var j=0,x,U=_e.length;j<U;j++){R=_e[j],me=R.slice(1).trim(),M.length=0;var K=R.charAt(0);if(x=[K],K.toLowerCase()==="a")for(var L;L=te.exec(me);)for(var F=1;F<L.length;F++)M.push(L[F]);else for(;fe=D.exec(me);)M.push(fe[0]);for(var F=0,X=M.length;F<X;F++)G=parseFloat(M[F]),isNaN(G)||x.push(G);var de=a[K.toLowerCase()],le=l[K]||K;if(x.length-1>de)for(var W=1,pe=x.length;W<pe;W+=de)V.push([K].concat(x.slice(W,W+de))),K=le;else V.push(x)}return V}function q(E,V){var M=[],R,G=new t.Point(E[0].x,E[0].y),D=new t.Point(E[1].x,E[1].y),B=E.length,Z=1,H=0,Q=B>2;for(V=V||0,Q&&(Z=E[2].x<D.x?-1:E[2].x===D.x?0:1,H=E[2].y<D.y?-1:E[2].y===D.y?0:1),M.push(["M",G.x-Z*V,G.y-H*V]),R=1;R<B;R++){if(!G.eq(D)){var te=G.midPointFrom(D);M.push(["Q",G.x,G.y,te.x,te.y])}G=E[R],R+1<E.length&&(D=E[R+1])}return Q&&(Z=G.x>E[R-2].x?1:G.x===E[R-2].x?0:-1,H=G.y>E[R-2].y?1:G.y===E[R-2].y?0:-1),M.push(["L",G.x+Z*V,G.y+H*V]),M}function J(E,V,M){return M&&(V=t.util.multiplyTransformMatrices(V,[1,0,0,1,-M.x,-M.y])),E.map(function(R){for(var G=R.slice(0),D={},B=1;B<R.length-1;B+=2)D.x=R[B],D.y=R[B+1],D=t.util.transformPoint(D,V),G[B]=D.x,G[B+1]=D.y;return G})}t.util.joinPath=function(E){return E.map(function(V){return V.join(" ")}).join(" ")},t.util.parsePath=re,t.util.makePathSimpler=g,t.util.getSmoothPathFromPoints=q,t.util.getPathSegmentsInfo=O,t.util.getBoundsOfCurve=s,t.util.getPointOnPath=Y,t.util.transformPath=J}(),function(){var o=Array.prototype.slice;function a(s,d){for(var g=o.call(arguments,2),m=[],v=0,y=s.length;v<y;v++)m[v]=g.length?s[v][d].apply(s[v],g):s[v][d].call(s[v]);return m}function l(s,d){return f(s,d,function(g,m){return g>=m})}function h(s,d){return f(s,d,function(g,m){return g<m})}function c(s,d){for(var g=s.length;g--;)s[g]=d;return s}function f(s,d,g){if(!(!s||s.length===0)){var m=s.length-1,v=d?s[m][d]:s[m];if(d)for(;m--;)g(s[m][d],v)&&(v=s[m][d]);else for(;m--;)g(s[m],v)&&(v=s[m]);return v}}t.util.array={fill:c,invoke:a,min:h,max:l}}(),function(){function o(l,h,c){if(c)if(!t.isLikelyNode&&h instanceof Element)l=h;else if(h instanceof Array){l=[];for(var f=0,s=h.length;f<s;f++)l[f]=o({},h[f],c)}else if(h&&typeof h=="object")for(var d in h)d==="canvas"||d==="group"?l[d]=null:h.hasOwnProperty(d)&&(l[d]=o({},h[d],c));else l=h;else for(var d in h)l[d]=h[d];return l}function a(l,h){return o({},l,h)}t.util.object={extend:o,clone:a},t.util.object.extend(t.util,t.Observable)}(),function(){function o(f){return f.replace(/-+(.)?/g,function(s,d){return d?d.toUpperCase():""})}function a(f,s){return f.charAt(0).toUpperCase()+(s?f.slice(1):f.slice(1).toLowerCase())}function l(f){return f.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function h(f){var s=0,d,g=[];for(s=0,d;s<f.length;s++)(d=c(f,s))!==!1&&g.push(d);return g}function c(f,s){var d=f.charCodeAt(s);if(isNaN(d))return"";if(d<55296||d>57343)return f.charAt(s);if(55296<=d&&d<=56319){if(f.length<=s+1)throw"High surrogate without following low surrogate";var g=f.charCodeAt(s+1);if(56320>g||g>57343)throw"High surrogate without following low surrogate";return f.charAt(s)+f.charAt(s+1)}if(s===0)throw"Low surrogate without preceding high surrogate";var m=f.charCodeAt(s-1);if(55296>m||m>56319)throw"Low surrogate without preceding high surrogate";return!1}t.util.string={camelize:o,capitalize:a,escapeXml:l,graphemeSplit:h}}(),function(){var o=Array.prototype.slice,a=function(){},l=function(){for(var d in{toString:1})if(d==="toString")return!1;return!0}(),h=function(d,g,m){for(var v in g)v in d.prototype&&typeof d.prototype[v]=="function"&&(g[v]+"").indexOf("callSuper")>-1?d.prototype[v]=function(y){return function(){var b=this.constructor.superclass;this.constructor.superclass=m;var w=g[y].apply(this,arguments);if(this.constructor.superclass=b,y!=="initialize")return w}}(v):d.prototype[v]=g[v],l&&(g.toString!==Object.prototype.toString&&(d.prototype.toString=g.toString),g.valueOf!==Object.prototype.valueOf&&(d.prototype.valueOf=g.valueOf))};function c(){}function f(d){for(var g=null,m=this;m.constructor.superclass;){var v=m.constructor.superclass.prototype[d];if(m[d]!==v){g=v;break}m=m.constructor.superclass.prototype}return g?arguments.length>1?g.apply(this,o.call(arguments,1)):g.call(this):console.log("tried to callSuper "+d+", method not found in prototype chain",this)}function s(){var d=null,g=o.call(arguments,0);typeof g[0]=="function"&&(d=g.shift());function m(){this.initialize.apply(this,arguments)}m.superclass=d,m.subclasses=[],d&&(c.prototype=d.prototype,m.prototype=new c,d.subclasses.push(m));for(var v=0,y=g.length;v<y;v++)h(m,g[v],d);return m.prototype.initialize||(m.prototype.initialize=a),m.prototype.constructor=m,m.prototype.callSuper=f,m}t.util.createClass=s}(),function(){var o=!!t.document.createElement("div").attachEvent,a=["touchstart","touchmove","touchend"];t.util.addListener=function(h,c,f,s){h&&h.addEventListener(c,f,o?!1:s)},t.util.removeListener=function(h,c,f,s){h&&h.removeEventListener(c,f,o?!1:s)};function l(h){var c=h.changedTouches;return c&&c[0]?c[0]:h}t.util.getPointer=function(h){var c=h.target,f=t.util.getScrollLeftTop(c),s=l(h);return{x:s.clientX+f.left,y:s.clientY+f.top}},t.util.isTouchEvent=function(h){return a.indexOf(h.type)>-1||h.pointerType==="touch"}}(),function(){function o(s,d){var g=s.style;if(!g)return s;if(typeof d=="string")return s.style.cssText+=";"+d,d.indexOf("opacity")>-1?f(s,d.match(/opacity:\s*(\d?\.?\d*)/)[1]):s;for(var m in d)if(m==="opacity")f(s,d[m]);else{var v=m==="float"||m==="cssFloat"?typeof g.styleFloat>"u"?"cssFloat":"styleFloat":m;g.setProperty(v,d[m])}return s}var a=t.document.createElement("div"),l=typeof a.style.opacity=="string",h=typeof a.style.filter=="string",c=/alpha\s*\(\s*opacity\s*=\s*([^\)]+)\)/,f=function(s){return s};l?f=function(s,d){return s.style.opacity=d,s}:h&&(f=function(s,d){var g=s.style;return s.currentStyle&&!s.currentStyle.hasLayout&&(g.zoom=1),c.test(g.filter)?(d=d>=.9999?"":"alpha(opacity="+d*100+")",g.filter=g.filter.replace(c,d)):g.filter+=" alpha(opacity="+d*100+")",s}),t.util.setStyle=o}(),function(){var o=Array.prototype.slice;function a(w){return typeof w=="string"?t.document.getElementById(w):w}var l,h=function(w){return o.call(w,0)};try{l=h(t.document.childNodes)instanceof Array}catch{}l||(h=function(w){for(var S=new Array(w.length),C=w.length;C--;)S[C]=w[C];return S});function c(w,S){var C=t.document.createElement(w);for(var T in S)T==="class"?C.className=S[T]:T==="for"?C.htmlFor=S[T]:C.setAttribute(T,S[T]);return C}function f(w,S){w&&(" "+w.className+" ").indexOf(" "+S+" ")===-1&&(w.className+=(w.className?" ":"")+S)}function s(w,S,C){return typeof S=="string"&&(S=c(S,C)),w.parentNode&&w.parentNode.replaceChild(S,w),S.appendChild(w),S}function d(w){for(var S=0,C=0,T=t.document.documentElement,k=t.document.body||{scrollLeft:0,scrollTop:0};w&&(w.parentNode||w.host)&&(w=w.parentNode||w.host,w===t.document?(S=k.scrollLeft||T.scrollLeft||0,C=k.scrollTop||T.scrollTop||0):(S+=w.scrollLeft||0,C+=w.scrollTop||0),!(w.nodeType===1&&w.style.position==="fixed")););return{left:S,top:C}}function g(w){var S,C=w&&w.ownerDocument,T={left:0,top:0},k={left:0,top:0},A,P={borderLeftWidth:"left",borderTopWidth:"top",paddingLeft:"left",paddingTop:"top"};if(!C)return k;for(var z in P)k[P[z]]+=parseInt(m(w,z),10)||0;return S=C.documentElement,typeof w.getBoundingClientRect<"u"&&(T=w.getBoundingClientRect()),A=d(w),{left:T.left+A.left-(S.clientLeft||0)+k.left,top:T.top+A.top-(S.clientTop||0)+k.top}}var m;t.document.defaultView&&t.document.defaultView.getComputedStyle?m=function(w,S){var C=t.document.defaultView.getComputedStyle(w,null);return C?C[S]:void 0}:m=function(w,S){var C=w.style[S];return!C&&w.currentStyle&&(C=w.currentStyle[S]),C},function(){var w=t.document.documentElement.style,S="userSelect"in w?"userSelect":"MozUserSelect"in w?"MozUserSelect":"WebkitUserSelect"in w?"WebkitUserSelect":"KhtmlUserSelect"in w?"KhtmlUserSelect":"";function C(k){return typeof k.onselectstart<"u"&&(k.onselectstart=t.util.falseFunction),S?k.style[S]="none":typeof k.unselectable=="string"&&(k.unselectable="on"),k}function T(k){return typeof k.onselectstart<"u"&&(k.onselectstart=null),S?k.style[S]="":typeof k.unselectable=="string"&&(k.unselectable=""),k}t.util.makeElementUnselectable=C,t.util.makeElementSelectable=T}();function v(w){var S=t.jsdomImplForWrapper(w);return S._canvas||S._image}function y(w){if(!!t.isLikelyNode){var S=t.jsdomImplForWrapper(w);S&&(S._image=null,S._canvas=null,S._currentSrc=null,S._attributes=null,S._classList=null)}}function b(w,S){w.imageSmoothingEnabled=w.imageSmoothingEnabled||w.webkitImageSmoothingEnabled||w.mozImageSmoothingEnabled||w.msImageSmoothingEnabled||w.oImageSmoothingEnabled,w.imageSmoothingEnabled=S}t.util.setImageSmoothing=b,t.util.getById=a,t.util.toArray=h,t.util.addClass=f,t.util.makeElement=c,t.util.wrapElement=s,t.util.getScrollLeftTop=d,t.util.getElementOffset=g,t.util.getNodeCanvas=v,t.util.cleanUpJsdomNode=y}(),function(){function o(h,c){return h+(/\?/.test(h)?"&":"?")+c}function a(){}function l(h,c){c||(c={});var f=c.method?c.method.toUpperCase():"GET",s=c.onComplete||function(){},d=new t.window.XMLHttpRequest,g=c.body||c.parameters;return d.onreadystatechange=function(){d.readyState===4&&(s(d),d.onreadystatechange=a)},f==="GET"&&(g=null,typeof c.parameters=="string"&&(h=o(h,c.parameters))),d.open(f,h,!0),(f==="POST"||f==="PUT")&&d.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),d.send(g),d}t.util.request=l}(),t.log=console.log,t.warn=console.warn,function(){var o=t.util.object.extend,a=t.util.object.clone,l=[];t.util.object.extend(l,{cancelAll:function(){var v=this.splice(0);return v.forEach(function(y){y.cancel()}),v},cancelByCanvas:function(v){if(!v)return[];var y=this.filter(function(b){return typeof b.target=="object"&&b.target.canvas===v});return y.forEach(function(b){b.cancel()}),y},cancelByTarget:function(v){var y=this.findAnimationsByTarget(v);return y.forEach(function(b){b.cancel()}),y},findAnimationIndex:function(v){return this.indexOf(this.findAnimation(v))},findAnimation:function(v){return this.find(function(y){return y.cancel===v})},findAnimationsByTarget:function(v){return v?this.filter(function(y){return y.target===v}):[]}});function h(){return!1}function c(v,y,b,w){return-b*Math.cos(v/w*(Math.PI/2))+b+y}function f(v){v||(v={});var y=!1,b,w=function(){var S=t.runningAnimations.indexOf(b);return S>-1&&t.runningAnimations.splice(S,1)[0]};return b=o(a(v),{cancel:function(){return y=!0,w()},currentValue:"startValue"in v?v.startValue:0,completionRate:0,durationRate:0}),t.runningAnimations.push(b),g(function(S){var C=S||+new Date,T=v.duration||500,k=C+T,A,P=v.onChange||h,z=v.abort||h,I=v.onComplete||h,$=v.easing||c,O="startValue"in v?v.startValue.length>0:!1,Y="startValue"in v?v.startValue:0,re="endValue"in v?v.endValue:100,q=v.byValue||(O?Y.map(function(J,E){return re[E]-Y[E]}):re-Y);v.onStart&&v.onStart(),function J(E){A=E||+new Date;var V=A>k?T:A-C,M=V/T,R=O?Y.map(function(D,B){return $(V,Y[B],q[B],T)}):$(V,Y,q,T),G=Math.abs(O?(R[0]-Y[0])/q[0]:(R-Y)/q);if(b.currentValue=O?R.slice():R,b.completionRate=G,b.durationRate=M,!y){if(z(R,G,M)){w();return}if(A>k){b.currentValue=O?re.slice():re,b.completionRate=1,b.durationRate=1,P(O?re.slice():re,1,1),I(re,1,1),w();return}else P(R,G,M),g(J)}}(C)}),b.cancel}var s=t.window.requestAnimationFrame||t.window.webkitRequestAnimationFrame||t.window.mozRequestAnimationFrame||t.window.oRequestAnimationFrame||t.window.msRequestAnimationFrame||function(v){return t.window.setTimeout(v,1e3/60)},d=t.window.cancelAnimationFrame||t.window.clearTimeout;function g(){return s.apply(t.window,arguments)}function m(){return d.apply(t.window,arguments)}t.util.animate=f,t.util.requestAnimFrame=g,t.util.cancelAnimFrame=m,t.runningAnimations=l}(),function(){function o(l,h,c){var f="rgba("+parseInt(l[0]+c*(h[0]-l[0]),10)+","+parseInt(l[1]+c*(h[1]-l[1]),10)+","+parseInt(l[2]+c*(h[2]-l[2]),10);return f+=","+(l&&h?parseFloat(l[3]+c*(h[3]-l[3])):1),f+=")",f}function a(l,h,c,f){var s=new t.Color(l).getSource(),d=new t.Color(h).getSource(),g=f.onComplete,m=f.onChange;return f=f||{},t.util.animate(t.util.object.extend(f,{duration:c||500,startValue:s,endValue:d,byValue:d,easing:function(v,y,b,w){var S=f.colorEasing?f.colorEasing(v,w):1-Math.cos(v/w*(Math.PI/2));return o(y,b,S)},onComplete:function(v,y,b){if(g)return g(o(d,d,0),y,b)},onChange:function(v,y,b){if(m){if(Array.isArray(v))return m(o(v,v,0),y,b);m(v,y,b)}}}))}t.util.animateColor=a}(),function(){function o(E,V,M,R){return E<Math.abs(V)?(E=V,R=M/4):V===0&&E===0?R=M/(2*Math.PI)*Math.asin(1):R=M/(2*Math.PI)*Math.asin(V/E),{a:E,c:V,p:M,s:R}}function a(E,V,M){return E.a*Math.pow(2,10*(V-=1))*Math.sin((V*M-E.s)*(2*Math.PI)/E.p)}function l(E,V,M,R){return M*((E=E/R-1)*E*E+1)+V}function h(E,V,M,R){return E/=R/2,E<1?M/2*E*E*E+V:M/2*((E-=2)*E*E+2)+V}function c(E,V,M,R){return M*(E/=R)*E*E*E+V}function f(E,V,M,R){return-M*((E=E/R-1)*E*E*E-1)+V}function s(E,V,M,R){return E/=R/2,E<1?M/2*E*E*E*E+V:-M/2*((E-=2)*E*E*E-2)+V}function d(E,V,M,R){return M*(E/=R)*E*E*E*E+V}function g(E,V,M,R){return M*((E=E/R-1)*E*E*E*E+1)+V}function m(E,V,M,R){return E/=R/2,E<1?M/2*E*E*E*E*E+V:M/2*((E-=2)*E*E*E*E+2)+V}function v(E,V,M,R){return-M*Math.cos(E/R*(Math.PI/2))+M+V}function y(E,V,M,R){return M*Math.sin(E/R*(Math.PI/2))+V}function b(E,V,M,R){return-M/2*(Math.cos(Math.PI*E/R)-1)+V}function w(E,V,M,R){return E===0?V:M*Math.pow(2,10*(E/R-1))+V}function S(E,V,M,R){return E===R?V+M:M*(-Math.pow(2,-10*E/R)+1)+V}function C(E,V,M,R){return E===0?V:E===R?V+M:(E/=R/2,E<1?M/2*Math.pow(2,10*(E-1))+V:M/2*(-Math.pow(2,-10*--E)+2)+V)}function T(E,V,M,R){return-M*(Math.sqrt(1-(E/=R)*E)-1)+V}function k(E,V,M,R){return M*Math.sqrt(1-(E=E/R-1)*E)+V}function A(E,V,M,R){return E/=R/2,E<1?-M/2*(Math.sqrt(1-E*E)-1)+V:M/2*(Math.sqrt(1-(E-=2)*E)+1)+V}function P(E,V,M,R){var G=1.70158,D=0,B=M;if(E===0)return V;if(E/=R,E===1)return V+M;D||(D=R*.3);var Z=o(B,M,D,G);return-a(Z,E,R)+V}function z(E,V,M,R){var G=1.70158,D=0,B=M;if(E===0)return V;if(E/=R,E===1)return V+M;D||(D=R*.3);var Z=o(B,M,D,G);return Z.a*Math.pow(2,-10*E)*Math.sin((E*R-Z.s)*(2*Math.PI)/Z.p)+Z.c+V}function I(E,V,M,R){var G=1.70158,D=0,B=M;if(E===0)return V;if(E/=R/2,E===2)return V+M;D||(D=R*(.3*1.5));var Z=o(B,M,D,G);return E<1?-.5*a(Z,E,R)+V:Z.a*Math.pow(2,-10*(E-=1))*Math.sin((E*R-Z.s)*(2*Math.PI)/Z.p)*.5+Z.c+V}function $(E,V,M,R,G){return G===void 0&&(G=1.70158),M*(E/=R)*E*((G+1)*E-G)+V}function O(E,V,M,R,G){return G===void 0&&(G=1.70158),M*((E=E/R-1)*E*((G+1)*E+G)+1)+V}function Y(E,V,M,R,G){return G===void 0&&(G=1.70158),E/=R/2,E<1?M/2*(E*E*(((G*=1.525)+1)*E-G))+V:M/2*((E-=2)*E*(((G*=1.525)+1)*E+G)+2)+V}function re(E,V,M,R){return M-q(R-E,0,M,R)+V}function q(E,V,M,R){return(E/=R)<1/2.75?M*(7.5625*E*E)+V:E<2/2.75?M*(7.5625*(E-=1.5/2.75)*E+.75)+V:E<2.5/2.75?M*(7.5625*(E-=2.25/2.75)*E+.9375)+V:M*(7.5625*(E-=2.625/2.75)*E+.984375)+V}function J(E,V,M,R){return E<R/2?re(E*2,0,M,R)*.5+V:q(E*2-R,0,M,R)*.5+M*.5+V}t.util.ease={easeInQuad:function(E,V,M,R){return M*(E/=R)*E+V},easeOutQuad:function(E,V,M,R){return-M*(E/=R)*(E-2)+V},easeInOutQuad:function(E,V,M,R){return E/=R/2,E<1?M/2*E*E+V:-M/2*(--E*(E-2)-1)+V},easeInCubic:function(E,V,M,R){return M*(E/=R)*E*E+V},easeOutCubic:l,easeInOutCubic:h,easeInQuart:c,easeOutQuart:f,easeInOutQuart:s,easeInQuint:d,easeOutQuint:g,easeInOutQuint:m,easeInSine:v,easeOutSine:y,easeInOutSine:b,easeInExpo:w,easeOutExpo:S,easeInOutExpo:C,easeInCirc:T,easeOutCirc:k,easeInOutCirc:A,easeInElastic:P,easeOutElastic:z,easeInOutElastic:I,easeInBack:$,easeOutBack:O,easeInOutBack:Y,easeInBounce:re,easeOutBounce:q,easeInOutBounce:J}}(),function(o){var a=o.fabric||(o.fabric={}),l=a.util.object.extend,h=a.util.object.clone,c=a.util.toFixed,f=a.util.parseUnit,s=a.util.multiplyTransformMatrices,d=["path","circle","polygon","polyline","ellipse","rect","line","image","text"],g=["symbol","image","marker","pattern","view","svg"],m=["pattern","defs","symbol","metadata","clipPath","mask","desc"],v=["symbol","g","a","svg","clipPath","defs"],y={cx:"left",x:"left",r:"radius",cy:"top",y:"top",display:"visible",visibility:"visible",transform:"transformMatrix","fill-opacity":"fillOpacity","fill-rule":"fillRule","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","letter-spacing":"charSpacing","paint-order":"paintFirst","stroke-dasharray":"strokeDashArray","stroke-dashoffset":"strokeDashOffset","stroke-linecap":"strokeLineCap","stroke-linejoin":"strokeLineJoin","stroke-miterlimit":"strokeMiterLimit","stroke-opacity":"strokeOpacity","stroke-width":"strokeWidth","text-decoration":"textDecoration","text-anchor":"textAnchor",opacity:"opacity","clip-path":"clipPath","clip-rule":"clipRule","vector-effect":"strokeUniform","image-rendering":"imageSmoothing"},b={stroke:"strokeOpacity",fill:"fillOpacity"},w="font-size",S="clip-path";a.svgValidTagNamesRegEx=k(d),a.svgViewBoxElementsRegEx=k(g),a.svgInvalidAncestorsRegEx=k(m),a.svgValidParentsRegEx=k(v),a.cssRules={},a.gradientDefs={},a.clipPaths={};function C(D){return D in y?y[D]:D}function T(D,B,Z,H){var Q=Array.isArray(B),te;if((D==="fill"||D==="stroke")&&B==="none")B="";else{if(D==="strokeUniform")return B==="non-scaling-stroke";if(D==="strokeDashArray")B==="none"?B=null:B=B.replace(/,/g," ").split(/\s+/).map(parseFloat);else if(D==="transformMatrix")Z&&Z.transformMatrix?B=s(Z.transformMatrix,a.parseTransformAttribute(B)):B=a.parseTransformAttribute(B);else if(D==="visible")B=B!=="none"&&B!=="hidden",Z&&Z.visible===!1&&(B=!1);else if(D==="opacity")B=parseFloat(B),Z&&typeof Z.opacity<"u"&&(B*=Z.opacity);else if(D==="textAnchor")B=B==="start"?"left":B==="end"?"right":"center";else if(D==="charSpacing")te=f(B,H)/H*1e3;else if(D==="paintFirst"){var fe=B.indexOf("fill"),me=B.indexOf("stroke"),B="fill";(fe>-1&&me>-1&&me<fe||fe===-1&&me>-1)&&(B="stroke")}else{if(D==="href"||D==="xlink:href"||D==="font")return B;if(D==="imageSmoothing")return B==="optimizeQuality";te=Q?B.map(f):f(B,H)}}return!Q&&isNaN(te)?B:te}function k(D){return new RegExp("^("+D.join("|")+")\\b","i")}function A(D){for(var B in b)if(!(typeof D[b[B]]>"u"||D[B]==="")){if(typeof D[B]>"u"){if(!a.Object.prototype[B])continue;D[B]=a.Object.prototype[B]}if(D[B].indexOf("url(")!==0){var Z=new a.Color(D[B]);D[B]=Z.setAlpha(c(Z.getAlpha()*D[b[B]],2)).toRgba()}}return D}function P(D,B){var Z,H=[],Q,te,fe;for(te=0,fe=B.length;te<fe;te++)Z=B[te],Q=D.getElementsByTagName(Z),H=H.concat(Array.prototype.slice.call(Q));return H}a.parseTransformAttribute=function(){function D(W,pe){var ie=a.util.cos(pe[0]),he=a.util.sin(pe[0]),we=0,Te=0;pe.length===3&&(we=pe[1],Te=pe[2]),W[0]=ie,W[1]=he,W[2]=-he,W[3]=ie,W[4]=we-(ie*we-he*Te),W[5]=Te-(he*we+ie*Te)}function B(W,pe){var ie=pe[0],he=pe.length===2?pe[1]:pe[0];W[0]=ie,W[3]=he}function Z(W,pe,ie){W[ie]=Math.tan(a.util.degreesToRadians(pe[0]))}function H(W,pe){W[4]=pe[0],pe.length===2&&(W[5]=pe[1])}var Q=a.iMatrix,te=a.reNum,fe=a.commaWsp,me="(?:(skewX)\\s*\\(\\s*("+te+")\\s*\\))",_e="(?:(skewY)\\s*\\(\\s*("+te+")\\s*\\))",j="(?:(rotate)\\s*\\(\\s*("+te+")(?:"+fe+"("+te+")"+fe+"("+te+"))?\\s*\\))",x="(?:(scale)\\s*\\(\\s*("+te+")(?:"+fe+"("+te+"))?\\s*\\))",U="(?:(translate)\\s*\\(\\s*("+te+")(?:"+fe+"("+te+"))?\\s*\\))",K="(?:(matrix)\\s*\\(\\s*("+te+")"+fe+"("+te+")"+fe+"("+te+")"+fe+"("+te+")"+fe+"("+te+")"+fe+"("+te+")\\s*\\))",L="(?:"+K+"|"+U+"|"+x+"|"+j+"|"+me+"|"+_e+")",F="(?:"+L+"(?:"+fe+"*"+L+")*)",X="^\\s*(?:"+F+"?)\\s*$",de=new RegExp(X),le=new RegExp(L,"g");return function(W){var pe=Q.concat(),ie=[];if(!W||W&&!de.test(W))return pe;W.replace(le,function(we){var Te=new RegExp(L).exec(we).filter(function(ye){return!!ye}),Ae=Te[1],Le=Te.slice(2).map(parseFloat);switch(Ae){case"translate":H(pe,Le);break;case"rotate":Le[0]=a.util.degreesToRadians(Le[0]),D(pe,Le);break;case"scale":B(pe,Le);break;case"skewX":Z(pe,Le,2);break;case"skewY":Z(pe,Le,1);break;case"matrix":pe=Le;break}ie.push(pe.concat()),pe=Q.concat()});for(var he=ie[0];ie.length>1;)ie.shift(),he=a.util.multiplyTransformMatrices(he,ie[0]);return he}}();function z(D,B){var Z,H;D.replace(/;\s*$/,"").split(";").forEach(function(Q){var te=Q.split(":");Z=te[0].trim().toLowerCase(),H=te[1].trim(),B[Z]=H})}function I(D,B){var Z,H;for(var Q in D)typeof D[Q]>"u"||(Z=Q.toLowerCase(),H=D[Q],B[Z]=H)}function $(D,B){var Z={};for(var H in a.cssRules[B])if(O(D,H.split(" ")))for(var Q in a.cssRules[B][H])Z[Q]=a.cssRules[B][H][Q];return Z}function O(D,B){var Z,H=!0;return Z=re(D,B.pop()),Z&&B.length&&(H=Y(D,B)),Z&&H&&B.length===0}function Y(D,B){for(var Z,H=!0;D.parentNode&&D.parentNode.nodeType===1&&B.length;)H&&(Z=B.pop()),D=D.parentNode,H=re(D,Z);return B.length===0}function re(D,B){var Z=D.nodeName,H=D.getAttribute("class"),Q=D.getAttribute("id"),te,fe;if(te=new RegExp("^"+Z,"i"),B=B.replace(te,""),Q&&B.length&&(te=new RegExp("#"+Q+"(?![a-zA-Z\\-]+)","i"),B=B.replace(te,"")),H&&B.length)for(H=H.split(" "),fe=H.length;fe--;)te=new RegExp("\\."+H[fe]+"(?![a-zA-Z\\-]+)","i"),B=B.replace(te,"");return B.length===0}function q(D,B){var Z;if(D.getElementById&&(Z=D.getElementById(B)),Z)return Z;var H,Q,te,fe=D.getElementsByTagName("*");for(Q=0,te=fe.length;Q<te;Q++)if(H=fe[Q],B===H.getAttribute("id"))return H}function J(D){for(var B=P(D,["use","svg:use"]),Z=0;B.length&&Z<B.length;){var H=B[Z],Q=H.getAttribute("xlink:href")||H.getAttribute("href");if(Q===null)return;var te=Q.slice(1),fe=H.getAttribute("x")||0,me=H.getAttribute("y")||0,_e=q(D,te).cloneNode(!0),j=(_e.getAttribute("transform")||"")+" translate("+fe+", "+me+")",x,U=B.length,K,L,F,X,de=a.svgNS;if(V(_e),/^svg$/i.test(_e.nodeName)){var le=_e.ownerDocument.createElementNS(de,"g");for(L=0,F=_e.attributes,X=F.length;L<X;L++)K=F.item(L),le.setAttributeNS(de,K.nodeName,K.nodeValue);for(;_e.firstChild;)le.appendChild(_e.firstChild);_e=le}for(L=0,F=H.attributes,X=F.length;L<X;L++)K=F.item(L),!(K.nodeName==="x"||K.nodeName==="y"||K.nodeName==="xlink:href"||K.nodeName==="href")&&(K.nodeName==="transform"?j=K.nodeValue+" "+j:_e.setAttribute(K.nodeName,K.nodeValue));_e.setAttribute("transform",j),_e.setAttribute("instantiated_by_use","1"),_e.removeAttribute("id"),x=H.parentNode,x.replaceChild(_e,H),B.length===U&&Z++}}var E=new RegExp("^\\s*("+a.reNum+"+)\\s*,?\\s*("+a.reNum+"+)\\s*,?\\s*("+a.reNum+"+)\\s*,?\\s*("+a.reNum+"+)\\s*$");function V(D){if(!a.svgViewBoxElementsRegEx.test(D.nodeName))return{};var B=D.getAttribute("viewBox"),Z=1,H=1,Q=0,te=0,fe,me,_e,j,x=D.getAttribute("width"),U=D.getAttribute("height"),K=D.getAttribute("x")||0,L=D.getAttribute("y")||0,F=D.getAttribute("preserveAspectRatio")||"",X=!B||!(B=B.match(E)),de=!x||!U||x==="100%"||U==="100%",le=X&&de,W={},pe="",ie=0,he=0;if(W.width=0,W.height=0,W.toBeParsed=le,X&&(K||L)&&D.parentNode&&D.parentNode.nodeName!=="#document"&&(pe=" translate("+f(K)+" "+f(L)+") ",_e=(D.getAttribute("transform")||"")+pe,D.setAttribute("transform",_e),D.removeAttribute("x"),D.removeAttribute("y")),le)return W;if(X)return W.width=f(x),W.height=f(U),W;if(Q=-parseFloat(B[1]),te=-parseFloat(B[2]),fe=parseFloat(B[3]),me=parseFloat(B[4]),W.minX=Q,W.minY=te,W.viewBoxWidth=fe,W.viewBoxHeight=me,de?(W.width=fe,W.height=me):(W.width=f(x),W.height=f(U),Z=W.width/fe,H=W.height/me),F=a.util.parsePreserveAspectRatioAttribute(F),F.alignX!=="none"&&(F.meetOrSlice==="meet"&&(H=Z=Z>H?H:Z),F.meetOrSlice==="slice"&&(H=Z=Z>H?Z:H),ie=W.width-fe*Z,he=W.height-me*Z,F.alignX==="Mid"&&(ie/=2),F.alignY==="Mid"&&(he/=2),F.alignX==="Min"&&(ie=0),F.alignY==="Min"&&(he=0)),Z===1&&H===1&&Q===0&&te===0&&K===0&&L===0)return W;if((K||L)&&D.parentNode.nodeName!=="#document"&&(pe=" translate("+f(K)+" "+f(L)+") "),_e=pe+" matrix("+Z+" 0 0 "+H+" "+(Q*Z+ie)+" "+(te*H+he)+") ",D.nodeName==="svg"){for(j=D.ownerDocument.createElementNS(a.svgNS,"g");D.firstChild;)j.appendChild(D.firstChild);D.appendChild(j)}else j=D,j.removeAttribute("x"),j.removeAttribute("y"),_e=j.getAttribute("transform")+_e;return j.setAttribute("transform",_e),W}function M(D,B){for(;D&&(D=D.parentNode);)if(D.nodeName&&B.test(D.nodeName.replace("svg:",""))&&!D.getAttribute("instantiated_by_use"))return!0;return!1}a.parseSVGDocument=function(D,B,Z,H){if(!!D){J(D);var Q=a.Object.__uid++,te,fe,me=V(D),_e=a.util.toArray(D.getElementsByTagName("*"));if(me.crossOrigin=H&&H.crossOrigin,me.svgUid=Q,_e.length===0&&a.isLikelyNode){_e=D.selectNodes('//*[name(.)!="svg"]');var j=[];for(te=0,fe=_e.length;te<fe;te++)j[te]=_e[te];_e=j}var x=_e.filter(function(K){return V(K),a.svgValidTagNamesRegEx.test(K.nodeName.replace("svg:",""))&&!M(K,a.svgInvalidAncestorsRegEx)});if(!x||x&&!x.length){B&&B([],{});return}var U={};_e.filter(function(K){return K.nodeName.replace("svg:","")==="clipPath"}).forEach(function(K){var L=K.getAttribute("id");U[L]=a.util.toArray(K.getElementsByTagName("*")).filter(function(F){return a.svgValidTagNamesRegEx.test(F.nodeName.replace("svg:",""))})}),a.gradientDefs[Q]=a.getGradientDefs(D),a.cssRules[Q]=a.getCSSRules(D),a.clipPaths[Q]=U,a.parseElements(x,function(K,L){B&&(B(K,me,L,_e),delete a.gradientDefs[Q],delete a.cssRules[Q],delete a.clipPaths[Q])},h(me),Z,H)}};function R(D,B){var Z=["gradientTransform","x1","x2","y1","y2","gradientUnits","cx","cy","r","fx","fy"],H="xlink:href",Q=B.getAttribute(H).slice(1),te=q(D,Q);if(te&&te.getAttribute(H)&&R(D,te),Z.forEach(function(me){te&&!B.hasAttribute(me)&&te.hasAttribute(me)&&B.setAttribute(me,te.getAttribute(me))}),!B.children.length)for(var fe=te.cloneNode(!0);fe.firstChild;)B.appendChild(fe.firstChild);B.removeAttribute(H)}var G=new RegExp("(normal|italic)?\\s*(normal|small-caps)?\\s*(normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900)?\\s*("+a.reNum+"(?:px|cm|mm|em|pt|pc|in)*)(?:\\/(normal|"+a.reNum+"))?\\s+(.*)");l(a,{parseFontDeclaration:function(D,B){var Z=D.match(G);if(!!Z){var H=Z[1],Q=Z[3],te=Z[4],fe=Z[5],me=Z[6];H&&(B.fontStyle=H),Q&&(B.fontWeight=isNaN(parseFloat(Q))?Q:parseFloat(Q)),te&&(B.fontSize=f(te)),me&&(B.fontFamily=me),fe&&(B.lineHeight=fe==="normal"?1:fe)}},getGradientDefs:function(D){var B=["linearGradient","radialGradient","svg:linearGradient","svg:radialGradient"],Z=P(D,B),H,Q=0,te={};for(Q=Z.length;Q--;)H=Z[Q],H.getAttribute("xlink:href")&&R(D,H),te[H.getAttribute("id")]=H;return te},parseAttributes:function(D,B,Z){if(!!D){var H,Q={},te,fe;typeof Z>"u"&&(Z=D.getAttribute("svgUid")),D.parentNode&&a.svgValidParentsRegEx.test(D.parentNode.nodeName)&&(Q=a.parseAttributes(D.parentNode,B,Z));var me=B.reduce(function(F,X){return H=D.getAttribute(X),H&&(F[X]=H),F},{}),_e=l($(D,Z),a.parseStyleAttribute(D));me=l(me,_e),_e[S]&&D.setAttribute(S,_e[S]),te=fe=Q.fontSize||a.Text.DEFAULT_SVG_FONT_SIZE,me[w]&&(me[w]=te=f(me[w],fe));var j,x,U={};for(var K in me)j=C(K),x=T(j,me[K],Q,te),U[j]=x;U&&U.font&&a.parseFontDeclaration(U.font,U);var L=l(Q,U);return a.svgValidParentsRegEx.test(D.nodeName)?L:A(L)}},parseElements:function(D,B,Z,H,Q){new a.ElementsParser(D,B,Z,H,Q).parse()},parseStyleAttribute:function(D){var B={},Z=D.getAttribute("style");return Z&&(typeof Z=="string"?z(Z,B):I(Z,B)),B},parsePointsAttribute:function(D){if(!D)return null;D=D.replace(/,/g," ").trim(),D=D.split(/\s+/);var B=[],Z,H;for(Z=0,H=D.length;Z<H;Z+=2)B.push({x:parseFloat(D[Z]),y:parseFloat(D[Z+1])});return B},getCSSRules:function(D){var B=D.getElementsByTagName("style"),Z,H,Q={},te;for(Z=0,H=B.length;Z<H;Z++){var fe=B[Z].textContent;fe=fe.replace(/\/\*[\s\S]*?\*\//g,""),fe.trim()!==""&&(te=fe.split("}"),te=te.filter(function(me){return me.trim()}),te.forEach(function(me){var _e=me.split("{"),j={},x=_e[1].trim(),U=x.split(";").filter(function(X){return X.trim()});for(Z=0,H=U.length;Z<H;Z++){var K=U[Z].split(":"),L=K[0].trim(),F=K[1].trim();j[L]=F}me=_e[0].trim(),me.split(",").forEach(function(X){X=X.replace(/^svg/i,"").trim(),X!==""&&(Q[X]?a.util.object.extend(Q[X],j):Q[X]=a.util.object.clone(j))})}))}return Q},loadSVGFromURL:function(D,B,Z,H){D=D.replace(/^\n\s*/,"").trim(),new a.util.request(D,{method:"get",onComplete:Q});function Q(te){var fe=te.responseXML;if(!fe||!fe.documentElement)return B&&B(null),!1;a.parseSVGDocument(fe.documentElement,function(me,_e,j,x){B&&B(me,_e,j,x)},Z,H)}},loadSVGFromString:function(D,B,Z,H){var Q=new a.window.DOMParser,te=Q.parseFromString(D.trim(),"text/xml");a.parseSVGDocument(te.documentElement,function(fe,me,_e,j){B(fe,me,_e,j)},Z,H)}})}(e),t.ElementsParser=function(o,a,l,h,c,f){this.elements=o,this.callback=a,this.options=l,this.reviver=h,this.svgUid=l&&l.svgUid||0,this.parsingOptions=c,this.regexUrl=/^url\(['"]?#([^'"]+)['"]?\)/g,this.doc=f},function(o){o.parse=function(){this.instances=new Array(this.elements.length),this.numElements=this.elements.length,this.createObjects()},o.createObjects=function(){var a=this;this.elements.forEach(function(l,h){l.setAttribute("svgUid",a.svgUid),a.createObject(l,h)})},o.findTag=function(a){return t[t.util.string.capitalize(a.tagName.replace("svg:",""))]},o.createObject=function(a,l){var h=this.findTag(a);if(h&&h.fromElement)try{h.fromElement(a,this.createCallback(l,a),this.options)}catch(c){t.log(c)}else this.checkIfDone()},o.createCallback=function(a,l){var h=this;return function(c){var f;h.resolveGradient(c,l,"fill"),h.resolveGradient(c,l,"stroke"),c instanceof t.Image&&c._originalElement&&(f=c.parsePreserveAspectRatioAttribute(l)),c._removeTransformMatrix(f),h.resolveClipPath(c,l),h.reviver&&h.reviver(l,c),h.instances[a]=c,h.checkIfDone()}},o.extractPropertyDefinition=function(a,l,h){var c=a[l],f=this.regexUrl;if(!!f.test(c)){f.lastIndex=0;var s=f.exec(c)[1];return f.lastIndex=0,t[h][this.svgUid][s]}},o.resolveGradient=function(a,l,h){var c=this.extractPropertyDefinition(a,h,"gradientDefs");if(c){var f=l.getAttribute(h+"-opacity"),s=t.Gradient.fromElement(c,a,f,this.options);a.set(h,s)}},o.createClipPathCallback=function(a,l){return function(h){h._removeTransformMatrix(),h.fillRule=h.clipRule,l.push(h)}},o.resolveClipPath=function(a,l){var h=this.extractPropertyDefinition(a,"clipPath","clipPaths"),c,f,s,d,g,m;if(h){d=[],s=t.util.invertTransform(a.calcTransformMatrix());for(var v=h[0].parentNode,y=l;y.parentNode&&y.getAttribute("clip-path")!==a.clipPath;)y=y.parentNode;y.parentNode.appendChild(v);for(var b=0;b<h.length;b++)c=h[b],f=this.findTag(c),f.fromElement(c,this.createClipPathCallback(a,d),this.options);d.length===1?h=d[0]:h=new t.Group(d),g=t.util.multiplyTransformMatrices(s,h.calcTransformMatrix()),h.clipPath&&this.resolveClipPath(h,y);var m=t.util.qrDecompose(g);h.flipX=!1,h.flipY=!1,h.set("scaleX",m.scaleX),h.set("scaleY",m.scaleY),h.angle=m.angle,h.skewX=m.skewX,h.skewY=0,h.setPositionByOrigin({x:m.translateX,y:m.translateY},"center","center"),a.clipPath=h}else delete a.clipPath},o.checkIfDone=function(){--this.numElements===0&&(this.instances=this.instances.filter(function(a){return a!=null}),this.callback(this.instances,this.elements))}}(t.ElementsParser.prototype),function(o){var a=o.fabric||(o.fabric={});if(a.Point){a.warn("fabric.Point is already defined");return}a.Point=l;function l(h,c){this.x=h,this.y=c}l.prototype={type:"point",constructor:l,add:function(h){return new l(this.x+h.x,this.y+h.y)},addEquals:function(h){return this.x+=h.x,this.y+=h.y,this},scalarAdd:function(h){return new l(this.x+h,this.y+h)},scalarAddEquals:function(h){return this.x+=h,this.y+=h,this},subtract:function(h){return new l(this.x-h.x,this.y-h.y)},subtractEquals:function(h){return this.x-=h.x,this.y-=h.y,this},scalarSubtract:function(h){return new l(this.x-h,this.y-h)},scalarSubtractEquals:function(h){return this.x-=h,this.y-=h,this},multiply:function(h){return new l(this.x*h,this.y*h)},multiplyEquals:function(h){return this.x*=h,this.y*=h,this},divide:function(h){return new l(this.x/h,this.y/h)},divideEquals:function(h){return this.x/=h,this.y/=h,this},eq:function(h){return this.x===h.x&&this.y===h.y},lt:function(h){return this.x<h.x&&this.y<h.y},lte:function(h){return this.x<=h.x&&this.y<=h.y},gt:function(h){return this.x>h.x&&this.y>h.y},gte:function(h){return this.x>=h.x&&this.y>=h.y},lerp:function(h,c){return typeof c>"u"&&(c=.5),c=Math.max(Math.min(1,c),0),new l(this.x+(h.x-this.x)*c,this.y+(h.y-this.y)*c)},distanceFrom:function(h){var c=this.x-h.x,f=this.y-h.y;return Math.sqrt(c*c+f*f)},midPointFrom:function(h){return this.lerp(h)},min:function(h){return new l(Math.min(this.x,h.x),Math.min(this.y,h.y))},max:function(h){return new l(Math.max(this.x,h.x),Math.max(this.y,h.y))},toString:function(){return this.x+","+this.y},setXY:function(h,c){return this.x=h,this.y=c,this},setX:function(h){return this.x=h,this},setY:function(h){return this.y=h,this},setFromPoint:function(h){return this.x=h.x,this.y=h.y,this},swap:function(h){var c=this.x,f=this.y;this.x=h.x,this.y=h.y,h.x=c,h.y=f},clone:function(){return new l(this.x,this.y)}}}(e),function(o){var a=o.fabric||(o.fabric={});if(a.Intersection){a.warn("fabric.Intersection is already defined");return}function l(h){this.status=h,this.points=[]}a.Intersection=l,a.Intersection.prototype={constructor:l,appendPoint:function(h){return this.points.push(h),this},appendPoints:function(h){return this.points=this.points.concat(h),this}},a.Intersection.intersectLineLine=function(h,c,f,s){var d,g=(s.x-f.x)*(h.y-f.y)-(s.y-f.y)*(h.x-f.x),m=(c.x-h.x)*(h.y-f.y)-(c.y-h.y)*(h.x-f.x),v=(s.y-f.y)*(c.x-h.x)-(s.x-f.x)*(c.y-h.y);if(v!==0){var y=g/v,b=m/v;0<=y&&y<=1&&0<=b&&b<=1?(d=new l("Intersection"),d.appendPoint(new a.Point(h.x+y*(c.x-h.x),h.y+y*(c.y-h.y)))):d=new l}else g===0||m===0?d=new l("Coincident"):d=new l("Parallel");return d},a.Intersection.intersectLinePolygon=function(h,c,f){var s=new l,d=f.length,g,m,v,y;for(y=0;y<d;y++)g=f[y],m=f[(y+1)%d],v=l.intersectLineLine(h,c,g,m),s.appendPoints(v.points);return s.points.length>0&&(s.status="Intersection"),s},a.Intersection.intersectPolygonPolygon=function(h,c){var f=new l,s=h.length,d;for(d=0;d<s;d++){var g=h[d],m=h[(d+1)%s],v=l.intersectLinePolygon(g,m,c);f.appendPoints(v.points)}return f.points.length>0&&(f.status="Intersection"),f},a.Intersection.intersectPolygonRectangle=function(h,c,f){var s=c.min(f),d=c.max(f),g=new a.Point(d.x,s.y),m=new a.Point(s.x,d.y),v=l.intersectLinePolygon(s,g,h),y=l.intersectLinePolygon(g,d,h),b=l.intersectLinePolygon(d,m,h),w=l.intersectLinePolygon(m,s,h),S=new l;return S.appendPoints(v.points),S.appendPoints(y.points),S.appendPoints(b.points),S.appendPoints(w.points),S.points.length>0&&(S.status="Intersection"),S}}(e),function(o){var a=o.fabric||(o.fabric={});if(a.Color){a.warn("fabric.Color is already defined.");return}function l(c){c?this._tryParsingColor(c):this.setSource([0,0,0,1])}a.Color=l,a.Color.prototype={_tryParsingColor:function(c){var f;c in l.colorNameMap&&(c=l.colorNameMap[c]),c==="transparent"&&(f=[255,255,255,0]),f||(f=l.sourceFromHex(c)),f||(f=l.sourceFromRgb(c)),f||(f=l.sourceFromHsl(c)),f||(f=[0,0,0,1]),f&&this.setSource(f)},_rgbToHsl:function(c,f,s){c/=255,f/=255,s/=255;var d,g,m,v=a.util.array.max([c,f,s]),y=a.util.array.min([c,f,s]);if(m=(v+y)/2,v===y)d=g=0;else{var b=v-y;switch(g=m>.5?b/(2-v-y):b/(v+y),v){case c:d=(f-s)/b+(f<s?6:0);break;case f:d=(s-c)/b+2;break;case s:d=(c-f)/b+4;break}d/=6}return[Math.round(d*360),Math.round(g*100),Math.round(m*100)]},getSource:function(){return this._source},setSource:function(c){this._source=c},toRgb:function(){var c=this.getSource();return"rgb("+c[0]+","+c[1]+","+c[2]+")"},toRgba:function(){var c=this.getSource();return"rgba("+c[0]+","+c[1]+","+c[2]+","+c[3]+")"},toHsl:function(){var c=this.getSource(),f=this._rgbToHsl(c[0],c[1],c[2]);return"hsl("+f[0]+","+f[1]+"%,"+f[2]+"%)"},toHsla:function(){var c=this.getSource(),f=this._rgbToHsl(c[0],c[1],c[2]);return"hsla("+f[0]+","+f[1]+"%,"+f[2]+"%,"+c[3]+")"},toHex:function(){var c=this.getSource(),f,s,d;return f=c[0].toString(16),f=f.length===1?"0"+f:f,s=c[1].toString(16),s=s.length===1?"0"+s:s,d=c[2].toString(16),d=d.length===1?"0"+d:d,f.toUpperCase()+s.toUpperCase()+d.toUpperCase()},toHexa:function(){var c=this.getSource(),f;return f=Math.round(c[3]*255),f=f.toString(16),f=f.length===1?"0"+f:f,this.toHex()+f.toUpperCase()},getAlpha:function(){return this.getSource()[3]},setAlpha:function(c){var f=this.getSource();return f[3]=c,this.setSource(f),this},toGrayscale:function(){var c=this.getSource(),f=parseInt((c[0]*.3+c[1]*.59+c[2]*.11).toFixed(0),10),s=c[3];return this.setSource([f,f,f,s]),this},toBlackWhite:function(c){var f=this.getSource(),s=(f[0]*.3+f[1]*.59+f[2]*.11).toFixed(0),d=f[3];return c=c||127,s=Number(s)<Number(c)?0:255,this.setSource([s,s,s,d]),this},overlayWith:function(c){c instanceof l||(c=new l(c));var f=[],s=this.getAlpha(),d=.5,g=this.getSource(),m=c.getSource(),v;for(v=0;v<3;v++)f.push(Math.round(g[v]*(1-d)+m[v]*d));return f[3]=s,this.setSource(f),this}},a.Color.reRGBa=/^rgba?\(\s*(\d{1,3}(?:\.\d+)?\%?)\s*,\s*(\d{1,3}(?:\.\d+)?\%?)\s*,\s*(\d{1,3}(?:\.\d+)?\%?)\s*(?:\s*,\s*((?:\d*\.?\d+)?)\s*)?\)$/i,a.Color.reHSLa=/^hsla?\(\s*(\d{1,3})\s*,\s*(\d{1,3}\%)\s*,\s*(\d{1,3}\%)\s*(?:\s*,\s*(\d+(?:\.\d+)?)\s*)?\)$/i,a.Color.reHex=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,a.Color.colorNameMap={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#00FFFF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blue:"#0000FF",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",darkgreen:"#006400",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#FF00FF",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",lightgreen:"#90EE90",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#FF0000",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"};function h(c,f,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?c+(f-c)*6*s:s<1/2?f:s<2/3?c+(f-c)*(2/3-s)*6:c}a.Color.fromRgb=function(c){return l.fromSource(l.sourceFromRgb(c))},a.Color.sourceFromRgb=function(c){var f=c.match(l.reRGBa);if(f){var s=parseInt(f[1],10)/(/%$/.test(f[1])?100:1)*(/%$/.test(f[1])?255:1),d=parseInt(f[2],10)/(/%$/.test(f[2])?100:1)*(/%$/.test(f[2])?255:1),g=parseInt(f[3],10)/(/%$/.test(f[3])?100:1)*(/%$/.test(f[3])?255:1);return[parseInt(s,10),parseInt(d,10),parseInt(g,10),f[4]?parseFloat(f[4]):1]}},a.Color.fromRgba=l.fromRgb,a.Color.fromHsl=function(c){return l.fromSource(l.sourceFromHsl(c))},a.Color.sourceFromHsl=function(c){var f=c.match(l.reHSLa);if(!!f){var s=(parseFloat(f[1])%360+360)%360/360,d=parseFloat(f[2])/(/%$/.test(f[2])?100:1),g=parseFloat(f[3])/(/%$/.test(f[3])?100:1),m,v,y;if(d===0)m=v=y=g;else{var b=g<=.5?g*(d+1):g+d-g*d,w=g*2-b;m=h(w,b,s+1/3),v=h(w,b,s),y=h(w,b,s-1/3)}return[Math.round(m*255),Math.round(v*255),Math.round(y*255),f[4]?parseFloat(f[4]):1]}},a.Color.fromHsla=l.fromHsl,a.Color.fromHex=function(c){return l.fromSource(l.sourceFromHex(c))},a.Color.sourceFromHex=function(c){if(c.match(l.reHex)){var f=c.slice(c.indexOf("#")+1),s=f.length===3||f.length===4,d=f.length===8||f.length===4,g=s?f.charAt(0)+f.charAt(0):f.substring(0,2),m=s?f.charAt(1)+f.charAt(1):f.substring(2,4),v=s?f.charAt(2)+f.charAt(2):f.substring(4,6),y=d?s?f.charAt(3)+f.charAt(3):f.substring(6,8):"FF";return[parseInt(g,16),parseInt(m,16),parseInt(v,16),parseFloat((parseInt(y,16)/255).toFixed(2))]}},a.Color.fromSource=function(c){var f=new l;return f.setSource(c),f}}(e),function(o){var a=o.fabric||(o.fabric={}),l=["e","se","s","sw","w","nw","n","ne","e"],h=["ns","nesw","ew","nwse"],c={},f="left",s="top",d="right",g="bottom",m="center",v={top:g,bottom:s,left:d,right:f,center:m},y=a.util.radiansToDegrees,b=Math.sign||function(j){return(j>0)-(j<0)||+j};function w(j,x){var U=j.angle+y(Math.atan2(x.y,x.x))+360;return Math.round(U%360/45)}function S(j,x){var U=x.transform.target,K=U.canvas,L=a.util.object.clone(x);L.target=U,K&&K.fire("object:"+j,L),U.fire(j,x)}function C(j,x){var U=x.canvas,K=U.uniScaleKey,L=j[K];return U.uniformScaling&&!L||!U.uniformScaling&&L}function T(j){return j.originX===m&&j.originY===m}function k(j,x,U){var K=j.lockScalingX,L=j.lockScalingY;return!!(K&&L||!x&&(K||L)&&U||K&&x==="x"||L&&x==="y")}function A(j,x,U){var K="not-allowed",L=C(j,U),F="";if(x.x!==0&&x.y===0?F="x":x.x===0&&x.y!==0&&(F="y"),k(U,F,L))return K;var X=w(U,x);return l[X]+"-resize"}function P(j,x,U){var K="not-allowed";if(x.x!==0&&U.lockSkewingY||x.y!==0&&U.lockSkewingX)return K;var L=w(U,x)%4;return h[L]+"-resize"}function z(j,x,U){return j[U.canvas.altActionKey]?c.skewCursorStyleHandler(j,x,U):c.scaleCursorStyleHandler(j,x,U)}function I(j,x,U){var K=j[U.canvas.altActionKey];if(x.x===0)return K?"skewX":"scaleY";if(x.y===0)return K?"skewY":"scaleX"}function $(j,x,U){return U.lockRotation?"not-allowed":x.cursorStyle}function O(j,x,U,K){return{e:j,transform:x,pointer:{x:U,y:K}}}function Y(j){return function(x,U,K,L){var F=U.target,X=F.getCenterPoint(),de=F.translateToOriginPoint(X,U.originX,U.originY),le=j(x,U,K,L);return F.setPositionByOrigin(de,U.originX,U.originY),le}}function re(j,x){return function(U,K,L,F){var X=x(U,K,L,F);return X&&S(j,O(U,K,L,F)),X}}function q(j,x,U,K,L){var F=j.target,X=F.controls[j.corner],de=F.canvas.getZoom(),le=F.padding/de,W=F.toLocalPoint(new a.Point(K,L),x,U);return W.x>=le&&(W.x-=le),W.x<=-le&&(W.x+=le),W.y>=le&&(W.y-=le),W.y<=le&&(W.y+=le),W.x-=X.offsetX,W.y-=X.offsetY,W}function J(j){return j.flipX!==j.flipY}function E(j,x,U,K,L){if(j[x]!==0){var F=j._getTransformedDimensions()[K],X=L/F*j[U];j.set(U,X)}}function V(j,x,U,K){var L=x.target,F=L._getTransformedDimensions(0,L.skewY),X=q(x,x.originX,x.originY,U,K),de=Math.abs(X.x*2)-F.x,le=L.skewX,W;de<2?W=0:(W=y(Math.atan2(de/L.scaleX,F.y/L.scaleY)),x.originX===f&&x.originY===g&&(W=-W),x.originX===d&&x.originY===s&&(W=-W),J(L)&&(W=-W));var pe=le!==W;if(pe){var ie=L._getTransformedDimensions().y;L.set("skewX",W),E(L,"skewY","scaleY","y",ie)}return pe}function M(j,x,U,K){var L=x.target,F=L._getTransformedDimensions(L.skewX,0),X=q(x,x.originX,x.originY,U,K),de=Math.abs(X.y*2)-F.y,le=L.skewY,W;de<2?W=0:(W=y(Math.atan2(de/L.scaleY,F.x/L.scaleX)),x.originX===f&&x.originY===g&&(W=-W),x.originX===d&&x.originY===s&&(W=-W),J(L)&&(W=-W));var pe=le!==W;if(pe){var ie=L._getTransformedDimensions().x;L.set("skewY",W),E(L,"skewX","scaleX","x",ie)}return pe}function R(j,x,U,K){var L=x.target,F=L.skewX,X,de=x.originY;if(L.lockSkewingX)return!1;if(F===0){var le=q(x,m,m,U,K);le.x>0?X=f:X=d}else F>0&&(X=de===s?f:d),F<0&&(X=de===s?d:f),J(L)&&(X=X===f?d:f);x.originX=X;var W=re("skewing",Y(V));return W(j,x,U,K)}function G(j,x,U,K){var L=x.target,F=L.skewY,X,de=x.originX;if(L.lockSkewingY)return!1;if(F===0){var le=q(x,m,m,U,K);le.y>0?X=s:X=g}else F>0&&(X=de===f?s:g),F<0&&(X=de===f?g:s),J(L)&&(X=X===s?g:s);x.originY=X;var W=re("skewing",Y(M));return W(j,x,U,K)}function D(j,x,U,K){var L=x,F=L.target,X=F.translateToOriginPoint(F.getCenterPoint(),L.originX,L.originY);if(F.lockRotation)return!1;var de=Math.atan2(L.ey-X.y,L.ex-X.x),le=Math.atan2(K-X.y,U-X.x),W=y(le-de+L.theta),pe=!0;if(F.snapAngle>0){var ie=F.snapAngle,he=F.snapThreshold||ie,we=Math.ceil(W/ie)*ie,Te=Math.floor(W/ie)*ie;Math.abs(W-Te)<he?W=Te:Math.abs(W-we)<he&&(W=we)}return W<0&&(W=360+W),W%=360,pe=F.angle!==W,F.angle=W,pe}function B(j,x,U,K,L){L=L||{};var F=x.target,X=F.lockScalingX,de=F.lockScalingY,le=L.by,W,pe,ie,he,we=C(j,F),Te=k(F,le,we),Ae,Le,ye=x.gestureScale;if(Te)return!1;if(ye)pe=x.scaleX*ye,ie=x.scaleY*ye;else{if(W=q(x,x.originX,x.originY,U,K),Ae=le!=="y"?b(W.x):1,Le=le!=="x"?b(W.y):1,x.signX||(x.signX=Ae),x.signY||(x.signY=Le),F.lockScalingFlip&&(x.signX!==Ae||x.signY!==Le))return!1;if(he=F._getTransformedDimensions(),we&&!le){var Ce=Math.abs(W.x)+Math.abs(W.y),Ie=x.original,Me=Math.abs(he.x*Ie.scaleX/F.scaleX)+Math.abs(he.y*Ie.scaleY/F.scaleY),mt=Ce/Me;pe=Ie.scaleX*mt,ie=Ie.scaleY*mt}else pe=Math.abs(W.x*F.scaleX/he.x),ie=Math.abs(W.y*F.scaleY/he.y);T(x)&&(pe*=2,ie*=2),x.signX!==Ae&&le!=="y"&&(x.originX=v[x.originX],pe*=-1,x.signX=Ae),x.signY!==Le&&le!=="x"&&(x.originY=v[x.originY],ie*=-1,x.signY=Le)}var qt=F.scaleX,tt=F.scaleY;return le?(le==="x"&&F.set("scaleX",pe),le==="y"&&F.set("scaleY",ie)):(!X&&F.set("scaleX",pe),!de&&F.set("scaleY",ie)),qt!==F.scaleX||tt!==F.scaleY}function Z(j,x,U,K){return B(j,x,U,K)}function H(j,x,U,K){return B(j,x,U,K,{by:"x"})}function Q(j,x,U,K){return B(j,x,U,K,{by:"y"})}function te(j,x,U,K){return j[x.target.canvas.altActionKey]?c.skewHandlerX(j,x,U,K):c.scalingY(j,x,U,K)}function fe(j,x,U,K){return j[x.target.canvas.altActionKey]?c.skewHandlerY(j,x,U,K):c.scalingX(j,x,U,K)}function me(j,x,U,K){var L=x.target,F=q(x,x.originX,x.originY,U,K),X=L.strokeWidth/(L.strokeUniform?L.scaleX:1),de=T(x)?2:1,le=L.width,W=Math.abs(F.x*de/L.scaleX)-X;return L.set("width",Math.max(W,0)),le!==W}function _e(j,x,U,K){var L=x.target,F=U-x.offsetX,X=K-x.offsetY,de=!L.get("lockMovementX")&&L.left!==F,le=!L.get("lockMovementY")&&L.top!==X;return de&&L.set("left",F),le&&L.set("top",X),(de||le)&&S("moving",O(j,x,U,K)),de||le}c.scaleCursorStyleHandler=A,c.skewCursorStyleHandler=P,c.scaleSkewCursorStyleHandler=z,c.rotationWithSnapping=re("rotating",Y(D)),c.scalingEqually=re("scaling",Y(Z)),c.scalingX=re("scaling",Y(H)),c.scalingY=re("scaling",Y(Q)),c.scalingYOrSkewingX=te,c.scalingXOrSkewingY=fe,c.changeWidth=re("resizing",Y(me)),c.skewHandlerX=R,c.skewHandlerY=G,c.dragHandler=_e,c.scaleOrSkewActionName=I,c.rotationStyleHandler=$,c.fireEvent=S,c.wrapWithFixedAnchor=Y,c.wrapWithFireEvent=re,c.getLocalPoint=q,a.controlsUtils=c}(e),function(o){var a=o.fabric||(o.fabric={}),l=a.util.degreesToRadians,h=a.controlsUtils;function c(s,d,g,m,v){m=m||{};var y=this.sizeX||m.cornerSize||v.cornerSize,b=this.sizeY||m.cornerSize||v.cornerSize,w=typeof m.transparentCorners<"u"?m.transparentCorners:v.transparentCorners,S=w?"stroke":"fill",C=!w&&(m.cornerStrokeColor||v.cornerStrokeColor),T=d,k=g,A;s.save(),s.fillStyle=m.cornerColor||v.cornerColor,s.strokeStyle=m.cornerStrokeColor||v.cornerStrokeColor,y>b?(A=y,s.scale(1,b/y),k=g*y/b):b>y?(A=b,s.scale(y/b,1),T=d*b/y):A=y,s.lineWidth=1,s.beginPath(),s.arc(T,k,A/2,0,2*Math.PI,!1),s[S](),C&&s.stroke(),s.restore()}function f(s,d,g,m,v){m=m||{};var y=this.sizeX||m.cornerSize||v.cornerSize,b=this.sizeY||m.cornerSize||v.cornerSize,w=typeof m.transparentCorners<"u"?m.transparentCorners:v.transparentCorners,S=w?"stroke":"fill",C=!w&&(m.cornerStrokeColor||v.cornerStrokeColor),T=y/2,k=b/2;s.save(),s.fillStyle=m.cornerColor||v.cornerColor,s.strokeStyle=m.cornerStrokeColor||v.cornerStrokeColor,s.lineWidth=1,s.translate(d,g),s.rotate(l(v.angle)),s[S+"Rect"](-T,-k,y,b),C&&s.strokeRect(-T,-k,y,b),s.restore()}h.renderCircleControl=c,h.renderSquareControl=f}(e),function(o){var a=o.fabric||(o.fabric={});function l(h){for(var c in h)this[c]=h[c]}a.Control=l,a.Control.prototype={visible:!0,actionName:"scale",angle:0,x:0,y:0,offsetX:0,offsetY:0,sizeX:null,sizeY:null,touchSizeX:null,touchSizeY:null,cursorStyle:"crosshair",withConnection:!1,actionHandler:function(){},mouseDownHandler:function(){},mouseUpHandler:function(){},getActionHandler:function(){return this.actionHandler},getMouseDownHandler:function(){return this.mouseDownHandler},getMouseUpHandler:function(){return this.mouseUpHandler},cursorStyleHandler:function(h,c){return c.cursorStyle},getActionName:function(h,c){return c.actionName},getVisibility:function(h,c){var f=h._controlsVisibility;return f&&typeof f[c]<"u"?f[c]:this.visible},setVisibility:function(h){this.visible=h},positionHandler:function(h,c){var f=a.util.transformPoint({x:this.x*h.x+this.offsetX,y:this.y*h.y+this.offsetY},c);return f},calcCornerCoords:function(h,c,f,s,d){var g,m,v,y,b=d?this.touchSizeX:this.sizeX,w=d?this.touchSizeY:this.sizeY;if(b&&w&&b!==w){var S=Math.atan2(w,b),C=Math.sqrt(b*b+w*w)/2,T=S-a.util.degreesToRadians(h),k=Math.PI/2-S-a.util.degreesToRadians(h);g=C*a.util.cos(T),m=C*a.util.sin(T),v=C*a.util.cos(k),y=C*a.util.sin(k)}else{var A=b&&w?b:c;C=A*.7071067812;var T=a.util.degreesToRadians(45-h);g=v=C*a.util.cos(T),m=y=C*a.util.sin(T)}return{tl:{x:f-y,y:s-v},tr:{x:f+g,y:s-m},bl:{x:f-g,y:s+m},br:{x:f+y,y:s+v}}},render:function(h,c,f,s,d){switch(s=s||{},s.cornerStyle||d.cornerStyle){case"circle":a.controlsUtils.renderCircleControl.call(this,h,c,f,s,d);break;default:a.controlsUtils.renderSquareControl.call(this,h,c,f,s,d)}}}}(e),function(){function o(f,s){var d=f.getAttribute("style"),g=f.getAttribute("offset")||0,m,v,y,b;if(g=parseFloat(g)/(/%$/.test(g)?100:1),g=g<0?0:g>1?1:g,d){var w=d.split(/\s*;\s*/);for(w[w.length-1]===""&&w.pop(),b=w.length;b--;){var S=w[b].split(/\s*:\s*/),C=S[0].trim(),T=S[1].trim();C==="stop-color"?m=T:C==="stop-opacity"&&(y=T)}}return m||(m=f.getAttribute("stop-color")||"rgb(0,0,0)"),y||(y=f.getAttribute("stop-opacity")),m=new t.Color(m),v=m.getAlpha(),y=isNaN(parseFloat(y))?1:parseFloat(y),y*=v*s,{offset:g,color:m.toRgb(),opacity:y}}function a(f){return{x1:f.getAttribute("x1")||0,y1:f.getAttribute("y1")||0,x2:f.getAttribute("x2")||"100%",y2:f.getAttribute("y2")||0}}function l(f){return{x1:f.getAttribute("fx")||f.getAttribute("cx")||"50%",y1:f.getAttribute("fy")||f.getAttribute("cy")||"50%",r1:0,x2:f.getAttribute("cx")||"50%",y2:f.getAttribute("cy")||"50%",r2:f.getAttribute("r")||"50%"}}var h=t.util.object.clone;t.Gradient=t.util.createClass({offsetX:0,offsetY:0,gradientTransform:null,gradientUnits:"pixels",type:"linear",initialize:function(f){f||(f={}),f.coords||(f.coords={});var s,d=this;Object.keys(f).forEach(function(g){d[g]=f[g]}),this.id?this.id+="_"+t.Object.__uid++:this.id=t.Object.__uid++,s={x1:f.coords.x1||0,y1:f.coords.y1||0,x2:f.coords.x2||0,y2:f.coords.y2||0},this.type==="radial"&&(s.r1=f.coords.r1||0,s.r2=f.coords.r2||0),this.coords=s,this.colorStops=f.colorStops.slice()},addColorStop:function(f){for(var s in f){var d=new t.Color(f[s]);this.colorStops.push({offset:parseFloat(s),color:d.toRgb(),opacity:d.getAlpha()})}return this},toObject:function(f){var s={type:this.type,coords:this.coords,colorStops:this.colorStops,offsetX:this.offsetX,offsetY:this.offsetY,gradientUnits:this.gradientUnits,gradientTransform:this.gradientTransform?this.gradientTransform.concat():this.gradientTransform};return t.util.populateWithProperties(this,s,f),s},toSVG:function(f,v){var d=h(this.coords,!0),g,m,v=v||{},y,b,w=h(this.colorStops,!0),S=d.r1>d.r2,C=this.gradientTransform?this.gradientTransform.concat():t.iMatrix.concat(),T=-this.offsetX,k=-this.offsetY,A=!!v.additionalTransform,P=this.gradientUnits==="pixels"?"userSpaceOnUse":"objectBoundingBox";if(w.sort(function(Y,re){return Y.offset-re.offset}),P==="objectBoundingBox"?(T/=f.width,k/=f.height):(T+=f.width/2,k+=f.height/2),f.type==="path"&&this.gradientUnits!=="percentage"&&(T-=f.pathOffset.x,k-=f.pathOffset.y),C[4]-=T,C[5]-=k,b='id="SVGID_'+this.id+'" gradientUnits="'+P+'"',b+=' gradientTransform="'+(A?v.additionalTransform+" ":"")+t.util.matrixToSVG(C)+'" ',this.type==="linear"?y=["<linearGradient ",b,' x1="',d.x1,'" y1="',d.y1,'" x2="',d.x2,'" y2="',d.y2,`">
|
|
`]:this.type==="radial"&&(y=["<radialGradient ",b,' cx="',S?d.x1:d.x2,'" cy="',S?d.y1:d.y2,'" r="',S?d.r1:d.r2,'" fx="',S?d.x2:d.x1,'" fy="',S?d.y2:d.y1,`">
|
|
`]),this.type==="radial"){if(S)for(w=w.concat(),w.reverse(),g=0,m=w.length;g<m;g++)w[g].offset=1-w[g].offset;var z=Math.min(d.r1,d.r2);if(z>0){var I=Math.max(d.r1,d.r2),$=z/I;for(g=0,m=w.length;g<m;g++)w[g].offset+=$*(1-w[g].offset)}}for(g=0,m=w.length;g<m;g++){var O=w[g];y.push("<stop ",'offset="',O.offset*100+"%",'" style="stop-color:',O.color,typeof O.opacity<"u"?";stop-opacity: "+O.opacity:";",`"/>
|
|
`)}return y.push(this.type==="linear"?`</linearGradient>
|
|
`:`</radialGradient>
|
|
`),y.join("")},toLive:function(f){var s,d=t.util.object.clone(this.coords),g,m;if(!!this.type){for(this.type==="linear"?s=f.createLinearGradient(d.x1,d.y1,d.x2,d.y2):this.type==="radial"&&(s=f.createRadialGradient(d.x1,d.y1,d.r1,d.x2,d.y2,d.r2)),g=0,m=this.colorStops.length;g<m;g++){var v=this.colorStops[g].color,y=this.colorStops[g].opacity,b=this.colorStops[g].offset;typeof y<"u"&&(v=new t.Color(v).setAlpha(y).toRgba()),s.addColorStop(b,v)}return s}}}),t.util.object.extend(t.Gradient,{fromElement:function(f,s,d,g){var m=parseFloat(d)/(/%$/.test(d)?100:1);m=m<0?0:m>1?1:m,isNaN(m)&&(m=1);var v=f.getElementsByTagName("stop"),y,b=f.getAttribute("gradientUnits")==="userSpaceOnUse"?"pixels":"percentage",w=f.getAttribute("gradientTransform")||"",S=[],C,T,k=0,A=0,P;for(f.nodeName==="linearGradient"||f.nodeName==="LINEARGRADIENT"?(y="linear",C=a(f)):(y="radial",C=l(f)),T=v.length;T--;)S.push(o(v[T],m));P=t.parseTransformAttribute(w),c(s,C,g,b),b==="pixels"&&(k=-s.left,A=-s.top);var z=new t.Gradient({id:f.getAttribute("id"),type:y,coords:C,colorStops:S,gradientUnits:b,gradientTransform:P,offsetX:k,offsetY:A});return z}});function c(f,s,d,g){var m,v;Object.keys(s).forEach(function(y){m=s[y],m==="Infinity"?v=1:m==="-Infinity"?v=0:(v=parseFloat(s[y],10),typeof m=="string"&&/^(\d+\.\d+)%|(\d+)%$/.test(m)&&(v*=.01,g==="pixels"&&((y==="x1"||y==="x2"||y==="r2")&&(v*=d.viewBoxWidth||d.width),(y==="y1"||y==="y2")&&(v*=d.viewBoxHeight||d.height)))),s[y]=v})}}(),function(){var o=t.util.toFixed;t.Pattern=t.util.createClass({repeat:"repeat",offsetX:0,offsetY:0,crossOrigin:"",patternTransform:null,initialize:function(a,l){if(a||(a={}),this.id=t.Object.__uid++,this.setOptions(a),!a.source||a.source&&typeof a.source!="string"){l&&l(this);return}else{var h=this;this.source=t.util.createImage(),t.util.loadImage(a.source,function(c,f){h.source=c,l&&l(h,f)},null,this.crossOrigin)}},toObject:function(a){var l=t.Object.NUM_FRACTION_DIGITS,h,c;return typeof this.source.src=="string"?h=this.source.src:typeof this.source=="object"&&this.source.toDataURL&&(h=this.source.toDataURL()),c={type:"pattern",source:h,repeat:this.repeat,crossOrigin:this.crossOrigin,offsetX:o(this.offsetX,l),offsetY:o(this.offsetY,l),patternTransform:this.patternTransform?this.patternTransform.concat():null},t.util.populateWithProperties(this,c,a),c},toSVG:function(a){var l=typeof this.source=="function"?this.source():this.source,h=l.width/a.width,c=l.height/a.height,f=this.offsetX/a.width,s=this.offsetY/a.height,d="";return(this.repeat==="repeat-x"||this.repeat==="no-repeat")&&(c=1,s&&(c+=Math.abs(s))),(this.repeat==="repeat-y"||this.repeat==="no-repeat")&&(h=1,f&&(h+=Math.abs(f))),l.src?d=l.src:l.toDataURL&&(d=l.toDataURL()),'<pattern id="SVGID_'+this.id+'" x="'+f+'" y="'+s+'" width="'+h+'" height="'+c+`">
|
|
<image x="0" y="0" width="`+l.width+'" height="'+l.height+'" xlink:href="'+d+`"></image>
|
|
</pattern>
|
|
`},setOptions:function(a){for(var l in a)this[l]=a[l]},toLive:function(a){var l=this.source;return!l||typeof l.src<"u"&&(!l.complete||l.naturalWidth===0||l.naturalHeight===0)?"":a.createPattern(l,this.repeat)}})}(),function(o){var a=o.fabric||(o.fabric={}),l=a.util.toFixed;if(a.Shadow){a.warn("fabric.Shadow is already defined.");return}a.Shadow=a.util.createClass({color:"rgb(0,0,0)",blur:0,offsetX:0,offsetY:0,affectStroke:!1,includeDefaultValues:!0,nonScaling:!1,initialize:function(h){typeof h=="string"&&(h=this._parseShadow(h));for(var c in h)this[c]=h[c];this.id=a.Object.__uid++},_parseShadow:function(h){var c=h.trim(),f=a.Shadow.reOffsetsAndBlur.exec(c)||[],s=c.replace(a.Shadow.reOffsetsAndBlur,"")||"rgb(0,0,0)";return{color:s.trim(),offsetX:parseFloat(f[1],10)||0,offsetY:parseFloat(f[2],10)||0,blur:parseFloat(f[3],10)||0}},toString:function(){return[this.offsetX,this.offsetY,this.blur,this.color].join("px ")},toSVG:function(h){var c=40,f=40,s=a.Object.NUM_FRACTION_DIGITS,d=a.util.rotateVector({x:this.offsetX,y:this.offsetY},a.util.degreesToRadians(-h.angle)),g=20,m=new a.Color(this.color);return h.width&&h.height&&(c=l((Math.abs(d.x)+this.blur)/h.width,s)*100+g,f=l((Math.abs(d.y)+this.blur)/h.height,s)*100+g),h.flipX&&(d.x*=-1),h.flipY&&(d.y*=-1),'<filter id="SVGID_'+this.id+'" y="-'+f+'%" height="'+(100+2*f)+'%" x="-'+c+'%" width="'+(100+2*c)+`%" >
|
|
<feGaussianBlur in="SourceAlpha" stdDeviation="`+l(this.blur?this.blur/2:0,s)+`"></feGaussianBlur>
|
|
<feOffset dx="`+l(d.x,s)+'" dy="'+l(d.y,s)+`" result="oBlur" ></feOffset>
|
|
<feFlood flood-color="`+m.toRgb()+'" flood-opacity="'+m.getAlpha()+`"/>
|
|
<feComposite in2="oBlur" operator="in" />
|
|
<feMerge>
|
|
<feMergeNode></feMergeNode>
|
|
<feMergeNode in="SourceGraphic"></feMergeNode>
|
|
</feMerge>
|
|
</filter>
|
|
`},toObject:function(){if(this.includeDefaultValues)return{color:this.color,blur:this.blur,offsetX:this.offsetX,offsetY:this.offsetY,affectStroke:this.affectStroke,nonScaling:this.nonScaling};var h={},c=a.Shadow.prototype;return["color","blur","offsetX","offsetY","affectStroke","nonScaling"].forEach(function(f){this[f]!==c[f]&&(h[f]=this[f])},this),h}}),a.Shadow.reOffsetsAndBlur=/(?:\s|^)(-?\d+(?:\.\d*)?(?:px)?(?:\s?|$))?(-?\d+(?:\.\d*)?(?:px)?(?:\s?|$))?(\d+(?:\.\d*)?(?:px)?)?(?:\s?|$)(?:$|\s)/}(e),function(){if(t.StaticCanvas){t.warn("fabric.StaticCanvas is already defined.");return}var o=t.util.object.extend,a=t.util.getElementOffset,l=t.util.removeFromArray,h=t.util.toFixed,c=t.util.transformPoint,f=t.util.invertTransform,s=t.util.getNodeCanvas,d=t.util.createCanvasElement,g=new Error("Could not initialize `canvas` element");t.StaticCanvas=t.util.createClass(t.CommonMethods,{initialize:function(m,v){v||(v={}),this.renderAndResetBound=this.renderAndReset.bind(this),this.requestRenderAllBound=this.requestRenderAll.bind(this),this._initStatic(m,v)},backgroundColor:"",backgroundImage:null,overlayColor:"",overlayImage:null,includeDefaultValues:!0,stateful:!1,renderOnAddRemove:!0,controlsAboveOverlay:!1,allowTouchScrolling:!1,imageSmoothingEnabled:!0,viewportTransform:t.iMatrix.concat(),backgroundVpt:!0,overlayVpt:!0,enableRetinaScaling:!0,vptCoords:{},skipOffscreen:!0,clipPath:void 0,_initStatic:function(m,v){var y=this.requestRenderAllBound;this._objects=[],this._createLowerCanvas(m),this._initOptions(v),this.interactive||this._initRetinaScaling(),v.overlayImage&&this.setOverlayImage(v.overlayImage,y),v.backgroundImage&&this.setBackgroundImage(v.backgroundImage,y),v.backgroundColor&&this.setBackgroundColor(v.backgroundColor,y),v.overlayColor&&this.setOverlayColor(v.overlayColor,y),this.calcOffset()},_isRetinaScaling:function(){return t.devicePixelRatio>1&&this.enableRetinaScaling},getRetinaScaling:function(){return this._isRetinaScaling()?Math.max(1,t.devicePixelRatio):1},_initRetinaScaling:function(){if(!!this._isRetinaScaling()){var m=t.devicePixelRatio;this.__initRetinaScaling(m,this.lowerCanvasEl,this.contextContainer),this.upperCanvasEl&&this.__initRetinaScaling(m,this.upperCanvasEl,this.contextTop)}},__initRetinaScaling:function(m,v,y){v.setAttribute("width",this.width*m),v.setAttribute("height",this.height*m),y.scale(m,m)},calcOffset:function(){return this._offset=a(this.lowerCanvasEl),this},setOverlayImage:function(m,v,y){return this.__setBgOverlayImage("overlayImage",m,v,y)},setBackgroundImage:function(m,v,y){return this.__setBgOverlayImage("backgroundImage",m,v,y)},setOverlayColor:function(m,v){return this.__setBgOverlayColor("overlayColor",m,v)},setBackgroundColor:function(m,v){return this.__setBgOverlayColor("backgroundColor",m,v)},__setBgOverlayImage:function(m,v,y,b){return typeof v=="string"?t.util.loadImage(v,function(w,S){if(w){var C=new t.Image(w,b);this[m]=C,C.canvas=this}y&&y(w,S)},this,b&&b.crossOrigin):(b&&v.setOptions(b),this[m]=v,v&&(v.canvas=this),y&&y(v,!1)),this},__setBgOverlayColor:function(m,v,y){return this[m]=v,this._initGradient(v,m),this._initPattern(v,m,y),this},_createCanvasElement:function(){var m=d();if(!m||(m.style||(m.style={}),typeof m.getContext>"u"))throw g;return m},_initOptions:function(m){var v=this.lowerCanvasEl;this._setOptions(m),this.width=this.width||parseInt(v.width,10)||0,this.height=this.height||parseInt(v.height,10)||0,this.lowerCanvasEl.style&&(v.width=this.width,v.height=this.height,v.style.width=this.width+"px",v.style.height=this.height+"px",this.viewportTransform=this.viewportTransform.slice())},_createLowerCanvas:function(m){m&&m.getContext?this.lowerCanvasEl=m:this.lowerCanvasEl=t.util.getById(m)||this._createCanvasElement(),t.util.addClass(this.lowerCanvasEl,"lower-canvas"),this._originalCanvasStyle=this.lowerCanvasEl.style,this.interactive&&this._applyCanvasStyle(this.lowerCanvasEl),this.contextContainer=this.lowerCanvasEl.getContext("2d")},getWidth:function(){return this.width},getHeight:function(){return this.height},setWidth:function(m,v){return this.setDimensions({width:m},v)},setHeight:function(m,v){return this.setDimensions({height:m},v)},setDimensions:function(m,v){var y;v=v||{};for(var b in m)y=m[b],v.cssOnly||(this._setBackstoreDimension(b,m[b]),y+="px",this.hasLostContext=!0),v.backstoreOnly||this._setCssDimension(b,y);return this._isCurrentlyDrawing&&this.freeDrawingBrush&&this.freeDrawingBrush._setBrushStyles(this.contextTop),this._initRetinaScaling(),this.calcOffset(),v.cssOnly||this.requestRenderAll(),this},_setBackstoreDimension:function(m,v){return this.lowerCanvasEl[m]=v,this.upperCanvasEl&&(this.upperCanvasEl[m]=v),this.cacheCanvasEl&&(this.cacheCanvasEl[m]=v),this[m]=v,this},_setCssDimension:function(m,v){return this.lowerCanvasEl.style[m]=v,this.upperCanvasEl&&(this.upperCanvasEl.style[m]=v),this.wrapperEl&&(this.wrapperEl.style[m]=v),this},getZoom:function(){return this.viewportTransform[0]},setViewportTransform:function(m){var v=this._activeObject,y=this.backgroundImage,b=this.overlayImage,w,S,C;for(this.viewportTransform=m,S=0,C=this._objects.length;S<C;S++)w=this._objects[S],w.group||w.setCoords(!0);return v&&v.setCoords(),y&&y.setCoords(!0),b&&b.setCoords(!0),this.calcViewportBoundaries(),this.renderOnAddRemove&&this.requestRenderAll(),this},zoomToPoint:function(m,v){var y=m,b=this.viewportTransform.slice(0);m=c(m,f(this.viewportTransform)),b[0]=v,b[3]=v;var w=c(m,b);return b[4]+=y.x-w.x,b[5]+=y.y-w.y,this.setViewportTransform(b)},setZoom:function(m){return this.zoomToPoint(new t.Point(0,0),m),this},absolutePan:function(m){var v=this.viewportTransform.slice(0);return v[4]=-m.x,v[5]=-m.y,this.setViewportTransform(v)},relativePan:function(m){return this.absolutePan(new t.Point(-m.x-this.viewportTransform[4],-m.y-this.viewportTransform[5]))},getElement:function(){return this.lowerCanvasEl},_onObjectAdded:function(m){this.stateful&&m.setupState(),m._set("canvas",this),m.setCoords(),this.fire("object:added",{target:m}),m.fire("added")},_onObjectRemoved:function(m){this.fire("object:removed",{target:m}),m.fire("removed"),delete m.canvas},clearContext:function(m){return m.clearRect(0,0,this.width,this.height),this},getContext:function(){return this.contextContainer},clear:function(){return this.remove.apply(this,this.getObjects()),this.backgroundImage=null,this.overlayImage=null,this.backgroundColor="",this.overlayColor="",this._hasITextHandlers&&(this.off("mouse:up",this._mouseUpITextHandler),this._iTextInstances=null,this._hasITextHandlers=!1),this.clearContext(this.contextContainer),this.fire("canvas:cleared"),this.renderOnAddRemove&&this.requestRenderAll(),this},renderAll:function(){var m=this.contextContainer;return this.renderCanvas(m,this._objects),this},renderAndReset:function(){this.isRendering=0,this.renderAll()},requestRenderAll:function(){return this.isRendering||(this.isRendering=t.util.requestAnimFrame(this.renderAndResetBound)),this},calcViewportBoundaries:function(){var m={},v=this.width,y=this.height,b=f(this.viewportTransform);return m.tl=c({x:0,y:0},b),m.br=c({x:v,y},b),m.tr=new t.Point(m.br.x,m.tl.y),m.bl=new t.Point(m.tl.x,m.br.y),this.vptCoords=m,m},cancelRequestedRender:function(){this.isRendering&&(t.util.cancelAnimFrame(this.isRendering),this.isRendering=0)},renderCanvas:function(m,v){var y=this.viewportTransform,b=this.clipPath;this.cancelRequestedRender(),this.calcViewportBoundaries(),this.clearContext(m),t.util.setImageSmoothing(m,this.imageSmoothingEnabled),this.fire("before:render",{ctx:m}),this._renderBackground(m),m.save(),m.transform(y[0],y[1],y[2],y[3],y[4],y[5]),this._renderObjects(m,v),m.restore(),!this.controlsAboveOverlay&&this.interactive&&this.drawControls(m),b&&(b.canvas=this,b.shouldCache(),b._transformDone=!0,b.renderCache({forClipping:!0}),this.drawClipPathOnCanvas(m)),this._renderOverlay(m),this.controlsAboveOverlay&&this.interactive&&this.drawControls(m),this.fire("after:render",{ctx:m})},drawClipPathOnCanvas:function(m){var v=this.viewportTransform,y=this.clipPath;m.save(),m.transform(v[0],v[1],v[2],v[3],v[4],v[5]),m.globalCompositeOperation="destination-in",y.transform(m),m.scale(1/y.zoomX,1/y.zoomY),m.drawImage(y._cacheCanvas,-y.cacheTranslationX,-y.cacheTranslationY),m.restore()},_renderObjects:function(m,v){var y,b;for(y=0,b=v.length;y<b;++y)v[y]&&v[y].render(m)},_renderBackgroundOrOverlay:function(m,v){var y=this[v+"Color"],b=this[v+"Image"],w=this.viewportTransform,S=this[v+"Vpt"];if(!(!y&&!b)){if(y){m.save(),m.beginPath(),m.moveTo(0,0),m.lineTo(this.width,0),m.lineTo(this.width,this.height),m.lineTo(0,this.height),m.closePath(),m.fillStyle=y.toLive?y.toLive(m,this):y,S&&m.transform(w[0],w[1],w[2],w[3],w[4],w[5]),m.transform(1,0,0,1,y.offsetX||0,y.offsetY||0);var C=y.gradientTransform||y.patternTransform;C&&m.transform(C[0],C[1],C[2],C[3],C[4],C[5]),m.fill(),m.restore()}if(b){m.save();var T=this.skipOffscreen;this.skipOffscreen=S,S&&m.transform(w[0],w[1],w[2],w[3],w[4],w[5]),b.render(m),this.skipOffscreen=T,m.restore()}}},_renderBackground:function(m){this._renderBackgroundOrOverlay(m,"background")},_renderOverlay:function(m){this._renderBackgroundOrOverlay(m,"overlay")},getCenter:function(){return{top:this.height/2,left:this.width/2}},getCenterPoint:function(){return new t.Point(this.width/2,this.height/2)},centerObjectH:function(m){return this._centerObject(m,new t.Point(this.getCenterPoint().x,m.getCenterPoint().y))},centerObjectV:function(m){return this._centerObject(m,new t.Point(m.getCenterPoint().x,this.getCenterPoint().y))},centerObject:function(m){var v=this.getCenterPoint();return this._centerObject(m,v)},viewportCenterObject:function(m){var v=this.getVpCenter();return this._centerObject(m,v)},viewportCenterObjectH:function(m){var v=this.getVpCenter();return this._centerObject(m,new t.Point(v.x,m.getCenterPoint().y)),this},viewportCenterObjectV:function(m){var v=this.getVpCenter();return this._centerObject(m,new t.Point(m.getCenterPoint().x,v.y))},getVpCenter:function(){var m=this.getCenterPoint(),v=f(this.viewportTransform);return c(m,v)},_centerObject:function(m,v){return m.setPositionByOrigin(v,"center","center"),m.setCoords(),this.renderOnAddRemove&&this.requestRenderAll(),this},toDatalessJSON:function(m){return this.toDatalessObject(m)},toObject:function(m){return this._toObjectMethod("toObject",m)},toDatalessObject:function(m){return this._toObjectMethod("toDatalessObject",m)},_toObjectMethod:function(m,v){var y=this.clipPath,b={version:t.version,objects:this._toObjects(m,v)};return y&&!y.excludeFromExport&&(b.clipPath=this._toObject(this.clipPath,m,v)),o(b,this.__serializeBgOverlay(m,v)),t.util.populateWithProperties(this,b,v),b},_toObjects:function(m,v){return this._objects.filter(function(y){return!y.excludeFromExport}).map(function(y){return this._toObject(y,m,v)},this)},_toObject:function(m,v,y){var b;this.includeDefaultValues||(b=m.includeDefaultValues,m.includeDefaultValues=!1);var w=m[v](y);return this.includeDefaultValues||(m.includeDefaultValues=b),w},__serializeBgOverlay:function(m,v){var y={},b=this.backgroundImage,w=this.overlayImage,S=this.backgroundColor,C=this.overlayColor;return S&&S.toObject?S.excludeFromExport||(y.background=S.toObject(v)):S&&(y.background=S),C&&C.toObject?C.excludeFromExport||(y.overlay=C.toObject(v)):C&&(y.overlay=C),b&&!b.excludeFromExport&&(y.backgroundImage=this._toObject(b,m,v)),w&&!w.excludeFromExport&&(y.overlayImage=this._toObject(w,m,v)),y},svgViewportTransformation:!0,toSVG:function(m,v){m||(m={}),m.reviver=v;var y=[];return this._setSVGPreamble(y,m),this._setSVGHeader(y,m),this.clipPath&&y.push('<g clip-path="url(#'+this.clipPath.clipPathId+`)" >
|
|
`),this._setSVGBgOverlayColor(y,"background"),this._setSVGBgOverlayImage(y,"backgroundImage",v),this._setSVGObjects(y,v),this.clipPath&&y.push(`</g>
|
|
`),this._setSVGBgOverlayColor(y,"overlay"),this._setSVGBgOverlayImage(y,"overlayImage",v),y.push("</svg>"),y.join("")},_setSVGPreamble:function(m,v){v.suppressPreamble||m.push('<?xml version="1.0" encoding="',v.encoding||"UTF-8",`" standalone="no" ?>
|
|
`,'<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" ',`"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
`)},_setSVGHeader:function(m,v){var y=v.width||this.width,b=v.height||this.height,w,S='viewBox="0 0 '+this.width+" "+this.height+'" ',C=t.Object.NUM_FRACTION_DIGITS;v.viewBox?S='viewBox="'+v.viewBox.x+" "+v.viewBox.y+" "+v.viewBox.width+" "+v.viewBox.height+'" ':this.svgViewportTransformation&&(w=this.viewportTransform,S='viewBox="'+h(-w[4]/w[0],C)+" "+h(-w[5]/w[3],C)+" "+h(this.width/w[0],C)+" "+h(this.height/w[3],C)+'" '),m.push("<svg ",'xmlns="http://www.w3.org/2000/svg" ','xmlns:xlink="http://www.w3.org/1999/xlink" ','version="1.1" ','width="',y,'" ','height="',b,'" ',S,`xml:space="preserve">
|
|
`,"<desc>Created with Fabric.js ",t.version,`</desc>
|
|
`,`<defs>
|
|
`,this.createSVGFontFacesMarkup(),this.createSVGRefElementsMarkup(),this.createSVGClipPathMarkup(v),`</defs>
|
|
`)},createSVGClipPathMarkup:function(m){var v=this.clipPath;return v?(v.clipPathId="CLIPPATH_"+t.Object.__uid++,'<clipPath id="'+v.clipPathId+`" >
|
|
`+this.clipPath.toClipPathSVG(m.reviver)+`</clipPath>
|
|
`):""},createSVGRefElementsMarkup:function(){var m=this,v=["background","overlay"].map(function(y){var b=m[y+"Color"];if(b&&b.toLive){var w=m[y+"Vpt"],S=m.viewportTransform,C={width:m.width/(w?S[0]:1),height:m.height/(w?S[3]:1)};return b.toSVG(C,{additionalTransform:w?t.util.matrixToSVG(S):""})}});return v.join("")},createSVGFontFacesMarkup:function(){var m="",v={},y,b,w,S,C,T,k,A,P,z=t.fontPaths,I=[];for(this._objects.forEach(function O(Y){I.push(Y),Y._objects&&Y._objects.forEach(O)}),A=0,P=I.length;A<P;A++)if(y=I[A],b=y.fontFamily,!(y.type.indexOf("text")===-1||v[b]||!z[b])&&(v[b]=!0,!!y.styles)){w=y.styles;for(C in w){S=w[C];for(k in S)T=S[k],b=T.fontFamily,!v[b]&&z[b]&&(v[b]=!0)}}for(var $ in v)m+=[` @font-face {
|
|
`," font-family: '",$,`';
|
|
`," src: url('",z[$],`');
|
|
`,` }
|
|
`].join("");return m&&(m=[' <style type="text/css">',`<![CDATA[
|
|
`,m,"]]>",`</style>
|
|
`].join("")),m},_setSVGObjects:function(m,v){var y,b,w,S=this._objects;for(b=0,w=S.length;b<w;b++)y=S[b],!y.excludeFromExport&&this._setSVGObject(m,y,v)},_setSVGObject:function(m,v,y){m.push(v.toSVG(y))},_setSVGBgOverlayImage:function(m,v,y){this[v]&&!this[v].excludeFromExport&&this[v].toSVG&&m.push(this[v].toSVG(y))},_setSVGBgOverlayColor:function(m,v){var y=this[v+"Color"],b=this.viewportTransform,w=this.width,S=this.height;if(!!y)if(y.toLive){var C=y.repeat,T=t.util.invertTransform(b),k=this[v+"Vpt"],A=k?t.util.matrixToSVG(T):"";m.push('<rect transform="'+A+" translate(",w/2,",",S/2,')"',' x="',y.offsetX-w/2,'" y="',y.offsetY-S/2,'" ','width="',C==="repeat-y"||C==="no-repeat"?y.source.width:w,'" height="',C==="repeat-x"||C==="no-repeat"?y.source.height:S,'" fill="url(#SVGID_'+y.id+')"',`></rect>
|
|
`)}else m.push('<rect x="0" y="0" width="100%" height="100%" ','fill="',y,'"',`></rect>
|
|
`)},sendToBack:function(m){if(!m)return this;var v=this._activeObject,y,b,w;if(m===v&&m.type==="activeSelection")for(w=v._objects,y=w.length;y--;)b=w[y],l(this._objects,b),this._objects.unshift(b);else l(this._objects,m),this._objects.unshift(m);return this.renderOnAddRemove&&this.requestRenderAll(),this},bringToFront:function(m){if(!m)return this;var v=this._activeObject,y,b,w;if(m===v&&m.type==="activeSelection")for(w=v._objects,y=0;y<w.length;y++)b=w[y],l(this._objects,b),this._objects.push(b);else l(this._objects,m),this._objects.push(m);return this.renderOnAddRemove&&this.requestRenderAll(),this},sendBackwards:function(m,v){if(!m)return this;var y=this._activeObject,b,w,S,C,T,k=0;if(m===y&&m.type==="activeSelection")for(T=y._objects,b=0;b<T.length;b++)w=T[b],S=this._objects.indexOf(w),S>0+k&&(C=S-1,l(this._objects,w),this._objects.splice(C,0,w)),k++;else S=this._objects.indexOf(m),S!==0&&(C=this._findNewLowerIndex(m,S,v),l(this._objects,m),this._objects.splice(C,0,m));return this.renderOnAddRemove&&this.requestRenderAll(),this},_findNewLowerIndex:function(m,v,y){var b,w;if(y)for(b=v,w=v-1;w>=0;--w){var S=m.intersectsWithObject(this._objects[w])||m.isContainedWithinObject(this._objects[w])||this._objects[w].isContainedWithinObject(m);if(S){b=w;break}}else b=v-1;return b},bringForward:function(m,v){if(!m)return this;var y=this._activeObject,b,w,S,C,T,k=0;if(m===y&&m.type==="activeSelection")for(T=y._objects,b=T.length;b--;)w=T[b],S=this._objects.indexOf(w),S<this._objects.length-1-k&&(C=S+1,l(this._objects,w),this._objects.splice(C,0,w)),k++;else S=this._objects.indexOf(m),S!==this._objects.length-1&&(C=this._findNewUpperIndex(m,S,v),l(this._objects,m),this._objects.splice(C,0,m));return this.renderOnAddRemove&&this.requestRenderAll(),this},_findNewUpperIndex:function(m,v,y){var b,w,S;if(y)for(b=v,w=v+1,S=this._objects.length;w<S;++w){var C=m.intersectsWithObject(this._objects[w])||m.isContainedWithinObject(this._objects[w])||this._objects[w].isContainedWithinObject(m);if(C){b=w;break}}else b=v+1;return b},moveTo:function(m,v){return l(this._objects,m),this._objects.splice(v,0,m),this.renderOnAddRemove&&this.requestRenderAll()},dispose:function(){return this.isRendering&&(t.util.cancelAnimFrame(this.isRendering),this.isRendering=0),this.forEachObject(function(m){m.dispose&&m.dispose()}),this._objects=[],this.backgroundImage&&this.backgroundImage.dispose&&this.backgroundImage.dispose(),this.backgroundImage=null,this.overlayImage&&this.overlayImage.dispose&&this.overlayImage.dispose(),this.overlayImage=null,this._iTextInstances=null,this.contextContainer=null,this.lowerCanvasEl.classList.remove("lower-canvas"),t.util.setStyle(this.lowerCanvasEl,this._originalCanvasStyle),delete this._originalCanvasStyle,this.lowerCanvasEl.setAttribute("width",this.width),this.lowerCanvasEl.setAttribute("height",this.height),t.util.cleanUpJsdomNode(this.lowerCanvasEl),this.lowerCanvasEl=void 0,this},toString:function(){return"#<fabric.Canvas ("+this.complexity()+"): { objects: "+this._objects.length+" }>"}}),o(t.StaticCanvas.prototype,t.Observable),o(t.StaticCanvas.prototype,t.Collection),o(t.StaticCanvas.prototype,t.DataURLExporter),o(t.StaticCanvas,{EMPTY_JSON:'{"objects": [], "background": "white"}',supports:function(m){var v=d();if(!v||!v.getContext)return null;var y=v.getContext("2d");if(!y)return null;switch(m){case"setLineDash":return typeof y.setLineDash<"u";default:return null}}}),t.StaticCanvas.prototype.toJSON=t.StaticCanvas.prototype.toObject,t.isLikelyNode&&(t.StaticCanvas.prototype.createPNGStream=function(){var m=s(this.lowerCanvasEl);return m&&m.createPNGStream()},t.StaticCanvas.prototype.createJPEGStream=function(m){var v=s(this.lowerCanvasEl);return v&&v.createJPEGStream(m)})}(),t.BaseBrush=t.util.createClass({color:"rgb(0, 0, 0)",width:1,shadow:null,strokeLineCap:"round",strokeLineJoin:"round",strokeMiterLimit:10,strokeDashArray:null,limitedToCanvasSize:!1,_setBrushStyles:function(o){o.strokeStyle=this.color,o.lineWidth=this.width,o.lineCap=this.strokeLineCap,o.miterLimit=this.strokeMiterLimit,o.lineJoin=this.strokeLineJoin,o.setLineDash(this.strokeDashArray||[])},_saveAndTransform:function(o){var a=this.canvas.viewportTransform;o.save(),o.transform(a[0],a[1],a[2],a[3],a[4],a[5])},_setShadow:function(){if(!!this.shadow){var o=this.canvas,a=this.shadow,l=o.contextTop,h=o.getZoom();o&&o._isRetinaScaling()&&(h*=t.devicePixelRatio),l.shadowColor=a.color,l.shadowBlur=a.blur*h,l.shadowOffsetX=a.offsetX*h,l.shadowOffsetY=a.offsetY*h}},needsFullRender:function(){var o=new t.Color(this.color);return o.getAlpha()<1||!!this.shadow},_resetShadow:function(){var o=this.canvas.contextTop;o.shadowColor="",o.shadowBlur=o.shadowOffsetX=o.shadowOffsetY=0},_isOutSideCanvas:function(o){return o.x<0||o.x>this.canvas.getWidth()||o.y<0||o.y>this.canvas.getHeight()}}),function(){t.PencilBrush=t.util.createClass(t.BaseBrush,{decimate:.4,drawStraightLine:!1,straightLineKey:"shiftKey",initialize:function(o){this.canvas=o,this._points=[]},needsFullRender:function(){return this.callSuper("needsFullRender")||this._hasStraightLine},_drawSegment:function(o,a,l){var h=a.midPointFrom(l);return o.quadraticCurveTo(a.x,a.y,h.x,h.y),h},onMouseDown:function(o,a){!this.canvas._isMainEvent(a.e)||(this.drawStraightLine=a.e[this.straightLineKey],this._prepareForDrawing(o),this._captureDrawingPath(o),this._render())},onMouseMove:function(o,a){if(!!this.canvas._isMainEvent(a.e)&&(this.drawStraightLine=a.e[this.straightLineKey],!(this.limitedToCanvasSize===!0&&this._isOutSideCanvas(o))&&this._captureDrawingPath(o)&&this._points.length>1))if(this.needsFullRender())this.canvas.clearContext(this.canvas.contextTop),this._render();else{var l=this._points,h=l.length,c=this.canvas.contextTop;this._saveAndTransform(c),this.oldEnd&&(c.beginPath(),c.moveTo(this.oldEnd.x,this.oldEnd.y)),this.oldEnd=this._drawSegment(c,l[h-2],l[h-1],!0),c.stroke(),c.restore()}},onMouseUp:function(o){return this.canvas._isMainEvent(o.e)?(this.drawStraightLine=!1,this.oldEnd=void 0,this._finalizeAndAddPath(),!1):!0},_prepareForDrawing:function(o){var a=new t.Point(o.x,o.y);this._reset(),this._addPoint(a),this.canvas.contextTop.moveTo(a.x,a.y)},_addPoint:function(o){return this._points.length>1&&o.eq(this._points[this._points.length-1])?!1:(this.drawStraightLine&&this._points.length>1&&(this._hasStraightLine=!0,this._points.pop()),this._points.push(o),!0)},_reset:function(){this._points=[],this._setBrushStyles(this.canvas.contextTop),this._setShadow(),this._hasStraightLine=!1},_captureDrawingPath:function(o){var a=new t.Point(o.x,o.y);return this._addPoint(a)},_render:function(o){var a,l,h=this._points[0],c=this._points[1];if(o=o||this.canvas.contextTop,this._saveAndTransform(o),o.beginPath(),this._points.length===2&&h.x===c.x&&h.y===c.y){var f=this.width/1e3;h=new t.Point(h.x,h.y),c=new t.Point(c.x,c.y),h.x-=f,c.x+=f}for(o.moveTo(h.x,h.y),a=1,l=this._points.length;a<l;a++)this._drawSegment(o,h,c),h=this._points[a],c=this._points[a+1];o.lineTo(h.x,h.y),o.stroke(),o.restore()},convertPointsToSVGPath:function(o){var a=this.width/1e3;return t.util.getSmoothPathFromPoints(o,a)},_isEmptySVGPath:function(o){var a=t.util.joinPath(o);return a==="M 0 0 Q 0 0 0 0 L 0 0"},createPath:function(o){var a=new t.Path(o,{fill:null,stroke:this.color,strokeWidth:this.width,strokeLineCap:this.strokeLineCap,strokeMiterLimit:this.strokeMiterLimit,strokeLineJoin:this.strokeLineJoin,strokeDashArray:this.strokeDashArray});return this.shadow&&(this.shadow.affectStroke=!0,a.shadow=new t.Shadow(this.shadow)),a},decimatePoints:function(o,a){if(o.length<=2)return o;var l=this.canvas.getZoom(),h=Math.pow(a/l,2),c,f=o.length-1,s=o[0],d=[s],g;for(c=1;c<f-1;c++)g=Math.pow(s.x-o[c].x,2)+Math.pow(s.y-o[c].y,2),g>=h&&(s=o[c],d.push(s));return d.push(o[f]),d},_finalizeAndAddPath:function(){var o=this.canvas.contextTop;o.closePath(),this.decimate&&(this._points=this.decimatePoints(this._points,this.decimate));var a=this.convertPointsToSVGPath(this._points);if(this._isEmptySVGPath(a)){this.canvas.requestRenderAll();return}var l=this.createPath(a);this.canvas.clearContext(this.canvas.contextTop),this.canvas.fire("before:path:created",{path:l}),this.canvas.add(l),this.canvas.requestRenderAll(),l.setCoords(),this._resetShadow(),this.canvas.fire("path:created",{path:l})}})}(),t.CircleBrush=t.util.createClass(t.BaseBrush,{width:10,initialize:function(o){this.canvas=o,this.points=[]},drawDot:function(o){var a=this.addPoint(o),l=this.canvas.contextTop;this._saveAndTransform(l),this.dot(l,a),l.restore()},dot:function(o,a){o.fillStyle=a.fill,o.beginPath(),o.arc(a.x,a.y,a.radius,0,Math.PI*2,!1),o.closePath(),o.fill()},onMouseDown:function(o){this.points.length=0,this.canvas.clearContext(this.canvas.contextTop),this._setShadow(),this.drawDot(o)},_render:function(){var o=this.canvas.contextTop,a,l,h=this.points;for(this._saveAndTransform(o),a=0,l=h.length;a<l;a++)this.dot(o,h[a]);o.restore()},onMouseMove:function(o){this.limitedToCanvasSize===!0&&this._isOutSideCanvas(o)||(this.needsFullRender()?(this.canvas.clearContext(this.canvas.contextTop),this.addPoint(o),this._render()):this.drawDot(o))},onMouseUp:function(){var o=this.canvas.renderOnAddRemove,a,l;this.canvas.renderOnAddRemove=!1;var h=[];for(a=0,l=this.points.length;a<l;a++){var c=this.points[a],f=new t.Circle({radius:c.radius,left:c.x,top:c.y,originX:"center",originY:"center",fill:c.fill});this.shadow&&(f.shadow=new t.Shadow(this.shadow)),h.push(f)}var s=new t.Group(h);s.canvas=this.canvas,this.canvas.fire("before:path:created",{path:s}),this.canvas.add(s),this.canvas.fire("path:created",{path:s}),this.canvas.clearContext(this.canvas.contextTop),this._resetShadow(),this.canvas.renderOnAddRemove=o,this.canvas.requestRenderAll()},addPoint:function(o){var a=new t.Point(o.x,o.y),l=t.util.getRandomInt(Math.max(0,this.width-20),this.width+20)/2,h=new t.Color(this.color).setAlpha(t.util.getRandomInt(0,100)/100).toRgba();return a.radius=l,a.fill=h,this.points.push(a),a}}),t.SprayBrush=t.util.createClass(t.BaseBrush,{width:10,density:20,dotWidth:1,dotWidthVariance:1,randomOpacity:!1,optimizeOverlapping:!0,initialize:function(o){this.canvas=o,this.sprayChunks=[]},onMouseDown:function(o){this.sprayChunks.length=0,this.canvas.clearContext(this.canvas.contextTop),this._setShadow(),this.addSprayChunk(o),this.render(this.sprayChunkPoints)},onMouseMove:function(o){this.limitedToCanvasSize===!0&&this._isOutSideCanvas(o)||(this.addSprayChunk(o),this.render(this.sprayChunkPoints))},onMouseUp:function(){var o=this.canvas.renderOnAddRemove;this.canvas.renderOnAddRemove=!1;for(var a=[],l=0,h=this.sprayChunks.length;l<h;l++)for(var c=this.sprayChunks[l],f=0,s=c.length;f<s;f++){var d=new t.Rect({width:c[f].width,height:c[f].width,left:c[f].x+1,top:c[f].y+1,originX:"center",originY:"center",fill:this.color});a.push(d)}this.optimizeOverlapping&&(a=this._getOptimizedRects(a));var g=new t.Group(a);this.shadow&&g.set("shadow",new t.Shadow(this.shadow)),this.canvas.fire("before:path:created",{path:g}),this.canvas.add(g),this.canvas.fire("path:created",{path:g}),this.canvas.clearContext(this.canvas.contextTop),this._resetShadow(),this.canvas.renderOnAddRemove=o,this.canvas.requestRenderAll()},_getOptimizedRects:function(o){var a={},l,h,c;for(h=0,c=o.length;h<c;h++)l=o[h].left+""+o[h].top,a[l]||(a[l]=o[h]);var f=[];for(l in a)f.push(a[l]);return f},render:function(o){var a=this.canvas.contextTop,l,h;for(a.fillStyle=this.color,this._saveAndTransform(a),l=0,h=o.length;l<h;l++){var c=o[l];typeof c.opacity<"u"&&(a.globalAlpha=c.opacity),a.fillRect(c.x,c.y,c.width,c.width)}a.restore()},_render:function(){var o=this.canvas.contextTop,a,l;for(o.fillStyle=this.color,this._saveAndTransform(o),a=0,l=this.sprayChunks.length;a<l;a++)this.render(this.sprayChunks[a]);o.restore()},addSprayChunk:function(o){this.sprayChunkPoints=[];var a,l,h,c=this.width/2,f;for(f=0;f<this.density;f++){a=t.util.getRandomInt(o.x-c,o.x+c),l=t.util.getRandomInt(o.y-c,o.y+c),this.dotWidthVariance?h=t.util.getRandomInt(Math.max(1,this.dotWidth-this.dotWidthVariance),this.dotWidth+this.dotWidthVariance):h=this.dotWidth;var s=new t.Point(a,l);s.width=h,this.randomOpacity&&(s.opacity=t.util.getRandomInt(0,100)/100),this.sprayChunkPoints.push(s)}this.sprayChunks.push(this.sprayChunkPoints)}}),t.PatternBrush=t.util.createClass(t.PencilBrush,{getPatternSrc:function(){var o=20,a=5,l=t.util.createCanvasElement(),h=l.getContext("2d");return l.width=l.height=o+a,h.fillStyle=this.color,h.beginPath(),h.arc(o/2,o/2,o/2,0,Math.PI*2,!1),h.closePath(),h.fill(),l},getPatternSrcFunction:function(){return String(this.getPatternSrc).replace("this.color",'"'+this.color+'"')},getPattern:function(o){return o.createPattern(this.source||this.getPatternSrc(),"repeat")},_setBrushStyles:function(o){this.callSuper("_setBrushStyles",o),o.strokeStyle=this.getPattern(o)},createPath:function(o){var a=this.callSuper("createPath",o),l=a._getLeftTopCoords().scalarAdd(a.strokeWidth/2);return a.stroke=new t.Pattern({source:this.source||this.getPatternSrcFunction(),offsetX:-l.x,offsetY:-l.y}),a}}),function(){var o=t.util.getPointer,a=t.util.degreesToRadians,l=t.util.isTouchEvent;t.Canvas=t.util.createClass(t.StaticCanvas,{initialize:function(c,f){f||(f={}),this.renderAndResetBound=this.renderAndReset.bind(this),this.requestRenderAllBound=this.requestRenderAll.bind(this),this._initStatic(c,f),this._initInteractive(),this._createCacheCanvas()},uniformScaling:!0,uniScaleKey:"shiftKey",centeredScaling:!1,centeredRotation:!1,centeredKey:"altKey",altActionKey:"shiftKey",interactive:!0,selection:!0,selectionKey:"shiftKey",altSelectionKey:null,selectionColor:"rgba(100, 100, 255, 0.3)",selectionDashArray:[],selectionBorderColor:"rgba(255, 255, 255, 0.3)",selectionLineWidth:1,selectionFullyContained:!1,hoverCursor:"move",moveCursor:"move",defaultCursor:"default",freeDrawingCursor:"crosshair",notAllowedCursor:"not-allowed",containerClass:"canvas-container",perPixelTargetFind:!1,targetFindTolerance:0,skipTargetFind:!1,isDrawingMode:!1,preserveObjectStacking:!1,snapAngle:0,snapThreshold:null,stopContextMenu:!1,fireRightClick:!1,fireMiddleClick:!1,targets:[],enablePointerEvents:!1,_hoveredTarget:null,_hoveredTargets:[],_initInteractive:function(){this._currentTransform=null,this._groupSelector=null,this._initWrapperElement(),this._createUpperCanvas(),this._initEventListeners(),this._initRetinaScaling(),this.freeDrawingBrush=t.PencilBrush&&new t.PencilBrush(this),this.calcOffset()},_chooseObjectsToRender:function(){var c=this.getActiveObjects(),f,s,d;if(c.length>0&&!this.preserveObjectStacking){s=[],d=[];for(var g=0,m=this._objects.length;g<m;g++)f=this._objects[g],c.indexOf(f)===-1?s.push(f):d.push(f);c.length>1&&(this._activeObject._objects=d),s.push.apply(s,d)}else s=this._objects;return s},renderAll:function(){this.contextTopDirty&&!this._groupSelector&&!this.isDrawingMode&&(this.clearContext(this.contextTop),this.contextTopDirty=!1),this.hasLostContext&&(this.renderTopLayer(this.contextTop),this.hasLostContext=!1);var c=this.contextContainer;return this.renderCanvas(c,this._chooseObjectsToRender()),this},renderTopLayer:function(c){c.save(),this.isDrawingMode&&this._isCurrentlyDrawing&&(this.freeDrawingBrush&&this.freeDrawingBrush._render(),this.contextTopDirty=!0),this.selection&&this._groupSelector&&(this._drawSelection(c),this.contextTopDirty=!0),c.restore()},renderTop:function(){var c=this.contextTop;return this.clearContext(c),this.renderTopLayer(c),this.fire("after:render"),this},_normalizePointer:function(c,f){var s=c.calcTransformMatrix(),d=t.util.invertTransform(s),g=this.restorePointerVpt(f);return t.util.transformPoint(g,d)},isTargetTransparent:function(c,f,s){if(c.shouldCache()&&c._cacheCanvas&&c!==this._activeObject){var d=this._normalizePointer(c,{x:f,y:s}),g=Math.max(c.cacheTranslationX+d.x*c.zoomX,0),m=Math.max(c.cacheTranslationY+d.y*c.zoomY,0),w=t.util.isTransparent(c._cacheContext,Math.round(g),Math.round(m),this.targetFindTolerance);return w}var v=this.contextCache,y=c.selectionBackgroundColor,b=this.viewportTransform;c.selectionBackgroundColor="",this.clearContext(v),v.save(),v.transform(b[0],b[1],b[2],b[3],b[4],b[5]),c.render(v),v.restore(),c.selectionBackgroundColor=y;var w=t.util.isTransparent(v,f,s,this.targetFindTolerance);return w},_isSelectionKeyPressed:function(c){var f=!1;return Array.isArray(this.selectionKey)?f=!!this.selectionKey.find(function(s){return c[s]===!0}):f=c[this.selectionKey],f},_shouldClearSelection:function(c,f){var s=this.getActiveObjects(),d=this._activeObject;return!f||f&&d&&s.length>1&&s.indexOf(f)===-1&&d!==f&&!this._isSelectionKeyPressed(c)||f&&!f.evented||f&&!f.selectable&&d&&d!==f},_shouldCenterTransform:function(c,f,s){if(!!c){var d;return f==="scale"||f==="scaleX"||f==="scaleY"||f==="resizing"?d=this.centeredScaling||c.centeredScaling:f==="rotate"&&(d=this.centeredRotation||c.centeredRotation),d?!s:s}},_getOriginFromCorner:function(c,f){var s={x:c.originX,y:c.originY};return f==="ml"||f==="tl"||f==="bl"?s.x="right":(f==="mr"||f==="tr"||f==="br")&&(s.x="left"),f==="tl"||f==="mt"||f==="tr"?s.y="bottom":(f==="bl"||f==="mb"||f==="br")&&(s.y="top"),s},_getActionFromCorner:function(c,f,s,d){if(!f||!c)return"drag";var g=d.controls[f];return g.getActionName(s,g,d)},_setupCurrentTransform:function(c,f,s){if(!!f){var d=this.getPointer(c),g=f.__corner,m=f.controls[g],v=s&&g?m.getActionHandler(c,f,m):t.controlsUtils.dragHandler,y=this._getActionFromCorner(s,g,c,f),b=this._getOriginFromCorner(f,g),w=c[this.centeredKey],S={target:f,action:y,actionHandler:v,corner:g,scaleX:f.scaleX,scaleY:f.scaleY,skewX:f.skewX,skewY:f.skewY,offsetX:d.x-f.left,offsetY:d.y-f.top,originX:b.x,originY:b.y,ex:d.x,ey:d.y,lastX:d.x,lastY:d.y,theta:a(f.angle),width:f.width*f.scaleX,shiftKey:c.shiftKey,altKey:w,original:t.util.saveObjectTransform(f)};this._shouldCenterTransform(f,y,w)&&(S.originX="center",S.originY="center"),S.original.originX=b.x,S.original.originY=b.y,this._currentTransform=S,this._beforeTransform(c)}},setCursor:function(c){this.upperCanvasEl.style.cursor=c},_drawSelection:function(c){var f=this._groupSelector,s=new t.Point(f.ex,f.ey),d=t.util.transformPoint(s,this.viewportTransform),g=new t.Point(f.ex+f.left,f.ey+f.top),m=t.util.transformPoint(g,this.viewportTransform),v=Math.min(d.x,m.x),y=Math.min(d.y,m.y),b=Math.max(d.x,m.x),w=Math.max(d.y,m.y),S=this.selectionLineWidth/2;this.selectionColor&&(c.fillStyle=this.selectionColor,c.fillRect(v,y,b-v,w-y)),!(!this.selectionLineWidth||!this.selectionBorderColor)&&(c.lineWidth=this.selectionLineWidth,c.strokeStyle=this.selectionBorderColor,v+=S,y+=S,b-=S,w-=S,t.Object.prototype._setLineDash.call(this,c,this.selectionDashArray),c.strokeRect(v,y,b-v,w-y))},findTarget:function(c,f){if(!this.skipTargetFind){var s=!0,d=this.getPointer(c,s),g=this._activeObject,m=this.getActiveObjects(),v,y,b=l(c),w=m.length>1&&!f||m.length===1;if(this.targets=[],w&&g._findTargetCorner(d,b)||m.length>1&&!f&&g===this._searchPossibleTargets([g],d))return g;if(m.length===1&&g===this._searchPossibleTargets([g],d))if(this.preserveObjectStacking)v=g,y=this.targets,this.targets=[];else return g;var S=this._searchPossibleTargets(this._objects,d);return c[this.altSelectionKey]&&S&&v&&S!==v&&(S=v,this.targets=y),S}},_checkTarget:function(c,f,s){if(f&&f.visible&&f.evented&&f.containsPoint(c))if((this.perPixelTargetFind||f.perPixelTargetFind)&&!f.isEditing){var d=this.isTargetTransparent(f,s.x,s.y);if(!d)return!0}else return!0},_searchPossibleTargets:function(c,f){for(var s,d=c.length,g;d--;){var m=c[d],v=m.group?this._normalizePointer(m.group,f):f;if(this._checkTarget(v,m,f)){s=c[d],s.subTargetCheck&&s instanceof t.Group&&(g=this._searchPossibleTargets(s._objects,f),g&&this.targets.push(g));break}}return s},restorePointerVpt:function(c){return t.util.transformPoint(c,t.util.invertTransform(this.viewportTransform))},getPointer:function(c,f){if(this._absolutePointer&&!f)return this._absolutePointer;if(this._pointer&&f)return this._pointer;var s=o(c),d=this.upperCanvasEl,g=d.getBoundingClientRect(),m=g.width||0,v=g.height||0,y;(!m||!v)&&("top"in g&&"bottom"in g&&(v=Math.abs(g.top-g.bottom)),"right"in g&&"left"in g&&(m=Math.abs(g.right-g.left))),this.calcOffset(),s.x=s.x-this._offset.left,s.y=s.y-this._offset.top,f||(s=this.restorePointerVpt(s));var b=this.getRetinaScaling();return b!==1&&(s.x/=b,s.y/=b),m===0||v===0?y={width:1,height:1}:y={width:d.width/m,height:d.height/v},{x:s.x*y.width,y:s.y*y.height}},_createUpperCanvas:function(){var c=this.lowerCanvasEl.className.replace(/\s*lower-canvas\s*/,""),f=this.lowerCanvasEl,s=this.upperCanvasEl;s?s.className="":(s=this._createCanvasElement(),this.upperCanvasEl=s),t.util.addClass(s,"upper-canvas "+c),this.wrapperEl.appendChild(s),this._copyCanvasStyle(f,s),this._applyCanvasStyle(s),this.contextTop=s.getContext("2d")},getTopContext:function(){return this.contextTop},_createCacheCanvas:function(){this.cacheCanvasEl=this._createCanvasElement(),this.cacheCanvasEl.setAttribute("width",this.width),this.cacheCanvasEl.setAttribute("height",this.height),this.contextCache=this.cacheCanvasEl.getContext("2d")},_initWrapperElement:function(){this.wrapperEl=t.util.wrapElement(this.lowerCanvasEl,"div",{class:this.containerClass}),t.util.setStyle(this.wrapperEl,{width:this.width+"px",height:this.height+"px",position:"relative"}),t.util.makeElementUnselectable(this.wrapperEl)},_applyCanvasStyle:function(c){var f=this.width||c.width,s=this.height||c.height;t.util.setStyle(c,{position:"absolute",width:f+"px",height:s+"px",left:0,top:0,"touch-action":this.allowTouchScrolling?"manipulation":"none","-ms-touch-action":this.allowTouchScrolling?"manipulation":"none"}),c.width=f,c.height=s,t.util.makeElementUnselectable(c)},_copyCanvasStyle:function(c,f){f.style.cssText=c.style.cssText},getSelectionContext:function(){return this.contextTop},getSelectionElement:function(){return this.upperCanvasEl},getActiveObject:function(){return this._activeObject},getActiveObjects:function(){var c=this._activeObject;return c?c.type==="activeSelection"&&c._objects?c._objects.slice(0):[c]:[]},_onObjectRemoved:function(c){c===this._activeObject&&(this.fire("before:selection:cleared",{target:c}),this._discardActiveObject(),this.fire("selection:cleared",{target:c}),c.fire("deselected")),c===this._hoveredTarget&&(this._hoveredTarget=null,this._hoveredTargets=[]),this.callSuper("_onObjectRemoved",c)},_fireSelectionEvents:function(c,f){var s=!1,d=this.getActiveObjects(),g=[],m=[];c.forEach(function(v){d.indexOf(v)===-1&&(s=!0,v.fire("deselected",{e:f,target:v}),m.push(v))}),d.forEach(function(v){c.indexOf(v)===-1&&(s=!0,v.fire("selected",{e:f,target:v}),g.push(v))}),c.length>0&&d.length>0?s&&this.fire("selection:updated",{e:f,selected:g,deselected:m}):d.length>0?this.fire("selection:created",{e:f,selected:g}):c.length>0&&this.fire("selection:cleared",{e:f,deselected:m})},setActiveObject:function(c,f){var s=this.getActiveObjects();return this._setActiveObject(c,f),this._fireSelectionEvents(s,f),this},_setActiveObject:function(c,f){return this._activeObject===c||!this._discardActiveObject(f,c)||c.onSelect({e:f})?!1:(this._activeObject=c,!0)},_discardActiveObject:function(c,f){var s=this._activeObject;if(s){if(s.onDeselect({e:c,object:f}))return!1;this._activeObject=null}return!0},discardActiveObject:function(c){var f=this.getActiveObjects(),s=this.getActiveObject();return f.length&&this.fire("before:selection:cleared",{target:s,e:c}),this._discardActiveObject(c),this._fireSelectionEvents(f,c),this},dispose:function(){var c=this.wrapperEl;return this.removeListeners(),c.removeChild(this.upperCanvasEl),c.removeChild(this.lowerCanvasEl),this.contextCache=null,this.contextTop=null,["upperCanvasEl","cacheCanvasEl"].forEach(function(f){t.util.cleanUpJsdomNode(this[f]),this[f]=void 0}.bind(this)),c.parentNode&&c.parentNode.replaceChild(this.lowerCanvasEl,this.wrapperEl),delete this.wrapperEl,t.StaticCanvas.prototype.dispose.call(this),this},clear:function(){return this.discardActiveObject(),this.clearContext(this.contextTop),this.callSuper("clear")},drawControls:function(c){var f=this._activeObject;f&&f._renderControls(c)},_toObject:function(c,f,s){var d=this._realizeGroupTransformOnObject(c),g=this.callSuper("_toObject",c,f,s);return this._unwindGroupTransformOnObject(c,d),g},_realizeGroupTransformOnObject:function(c){if(c.group&&c.group.type==="activeSelection"&&this._activeObject===c.group){var f=["angle","flipX","flipY","left","scaleX","scaleY","skewX","skewY","top"],s={};return f.forEach(function(d){s[d]=c[d]}),t.util.addTransformToObject(c,this._activeObject.calcOwnMatrix()),s}else return null},_unwindGroupTransformOnObject:function(c,f){f&&c.set(f)},_setSVGObject:function(c,f,s){var d=this._realizeGroupTransformOnObject(f);this.callSuper("_setSVGObject",c,f,s),this._unwindGroupTransformOnObject(f,d)},setViewportTransform:function(c){this.renderOnAddRemove&&this._activeObject&&this._activeObject.isEditing&&this._activeObject.clearContextTop(),t.StaticCanvas.prototype.setViewportTransform.call(this,c)}});for(var h in t.StaticCanvas)h!=="prototype"&&(t.Canvas[h]=t.StaticCanvas[h])}(),function(){var o=t.util.addListener,a=t.util.removeListener,l=3,h=2,c=1,f={passive:!1};function s(d,g){return d.button&&d.button===g-1}t.util.object.extend(t.Canvas.prototype,{mainTouchId:null,_initEventListeners:function(){this.removeListeners(),this._bindEvents(),this.addOrRemove(o,"add")},_getEventPrefix:function(){return this.enablePointerEvents?"pointer":"mouse"},addOrRemove:function(d,g){var m=this.upperCanvasEl,v=this._getEventPrefix();d(t.window,"resize",this._onResize),d(m,v+"down",this._onMouseDown),d(m,v+"move",this._onMouseMove,f),d(m,v+"out",this._onMouseOut),d(m,v+"enter",this._onMouseEnter),d(m,"wheel",this._onMouseWheel),d(m,"contextmenu",this._onContextMenu),d(m,"dblclick",this._onDoubleClick),d(m,"dragover",this._onDragOver),d(m,"dragenter",this._onDragEnter),d(m,"dragleave",this._onDragLeave),d(m,"drop",this._onDrop),this.enablePointerEvents||d(m,"touchstart",this._onTouchStart,f),typeof eventjs<"u"&&g in eventjs&&(eventjs[g](m,"gesture",this._onGesture),eventjs[g](m,"drag",this._onDrag),eventjs[g](m,"orientation",this._onOrientationChange),eventjs[g](m,"shake",this._onShake),eventjs[g](m,"longpress",this._onLongPress))},removeListeners:function(){this.addOrRemove(a,"remove");var d=this._getEventPrefix();a(t.document,d+"up",this._onMouseUp),a(t.document,"touchend",this._onTouchEnd,f),a(t.document,d+"move",this._onMouseMove,f),a(t.document,"touchmove",this._onMouseMove,f)},_bindEvents:function(){this.eventsBound||(this._onMouseDown=this._onMouseDown.bind(this),this._onTouchStart=this._onTouchStart.bind(this),this._onMouseMove=this._onMouseMove.bind(this),this._onMouseUp=this._onMouseUp.bind(this),this._onTouchEnd=this._onTouchEnd.bind(this),this._onResize=this._onResize.bind(this),this._onGesture=this._onGesture.bind(this),this._onDrag=this._onDrag.bind(this),this._onShake=this._onShake.bind(this),this._onLongPress=this._onLongPress.bind(this),this._onOrientationChange=this._onOrientationChange.bind(this),this._onMouseWheel=this._onMouseWheel.bind(this),this._onMouseOut=this._onMouseOut.bind(this),this._onMouseEnter=this._onMouseEnter.bind(this),this._onContextMenu=this._onContextMenu.bind(this),this._onDoubleClick=this._onDoubleClick.bind(this),this._onDragOver=this._onDragOver.bind(this),this._onDragEnter=this._simpleEventHandler.bind(this,"dragenter"),this._onDragLeave=this._simpleEventHandler.bind(this,"dragleave"),this._onDrop=this._onDrop.bind(this),this.eventsBound=!0)},_onGesture:function(d,g){this.__onTransformGesture&&this.__onTransformGesture(d,g)},_onDrag:function(d,g){this.__onDrag&&this.__onDrag(d,g)},_onMouseWheel:function(d){this.__onMouseWheel(d)},_onMouseOut:function(d){var g=this._hoveredTarget;this.fire("mouse:out",{target:g,e:d}),this._hoveredTarget=null,g&&g.fire("mouseout",{e:d});var m=this;this._hoveredTargets.forEach(function(v){m.fire("mouse:out",{target:v,e:d}),v&&v.fire("mouseout",{e:d})}),this._hoveredTargets=[]},_onMouseEnter:function(d){!this._currentTransform&&!this.findTarget(d)&&(this.fire("mouse:over",{target:null,e:d}),this._hoveredTarget=null,this._hoveredTargets=[])},_onOrientationChange:function(d,g){this.__onOrientationChange&&this.__onOrientationChange(d,g)},_onShake:function(d,g){this.__onShake&&this.__onShake(d,g)},_onLongPress:function(d,g){this.__onLongPress&&this.__onLongPress(d,g)},_onDragOver:function(d){d.preventDefault();var g=this._simpleEventHandler("dragover",d);this._fireEnterLeaveEvents(g,d)},_onDrop:function(d){return this._simpleEventHandler("drop:before",d),this._simpleEventHandler("drop",d)},_onContextMenu:function(d){return this.stopContextMenu&&(d.stopPropagation(),d.preventDefault()),!1},_onDoubleClick:function(d){this._cacheTransformEventData(d),this._handleEvent(d,"dblclick"),this._resetTransformEventData(d)},getPointerId:function(d){var g=d.changedTouches;return g?g[0]&&g[0].identifier:this.enablePointerEvents?d.pointerId:-1},_isMainEvent:function(d){return d.isPrimary===!0?!0:d.isPrimary===!1?!1:d.type==="touchend"&&d.touches.length===0?!0:d.changedTouches?d.changedTouches[0].identifier===this.mainTouchId:!0},_onTouchStart:function(d){d.preventDefault(),this.mainTouchId===null&&(this.mainTouchId=this.getPointerId(d)),this.__onMouseDown(d),this._resetTransformEventData();var g=this.upperCanvasEl,m=this._getEventPrefix();o(t.document,"touchend",this._onTouchEnd,f),o(t.document,"touchmove",this._onMouseMove,f),a(g,m+"down",this._onMouseDown)},_onMouseDown:function(d){this.__onMouseDown(d),this._resetTransformEventData();var g=this.upperCanvasEl,m=this._getEventPrefix();a(g,m+"move",this._onMouseMove,f),o(t.document,m+"up",this._onMouseUp),o(t.document,m+"move",this._onMouseMove,f)},_onTouchEnd:function(d){if(!(d.touches.length>0)){this.__onMouseUp(d),this._resetTransformEventData(),this.mainTouchId=null;var g=this._getEventPrefix();a(t.document,"touchend",this._onTouchEnd,f),a(t.document,"touchmove",this._onMouseMove,f);var m=this;this._willAddMouseDown&&clearTimeout(this._willAddMouseDown),this._willAddMouseDown=setTimeout(function(){o(m.upperCanvasEl,g+"down",m._onMouseDown),m._willAddMouseDown=0},400)}},_onMouseUp:function(d){this.__onMouseUp(d),this._resetTransformEventData();var g=this.upperCanvasEl,m=this._getEventPrefix();this._isMainEvent(d)&&(a(t.document,m+"up",this._onMouseUp),a(t.document,m+"move",this._onMouseMove,f),o(g,m+"move",this._onMouseMove,f))},_onMouseMove:function(d){!this.allowTouchScrolling&&d.preventDefault&&d.preventDefault(),this.__onMouseMove(d)},_onResize:function(){this.calcOffset()},_shouldRender:function(d){var g=this._activeObject;return!!g!=!!d||g&&d&&g!==d?!0:(g&&g.isEditing,!1)},__onMouseUp:function(d){var g,m=this._currentTransform,v=this._groupSelector,y=!1,b=!v||v.left===0&&v.top===0;if(this._cacheTransformEventData(d),g=this._target,this._handleEvent(d,"up:before"),s(d,l)){this.fireRightClick&&this._handleEvent(d,"up",l,b);return}if(s(d,h)){this.fireMiddleClick&&this._handleEvent(d,"up",h,b),this._resetTransformEventData();return}if(this.isDrawingMode&&this._isCurrentlyDrawing){this._onMouseUpInDrawingMode(d);return}if(!!this._isMainEvent(d)){if(m&&(this._finalizeCurrentTransform(d),y=m.actionPerformed),!b){var w=g===this._activeObject;this._maybeGroupObjects(d),y||(y=this._shouldRender(g)||!w&&g===this._activeObject)}var S,C;if(g){if(S=g._findTargetCorner(this.getPointer(d,!0),t.util.isTouchEvent(d)),g.selectable&&g!==this._activeObject&&g.activeOn==="up")this.setActiveObject(g,d),y=!0;else{var T=g.controls[S],k=T&&T.getMouseUpHandler(d,g,T);k&&(C=this.getPointer(d),k(d,m,C.x,C.y))}g.isMoving=!1}if(m&&(m.target!==g||m.corner!==S)){var A=m.target&&m.target.controls[m.corner],P=A&&A.getMouseUpHandler(d,g,T);C=C||this.getPointer(d),P&&P(d,m,C.x,C.y)}this._setCursorFromEvent(d,g),this._handleEvent(d,"up",c,b),this._groupSelector=null,this._currentTransform=null,g&&(g.__corner=0),y?this.requestRenderAll():b||this.renderTop()}},_simpleEventHandler:function(d,g){var m=this.findTarget(g),v=this.targets,y={e:g,target:m,subTargets:v};if(this.fire(d,y),m&&m.fire(d,y),!v)return m;for(var b=0;b<v.length;b++)v[b].fire(d,y);return m},_handleEvent:function(d,g,m,v){var y=this._target,b=this.targets||[],w={e:d,target:y,subTargets:b,button:m||c,isClick:v||!1,pointer:this._pointer,absolutePointer:this._absolutePointer,transform:this._currentTransform};g==="up"&&(w.currentTarget=this.findTarget(d),w.currentSubTargets=this.targets),this.fire("mouse:"+g,w),y&&y.fire("mouse"+g,w);for(var S=0;S<b.length;S++)b[S].fire("mouse"+g,w)},_finalizeCurrentTransform:function(d){var g=this._currentTransform,m=g.target,v={e:d,target:m,transform:g,action:g.action};m._scaling&&(m._scaling=!1),m.setCoords(),(g.actionPerformed||this.stateful&&m.hasStateChanged())&&this._fire("modified",v)},_onMouseDownInDrawingMode:function(d){this._isCurrentlyDrawing=!0,this.getActiveObject()&&this.discardActiveObject(d).requestRenderAll();var g=this.getPointer(d);this.freeDrawingBrush.onMouseDown(g,{e:d,pointer:g}),this._handleEvent(d,"down")},_onMouseMoveInDrawingMode:function(d){if(this._isCurrentlyDrawing){var g=this.getPointer(d);this.freeDrawingBrush.onMouseMove(g,{e:d,pointer:g})}this.setCursor(this.freeDrawingCursor),this._handleEvent(d,"move")},_onMouseUpInDrawingMode:function(d){var g=this.getPointer(d);this._isCurrentlyDrawing=this.freeDrawingBrush.onMouseUp({e:d,pointer:g}),this._handleEvent(d,"up")},__onMouseDown:function(d){this._cacheTransformEventData(d),this._handleEvent(d,"down:before");var g=this._target;if(s(d,l)){this.fireRightClick&&this._handleEvent(d,"down",l);return}if(s(d,h)){this.fireMiddleClick&&this._handleEvent(d,"down",h);return}if(this.isDrawingMode){this._onMouseDownInDrawingMode(d);return}if(!!this._isMainEvent(d)&&!this._currentTransform){var m=this._pointer;this._previousPointer=m;var v=this._shouldRender(g),y=this._shouldGroup(d,g);if(this._shouldClearSelection(d,g)?this.discardActiveObject(d):y&&(this._handleGrouping(d,g),g=this._activeObject),this.selection&&(!g||!g.selectable&&!g.isEditing&&g!==this._activeObject)&&(this._groupSelector={ex:this._absolutePointer.x,ey:this._absolutePointer.y,top:0,left:0}),g){var b=g===this._activeObject;g.selectable&&g.activeOn==="down"&&this.setActiveObject(g,d);var w=g._findTargetCorner(this.getPointer(d,!0),t.util.isTouchEvent(d));if(g.__corner=w,g===this._activeObject&&(w||!y)){this._setupCurrentTransform(d,g,b);var S=g.controls[w],m=this.getPointer(d),C=S&&S.getMouseDownHandler(d,g,S);C&&C(d,this._currentTransform,m.x,m.y)}}this._handleEvent(d,"down"),(v||y)&&this.requestRenderAll()}},_resetTransformEventData:function(){this._target=null,this._pointer=null,this._absolutePointer=null},_cacheTransformEventData:function(d){this._resetTransformEventData(),this._pointer=this.getPointer(d,!0),this._absolutePointer=this.restorePointerVpt(this._pointer),this._target=this._currentTransform?this._currentTransform.target:this.findTarget(d)||null},_beforeTransform:function(d){var g=this._currentTransform;this.stateful&&g.target.saveState(),this.fire("before:transform",{e:d,transform:g})},__onMouseMove:function(d){this._handleEvent(d,"move:before"),this._cacheTransformEventData(d);var g,m;if(this.isDrawingMode){this._onMouseMoveInDrawingMode(d);return}if(!!this._isMainEvent(d)){var v=this._groupSelector;v?(m=this._absolutePointer,v.left=m.x-v.ex,v.top=m.y-v.ey,this.renderTop()):this._currentTransform?this._transformObject(d):(g=this.findTarget(d)||null,this._setCursorFromEvent(d,g),this._fireOverOutEvents(g,d)),this._handleEvent(d,"move"),this._resetTransformEventData()}},_fireOverOutEvents:function(d,g){var m=this._hoveredTarget,v=this._hoveredTargets,y=this.targets,b=Math.max(v.length,y.length);this.fireSyntheticInOutEvents(d,g,{oldTarget:m,evtOut:"mouseout",canvasEvtOut:"mouse:out",evtIn:"mouseover",canvasEvtIn:"mouse:over"});for(var w=0;w<b;w++)this.fireSyntheticInOutEvents(y[w],g,{oldTarget:v[w],evtOut:"mouseout",evtIn:"mouseover"});this._hoveredTarget=d,this._hoveredTargets=this.targets.concat()},_fireEnterLeaveEvents:function(d,g){var m=this._draggedoverTarget,v=this._hoveredTargets,y=this.targets,b=Math.max(v.length,y.length);this.fireSyntheticInOutEvents(d,g,{oldTarget:m,evtOut:"dragleave",evtIn:"dragenter"});for(var w=0;w<b;w++)this.fireSyntheticInOutEvents(y[w],g,{oldTarget:v[w],evtOut:"dragleave",evtIn:"dragenter"});this._draggedoverTarget=d},fireSyntheticInOutEvents:function(d,g,m){var v,y,b=m.oldTarget,w,S,C=b!==d,T=m.canvasEvtIn,k=m.canvasEvtOut;C&&(v={e:g,target:d,previousTarget:b},y={e:g,target:b,nextTarget:d}),S=d&&C,w=b&&C,w&&(k&&this.fire(k,y),b.fire(m.evtOut,y)),S&&(T&&this.fire(T,v),d.fire(m.evtIn,v))},__onMouseWheel:function(d){this._cacheTransformEventData(d),this._handleEvent(d,"wheel"),this._resetTransformEventData()},_transformObject:function(d){var g=this.getPointer(d),m=this._currentTransform;m.reset=!1,m.shiftKey=d.shiftKey,m.altKey=d[this.centeredKey],this._performTransformAction(d,m,g),m.actionPerformed&&this.requestRenderAll()},_performTransformAction:function(d,g,m){var v=m.x,y=m.y,b=g.action,w=!1,S=g.actionHandler;S&&(w=S(d,g,v,y)),b==="drag"&&w&&(g.target.isMoving=!0,this.setCursor(g.target.moveCursor||this.moveCursor)),g.actionPerformed=g.actionPerformed||w},_fire:t.controlsUtils.fireEvent,_setCursorFromEvent:function(d,g){if(!g)return this.setCursor(this.defaultCursor),!1;var m=g.hoverCursor||this.hoverCursor,v=this._activeObject&&this._activeObject.type==="activeSelection"?this._activeObject:null,y=(!v||!v.contains(g))&&g._findTargetCorner(this.getPointer(d,!0));y?this.setCursor(this.getCornerCursor(y,g,d)):(g.subTargetCheck&&this.targets.concat().reverse().map(function(b){m=b.hoverCursor||m}),this.setCursor(m))},getCornerCursor:function(d,g,m){var v=g.controls[d];return v.cursorStyleHandler(m,v,g)}})}(),function(){var o=Math.min,a=Math.max;t.util.object.extend(t.Canvas.prototype,{_shouldGroup:function(l,h){var c=this._activeObject;return c&&this._isSelectionKeyPressed(l)&&h&&h.selectable&&this.selection&&(c!==h||c.type==="activeSelection")&&!h.onSelect({e:l})},_handleGrouping:function(l,h){var c=this._activeObject;c.__corner||h===c&&(h=this.findTarget(l,!0),!h||!h.selectable)||(c&&c.type==="activeSelection"?this._updateActiveSelection(h,l):this._createActiveSelection(h,l))},_updateActiveSelection:function(l,h){var c=this._activeObject,f=c._objects.slice(0);c.contains(l)?(c.removeWithUpdate(l),this._hoveredTarget=l,this._hoveredTargets=this.targets.concat(),c.size()===1&&this._setActiveObject(c.item(0),h)):(c.addWithUpdate(l),this._hoveredTarget=c,this._hoveredTargets=this.targets.concat()),this._fireSelectionEvents(f,h)},_createActiveSelection:function(l,h){var c=this.getActiveObjects(),f=this._createGroup(l);this._hoveredTarget=f,this._setActiveObject(f,h),this._fireSelectionEvents(c,h)},_createGroup:function(l){var h=this._objects,c=h.indexOf(this._activeObject)<h.indexOf(l),f=c?[this._activeObject,l]:[l,this._activeObject];return this._activeObject.isEditing&&this._activeObject.exitEditing(),new t.ActiveSelection(f,{canvas:this})},_groupSelectedObjects:function(l){var h=this._collectObjects(l),c;h.length===1?this.setActiveObject(h[0],l):h.length>1&&(c=new t.ActiveSelection(h.reverse(),{canvas:this}),this.setActiveObject(c,l))},_collectObjects:function(l){for(var h=[],c,f=this._groupSelector.ex,s=this._groupSelector.ey,d=f+this._groupSelector.left,g=s+this._groupSelector.top,m=new t.Point(o(f,d),o(s,g)),v=new t.Point(a(f,d),a(s,g)),y=!this.selectionFullyContained,b=f===d&&s===g,w=this._objects.length;w--&&(c=this._objects[w],!(!(!c||!c.selectable||!c.visible)&&(y&&c.intersectsWithRect(m,v,!0)||c.isContainedWithinRect(m,v,!0)||y&&c.containsPoint(m,null,!0)||y&&c.containsPoint(v,null,!0))&&(h.push(c),b))););return h.length>1&&(h=h.filter(function(S){return!S.onSelect({e:l})})),h},_maybeGroupObjects:function(l){this.selection&&this._groupSelector&&this._groupSelectedObjects(l),this.setCursor(this.defaultCursor),this._groupSelector=null}})}(),function(){t.util.object.extend(t.StaticCanvas.prototype,{toDataURL:function(o){o||(o={});var a=o.format||"png",l=o.quality||1,h=(o.multiplier||1)*(o.enableRetinaScaling?this.getRetinaScaling():1),c=this.toCanvasElement(h,o);return t.util.toDataURL(c,a,l)},toCanvasElement:function(o,a){o=o||1,a=a||{};var l=(a.width||this.width)*o,h=(a.height||this.height)*o,c=this.getZoom(),f=this.width,s=this.height,d=c*o,g=this.viewportTransform,m=(g[4]-(a.left||0))*o,v=(g[5]-(a.top||0))*o,y=this.interactive,b=[d,0,0,d,m,v],w=this.enableRetinaScaling,S=t.util.createCanvasElement(),C=this.contextTop;return S.width=l,S.height=h,this.contextTop=null,this.enableRetinaScaling=!1,this.interactive=!1,this.viewportTransform=b,this.width=l,this.height=h,this.calcViewportBoundaries(),this.renderCanvas(S.getContext("2d"),this._objects),this.viewportTransform=g,this.width=f,this.height=s,this.calcViewportBoundaries(),this.interactive=y,this.enableRetinaScaling=w,this.contextTop=C,S}})}(),t.util.object.extend(t.StaticCanvas.prototype,{loadFromJSON:function(o,a,l){if(!!o){var h=typeof o=="string"?JSON.parse(o):t.util.object.clone(o),c=this,f=h.clipPath,s=this.renderOnAddRemove;return this.renderOnAddRemove=!1,delete h.clipPath,this._enlivenObjects(h.objects,function(d){c.clear(),c._setBgOverlay(h,function(){f?c._enlivenObjects([f],function(g){c.clipPath=g[0],c.__setupCanvas.call(c,h,d,s,a)}):c.__setupCanvas.call(c,h,d,s,a)})},l),this}},__setupCanvas:function(o,a,l,h){var c=this;a.forEach(function(f,s){c.insertAt(f,s)}),this.renderOnAddRemove=l,delete o.objects,delete o.backgroundImage,delete o.overlayImage,delete o.background,delete o.overlay,this._setOptions(o),this.renderAll(),h&&h()},_setBgOverlay:function(o,a){var l={backgroundColor:!1,overlayColor:!1,backgroundImage:!1,overlayImage:!1};if(!o.backgroundImage&&!o.overlayImage&&!o.background&&!o.overlay){a&&a();return}var h=function(){l.backgroundImage&&l.overlayImage&&l.backgroundColor&&l.overlayColor&&a&&a()};this.__setBgOverlay("backgroundImage",o.backgroundImage,l,h),this.__setBgOverlay("overlayImage",o.overlayImage,l,h),this.__setBgOverlay("backgroundColor",o.background,l,h),this.__setBgOverlay("overlayColor",o.overlay,l,h)},__setBgOverlay:function(o,a,l,h){var c=this;if(!a){l[o]=!0,h&&h();return}o==="backgroundImage"||o==="overlayImage"?t.util.enlivenObjects([a],function(f){c[o]=f[0],l[o]=!0,h&&h()}):this["set"+t.util.string.capitalize(o,!0)](a,function(){l[o]=!0,h&&h()})},_enlivenObjects:function(o,a,l){if(!o||o.length===0){a&&a([]);return}t.util.enlivenObjects(o,function(h){a&&a(h)},null,l)},_toDataURL:function(o,a){this.clone(function(l){a(l.toDataURL(o))})},_toDataURLWithMultiplier:function(o,a,l){this.clone(function(h){l(h.toDataURLWithMultiplier(o,a))})},clone:function(o,a){var l=JSON.stringify(this.toJSON(a));this.cloneWithoutData(function(h){h.loadFromJSON(l,function(){o&&o(h)})})},cloneWithoutData:function(o){var a=t.util.createCanvasElement();a.width=this.width,a.height=this.height;var l=new t.Canvas(a);this.backgroundImage?(l.setBackgroundImage(this.backgroundImage.src,function(){l.renderAll(),o&&o(l)}),l.backgroundImageOpacity=this.backgroundImageOpacity,l.backgroundImageStretch=this.backgroundImageStretch):o&&o(l)}}),function(o){var a=o.fabric||(o.fabric={}),l=a.util.object.extend,h=a.util.object.clone,c=a.util.toFixed,f=a.util.string.capitalize,s=a.util.degreesToRadians,d=!a.isLikelyNode,g=2;a.Object||(a.Object=a.util.createClass(a.CommonMethods,{type:"object",originX:"left",originY:"top",top:0,left:0,width:0,height:0,scaleX:1,scaleY:1,flipX:!1,flipY:!1,opacity:1,angle:0,skewX:0,skewY:0,cornerSize:13,touchCornerSize:24,transparentCorners:!0,hoverCursor:null,moveCursor:null,padding:0,borderColor:"rgb(178,204,255)",borderDashArray:null,cornerColor:"rgb(178,204,255)",cornerStrokeColor:null,cornerStyle:"rect",cornerDashArray:null,centeredScaling:!1,centeredRotation:!0,fill:"rgb(0,0,0)",fillRule:"nonzero",globalCompositeOperation:"source-over",backgroundColor:"",selectionBackgroundColor:"",stroke:null,strokeWidth:1,strokeDashArray:null,strokeDashOffset:0,strokeLineCap:"butt",strokeLineJoin:"miter",strokeMiterLimit:4,shadow:null,borderOpacityWhenMoving:.4,borderScaleFactor:1,minScaleLimit:0,selectable:!0,evented:!0,visible:!0,hasControls:!0,hasBorders:!0,perPixelTargetFind:!1,includeDefaultValues:!0,lockMovementX:!1,lockMovementY:!1,lockRotation:!1,lockScalingX:!1,lockScalingY:!1,lockSkewingX:!1,lockSkewingY:!1,lockScalingFlip:!1,excludeFromExport:!1,objectCaching:d,statefullCache:!1,noScaleCache:!0,strokeUniform:!1,dirty:!0,__corner:0,paintFirst:"fill",activeOn:"down",stateProperties:"top left width height scaleX scaleY flipX flipY originX originY transformMatrix stroke strokeWidth strokeDashArray strokeLineCap strokeDashOffset strokeLineJoin strokeMiterLimit angle opacity fill globalCompositeOperation shadow visible backgroundColor skewX skewY fillRule paintFirst clipPath strokeUniform".split(" "),cacheProperties:"fill stroke strokeWidth strokeDashArray width height paintFirst strokeUniform strokeLineCap strokeDashOffset strokeLineJoin strokeMiterLimit backgroundColor clipPath".split(" "),colorProperties:"fill stroke backgroundColor".split(" "),clipPath:void 0,inverted:!1,absolutePositioned:!1,initialize:function(m){m&&this.setOptions(m)},_createCacheCanvas:function(){this._cacheProperties={},this._cacheCanvas=a.util.createCanvasElement(),this._cacheContext=this._cacheCanvas.getContext("2d"),this._updateCacheCanvas(),this.dirty=!0},_limitCacheSize:function(m){var v=a.perfLimitSizeTotal,y=m.width,b=m.height,w=a.maxCacheSideLimit,S=a.minCacheSideLimit;if(y<=w&&b<=w&&y*b<=v)return y<S&&(m.width=S),b<S&&(m.height=S),m;var C=y/b,T=a.util.limitDimsByArea(C,v),k=a.util.capValue,A=k(S,T.x,w),P=k(S,T.y,w);return y>A&&(m.zoomX/=y/A,m.width=A,m.capped=!0),b>P&&(m.zoomY/=b/P,m.height=P,m.capped=!0),m},_getCacheCanvasDimensions:function(){var m=this.getTotalObjectScaling(),v=this._getTransformedDimensions(0,0),y=v.x*m.scaleX/this.scaleX,b=v.y*m.scaleY/this.scaleY;return{width:Math.ceil(y+g),height:Math.ceil(b+g),zoomX:m.scaleX,zoomY:m.scaleY,x:y,y:b}},_updateCacheCanvas:function(){var m=this.canvas;if(this.noScaleCache&&m&&m._currentTransform){var v=m._currentTransform.target,y=m._currentTransform.action;if(this===v&&y.slice&&y.slice(0,5)==="scale")return!1}var b=this._cacheCanvas,w=this._limitCacheSize(this._getCacheCanvasDimensions()),S=w.width,C=w.height,T,k,A=w.zoomX,P=w.zoomY,z=S!==this.cacheWidth||C!==this.cacheHeight,I=this.zoomX!==A||this.zoomY!==P,$=z||I;return $?(z?(b.width=S,b.height=C):(this._cacheContext.setTransform(1,0,0,1,0,0),this._cacheContext.clearRect(0,0,b.width,b.height)),T=w.x/2,k=w.y/2,this.cacheTranslationX=Math.round(b.width/2-T)+T,this.cacheTranslationY=Math.round(b.height/2-k)+k,this.cacheWidth=S,this.cacheHeight=C,this._cacheContext.translate(this.cacheTranslationX,this.cacheTranslationY),this._cacheContext.scale(A,P),this.zoomX=A,this.zoomY=P,!0):!1},setOptions:function(m){this._setOptions(m),this._initGradient(m.fill,"fill"),this._initGradient(m.stroke,"stroke"),this._initPattern(m.fill,"fill"),this._initPattern(m.stroke,"stroke")},transform:function(m){var v=this.group&&!this.group._transformDone||this.group&&this.canvas&&m===this.canvas.contextTop,y=this.calcTransformMatrix(!v);m.transform(y[0],y[1],y[2],y[3],y[4],y[5])},toObject:function(m){var v=a.Object.NUM_FRACTION_DIGITS,y={type:this.type,version:a.version,originX:this.originX,originY:this.originY,left:c(this.left,v),top:c(this.top,v),width:c(this.width,v),height:c(this.height,v),fill:this.fill&&this.fill.toObject?this.fill.toObject():this.fill,stroke:this.stroke&&this.stroke.toObject?this.stroke.toObject():this.stroke,strokeWidth:c(this.strokeWidth,v),strokeDashArray:this.strokeDashArray?this.strokeDashArray.concat():this.strokeDashArray,strokeLineCap:this.strokeLineCap,strokeDashOffset:this.strokeDashOffset,strokeLineJoin:this.strokeLineJoin,strokeUniform:this.strokeUniform,strokeMiterLimit:c(this.strokeMiterLimit,v),scaleX:c(this.scaleX,v),scaleY:c(this.scaleY,v),angle:c(this.angle,v),flipX:this.flipX,flipY:this.flipY,opacity:c(this.opacity,v),shadow:this.shadow&&this.shadow.toObject?this.shadow.toObject():this.shadow,visible:this.visible,backgroundColor:this.backgroundColor,fillRule:this.fillRule,paintFirst:this.paintFirst,globalCompositeOperation:this.globalCompositeOperation,skewX:c(this.skewX,v),skewY:c(this.skewY,v)};return this.clipPath&&!this.clipPath.excludeFromExport&&(y.clipPath=this.clipPath.toObject(m),y.clipPath.inverted=this.clipPath.inverted,y.clipPath.absolutePositioned=this.clipPath.absolutePositioned),a.util.populateWithProperties(this,y,m),this.includeDefaultValues||(y=this._removeDefaultValues(y)),y},toDatalessObject:function(m){return this.toObject(m)},_removeDefaultValues:function(m){var v=a.util.getKlass(m.type).prototype,y=v.stateProperties;return y.forEach(function(b){b==="left"||b==="top"||(m[b]===v[b]&&delete m[b],Array.isArray(m[b])&&Array.isArray(v[b])&&m[b].length===0&&v[b].length===0&&delete m[b])}),m},toString:function(){return"#<fabric."+f(this.type)+">"},getObjectScaling:function(){if(!this.group)return{scaleX:this.scaleX,scaleY:this.scaleY};var m=a.util.qrDecompose(this.calcTransformMatrix());return{scaleX:Math.abs(m.scaleX),scaleY:Math.abs(m.scaleY)}},getTotalObjectScaling:function(){var m=this.getObjectScaling(),v=m.scaleX,y=m.scaleY;if(this.canvas){var b=this.canvas.getZoom(),w=this.canvas.getRetinaScaling();v*=b*w,y*=b*w}return{scaleX:v,scaleY:y}},getObjectOpacity:function(){var m=this.opacity;return this.group&&(m*=this.group.getObjectOpacity()),m},_set:function(m,v){var y=m==="scaleX"||m==="scaleY",b=this[m]!==v,w=!1;return y&&(v=this._constrainScale(v)),m==="scaleX"&&v<0?(this.flipX=!this.flipX,v*=-1):m==="scaleY"&&v<0?(this.flipY=!this.flipY,v*=-1):m==="shadow"&&v&&!(v instanceof a.Shadow)?v=new a.Shadow(v):m==="dirty"&&this.group&&this.group.set("dirty",v),this[m]=v,b&&(w=this.group&&this.group.isOnACache(),this.cacheProperties.indexOf(m)>-1?(this.dirty=!0,w&&this.group.set("dirty",!0)):w&&this.stateProperties.indexOf(m)>-1&&this.group.set("dirty",!0)),this},setOnGroup:function(){},getViewportTransform:function(){return this.canvas&&this.canvas.viewportTransform?this.canvas.viewportTransform:a.iMatrix.concat()},isNotVisible:function(){return this.opacity===0||!this.width&&!this.height&&this.strokeWidth===0||!this.visible},render:function(m){this.isNotVisible()||this.canvas&&this.canvas.skipOffscreen&&!this.group&&!this.isOnScreen()||(m.save(),this._setupCompositeOperation(m),this.drawSelectionBackground(m),this.transform(m),this._setOpacity(m),this._setShadow(m,this),this.shouldCache()?(this.renderCache(),this.drawCacheOnCanvas(m)):(this._removeCacheCanvas(),this.dirty=!1,this.drawObject(m),this.objectCaching&&this.statefullCache&&this.saveState({propertySet:"cacheProperties"})),m.restore())},renderCache:function(m){m=m||{},(!this._cacheCanvas||!this._cacheContext)&&this._createCacheCanvas(),this.isCacheDirty()&&(this.statefullCache&&this.saveState({propertySet:"cacheProperties"}),this.drawObject(this._cacheContext,m.forClipping),this.dirty=!1)},_removeCacheCanvas:function(){this._cacheCanvas=null,this._cacheContext=null,this.cacheWidth=0,this.cacheHeight=0},hasStroke:function(){return this.stroke&&this.stroke!=="transparent"&&this.strokeWidth!==0},hasFill:function(){return this.fill&&this.fill!=="transparent"},needsItsOwnCache:function(){return!!(this.paintFirst==="stroke"&&this.hasFill()&&this.hasStroke()&&typeof this.shadow=="object"||this.clipPath)},shouldCache:function(){return this.ownCaching=this.needsItsOwnCache()||this.objectCaching&&(!this.group||!this.group.isOnACache()),this.ownCaching},willDrawShadow:function(){return!!this.shadow&&(this.shadow.offsetX!==0||this.shadow.offsetY!==0)},drawClipPathOnCache:function(m,v){if(m.save(),v.inverted?m.globalCompositeOperation="destination-out":m.globalCompositeOperation="destination-in",v.absolutePositioned){var y=a.util.invertTransform(this.calcTransformMatrix());m.transform(y[0],y[1],y[2],y[3],y[4],y[5])}v.transform(m),m.scale(1/v.zoomX,1/v.zoomY),m.drawImage(v._cacheCanvas,-v.cacheTranslationX,-v.cacheTranslationY),m.restore()},drawObject:function(m,v){var y=this.fill,b=this.stroke;v?(this.fill="black",this.stroke="",this._setClippingProperties(m)):this._renderBackground(m),this._render(m),this._drawClipPath(m,this.clipPath),this.fill=y,this.stroke=b},_drawClipPath:function(m,v){!v||(v.canvas=this.canvas,v.shouldCache(),v._transformDone=!0,v.renderCache({forClipping:!0}),this.drawClipPathOnCache(m,v))},drawCacheOnCanvas:function(m){m.scale(1/this.zoomX,1/this.zoomY),m.drawImage(this._cacheCanvas,-this.cacheTranslationX,-this.cacheTranslationY)},isCacheDirty:function(m){if(this.isNotVisible())return!1;if(this._cacheCanvas&&this._cacheContext&&!m&&this._updateCacheCanvas())return!0;if(this.dirty||this.clipPath&&this.clipPath.absolutePositioned||this.statefullCache&&this.hasStateChanged("cacheProperties")){if(this._cacheCanvas&&this._cacheContext&&!m){var v=this.cacheWidth/this.zoomX,y=this.cacheHeight/this.zoomY;this._cacheContext.clearRect(-v/2,-y/2,v,y)}return!0}return!1},_renderBackground:function(m){if(!!this.backgroundColor){var v=this._getNonTransformedDimensions();m.fillStyle=this.backgroundColor,m.fillRect(-v.x/2,-v.y/2,v.x,v.y),this._removeShadow(m)}},_setOpacity:function(m){this.group&&!this.group._transformDone?m.globalAlpha=this.getObjectOpacity():m.globalAlpha*=this.opacity},_setStrokeStyles:function(m,v){var y=v.stroke;y&&(m.lineWidth=v.strokeWidth,m.lineCap=v.strokeLineCap,m.lineDashOffset=v.strokeDashOffset,m.lineJoin=v.strokeLineJoin,m.miterLimit=v.strokeMiterLimit,y.toLive?y.gradientUnits==="percentage"||y.gradientTransform||y.patternTransform?this._applyPatternForTransformedGradient(m,y):(m.strokeStyle=y.toLive(m,this),this._applyPatternGradientTransform(m,y)):m.strokeStyle=v.stroke)},_setFillStyles:function(m,v){var y=v.fill;y&&(y.toLive?(m.fillStyle=y.toLive(m,this),this._applyPatternGradientTransform(m,v.fill)):m.fillStyle=y)},_setClippingProperties:function(m){m.globalAlpha=1,m.strokeStyle="transparent",m.fillStyle="#000000"},_setLineDash:function(m,v){!v||v.length===0||(1&v.length&&v.push.apply(v,v),m.setLineDash(v))},_renderControls:function(m,v){var y=this.getViewportTransform(),b=this.calcTransformMatrix(),w,S,C;v=v||{},S=typeof v.hasBorders<"u"?v.hasBorders:this.hasBorders,C=typeof v.hasControls<"u"?v.hasControls:this.hasControls,b=a.util.multiplyTransformMatrices(y,b),w=a.util.qrDecompose(b),m.save(),m.translate(w.translateX,w.translateY),m.lineWidth=1*this.borderScaleFactor,this.group||(m.globalAlpha=this.isMoving?this.borderOpacityWhenMoving:1),this.flipX&&(w.angle-=180),m.rotate(s(this.group?w.angle:this.angle)),v.forActiveSelection||this.group?S&&this.drawBordersInGroup(m,w,v):S&&this.drawBorders(m,v),C&&this.drawControls(m,v),m.restore()},_setShadow:function(m){if(!!this.shadow){var v=this.shadow,y=this.canvas,b,w=y&&y.viewportTransform[0]||1,S=y&&y.viewportTransform[3]||1;v.nonScaling?b={scaleX:1,scaleY:1}:b=this.getObjectScaling(),y&&y._isRetinaScaling()&&(w*=a.devicePixelRatio,S*=a.devicePixelRatio),m.shadowColor=v.color,m.shadowBlur=v.blur*a.browserShadowBlurConstant*(w+S)*(b.scaleX+b.scaleY)/4,m.shadowOffsetX=v.offsetX*w*b.scaleX,m.shadowOffsetY=v.offsetY*S*b.scaleY}},_removeShadow:function(m){!this.shadow||(m.shadowColor="",m.shadowBlur=m.shadowOffsetX=m.shadowOffsetY=0)},_applyPatternGradientTransform:function(m,v){if(!v||!v.toLive)return{offsetX:0,offsetY:0};var y=v.gradientTransform||v.patternTransform,b=-this.width/2+v.offsetX||0,w=-this.height/2+v.offsetY||0;return v.gradientUnits==="percentage"?m.transform(this.width,0,0,this.height,b,w):m.transform(1,0,0,1,b,w),y&&m.transform(y[0],y[1],y[2],y[3],y[4],y[5]),{offsetX:b,offsetY:w}},_renderPaintInOrder:function(m){this.paintFirst==="stroke"?(this._renderStroke(m),this._renderFill(m)):(this._renderFill(m),this._renderStroke(m))},_render:function(){},_renderFill:function(m){!this.fill||(m.save(),this._setFillStyles(m,this),this.fillRule==="evenodd"?m.fill("evenodd"):m.fill(),m.restore())},_renderStroke:function(m){if(!(!this.stroke||this.strokeWidth===0)){if(this.shadow&&!this.shadow.affectStroke&&this._removeShadow(m),m.save(),this.strokeUniform&&this.group){var v=this.getObjectScaling();m.scale(1/v.scaleX,1/v.scaleY)}else this.strokeUniform&&m.scale(1/this.scaleX,1/this.scaleY);this._setLineDash(m,this.strokeDashArray),this._setStrokeStyles(m,this),m.stroke(),m.restore()}},_applyPatternForTransformedGradient:function(m,v){var y=this._limitCacheSize(this._getCacheCanvasDimensions()),b=a.util.createCanvasElement(),w,S=this.canvas.getRetinaScaling(),C=y.x/this.scaleX/S,T=y.y/this.scaleY/S;b.width=Math.ceil(C),b.height=Math.ceil(T),w=b.getContext("2d"),w.beginPath(),w.moveTo(0,0),w.lineTo(C,0),w.lineTo(C,T),w.lineTo(0,T),w.closePath(),w.translate(C/2,T/2),w.scale(y.zoomX/this.scaleX/S,y.zoomY/this.scaleY/S),this._applyPatternGradientTransform(w,v),w.fillStyle=v.toLive(m),w.fill(),m.translate(-this.width/2-this.strokeWidth/2,-this.height/2-this.strokeWidth/2),m.scale(S*this.scaleX/y.zoomX,S*this.scaleY/y.zoomY),m.strokeStyle=w.createPattern(b,"no-repeat")},_findCenterFromElement:function(){return{x:this.left+this.width/2,y:this.top+this.height/2}},_assignTransformMatrixProps:function(){if(this.transformMatrix){var m=a.util.qrDecompose(this.transformMatrix);this.flipX=!1,this.flipY=!1,this.set("scaleX",m.scaleX),this.set("scaleY",m.scaleY),this.angle=m.angle,this.skewX=m.skewX,this.skewY=0}},_removeTransformMatrix:function(m){var v=this._findCenterFromElement();this.transformMatrix&&(this._assignTransformMatrixProps(),v=a.util.transformPoint(v,this.transformMatrix)),this.transformMatrix=null,m&&(this.scaleX*=m.scaleX,this.scaleY*=m.scaleY,this.cropX=m.cropX,this.cropY=m.cropY,v.x+=m.offsetLeft,v.y+=m.offsetTop,this.width=m.width,this.height=m.height),this.setPositionByOrigin(v,"center","center")},clone:function(m,v){var y=this.toObject(v);this.constructor.fromObject?this.constructor.fromObject(y,m):a.Object._fromObject("Object",y,m)},cloneAsImage:function(m,v){var y=this.toCanvasElement(v);return m&&m(new a.Image(y)),this},toCanvasElement:function(m){m||(m={});var v=a.util,y=v.saveObjectTransform(this),b=this.group,w=this.shadow,S=Math.abs,C=(m.multiplier||1)*(m.enableRetinaScaling?a.devicePixelRatio:1);delete this.group,m.withoutTransform&&v.resetObjectTransform(this),m.withoutShadow&&(this.shadow=null);var T=a.util.createCanvasElement(),k=this.getBoundingRect(!0,!0),A=this.shadow,P,z={x:0,y:0},I,$,O;A&&(I=A.blur,A.nonScaling?P={scaleX:1,scaleY:1}:P=this.getObjectScaling(),z.x=2*Math.round(S(A.offsetX)+I)*S(P.scaleX),z.y=2*Math.round(S(A.offsetY)+I)*S(P.scaleY)),$=k.width+z.x,O=k.height+z.y,T.width=Math.ceil($),T.height=Math.ceil(O);var Y=new a.StaticCanvas(T,{enableRetinaScaling:!1,renderOnAddRemove:!1,skipOffscreen:!1});m.format==="jpeg"&&(Y.backgroundColor="#fff"),this.setPositionByOrigin(new a.Point(Y.width/2,Y.height/2),"center","center");var re=this.canvas;Y.add(this);var q=Y.toCanvasElement(C||1,m);return this.shadow=w,this.set("canvas",re),b&&(this.group=b),this.set(y).setCoords(),Y._objects=[],Y.dispose(),Y=null,q},toDataURL:function(m){return m||(m={}),a.util.toDataURL(this.toCanvasElement(m),m.format||"png",m.quality||1)},isType:function(m){return arguments.length>1?Array.from(arguments).includes(this.type):this.type===m},complexity:function(){return 1},toJSON:function(m){return this.toObject(m)},rotate:function(m){var v=(this.originX!=="center"||this.originY!=="center")&&this.centeredRotation;return v&&this._setOriginToCenter(),this.set("angle",m),v&&this._resetOrigin(),this},centerH:function(){return this.canvas&&this.canvas.centerObjectH(this),this},viewportCenterH:function(){return this.canvas&&this.canvas.viewportCenterObjectH(this),this},centerV:function(){return this.canvas&&this.canvas.centerObjectV(this),this},viewportCenterV:function(){return this.canvas&&this.canvas.viewportCenterObjectV(this),this},center:function(){return this.canvas&&this.canvas.centerObject(this),this},viewportCenter:function(){return this.canvas&&this.canvas.viewportCenterObject(this),this},getLocalPointer:function(m,v){v=v||this.canvas.getPointer(m);var y=new a.Point(v.x,v.y),b=this._getLeftTopCoords();return this.angle&&(y=a.util.rotatePoint(y,b,s(-this.angle))),{x:y.x-b.x,y:y.y-b.y}},_setupCompositeOperation:function(m){this.globalCompositeOperation&&(m.globalCompositeOperation=this.globalCompositeOperation)},dispose:function(){a.runningAnimations&&a.runningAnimations.cancelByTarget(this)}}),a.util.createAccessors&&a.util.createAccessors(a.Object),l(a.Object.prototype,a.Observable),a.Object.NUM_FRACTION_DIGITS=2,a.Object.ENLIVEN_PROPS=["clipPath"],a.Object._fromObject=function(m,v,y,b){var w=a[m];v=h(v,!0),a.util.enlivenPatterns([v.fill,v.stroke],function(S){typeof S[0]<"u"&&(v.fill=S[0]),typeof S[1]<"u"&&(v.stroke=S[1]),a.util.enlivenObjectEnlivables(v,v,function(){var C=b?new w(v[b],v):new w(v);y&&y(C)})})},a.Object.__uid=0)}(e),function(){var o=t.util.degreesToRadians,a={left:-.5,center:0,right:.5},l={top:-.5,center:0,bottom:.5};t.util.object.extend(t.Object.prototype,{translateToGivenOrigin:function(h,c,f,s,d){var g=h.x,m=h.y,v,y,b;return typeof c=="string"?c=a[c]:c-=.5,typeof s=="string"?s=a[s]:s-=.5,v=s-c,typeof f=="string"?f=l[f]:f-=.5,typeof d=="string"?d=l[d]:d-=.5,y=d-f,(v||y)&&(b=this._getTransformedDimensions(),g=h.x+v*b.x,m=h.y+y*b.y),new t.Point(g,m)},translateToCenterPoint:function(h,c,f){var s=this.translateToGivenOrigin(h,c,f,"center","center");return this.angle?t.util.rotatePoint(s,h,o(this.angle)):s},translateToOriginPoint:function(h,c,f){var s=this.translateToGivenOrigin(h,"center","center",c,f);return this.angle?t.util.rotatePoint(s,h,o(this.angle)):s},getCenterPoint:function(){var h=new t.Point(this.left,this.top);return this.translateToCenterPoint(h,this.originX,this.originY)},getPointByOrigin:function(h,c){var f=this.getCenterPoint();return this.translateToOriginPoint(f,h,c)},toLocalPoint:function(h,c,f){var s=this.getCenterPoint(),d,g;return typeof c<"u"&&typeof f<"u"?d=this.translateToGivenOrigin(s,"center","center",c,f):d=new t.Point(this.left,this.top),g=new t.Point(h.x,h.y),this.angle&&(g=t.util.rotatePoint(g,s,-o(this.angle))),g.subtractEquals(d)},setPositionByOrigin:function(h,c,f){var s=this.translateToCenterPoint(h,c,f),d=this.translateToOriginPoint(s,this.originX,this.originY);this.set("left",d.x),this.set("top",d.y)},adjustPosition:function(h){var c=o(this.angle),f=this.getScaledWidth(),s=t.util.cos(c)*f,d=t.util.sin(c)*f,g,m;typeof this.originX=="string"?g=a[this.originX]:g=this.originX-.5,typeof h=="string"?m=a[h]:m=h-.5,this.left+=s*(m-g),this.top+=d*(m-g),this.setCoords(),this.originX=h},_setOriginToCenter:function(){this._originalOriginX=this.originX,this._originalOriginY=this.originY;var h=this.getCenterPoint();this.originX="center",this.originY="center",this.left=h.x,this.top=h.y},_resetOrigin:function(){var h=this.translateToOriginPoint(this.getCenterPoint(),this._originalOriginX,this._originalOriginY);this.originX=this._originalOriginX,this.originY=this._originalOriginY,this.left=h.x,this.top=h.y,this._originalOriginX=null,this._originalOriginY=null},_getLeftTopCoords:function(){return this.translateToOriginPoint(this.getCenterPoint(),"left","top")}})}(),function(){function o(f){return[new t.Point(f.tl.x,f.tl.y),new t.Point(f.tr.x,f.tr.y),new t.Point(f.br.x,f.br.y),new t.Point(f.bl.x,f.bl.y)]}var a=t.util,l=a.degreesToRadians,h=a.multiplyTransformMatrices,c=a.transformPoint;a.object.extend(t.Object.prototype,{oCoords:null,aCoords:null,lineCoords:null,ownMatrixCache:null,matrixCache:null,controls:{},_getCoords:function(f,s){return s?f?this.calcACoords():this.calcLineCoords():((!this.aCoords||!this.lineCoords)&&this.setCoords(!0),f?this.aCoords:this.lineCoords)},getCoords:function(f,s){return o(this._getCoords(f,s))},intersectsWithRect:function(f,s,d,g){var m=this.getCoords(d,g),v=t.Intersection.intersectPolygonRectangle(m,f,s);return v.status==="Intersection"},intersectsWithObject:function(f,s,d){var g=t.Intersection.intersectPolygonPolygon(this.getCoords(s,d),f.getCoords(s,d));return g.status==="Intersection"||f.isContainedWithinObject(this,s,d)||this.isContainedWithinObject(f,s,d)},isContainedWithinObject:function(f,s,d){for(var g=this.getCoords(s,d),m=s?f.aCoords:f.lineCoords,v=0,y=f._getImageLines(m);v<4;v++)if(!f.containsPoint(g[v],y))return!1;return!0},isContainedWithinRect:function(f,s,d,g){var m=this.getBoundingRect(d,g);return m.left>=f.x&&m.left+m.width<=s.x&&m.top>=f.y&&m.top+m.height<=s.y},containsPoint:function(f,v,d,g){var m=this._getCoords(d,g),v=v||this._getImageLines(m),y=this._findCrossPoints(f,v);return y!==0&&y%2===1},isOnScreen:function(f){if(!this.canvas)return!1;var s=this.canvas.vptCoords.tl,d=this.canvas.vptCoords.br,g=this.getCoords(!0,f);return g.some(function(m){return m.x<=d.x&&m.x>=s.x&&m.y<=d.y&&m.y>=s.y})||this.intersectsWithRect(s,d,!0,f)?!0:this._containsCenterOfCanvas(s,d,f)},_containsCenterOfCanvas:function(f,s,d){var g={x:(f.x+s.x)/2,y:(f.y+s.y)/2};return!!this.containsPoint(g,null,!0,d)},isPartiallyOnScreen:function(f){if(!this.canvas)return!1;var s=this.canvas.vptCoords.tl,d=this.canvas.vptCoords.br;if(this.intersectsWithRect(s,d,!0,f))return!0;var g=this.getCoords(!0,f).every(function(m){return(m.x>=d.x||m.x<=s.x)&&(m.y>=d.y||m.y<=s.y)});return g&&this._containsCenterOfCanvas(s,d,f)},_getImageLines:function(f){var s={topline:{o:f.tl,d:f.tr},rightline:{o:f.tr,d:f.br},bottomline:{o:f.br,d:f.bl},leftline:{o:f.bl,d:f.tl}};return s},_findCrossPoints:function(f,s){var d,g,m,v,y,b=0,w;for(var S in s)if(w=s[S],!(w.o.y<f.y&&w.d.y<f.y)&&!(w.o.y>=f.y&&w.d.y>=f.y)&&(w.o.x===w.d.x&&w.o.x>=f.x?y=w.o.x:(d=0,g=(w.d.y-w.o.y)/(w.d.x-w.o.x),m=f.y-d*f.x,v=w.o.y-g*w.o.x,y=-(m-v)/(d-g)),y>=f.x&&(b+=1),b===2))break;return b},getBoundingRect:function(f,s){var d=this.getCoords(f,s);return a.makeBoundingBoxFromPoints(d)},getScaledWidth:function(){return this._getTransformedDimensions().x},getScaledHeight:function(){return this._getTransformedDimensions().y},_constrainScale:function(f){return Math.abs(f)<this.minScaleLimit?f<0?-this.minScaleLimit:this.minScaleLimit:f===0?1e-4:f},scale:function(f){return this._set("scaleX",f),this._set("scaleY",f),this.setCoords()},scaleToWidth:function(f,s){var d=this.getBoundingRect(s).width/this.getScaledWidth();return this.scale(f/this.width/d)},scaleToHeight:function(f,s){var d=this.getBoundingRect(s).height/this.getScaledHeight();return this.scale(f/this.height/d)},calcLineCoords:function(){var f=this.getViewportTransform(),s=this.padding,d=l(this.angle),g=a.cos(d),m=a.sin(d),v=g*s,y=m*s,b=v+y,w=v-y,S=this.calcACoords(),C={tl:c(S.tl,f),tr:c(S.tr,f),bl:c(S.bl,f),br:c(S.br,f)};return s&&(C.tl.x-=w,C.tl.y-=b,C.tr.x+=b,C.tr.y-=w,C.bl.x-=b,C.bl.y+=w,C.br.x+=w,C.br.y+=b),C},calcOCoords:function(){var f=this._calcRotateMatrix(),s=this._calcTranslateMatrix(),d=this.getViewportTransform(),g=h(d,s),m=h(g,f),m=h(m,[1/d[0],0,0,1/d[3],0,0]),v=this._calculateCurrentDimensions(),y={};return this.forEachControl(function(b,w,S){y[w]=b.positionHandler(v,m,S)}),y},calcACoords:function(){var f=this._calcRotateMatrix(),s=this._calcTranslateMatrix(),d=h(s,f),g=this._getTransformedDimensions(),m=g.x/2,v=g.y/2;return{tl:c({x:-m,y:-v},d),tr:c({x:m,y:-v},d),bl:c({x:-m,y:v},d),br:c({x:m,y:v},d)}},setCoords:function(f){return this.aCoords=this.calcACoords(),this.lineCoords=this.group?this.aCoords:this.calcLineCoords(),f?this:(this.oCoords=this.calcOCoords(),this._setCornerCoords&&this._setCornerCoords(),this)},_calcRotateMatrix:function(){return a.calcRotateMatrix(this)},_calcTranslateMatrix:function(){var f=this.getCenterPoint();return[1,0,0,1,f.x,f.y]},transformMatrixKey:function(f){var s="_",d="";return!f&&this.group&&(d=this.group.transformMatrixKey(f)+s),d+this.top+s+this.left+s+this.scaleX+s+this.scaleY+s+this.skewX+s+this.skewY+s+this.angle+s+this.originX+s+this.originY+s+this.width+s+this.height+s+this.strokeWidth+this.flipX+this.flipY},calcTransformMatrix:function(f){var s=this.calcOwnMatrix();if(f||!this.group)return s;var d=this.transformMatrixKey(f),g=this.matrixCache||(this.matrixCache={});return g.key===d?g.value:(this.group&&(s=h(this.group.calcTransformMatrix(!1),s)),g.key=d,g.value=s,s)},calcOwnMatrix:function(){var f=this.transformMatrixKey(!0),s=this.ownMatrixCache||(this.ownMatrixCache={});if(s.key===f)return s.value;var d=this._calcTranslateMatrix(),g={angle:this.angle,translateX:d[4],translateY:d[5],scaleX:this.scaleX,scaleY:this.scaleY,skewX:this.skewX,skewY:this.skewY,flipX:this.flipX,flipY:this.flipY};return s.key=f,s.value=a.composeMatrix(g),s.value},_getNonTransformedDimensions:function(){var f=this.strokeWidth,s=this.width+f,d=this.height+f;return{x:s,y:d}},_getTransformedDimensions:function(f,s){typeof f>"u"&&(f=this.skewX),typeof s>"u"&&(s=this.skewY);var d,g,m,v=f===0&&s===0;if(this.strokeUniform?(g=this.width,m=this.height):(d=this._getNonTransformedDimensions(),g=d.x,m=d.y),v)return this._finalizeDimensions(g*this.scaleX,m*this.scaleY);var y=a.sizeAfterTransform(g,m,{scaleX:this.scaleX,scaleY:this.scaleY,skewX:f,skewY:s});return this._finalizeDimensions(y.x,y.y)},_finalizeDimensions:function(f,s){return this.strokeUniform?{x:f+this.strokeWidth,y:s+this.strokeWidth}:{x:f,y:s}},_calculateCurrentDimensions:function(){var f=this.getViewportTransform(),s=this._getTransformedDimensions(),d=c(s,f,!0);return d.scalarAdd(2*this.padding)}})}(),t.util.object.extend(t.Object.prototype,{sendToBack:function(){return this.group?t.StaticCanvas.prototype.sendToBack.call(this.group,this):this.canvas&&this.canvas.sendToBack(this),this},bringToFront:function(){return this.group?t.StaticCanvas.prototype.bringToFront.call(this.group,this):this.canvas&&this.canvas.bringToFront(this),this},sendBackwards:function(o){return this.group?t.StaticCanvas.prototype.sendBackwards.call(this.group,this,o):this.canvas&&this.canvas.sendBackwards(this,o),this},bringForward:function(o){return this.group?t.StaticCanvas.prototype.bringForward.call(this.group,this,o):this.canvas&&this.canvas.bringForward(this,o),this},moveTo:function(o){return this.group&&this.group.type!=="activeSelection"?t.StaticCanvas.prototype.moveTo.call(this.group,this,o):this.canvas&&this.canvas.moveTo(this,o),this}}),function(){function o(l,h){if(h){if(h.toLive)return l+": url(#SVGID_"+h.id+"); ";var c=new t.Color(h),f=l+": "+c.toRgb()+"; ",s=c.getAlpha();return s!==1&&(f+=l+"-opacity: "+s.toString()+"; "),f}else return l+": none; "}var a=t.util.toFixed;t.util.object.extend(t.Object.prototype,{getSvgStyles:function(l){var h=this.fillRule?this.fillRule:"nonzero",c=this.strokeWidth?this.strokeWidth:"0",f=this.strokeDashArray?this.strokeDashArray.join(" "):"none",s=this.strokeDashOffset?this.strokeDashOffset:"0",d=this.strokeLineCap?this.strokeLineCap:"butt",g=this.strokeLineJoin?this.strokeLineJoin:"miter",m=this.strokeMiterLimit?this.strokeMiterLimit:"4",v=typeof this.opacity<"u"?this.opacity:"1",y=this.visible?"":" visibility: hidden;",b=l?"":this.getSvgFilter(),w=o("fill",this.fill),S=o("stroke",this.stroke);return[S,"stroke-width: ",c,"; ","stroke-dasharray: ",f,"; ","stroke-linecap: ",d,"; ","stroke-dashoffset: ",s,"; ","stroke-linejoin: ",g,"; ","stroke-miterlimit: ",m,"; ",w,"fill-rule: ",h,"; ","opacity: ",v,";",b,y].join("")},getSvgSpanStyles:function(l,h){var c="; ",s=l.fontFamily?"font-family: "+(l.fontFamily.indexOf("'")===-1&&l.fontFamily.indexOf('"')===-1?"'"+l.fontFamily+"'":l.fontFamily)+c:"",f=l.strokeWidth?"stroke-width: "+l.strokeWidth+c:"",s=s,d=l.fontSize?"font-size: "+l.fontSize+"px"+c:"",g=l.fontStyle?"font-style: "+l.fontStyle+c:"",m=l.fontWeight?"font-weight: "+l.fontWeight+c:"",v=l.fill?o("fill",l.fill):"",y=l.stroke?o("stroke",l.stroke):"",b=this.getSvgTextDecoration(l),w=l.deltaY?"baseline-shift: "+-l.deltaY+"; ":"";return b&&(b="text-decoration: "+b+c),[y,f,s,d,g,m,b,v,w,h?"white-space: pre; ":""].join("")},getSvgTextDecoration:function(l){return["overline","underline","line-through"].filter(function(h){return l[h.replace("-","")]}).join(" ")},getSvgFilter:function(){return this.shadow?"filter: url(#SVGID_"+this.shadow.id+");":""},getSvgCommons:function(){return[this.id?'id="'+this.id+'" ':"",this.clipPath?'clip-path="url(#'+this.clipPath.clipPathId+')" ':""].join("")},getSvgTransform:function(l,h){var c=l?this.calcTransformMatrix():this.calcOwnMatrix(),f='transform="'+t.util.matrixToSVG(c);return f+(h||"")+'" '},_setSVGBg:function(l){if(this.backgroundColor){var h=t.Object.NUM_FRACTION_DIGITS;l.push(" <rect ",this._getFillAttributes(this.backgroundColor),' x="',a(-this.width/2,h),'" y="',a(-this.height/2,h),'" width="',a(this.width,h),'" height="',a(this.height,h),`"></rect>
|
|
`)}},toSVG:function(l){return this._createBaseSVGMarkup(this._toSVG(l),{reviver:l})},toClipPathSVG:function(l){return" "+this._createBaseClipPathSVGMarkup(this._toSVG(l),{reviver:l})},_createBaseClipPathSVGMarkup:function(l,h){h=h||{};var c=h.reviver,f=h.additionalTransform||"",s=[this.getSvgTransform(!0,f),this.getSvgCommons()].join(""),d=l.indexOf("COMMON_PARTS");return l[d]=s,c?c(l.join("")):l.join("")},_createBaseSVGMarkup:function(l,h){h=h||{};var c=h.noStyle,f=h.reviver,s=c?"":'style="'+this.getSvgStyles()+'" ',d=h.withShadow?'style="'+this.getSvgFilter()+'" ':"",g=this.clipPath,m=this.strokeUniform?'vector-effect="non-scaling-stroke" ':"",v=g&&g.absolutePositioned,y=this.stroke,b=this.fill,w=this.shadow,S,C=[],T,k=l.indexOf("COMMON_PARTS"),A=h.additionalTransform;return g&&(g.clipPathId="CLIPPATH_"+t.Object.__uid++,T='<clipPath id="'+g.clipPathId+`" >
|
|
`+g.toClipPathSVG(f)+`</clipPath>
|
|
`),v&&C.push("<g ",d,this.getSvgCommons(),` >
|
|
`),C.push("<g ",this.getSvgTransform(!1),v?"":d+this.getSvgCommons(),` >
|
|
`),S=[s,m,c?"":this.addPaintOrder()," ",A?'transform="'+A+'" ':""].join(""),l[k]=S,b&&b.toLive&&C.push(b.toSVG(this)),y&&y.toLive&&C.push(y.toSVG(this)),w&&C.push(w.toSVG(this)),g&&C.push(T),C.push(l.join("")),C.push(`</g>
|
|
`),v&&C.push(`</g>
|
|
`),f?f(C.join("")):C.join("")},addPaintOrder:function(){return this.paintFirst!=="fill"?' paint-order="'+this.paintFirst+'" ':""}})}(),function(){var o=t.util.object.extend,a="stateProperties";function l(c,f,s){var d={},g=!0;s.forEach(function(m){d[m]=c[m]}),o(c[f],d,g)}function h(c,f,s){if(c===f)return!0;if(Array.isArray(c)){if(!Array.isArray(f)||c.length!==f.length)return!1;for(var d=0,g=c.length;d<g;d++)if(!h(c[d],f[d]))return!1;return!0}else if(c&&typeof c=="object"){var m=Object.keys(c),v;if(!f||typeof f!="object"||!s&&m.length!==Object.keys(f).length)return!1;for(var d=0,g=m.length;d<g;d++)if(v=m[d],!(v==="canvas"||v==="group")&&!h(c[v],f[v]))return!1;return!0}}t.util.object.extend(t.Object.prototype,{hasStateChanged:function(c){c=c||a;var f="_"+c;return Object.keys(this[f]).length<this[c].length?!0:!h(this[f],this,!0)},saveState:function(c){var f=c&&c.propertySet||a,s="_"+f;return this[s]?(l(this,s,this[f]),c&&c.stateProperties&&l(this,s,c.stateProperties),this):this.setupState(c)},setupState:function(c){c=c||{};var f=c.propertySet||a;return c.propertySet=f,this["_"+f]={},this.saveState(c),this}})}(),function(){var o=t.util.degreesToRadians;t.util.object.extend(t.Object.prototype,{_findTargetCorner:function(a,l){if(!this.hasControls||this.group||!this.canvas||this.canvas._activeObject!==this)return!1;var h=a.x,c=a.y,f,s,d=Object.keys(this.oCoords),g=d.length-1,m;for(this.__corner=0;g>=0;g--)if(m=d[g],!!this.isControlVisible(m)&&(s=this._getImageLines(l?this.oCoords[m].touchCorner:this.oCoords[m].corner),f=this._findCrossPoints({x:h,y:c},s),f!==0&&f%2===1))return this.__corner=m,m;return!1},forEachControl:function(a){for(var l in this.controls)a(this.controls[l],l,this)},_setCornerCoords:function(){var a=this.oCoords;for(var l in a){var h=this.controls[l];a[l].corner=h.calcCornerCoords(this.angle,this.cornerSize,a[l].x,a[l].y,!1),a[l].touchCorner=h.calcCornerCoords(this.angle,this.touchCornerSize,a[l].x,a[l].y,!0)}},drawSelectionBackground:function(a){if(!this.selectionBackgroundColor||this.canvas&&!this.canvas.interactive||this.canvas&&this.canvas._activeObject!==this)return this;a.save();var l=this.getCenterPoint(),h=this._calculateCurrentDimensions(),c=this.canvas.viewportTransform;return a.translate(l.x,l.y),a.scale(1/c[0],1/c[3]),a.rotate(o(this.angle)),a.fillStyle=this.selectionBackgroundColor,a.fillRect(-h.x/2,-h.y/2,h.x,h.y),a.restore(),this},drawBorders:function(a,l){l=l||{};var h=this._calculateCurrentDimensions(),c=this.borderScaleFactor,f=h.x+c,s=h.y+c,d=typeof l.hasControls<"u"?l.hasControls:this.hasControls,g=!1;return a.save(),a.strokeStyle=l.borderColor||this.borderColor,this._setLineDash(a,l.borderDashArray||this.borderDashArray),a.strokeRect(-f/2,-s/2,f,s),d&&(a.beginPath(),this.forEachControl(function(m,v,y){m.withConnection&&m.getVisibility(y,v)&&(g=!0,a.moveTo(m.x*f,m.y*s),a.lineTo(m.x*f+m.offsetX,m.y*s+m.offsetY))}),g&&a.stroke()),a.restore(),this},drawBordersInGroup:function(a,l,h){h=h||{};var c=t.util.sizeAfterTransform(this.width,this.height,l),f=this.strokeWidth,s=this.strokeUniform,d=this.borderScaleFactor,g=c.x+f*(s?this.canvas.getZoom():l.scaleX)+d,m=c.y+f*(s?this.canvas.getZoom():l.scaleY)+d;return a.save(),this._setLineDash(a,h.borderDashArray||this.borderDashArray),a.strokeStyle=h.borderColor||this.borderColor,a.strokeRect(-g/2,-m/2,g,m),a.restore(),this},drawControls:function(a,l){l=l||{},a.save();var h=1,c,f;return this.canvas&&(h=this.canvas.getRetinaScaling()),a.setTransform(h,0,0,h,0,0),a.strokeStyle=a.fillStyle=l.cornerColor||this.cornerColor,this.transparentCorners||(a.strokeStyle=l.cornerStrokeColor||this.cornerStrokeColor),this._setLineDash(a,l.cornerDashArray||this.cornerDashArray),this.setCoords(),this.group&&(c=this.group.calcTransformMatrix()),this.forEachControl(function(s,d,g){f=g.oCoords[d],s.getVisibility(g,d)&&(c&&(f=t.util.transformPoint(f,c)),s.render(a,f.x,f.y,l,g))}),a.restore(),this},isControlVisible:function(a){return this.controls[a]&&this.controls[a].getVisibility(this,a)},setControlVisible:function(a,l){return this._controlsVisibility||(this._controlsVisibility={}),this._controlsVisibility[a]=l,this},setControlsVisibility:function(a){a||(a={});for(var l in a)this.setControlVisible(l,a[l]);return this},onDeselect:function(){},onSelect:function(){}})}(),t.util.object.extend(t.StaticCanvas.prototype,{FX_DURATION:500,fxCenterObjectH:function(o,a){a=a||{};var l=function(){},h=a.onComplete||l,c=a.onChange||l,f=this;return t.util.animate({target:this,startValue:o.left,endValue:this.getCenterPoint().x,duration:this.FX_DURATION,onChange:function(s){o.set("left",s),f.requestRenderAll(),c()},onComplete:function(){o.setCoords(),h()}})},fxCenterObjectV:function(o,a){a=a||{};var l=function(){},h=a.onComplete||l,c=a.onChange||l,f=this;return t.util.animate({target:this,startValue:o.top,endValue:this.getCenterPoint().y,duration:this.FX_DURATION,onChange:function(s){o.set("top",s),f.requestRenderAll(),c()},onComplete:function(){o.setCoords(),h()}})},fxRemove:function(o,a){a=a||{};var l=function(){},h=a.onComplete||l,c=a.onChange||l,f=this;return t.util.animate({target:this,startValue:o.opacity,endValue:0,duration:this.FX_DURATION,onChange:function(s){o.set("opacity",s),f.requestRenderAll(),c()},onComplete:function(){f.remove(o),h()}})}}),t.util.object.extend(t.Object.prototype,{animate:function(){if(arguments[0]&&typeof arguments[0]=="object"){var o=[],a,l,h=[];for(a in arguments[0])o.push(a);for(var c=0,f=o.length;c<f;c++)a=o[c],l=c!==f-1,h.push(this._animate(a,arguments[0][a],arguments[1],l));return h}else return this._animate.apply(this,arguments)},_animate:function(o,a,l,h){var c=this,f;a=a.toString(),l?l=t.util.object.clone(l):l={},~o.indexOf(".")&&(f=o.split("."));var s=c.colorProperties.indexOf(o)>-1||f&&c.colorProperties.indexOf(f[1])>-1,d=f?this.get(f[0])[f[1]]:this.get(o);"from"in l||(l.from=d),s||(~a.indexOf("=")?a=d+parseFloat(a.replace("=","")):a=parseFloat(a));var g={target:this,startValue:l.from,endValue:a,byValue:l.by,easing:l.easing,duration:l.duration,abort:l.abort&&function(m,v,y){return l.abort.call(c,m,v,y)},onChange:function(m,v,y){f?c[f[0]][f[1]]=m:c.set(o,m),!h&&l.onChange&&l.onChange(m,v,y)},onComplete:function(m,v,y){h||(c.setCoords(),l.onComplete&&l.onComplete(m,v,y))}};return s?t.util.animateColor(g.startValue,g.endValue,g.duration,g):t.util.animate(g)}}),function(o){var a=o.fabric||(o.fabric={}),l=a.util.object.extend,h=a.util.object.clone,c={x1:1,x2:1,y1:1,y2:1};if(a.Line){a.warn("fabric.Line is already defined");return}a.Line=a.util.createClass(a.Object,{type:"line",x1:0,y1:0,x2:0,y2:0,cacheProperties:a.Object.prototype.cacheProperties.concat("x1","x2","y1","y2"),initialize:function(s,d){s||(s=[0,0,0,0]),this.callSuper("initialize",d),this.set("x1",s[0]),this.set("y1",s[1]),this.set("x2",s[2]),this.set("y2",s[3]),this._setWidthHeight(d)},_setWidthHeight:function(s){s||(s={}),this.width=Math.abs(this.x2-this.x1),this.height=Math.abs(this.y2-this.y1),this.left="left"in s?s.left:this._getLeftToOriginX(),this.top="top"in s?s.top:this._getTopToOriginY()},_set:function(s,d){return this.callSuper("_set",s,d),typeof c[s]<"u"&&this._setWidthHeight(),this},_getLeftToOriginX:f({origin:"originX",axis1:"x1",axis2:"x2",dimension:"width"},{nearest:"left",center:"center",farthest:"right"}),_getTopToOriginY:f({origin:"originY",axis1:"y1",axis2:"y2",dimension:"height"},{nearest:"top",center:"center",farthest:"bottom"}),_render:function(s){s.beginPath();var d=this.calcLinePoints();s.moveTo(d.x1,d.y1),s.lineTo(d.x2,d.y2),s.lineWidth=this.strokeWidth;var g=s.strokeStyle;s.strokeStyle=this.stroke||s.fillStyle,this.stroke&&this._renderStroke(s),s.strokeStyle=g},_findCenterFromElement:function(){return{x:(this.x1+this.x2)/2,y:(this.y1+this.y2)/2}},toObject:function(s){return l(this.callSuper("toObject",s),this.calcLinePoints())},_getNonTransformedDimensions:function(){var s=this.callSuper("_getNonTransformedDimensions");return this.strokeLineCap==="butt"&&(this.width===0&&(s.y-=this.strokeWidth),this.height===0&&(s.x-=this.strokeWidth)),s},calcLinePoints:function(){var s=this.x1<=this.x2?-1:1,d=this.y1<=this.y2?-1:1,g=s*this.width*.5,m=d*this.height*.5,v=s*this.width*-.5,y=d*this.height*-.5;return{x1:g,x2:v,y1:m,y2:y}},_toSVG:function(){var s=this.calcLinePoints();return["<line ","COMMON_PARTS",'x1="',s.x1,'" y1="',s.y1,'" x2="',s.x2,'" y2="',s.y2,`" />
|
|
`]}}),a.Line.ATTRIBUTE_NAMES=a.SHARED_ATTRIBUTES.concat("x1 y1 x2 y2".split(" ")),a.Line.fromElement=function(s,d,g){g=g||{};var m=a.parseAttributes(s,a.Line.ATTRIBUTE_NAMES),v=[m.x1||0,m.y1||0,m.x2||0,m.y2||0];d(new a.Line(v,l(m,g)))},a.Line.fromObject=function(s,d){function g(v){delete v.points,d&&d(v)}var m=h(s,!0);m.points=[s.x1,s.y1,s.x2,s.y2],a.Object._fromObject("Line",m,g,"points")};function f(s,d){var g=s.origin,m=s.axis1,v=s.axis2,y=s.dimension,b=d.nearest,w=d.center,S=d.farthest;return function(){switch(this.get(g)){case b:return Math.min(this.get(m),this.get(v));case w:return Math.min(this.get(m),this.get(v))+.5*this.get(y);case S:return Math.max(this.get(m),this.get(v))}}}}(e),function(o){var a=o.fabric||(o.fabric={}),l=a.util.degreesToRadians;if(a.Circle){a.warn("fabric.Circle is already defined.");return}a.Circle=a.util.createClass(a.Object,{type:"circle",radius:0,startAngle:0,endAngle:360,cacheProperties:a.Object.prototype.cacheProperties.concat("radius","startAngle","endAngle"),_set:function(c,f){return this.callSuper("_set",c,f),c==="radius"&&this.setRadius(f),this},toObject:function(c){return this.callSuper("toObject",["radius","startAngle","endAngle"].concat(c))},_toSVG:function(){var c,f=0,s=0,d=(this.endAngle-this.startAngle)%360;if(d===0)c=["<circle ","COMMON_PARTS",'cx="'+f+'" cy="'+s+'" ','r="',this.radius,`" />
|
|
`];else{var g=l(this.startAngle),m=l(this.endAngle),v=this.radius,y=a.util.cos(g)*v,b=a.util.sin(g)*v,w=a.util.cos(m)*v,S=a.util.sin(m)*v,C=d>180?"1":"0";c=['<path d="M '+y+" "+b," A "+v+" "+v," 0 ",+C+" 1"," "+w+" "+S,'" ',"COMMON_PARTS",` />
|
|
`]}return c},_render:function(c){c.beginPath(),c.arc(0,0,this.radius,l(this.startAngle),l(this.endAngle),!1),this._renderPaintInOrder(c)},getRadiusX:function(){return this.get("radius")*this.get("scaleX")},getRadiusY:function(){return this.get("radius")*this.get("scaleY")},setRadius:function(c){return this.radius=c,this.set("width",c*2).set("height",c*2)}}),a.Circle.ATTRIBUTE_NAMES=a.SHARED_ATTRIBUTES.concat("cx cy r".split(" ")),a.Circle.fromElement=function(c,f){var s=a.parseAttributes(c,a.Circle.ATTRIBUTE_NAMES);if(!h(s))throw new Error("value of `r` attribute is required and can not be negative");s.left=(s.left||0)-s.radius,s.top=(s.top||0)-s.radius,f(new a.Circle(s))};function h(c){return"radius"in c&&c.radius>=0}a.Circle.fromObject=function(c,f){a.Object._fromObject("Circle",c,f)}}(e),function(o){var a=o.fabric||(o.fabric={});if(a.Triangle){a.warn("fabric.Triangle is already defined");return}a.Triangle=a.util.createClass(a.Object,{type:"triangle",width:100,height:100,_render:function(l){var h=this.width/2,c=this.height/2;l.beginPath(),l.moveTo(-h,c),l.lineTo(0,-c),l.lineTo(h,c),l.closePath(),this._renderPaintInOrder(l)},_toSVG:function(){var l=this.width/2,h=this.height/2,c=[-l+" "+h,"0 "+-h,l+" "+h].join(",");return["<polygon ","COMMON_PARTS",'points="',c,'" />']}}),a.Triangle.fromObject=function(l,h){return a.Object._fromObject("Triangle",l,h)}}(e),function(o){var a=o.fabric||(o.fabric={}),l=Math.PI*2;if(a.Ellipse){a.warn("fabric.Ellipse is already defined.");return}a.Ellipse=a.util.createClass(a.Object,{type:"ellipse",rx:0,ry:0,cacheProperties:a.Object.prototype.cacheProperties.concat("rx","ry"),initialize:function(h){this.callSuper("initialize",h),this.set("rx",h&&h.rx||0),this.set("ry",h&&h.ry||0)},_set:function(h,c){switch(this.callSuper("_set",h,c),h){case"rx":this.rx=c,this.set("width",c*2);break;case"ry":this.ry=c,this.set("height",c*2);break}return this},getRx:function(){return this.get("rx")*this.get("scaleX")},getRy:function(){return this.get("ry")*this.get("scaleY")},toObject:function(h){return this.callSuper("toObject",["rx","ry"].concat(h))},_toSVG:function(){return["<ellipse ","COMMON_PARTS",'cx="0" cy="0" ','rx="',this.rx,'" ry="',this.ry,`" />
|
|
`]},_render:function(h){h.beginPath(),h.save(),h.transform(1,0,0,this.ry/this.rx,0,0),h.arc(0,0,this.rx,0,l,!1),h.restore(),this._renderPaintInOrder(h)}}),a.Ellipse.ATTRIBUTE_NAMES=a.SHARED_ATTRIBUTES.concat("cx cy rx ry".split(" ")),a.Ellipse.fromElement=function(h,c){var f=a.parseAttributes(h,a.Ellipse.ATTRIBUTE_NAMES);f.left=(f.left||0)-f.rx,f.top=(f.top||0)-f.ry,c(new a.Ellipse(f))},a.Ellipse.fromObject=function(h,c){a.Object._fromObject("Ellipse",h,c)}}(e),function(o){var a=o.fabric||(o.fabric={}),l=a.util.object.extend;if(a.Rect){a.warn("fabric.Rect is already defined");return}a.Rect=a.util.createClass(a.Object,{stateProperties:a.Object.prototype.stateProperties.concat("rx","ry"),type:"rect",rx:0,ry:0,cacheProperties:a.Object.prototype.cacheProperties.concat("rx","ry"),initialize:function(h){this.callSuper("initialize",h),this._initRxRy()},_initRxRy:function(){this.rx&&!this.ry?this.ry=this.rx:this.ry&&!this.rx&&(this.rx=this.ry)},_render:function(h){var c=this.rx?Math.min(this.rx,this.width/2):0,f=this.ry?Math.min(this.ry,this.height/2):0,s=this.width,d=this.height,g=-this.width/2,m=-this.height/2,v=c!==0||f!==0,y=1-.5522847498;h.beginPath(),h.moveTo(g+c,m),h.lineTo(g+s-c,m),v&&h.bezierCurveTo(g+s-y*c,m,g+s,m+y*f,g+s,m+f),h.lineTo(g+s,m+d-f),v&&h.bezierCurveTo(g+s,m+d-y*f,g+s-y*c,m+d,g+s-c,m+d),h.lineTo(g+c,m+d),v&&h.bezierCurveTo(g+y*c,m+d,g,m+d-y*f,g,m+d-f),h.lineTo(g,m+f),v&&h.bezierCurveTo(g,m+y*f,g+y*c,m,g+c,m),h.closePath(),this._renderPaintInOrder(h)},toObject:function(h){return this.callSuper("toObject",["rx","ry"].concat(h))},_toSVG:function(){var h=-this.width/2,c=-this.height/2;return["<rect ","COMMON_PARTS",'x="',h,'" y="',c,'" rx="',this.rx,'" ry="',this.ry,'" width="',this.width,'" height="',this.height,`" />
|
|
`]}}),a.Rect.ATTRIBUTE_NAMES=a.SHARED_ATTRIBUTES.concat("x y rx ry width height".split(" ")),a.Rect.fromElement=function(h,c,f){if(!h)return c(null);f=f||{};var s=a.parseAttributes(h,a.Rect.ATTRIBUTE_NAMES);s.left=s.left||0,s.top=s.top||0,s.height=s.height||0,s.width=s.width||0;var d=new a.Rect(l(f?a.util.object.clone(f):{},s));d.visible=d.visible&&d.width>0&&d.height>0,c(d)},a.Rect.fromObject=function(h,c){return a.Object._fromObject("Rect",h,c)}}(e),function(o){var a=o.fabric||(o.fabric={}),l=a.util.object.extend,h=a.util.array.min,c=a.util.array.max,f=a.util.toFixed,s=a.util.projectStrokeOnPoints;if(a.Polyline){a.warn("fabric.Polyline is already defined");return}a.Polyline=a.util.createClass(a.Object,{type:"polyline",points:null,exactBoundingBox:!1,cacheProperties:a.Object.prototype.cacheProperties.concat("points"),initialize:function(d,g){g=g||{},this.points=d||[],this.callSuper("initialize",g),this._setPositionDimensions(g)},_projectStrokeOnPoints:function(){return s(this.points,this,!0)},_setPositionDimensions:function(d){var g=this._calcDimensions(d),m,v=this.exactBoundingBox?this.strokeWidth:0;this.width=g.width-v,this.height=g.height-v,d.fromSVG||(m=this.translateToGivenOrigin({x:g.left-this.strokeWidth/2+v/2,y:g.top-this.strokeWidth/2+v/2},"left","top",this.originX,this.originY)),typeof d.left>"u"&&(this.left=d.fromSVG?g.left:m.x),typeof d.top>"u"&&(this.top=d.fromSVG?g.top:m.y),this.pathOffset={x:g.left+this.width/2+v/2,y:g.top+this.height/2+v/2}},_calcDimensions:function(){var d=this.exactBoundingBox?this._projectStrokeOnPoints():this.points,g=h(d,"x")||0,m=h(d,"y")||0,v=c(d,"x")||0,y=c(d,"y")||0,b=v-g,w=y-m;return{left:g,top:m,width:b,height:w}},toObject:function(d){return l(this.callSuper("toObject",d),{points:this.points.concat()})},_toSVG:function(){for(var d=[],g=this.pathOffset.x,m=this.pathOffset.y,v=a.Object.NUM_FRACTION_DIGITS,y=0,b=this.points.length;y<b;y++)d.push(f(this.points[y].x-g,v),",",f(this.points[y].y-m,v)," ");return["<"+this.type+" ","COMMON_PARTS",'points="',d.join(""),`" />
|
|
`]},commonRender:function(d){var g,m=this.points.length,v=this.pathOffset.x,y=this.pathOffset.y;if(!m||isNaN(this.points[m-1].y))return!1;d.beginPath(),d.moveTo(this.points[0].x-v,this.points[0].y-y);for(var b=0;b<m;b++)g=this.points[b],d.lineTo(g.x-v,g.y-y);return!0},_render:function(d){!this.commonRender(d)||this._renderPaintInOrder(d)},complexity:function(){return this.get("points").length}}),a.Polyline.ATTRIBUTE_NAMES=a.SHARED_ATTRIBUTES.concat(),a.Polyline.fromElementGenerator=function(d){return function(g,m,v){if(!g)return m(null);v||(v={});var y=a.parsePointsAttribute(g.getAttribute("points")),b=a.parseAttributes(g,a[d].ATTRIBUTE_NAMES);b.fromSVG=!0,m(new a[d](y,l(b,v)))}},a.Polyline.fromElement=a.Polyline.fromElementGenerator("Polyline"),a.Polyline.fromObject=function(d,g){return a.Object._fromObject("Polyline",d,g,"points")}}(e),function(o){var a=o.fabric||(o.fabric={}),l=a.util.projectStrokeOnPoints;if(a.Polygon){a.warn("fabric.Polygon is already defined");return}a.Polygon=a.util.createClass(a.Polyline,{type:"polygon",_projectStrokeOnPoints:function(){return l(this.points,this)},_render:function(h){!this.commonRender(h)||(h.closePath(),this._renderPaintInOrder(h))}}),a.Polygon.ATTRIBUTE_NAMES=a.SHARED_ATTRIBUTES.concat(),a.Polygon.fromElement=a.Polyline.fromElementGenerator("Polygon"),a.Polygon.fromObject=function(h,c){a.Object._fromObject("Polygon",h,c,"points")}}(e),function(o){var a=o.fabric||(o.fabric={}),l=a.util.array.min,h=a.util.array.max,c=a.util.object.extend,f=a.util.object.clone,s=a.util.toFixed;if(a.Path){a.warn("fabric.Path is already defined");return}a.Path=a.util.createClass(a.Object,{type:"path",path:null,cacheProperties:a.Object.prototype.cacheProperties.concat("path","fillRule"),stateProperties:a.Object.prototype.stateProperties.concat("path"),initialize:function(d,g){g=f(g||{}),delete g.path,this.callSuper("initialize",g),this._setPath(d||[],g)},_setPath:function(d,g){this.path=a.util.makePathSimpler(Array.isArray(d)?d:a.util.parsePath(d)),a.Polyline.prototype._setPositionDimensions.call(this,g||{})},_renderPathCommands:function(d){var g,m=0,v=0,y=0,b=0,w=0,S=0,C=-this.pathOffset.x,T=-this.pathOffset.y;d.beginPath();for(var k=0,A=this.path.length;k<A;++k)switch(g=this.path[k],g[0]){case"L":y=g[1],b=g[2],d.lineTo(y+C,b+T);break;case"M":y=g[1],b=g[2],m=y,v=b,d.moveTo(y+C,b+T);break;case"C":y=g[5],b=g[6],w=g[3],S=g[4],d.bezierCurveTo(g[1]+C,g[2]+T,w+C,S+T,y+C,b+T);break;case"Q":d.quadraticCurveTo(g[1]+C,g[2]+T,g[3]+C,g[4]+T),y=g[3],b=g[4],w=g[1],S=g[2];break;case"z":case"Z":y=m,b=v,d.closePath();break}},_render:function(d){this._renderPathCommands(d),this._renderPaintInOrder(d)},toString:function(){return"#<fabric.Path ("+this.complexity()+'): { "top": '+this.top+', "left": '+this.left+" }>"},toObject:function(d){return c(this.callSuper("toObject",d),{path:this.path.map(function(g){return g.slice()})})},toDatalessObject:function(d){var g=this.toObject(["sourcePath"].concat(d));return g.sourcePath&&delete g.path,g},_toSVG:function(){var d=a.util.joinPath(this.path);return["<path ","COMMON_PARTS",'d="',d,'" stroke-linecap="round" ',`/>
|
|
`]},_getOffsetTransform:function(){var d=a.Object.NUM_FRACTION_DIGITS;return" translate("+s(-this.pathOffset.x,d)+", "+s(-this.pathOffset.y,d)+")"},toClipPathSVG:function(d){var g=this._getOffsetTransform();return" "+this._createBaseClipPathSVGMarkup(this._toSVG(),{reviver:d,additionalTransform:g})},toSVG:function(d){var g=this._getOffsetTransform();return this._createBaseSVGMarkup(this._toSVG(),{reviver:d,additionalTransform:g})},complexity:function(){return this.path.length},_calcDimensions:function(){for(var d=[],g=[],m,v=0,y=0,b=0,w=0,S,C=0,T=this.path.length;C<T;++C){switch(m=this.path[C],m[0]){case"L":b=m[1],w=m[2],S=[];break;case"M":b=m[1],w=m[2],v=b,y=w,S=[];break;case"C":S=a.util.getBoundsOfCurve(b,w,m[1],m[2],m[3],m[4],m[5],m[6]),b=m[5],w=m[6];break;case"Q":S=a.util.getBoundsOfCurve(b,w,m[1],m[2],m[1],m[2],m[3],m[4]),b=m[3],w=m[4];break;case"z":case"Z":b=v,w=y;break}S.forEach(function(O){d.push(O.x),g.push(O.y)}),d.push(b),g.push(w)}var k=l(d)||0,A=l(g)||0,P=h(d)||0,z=h(g)||0,I=P-k,$=z-A;return{left:k,top:A,width:I,height:$}}}),a.Path.fromObject=function(d,g){if(typeof d.sourcePath=="string"){var m=d.sourcePath;a.loadSVGFromURL(m,function(v){var y=v[0];y.setOptions(d),d.clipPath?a.util.enlivenObjects([d.clipPath],function(b){y.clipPath=b[0],g&&g(y)}):g&&g(y)})}else a.Object._fromObject("Path",d,g,"path")},a.Path.ATTRIBUTE_NAMES=a.SHARED_ATTRIBUTES.concat(["d"]),a.Path.fromElement=function(d,g,m){var v=a.parseAttributes(d,a.Path.ATTRIBUTE_NAMES);v.fromSVG=!0,g(new a.Path(v.d,c(v,m)))}}(e),function(o){var a=o.fabric||(o.fabric={}),l=a.util.array.min,h=a.util.array.max;a.Group||(a.Group=a.util.createClass(a.Object,a.Collection,{type:"group",strokeWidth:0,subTargetCheck:!1,cacheProperties:[],useSetOnGroup:!1,initialize:function(c,f,s){f=f||{},this._objects=[],s&&this.callSuper("initialize",f),this._objects=c||[];for(var d=this._objects.length;d--;)this._objects[d].group=this;if(s)this._updateObjectsACoords();else{var g=f&&f.centerPoint;f.originX!==void 0&&(this.originX=f.originX),f.originY!==void 0&&(this.originY=f.originY),g||this._calcBounds(),this._updateObjectsCoords(g),delete f.centerPoint,this.callSuper("initialize",f)}this.setCoords()},_updateObjectsACoords:function(){for(var c=!0,f=this._objects.length;f--;)this._objects[f].setCoords(c)},_updateObjectsCoords:function(f){for(var f=f||this.getCenterPoint(),s=this._objects.length;s--;)this._updateObjectCoords(this._objects[s],f)},_updateObjectCoords:function(c,f){var s=c.left,d=c.top,g=!0;c.set({left:s-f.x,top:d-f.y}),c.group=this,c.setCoords(g)},toString:function(){return"#<fabric.Group: ("+this.complexity()+")>"},addWithUpdate:function(c){var f=!!this.group;return this._restoreObjectsState(),a.util.resetObjectTransform(this),c&&(f&&a.util.removeTransformFromObject(c,this.group.calcTransformMatrix()),this._objects.push(c),c.group=this,c._set("canvas",this.canvas)),this._calcBounds(),this._updateObjectsCoords(),this.dirty=!0,f?this.group.addWithUpdate():this.setCoords(),this},removeWithUpdate:function(c){return this._restoreObjectsState(),a.util.resetObjectTransform(this),this.remove(c),this._calcBounds(),this._updateObjectsCoords(),this.setCoords(),this.dirty=!0,this},_onObjectAdded:function(c){this.dirty=!0,c.group=this,c._set("canvas",this.canvas)},_onObjectRemoved:function(c){this.dirty=!0,delete c.group},_set:function(c,f){var s=this._objects.length;if(this.useSetOnGroup)for(;s--;)this._objects[s].setOnGroup(c,f);if(c==="canvas")for(;s--;)this._objects[s]._set(c,f);a.Object.prototype._set.call(this,c,f)},toObject:function(c){var f=this.includeDefaultValues,s=this._objects.filter(function(g){return!g.excludeFromExport}).map(function(g){var m=g.includeDefaultValues;g.includeDefaultValues=f;var v=g.toObject(c);return g.includeDefaultValues=m,v}),d=a.Object.prototype.toObject.call(this,c);return d.objects=s,d},toDatalessObject:function(c){var f,s=this.sourcePath;if(s)f=s;else{var d=this.includeDefaultValues;f=this._objects.map(function(m){var v=m.includeDefaultValues;m.includeDefaultValues=d;var y=m.toDatalessObject(c);return m.includeDefaultValues=v,y})}var g=a.Object.prototype.toDatalessObject.call(this,c);return g.objects=f,g},render:function(c){this._transformDone=!0,this.callSuper("render",c),this._transformDone=!1},shouldCache:function(){var c=a.Object.prototype.shouldCache.call(this);if(c){for(var f=0,s=this._objects.length;f<s;f++)if(this._objects[f].willDrawShadow())return this.ownCaching=!1,!1}return c},willDrawShadow:function(){if(a.Object.prototype.willDrawShadow.call(this))return!0;for(var c=0,f=this._objects.length;c<f;c++)if(this._objects[c].willDrawShadow())return!0;return!1},isOnACache:function(){return this.ownCaching||this.group&&this.group.isOnACache()},drawObject:function(c){for(var f=0,s=this._objects.length;f<s;f++)this._objects[f].render(c);this._drawClipPath(c,this.clipPath)},isCacheDirty:function(c){if(this.callSuper("isCacheDirty",c))return!0;if(!this.statefullCache)return!1;for(var f=0,s=this._objects.length;f<s;f++)if(this._objects[f].isCacheDirty(!0)){if(this._cacheCanvas){var d=this.cacheWidth/this.zoomX,g=this.cacheHeight/this.zoomY;this._cacheContext.clearRect(-d/2,-g/2,d,g)}return!0}return!1},_restoreObjectsState:function(){var c=this.calcOwnMatrix();return this._objects.forEach(function(f){a.util.addTransformToObject(f,c),delete f.group,f.setCoords()}),this},destroy:function(){return this._objects.forEach(function(c){c.set("dirty",!0)}),this._restoreObjectsState()},dispose:function(){this.callSuper("dispose"),this.forEachObject(function(c){c.dispose&&c.dispose()}),this._objects=[]},toActiveSelection:function(){if(!!this.canvas){var c=this._objects,f=this.canvas;this._objects=[];var s=this.toObject();delete s.objects;var d=new a.ActiveSelection([]);return d.set(s),d.type="activeSelection",f.remove(this),c.forEach(function(g){g.group=d,g.dirty=!0,f.add(g)}),d.canvas=f,d._objects=c,f._activeObject=d,d.setCoords(),d}},ungroupOnCanvas:function(){return this._restoreObjectsState()},setObjectsCoords:function(){var c=!0;return this.forEachObject(function(f){f.setCoords(c)}),this},_calcBounds:function(c){for(var f=[],s=[],d,g,m,v=["tr","br","bl","tl"],y=0,b=this._objects.length,w,S=v.length;y<b;++y){for(d=this._objects[y],m=d.calcACoords(),w=0;w<S;w++)g=v[w],f.push(m[g].x),s.push(m[g].y);d.aCoords=m}this._getBounds(f,s,c)},_getBounds:function(c,f,s){var d=new a.Point(l(c),l(f)),g=new a.Point(h(c),h(f)),m=d.y||0,v=d.x||0,y=g.x-d.x||0,b=g.y-d.y||0;this.width=y,this.height=b,s||this.setPositionByOrigin({x:v,y:m},"left","top")},_toSVG:function(c){for(var f=["<g ","COMMON_PARTS",` >
|
|
`],s=0,d=this._objects.length;s<d;s++)f.push(" ",this._objects[s].toSVG(c));return f.push(`</g>
|
|
`),f},getSvgStyles:function(){var c=typeof this.opacity<"u"&&this.opacity!==1?"opacity: "+this.opacity+";":"",f=this.visible?"":" visibility: hidden;";return[c,this.getSvgFilter(),f].join("")},toClipPathSVG:function(c){for(var f=[],s=0,d=this._objects.length;s<d;s++)f.push(" ",this._objects[s].toClipPathSVG(c));return this._createBaseClipPathSVGMarkup(f,{reviver:c})}}),a.Group.fromObject=function(c,f){var s=c.objects,d=a.util.object.clone(c,!0);if(delete d.objects,typeof s=="string"){a.loadSVGFromURL(s,function(g){var m=a.util.groupSVGElements(g,c,s),v=d.clipPath;delete d.clipPath,m.set(d),v?a.util.enlivenObjects([v],function(y){m.clipPath=y[0],f&&f(m)}):f&&f(m)});return}a.util.enlivenObjects(s,function(g){a.util.enlivenObjectEnlivables(c,d,function(){f&&f(new a.Group(g,d,!0))})})})}(e),function(o){var a=o.fabric||(o.fabric={});a.ActiveSelection||(a.ActiveSelection=a.util.createClass(a.Group,{type:"activeSelection",initialize:function(l,h){h=h||{},this._objects=l||[];for(var c=this._objects.length;c--;)this._objects[c].group=this;h.originX&&(this.originX=h.originX),h.originY&&(this.originY=h.originY),this._calcBounds(),this._updateObjectsCoords(),a.Object.prototype.initialize.call(this,h),this.setCoords()},toGroup:function(){var l=this._objects.concat();this._objects=[];var h=a.Object.prototype.toObject.call(this),c=new a.Group([]);if(delete h.type,c.set(h),l.forEach(function(s){s.canvas.remove(s),s.group=c}),c._objects=l,!this.canvas)return c;var f=this.canvas;return f.add(c),f._activeObject=c,c.setCoords(),c},onDeselect:function(){return this.destroy(),!1},toString:function(){return"#<fabric.ActiveSelection: ("+this.complexity()+")>"},shouldCache:function(){return!1},isOnACache:function(){return!1},_renderControls:function(l,h,c){l.save(),l.globalAlpha=this.isMoving?this.borderOpacityWhenMoving:1,c=c||{},typeof c.hasControls>"u"&&(c.hasControls=!1),c.forActiveSelection=!0;for(var f=0,s=this._objects.length;f<s;f++)this._objects[f]._renderControls(l,c);this.callSuper("_renderControls",l,h),l.restore()}}),a.ActiveSelection.fromObject=function(l,h){a.util.enlivenObjects(l.objects,function(c){delete l.objects,h&&h(new a.ActiveSelection(c,l,!0))})})}(e),function(o){var a=t.util.object.extend;if(o.fabric||(o.fabric={}),o.fabric.Image){t.warn("fabric.Image is already defined.");return}t.Image=t.util.createClass(t.Object,{type:"image",strokeWidth:0,srcFromAttribute:!1,_lastScaleX:1,_lastScaleY:1,_filterScalingX:1,_filterScalingY:1,minimumScaleTrigger:.5,stateProperties:t.Object.prototype.stateProperties.concat("cropX","cropY"),cacheProperties:t.Object.prototype.cacheProperties.concat("cropX","cropY"),cacheKey:"",cropX:0,cropY:0,imageSmoothing:!0,initialize:function(l,h){h||(h={}),this.filters=[],this.cacheKey="texture"+t.Object.__uid++,this.callSuper("initialize",h),this._initElement(l,h)},getElement:function(){return this._element||{}},setElement:function(l,h){return this.removeTexture(this.cacheKey),this.removeTexture(this.cacheKey+"_filtered"),this._element=l,this._originalElement=l,this._initConfig(h),this.filters.length!==0&&this.applyFilters(),this.resizeFilter&&this.applyResizeFilters(),this},removeTexture:function(l){var h=t.filterBackend;h&&h.evictCachesForKey&&h.evictCachesForKey(l)},dispose:function(){this.callSuper("dispose"),this.removeTexture(this.cacheKey),this.removeTexture(this.cacheKey+"_filtered"),this._cacheContext=void 0,["_originalElement","_element","_filteredEl","_cacheCanvas"].forEach(function(l){t.util.cleanUpJsdomNode(this[l]),this[l]=void 0}.bind(this))},getCrossOrigin:function(){return this._originalElement&&(this._originalElement.crossOrigin||null)},getOriginalSize:function(){var l=this.getElement();return{width:l.naturalWidth||l.width,height:l.naturalHeight||l.height}},_stroke:function(l){if(!(!this.stroke||this.strokeWidth===0)){var h=this.width/2,c=this.height/2;l.beginPath(),l.moveTo(-h,-c),l.lineTo(h,-c),l.lineTo(h,c),l.lineTo(-h,c),l.lineTo(-h,-c),l.closePath()}},toObject:function(l){var h=[];this.filters.forEach(function(f){f&&h.push(f.toObject())});var c=a(this.callSuper("toObject",["cropX","cropY"].concat(l)),{src:this.getSrc(),crossOrigin:this.getCrossOrigin(),filters:h});return this.resizeFilter&&(c.resizeFilter=this.resizeFilter.toObject()),c},hasCrop:function(){return this.cropX||this.cropY||this.width<this._element.width||this.height<this._element.height},_toSVG:function(){var l=[],h=[],c,f=this._element,s=-this.width/2,d=-this.height/2,g="",m="";if(!f)return[];if(this.hasCrop()){var v=t.Object.__uid++;l.push('<clipPath id="imageCrop_'+v+`">
|
|
`,' <rect x="'+s+'" y="'+d+'" width="'+this.width+'" height="'+this.height+`" />
|
|
`,`</clipPath>
|
|
`),g=' clip-path="url(#imageCrop_'+v+')" '}if(this.imageSmoothing||(m='" image-rendering="optimizeSpeed'),h.push(" <image ","COMMON_PARTS",'xlink:href="',this.getSvgSrc(!0),'" x="',s-this.cropX,'" y="',d-this.cropY,'" width="',f.width||f.naturalWidth,'" height="',f.height||f.height,m,'"',g,`></image>
|
|
`),this.stroke||this.strokeDashArray){var y=this.fill;this.fill=null,c=[" <rect ",'x="',s,'" y="',d,'" width="',this.width,'" height="',this.height,'" style="',this.getSvgStyles(),`"/>
|
|
`],this.fill=y}return this.paintFirst!=="fill"?l=l.concat(c,h):l=l.concat(h,c),l},getSrc:function(l){var h=l?this._element:this._originalElement;return h?h.toDataURL?h.toDataURL():this.srcFromAttribute?h.getAttribute("src"):h.src:this.src||""},setSrc:function(l,h,c){return t.util.loadImage(l,function(f,s){this.setElement(f,c),this._setWidthHeight(),h&&h(this,s)},this,c&&c.crossOrigin),this},toString:function(){return'#<fabric.Image: { src: "'+this.getSrc()+'" }>'},applyResizeFilters:function(){var l=this.resizeFilter,h=this.minimumScaleTrigger,c=this.getTotalObjectScaling(),f=c.scaleX,s=c.scaleY,d=this._filteredEl||this._originalElement;if(this.group&&this.set("dirty",!0),!l||f>h&&s>h){this._element=d,this._filterScalingX=1,this._filterScalingY=1,this._lastScaleX=f,this._lastScaleY=s;return}t.filterBackend||(t.filterBackend=t.initFilterBackend());var g=t.util.createCanvasElement(),m=this._filteredEl?this.cacheKey+"_filtered":this.cacheKey,v=d.width,y=d.height;g.width=v,g.height=y,this._element=g,this._lastScaleX=l.scaleX=f,this._lastScaleY=l.scaleY=s,t.filterBackend.applyFilters([l],d,v,y,this._element,m),this._filterScalingX=g.width/this._originalElement.width,this._filterScalingY=g.height/this._originalElement.height},applyFilters:function(l){if(l=l||this.filters||[],l=l.filter(function(d){return d&&!d.isNeutralState()}),this.set("dirty",!0),this.removeTexture(this.cacheKey+"_filtered"),l.length===0)return this._element=this._originalElement,this._filteredEl=null,this._filterScalingX=1,this._filterScalingY=1,this;var h=this._originalElement,c=h.naturalWidth||h.width,f=h.naturalHeight||h.height;if(this._element===this._originalElement){var s=t.util.createCanvasElement();s.width=c,s.height=f,this._element=s,this._filteredEl=s}else this._element=this._filteredEl,this._filteredEl.getContext("2d").clearRect(0,0,c,f),this._lastScaleX=1,this._lastScaleY=1;return t.filterBackend||(t.filterBackend=t.initFilterBackend()),t.filterBackend.applyFilters(l,this._originalElement,c,f,this._element,this.cacheKey),(this._originalElement.width!==this._element.width||this._originalElement.height!==this._element.height)&&(this._filterScalingX=this._element.width/this._originalElement.width,this._filterScalingY=this._element.height/this._originalElement.height),this},_render:function(l){t.util.setImageSmoothing(l,this.imageSmoothing),this.isMoving!==!0&&this.resizeFilter&&this._needsResize()&&this.applyResizeFilters(),this._stroke(l),this._renderPaintInOrder(l)},drawCacheOnCanvas:function(l){t.util.setImageSmoothing(l,this.imageSmoothing),t.Object.prototype.drawCacheOnCanvas.call(this,l)},shouldCache:function(){return this.needsItsOwnCache()},_renderFill:function(l){var h=this._element;if(!!h){var c=this._filterScalingX,f=this._filterScalingY,s=this.width,d=this.height,g=Math.min,m=Math.max,v=m(this.cropX,0),y=m(this.cropY,0),b=h.naturalWidth||h.width,w=h.naturalHeight||h.height,S=v*c,C=y*f,T=g(s*c,b-S),k=g(d*f,w-C),A=-s/2,P=-d/2,z=g(s,b/c-v),I=g(d,w/f-y);h&&l.drawImage(h,S,C,T,k,A,P,z,I)}},_needsResize:function(){var l=this.getTotalObjectScaling();return l.scaleX!==this._lastScaleX||l.scaleY!==this._lastScaleY},_resetWidthHeight:function(){this.set(this.getOriginalSize())},_initElement:function(l,h){this.setElement(t.util.getById(l),h),t.util.addClass(this.getElement(),t.Image.CSS_CANVAS)},_initConfig:function(l){l||(l={}),this.setOptions(l),this._setWidthHeight(l)},_initFilters:function(l,h){l&&l.length?t.util.enlivenObjects(l,function(c){h&&h(c)},"fabric.Image.filters"):h&&h()},_setWidthHeight:function(l){l||(l={});var h=this.getElement();this.width=l.width||h.naturalWidth||h.width||0,this.height=l.height||h.naturalHeight||h.height||0},parsePreserveAspectRatioAttribute:function(){var l=t.util.parsePreserveAspectRatioAttribute(this.preserveAspectRatio||""),h=this._element.width,c=this._element.height,f=1,s=1,d=0,g=0,m=0,v=0,y,b=this.width,w=this.height,S={width:b,height:w};return l&&(l.alignX!=="none"||l.alignY!=="none")?(l.meetOrSlice==="meet"&&(f=s=t.util.findScaleToFit(this._element,S),y=(b-h*f)/2,l.alignX==="Min"&&(d=-y),l.alignX==="Max"&&(d=y),y=(w-c*s)/2,l.alignY==="Min"&&(g=-y),l.alignY==="Max"&&(g=y)),l.meetOrSlice==="slice"&&(f=s=t.util.findScaleToCover(this._element,S),y=h-b/f,l.alignX==="Mid"&&(m=y/2),l.alignX==="Max"&&(m=y),y=c-w/s,l.alignY==="Mid"&&(v=y/2),l.alignY==="Max"&&(v=y),h=b/f,c=w/s)):(f=b/h,s=w/c),{width:h,height:c,scaleX:f,scaleY:s,offsetLeft:d,offsetTop:g,cropX:m,cropY:v}}}),t.Image.CSS_CANVAS="canvas-img",t.Image.prototype.getSvgSrc=t.Image.prototype.getSrc,t.Image.fromObject=function(l,h){var c=t.util.object.clone(l);t.util.loadImage(c.src,function(f,s){if(s){h&&h(null,!0);return}t.Image.prototype._initFilters.call(c,c.filters,function(d){c.filters=d||[],t.Image.prototype._initFilters.call(c,[c.resizeFilter],function(g){c.resizeFilter=g[0],t.util.enlivenObjectEnlivables(c,c,function(){var m=new t.Image(f,c);h(m,!1)})})})},null,c.crossOrigin)},t.Image.fromURL=function(l,h,c){t.util.loadImage(l,function(f,s){h&&h(new t.Image(f,c),s)},null,c&&c.crossOrigin)},t.Image.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat("x y width height preserveAspectRatio xlink:href crossOrigin image-rendering".split(" ")),t.Image.fromElement=function(l,h,c){var f=t.parseAttributes(l,t.Image.ATTRIBUTE_NAMES);t.Image.fromURL(f["xlink:href"],h,a(c?t.util.object.clone(c):{},f))}}(e),t.util.object.extend(t.Object.prototype,{_getAngleValueForStraighten:function(){var o=this.angle%360;return o>0?Math.round((o-1)/90)*90:Math.round(o/90)*90},straighten:function(){return this.rotate(this._getAngleValueForStraighten())},fxStraighten:function(o){o=o||{};var a=function(){},l=o.onComplete||a,h=o.onChange||a,c=this;return t.util.animate({target:this,startValue:this.get("angle"),endValue:this._getAngleValueForStraighten(),duration:this.FX_DURATION,onChange:function(f){c.rotate(f),h()},onComplete:function(){c.setCoords(),l()}})}}),t.util.object.extend(t.StaticCanvas.prototype,{straightenObject:function(o){return o.straighten(),this.requestRenderAll(),this},fxStraightenObject:function(o){return o.fxStraighten({onChange:this.requestRenderAllBound})}}),function(){function o(l,h){var c="precision "+h+` float;
|
|
void main(){}`,f=l.createShader(l.FRAGMENT_SHADER);return l.shaderSource(f,c),l.compileShader(f),!!l.getShaderParameter(f,l.COMPILE_STATUS)}t.isWebglSupported=function(l){if(t.isLikelyNode)return!1;l=l||t.WebglFilterBackend.prototype.tileSize;var h=document.createElement("canvas"),c=h.getContext("webgl")||h.getContext("experimental-webgl"),f=!1;if(c){t.maxTextureSize=c.getParameter(c.MAX_TEXTURE_SIZE),f=t.maxTextureSize>=l;for(var s=["highp","mediump","lowp"],d=0;d<3;d++)if(o(c,s[d])){t.webGlPrecision=s[d];break}}return this.isSupported=f,f},t.WebglFilterBackend=a;function a(l){l&&l.tileSize&&(this.tileSize=l.tileSize),this.setupGLContext(this.tileSize,this.tileSize),this.captureGPUInfo()}a.prototype={tileSize:2048,resources:{},setupGLContext:function(l,h){this.dispose(),this.createWebGLCanvas(l,h),this.aPosition=new Float32Array([0,0,0,1,1,0,1,1]),this.chooseFastestCopyGLTo2DMethod(l,h)},chooseFastestCopyGLTo2DMethod:function(l,h){var c=typeof window.performance<"u",f;try{new ImageData(1,1),f=!0}catch{f=!1}var s=typeof ArrayBuffer<"u",d=typeof Uint8ClampedArray<"u";if(!!(c&&f&&s&&d)){var g=t.util.createCanvasElement(),m=new ArrayBuffer(l*h*4);if(t.forceGLPutImageData){this.imageBuffer=m,this.copyGLTo2D=p;return}var v={imageBuffer:m,destinationWidth:l,destinationHeight:h,targetCanvas:g},y,b,w;g.width=l,g.height=h,y=window.performance.now(),u.call(v,this.gl,v),b=window.performance.now()-y,y=window.performance.now(),p.call(v,this.gl,v),w=window.performance.now()-y,b>w?(this.imageBuffer=m,this.copyGLTo2D=p):this.copyGLTo2D=u}},createWebGLCanvas:function(l,h){var c=t.util.createCanvasElement();c.width=l,c.height=h;var f={alpha:!0,premultipliedAlpha:!1,depth:!1,stencil:!1,antialias:!1},s=c.getContext("webgl",f);s||(s=c.getContext("experimental-webgl",f)),s&&(s.clearColor(0,0,0,0),this.canvas=c,this.gl=s)},applyFilters:function(l,h,c,f,s,d){var g=this.gl,m;d&&(m=this.getCachedTexture(d,h));var v={originalWidth:h.width||h.originalWidth,originalHeight:h.height||h.originalHeight,sourceWidth:c,sourceHeight:f,destinationWidth:c,destinationHeight:f,context:g,sourceTexture:this.createTexture(g,c,f,!m&&h),targetTexture:this.createTexture(g,c,f),originalTexture:m||this.createTexture(g,c,f,!m&&h),passes:l.length,webgl:!0,aPosition:this.aPosition,programCache:this.programCache,pass:0,filterBackend:this,targetCanvas:s},y=g.createFramebuffer();return g.bindFramebuffer(g.FRAMEBUFFER,y),l.forEach(function(b){b&&b.applyTo(v)}),i(v),this.copyGLTo2D(g,v),g.bindTexture(g.TEXTURE_2D,null),g.deleteTexture(v.sourceTexture),g.deleteTexture(v.targetTexture),g.deleteFramebuffer(y),s.getContext("2d").setTransform(1,0,0,1,0,0),v},dispose:function(){this.canvas&&(this.canvas=null,this.gl=null),this.clearWebGLCaches()},clearWebGLCaches:function(){this.programCache={},this.textureCache={}},createTexture:function(l,h,c,f,s){var d=l.createTexture();return l.bindTexture(l.TEXTURE_2D,d),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MAG_FILTER,s||l.NEAREST),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MIN_FILTER,s||l.NEAREST),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_S,l.CLAMP_TO_EDGE),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_T,l.CLAMP_TO_EDGE),f?l.texImage2D(l.TEXTURE_2D,0,l.RGBA,l.RGBA,l.UNSIGNED_BYTE,f):l.texImage2D(l.TEXTURE_2D,0,l.RGBA,h,c,0,l.RGBA,l.UNSIGNED_BYTE,null),d},getCachedTexture:function(l,h){if(this.textureCache[l])return this.textureCache[l];var c=this.createTexture(this.gl,h.width,h.height,h);return this.textureCache[l]=c,c},evictCachesForKey:function(l){this.textureCache[l]&&(this.gl.deleteTexture(this.textureCache[l]),delete this.textureCache[l])},copyGLTo2D:u,captureGPUInfo:function(){if(this.gpuInfo)return this.gpuInfo;var l=this.gl,h={renderer:"",vendor:""};if(!l)return h;var c=l.getExtension("WEBGL_debug_renderer_info");if(c){var f=l.getParameter(c.UNMASKED_RENDERER_WEBGL),s=l.getParameter(c.UNMASKED_VENDOR_WEBGL);f&&(h.renderer=f.toLowerCase()),s&&(h.vendor=s.toLowerCase())}return this.gpuInfo=h,h}}}();function i(o){var a=o.targetCanvas,l=a.width,h=a.height,c=o.destinationWidth,f=o.destinationHeight;(l!==c||h!==f)&&(a.width=c,a.height=f)}function u(o,a){var l=o.canvas,h=a.targetCanvas,c=h.getContext("2d");c.translate(0,h.height),c.scale(1,-1);var f=l.height-h.height;c.drawImage(l,0,f,h.width,h.height,0,0,h.width,h.height)}function p(o,a){var l=a.targetCanvas,h=l.getContext("2d"),c=a.destinationWidth,f=a.destinationHeight,s=c*f*4,d=new Uint8Array(this.imageBuffer,0,s),g=new Uint8ClampedArray(this.imageBuffer,0,s);o.readPixels(0,0,c,f,o.RGBA,o.UNSIGNED_BYTE,d);var m=new ImageData(g,c,f);h.putImageData(m,0,0)}(function(){var o=function(){};t.Canvas2dFilterBackend=a;function a(){}a.prototype={evictCachesForKey:o,dispose:o,clearWebGLCaches:o,resources:{},applyFilters:function(l,h,c,f,s){var d=s.getContext("2d");d.drawImage(h,0,0,c,f);var g=d.getImageData(0,0,c,f),m=d.getImageData(0,0,c,f),v={sourceWidth:c,sourceHeight:f,imageData:g,originalEl:h,originalImageData:m,canvasEl:s,ctx:d,filterBackend:this};return l.forEach(function(y){y.applyTo(v)}),(v.imageData.width!==c||v.imageData.height!==f)&&(s.width=v.imageData.width,s.height=v.imageData.height),d.putImageData(v.imageData,0,0),v}}})(),t.Image=t.Image||{},t.Image.filters=t.Image.filters||{},t.Image.filters.BaseFilter=t.util.createClass({type:"BaseFilter",vertexSource:`attribute vec2 aPosition;
|
|
varying vec2 vTexCoord;
|
|
void main() {
|
|
vTexCoord = aPosition;
|
|
gl_Position = vec4(aPosition * 2.0 - 1.0, 0.0, 1.0);
|
|
}`,fragmentSource:`precision highp float;
|
|
varying vec2 vTexCoord;
|
|
uniform sampler2D uTexture;
|
|
void main() {
|
|
gl_FragColor = texture2D(uTexture, vTexCoord);
|
|
}`,initialize:function(o){o&&this.setOptions(o)},setOptions:function(o){for(var a in o)this[a]=o[a]},createProgram:function(o,a,l){a=a||this.fragmentSource,l=l||this.vertexSource,t.webGlPrecision!=="highp"&&(a=a.replace(/precision highp float/g,"precision "+t.webGlPrecision+" float"));var h=o.createShader(o.VERTEX_SHADER);if(o.shaderSource(h,l),o.compileShader(h),!o.getShaderParameter(h,o.COMPILE_STATUS))throw new Error("Vertex shader compile error for "+this.type+": "+o.getShaderInfoLog(h));var c=o.createShader(o.FRAGMENT_SHADER);if(o.shaderSource(c,a),o.compileShader(c),!o.getShaderParameter(c,o.COMPILE_STATUS))throw new Error("Fragment shader compile error for "+this.type+": "+o.getShaderInfoLog(c));var f=o.createProgram();if(o.attachShader(f,h),o.attachShader(f,c),o.linkProgram(f),!o.getProgramParameter(f,o.LINK_STATUS))throw new Error('Shader link error for "${this.type}" '+o.getProgramInfoLog(f));var s=this.getAttributeLocations(o,f),d=this.getUniformLocations(o,f)||{};return d.uStepW=o.getUniformLocation(f,"uStepW"),d.uStepH=o.getUniformLocation(f,"uStepH"),{program:f,attributeLocations:s,uniformLocations:d}},getAttributeLocations:function(o,a){return{aPosition:o.getAttribLocation(a,"aPosition")}},getUniformLocations:function(){return{}},sendAttributeData:function(o,a,l){var h=a.aPosition,c=o.createBuffer();o.bindBuffer(o.ARRAY_BUFFER,c),o.enableVertexAttribArray(h),o.vertexAttribPointer(h,2,o.FLOAT,!1,0,0),o.bufferData(o.ARRAY_BUFFER,l,o.STATIC_DRAW)},_setupFrameBuffer:function(o){var a=o.context,l,h;o.passes>1?(l=o.destinationWidth,h=o.destinationHeight,(o.sourceWidth!==l||o.sourceHeight!==h)&&(a.deleteTexture(o.targetTexture),o.targetTexture=o.filterBackend.createTexture(a,l,h)),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,o.targetTexture,0)):(a.bindFramebuffer(a.FRAMEBUFFER,null),a.finish())},_swapTextures:function(o){o.passes--,o.pass++;var a=o.targetTexture;o.targetTexture=o.sourceTexture,o.sourceTexture=a},isNeutralState:function(){var o=this.mainParameter,a=t.Image.filters[this.type].prototype;if(o)if(Array.isArray(a[o])){for(var l=a[o].length;l--;)if(this[o][l]!==a[o][l])return!1;return!0}else return a[o]===this[o];else return!1},applyTo:function(o){o.webgl?(this._setupFrameBuffer(o),this.applyToWebGL(o),this._swapTextures(o)):this.applyTo2d(o)},retrieveShader:function(o){return o.programCache.hasOwnProperty(this.type)||(o.programCache[this.type]=this.createProgram(o.context)),o.programCache[this.type]},applyToWebGL:function(o){var a=o.context,l=this.retrieveShader(o);o.pass===0&&o.originalTexture?a.bindTexture(a.TEXTURE_2D,o.originalTexture):a.bindTexture(a.TEXTURE_2D,o.sourceTexture),a.useProgram(l.program),this.sendAttributeData(a,l.attributeLocations,o.aPosition),a.uniform1f(l.uniformLocations.uStepW,1/o.sourceWidth),a.uniform1f(l.uniformLocations.uStepH,1/o.sourceHeight),this.sendUniformData(a,l.uniformLocations),a.viewport(0,0,o.destinationWidth,o.destinationHeight),a.drawArrays(a.TRIANGLE_STRIP,0,4)},bindAdditionalTexture:function(o,a,l){o.activeTexture(l),o.bindTexture(o.TEXTURE_2D,a),o.activeTexture(o.TEXTURE0)},unbindAdditionalTexture:function(o,a){o.activeTexture(a),o.bindTexture(o.TEXTURE_2D,null),o.activeTexture(o.TEXTURE0)},getMainParameter:function(){return this[this.mainParameter]},setMainParameter:function(o){this[this.mainParameter]=o},sendUniformData:function(){},createHelpLayer:function(o){if(!o.helpLayer){var a=document.createElement("canvas");a.width=o.sourceWidth,a.height=o.sourceHeight,o.helpLayer=a}},toObject:function(){var o={type:this.type},a=this.mainParameter;return a&&(o[a]=this[a]),o},toJSON:function(){return this.toObject()}}),t.Image.filters.BaseFilter.fromObject=function(o,a){var l=new t.Image.filters[o.type](o);return a&&a(l),l},function(o){var a=o.fabric||(o.fabric={}),l=a.Image.filters,h=a.util.createClass;l.ColorMatrix=h(l.BaseFilter,{type:"ColorMatrix",fragmentSource:`precision highp float;
|
|
uniform sampler2D uTexture;
|
|
varying vec2 vTexCoord;
|
|
uniform mat4 uColorMatrix;
|
|
uniform vec4 uConstants;
|
|
void main() {
|
|
vec4 color = texture2D(uTexture, vTexCoord);
|
|
color *= uColorMatrix;
|
|
color += uConstants;
|
|
gl_FragColor = color;
|
|
}`,matrix:[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],mainParameter:"matrix",colorsOnly:!0,initialize:function(c){this.callSuper("initialize",c),this.matrix=this.matrix.slice(0)},applyTo2d:function(c){var f=c.imageData,s=f.data,d=s.length,g=this.matrix,m,v,y,b,w,S=this.colorsOnly;for(w=0;w<d;w+=4)m=s[w],v=s[w+1],y=s[w+2],S?(s[w]=m*g[0]+v*g[1]+y*g[2]+g[4]*255,s[w+1]=m*g[5]+v*g[6]+y*g[7]+g[9]*255,s[w+2]=m*g[10]+v*g[11]+y*g[12]+g[14]*255):(b=s[w+3],s[w]=m*g[0]+v*g[1]+y*g[2]+b*g[3]+g[4]*255,s[w+1]=m*g[5]+v*g[6]+y*g[7]+b*g[8]+g[9]*255,s[w+2]=m*g[10]+v*g[11]+y*g[12]+b*g[13]+g[14]*255,s[w+3]=m*g[15]+v*g[16]+y*g[17]+b*g[18]+g[19]*255)},getUniformLocations:function(c,f){return{uColorMatrix:c.getUniformLocation(f,"uColorMatrix"),uConstants:c.getUniformLocation(f,"uConstants")}},sendUniformData:function(c,f){var s=this.matrix,d=[s[0],s[1],s[2],s[3],s[5],s[6],s[7],s[8],s[10],s[11],s[12],s[13],s[15],s[16],s[17],s[18]],g=[s[4],s[9],s[14],s[19]];c.uniformMatrix4fv(f.uColorMatrix,!1,d),c.uniform4fv(f.uConstants,g)}}),a.Image.filters.ColorMatrix.fromObject=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric||(o.fabric={}),l=a.Image.filters,h=a.util.createClass;l.Brightness=h(l.BaseFilter,{type:"Brightness",fragmentSource:`precision highp float;
|
|
uniform sampler2D uTexture;
|
|
uniform float uBrightness;
|
|
varying vec2 vTexCoord;
|
|
void main() {
|
|
vec4 color = texture2D(uTexture, vTexCoord);
|
|
color.rgb += uBrightness;
|
|
gl_FragColor = color;
|
|
}`,brightness:0,mainParameter:"brightness",applyTo2d:function(c){if(this.brightness!==0){var f=c.imageData,s=f.data,d,g=s.length,m=Math.round(this.brightness*255);for(d=0;d<g;d+=4)s[d]=s[d]+m,s[d+1]=s[d+1]+m,s[d+2]=s[d+2]+m}},getUniformLocations:function(c,f){return{uBrightness:c.getUniformLocation(f,"uBrightness")}},sendUniformData:function(c,f){c.uniform1f(f.uBrightness,this.brightness)}}),a.Image.filters.Brightness.fromObject=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric||(o.fabric={}),l=a.util.object.extend,h=a.Image.filters,c=a.util.createClass;h.Convolute=c(h.BaseFilter,{type:"Convolute",opaque:!1,matrix:[0,0,0,0,1,0,0,0,0],fragmentSource:{Convolute_3_1:`precision highp float;
|
|
uniform sampler2D uTexture;
|
|
uniform float uMatrix[9];
|
|
uniform float uStepW;
|
|
uniform float uStepH;
|
|
varying vec2 vTexCoord;
|
|
void main() {
|
|
vec4 color = vec4(0, 0, 0, 0);
|
|
for (float h = 0.0; h < 3.0; h+=1.0) {
|
|
for (float w = 0.0; w < 3.0; w+=1.0) {
|
|
vec2 matrixPos = vec2(uStepW * (w - 1), uStepH * (h - 1));
|
|
color += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 3.0 + w)];
|
|
}
|
|
}
|
|
gl_FragColor = color;
|
|
}`,Convolute_3_0:`precision highp float;
|
|
uniform sampler2D uTexture;
|
|
uniform float uMatrix[9];
|
|
uniform float uStepW;
|
|
uniform float uStepH;
|
|
varying vec2 vTexCoord;
|
|
void main() {
|
|
vec4 color = vec4(0, 0, 0, 1);
|
|
for (float h = 0.0; h < 3.0; h+=1.0) {
|
|
for (float w = 0.0; w < 3.0; w+=1.0) {
|
|
vec2 matrixPos = vec2(uStepW * (w - 1.0), uStepH * (h - 1.0));
|
|
color.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 3.0 + w)];
|
|
}
|
|
}
|
|
float alpha = texture2D(uTexture, vTexCoord).a;
|
|
gl_FragColor = color;
|
|
gl_FragColor.a = alpha;
|
|
}`,Convolute_5_1:`precision highp float;
|
|
uniform sampler2D uTexture;
|
|
uniform float uMatrix[25];
|
|
uniform float uStepW;
|
|
uniform float uStepH;
|
|
varying vec2 vTexCoord;
|
|
void main() {
|
|
vec4 color = vec4(0, 0, 0, 0);
|
|
for (float h = 0.0; h < 5.0; h+=1.0) {
|
|
for (float w = 0.0; w < 5.0; w+=1.0) {
|
|
vec2 matrixPos = vec2(uStepW * (w - 2.0), uStepH * (h - 2.0));
|
|
color += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 5.0 + w)];
|
|
}
|
|
}
|
|
gl_FragColor = color;
|
|
}`,Convolute_5_0:`precision highp float;
|
|
uniform sampler2D uTexture;
|
|
uniform float uMatrix[25];
|
|
uniform float uStepW;
|
|
uniform float uStepH;
|
|
varying vec2 vTexCoord;
|
|
void main() {
|
|
vec4 color = vec4(0, 0, 0, 1);
|
|
for (float h = 0.0; h < 5.0; h+=1.0) {
|
|
for (float w = 0.0; w < 5.0; w+=1.0) {
|
|
vec2 matrixPos = vec2(uStepW * (w - 2.0), uStepH * (h - 2.0));
|
|
color.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 5.0 + w)];
|
|
}
|
|
}
|
|
float alpha = texture2D(uTexture, vTexCoord).a;
|
|
gl_FragColor = color;
|
|
gl_FragColor.a = alpha;
|
|
}`,Convolute_7_1:`precision highp float;
|
|
uniform sampler2D uTexture;
|
|
uniform float uMatrix[49];
|
|
uniform float uStepW;
|
|
uniform float uStepH;
|
|
varying vec2 vTexCoord;
|
|
void main() {
|
|
vec4 color = vec4(0, 0, 0, 0);
|
|
for (float h = 0.0; h < 7.0; h+=1.0) {
|
|
for (float w = 0.0; w < 7.0; w+=1.0) {
|
|
vec2 matrixPos = vec2(uStepW * (w - 3.0), uStepH * (h - 3.0));
|
|
color += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 7.0 + w)];
|
|
}
|
|
}
|
|
gl_FragColor = color;
|
|
}`,Convolute_7_0:`precision highp float;
|
|
uniform sampler2D uTexture;
|
|
uniform float uMatrix[49];
|
|
uniform float uStepW;
|
|
uniform float uStepH;
|
|
varying vec2 vTexCoord;
|
|
void main() {
|
|
vec4 color = vec4(0, 0, 0, 1);
|
|
for (float h = 0.0; h < 7.0; h+=1.0) {
|
|
for (float w = 0.0; w < 7.0; w+=1.0) {
|
|
vec2 matrixPos = vec2(uStepW * (w - 3.0), uStepH * (h - 3.0));
|
|
color.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 7.0 + w)];
|
|
}
|
|
}
|
|
float alpha = texture2D(uTexture, vTexCoord).a;
|
|
gl_FragColor = color;
|
|
gl_FragColor.a = alpha;
|
|
}`,Convolute_9_1:`precision highp float;
|
|
uniform sampler2D uTexture;
|
|
uniform float uMatrix[81];
|
|
uniform float uStepW;
|
|
uniform float uStepH;
|
|
varying vec2 vTexCoord;
|
|
void main() {
|
|
vec4 color = vec4(0, 0, 0, 0);
|
|
for (float h = 0.0; h < 9.0; h+=1.0) {
|
|
for (float w = 0.0; w < 9.0; w+=1.0) {
|
|
vec2 matrixPos = vec2(uStepW * (w - 4.0), uStepH * (h - 4.0));
|
|
color += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 9.0 + w)];
|
|
}
|
|
}
|
|
gl_FragColor = color;
|
|
}`,Convolute_9_0:`precision highp float;
|
|
uniform sampler2D uTexture;
|
|
uniform float uMatrix[81];
|
|
uniform float uStepW;
|
|
uniform float uStepH;
|
|
varying vec2 vTexCoord;
|
|
void main() {
|
|
vec4 color = vec4(0, 0, 0, 1);
|
|
for (float h = 0.0; h < 9.0; h+=1.0) {
|
|
for (float w = 0.0; w < 9.0; w+=1.0) {
|
|
vec2 matrixPos = vec2(uStepW * (w - 4.0), uStepH * (h - 4.0));
|
|
color.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 9.0 + w)];
|
|
}
|
|
}
|
|
float alpha = texture2D(uTexture, vTexCoord).a;
|
|
gl_FragColor = color;
|
|
gl_FragColor.a = alpha;
|
|
}`},retrieveShader:function(f){var s=Math.sqrt(this.matrix.length),d=this.type+"_"+s+"_"+(this.opaque?1:0),g=this.fragmentSource[d];return f.programCache.hasOwnProperty(d)||(f.programCache[d]=this.createProgram(f.context,g)),f.programCache[d]},applyTo2d:function(f){var s=f.imageData,d=s.data,g=this.matrix,m=Math.round(Math.sqrt(g.length)),v=Math.floor(m/2),y=s.width,b=s.height,w=f.ctx.createImageData(y,b),S=w.data,C=this.opaque?1:0,T,k,A,P,z,I,$,O,Y,re,q,J,E;for(q=0;q<b;q++)for(re=0;re<y;re++){for(z=(q*y+re)*4,T=0,k=0,A=0,P=0,E=0;E<m;E++)for(J=0;J<m;J++)$=q+E-v,I=re+J-v,!($<0||$>=b||I<0||I>=y)&&(O=($*y+I)*4,Y=g[E*m+J],T+=d[O]*Y,k+=d[O+1]*Y,A+=d[O+2]*Y,C||(P+=d[O+3]*Y));S[z]=T,S[z+1]=k,S[z+2]=A,C?S[z+3]=d[z+3]:S[z+3]=P}f.imageData=w},getUniformLocations:function(f,s){return{uMatrix:f.getUniformLocation(s,"uMatrix"),uOpaque:f.getUniformLocation(s,"uOpaque"),uHalfSize:f.getUniformLocation(s,"uHalfSize"),uSize:f.getUniformLocation(s,"uSize")}},sendUniformData:function(f,s){f.uniform1fv(s.uMatrix,this.matrix)},toObject:function(){return l(this.callSuper("toObject"),{opaque:this.opaque,matrix:this.matrix})}}),a.Image.filters.Convolute.fromObject=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric||(o.fabric={}),l=a.Image.filters,h=a.util.createClass;l.Grayscale=h(l.BaseFilter,{type:"Grayscale",fragmentSource:{average:`precision highp float;
|
|
uniform sampler2D uTexture;
|
|
varying vec2 vTexCoord;
|
|
void main() {
|
|
vec4 color = texture2D(uTexture, vTexCoord);
|
|
float average = (color.r + color.b + color.g) / 3.0;
|
|
gl_FragColor = vec4(average, average, average, color.a);
|
|
}`,lightness:`precision highp float;
|
|
uniform sampler2D uTexture;
|
|
uniform int uMode;
|
|
varying vec2 vTexCoord;
|
|
void main() {
|
|
vec4 col = texture2D(uTexture, vTexCoord);
|
|
float average = (max(max(col.r, col.g),col.b) + min(min(col.r, col.g),col.b)) / 2.0;
|
|
gl_FragColor = vec4(average, average, average, col.a);
|
|
}`,luminosity:`precision highp float;
|
|
uniform sampler2D uTexture;
|
|
uniform int uMode;
|
|
varying vec2 vTexCoord;
|
|
void main() {
|
|
vec4 col = texture2D(uTexture, vTexCoord);
|
|
float average = 0.21 * col.r + 0.72 * col.g + 0.07 * col.b;
|
|
gl_FragColor = vec4(average, average, average, col.a);
|
|
}`},mode:"average",mainParameter:"mode",applyTo2d:function(c){var f=c.imageData,s=f.data,d,g=s.length,m,v=this.mode;for(d=0;d<g;d+=4)v==="average"?m=(s[d]+s[d+1]+s[d+2])/3:v==="lightness"?m=(Math.min(s[d],s[d+1],s[d+2])+Math.max(s[d],s[d+1],s[d+2]))/2:v==="luminosity"&&(m=.21*s[d]+.72*s[d+1]+.07*s[d+2]),s[d]=m,s[d+1]=m,s[d+2]=m},retrieveShader:function(c){var f=this.type+"_"+this.mode;if(!c.programCache.hasOwnProperty(f)){var s=this.fragmentSource[this.mode];c.programCache[f]=this.createProgram(c.context,s)}return c.programCache[f]},getUniformLocations:function(c,f){return{uMode:c.getUniformLocation(f,"uMode")}},sendUniformData:function(c,f){var s=1;c.uniform1i(f.uMode,s)},isNeutralState:function(){return!1}}),a.Image.filters.Grayscale.fromObject=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric||(o.fabric={}),l=a.Image.filters,h=a.util.createClass;l.Invert=h(l.BaseFilter,{type:"Invert",fragmentSource:`precision highp float;
|
|
uniform sampler2D uTexture;
|
|
uniform int uInvert;
|
|
varying vec2 vTexCoord;
|
|
void main() {
|
|
vec4 color = texture2D(uTexture, vTexCoord);
|
|
if (uInvert == 1) {
|
|
gl_FragColor = vec4(1.0 - color.r,1.0 -color.g,1.0 -color.b,color.a);
|
|
} else {
|
|
gl_FragColor = color;
|
|
}
|
|
}`,invert:!0,mainParameter:"invert",applyTo2d:function(c){var f=c.imageData,s=f.data,d,g=s.length;for(d=0;d<g;d+=4)s[d]=255-s[d],s[d+1]=255-s[d+1],s[d+2]=255-s[d+2]},isNeutralState:function(){return!this.invert},getUniformLocations:function(c,f){return{uInvert:c.getUniformLocation(f,"uInvert")}},sendUniformData:function(c,f){c.uniform1i(f.uInvert,this.invert)}}),a.Image.filters.Invert.fromObject=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric||(o.fabric={}),l=a.util.object.extend,h=a.Image.filters,c=a.util.createClass;h.Noise=c(h.BaseFilter,{type:"Noise",fragmentSource:`precision highp float;
|
|
uniform sampler2D uTexture;
|
|
uniform float uStepH;
|
|
uniform float uNoise;
|
|
uniform float uSeed;
|
|
varying vec2 vTexCoord;
|
|
float rand(vec2 co, float seed, float vScale) {
|
|
return fract(sin(dot(co.xy * vScale ,vec2(12.9898 , 78.233))) * 43758.5453 * (seed + 0.01) / 2.0);
|
|
}
|
|
void main() {
|
|
vec4 color = texture2D(uTexture, vTexCoord);
|
|
color.rgb += (0.5 - rand(vTexCoord, uSeed, 0.1 / uStepH)) * uNoise;
|
|
gl_FragColor = color;
|
|
}`,mainParameter:"noise",noise:0,applyTo2d:function(f){if(this.noise!==0){var s=f.imageData,d=s.data,g,m=d.length,v=this.noise,y;for(g=0,m=d.length;g<m;g+=4)y=(.5-Math.random())*v,d[g]+=y,d[g+1]+=y,d[g+2]+=y}},getUniformLocations:function(f,s){return{uNoise:f.getUniformLocation(s,"uNoise"),uSeed:f.getUniformLocation(s,"uSeed")}},sendUniformData:function(f,s){f.uniform1f(s.uNoise,this.noise/255),f.uniform1f(s.uSeed,Math.random())},toObject:function(){return l(this.callSuper("toObject"),{noise:this.noise})}}),a.Image.filters.Noise.fromObject=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric||(o.fabric={}),l=a.Image.filters,h=a.util.createClass;l.Pixelate=h(l.BaseFilter,{type:"Pixelate",blocksize:4,mainParameter:"blocksize",fragmentSource:`precision highp float;
|
|
uniform sampler2D uTexture;
|
|
uniform float uBlocksize;
|
|
uniform float uStepW;
|
|
uniform float uStepH;
|
|
varying vec2 vTexCoord;
|
|
void main() {
|
|
float blockW = uBlocksize * uStepW;
|
|
float blockH = uBlocksize * uStepW;
|
|
int posX = int(vTexCoord.x / blockW);
|
|
int posY = int(vTexCoord.y / blockH);
|
|
float fposX = float(posX);
|
|
float fposY = float(posY);
|
|
vec2 squareCoords = vec2(fposX * blockW, fposY * blockH);
|
|
vec4 color = texture2D(uTexture, squareCoords);
|
|
gl_FragColor = color;
|
|
}`,applyTo2d:function(c){var f=c.imageData,s=f.data,d=f.height,g=f.width,m,v,y,b,w,S,C,T,k,A,P;for(v=0;v<d;v+=this.blocksize)for(y=0;y<g;y+=this.blocksize)for(m=v*4*g+y*4,b=s[m],w=s[m+1],S=s[m+2],C=s[m+3],A=Math.min(v+this.blocksize,d),P=Math.min(y+this.blocksize,g),T=v;T<A;T++)for(k=y;k<P;k++)m=T*4*g+k*4,s[m]=b,s[m+1]=w,s[m+2]=S,s[m+3]=C},isNeutralState:function(){return this.blocksize===1},getUniformLocations:function(c,f){return{uBlocksize:c.getUniformLocation(f,"uBlocksize"),uStepW:c.getUniformLocation(f,"uStepW"),uStepH:c.getUniformLocation(f,"uStepH")}},sendUniformData:function(c,f){c.uniform1f(f.uBlocksize,this.blocksize)}}),a.Image.filters.Pixelate.fromObject=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric||(o.fabric={}),l=a.util.object.extend,h=a.Image.filters,c=a.util.createClass;h.RemoveColor=c(h.BaseFilter,{type:"RemoveColor",color:"#FFFFFF",fragmentSource:`precision highp float;
|
|
uniform sampler2D uTexture;
|
|
uniform vec4 uLow;
|
|
uniform vec4 uHigh;
|
|
varying vec2 vTexCoord;
|
|
void main() {
|
|
gl_FragColor = texture2D(uTexture, vTexCoord);
|
|
if(all(greaterThan(gl_FragColor.rgb,uLow.rgb)) && all(greaterThan(uHigh.rgb,gl_FragColor.rgb))) {
|
|
gl_FragColor.a = 0.0;
|
|
}
|
|
}`,distance:.02,useAlpha:!1,applyTo2d:function(f){var s=f.imageData,d=s.data,g,m=this.distance*255,v,y,b,w=new a.Color(this.color).getSource(),S=[w[0]-m,w[1]-m,w[2]-m],C=[w[0]+m,w[1]+m,w[2]+m];for(g=0;g<d.length;g+=4)v=d[g],y=d[g+1],b=d[g+2],v>S[0]&&y>S[1]&&b>S[2]&&v<C[0]&&y<C[1]&&b<C[2]&&(d[g+3]=0)},getUniformLocations:function(f,s){return{uLow:f.getUniformLocation(s,"uLow"),uHigh:f.getUniformLocation(s,"uHigh")}},sendUniformData:function(f,s){var d=new a.Color(this.color).getSource(),g=parseFloat(this.distance),m=[0+d[0]/255-g,0+d[1]/255-g,0+d[2]/255-g,1],v=[d[0]/255+g,d[1]/255+g,d[2]/255+g,1];f.uniform4fv(s.uLow,m),f.uniform4fv(s.uHigh,v)},toObject:function(){return l(this.callSuper("toObject"),{color:this.color,distance:this.distance})}}),a.Image.filters.RemoveColor.fromObject=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric||(o.fabric={}),l=a.Image.filters,h=a.util.createClass,c={Brownie:[.5997,.34553,-.27082,0,.186,-.0377,.86095,.15059,0,-.1449,.24113,-.07441,.44972,0,-.02965,0,0,0,1,0],Vintage:[.62793,.32021,-.03965,0,.03784,.02578,.64411,.03259,0,.02926,.0466,-.08512,.52416,0,.02023,0,0,0,1,0],Kodachrome:[1.12855,-.39673,-.03992,0,.24991,-.16404,1.08352,-.05498,0,.09698,-.16786,-.56034,1.60148,0,.13972,0,0,0,1,0],Technicolor:[1.91252,-.85453,-.09155,0,.04624,-.30878,1.76589,-.10601,0,-.27589,-.2311,-.75018,1.84759,0,.12137,0,0,0,1,0],Polaroid:[1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0],Sepia:[.393,.769,.189,0,0,.349,.686,.168,0,0,.272,.534,.131,0,0,0,0,0,1,0],BlackWhite:[1.5,1.5,1.5,0,-1,1.5,1.5,1.5,0,-1,1.5,1.5,1.5,0,-1,0,0,0,1,0]};for(var f in c)l[f]=h(l.ColorMatrix,{type:f,matrix:c[f],mainParameter:!1,colorsOnly:!0}),a.Image.filters[f].fromObject=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric,l=a.Image.filters,h=a.util.createClass;l.BlendColor=h(l.BaseFilter,{type:"BlendColor",color:"#F95C63",mode:"multiply",alpha:1,fragmentSource:{multiply:`gl_FragColor.rgb *= uColor.rgb;
|
|
`,screen:`gl_FragColor.rgb = 1.0 - (1.0 - gl_FragColor.rgb) * (1.0 - uColor.rgb);
|
|
`,add:`gl_FragColor.rgb += uColor.rgb;
|
|
`,diff:`gl_FragColor.rgb = abs(gl_FragColor.rgb - uColor.rgb);
|
|
`,subtract:`gl_FragColor.rgb -= uColor.rgb;
|
|
`,lighten:`gl_FragColor.rgb = max(gl_FragColor.rgb, uColor.rgb);
|
|
`,darken:`gl_FragColor.rgb = min(gl_FragColor.rgb, uColor.rgb);
|
|
`,exclusion:`gl_FragColor.rgb += uColor.rgb - 2.0 * (uColor.rgb * gl_FragColor.rgb);
|
|
`,overlay:`if (uColor.r < 0.5) {
|
|
gl_FragColor.r *= 2.0 * uColor.r;
|
|
} else {
|
|
gl_FragColor.r = 1.0 - 2.0 * (1.0 - gl_FragColor.r) * (1.0 - uColor.r);
|
|
}
|
|
if (uColor.g < 0.5) {
|
|
gl_FragColor.g *= 2.0 * uColor.g;
|
|
} else {
|
|
gl_FragColor.g = 1.0 - 2.0 * (1.0 - gl_FragColor.g) * (1.0 - uColor.g);
|
|
}
|
|
if (uColor.b < 0.5) {
|
|
gl_FragColor.b *= 2.0 * uColor.b;
|
|
} else {
|
|
gl_FragColor.b = 1.0 - 2.0 * (1.0 - gl_FragColor.b) * (1.0 - uColor.b);
|
|
}
|
|
`,tint:`gl_FragColor.rgb *= (1.0 - uColor.a);
|
|
gl_FragColor.rgb += uColor.rgb;
|
|
`},buildSource:function(c){return`precision highp float;
|
|
uniform sampler2D uTexture;
|
|
uniform vec4 uColor;
|
|
varying vec2 vTexCoord;
|
|
void main() {
|
|
vec4 color = texture2D(uTexture, vTexCoord);
|
|
gl_FragColor = color;
|
|
if (color.a > 0.0) {
|
|
`+this.fragmentSource[c]+`}
|
|
}`},retrieveShader:function(c){var f=this.type+"_"+this.mode,s;return c.programCache.hasOwnProperty(f)||(s=this.buildSource(this.mode),c.programCache[f]=this.createProgram(c.context,s)),c.programCache[f]},applyTo2d:function(c){var f=c.imageData,s=f.data,d=s.length,g,m,v,y,b,w,S,C=1-this.alpha;S=new a.Color(this.color).getSource(),g=S[0]*this.alpha,m=S[1]*this.alpha,v=S[2]*this.alpha;for(var T=0;T<d;T+=4)switch(y=s[T],b=s[T+1],w=s[T+2],this.mode){case"multiply":s[T]=y*g/255,s[T+1]=b*m/255,s[T+2]=w*v/255;break;case"screen":s[T]=255-(255-y)*(255-g)/255,s[T+1]=255-(255-b)*(255-m)/255,s[T+2]=255-(255-w)*(255-v)/255;break;case"add":s[T]=y+g,s[T+1]=b+m,s[T+2]=w+v;break;case"diff":case"difference":s[T]=Math.abs(y-g),s[T+1]=Math.abs(b-m),s[T+2]=Math.abs(w-v);break;case"subtract":s[T]=y-g,s[T+1]=b-m,s[T+2]=w-v;break;case"darken":s[T]=Math.min(y,g),s[T+1]=Math.min(b,m),s[T+2]=Math.min(w,v);break;case"lighten":s[T]=Math.max(y,g),s[T+1]=Math.max(b,m),s[T+2]=Math.max(w,v);break;case"overlay":s[T]=g<128?2*y*g/255:255-2*(255-y)*(255-g)/255,s[T+1]=m<128?2*b*m/255:255-2*(255-b)*(255-m)/255,s[T+2]=v<128?2*w*v/255:255-2*(255-w)*(255-v)/255;break;case"exclusion":s[T]=g+y-2*g*y/255,s[T+1]=m+b-2*m*b/255,s[T+2]=v+w-2*v*w/255;break;case"tint":s[T]=g+y*C,s[T+1]=m+b*C,s[T+2]=v+w*C}},getUniformLocations:function(c,f){return{uColor:c.getUniformLocation(f,"uColor")}},sendUniformData:function(c,f){var s=new a.Color(this.color).getSource();s[0]=this.alpha*s[0]/255,s[1]=this.alpha*s[1]/255,s[2]=this.alpha*s[2]/255,s[3]=this.alpha,c.uniform4fv(f.uColor,s)},toObject:function(){return{type:this.type,color:this.color,mode:this.mode,alpha:this.alpha}}}),a.Image.filters.BlendColor.fromObject=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric,l=a.Image.filters,h=a.util.createClass;l.BlendImage=h(l.BaseFilter,{type:"BlendImage",image:null,mode:"multiply",alpha:1,vertexSource:`attribute vec2 aPosition;
|
|
varying vec2 vTexCoord;
|
|
varying vec2 vTexCoord2;
|
|
uniform mat3 uTransformMatrix;
|
|
void main() {
|
|
vTexCoord = aPosition;
|
|
vTexCoord2 = (uTransformMatrix * vec3(aPosition, 1.0)).xy;
|
|
gl_Position = vec4(aPosition * 2.0 - 1.0, 0.0, 1.0);
|
|
}`,fragmentSource:{multiply:`precision highp float;
|
|
uniform sampler2D uTexture;
|
|
uniform sampler2D uImage;
|
|
uniform vec4 uColor;
|
|
varying vec2 vTexCoord;
|
|
varying vec2 vTexCoord2;
|
|
void main() {
|
|
vec4 color = texture2D(uTexture, vTexCoord);
|
|
vec4 color2 = texture2D(uImage, vTexCoord2);
|
|
color.rgba *= color2.rgba;
|
|
gl_FragColor = color;
|
|
}`,mask:`precision highp float;
|
|
uniform sampler2D uTexture;
|
|
uniform sampler2D uImage;
|
|
uniform vec4 uColor;
|
|
varying vec2 vTexCoord;
|
|
varying vec2 vTexCoord2;
|
|
void main() {
|
|
vec4 color = texture2D(uTexture, vTexCoord);
|
|
vec4 color2 = texture2D(uImage, vTexCoord2);
|
|
color.a = color2.a;
|
|
gl_FragColor = color;
|
|
}`},retrieveShader:function(c){var f=this.type+"_"+this.mode,s=this.fragmentSource[this.mode];return c.programCache.hasOwnProperty(f)||(c.programCache[f]=this.createProgram(c.context,s)),c.programCache[f]},applyToWebGL:function(c){var f=c.context,s=this.createTexture(c.filterBackend,this.image);this.bindAdditionalTexture(f,s,f.TEXTURE1),this.callSuper("applyToWebGL",c),this.unbindAdditionalTexture(f,f.TEXTURE1)},createTexture:function(c,f){return c.getCachedTexture(f.cacheKey,f._element)},calculateMatrix:function(){var c=this.image,f=c._element.width,s=c._element.height;return[1/c.scaleX,0,0,0,1/c.scaleY,0,-c.left/f,-c.top/s,1]},applyTo2d:function(c){var f=c.imageData,s=c.filterBackend.resources,d=f.data,g=d.length,m=f.width,v=f.height,y,b,w,S,C,T,k,A,P,z,I=this.image,$;s.blendImage||(s.blendImage=a.util.createCanvasElement()),P=s.blendImage,z=P.getContext("2d"),P.width!==m||P.height!==v?(P.width=m,P.height=v):z.clearRect(0,0,m,v),z.setTransform(I.scaleX,0,0,I.scaleY,I.left,I.top),z.drawImage(I._element,0,0,m,v),$=z.getImageData(0,0,m,v).data;for(var O=0;O<g;O+=4)switch(C=d[O],T=d[O+1],k=d[O+2],A=d[O+3],y=$[O],b=$[O+1],w=$[O+2],S=$[O+3],this.mode){case"multiply":d[O]=C*y/255,d[O+1]=T*b/255,d[O+2]=k*w/255,d[O+3]=A*S/255;break;case"mask":d[O+3]=S;break}},getUniformLocations:function(c,f){return{uTransformMatrix:c.getUniformLocation(f,"uTransformMatrix"),uImage:c.getUniformLocation(f,"uImage")}},sendUniformData:function(c,f){var s=this.calculateMatrix();c.uniform1i(f.uImage,1),c.uniformMatrix3fv(f.uTransformMatrix,!1,s)},toObject:function(){return{type:this.type,image:this.image&&this.image.toObject(),mode:this.mode,alpha:this.alpha}}}),a.Image.filters.BlendImage.fromObject=function(c,f){a.Image.fromObject(c.image,function(s){var d=a.util.object.clone(c);d.image=s,f(new a.Image.filters.BlendImage(d))})}}(e),function(o){var a=o.fabric||(o.fabric={}),l=Math.pow,h=Math.floor,c=Math.sqrt,f=Math.abs,s=Math.round,d=Math.sin,g=Math.ceil,m=a.Image.filters,v=a.util.createClass;m.Resize=v(m.BaseFilter,{type:"Resize",resizeType:"hermite",scaleX:1,scaleY:1,lanczosLobes:3,getUniformLocations:function(y,b){return{uDelta:y.getUniformLocation(b,"uDelta"),uTaps:y.getUniformLocation(b,"uTaps")}},sendUniformData:function(y,b){y.uniform2fv(b.uDelta,this.horizontal?[1/this.width,0]:[0,1/this.height]),y.uniform1fv(b.uTaps,this.taps)},retrieveShader:function(y){var b=this.getFilterWindow(),w=this.type+"_"+b;if(!y.programCache.hasOwnProperty(w)){var S=this.generateShader(b);y.programCache[w]=this.createProgram(y.context,S)}return y.programCache[w]},getFilterWindow:function(){var y=this.tempScale;return Math.ceil(this.lanczosLobes/y)},getTaps:function(){for(var y=this.lanczosCreate(this.lanczosLobes),b=this.tempScale,w=this.getFilterWindow(),S=new Array(w),C=1;C<=w;C++)S[C-1]=y(C*b);return S},generateShader:function(S){for(var b=new Array(S),w=this.fragmentSourceTOP,S,C=1;C<=S;C++)b[C-1]=C+".0 * uDelta";return w+="uniform float uTaps["+S+`];
|
|
`,w+=`void main() {
|
|
`,w+=` vec4 color = texture2D(uTexture, vTexCoord);
|
|
`,w+=` float sum = 1.0;
|
|
`,b.forEach(function(T,k){w+=" color += texture2D(uTexture, vTexCoord + "+T+") * uTaps["+k+`];
|
|
`,w+=" color += texture2D(uTexture, vTexCoord - "+T+") * uTaps["+k+`];
|
|
`,w+=" sum += 2.0 * uTaps["+k+`];
|
|
`}),w+=` gl_FragColor = color / sum;
|
|
`,w+="}",w},fragmentSourceTOP:`precision highp float;
|
|
uniform sampler2D uTexture;
|
|
uniform vec2 uDelta;
|
|
varying vec2 vTexCoord;
|
|
`,applyTo:function(y){y.webgl?(y.passes++,this.width=y.sourceWidth,this.horizontal=!0,this.dW=Math.round(this.width*this.scaleX),this.dH=y.sourceHeight,this.tempScale=this.dW/this.width,this.taps=this.getTaps(),y.destinationWidth=this.dW,this._setupFrameBuffer(y),this.applyToWebGL(y),this._swapTextures(y),y.sourceWidth=y.destinationWidth,this.height=y.sourceHeight,this.horizontal=!1,this.dH=Math.round(this.height*this.scaleY),this.tempScale=this.dH/this.height,this.taps=this.getTaps(),y.destinationHeight=this.dH,this._setupFrameBuffer(y),this.applyToWebGL(y),this._swapTextures(y),y.sourceHeight=y.destinationHeight):this.applyTo2d(y)},isNeutralState:function(){return this.scaleX===1&&this.scaleY===1},lanczosCreate:function(y){return function(b){if(b>=y||b<=-y)return 0;if(b<11920929e-14&&b>-11920929e-14)return 1;b*=Math.PI;var w=b/y;return d(b)/b*d(w)/w}},applyTo2d:function(y){var b=y.imageData,w=this.scaleX,S=this.scaleY;this.rcpScaleX=1/w,this.rcpScaleY=1/S;var C=b.width,T=b.height,k=s(C*w),A=s(T*S),P;this.resizeType==="sliceHack"?P=this.sliceByTwo(y,C,T,k,A):this.resizeType==="hermite"?P=this.hermiteFastResize(y,C,T,k,A):this.resizeType==="bilinear"?P=this.bilinearFiltering(y,C,T,k,A):this.resizeType==="lanczos"&&(P=this.lanczosResize(y,C,T,k,A)),y.imageData=P},sliceByTwo:function(y,b,w,S,C){var T=y.imageData,k=.5,A=!1,P=!1,z=b*k,I=w*k,$=a.filterBackend.resources,O,Y,re=0,q=0,J=b,E=0;for($.sliceByTwo||($.sliceByTwo=document.createElement("canvas")),O=$.sliceByTwo,(O.width<b*1.5||O.height<w)&&(O.width=b*1.5,O.height=w),Y=O.getContext("2d"),Y.clearRect(0,0,b*1.5,w),Y.putImageData(T,0,0),S=h(S),C=h(C);!A||!P;)b=z,w=I,S<h(z*k)?z=h(z*k):(z=S,A=!0),C<h(I*k)?I=h(I*k):(I=C,P=!0),Y.drawImage(O,re,q,b,w,J,E,z,I),re=J,q=E,E+=I;return Y.getImageData(re,q,S,C)},lanczosResize:function(y,b,w,S,C){function T(M){var R,G,D,B,Z,H,Q,te,fe,me,_e;for(E.x=(M+.5)*I,V.x=h(E.x),R=0;R<C;R++){for(E.y=(R+.5)*$,V.y=h(E.y),Z=0,H=0,Q=0,te=0,fe=0,G=V.x-re;G<=V.x+re;G++)if(!(G<0||G>=b)){me=h(1e3*f(G-E.x)),J[me]||(J[me]={});for(var j=V.y-q;j<=V.y+q;j++)j<0||j>=w||(_e=h(1e3*f(j-E.y)),J[me][_e]||(J[me][_e]=z(c(l(me*O,2)+l(_e*Y,2))/1e3)),D=J[me][_e],D>0&&(B=(j*b+G)*4,Z+=D,H+=D*k[B],Q+=D*k[B+1],te+=D*k[B+2],fe+=D*k[B+3]))}B=(R*S+M)*4,P[B]=H/Z,P[B+1]=Q/Z,P[B+2]=te/Z,P[B+3]=fe/Z}return++M<S?T(M):A}var k=y.imageData.data,A=y.ctx.createImageData(S,C),P=A.data,z=this.lanczosCreate(this.lanczosLobes),I=this.rcpScaleX,$=this.rcpScaleY,O=2/this.rcpScaleX,Y=2/this.rcpScaleY,re=g(I*this.lanczosLobes/2),q=g($*this.lanczosLobes/2),J={},E={},V={};return T(0)},bilinearFiltering:function(y,b,w,S,C){var T,k,A,P,z,I,$,O,Y,re,q,J,E=0,V,M=this.rcpScaleX,R=this.rcpScaleY,G=4*(b-1),D=y.imageData,B=D.data,Z=y.ctx.createImageData(S,C),H=Z.data;for($=0;$<C;$++)for(O=0;O<S;O++)for(z=h(M*O),I=h(R*$),Y=M*O-z,re=R*$-I,V=4*(I*b+z),q=0;q<4;q++)T=B[V+q],k=B[V+4+q],A=B[V+G+q],P=B[V+G+4+q],J=T*(1-Y)*(1-re)+k*Y*(1-re)+A*re*(1-Y)+P*Y*re,H[E++]=J;return Z},hermiteFastResize:function(y,b,w,S,C){for(var T=this.rcpScaleX,k=this.rcpScaleY,A=g(T/2),P=g(k/2),z=y.imageData,I=z.data,$=y.ctx.createImageData(S,C),O=$.data,Y=0;Y<C;Y++)for(var re=0;re<S;re++){for(var q=(re+Y*S)*4,J=0,E=0,V=0,M=0,R=0,G=0,D=0,B=(Y+.5)*k,Z=h(Y*k);Z<(Y+1)*k;Z++)for(var H=f(B-(Z+.5))/P,Q=(re+.5)*T,te=H*H,fe=h(re*T);fe<(re+1)*T;fe++){var me=f(Q-(fe+.5))/A,_e=c(te+me*me);_e>1&&_e<-1||(J=2*_e*_e*_e-3*_e*_e+1,J>0&&(me=4*(fe+Z*b),D+=J*I[me+3],V+=J,I[me+3]<255&&(J=J*I[me+3]/250),M+=J*I[me],R+=J*I[me+1],G+=J*I[me+2],E+=J))}O[q]=M/E,O[q+1]=R/E,O[q+2]=G/E,O[q+3]=D/V}return $},toObject:function(){return{type:this.type,scaleX:this.scaleX,scaleY:this.scaleY,resizeType:this.resizeType,lanczosLobes:this.lanczosLobes}}}),a.Image.filters.Resize.fromObject=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric||(o.fabric={}),l=a.Image.filters,h=a.util.createClass;l.Contrast=h(l.BaseFilter,{type:"Contrast",fragmentSource:`precision highp float;
|
|
uniform sampler2D uTexture;
|
|
uniform float uContrast;
|
|
varying vec2 vTexCoord;
|
|
void main() {
|
|
vec4 color = texture2D(uTexture, vTexCoord);
|
|
float contrastF = 1.015 * (uContrast + 1.0) / (1.0 * (1.015 - uContrast));
|
|
color.rgb = contrastF * (color.rgb - 0.5) + 0.5;
|
|
gl_FragColor = color;
|
|
}`,contrast:0,mainParameter:"contrast",applyTo2d:function(c){if(this.contrast!==0){var f=c.imageData,s,g,d=f.data,g=d.length,m=Math.floor(this.contrast*255),v=259*(m+255)/(255*(259-m));for(s=0;s<g;s+=4)d[s]=v*(d[s]-128)+128,d[s+1]=v*(d[s+1]-128)+128,d[s+2]=v*(d[s+2]-128)+128}},getUniformLocations:function(c,f){return{uContrast:c.getUniformLocation(f,"uContrast")}},sendUniformData:function(c,f){c.uniform1f(f.uContrast,this.contrast)}}),a.Image.filters.Contrast.fromObject=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric||(o.fabric={}),l=a.Image.filters,h=a.util.createClass;l.Saturation=h(l.BaseFilter,{type:"Saturation",fragmentSource:`precision highp float;
|
|
uniform sampler2D uTexture;
|
|
uniform float uSaturation;
|
|
varying vec2 vTexCoord;
|
|
void main() {
|
|
vec4 color = texture2D(uTexture, vTexCoord);
|
|
float rgMax = max(color.r, color.g);
|
|
float rgbMax = max(rgMax, color.b);
|
|
color.r += rgbMax != color.r ? (rgbMax - color.r) * uSaturation : 0.00;
|
|
color.g += rgbMax != color.g ? (rgbMax - color.g) * uSaturation : 0.00;
|
|
color.b += rgbMax != color.b ? (rgbMax - color.b) * uSaturation : 0.00;
|
|
gl_FragColor = color;
|
|
}`,saturation:0,mainParameter:"saturation",applyTo2d:function(c){if(this.saturation!==0){var f=c.imageData,s=f.data,d=s.length,g=-this.saturation,m,v;for(m=0;m<d;m+=4)v=Math.max(s[m],s[m+1],s[m+2]),s[m]+=v!==s[m]?(v-s[m])*g:0,s[m+1]+=v!==s[m+1]?(v-s[m+1])*g:0,s[m+2]+=v!==s[m+2]?(v-s[m+2])*g:0}},getUniformLocations:function(c,f){return{uSaturation:c.getUniformLocation(f,"uSaturation")}},sendUniformData:function(c,f){c.uniform1f(f.uSaturation,-this.saturation)}}),a.Image.filters.Saturation.fromObject=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric||(o.fabric={}),l=a.Image.filters,h=a.util.createClass;l.Vibrance=h(l.BaseFilter,{type:"Vibrance",fragmentSource:`precision highp float;
|
|
uniform sampler2D uTexture;
|
|
uniform float uVibrance;
|
|
varying vec2 vTexCoord;
|
|
void main() {
|
|
vec4 color = texture2D(uTexture, vTexCoord);
|
|
float max = max(color.r, max(color.g, color.b));
|
|
float avg = (color.r + color.g + color.b) / 3.0;
|
|
float amt = (abs(max - avg) * 2.0) * uVibrance;
|
|
color.r += max != color.r ? (max - color.r) * amt : 0.00;
|
|
color.g += max != color.g ? (max - color.g) * amt : 0.00;
|
|
color.b += max != color.b ? (max - color.b) * amt : 0.00;
|
|
gl_FragColor = color;
|
|
}`,vibrance:0,mainParameter:"vibrance",applyTo2d:function(c){if(this.vibrance!==0){var f=c.imageData,s=f.data,d=s.length,g=-this.vibrance,m,v,y,b;for(m=0;m<d;m+=4)v=Math.max(s[m],s[m+1],s[m+2]),y=(s[m]+s[m+1]+s[m+2])/3,b=Math.abs(v-y)*2/255*g,s[m]+=v!==s[m]?(v-s[m])*b:0,s[m+1]+=v!==s[m+1]?(v-s[m+1])*b:0,s[m+2]+=v!==s[m+2]?(v-s[m+2])*b:0}},getUniformLocations:function(c,f){return{uVibrance:c.getUniformLocation(f,"uVibrance")}},sendUniformData:function(c,f){c.uniform1f(f.uVibrance,-this.vibrance)}}),a.Image.filters.Vibrance.fromObject=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric||(o.fabric={}),l=a.Image.filters,h=a.util.createClass;l.Blur=h(l.BaseFilter,{type:"Blur",fragmentSource:`precision highp float;
|
|
uniform sampler2D uTexture;
|
|
uniform vec2 uDelta;
|
|
varying vec2 vTexCoord;
|
|
const float nSamples = 15.0;
|
|
vec3 v3offset = vec3(12.9898, 78.233, 151.7182);
|
|
float random(vec3 scale) {
|
|
return fract(sin(dot(gl_FragCoord.xyz, scale)) * 43758.5453);
|
|
}
|
|
void main() {
|
|
vec4 color = vec4(0.0);
|
|
float total = 0.0;
|
|
float offset = random(v3offset);
|
|
for (float t = -nSamples; t <= nSamples; t++) {
|
|
float percent = (t + offset - 0.5) / nSamples;
|
|
float weight = 1.0 - abs(percent);
|
|
color += texture2D(uTexture, vTexCoord + uDelta * percent) * weight;
|
|
total += weight;
|
|
}
|
|
gl_FragColor = color / total;
|
|
}`,blur:0,mainParameter:"blur",applyTo:function(c){c.webgl?(this.aspectRatio=c.sourceWidth/c.sourceHeight,c.passes++,this._setupFrameBuffer(c),this.horizontal=!0,this.applyToWebGL(c),this._swapTextures(c),this._setupFrameBuffer(c),this.horizontal=!1,this.applyToWebGL(c),this._swapTextures(c)):this.applyTo2d(c)},applyTo2d:function(c){c.imageData=this.simpleBlur(c)},simpleBlur:function(c){var f=c.filterBackend.resources,s,d,g=c.imageData.width,m=c.imageData.height;f.blurLayer1||(f.blurLayer1=a.util.createCanvasElement(),f.blurLayer2=a.util.createCanvasElement()),s=f.blurLayer1,d=f.blurLayer2,(s.width!==g||s.height!==m)&&(d.width=s.width=g,d.height=s.height=m);var v=s.getContext("2d"),y=d.getContext("2d"),b=15,w,S,C,T,k=this.blur*.06*.5;for(v.putImageData(c.imageData,0,0),y.clearRect(0,0,g,m),T=-b;T<=b;T++)w=(Math.random()-.5)/4,S=T/b,C=k*S*g+w,y.globalAlpha=1-Math.abs(S),y.drawImage(s,C,w),v.drawImage(d,0,0),y.globalAlpha=1,y.clearRect(0,0,d.width,d.height);for(T=-b;T<=b;T++)w=(Math.random()-.5)/4,S=T/b,C=k*S*m+w,y.globalAlpha=1-Math.abs(S),y.drawImage(s,w,C),v.drawImage(d,0,0),y.globalAlpha=1,y.clearRect(0,0,d.width,d.height);c.ctx.drawImage(s,0,0);var A=c.ctx.getImageData(0,0,s.width,s.height);return v.globalAlpha=1,v.clearRect(0,0,s.width,s.height),A},getUniformLocations:function(c,f){return{delta:c.getUniformLocation(f,"uDelta")}},sendUniformData:function(c,f){var s=this.chooseRightDelta();c.uniform2fv(f.delta,s)},chooseRightDelta:function(){var c=1,f=[0,0],s;return this.horizontal?this.aspectRatio>1&&(c=1/this.aspectRatio):this.aspectRatio<1&&(c=this.aspectRatio),s=c*this.blur*.12,this.horizontal?f[0]=s:f[1]=s,f}}),l.Blur.fromObject=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric||(o.fabric={}),l=a.Image.filters,h=a.util.createClass;l.Gamma=h(l.BaseFilter,{type:"Gamma",fragmentSource:`precision highp float;
|
|
uniform sampler2D uTexture;
|
|
uniform vec3 uGamma;
|
|
varying vec2 vTexCoord;
|
|
void main() {
|
|
vec4 color = texture2D(uTexture, vTexCoord);
|
|
vec3 correction = (1.0 / uGamma);
|
|
color.r = pow(color.r, correction.r);
|
|
color.g = pow(color.g, correction.g);
|
|
color.b = pow(color.b, correction.b);
|
|
gl_FragColor = color;
|
|
gl_FragColor.rgb *= color.a;
|
|
}`,gamma:[1,1,1],mainParameter:"gamma",initialize:function(c){this.gamma=[1,1,1],l.BaseFilter.prototype.initialize.call(this,c)},applyTo2d:function(c){var f=c.imageData,s=f.data,d=this.gamma,g=s.length,m=1/d[0],v=1/d[1],y=1/d[2],b;for(this.rVals||(this.rVals=new Uint8Array(256),this.gVals=new Uint8Array(256),this.bVals=new Uint8Array(256)),b=0,g=256;b<g;b++)this.rVals[b]=Math.pow(b/255,m)*255,this.gVals[b]=Math.pow(b/255,v)*255,this.bVals[b]=Math.pow(b/255,y)*255;for(b=0,g=s.length;b<g;b+=4)s[b]=this.rVals[s[b]],s[b+1]=this.gVals[s[b+1]],s[b+2]=this.bVals[s[b+2]]},getUniformLocations:function(c,f){return{uGamma:c.getUniformLocation(f,"uGamma")}},sendUniformData:function(c,f){c.uniform3fv(f.uGamma,this.gamma)}}),a.Image.filters.Gamma.fromObject=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric||(o.fabric={}),l=a.Image.filters,h=a.util.createClass;l.Composed=h(l.BaseFilter,{type:"Composed",subFilters:[],initialize:function(c){this.callSuper("initialize",c),this.subFilters=this.subFilters.slice(0)},applyTo:function(c){c.passes+=this.subFilters.length-1,this.subFilters.forEach(function(f){f.applyTo(c)})},toObject:function(){return a.util.object.extend(this.callSuper("toObject"),{subFilters:this.subFilters.map(function(c){return c.toObject()})})},isNeutralState:function(){return!this.subFilters.some(function(c){return!c.isNeutralState()})}}),a.Image.filters.Composed.fromObject=function(c,f){var s=c.subFilters||[],d=s.map(function(m){return new a.Image.filters[m.type](m)}),g=new a.Image.filters.Composed({subFilters:d});return f&&f(g),g}}(e),function(o){var a=o.fabric||(o.fabric={}),l=a.Image.filters,h=a.util.createClass;l.HueRotation=h(l.ColorMatrix,{type:"HueRotation",rotation:0,mainParameter:"rotation",calculateMatrix:function(){var c=this.rotation*Math.PI,f=a.util.cos(c),s=a.util.sin(c),d=1/3,g=Math.sqrt(d)*s,m=1-f;this.matrix=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],this.matrix[0]=f+m/3,this.matrix[1]=d*m-g,this.matrix[2]=d*m+g,this.matrix[5]=d*m+g,this.matrix[6]=f+d*m,this.matrix[7]=d*m-g,this.matrix[10]=d*m-g,this.matrix[11]=d*m+g,this.matrix[12]=f+d*m},isNeutralState:function(c){return this.calculateMatrix(),l.BaseFilter.prototype.isNeutralState.call(this,c)},applyTo:function(c){this.calculateMatrix(),l.BaseFilter.prototype.applyTo.call(this,c)}}),a.Image.filters.HueRotation.fromObject=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric||(o.fabric={}),l=a.util.object.clone;if(a.Text){a.warn("fabric.Text is already defined");return}var h="fontFamily fontWeight fontSize text underline overline linethrough textAlign fontStyle lineHeight textBackgroundColor charSpacing styles direction path pathStartOffset pathSide pathAlign".split(" ");a.Text=a.util.createClass(a.Object,{_dimensionAffectingProps:["fontSize","fontWeight","fontFamily","fontStyle","lineHeight","text","charSpacing","textAlign","styles","path","pathStartOffset","pathSide","pathAlign"],_reNewline:/\r?\n/,_reSpacesAndTabs:/[ \t\r]/g,_reSpaceAndTab:/[ \t\r]/,_reWords:/\S+/g,type:"text",fontSize:40,fontWeight:"normal",fontFamily:"Times New Roman",underline:!1,overline:!1,linethrough:!1,textAlign:"left",fontStyle:"normal",lineHeight:1.16,superscript:{size:.6,baseline:-.35},subscript:{size:.6,baseline:.11},textBackgroundColor:"",stateProperties:a.Object.prototype.stateProperties.concat(h),cacheProperties:a.Object.prototype.cacheProperties.concat(h),stroke:null,shadow:null,path:null,pathStartOffset:0,pathSide:"left",pathAlign:"baseline",_fontSizeFraction:.222,offsets:{underline:.1,linethrough:-.315,overline:-.88},_fontSizeMult:1.13,charSpacing:0,styles:null,_measuringContext:null,deltaY:0,direction:"ltr",_styleProperties:["stroke","strokeWidth","fill","fontFamily","fontSize","fontWeight","fontStyle","underline","overline","linethrough","deltaY","textBackgroundColor"],__charBounds:[],CACHE_FONT_SIZE:400,MIN_TEXT_WIDTH:2,initialize:function(c,f){this.styles=f?f.styles||{}:{},this.text=c,this.__skipDimension=!0,this.callSuper("initialize",f),this.path&&this.setPathInfo(),this.__skipDimension=!1,this.initDimensions(),this.setCoords(),this.setupState({propertySet:"_dimensionAffectingProps"})},setPathInfo:function(){var c=this.path;c&&(c.segmentsInfo=a.util.getPathSegmentsInfo(c.path))},getMeasuringContext:function(){return a._measuringContext||(a._measuringContext=this.canvas&&this.canvas.contextCache||a.util.createCanvasElement().getContext("2d")),a._measuringContext},_splitText:function(){var c=this._splitTextIntoLines(this.text);return this.textLines=c.lines,this._textLines=c.graphemeLines,this._unwrappedTextLines=c._unwrappedLines,this._text=c.graphemeText,c},initDimensions:function(){if(!this.__skipDimension){if(this._splitText(),this._clearCache(),this.path){var c=this.getHeightOfLine(0)*1.1;this.width=this.path.width+c,this.height=this.path.height+c}else this.width=this.calcTextWidth()||this.cursorWidth||this.MIN_TEXT_WIDTH,this.height=this.calcTextHeight();this.textAlign.indexOf("justify")!==-1&&this.enlargeSpaces(),this.saveState({propertySet:"_dimensionAffectingProps"})}},enlargeSpaces:function(){for(var c,f,s,d,g,m,v,y=0,b=this._textLines.length;y<b;y++)if(!(this.textAlign!=="justify"&&(y===b-1||this.isEndOfWrapping(y)))&&(d=0,g=this._textLines[y],f=this.getLineWidth(y),f<this.width&&(v=this.textLines[y].match(this._reSpacesAndTabs)))){s=v.length,c=(this.width-f)/s;for(var w=0,S=g.length;w<=S;w++)m=this.__charBounds[y][w],this._reSpaceAndTab.test(g[w])?(m.width+=c,m.kernedWidth+=c,m.left+=d,d+=c):m.left+=d}},isEndOfWrapping:function(c){return c===this._textLines.length-1},missingNewlineOffset:function(){return 1},toString:function(){return"#<fabric.Text ("+this.complexity()+'): { "text": "'+this.text+'", "fontFamily": "'+this.fontFamily+'" }>'},_getCacheCanvasDimensions:function(){var c=this.callSuper("_getCacheCanvasDimensions"),f=this.fontSize;return c.width+=f*c.zoomX,c.height+=f*c.zoomY,c},_render:function(c){var f=this.path;f&&!f.isNotVisible()&&f._render(c),this._setTextStyles(c),this._renderTextLinesBackground(c),this._renderTextDecoration(c,"underline"),this._renderText(c),this._renderTextDecoration(c,"overline"),this._renderTextDecoration(c,"linethrough")},_renderText:function(c){this.paintFirst==="stroke"?(this._renderTextStroke(c),this._renderTextFill(c)):(this._renderTextFill(c),this._renderTextStroke(c))},_setTextStyles:function(c,f,s){if(c.textBaseline="alphabetic",this.path)switch(this.pathAlign){case"center":c.textBaseline="middle";break;case"ascender":c.textBaseline="top";break;case"descender":c.textBaseline="bottom";break}c.font=this._getFontDeclaration(f,s)},calcTextWidth:function(){for(var c=this.getLineWidth(0),f=1,s=this._textLines.length;f<s;f++){var d=this.getLineWidth(f);d>c&&(c=d)}return c},_renderTextLine:function(c,f,s,d,g,m){this._renderChars(c,f,s,d,g,m)},_renderTextLinesBackground:function(c){if(!(!this.textBackgroundColor&&!this.styleHas("textBackgroundColor"))){for(var f,s,d=c.fillStyle,g,m,v=this._getLeftOffset(),y=this._getTopOffset(),b=0,w=0,S,C,T=this.path,k,A=0,P=this._textLines.length;A<P;A++){if(f=this.getHeightOfLine(A),!this.textBackgroundColor&&!this.styleHas("textBackgroundColor",A)){y+=f;continue}g=this._textLines[A],s=this._getLineLeftOffset(A),w=0,b=0,m=this.getValueOfPropertyAt(A,0,"textBackgroundColor");for(var z=0,I=g.length;z<I;z++)S=this.__charBounds[A][z],C=this.getValueOfPropertyAt(A,z,"textBackgroundColor"),T?(c.save(),c.translate(S.renderLeft,S.renderTop),c.rotate(S.angle),c.fillStyle=C,C&&c.fillRect(-S.width/2,-f/this.lineHeight*(1-this._fontSizeFraction),S.width,f/this.lineHeight),c.restore()):C!==m?(k=v+s+b,this.direction==="rtl"&&(k=this.width-k-w),c.fillStyle=m,m&&c.fillRect(k,y,w,f/this.lineHeight),b=S.left,w=S.width,m=C):w+=S.kernedWidth;C&&!T&&(k=v+s+b,this.direction==="rtl"&&(k=this.width-k-w),c.fillStyle=C,c.fillRect(k,y,w,f/this.lineHeight)),y+=f}c.fillStyle=d,this._removeShadow(c)}},getFontCache:function(c){var f=c.fontFamily.toLowerCase();a.charWidthsCache[f]||(a.charWidthsCache[f]={});var s=a.charWidthsCache[f],d=c.fontStyle.toLowerCase()+"_"+(c.fontWeight+"").toLowerCase();return s[d]||(s[d]={}),s[d]},_measureChar:function(c,f,s,d){var g=this.getFontCache(f),m=this._getFontDeclaration(f),v=this._getFontDeclaration(d),y=s+c,b=m===v,w,S,C,T=f.fontSize/this.CACHE_FONT_SIZE,k;if(s&&g[s]!==void 0&&(C=g[s]),g[c]!==void 0&&(k=w=g[c]),b&&g[y]!==void 0&&(S=g[y],k=S-C),w===void 0||C===void 0||S===void 0){var A=this.getMeasuringContext();this._setTextStyles(A,f,!0)}return w===void 0&&(k=w=A.measureText(c).width,g[c]=w),C===void 0&&b&&s&&(C=A.measureText(s).width,g[s]=C),b&&S===void 0&&(S=A.measureText(y).width,g[y]=S,k=S-C),{width:w*T,kernedWidth:k*T}},getHeightOfChar:function(c,f){return this.getValueOfPropertyAt(c,f,"fontSize")},measureLine:function(c){var f=this._measureLine(c);return this.charSpacing!==0&&(f.width-=this._getWidthOfCharSpacing()),f.width<0&&(f.width=0),f},_measureLine:function(c){var f=0,s,d,g=this._textLines[c],m,v,y=0,b=new Array(g.length),w=0,S,C,T=this.path,k=this.pathSide==="right";for(this.__charBounds[c]=b,s=0;s<g.length;s++)d=g[s],v=this._getGraphemeBox(d,c,s,m),b[s]=v,f+=v.kernedWidth,m=d;if(b[s]={left:v?v.left+v.width:0,width:0,kernedWidth:0,height:this.fontSize},T){switch(C=T.segmentsInfo[T.segmentsInfo.length-1].length,S=a.util.getPointOnPath(T.path,0,T.segmentsInfo),S.x+=T.pathOffset.x,S.y+=T.pathOffset.y,this.textAlign){case"left":w=k?C-f:0;break;case"center":w=(C-f)/2;break;case"right":w=k?0:C-f;break}for(w+=this.pathStartOffset*(k?-1:1),s=k?g.length-1:0;k?s>=0:s<g.length;k?s--:s++)v=b[s],w>C?w%=C:w<0&&(w+=C),this._setGraphemeOnPath(w,v,S),w+=v.kernedWidth}return{width:f,numOfSpaces:y}},_setGraphemeOnPath:function(c,f,s){var d=c+f.kernedWidth/2,g=this.path,m=a.util.getPointOnPath(g.path,d,g.segmentsInfo);f.renderLeft=m.x-s.x,f.renderTop=m.y-s.y,f.angle=m.angle+(this.pathSide==="right"?Math.PI:0)},_getGraphemeBox:function(c,f,s,d,g){var m=this.getCompleteStyleDeclaration(f,s),v=d?this.getCompleteStyleDeclaration(f,s-1):{},y=this._measureChar(c,m,d,v),b=y.kernedWidth,w=y.width,S;this.charSpacing!==0&&(S=this._getWidthOfCharSpacing(),w+=S,b+=S);var C={width:w,left:0,height:m.fontSize,kernedWidth:b,deltaY:m.deltaY};if(s>0&&!g){var T=this.__charBounds[f][s-1];C.left=T.left+T.width+y.kernedWidth-y.width}return C},getHeightOfLine:function(c){if(this.__lineHeights[c])return this.__lineHeights[c];for(var f=this._textLines[c],s=this.getHeightOfChar(c,0),d=1,g=f.length;d<g;d++)s=Math.max(this.getHeightOfChar(c,d),s);return this.__lineHeights[c]=s*this.lineHeight*this._fontSizeMult},calcTextHeight:function(){for(var c,f=0,s=0,d=this._textLines.length;s<d;s++)c=this.getHeightOfLine(s),f+=s===d-1?c/this.lineHeight:c;return f},_getLeftOffset:function(){return this.direction==="ltr"?-this.width/2:this.width/2},_getTopOffset:function(){return-this.height/2},_renderTextCommon:function(c,f){c.save();for(var s=0,d=this._getLeftOffset(),g=this._getTopOffset(),m=0,v=this._textLines.length;m<v;m++){var y=this.getHeightOfLine(m),b=y/this.lineHeight,w=this._getLineLeftOffset(m);this._renderTextLine(f,c,this._textLines[m],d+w,g+s+b,m),s+=y}c.restore()},_renderTextFill:function(c){!this.fill&&!this.styleHas("fill")||this._renderTextCommon(c,"fillText")},_renderTextStroke:function(c){(!this.stroke||this.strokeWidth===0)&&this.isEmptyStyles()||(this.shadow&&!this.shadow.affectStroke&&this._removeShadow(c),c.save(),this._setLineDash(c,this.strokeDashArray),c.beginPath(),this._renderTextCommon(c,"strokeText"),c.closePath(),c.restore())},_renderChars:function(c,f,s,d,g,m){var v=this.getHeightOfLine(m),y=this.textAlign.indexOf("justify")!==-1,b,w,S="",C,T=0,k,A=this.path,P=!y&&this.charSpacing===0&&this.isEmptyStyles(m)&&!A,z=this.direction==="ltr",I=this.direction==="ltr"?1:-1,$,O=f.canvas.getAttribute("dir");if(f.save(),O!==this.direction&&(f.canvas.setAttribute("dir",z?"ltr":"rtl"),f.direction=z?"ltr":"rtl",f.textAlign=z?"left":"right"),g-=v*this._fontSizeFraction/this.lineHeight,P){this._renderChar(c,f,m,0,s.join(""),d,g,v),f.restore();return}for(var Y=0,re=s.length-1;Y<=re;Y++)k=Y===re||this.charSpacing||A,S+=s[Y],C=this.__charBounds[m][Y],T===0?(d+=I*(C.kernedWidth-C.width),T+=C.width):T+=C.kernedWidth,y&&!k&&this._reSpaceAndTab.test(s[Y])&&(k=!0),k||(b=b||this.getCompleteStyleDeclaration(m,Y),w=this.getCompleteStyleDeclaration(m,Y+1),k=a.util.hasStyleChanged(b,w,!1)),k&&(A?(f.save(),f.translate(C.renderLeft,C.renderTop),f.rotate(C.angle),this._renderChar(c,f,m,Y,S,-T/2,0,v),f.restore()):($=d,this._renderChar(c,f,m,Y,S,$,g,v)),S="",b=w,d+=I*T,T=0);f.restore()},_applyPatternGradientTransformText:function(c){var f=a.util.createCanvasElement(),s,d=this.width+this.strokeWidth,g=this.height+this.strokeWidth;return f.width=d,f.height=g,s=f.getContext("2d"),s.beginPath(),s.moveTo(0,0),s.lineTo(d,0),s.lineTo(d,g),s.lineTo(0,g),s.closePath(),s.translate(d/2,g/2),s.fillStyle=c.toLive(s),this._applyPatternGradientTransform(s,c),s.fill(),s.createPattern(f,"no-repeat")},handleFiller:function(c,f,s){var d,g;return s.toLive?s.gradientUnits==="percentage"||s.gradientTransform||s.patternTransform?(d=-this.width/2,g=-this.height/2,c.translate(d,g),c[f]=this._applyPatternGradientTransformText(s),{offsetX:d,offsetY:g}):(c[f]=s.toLive(c,this),this._applyPatternGradientTransform(c,s)):(c[f]=s,{offsetX:0,offsetY:0})},_setStrokeStyles:function(c,f){return c.lineWidth=f.strokeWidth,c.lineCap=this.strokeLineCap,c.lineDashOffset=this.strokeDashOffset,c.lineJoin=this.strokeLineJoin,c.miterLimit=this.strokeMiterLimit,this.handleFiller(c,"strokeStyle",f.stroke)},_setFillStyles:function(c,f){return this.handleFiller(c,"fillStyle",f.fill)},_renderChar:function(c,f,s,d,g,m,v){var y=this._getStyleDeclaration(s,d),b=this.getCompleteStyleDeclaration(s,d),w=c==="fillText"&&b.fill,S=c==="strokeText"&&b.stroke&&b.strokeWidth,C,T;!S&&!w||(f.save(),w&&(C=this._setFillStyles(f,b)),S&&(T=this._setStrokeStyles(f,b)),f.font=this._getFontDeclaration(b),y&&y.textBackgroundColor&&this._removeShadow(f),y&&y.deltaY&&(v+=y.deltaY),w&&f.fillText(g,m-C.offsetX,v-C.offsetY),S&&f.strokeText(g,m-T.offsetX,v-T.offsetY),f.restore())},setSuperscript:function(c,f){return this._setScript(c,f,this.superscript)},setSubscript:function(c,f){return this._setScript(c,f,this.subscript)},_setScript:function(c,f,s){var d=this.get2DCursorLocation(c,!0),g=this.getValueOfPropertyAt(d.lineIndex,d.charIndex,"fontSize"),m=this.getValueOfPropertyAt(d.lineIndex,d.charIndex,"deltaY"),v={fontSize:g*s.size,deltaY:m+g*s.baseline};return this.setSelectionStyles(v,c,f),this},_getLineLeftOffset:function(c){var f=this.getLineWidth(c),s=this.width-f,d=this.textAlign,g=this.direction,v,m=0,v=this.isEndOfWrapping(c);return d==="justify"||d==="justify-center"&&!v||d==="justify-right"&&!v||d==="justify-left"&&!v?0:(d==="center"&&(m=s/2),d==="right"&&(m=s),d==="justify-center"&&(m=s/2),d==="justify-right"&&(m=s),g==="rtl"&&(m-=s),m)},_clearCache:function(){this.__lineWidths=[],this.__lineHeights=[],this.__charBounds=[]},_shouldClearDimensionCache:function(){var c=this._forceClearCache;return c||(c=this.hasStateChanged("_dimensionAffectingProps")),c&&(this.dirty=!0,this._forceClearCache=!1),c},getLineWidth:function(c){if(this.__lineWidths[c]!==void 0)return this.__lineWidths[c];var f=this.measureLine(c),s=f.width;return this.__lineWidths[c]=s,s},_getWidthOfCharSpacing:function(){return this.charSpacing!==0?this.fontSize*this.charSpacing/1e3:0},getValueOfPropertyAt:function(c,f,s){var d=this._getStyleDeclaration(c,f);return d&&typeof d[s]<"u"?d[s]:this[s]},_renderTextDecoration:function(c,f){if(!(!this[f]&&!this.styleHas(f))){c.save(),(f==="overline"||f==="linethrough")&&this._removeShadow(c);for(var s,d,g,m,v,y,b,w,S=this._getLeftOffset(),C=this._getTopOffset(),T,k,A,P,z,I,$,O,Y=this.path,re=this._getWidthOfCharSpacing(),q=this.offsets[f],J=0,E=this._textLines.length;J<E;J++){if(s=this.getHeightOfLine(J),!this[f]&&!this.styleHas(f,J)){C+=s;continue}b=this._textLines[J],I=s/this.lineHeight,m=this._getLineLeftOffset(J),k=0,A=0,w=this.getValueOfPropertyAt(J,0,f),O=this.getValueOfPropertyAt(J,0,"fill"),T=C+I*(1-this._fontSizeFraction),d=this.getHeightOfChar(J,0),v=this.getValueOfPropertyAt(J,0,"deltaY");for(var V=0,M=b.length;V<M;V++)if(P=this.__charBounds[J][V],z=this.getValueOfPropertyAt(J,V,f),$=this.getValueOfPropertyAt(J,V,"fill"),g=this.getHeightOfChar(J,V),y=this.getValueOfPropertyAt(J,V,"deltaY"),Y&&z&&$)c.save(),c.fillStyle=O,c.translate(P.renderLeft,P.renderTop),c.rotate(P.angle),c.fillRect(-P.kernedWidth/2,q*g+y,P.kernedWidth,this.fontSize/15),c.restore();else if((z!==w||$!==O||g!==d||y!==v)&&A>0){var R=S+m+k;this.direction==="rtl"&&(R=this.width-R-A),w&&O&&(c.fillStyle=O,c.fillRect(R,T+q*d+v,A,this.fontSize/15)),k=P.left,A=P.width,w=z,O=$,d=g,v=y}else A+=P.kernedWidth;var R=S+m+k;this.direction==="rtl"&&(R=this.width-R-A),c.fillStyle=$,z&&$&&c.fillRect(R,T+q*d+v,A-re,this.fontSize/15),C+=s}c.restore()}},_getFontDeclaration:function(c,f){var s=c||this,d=this.fontFamily,g=a.Text.genericFonts.indexOf(d.toLowerCase())>-1,m=d===void 0||d.indexOf("'")>-1||d.indexOf(",")>-1||d.indexOf('"')>-1||g?s.fontFamily:'"'+s.fontFamily+'"';return[a.isLikelyNode?s.fontWeight:s.fontStyle,a.isLikelyNode?s.fontStyle:s.fontWeight,f?this.CACHE_FONT_SIZE+"px":s.fontSize+"px",m].join(" ")},render:function(c){!this.visible||this.canvas&&this.canvas.skipOffscreen&&!this.group&&!this.isOnScreen()||(this._shouldClearDimensionCache()&&this.initDimensions(),this.callSuper("render",c))},_splitTextIntoLines:function(c){for(var f=c.split(this._reNewline),s=new Array(f.length),d=[`
|
|
`],g=[],m=0;m<f.length;m++)s[m]=a.util.string.graphemeSplit(f[m]),g=g.concat(s[m],d);return g.pop(),{_unwrappedLines:s,lines:f,graphemeText:g,graphemeLines:s}},toObject:function(c){var f=h.concat(c),s=this.callSuper("toObject",f);return s.styles=a.util.stylesToArray(this.styles,this.text),s.path&&(s.path=this.path.toObject()),s},set:function(c,f){this.callSuper("set",c,f);var s=!1,d=!1;if(typeof c=="object")for(var g in c)g==="path"&&this.setPathInfo(),s=s||this._dimensionAffectingProps.indexOf(g)!==-1,d=d||g==="path";else s=this._dimensionAffectingProps.indexOf(c)!==-1,d=c==="path";return d&&this.setPathInfo(),s&&(this.initDimensions(),this.setCoords()),this},complexity:function(){return 1}}),a.Text.ATTRIBUTE_NAMES=a.SHARED_ATTRIBUTES.concat("x y dx dy font-family font-style font-weight font-size letter-spacing text-decoration text-anchor".split(" ")),a.Text.DEFAULT_SVG_FONT_SIZE=16,a.Text.fromElement=function(c,f,s){if(!c)return f(null);var d=a.parseAttributes(c,a.Text.ATTRIBUTE_NAMES),g=d.textAnchor||"left";if(s=a.util.object.extend(s?l(s):{},d),s.top=s.top||0,s.left=s.left||0,d.textDecoration){var m=d.textDecoration;m.indexOf("underline")!==-1&&(s.underline=!0),m.indexOf("overline")!==-1&&(s.overline=!0),m.indexOf("line-through")!==-1&&(s.linethrough=!0),delete s.textDecoration}"dx"in d&&(s.left+=d.dx),"dy"in d&&(s.top+=d.dy),"fontSize"in s||(s.fontSize=a.Text.DEFAULT_SVG_FONT_SIZE);var v="";"textContent"in c?v=c.textContent:"firstChild"in c&&c.firstChild!==null&&"data"in c.firstChild&&c.firstChild.data!==null&&(v=c.firstChild.data),v=v.replace(/^\s+|\s+$|\n+/g,"").replace(/\s+/g," ");var y=s.strokeWidth;s.strokeWidth=0;var b=new a.Text(v,s),w=b.getScaledHeight()/b.height,S=(b.height+b.strokeWidth)*b.lineHeight-b.height,C=S*w,T=b.getScaledHeight()+C,k=0;g==="center"&&(k=b.getScaledWidth()/2),g==="right"&&(k=b.getScaledWidth()),b.set({left:b.left-k,top:b.top-(T-b.fontSize*(.07+b._fontSizeFraction))/b.lineHeight,strokeWidth:typeof y<"u"?y:1}),f(b)},a.Text.fromObject=function(c,f){var s=l(c),d=c.path;return delete s.path,a.Object._fromObject("Text",s,function(g){g.styles=a.util.stylesFromArray(c.styles,c.text),d?a.Object._fromObject("Path",d,function(m){g.set("path",m),f(g)},"path"):f(g)},"text")},a.Text.genericFonts=["sans-serif","serif","cursive","fantasy","monospace"],a.util.createAccessors&&a.util.createAccessors(a.Text)}(e),function(){t.util.object.extend(t.Text.prototype,{isEmptyStyles:function(o){if(!this.styles||typeof o<"u"&&!this.styles[o])return!0;var a=typeof o>"u"?this.styles:{line:this.styles[o]};for(var l in a)for(var h in a[l])for(var c in a[l][h])return!1;return!0},styleHas:function(o,a){if(!this.styles||!o||o===""||typeof a<"u"&&!this.styles[a])return!1;var l=typeof a>"u"?this.styles:{0:this.styles[a]};for(var h in l)for(var c in l[h])if(typeof l[h][c][o]<"u")return!0;return!1},cleanStyle:function(o){if(!this.styles||!o||o==="")return!1;var a=this.styles,l=0,h,c,f=!0,s=0,d;for(var g in a){h=0;for(var m in a[g]){var d=a[g][m],v=d.hasOwnProperty(o);l++,v?(c?d[o]!==c&&(f=!1):c=d[o],d[o]===this[o]&&delete d[o]):f=!1,Object.keys(d).length!==0?h++:delete a[g][m]}h===0&&delete a[g]}for(var y=0;y<this._textLines.length;y++)s+=this._textLines[y].length;f&&l===s&&(this[o]=c,this.removeStyle(o))},removeStyle:function(o){if(!(!this.styles||!o||o==="")){var a=this.styles,l,h,c;for(h in a){l=a[h];for(c in l)delete l[c][o],Object.keys(l[c]).length===0&&delete l[c];Object.keys(l).length===0&&delete a[h]}}},_extendStyles:function(o,a){var l=this.get2DCursorLocation(o);this._getLineStyle(l.lineIndex)||this._setLineStyle(l.lineIndex),this._getStyleDeclaration(l.lineIndex,l.charIndex)||this._setStyleDeclaration(l.lineIndex,l.charIndex,{}),t.util.object.extend(this._getStyleDeclaration(l.lineIndex,l.charIndex),a)},get2DCursorLocation:function(o,a){typeof o>"u"&&(o=this.selectionStart);for(var l=a?this._unwrappedTextLines:this._textLines,h=l.length,c=0;c<h;c++){if(o<=l[c].length)return{lineIndex:c,charIndex:o};o-=l[c].length+this.missingNewlineOffset(c,a)}return{lineIndex:c-1,charIndex:l[c-1].length<o?l[c-1].length:o}},getSelectionStyles:function(o,a,l){typeof o>"u"&&(o=this.selectionStart||0),typeof a>"u"&&(a=this.selectionEnd||o);for(var h=[],c=o;c<a;c++)h.push(this.getStyleAtPosition(c,l));return h},getStyleAtPosition:function(o,a){var l=this.get2DCursorLocation(o),h=a?this.getCompleteStyleDeclaration(l.lineIndex,l.charIndex):this._getStyleDeclaration(l.lineIndex,l.charIndex);return h||{}},setSelectionStyles:function(o,a,l){typeof a>"u"&&(a=this.selectionStart||0),typeof l>"u"&&(l=this.selectionEnd||a);for(var h=a;h<l;h++)this._extendStyles(h,o);return this._forceClearCache=!0,this},_getStyleDeclaration:function(o,a){var l=this.styles&&this.styles[o];return l?l[a]:null},getCompleteStyleDeclaration:function(o,a){for(var l=this._getStyleDeclaration(o,a)||{},h={},c,f=0;f<this._styleProperties.length;f++)c=this._styleProperties[f],h[c]=typeof l[c]>"u"?this[c]:l[c];return h},_setStyleDeclaration:function(o,a,l){this.styles[o][a]=l},_deleteStyleDeclaration:function(o,a){delete this.styles[o][a]},_getLineStyle:function(o){return!!this.styles[o]},_setLineStyle:function(o){this.styles[o]={}},_deleteLineStyle:function(o){delete this.styles[o]}})}(),function(){function o(a){a.textDecoration&&(a.textDecoration.indexOf("underline")>-1&&(a.underline=!0),a.textDecoration.indexOf("line-through")>-1&&(a.linethrough=!0),a.textDecoration.indexOf("overline")>-1&&(a.overline=!0),delete a.textDecoration)}t.IText=t.util.createClass(t.Text,t.Observable,{type:"i-text",selectionStart:0,selectionEnd:0,selectionColor:"rgba(17,119,255,0.3)",isEditing:!1,editable:!0,editingBorderColor:"rgba(102,153,255,0.25)",cursorWidth:2,cursorColor:"",cursorDelay:1e3,cursorDuration:600,caching:!0,hiddenTextareaContainer:null,_reSpace:/\s|\n/,_currentCursorOpacity:0,_selectionDirection:null,_abortCursorAnimation:!1,__widthOfSpace:[],inCompositionMode:!1,initialize:function(a,l){this.callSuper("initialize",a,l),this.initBehavior()},setSelectionStart:function(a){a=Math.max(a,0),this._updateAndFire("selectionStart",a)},setSelectionEnd:function(a){a=Math.min(a,this.text.length),this._updateAndFire("selectionEnd",a)},_updateAndFire:function(a,l){this[a]!==l&&(this._fireSelectionChanged(),this[a]=l),this._updateTextarea()},_fireSelectionChanged:function(){this.fire("selection:changed"),this.canvas&&this.canvas.fire("text:selection:changed",{target:this})},initDimensions:function(){this.isEditing&&this.initDelayedCursor(),this.clearContextTop(),this.callSuper("initDimensions")},render:function(a){this.clearContextTop(),this.callSuper("render",a),this.cursorOffsetCache={},this.renderCursorOrSelection()},_render:function(a){this.callSuper("_render",a)},clearContextTop:function(a){if(!(!this.isEditing||!this.canvas||!this.canvas.contextTop)){var l=this.canvas.contextTop,h=this.canvas.viewportTransform;l.save(),l.transform(h[0],h[1],h[2],h[3],h[4],h[5]),this.transform(l),this._clearTextArea(l),a||l.restore()}},renderCursorOrSelection:function(){if(!(!this.isEditing||!this.canvas||!this.canvas.contextTop)){var a=this._getCursorBoundaries(),l=this.canvas.contextTop;this.clearContextTop(!0),this.selectionStart===this.selectionEnd?this.renderCursor(a,l):this.renderSelection(a,l),l.restore()}},_clearTextArea:function(a){var l=this.width+4,h=this.height+4;a.clearRect(-l/2,-h/2,l,h)},_getCursorBoundaries:function(a){typeof a>"u"&&(a=this.selectionStart);var l=this._getLeftOffset(),h=this._getTopOffset(),c=this._getCursorBoundariesOffsets(a);return{left:l,top:h,leftOffset:c.left,topOffset:c.top}},_getCursorBoundariesOffsets:function(a){if(this.cursorOffsetCache&&"top"in this.cursorOffsetCache)return this.cursorOffsetCache;var l,h,c,f=0,s=0,d,g=this.get2DCursorLocation(a);c=g.charIndex,h=g.lineIndex;for(var m=0;m<h;m++)f+=this.getHeightOfLine(m);l=this._getLineLeftOffset(h);var v=this.__charBounds[h][c];return v&&(s=v.left),this.charSpacing!==0&&c===this._textLines[h].length&&(s-=this._getWidthOfCharSpacing()),d={top:f,left:l+(s>0?s:0)},this.direction==="rtl"&&(d.left*=-1),this.cursorOffsetCache=d,this.cursorOffsetCache},renderCursor:function(a,l){var h=this.get2DCursorLocation(),c=h.lineIndex,f=h.charIndex>0?h.charIndex-1:0,s=this.getValueOfPropertyAt(c,f,"fontSize"),d=this.scaleX*this.canvas.getZoom(),g=this.cursorWidth/d,m=a.topOffset,v=this.getValueOfPropertyAt(c,f,"deltaY");m+=(1-this._fontSizeFraction)*this.getHeightOfLine(c)/this.lineHeight-s*(1-this._fontSizeFraction),this.inCompositionMode&&this.renderSelection(a,l),l.fillStyle=this.cursorColor||this.getValueOfPropertyAt(c,f,"fill"),l.globalAlpha=this.__isMousedown?1:this._currentCursorOpacity,l.fillRect(a.left+a.leftOffset-g/2,m+a.top+v,g,s)},renderSelection:function(a,l){for(var h=this.inCompositionMode?this.hiddenTextarea.selectionStart:this.selectionStart,c=this.inCompositionMode?this.hiddenTextarea.selectionEnd:this.selectionEnd,f=this.textAlign.indexOf("justify")!==-1,s=this.get2DCursorLocation(h),d=this.get2DCursorLocation(c),g=s.lineIndex,m=d.lineIndex,v=s.charIndex<0?0:s.charIndex,y=d.charIndex<0?0:d.charIndex,b=g;b<=m;b++){var w=this._getLineLeftOffset(b)||0,S=this.getHeightOfLine(b),C=0,T=0,k=0;if(b===g&&(T=this.__charBounds[g][v].left),b>=g&&b<m)k=f&&!this.isEndOfWrapping(b)?this.width:this.getLineWidth(b)||5;else if(b===m)if(y===0)k=this.__charBounds[m][y].left;else{var A=this._getWidthOfCharSpacing();k=this.__charBounds[m][y-1].left+this.__charBounds[m][y-1].width-A}C=S,(this.lineHeight<1||b===m&&this.lineHeight>1)&&(S/=this.lineHeight);var P=a.left+w+T,z=k-T,I=S,$=0;this.inCompositionMode?(l.fillStyle=this.compositionColor||"black",I=1,$=S):l.fillStyle=this.selectionColor,this.direction==="rtl"&&(P=this.width-P-z),l.fillRect(P,a.top+a.topOffset+$,z,I),a.topOffset+=C}},getCurrentCharFontSize:function(){var a=this._getCurrentCharIndex();return this.getValueOfPropertyAt(a.l,a.c,"fontSize")},getCurrentCharColor:function(){var a=this._getCurrentCharIndex();return this.getValueOfPropertyAt(a.l,a.c,"fill")},_getCurrentCharIndex:function(){var a=this.get2DCursorLocation(this.selectionStart,!0),l=a.charIndex>0?a.charIndex-1:0;return{l:a.lineIndex,c:l}}}),t.IText.fromObject=function(a,l){var h=t.util.stylesFromArray(a.styles,a.text),c=Object.assign({},a,{styles:h});if(delete c.path,o(c),c.styles)for(var f in c.styles)for(var s in c.styles[f])o(c.styles[f][s]);t.Object._fromObject("IText",c,function(d){a.path?t.Object._fromObject("Path",a.path,function(g){d.set("path",g),l(d)},"path"):l(d)},"text")}}(),function(){var o=t.util.object.clone;t.util.object.extend(t.IText.prototype,{initBehavior:function(){this.initAddedHandler(),this.initRemovedHandler(),this.initCursorSelectionHandlers(),this.initDoubleClickSimulation(),this.mouseMoveHandler=this.mouseMoveHandler.bind(this)},onDeselect:function(){this.isEditing&&this.exitEditing(),this.selected=!1},initAddedHandler:function(){var a=this;this.on("added",function(){var l=a.canvas;l&&(l._hasITextHandlers||(l._hasITextHandlers=!0,a._initCanvasHandlers(l)),l._iTextInstances=l._iTextInstances||[],l._iTextInstances.push(a))})},initRemovedHandler:function(){var a=this;this.on("removed",function(){var l=a.canvas;l&&(l._iTextInstances=l._iTextInstances||[],t.util.removeFromArray(l._iTextInstances,a),l._iTextInstances.length===0&&(l._hasITextHandlers=!1,a._removeCanvasHandlers(l)))})},_initCanvasHandlers:function(a){a._mouseUpITextHandler=function(){a._iTextInstances&&a._iTextInstances.forEach(function(l){l.__isMousedown=!1})},a.on("mouse:up",a._mouseUpITextHandler)},_removeCanvasHandlers:function(a){a.off("mouse:up",a._mouseUpITextHandler)},_tick:function(){this._currentTickState=this._animateCursor(this,1,this.cursorDuration,"_onTickComplete")},_animateCursor:function(a,l,h,c){var f;return f={isAborted:!1,abort:function(){this.isAborted=!0}},a.animate("_currentCursorOpacity",l,{duration:h,onComplete:function(){f.isAborted||a[c]()},onChange:function(){a.canvas&&a.selectionStart===a.selectionEnd&&a.renderCursorOrSelection()},abort:function(){return f.isAborted}}),f},_onTickComplete:function(){var a=this;this._cursorTimeout1&&clearTimeout(this._cursorTimeout1),this._cursorTimeout1=setTimeout(function(){a._currentTickCompleteState=a._animateCursor(a,0,this.cursorDuration/2,"_tick")},100)},initDelayedCursor:function(a){var l=this,h=a?0:this.cursorDelay;this.abortCursorAnimation(),this._currentCursorOpacity=1,this._cursorTimeout2=setTimeout(function(){l._tick()},h)},abortCursorAnimation:function(){var a=this._currentTickState||this._currentTickCompleteState,l=this.canvas;this._currentTickState&&this._currentTickState.abort(),this._currentTickCompleteState&&this._currentTickCompleteState.abort(),clearTimeout(this._cursorTimeout1),clearTimeout(this._cursorTimeout2),this._currentCursorOpacity=0,a&&l&&l.clearContext(l.contextTop||l.contextContainer)},selectAll:function(){return this.selectionStart=0,this.selectionEnd=this._text.length,this._fireSelectionChanged(),this._updateTextarea(),this},getSelectedText:function(){return this._text.slice(this.selectionStart,this.selectionEnd).join("")},findWordBoundaryLeft:function(a){var l=0,h=a-1;if(this._reSpace.test(this._text[h]))for(;this._reSpace.test(this._text[h]);)l++,h--;for(;/\S/.test(this._text[h])&&h>-1;)l++,h--;return a-l},findWordBoundaryRight:function(a){var l=0,h=a;if(this._reSpace.test(this._text[h]))for(;this._reSpace.test(this._text[h]);)l++,h++;for(;/\S/.test(this._text[h])&&h<this._text.length;)l++,h++;return a+l},findLineBoundaryLeft:function(a){for(var l=0,h=a-1;!/\n/.test(this._text[h])&&h>-1;)l++,h--;return a-l},findLineBoundaryRight:function(a){for(var l=0,h=a;!/\n/.test(this._text[h])&&h<this._text.length;)l++,h++;return a+l},searchWordBoundary:function(a,l){for(var h=this._text,c=this._reSpace.test(h[a])?a-1:a,f=h[c],s=t.reNonWord;!s.test(f)&&c>0&&c<h.length;)c+=l,f=h[c];return s.test(f)&&(c+=l===1?0:1),c},selectWord:function(a){a=a||this.selectionStart;var l=this.searchWordBoundary(a,-1),h=this.searchWordBoundary(a,1);this.selectionStart=l,this.selectionEnd=h,this._fireSelectionChanged(),this._updateTextarea(),this.renderCursorOrSelection()},selectLine:function(a){a=a||this.selectionStart;var l=this.findLineBoundaryLeft(a),h=this.findLineBoundaryRight(a);return this.selectionStart=l,this.selectionEnd=h,this._fireSelectionChanged(),this._updateTextarea(),this},enterEditing:function(a){if(!(this.isEditing||!this.editable))return this.canvas&&(this.canvas.calcOffset(),this.exitEditingOnOthers(this.canvas)),this.isEditing=!0,this.initHiddenTextarea(a),this.hiddenTextarea.focus(),this.hiddenTextarea.value=this.text,this._updateTextarea(),this._saveEditingProps(),this._setEditingProps(),this._textBeforeEdit=this.text,this._tick(),this.fire("editing:entered"),this._fireSelectionChanged(),this.canvas?(this.canvas.fire("text:editing:entered",{target:this}),this.initMouseMoveHandler(),this.canvas.requestRenderAll(),this):this},exitEditingOnOthers:function(a){a._iTextInstances&&a._iTextInstances.forEach(function(l){l.selected=!1,l.isEditing&&l.exitEditing()})},initMouseMoveHandler:function(){this.canvas.on("mouse:move",this.mouseMoveHandler)},mouseMoveHandler:function(a){if(!(!this.__isMousedown||!this.isEditing)){document.activeElement!==this.hiddenTextarea&&this.hiddenTextarea.focus();var l=this.getSelectionStartFromPointer(a.e),h=this.selectionStart,c=this.selectionEnd;(l!==this.__selectionStartOnMouseDown||h===c)&&(h===l||c===l)||(l>this.__selectionStartOnMouseDown?(this.selectionStart=this.__selectionStartOnMouseDown,this.selectionEnd=l):(this.selectionStart=l,this.selectionEnd=this.__selectionStartOnMouseDown),(this.selectionStart!==h||this.selectionEnd!==c)&&(this.restartCursorIfNeeded(),this._fireSelectionChanged(),this._updateTextarea(),this.renderCursorOrSelection()))}},_setEditingProps:function(){this.hoverCursor="text",this.canvas&&(this.canvas.defaultCursor=this.canvas.moveCursor="text"),this.borderColor=this.editingBorderColor,this.hasControls=this.selectable=!1,this.lockMovementX=this.lockMovementY=!0},fromStringToGraphemeSelection:function(a,l,h){var c=h.slice(0,a),f=t.util.string.graphemeSplit(c).length;if(a===l)return{selectionStart:f,selectionEnd:f};var s=h.slice(a,l),d=t.util.string.graphemeSplit(s).length;return{selectionStart:f,selectionEnd:f+d}},fromGraphemeToStringSelection:function(a,l,h){var c=h.slice(0,a),f=c.join("").length;if(a===l)return{selectionStart:f,selectionEnd:f};var s=h.slice(a,l),d=s.join("").length;return{selectionStart:f,selectionEnd:f+d}},_updateTextarea:function(){if(this.cursorOffsetCache={},!!this.hiddenTextarea){if(!this.inCompositionMode){var a=this.fromGraphemeToStringSelection(this.selectionStart,this.selectionEnd,this._text);this.hiddenTextarea.selectionStart=a.selectionStart,this.hiddenTextarea.selectionEnd=a.selectionEnd}this.updateTextareaPosition()}},updateFromTextArea:function(){if(!!this.hiddenTextarea){this.cursorOffsetCache={},this.text=this.hiddenTextarea.value,this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords());var a=this.fromStringToGraphemeSelection(this.hiddenTextarea.selectionStart,this.hiddenTextarea.selectionEnd,this.hiddenTextarea.value);this.selectionEnd=this.selectionStart=a.selectionEnd,this.inCompositionMode||(this.selectionStart=a.selectionStart),this.updateTextareaPosition()}},updateTextareaPosition:function(){if(this.selectionStart===this.selectionEnd){var a=this._calcTextareaPosition();this.hiddenTextarea.style.left=a.left,this.hiddenTextarea.style.top=a.top}},_calcTextareaPosition:function(){if(!this.canvas)return{x:1,y:1};var a=this.inCompositionMode?this.compositionStart:this.selectionStart,l=this._getCursorBoundaries(a),h=this.get2DCursorLocation(a),c=h.lineIndex,f=h.charIndex,s=this.getValueOfPropertyAt(c,f,"fontSize")*this.lineHeight,d=l.leftOffset,g=this.calcTransformMatrix(),m={x:l.left+d,y:l.top+l.topOffset+s},v=this.canvas.getRetinaScaling(),y=this.canvas.upperCanvasEl,b=y.width/v,w=y.height/v,S=b-s,C=w-s,T=y.clientWidth/b,k=y.clientHeight/w;return m=t.util.transformPoint(m,g),m=t.util.transformPoint(m,this.canvas.viewportTransform),m.x*=T,m.y*=k,m.x<0&&(m.x=0),m.x>S&&(m.x=S),m.y<0&&(m.y=0),m.y>C&&(m.y=C),m.x+=this.canvas._offset.left,m.y+=this.canvas._offset.top,{left:m.x+"px",top:m.y+"px",fontSize:s+"px",charHeight:s}},_saveEditingProps:function(){this._savedProps={hasControls:this.hasControls,borderColor:this.borderColor,lockMovementX:this.lockMovementX,lockMovementY:this.lockMovementY,hoverCursor:this.hoverCursor,selectable:this.selectable,defaultCursor:this.canvas&&this.canvas.defaultCursor,moveCursor:this.canvas&&this.canvas.moveCursor}},_restoreEditingProps:function(){!this._savedProps||(this.hoverCursor=this._savedProps.hoverCursor,this.hasControls=this._savedProps.hasControls,this.borderColor=this._savedProps.borderColor,this.selectable=this._savedProps.selectable,this.lockMovementX=this._savedProps.lockMovementX,this.lockMovementY=this._savedProps.lockMovementY,this.canvas&&(this.canvas.defaultCursor=this._savedProps.defaultCursor,this.canvas.moveCursor=this._savedProps.moveCursor))},exitEditing:function(){var a=this._textBeforeEdit!==this.text,l=this.hiddenTextarea;return this.selected=!1,this.isEditing=!1,this.selectionEnd=this.selectionStart,l&&(l.blur&&l.blur(),l.parentNode&&l.parentNode.removeChild(l)),this.hiddenTextarea=null,this.abortCursorAnimation(),this._restoreEditingProps(),this._currentCursorOpacity=0,this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords()),this.fire("editing:exited"),a&&this.fire("modified"),this.canvas&&(this.canvas.off("mouse:move",this.mouseMoveHandler),this.canvas.fire("text:editing:exited",{target:this}),a&&this.canvas.fire("object:modified",{target:this})),this},_removeExtraneousStyles:function(){for(var a in this.styles)this._textLines[a]||delete this.styles[a]},removeStyleFromTo:function(a,l){var h=this.get2DCursorLocation(a,!0),c=this.get2DCursorLocation(l,!0),f=h.lineIndex,s=h.charIndex,d=c.lineIndex,g=c.charIndex,m,v;if(f!==d){if(this.styles[f])for(m=s;m<this._unwrappedTextLines[f].length;m++)delete this.styles[f][m];if(this.styles[d])for(m=g;m<this._unwrappedTextLines[d].length;m++)v=this.styles[d][m],v&&(this.styles[f]||(this.styles[f]={}),this.styles[f][s+m-g]=v);for(m=f+1;m<=d;m++)delete this.styles[m];this.shiftLineStyles(d,f-d)}else if(this.styles[f]){v=this.styles[f];var y=g-s,b,w;for(m=s;m<g;m++)delete v[m];for(w in this.styles[f])b=parseInt(w,10),b>=g&&(v[b-y]=v[w],delete v[w])}},shiftLineStyles:function(a,l){var h=o(this.styles);for(var c in this.styles){var f=parseInt(c,10);f>a&&(this.styles[f+l]=h[f],h[f-l]||delete this.styles[f])}},restartCursorIfNeeded:function(){(!this._currentTickState||this._currentTickState.isAborted||!this._currentTickCompleteState||this._currentTickCompleteState.isAborted)&&this.initDelayedCursor()},insertNewlineStyleObject:function(a,l,h,c){var f,s={},d=!1,g=this._unwrappedTextLines[a].length,m=g===l;h||(h=1),this.shiftLineStyles(a,h),this.styles[a]&&(f=this.styles[a][l===0?l:l-1]);for(var v in this.styles[a]){var y=parseInt(v,10);y>=l&&(d=!0,s[y-l]=this.styles[a][v],m&&l===0||delete this.styles[a][v])}var b=!1;for(d&&!m&&(this.styles[a+h]=s,b=!0),(b||g>l)&&h--;h>0;)c&&c[h-1]?this.styles[a+h]={0:o(c[h-1])}:f?this.styles[a+h]={0:o(f)}:delete this.styles[a+h],h--;this._forceClearCache=!0},insertCharStyleObject:function(a,l,h,c){this.styles||(this.styles={});var f=this.styles[a],s=f?o(f):{};h||(h=1);for(var d in s){var g=parseInt(d,10);g>=l&&(f[g+h]=s[g],s[g-h]||delete f[g])}if(this._forceClearCache=!0,c){for(;h--;)!Object.keys(c[h]).length||(this.styles[a]||(this.styles[a]={}),this.styles[a][l+h]=o(c[h]));return}if(!!f)for(var m=f[l?l-1:1];m&&h--;)this.styles[a][l+h]=o(m)},insertNewStyleBlock:function(a,l,h){for(var c=this.get2DCursorLocation(l,!0),f=[0],s=0,d=0;d<a.length;d++)a[d]===`
|
|
`?(s++,f[s]=0):f[s]++;f[0]>0&&(this.insertCharStyleObject(c.lineIndex,c.charIndex,f[0],h),h=h&&h.slice(f[0]+1)),s&&this.insertNewlineStyleObject(c.lineIndex,c.charIndex+f[0],s);for(var d=1;d<s;d++)f[d]>0?this.insertCharStyleObject(c.lineIndex+d,0,f[d],h):h&&this.styles[c.lineIndex+d]&&h[0]&&(this.styles[c.lineIndex+d][0]=h[0]),h=h&&h.slice(f[d]+1);f[d]>0&&this.insertCharStyleObject(c.lineIndex+d,0,f[d],h)},setSelectionStartEndWithShift:function(a,l,h){h<=a?(l===a?this._selectionDirection="left":this._selectionDirection==="right"&&(this._selectionDirection="left",this.selectionEnd=a),this.selectionStart=h):h>a&&h<l?this._selectionDirection==="right"?this.selectionEnd=h:this.selectionStart=h:(l===a?this._selectionDirection="right":this._selectionDirection==="left"&&(this._selectionDirection="right",this.selectionStart=l),this.selectionEnd=h)},setSelectionInBoundaries:function(){var a=this.text.length;this.selectionStart>a?this.selectionStart=a:this.selectionStart<0&&(this.selectionStart=0),this.selectionEnd>a?this.selectionEnd=a:this.selectionEnd<0&&(this.selectionEnd=0)}})}(),t.util.object.extend(t.IText.prototype,{initDoubleClickSimulation:function(){this.__lastClickTime=+new Date,this.__lastLastClickTime=+new Date,this.__lastPointer={},this.on("mousedown",this.onMouseDown)},onMouseDown:function(o){if(!!this.canvas){this.__newClickTime=+new Date;var a=o.pointer;this.isTripleClick(a)&&(this.fire("tripleclick",o),this._stopEvent(o.e)),this.__lastLastClickTime=this.__lastClickTime,this.__lastClickTime=this.__newClickTime,this.__lastPointer=a,this.__lastIsEditing=this.isEditing,this.__lastSelected=this.selected}},isTripleClick:function(o){return this.__newClickTime-this.__lastClickTime<500&&this.__lastClickTime-this.__lastLastClickTime<500&&this.__lastPointer.x===o.x&&this.__lastPointer.y===o.y},_stopEvent:function(o){o.preventDefault&&o.preventDefault(),o.stopPropagation&&o.stopPropagation()},initCursorSelectionHandlers:function(){this.initMousedownHandler(),this.initMouseupHandler(),this.initClicks()},doubleClickHandler:function(o){!this.isEditing||this.selectWord(this.getSelectionStartFromPointer(o.e))},tripleClickHandler:function(o){!this.isEditing||this.selectLine(this.getSelectionStartFromPointer(o.e))},initClicks:function(){this.on("mousedblclick",this.doubleClickHandler),this.on("tripleclick",this.tripleClickHandler)},_mouseDownHandler:function(o){!this.canvas||!this.editable||o.e.button&&o.e.button!==1||(this.__isMousedown=!0,this.selected&&(this.inCompositionMode=!1,this.setCursorByClick(o.e)),this.isEditing&&(this.__selectionStartOnMouseDown=this.selectionStart,this.selectionStart===this.selectionEnd&&this.abortCursorAnimation(),this.renderCursorOrSelection()))},_mouseDownHandlerBefore:function(o){!this.canvas||!this.editable||o.e.button&&o.e.button!==1||(this.selected=this===this.canvas._activeObject)},initMousedownHandler:function(){this.on("mousedown",this._mouseDownHandler),this.on("mousedown:before",this._mouseDownHandlerBefore)},initMouseupHandler:function(){this.on("mouseup",this.mouseUpHandler)},mouseUpHandler:function(o){if(this.__isMousedown=!1,!(!this.editable||this.group||o.transform&&o.transform.actionPerformed||o.e.button&&o.e.button!==1)){if(this.canvas){var a=this.canvas._activeObject;if(a&&a!==this)return}this.__lastSelected&&!this.__corner?(this.selected=!1,this.__lastSelected=!1,this.enterEditing(o.e),this.selectionStart===this.selectionEnd?this.initDelayedCursor(!0):this.renderCursorOrSelection()):this.selected=!0}},setCursorByClick:function(o){var a=this.getSelectionStartFromPointer(o),l=this.selectionStart,h=this.selectionEnd;o.shiftKey?this.setSelectionStartEndWithShift(l,h,a):(this.selectionStart=a,this.selectionEnd=a),this.isEditing&&(this._fireSelectionChanged(),this._updateTextarea())},getSelectionStartFromPointer:function(o){for(var a=this.getLocalPointer(o),l=0,h=0,c=0,f=0,s=0,d,g,m=0,v=this._textLines.length;m<v&&c<=a.y;m++)c+=this.getHeightOfLine(m)*this.scaleY,s=m,m>0&&(f+=this._textLines[m-1].length+this.missingNewlineOffset(m-1));d=this._getLineLeftOffset(s),h=d*this.scaleX,g=this._textLines[s],this.direction==="rtl"&&(a.x=this.width*this.scaleX-a.x+h);for(var y=0,b=g.length;y<b&&(l=h,h+=this.__charBounds[s][y].kernedWidth*this.scaleX,h<=a.x);y++)f++;return this._getNewSelectionStartFromOffset(a,l,h,f,b)},_getNewSelectionStartFromOffset:function(o,a,l,h,c){var f=o.x-a,s=l-o.x,d=s>f||s<0?0:1,g=h+d;return this.flipX&&(g=c-g),g>this._text.length&&(g=this._text.length),g}}),t.util.object.extend(t.IText.prototype,{initHiddenTextarea:function(){this.hiddenTextarea=t.document.createElement("textarea"),this.hiddenTextarea.setAttribute("autocapitalize","off"),this.hiddenTextarea.setAttribute("autocorrect","off"),this.hiddenTextarea.setAttribute("autocomplete","off"),this.hiddenTextarea.setAttribute("spellcheck","false"),this.hiddenTextarea.setAttribute("data-fabric-hiddentextarea",""),this.hiddenTextarea.setAttribute("wrap","off");var o=this._calcTextareaPosition();this.hiddenTextarea.style.cssText="position: absolute; top: "+o.top+"; left: "+o.left+"; z-index: -999; opacity: 0; width: 1px; height: 1px; font-size: 1px; padding-top: "+o.fontSize+";",this.hiddenTextareaContainer?this.hiddenTextareaContainer.appendChild(this.hiddenTextarea):t.document.body.appendChild(this.hiddenTextarea),t.util.addListener(this.hiddenTextarea,"keydown",this.onKeyDown.bind(this)),t.util.addListener(this.hiddenTextarea,"keyup",this.onKeyUp.bind(this)),t.util.addListener(this.hiddenTextarea,"input",this.onInput.bind(this)),t.util.addListener(this.hiddenTextarea,"copy",this.copy.bind(this)),t.util.addListener(this.hiddenTextarea,"cut",this.copy.bind(this)),t.util.addListener(this.hiddenTextarea,"paste",this.paste.bind(this)),t.util.addListener(this.hiddenTextarea,"compositionstart",this.onCompositionStart.bind(this)),t.util.addListener(this.hiddenTextarea,"compositionupdate",this.onCompositionUpdate.bind(this)),t.util.addListener(this.hiddenTextarea,"compositionend",this.onCompositionEnd.bind(this)),!this._clickHandlerInitialized&&this.canvas&&(t.util.addListener(this.canvas.upperCanvasEl,"click",this.onClick.bind(this)),this._clickHandlerInitialized=!0)},keysMap:{9:"exitEditing",27:"exitEditing",33:"moveCursorUp",34:"moveCursorDown",35:"moveCursorRight",36:"moveCursorLeft",37:"moveCursorLeft",38:"moveCursorUp",39:"moveCursorRight",40:"moveCursorDown"},keysMapRtl:{9:"exitEditing",27:"exitEditing",33:"moveCursorUp",34:"moveCursorDown",35:"moveCursorLeft",36:"moveCursorRight",37:"moveCursorRight",38:"moveCursorUp",39:"moveCursorLeft",40:"moveCursorDown"},ctrlKeysMapUp:{67:"copy",88:"cut"},ctrlKeysMapDown:{65:"selectAll"},onClick:function(){this.hiddenTextarea&&this.hiddenTextarea.focus()},onKeyDown:function(o){if(!!this.isEditing){var a=this.direction==="rtl"?this.keysMapRtl:this.keysMap;if(o.keyCode in a)this[a[o.keyCode]](o);else if(o.keyCode in this.ctrlKeysMapDown&&(o.ctrlKey||o.metaKey))this[this.ctrlKeysMapDown[o.keyCode]](o);else return;o.stopImmediatePropagation(),o.preventDefault(),o.keyCode>=33&&o.keyCode<=40?(this.inCompositionMode=!1,this.clearContextTop(),this.renderCursorOrSelection()):this.canvas&&this.canvas.requestRenderAll()}},onKeyUp:function(o){if(!this.isEditing||this._copyDone||this.inCompositionMode){this._copyDone=!1;return}if(o.keyCode in this.ctrlKeysMapUp&&(o.ctrlKey||o.metaKey))this[this.ctrlKeysMapUp[o.keyCode]](o);else return;o.stopImmediatePropagation(),o.preventDefault(),this.canvas&&this.canvas.requestRenderAll()},onInput:function(o){var a=this.fromPaste;if(this.fromPaste=!1,o&&o.stopPropagation(),!!this.isEditing){var l=this._splitTextIntoLines(this.hiddenTextarea.value).graphemeText,h=this._text.length,c=l.length,f,s,d=c-h,g=this.selectionStart,m=this.selectionEnd,v=g!==m,y,b,w;if(this.hiddenTextarea.value===""){this.styles={},this.updateFromTextArea(),this.fire("changed"),this.canvas&&(this.canvas.fire("text:changed",{target:this}),this.canvas.requestRenderAll());return}var S=this.fromStringToGraphemeSelection(this.hiddenTextarea.selectionStart,this.hiddenTextarea.selectionEnd,this.hiddenTextarea.value),C=g>S.selectionStart;v?(f=this._text.slice(g,m),d+=m-g):c<h&&(C?f=this._text.slice(m+d,m):f=this._text.slice(g,g-d)),s=l.slice(S.selectionEnd-d,S.selectionEnd),f&&f.length&&(s.length&&(y=this.getSelectionStyles(g,g+1,!1),y=s.map(function(){return y[0]})),v?(b=g,w=m):C?(b=m-f.length,w=m):(b=m,w=m+f.length),this.removeStyleFromTo(b,w)),s.length&&(a&&s.join("")===t.copiedText&&!t.disableStyleCopyPaste&&(y=t.copiedTextStyle),this.insertNewStyleBlock(s,g,y)),this.updateFromTextArea(),this.fire("changed"),this.canvas&&(this.canvas.fire("text:changed",{target:this}),this.canvas.requestRenderAll())}},onCompositionStart:function(){this.inCompositionMode=!0},onCompositionEnd:function(){this.inCompositionMode=!1},onCompositionUpdate:function(o){this.compositionStart=o.target.selectionStart,this.compositionEnd=o.target.selectionEnd,this.updateTextareaPosition()},copy:function(){this.selectionStart!==this.selectionEnd&&(t.copiedText=this.getSelectedText(),t.disableStyleCopyPaste?t.copiedTextStyle=null:t.copiedTextStyle=this.getSelectionStyles(this.selectionStart,this.selectionEnd,!0),this._copyDone=!0)},paste:function(){this.fromPaste=!0},_getClipboardData:function(o){return o&&o.clipboardData||t.window.clipboardData},_getWidthBeforeCursor:function(o,a){var l=this._getLineLeftOffset(o),h;return a>0&&(h=this.__charBounds[o][a-1],l+=h.left+h.width),l},getDownCursorOffset:function(o,a){var l=this._getSelectionForOffset(o,a),h=this.get2DCursorLocation(l),c=h.lineIndex;if(c===this._textLines.length-1||o.metaKey||o.keyCode===34)return this._text.length-l;var f=h.charIndex,s=this._getWidthBeforeCursor(c,f),d=this._getIndexOnLine(c+1,s),g=this._textLines[c].slice(f);return g.length+d+1+this.missingNewlineOffset(c)},_getSelectionForOffset:function(o,a){return o.shiftKey&&this.selectionStart!==this.selectionEnd&&a?this.selectionEnd:this.selectionStart},getUpCursorOffset:function(o,a){var l=this._getSelectionForOffset(o,a),h=this.get2DCursorLocation(l),c=h.lineIndex;if(c===0||o.metaKey||o.keyCode===33)return-l;var f=h.charIndex,s=this._getWidthBeforeCursor(c,f),d=this._getIndexOnLine(c-1,s),g=this._textLines[c].slice(0,f),m=this.missingNewlineOffset(c-1);return-this._textLines[c-1].length+d-g.length+(1-m)},_getIndexOnLine:function(o,a){for(var l=this._textLines[o],h=this._getLineLeftOffset(o),c=h,f=0,s,d,g=0,m=l.length;g<m;g++)if(s=this.__charBounds[o][g].width,c+=s,c>a){d=!0;var v=c-s,y=c,b=Math.abs(v-a),w=Math.abs(y-a);f=w<b?g:g-1;break}return d||(f=l.length-1),f},moveCursorDown:function(o){this.selectionStart>=this._text.length&&this.selectionEnd>=this._text.length||this._moveCursorUpOrDown("Down",o)},moveCursorUp:function(o){this.selectionStart===0&&this.selectionEnd===0||this._moveCursorUpOrDown("Up",o)},_moveCursorUpOrDown:function(o,a){var l="get"+o+"CursorOffset",h=this[l](a,this._selectionDirection==="right");a.shiftKey?this.moveCursorWithShift(h):this.moveCursorWithoutShift(h),h!==0&&(this.setSelectionInBoundaries(),this.abortCursorAnimation(),this._currentCursorOpacity=1,this.initDelayedCursor(),this._fireSelectionChanged(),this._updateTextarea())},moveCursorWithShift:function(o){var a=this._selectionDirection==="left"?this.selectionStart+o:this.selectionEnd+o;return this.setSelectionStartEndWithShift(this.selectionStart,this.selectionEnd,a),o!==0},moveCursorWithoutShift:function(o){return o<0?(this.selectionStart+=o,this.selectionEnd=this.selectionStart):(this.selectionEnd+=o,this.selectionStart=this.selectionEnd),o!==0},moveCursorLeft:function(o){this.selectionStart===0&&this.selectionEnd===0||this._moveCursorLeftOrRight("Left",o)},_move:function(o,a,l){var h;if(o.altKey)h=this["findWordBoundary"+l](this[a]);else if(o.metaKey||o.keyCode===35||o.keyCode===36)h=this["findLineBoundary"+l](this[a]);else return this[a]+=l==="Left"?-1:1,!0;if(typeof h<"u"&&this[a]!==h)return this[a]=h,!0},_moveLeft:function(o,a){return this._move(o,a,"Left")},_moveRight:function(o,a){return this._move(o,a,"Right")},moveCursorLeftWithoutShift:function(o){var a=!0;return this._selectionDirection="left",this.selectionEnd===this.selectionStart&&this.selectionStart!==0&&(a=this._moveLeft(o,"selectionStart")),this.selectionEnd=this.selectionStart,a},moveCursorLeftWithShift:function(o){if(this._selectionDirection==="right"&&this.selectionStart!==this.selectionEnd)return this._moveLeft(o,"selectionEnd");if(this.selectionStart!==0)return this._selectionDirection="left",this._moveLeft(o,"selectionStart")},moveCursorRight:function(o){this.selectionStart>=this._text.length&&this.selectionEnd>=this._text.length||this._moveCursorLeftOrRight("Right",o)},_moveCursorLeftOrRight:function(o,a){var l="moveCursor"+o+"With";this._currentCursorOpacity=1,a.shiftKey?l+="Shift":l+="outShift",this[l](a)&&(this.abortCursorAnimation(),this.initDelayedCursor(),this._fireSelectionChanged(),this._updateTextarea())},moveCursorRightWithShift:function(o){if(this._selectionDirection==="left"&&this.selectionStart!==this.selectionEnd)return this._moveRight(o,"selectionStart");if(this.selectionEnd!==this._text.length)return this._selectionDirection="right",this._moveRight(o,"selectionEnd")},moveCursorRightWithoutShift:function(o){var a=!0;return this._selectionDirection="right",this.selectionStart===this.selectionEnd?(a=this._moveRight(o,"selectionStart"),this.selectionEnd=this.selectionStart):this.selectionStart=this.selectionEnd,a},removeChars:function(o,a){typeof a>"u"&&(a=o+1),this.removeStyleFromTo(o,a),this._text.splice(o,a-o),this.text=this._text.join(""),this.set("dirty",!0),this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords()),this._removeExtraneousStyles()},insertChars:function(o,a,l,h){typeof h>"u"&&(h=l),h>l&&this.removeStyleFromTo(l,h);var c=t.util.string.graphemeSplit(o);this.insertNewStyleBlock(c,l,a),this._text=[].concat(this._text.slice(0,l),c,this._text.slice(h)),this.text=this._text.join(""),this.set("dirty",!0),this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords()),this._removeExtraneousStyles()}}),function(){var o=t.util.toFixed,a=t.util.radiansToDegrees,l=t.util.calcRotateMatrix,h=t.util.transformPoint,c=/ +/g;t.util.object.extend(t.Text.prototype,{_toSVG:function(){var f=this._getSVGLeftTopOffsets(),s=this._getSVGTextAndBg(f.textTop,f.textLeft);return this._wrapSVGTextAndBg(s)},toSVG:function(f){var s=this._createBaseSVGMarkup(this._toSVG(),{reviver:f,noStyle:!0,withShadow:!0}),d=this.path;return d?s+d._createBaseSVGMarkup(d._toSVG(),{reviver:f,withShadow:!0}):s},_getSVGLeftTopOffsets:function(){return{textLeft:-this.width/2,textTop:-this.height/2,lineTop:this.getHeightOfLine(0)}},_wrapSVGTextAndBg:function(f){var s=!0,d=this.getSvgTextDecoration(this);return[f.textBgRects.join(""),' <text xml:space="preserve" ',this.fontFamily?'font-family="'+this.fontFamily.replace(/"/g,"'")+'" ':"",this.fontSize?'font-size="'+this.fontSize+'" ':"",this.fontStyle?'font-style="'+this.fontStyle+'" ':"",this.fontWeight?'font-weight="'+this.fontWeight+'" ':"",d?'text-decoration="'+d+'" ':"",'style="',this.getSvgStyles(s),'"',this.addPaintOrder()," >",f.textSpans.join(""),`</text>
|
|
`]},_getSVGTextAndBg:function(f,s){var d=[],g=[],m=f,v;this._setSVGBg(g);for(var y=0,b=this._textLines.length;y<b;y++)v=this._getLineLeftOffset(y),(this.textBackgroundColor||this.styleHas("textBackgroundColor",y))&&this._setSVGTextLineBg(g,y,s+v,m),this._setSVGTextLineText(d,y,s+v,m),m+=this.getHeightOfLine(y);return{textSpans:d,textBgRects:g}},_createTextCharSpan:function(f,s,d,g,m){var v=f!==f.trim()||f.match(c),y=this.getSvgSpanStyles(s,v),b=y?'style="'+y+'"':"",w=s.deltaY,S="",C=t.Object.NUM_FRACTION_DIGITS,T="";if(w&&(S=' dy="'+o(w,C)+'" '),m.renderLeft!==void 0){var k=m.angle;T=' rotate="'+o(a(k),t.Object.NUM_FRACTION_DIGITS)+'" ';var A=m.width/2,P=l({angle:a(k)});P[4]=m.renderLeft,P[5]=m.renderTop;var z=h({x:-A,y:0},P);d=z.x,g=z.y}return['<tspan x="',o(d,C),'" y="',o(g,C),'" ',S,b,T,">",t.util.string.escapeXml(f),"</tspan>"].join("")},_setSVGTextLineText:function(f,s,d,g){var m=this.getHeightOfLine(s),v=this.textAlign.indexOf("justify")!==-1,y,b,w="",S,C,T=0,k=this._textLines[s],A;g+=m*(1-this._fontSizeFraction)/this.lineHeight;for(var P=0,z=k.length-1;P<=z;P++)A=P===z||this.charSpacing||this.path,w+=k[P],S=this.__charBounds[s][P],T===0?(d+=S.kernedWidth-S.width,T+=S.width):T+=S.kernedWidth,v&&!A&&this._reSpaceAndTab.test(k[P])&&(A=!0),A||(y=y||this.getCompleteStyleDeclaration(s,P),b=this.getCompleteStyleDeclaration(s,P+1),A=t.util.hasStyleChanged(y,b,!0)),A&&(C=this._getStyleDeclaration(s,P)||{},f.push(this._createTextCharSpan(w,C,d,g,S)),w="",y=b,d+=T,T=0)},_pushTextBgRect:function(f,s,d,g,m,v){var y=t.Object.NUM_FRACTION_DIGITS;f.push(" <rect ",this._getFillAttributes(s),' x="',o(d,y),'" y="',o(g,y),'" width="',o(m,y),'" height="',o(v,y),`"></rect>
|
|
`)},_setSVGTextLineBg:function(f,s,d,g){for(var m=this._textLines[s],v=this.getHeightOfLine(s)/this.lineHeight,y=0,b=0,w,S,C=this.getValueOfPropertyAt(s,0,"textBackgroundColor"),T=0,k=m.length;T<k;T++)w=this.__charBounds[s][T],S=this.getValueOfPropertyAt(s,T,"textBackgroundColor"),S!==C?(C&&this._pushTextBgRect(f,C,d+b,g,y,v),b=w.left,y=w.width,C=S):y+=w.kernedWidth;S&&this._pushTextBgRect(f,S,d+b,g,y,v)},_getFillAttributes:function(f){var s=f&&typeof f=="string"?new t.Color(f):"";return!s||!s.getSource()||s.getAlpha()===1?'fill="'+f+'"':'opacity="'+s.getAlpha()+'" fill="'+s.setAlpha(1).toRgb()+'"'},_getSVGLineTopOffset:function(f){for(var s=0,d=0,g=0;g<f;g++)s+=this.getHeightOfLine(g);return d=this.getHeightOfLine(g),{lineTop:s,offset:(this._fontSizeMult-this._fontSizeFraction)*d/(this.lineHeight*this._fontSizeMult)}},getSvgStyles:function(f){var s=t.Object.prototype.getSvgStyles.call(this,f);return s+" white-space: pre;"}})}(),function(o){var a=o.fabric||(o.fabric={});a.Textbox=a.util.createClass(a.IText,a.Observable,{type:"textbox",minWidth:20,dynamicMinWidth:2,__cachedLines:null,lockScalingFlip:!0,noScaleCache:!1,_dimensionAffectingProps:a.Text.prototype._dimensionAffectingProps.concat("width"),_wordJoiners:/[ \t\r]/,splitByGrapheme:!1,initDimensions:function(){this.__skipDimension||(this.isEditing&&this.initDelayedCursor(),this.clearContextTop(),this._clearCache(),this.dynamicMinWidth=0,this._styleMap=this._generateStyleMap(this._splitText()),this.dynamicMinWidth>this.width&&this._set("width",this.dynamicMinWidth),this.textAlign.indexOf("justify")!==-1&&this.enlargeSpaces(),this.height=this.calcTextHeight(),this.saveState({propertySet:"_dimensionAffectingProps"}))},_generateStyleMap:function(l){for(var h=0,c=0,f=0,s={},d=0;d<l.graphemeLines.length;d++)l.graphemeText[f]===`
|
|
`&&d>0?(c=0,f++,h++):!this.splitByGrapheme&&this._reSpaceAndTab.test(l.graphemeText[f])&&d>0&&(c++,f++),s[d]={line:h,offset:c},f+=l.graphemeLines[d].length,c+=l.graphemeLines[d].length;return s},styleHas:function(l,h){if(this._styleMap&&!this.isWrapping){var c=this._styleMap[h];c&&(h=c.line)}return a.Text.prototype.styleHas.call(this,l,h)},isEmptyStyles:function(l){if(!this.styles)return!0;var h=0,c=l+1,f,s,d=!1,g=this._styleMap[l],m=this._styleMap[l+1];g&&(l=g.line,h=g.offset),m&&(c=m.line,d=c===l,f=m.offset),s=typeof l>"u"?this.styles:{line:this.styles[l]};for(var v in s)for(var y in s[v])if(y>=h&&(!d||y<f))for(var b in s[v][y])return!1;return!0},_getStyleDeclaration:function(l,h){if(this._styleMap&&!this.isWrapping){var c=this._styleMap[l];if(!c)return null;l=c.line,h=c.offset+h}return this.callSuper("_getStyleDeclaration",l,h)},_setStyleDeclaration:function(l,h,c){var f=this._styleMap[l];l=f.line,h=f.offset+h,this.styles[l][h]=c},_deleteStyleDeclaration:function(l,h){var c=this._styleMap[l];l=c.line,h=c.offset+h,delete this.styles[l][h]},_getLineStyle:function(l){var h=this._styleMap[l];return!!this.styles[h.line]},_setLineStyle:function(l){var h=this._styleMap[l];this.styles[h.line]={}},_wrapText:function(l,h){var c=[],f;for(this.isWrapping=!0,f=0;f<l.length;f++)c=c.concat(this._wrapLine(l[f],f,h));return this.isWrapping=!1,c},_measureWord:function(l,h,c){var f=0,s,d=!0;c=c||0;for(var g=0,m=l.length;g<m;g++){var v=this._getGraphemeBox(l[g],h,g+c,s,d);f+=v.kernedWidth,s=l[g]}return f},_wrapLine:function(l,h,c,P){var s=0,d=this.splitByGrapheme,g=[],m=[],v=d?a.util.string.graphemeSplit(l):l.split(this._wordJoiners),y="",b=0,w=d?"":" ",S=0,C=0,T=0,k=!0,A=this._getWidthOfCharSpacing(),P=P||0;v.length===0&&v.push([]),c-=P;for(var z=0;z<v.length;z++)y=d?v[z]:a.util.string.graphemeSplit(v[z]),S=this._measureWord(y,h,b),b+=y.length,s+=C+S-A,s>c&&!k?(g.push(m),m=[],s=S,k=!0):s+=A,!k&&!d&&m.push(w),m=m.concat(y),C=d?0:this._measureWord([w],h,b),b++,k=!1,S>T&&(T=S);return z&&g.push(m),T+P>this.dynamicMinWidth&&(this.dynamicMinWidth=T-A+P),g},isEndOfWrapping:function(l){return!this._styleMap[l+1]||this._styleMap[l+1].line!==this._styleMap[l].line},missingNewlineOffset:function(l,h){return this.splitByGrapheme&&!h?this.isEndOfWrapping(l)?1:0:1},_splitTextIntoLines:function(l){for(var h=a.Text.prototype._splitTextIntoLines.call(this,l),c=this._wrapText(h.lines,this.width),f=new Array(c.length),s=0;s<c.length;s++)f[s]=c[s].join("");return h.lines=f,h.graphemeLines=c,h},getMinWidth:function(){return Math.max(this.minWidth,this.dynamicMinWidth)},_removeExtraneousStyles:function(){var l={};for(var h in this._styleMap)this._textLines[h]&&(l[this._styleMap[h].line]=1);for(var h in this.styles)l[h]||delete this.styles[h]},toObject:function(l){return this.callSuper("toObject",["minWidth","splitByGrapheme"].concat(l))}}),a.Textbox.fromObject=function(l,h){var c=a.util.stylesFromArray(l.styles,l.text),f=Object.assign({},l,{styles:c});return delete f.path,a.Object._fromObject("Textbox",f,function(s){l.path?a.Object._fromObject("Path",l.path,function(d){s.set("path",d),h(s)},"path"):h(s)},"text")}}(e),function(){var o=t.controlsUtils,a=o.scaleSkewCursorStyleHandler,l=o.scaleCursorStyleHandler,h=o.scalingEqually,c=o.scalingYOrSkewingX,f=o.scalingXOrSkewingY,s=o.scaleOrSkewActionName,d=t.Object.prototype.controls;if(d.ml=new t.Control({x:-.5,y:0,cursorStyleHandler:a,actionHandler:f,getActionName:s}),d.mr=new t.Control({x:.5,y:0,cursorStyleHandler:a,actionHandler:f,getActionName:s}),d.mb=new t.Control({x:0,y:.5,cursorStyleHandler:a,actionHandler:c,getActionName:s}),d.mt=new t.Control({x:0,y:-.5,cursorStyleHandler:a,actionHandler:c,getActionName:s}),d.tl=new t.Control({x:-.5,y:-.5,cursorStyleHandler:l,actionHandler:h}),d.tr=new t.Control({x:.5,y:-.5,cursorStyleHandler:l,actionHandler:h}),d.bl=new t.Control({x:-.5,y:.5,cursorStyleHandler:l,actionHandler:h}),d.br=new t.Control({x:.5,y:.5,cursorStyleHandler:l,actionHandler:h}),d.mtr=new t.Control({x:0,y:-.5,actionHandler:o.rotationWithSnapping,cursorStyleHandler:o.rotationStyleHandler,offsetY:-40,withConnection:!0,actionName:"rotate"}),t.Textbox){var g=t.Textbox.prototype.controls={};g.mtr=d.mtr,g.tr=d.tr,g.br=d.br,g.tl=d.tl,g.bl=d.bl,g.mt=d.mt,g.mb=d.mb,g.mr=new t.Control({x:.5,y:0,actionHandler:o.changeWidth,cursorStyleHandler:a,actionName:"resizing"}),g.ml=new t.Control({x:-.5,y:0,actionHandler:o.changeWidth,cursorStyleHandler:a,actionName:"resizing"})}}()})(ur);async function eU(e,t){const n=document.createElement("canvas"),r=n.getContext("2d"),i=new Image;return i.src=e,await new Promise(p=>i.onload=p),n.width=i.width,n.height=i.height,r==null||r.drawImage(i,0,0),n.toDataURL(t)}async function tU(e,t){const n=e.split(";base64,"),r=t!=null?t:n[0].split(":")[1],i=window.atob(r===n[0].split(":")[1]?n[1]:(await eU(e,r)).split(",")[1]),u=new Uint8Array(i.length);for(let p=0;p<i.length;++p)u[p]=i.charCodeAt(p);return u}async function Fa(e,t){const n=t!=null?t:e.split(";base64,")[0].split(":")[1],r=await tU(e,t);return new Blob([r],{type:n})}function zl(e){return new Promise((t,n)=>{const r=new FileReader;r.onload=()=>t(r.result),r.onerror=i=>n(i),r.readAsDataURL(e)})}"stream"in Blob.prototype||Object.defineProperty(Blob.prototype,"stream",{value(){return new Response(this).body}});var $f=e=>new DataView(new ArrayBuffer(e)),fo=e=>new Uint8Array(e.buffer||e),Ro=e=>new TextEncoder().encode(String(e));function nU(e,t,n=436){if(t===void 0||t instanceof Date||(t=new Date(t)),e instanceof File)return{t:t||new Date(e.lastModified),bytes:e.stream(),mode:n};if(e instanceof Response)return{t:t||new Date(e.headers.get("Last-Modified")||Date.now()),bytes:e.body,mode:n};if(t===void 0)t=new Date;else if(isNaN(t))throw new Error("Invalid modification date.");if(typeof e=="string")return{t,bytes:Ro(e),mode:n};if(e instanceof Blob)return{t,bytes:e.stream(),mode:n};if(e instanceof Uint8Array||e instanceof ReadableStream)return{t,bytes:e,mode:n};if(e instanceof ArrayBuffer||ArrayBuffer.isView(e))return{t,bytes:fo(e),mode:n};if(Symbol.asyncIterator in e)return{t,bytes:HS(e[Symbol.asyncIterator]()),mode:n};throw new TypeError("Unsupported input format.")}function HS(e,t=e){return new ReadableStream({async pull(n){let r=0;for(;n.desiredSize>r;){const i=await e.next();if(!i.value){n.close();break}{const u=rU(i.value);n.enqueue(u),r+=u.byteLength}}},cancel(n){var r;(r=t.throw)==null||r.call(t,n)}})}function rU(e){return typeof e=="string"?Ro(e):e instanceof Uint8Array?e:fo(e)}function WS(e,t,n){let[r,i]=function(u){return u?u instanceof Uint8Array?[u,1]:ArrayBuffer.isView(u)||u instanceof ArrayBuffer?[fo(u),1]:[Ro(u),0]:[void 0,0]}(t);if(e instanceof File)return{o:$d(r||Ro(e.name)),i:e.size,u:i};if(e instanceof Response){const u=e.headers.get("content-disposition"),p=u&&u.match(/;\s*filename\*?\s*=\s*(?:UTF-\d+''|)["']?([^;"'\r\n]*)["']?(?:;|$)/i),o=p&&p[1]||e.url&&new URL(e.url).pathname.split("/").findLast(Boolean),a=o&&decodeURIComponent(o),l=n||+e.headers.get("content-length");return{o:$d(r||Ro(a)),i:l,u:i}}return r=$d(r),typeof e=="string"?{o:r,i:Ro(e).length,u:i}:e instanceof Blob?{o:r,i:e.size,u:i}:e instanceof ArrayBuffer||ArrayBuffer.isView(e)?{o:r,i:e.byteLength,u:i}:{o:r,i:iU(e,n),u:i}}function iU(e,t){return t>-1?t:e?void 0:0}function $d(e){if(!e||e.every(t=>t===47))throw new Error("The file must have a name.");for(;e[e.length-1]===47;)e=e.subarray(0,-1);return e}var GS=new Uint32Array(256);for(let e=0;e<256;++e){let t=e;for(let n=0;n<8;++n)t=t>>>1^(1&t&&3988292384);GS[e]=t}function Yy(e,t=0){t=~t;for(var n=0,r=e.length;n<r;n++)t=t>>>8^GS[255&t^e[n]];return~t>>>0}function YS(e,t,n=0){const r=e.getSeconds()>>1|e.getMinutes()<<5|e.getHours()<<11,i=e.getDate()|e.getMonth()+1<<5|e.getFullYear()-1980<<9;t.setUint16(n,r,1),t.setUint16(n+2,i,1)}function aU({o:e,u:t},n){return 8*(!t||(n!=null?n:function(r){try{oU.decode(r)}catch{return 0}return 1}(e)))}var oU=new TextDecoder("utf8",{fatal:1});function sU(e,t=0){const n=$f(30);return n.setUint32(0,1347093252),n.setUint32(4,335546368|t),YS(e.t,n,10),n.setUint16(26,e.o.length,1),fo(n)}async function*lU(e){let{bytes:t}=e;if("then"in t&&(t=await t),t instanceof Uint8Array)yield t,e.l=Yy(t,0),e.i=t.length;else{e.i=0;const n=t.getReader();for(;;){const{value:r,done:i}=await n.read();if(i)break;e.l=Yy(r,e.l),e.i+=r.length,yield r}}}function uU(e){const t=$f(16);return t.setUint32(0,1347094280),t.setUint32(4,e.l,1),t.setUint32(8,e.i,1),t.setUint32(12,e.i,1),fo(t)}function cU(e,t,n=0){const r=$f(46);return r.setUint32(0,1347092738),r.setUint32(4,352523264),r.setUint16(8,2048|n),YS(e.t,r,12),r.setUint32(16,e.l,1),r.setUint32(20,e.i,1),r.setUint32(24,e.i,1),r.setUint16(28,e.o.length,1),r.setUint16(40,32768|e.mode,1),r.setUint32(42,t,1),fo(r)}function KS(e){return e instanceof File||e instanceof Response?[[e],[e]]:[[e.input,e.name,e.size],[e.input,e.lastModified,e.mode]]}var fU=e=>function(t){var n;let r=22;for(const i of t){if(!i.o)throw new Error("Every file must have a non-empty name.");if(isNaN((n=i.i)!=null?n:NaN))throw new Error(`Missing size for file "${new TextDecoder().decode(i.o)}".`);r+=2*i.o.length+i.i+92}return r}(function*(t){for(const n of t)yield WS(...KS(n)[0])}(e));function dU(e,t={}){const n={"Content-Type":"application/zip","Content-Disposition":"attachment"};Number.isInteger(t.length)&&t.length>0&&(n["Content-Length"]=t.length),t.metadata&&(n["Content-Length"]=fU(t.metadata));const r=function(i){var u;const p=i[Symbol.iterator in i?Symbol.iterator:Symbol.asyncIterator]();return{async next(){const o=await p.next();if(o.done)return o;const[a,l]=KS(o.value);return{done:0,value:Object.assign(nU(...l),WS(...a))}},throw:(u=p.throw)==null?void 0:u.bind(p),[Symbol.asyncIterator](){return this}}}(e);return new Response(HS(async function*(i,u){const p=[];let o=0,a=0;for await(const c of i){const f=aU(c,u.buffersAreUTF8);yield sU(c,f),yield new Uint8Array(c.o),yield*lU(c),yield uU(c),p.push(cU(c,o,f)),p.push(c.o),a++,o+=46+c.o.length+c.i}let l=0;for(const c of p)yield c,l+=c.length;const h=$f(22);h.setUint32(0,1347093766),h.setUint16(8,a,1),h.setUint16(10,a,1),h.setUint32(12,l,1),h.setUint32(16,o,1),yield fo(h)}(r,t),r),{headers:n})}async function XS(e,t=!0,n){const r=Ft();t&&la({message:`Downloading ${e.length} image(s)...`,type:"info"});const i=[];for(let o=0;o<e.length;o++){const a=await Yt.outputs.get(e[o]);if(!a)continue;const{image:l,id:h,...c}=a,f=`${o}-${a.seed}-${a.prompt}`.replace(/[/\\:*?"<>]/g,"").substring(0,128).trimEnd();let s=r.imageDownloadType;l.startsWith("data:image/gif")&&(s="GIF"),s==="PNG"?i.push({name:f+".png",input:await Fa(l,"image/png")}):s==="JPG"?i.push({name:f+".jpg",input:await Fa(l,"image/jpeg")}):s==="GIF"?i.push({name:f+".gif",input:await Fa(l,"image/gif")}):i.push({name:f+".webp",input:await Fa(l,"image/webp")}),i.push({name:f+".json",input:JSON.stringify(c,void 0,4)}),n&&n()}const u=await dU(i).blob(),p=document.createElement("a");p.href=URL.createObjectURL(u),p.download="sdui_images.zip",p.click()}async function ag(e,t){const n=Ft(),r=document.createElement("a");let i,u=n.imageDownloadType;e.startsWith("data:image/gif")&&(u="GIF"),u==="PNG"?(i=await Fa(e,"image/png"),r.href=URL.createObjectURL(i),r.download=t.replace(/[/\\:*?"<>]/g,"").substring(0,128).trimEnd()+".png"):u==="JPG"?(i=await Fa(e,"image/jpeg"),r.href=URL.createObjectURL(i),r.download=t.replace(/[/\\:*?"<>]/g,"").substring(0,128).trimEnd()+".jpg"):u==="GIF"?(i=await Fa(e,"image/gif"),r.href=URL.createObjectURL(i),r.download=t.replace(/[/\\:*?"<>]/g,"").substring(0,128).trimEnd()+".gif"):(r.href=e,r.download=t.replace(/[/\\:*?"<>]/g,"").substring(0,128).trimEnd()+".webp"),r.click(),i&&URL.revokeObjectURL(r.href)}function qS(e,t){const n=e;if(!n)return;const r=atob(n),i=r.length,u=new Uint8Array(i);for(let l=0;l<i;l++)u[l]=r.charCodeAt(l);const p=new Blob([u],{type:"video/avi"}),o=URL.createObjectURL(p),a=document.createElement("a");a.href=o,a.download=t,document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL(o)}const al=us("canvas",()=>{const e=()=>({canvas:void 0,brush:void 0,visibleImageLayer:void 0,imageLayer:void 0,visibleDrawLayer:void 0,drawLayer:void 0,cropPreviewLayer:void 0,maskPathColor:"",maskBackgroundColor:"",imageScale:1,undoHistory:[],redoHistory:[],drawing:!1}),t=ae({...e(),maskPathColor:"white",maskBackgroundColor:"black"}),n=ae({...e(),maskPathColor:"black",maskBackgroundColor:"white"}),r=ee(()=>Jt().generatorType==="Inpainting"),i=ee(()=>r.value?t.value:n.value),u=ee(()=>Jt().currentImageProps),p=ee({get:()=>i.value.drawing&&!r.value,set:G=>i.value.drawing=G}),o=ae(512),a=ae(512),l=ae(!1),h=ae(30),c=ae(!1),f=new ur.fabric.Circle({radius:h.value,left:0,originX:"center",originY:"center",angle:0,fill:"",stroke:"red",strokeWidth:3,opacity:0}),s=ae("Erase"),d=ae("rgb(0, 0, 0, 1)");function g(){!i.value.canvas||i.value.canvas.renderAll()}function m(){l.value=!l.value,s.value=l.value?"Draw":"Erase"}function v(G=null){!i.value.canvas||(i.value.brush=i.value.canvas.freeDrawingBrush,i.value.brush.color=G||i.value.brush.color,i.value.brush.width=h.value)}async function y({history:G,erase:D=!1,draw:B=!1}={}){if(!G||!i.value.drawLayer||!i.value.visibleDrawLayer||!i.value.imageLayer||!i.value.visibleImageLayer||!i.value.canvas)return;G.path.selectable=!1,G.path.opacity=1,G.drawPath=await V(G.path),G.visibleDrawPath=await V(G.path),D?(G.visibleDrawPath.globalCompositeOperation="destination-out",G.drawPath.stroke=i.value.maskBackgroundColor):(G.visibleDrawPath.globalCompositeOperation="source-over",G.drawPath.stroke=B?d.value:i.value.maskPathColor);let Z=await V(G.drawPath);Z=Z.scale(i.value.imageScale),Z.left=Z.left+G.drawPath.left*(i.value.imageScale-1),Z.top=Z.top+G.drawPath.top*(i.value.imageScale-1),B?(i.value.imageLayer.add(Z),i.value.visibleImageLayer.addWithUpdate(G.visibleDrawPath)):(i.value.drawLayer.add(Z),i.value.visibleDrawLayer.addWithUpdate(G.visibleDrawPath)),i.value.canvas.remove(G.path),g()}function b(){if(i.value.undoHistory.length===0)return;const G=i.value.undoHistory.pop();y({history:G,erase:!1,draw:p.value}),i.value.redoHistory.push(G)}function w(){if(i.value.redoHistory.length===0||!i.value.drawLayer||!i.value.visibleDrawLayer||!i.value.imageLayer||!i.value.visibleImageLayer||!i.value.canvas)return;const G=i.value.redoHistory.pop();i.value.undoHistory.push(G),p.value?(i.value.imageLayer.remove(G.drawPath),i.value.visibleImageLayer.remove(G.visibleDrawPath)):(i.value.drawLayer.remove(G.drawPath),i.value.visibleDrawLayer.remove(G.visibleDrawPath)),delete G.drawPath,delete G.visibleDrawPath,g()}function S(G){i.value.canvas=new ur.fabric.Canvas(G,{isDrawingMode:!1,width:o.value,height:a.value,backgroundColor:"white"}),i.value.canvas.selection=!1,i.value.canvas.freeDrawingCursor="crosshair",v(i.value.maskPathColor),i.value.canvas.on("mouse:move",R),i.value.canvas.on("path:created",M),g()}function C(G,D,B,Z){let H=Z,Q=Z;return D>B?(G.scaleToWidth(Z),H=Z*(a.value/o.value)):(G.scaleToHeight(Z),Q=Z*(o.value/a.value)),{newHeight:H,newWidth:Q}}function T(G){const D=Jt();if(re(),G.selectable=!1,o.value=G.width,a.value=G.height,o.value>D.maxDimensions||a.value>D.maxDimensions){const{newHeight:Q,newWidth:te}=C(G,o.value,a.value,D.maxDimensions);o.value=te,a.value=Q}if(o.value<D.minDimensions||a.value<D.minDimensions){const{newHeight:Q,newWidth:te}=C(G,o.value,a.value,D.minDimensions);o.value=te,a.value=Q}const B=512,Z=o.value,H=a.value;i.value.imageScale=Math.max(Z,H)/B,G.cloneAsImage(Q=>{i.value.imageLayer=$({image:Q,layerHeight:H,layerWidth:Z})}),G.cloneAsImage(Q=>{if(!i.value.canvas)return;if(o.value!==B||a.value!==B){const{newHeight:me,newWidth:_e}=C(Q,o.value,a.value,B);o.value=_e,a.value=me}i.value.canvas.setWidth(o.value),i.value.canvas.setHeight(a.value),i.value.canvas.isDrawingMode=!0,i.value.visibleDrawLayer=Y(),i.value.visibleImageLayer=Y({image:Q}),i.value.drawLayer=$({layerHeight:H,layerWidth:Z});const te=o.value*i.value.imageScale,fe=a.value*i.value.imageScale;D.params.width=te-te%64,D.params.height=fe-fe%64,i.value.visibleDrawLayer.set("opacity",.8),i.value.canvas.add(i.value.visibleImageLayer),i.value.canvas.add(i.value.visibleDrawLayer),i.value.canvas.add(f),c.value=!0,z(),A()})}function k(G,D,B,Z,H,Q){const te=Q?Q.width:G.width,fe=Q?Q.height:G.height;if(H==="Original")return G;const me=document.createElement("canvas");me.width=D,me.height=B;const _e=me.getContext("2d");_e.fillStyle=Z,_e.fillRect(0,0,me.width,me.height);let j=0,x=0,U=G.width,K=G.height,L=0,F=0,X=me.width,de=me.height;switch(H){case"Stretch":break;case"ScaleAndCrop":{const le=me.width/te,W=me.height/fe;le>W?(K=me.height/le,x=(G.height-K)/2):(U=me.width/W,j=(G.width-U)/2);break}case"ScaleAndPad":{const le=me.width/te,W=me.height/fe;le<W?(de=fe*le,F=(me.height-de)/2):(X=te*W,L=(me.width-X)/2);break}case"NoScale":default:{const le=te/2,W=fe/2;te>D?(U=D,j=le-D/2):(X=te,L=D/2-le),fe>B?(K=B,x=W-B/2):(de=fe,F=B/2-W);break}}return _e.drawImage(G,j,x,U,K,L,F,X,de),me}function A(){const G=Jt(),D=Ft();if(!i.value.imageLayer||!i.value.drawLayer)return;const B=G.params.width,Z=G.params.height,H=i.value.imageLayer.backgroundColor||"#FFFFFF",Q=D.imageResizeMode,te=i.value.imageLayer.toCanvasElement(),fe=k(te,B,Z,H,Q,te);if(u.value.sourceImage=fe.toDataURL("image/jpeg",1),u.value.maskImage=void 0,i.value.redoHistory.length>0&&!p.value){const _e=i.value.drawLayer.toCanvasElement(),j=k(_e,B,Z,H,Q,te);u.value.maskImage=j.toDataURL("image/jpeg",1).split(",")[1]}}let P;function z(){if(!i.value.canvas)return;const G=Jt();i.value.cropPreviewLayer&&(i.value.canvas.remove(i.value.cropPreviewLayer),i.value.cropPreviewLayer=void 0),c.value&&(i.value.cropPreviewLayer=Y({layerWidth:G.params.width/i.value.imageScale,layerHeight:G.params.height/i.value.imageScale,fill:"rgba(100, 0, 0, 0.5)"}),i.value.canvas.centerObject(i.value.cropPreviewLayer),i.value.canvas.add(i.value.cropPreviewLayer),P&&clearTimeout(P),P=setTimeout(()=>{c.value=!1,z(),P=void 0},5e3))}function I(G,D){const B="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAA1JREFUGFdj+P///38ACfsD/QVDRcoAAAAASUVORK5CYII=";ur.fabric.Image.fromURL(B,Z=>{Z.set({height:G,width:D});const H=Z.toDataURL({format:"png"});u.value.sourceImage=H,p.value=!0,T(Z)})}function $({image:G,layerWidth:D,layerHeight:B}={}){const Z=new ur.fabric.Canvas(null);return Z.selection=!1,Z.backgroundColor=i.value.maskBackgroundColor,Z.setHeight(B||a.value),Z.setWidth(D||o.value),G&&Z.add(G),Z}function O(){return i.value.imageLayer?{layerHeight:i.value.imageLayer.getHeight(),layerWidth:i.value.imageLayer.getWidth()}:{}}function Y({image:G,layerWidth:D,layerHeight:B,fill:Z,abosolute:H}={}){const Q=G||new ur.fabric.Rect({width:D||o.value,height:B||a.value,left:0,top:0,fill:Z||"transparent",absolutePositioned:H||!0,selectable:!1});return new ur.fabric.Group([Q],{selectable:!1,absolutePositioned:H||!0})}function re(){!i.value.canvas||(i.value.visibleImageLayer&&(i.value.canvas.remove(i.value.visibleImageLayer),i.value.visibleImageLayer=void 0),i.value.visibleDrawLayer&&(i.value.canvas.remove(i.value.visibleDrawLayer),i.value.visibleDrawLayer=void 0),i.value.imageLayer=void 0,i.value.drawLayer=void 0,i.value.redoHistory=[],i.value.undoHistory=[],i.value.canvas.isDrawingMode=!1)}function q(){if(!!i.value.canvas){if(i.value.visibleDrawLayer&&(i.value.canvas.remove(i.value.visibleDrawLayer),i.value.visibleDrawLayer=void 0),p.value){const G=Jt();I(G.params.height||512,G.params.width||512)}i.value.drawLayer=void 0,i.value.redoHistory=[],i.value.undoHistory=[],i.value.visibleDrawLayer=Y(),i.value.drawLayer=$(O()),i.value.visibleDrawLayer.set("opacity",.8),i.value.canvas.add(i.value.visibleDrawLayer)}}function J(){var D;A();const G=document.createElement("a");if(p.value){G.href="data:image/png;base64,"+((D=u.value.sourceImage)==null?void 0:D.split(",")[1]),G.download="image_drawing.png",G.click();return}G.href="data:image/png;base64,"+u.value.maskImage,G.download="image_mask.png",G.click()}function E(){A();const G=Jt(),D=u.value.sourceImage;!D||ag(D,`${G.generatorType.toLowerCase()}-reference`)}async function V(G){return new Promise((D,B)=>{try{G.clone(D)}catch(Z){B(Z)}})}async function M(G){const D={path:G.path};y({history:D,erase:l.value,draw:p.value}),i.value.redoHistory.push(D)}function R(G){if(!i.value.canvas)return;const D=i.value.canvas.getPointer(G.e);f.left=D.x,f.top=D.y,f.opacity=.8,l.value?(f.set("strokeWidth",3),f.set("fill",""),v("red")):(f.set("strokeWidth",0),p.value?(f.set("fill",d.value),v(d.value)):(f.set("fill","white"),v("white"))),f.set("radius",h.value/2),g()}return{showCropPreview:c,erasing:l,switchToolText:s,brushSize:h,drawColor:d,drawing:p,imageProps:i,updateCropPreview:z,createNewCanvas:S,downloadMask:J,downloadSourceImage:E,resetCanvas:re,resetDrawing:q,flipErase:m,undoAction:w,redoAction:b,newImage:T,newBlankImage:I,setBrush:v,saveImages:A}}),hU={},pU={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 20 20"};function mU(e,t){return N(),oe("svg",pU,[...t[0]||(t[0]=[ne("g",{fill:"none"},[ne("path",{d:"M11.197 2.44a1.5 1.5 0 0 1 2.121 0l4.243 4.242a1.5 1.5 0 0 1 0 2.121L9.364 17H14.5a.5.5 0 0 1 0 1H7.82a1.496 1.496 0 0 1-1.14-.437L2.437 13.32a1.5 1.5 0 0 1 0-2.121l8.76-8.76zm1.414.706a.5.5 0 0 0-.707 0L5.538 9.512l4.95 4.95l6.366-6.366a.5.5 0 0 0 0-.707L12.61 3.146zM9.781 15.17l-4.95-4.95l-1.687 1.687a.5.5 0 0 0 0 .707l4.243 4.243a.5.5 0 0 0 .707 0l1.687-1.687z",fill:"currentColor"})],-1)])])}const gU=on(hU,[["render",mU]]),vU={key:0},yU={class:"canvas-container"},bU={class:"action-buttons",style:{left:"10px",right:"unset"}},_U={class:"action-buttons"},wU=be({__name:"CustomCanvas",setup(e){const t=Jt(),n=Ht(),r=al(),i=ae();async function u(a){if(!a.raw.type.includes("image")){n.raiseError("Uploaded file needs to be a image!",!1),i.value.clearFiles();return}const l=await zl(a.raw);t.currentImageProps.sourceImage=l,r.drawing=!1,ur.fabric.Image.fromURL(l,r.newImage)}function p(){t.currentImageProps.sourceImage="",r.resetCanvas()}rt(()=>{r.createNewCanvas("canvas"),t.currentImageProps.sourceImage&&ur.fabric.Image.fromURL(t.currentImageProps.sourceImage,r.newImage),window.addEventListener("paste",o)}),tn(()=>{window.removeEventListener("paste",o)});async function o(a){var h;const l=(h=a.clipboardData)==null?void 0:h.items;if(!!l)for(let c=0;c<l.length;c++){const f=l[c];if(f.type.startsWith("image/")){a.preventDefault();const s=f.getAsFile();if(!s)return;try{const d=await zl(s);typeof d=="string"&&(t.currentImageProps.sourceImage=d,r.drawing=!1,ur.fabric.Image.fromURL(d,r.newImage))}catch(d){console.error("Failed to process pasted image:",d)}return}}}return(a,l)=>(N(),oe($e,null,[_(t).currentImageProps.sourceImage?ge("",!0):(N(),ve(_(Dm),{key:0,drag:"",ref_key:"upload",ref:i,"auto-upload":!1,onChange:u,limit:1,multiple:""},{tip:ue(()=>[_(t).generatorType==="Img2Img"?(N(),oe("div",vU,[l[9]||(l[9]=ne("div",{class:"center-horizontal",style:{"margin-top":"5px"}},"OR",-1)),ne("div",{class:"center-both",style:{cursor:"pointer","text-decoration":"underline","font-size":"1rem"},onClick:l[0]||(l[0]=h=>_(r).newBlankImage(_(t).params.height||512,_(t).params.width||512))},[se(_(De),{size:20,style:{"margin-right":"2px"}},{default:ue(()=>[se(VS)]),_:1}),l[8]||(l[8]=ze("draw something",-1))])])):ge("",!0)]),default:ue(()=>[se(_(De),{size:100},{default:ue(()=>[se(_(Qp))]),_:1}),l[10]||(l[10]=ne("div",null,[ze("Drop file here, paste an image OR "),ne("em",null,"click to upload")],-1))]),_:1},512)),Tt(ne("div",null,[ne("div",yU,[l[11]||(l[11]=ne("canvas",{id:"canvas"},null,-1)),ne("div",bU,[se(_(Je),{onClick:l[1]||(l[1]=h=>_(r).undoAction()),icon:_(F1),plain:"",disabled:_(r).imageProps.redoHistory.length===0},null,8,["icon","disabled"]),se(_(Je),{onClick:l[2]||(l[2]=h=>_(r).redoAction()),icon:_(B1),plain:"",disabled:_(r).imageProps.undoHistory.length===0},null,8,["icon","disabled"])]),ne("div",_U,[se(_(Je),{onClick:l[3]||(l[3]=h=>_(r).resetDrawing()),icon:_(Kr),plain:""},null,8,["icon"]),se(_(Je),{onClick:p,icon:_(Ki),plain:""},null,8,["icon"]),se(_(Je),{onClick:l[4]||(l[4]=h=>_(r).downloadSourceImage()),icon:_(bl),plain:""},null,8,["icon"]),se(_(Je),{onClick:l[5]||(l[5]=h=>_(r).flipErase()),icon:_(r).erasing?_(dO):gU,plain:""},null,8,["icon"]),_(r).drawing?(N(),ve(_(FD),{key:0,modelValue:_(r).drawColor,"onUpdate:modelValue":l[6]||(l[6]=h=>_(r).drawColor=h),"show-alpha":""},null,8,["modelValue"])):ge("",!0)]),se(_(Am),{"label-width":"110px",style:{"margin-top":"10px"}},{default:ue(()=>[se(yn,{style:{"margin-bottom":"5px"},label:"Brush Size",prop:"brushSize",modelValue:_(r).brushSize,"onUpdate:modelValue":l[7]||(l[7]=h=>_(r).brushSize=h),min:10,max:100,step:10,change:_(r).setBrush},null,8,["modelValue","change"])]),_:1})])],512),[[Kt,_(t).currentImageProps.sourceImage]])],64))}}),Ky=on(wU,[["__scopeId","data-v-0cdc2bf8"]]),SU={class:"centerIcons"},CU={class:"stackedIcons"},xU=be({__name:"StackedIcon",props:{iconOne:{type:[Object,Function]},iconTwo:{type:[Object,Function]},size:{}},setup(e){rk(n=>({"2ad037ca":n.size+"px"}));const t=e;return(n,r)=>(N(),oe("div",SU,[ne("div",CU,[se(_(De),{class:"firstIcon",size:n.size},{default:ue(()=>[(N(),ve(xt(t.iconOne)))]),_:1},8,["size"]),se(_(De),{class:"secondIcon",size:n.size},{default:ue(()=>[(N(),ve(xt(t.iconTwo)))]),_:1},8,["size"])])]))}}),TU=on(xU,[["__scopeId","data-v-74586a39"]]),kU={key:1,style:{width:"40px"}},Wu=be({__name:"GeneratorMenuItem",props:{index:{},iconOne:{type:[Object,Function]},iconTwo:{type:[Object,Function]},isMobile:{type:Boolean}},setup(e){const t=e;return(n,r)=>(N(),ve(_(fn),{content:n.index,placement:n.isMobile?"bottom":"right",enterable:!1,"hide-after":100},{default:ue(()=>[se(_(Im),{index:n.index,style:{height:"60px",display:"flex","justify-content":"center"}},{default:ue(()=>[n.iconTwo?(N(),ve(TU,{key:0,iconOne:n.iconOne,iconTwo:n.iconTwo,size:40},null,8,["iconOne","iconTwo"])):(N(),oe("div",kU,[se(_(De),{style:{width:"35px"},size:40},{default:ue(()=>[(N(),ve(xt(t.iconOne)))]),_:1})]))]),_:1},8,["index"])]),_:1},8,["content","placement"]))}});/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */const EU=4,Xy=0,qy=1,OU=2;function bs(e){let t=e.length;for(;--t>=0;)e[t]=0}const AU=0,ZS=1,PU=2,IU=3,MU=258,og=29,pu=256,jl=pu+1+og,Ho=30,sg=19,JS=2*jl+1,Ba=15,Nd=16,LU=7,lg=256,QS=16,eC=17,tC=18,dp=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),wc=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),RU=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),nC=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),DU=512,di=new Array((jl+2)*2);bs(di);const ol=new Array(Ho*2);bs(ol);const Vl=new Array(DU);bs(Vl);const Ul=new Array(MU-IU+1);bs(Ul);const ug=new Array(og);bs(ug);const of=new Array(Ho);bs(of);function zd(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}let rC,iC,aC;function jd(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}const oC=e=>e<256?Vl[e]:Vl[256+(e>>>7)],Hl=(e,t)=>{e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255},Bn=(e,t,n)=>{e.bi_valid>Nd-n?(e.bi_buf|=t<<e.bi_valid&65535,Hl(e,e.bi_buf),e.bi_buf=t>>Nd-e.bi_valid,e.bi_valid+=n-Nd):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)},Vr=(e,t,n)=>{Bn(e,n[t*2],n[t*2+1])},sC=(e,t)=>{let n=0;do n|=e&1,e>>>=1,n<<=1;while(--t>0);return n>>>1},FU=e=>{e.bi_valid===16?(Hl(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},BU=(e,t)=>{const n=t.dyn_tree,r=t.max_code,i=t.stat_desc.static_tree,u=t.stat_desc.has_stree,p=t.stat_desc.extra_bits,o=t.stat_desc.extra_base,a=t.stat_desc.max_length;let l,h,c,f,s,d,g=0;for(f=0;f<=Ba;f++)e.bl_count[f]=0;for(n[e.heap[e.heap_max]*2+1]=0,l=e.heap_max+1;l<JS;l++)h=e.heap[l],f=n[n[h*2+1]*2+1]+1,f>a&&(f=a,g++),n[h*2+1]=f,!(h>r)&&(e.bl_count[f]++,s=0,h>=o&&(s=p[h-o]),d=n[h*2],e.opt_len+=d*(f+s),u&&(e.static_len+=d*(i[h*2+1]+s)));if(g!==0){do{for(f=a-1;e.bl_count[f]===0;)f--;e.bl_count[f]--,e.bl_count[f+1]+=2,e.bl_count[a]--,g-=2}while(g>0);for(f=a;f!==0;f--)for(h=e.bl_count[f];h!==0;)c=e.heap[--l],!(c>r)&&(n[c*2+1]!==f&&(e.opt_len+=(f-n[c*2+1])*n[c*2],n[c*2+1]=f),h--)}},lC=(e,t,n)=>{const r=new Array(Ba+1);let i=0,u,p;for(u=1;u<=Ba;u++)i=i+n[u-1]<<1,r[u]=i;for(p=0;p<=t;p++){let o=e[p*2+1];o!==0&&(e[p*2]=sC(r[o]++,o))}},$U=()=>{let e,t,n,r,i;const u=new Array(Ba+1);for(n=0,r=0;r<og-1;r++)for(ug[r]=n,e=0;e<1<<dp[r];e++)Ul[n++]=r;for(Ul[n-1]=r,i=0,r=0;r<16;r++)for(of[r]=i,e=0;e<1<<wc[r];e++)Vl[i++]=r;for(i>>=7;r<Ho;r++)for(of[r]=i<<7,e=0;e<1<<wc[r]-7;e++)Vl[256+i++]=r;for(t=0;t<=Ba;t++)u[t]=0;for(e=0;e<=143;)di[e*2+1]=8,e++,u[8]++;for(;e<=255;)di[e*2+1]=9,e++,u[9]++;for(;e<=279;)di[e*2+1]=7,e++,u[7]++;for(;e<=287;)di[e*2+1]=8,e++,u[8]++;for(lC(di,jl+1,u),e=0;e<Ho;e++)ol[e*2+1]=5,ol[e*2]=sC(e,5);rC=new zd(di,dp,pu+1,jl,Ba),iC=new zd(ol,wc,0,Ho,Ba),aC=new zd(new Array(0),RU,0,sg,LU)},uC=e=>{let t;for(t=0;t<jl;t++)e.dyn_ltree[t*2]=0;for(t=0;t<Ho;t++)e.dyn_dtree[t*2]=0;for(t=0;t<sg;t++)e.bl_tree[t*2]=0;e.dyn_ltree[lg*2]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},cC=e=>{e.bi_valid>8?Hl(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},Zy=(e,t,n,r)=>{const i=t*2,u=n*2;return e[i]<e[u]||e[i]===e[u]&&r[t]<=r[n]},Vd=(e,t,n)=>{const r=e.heap[n];let i=n<<1;for(;i<=e.heap_len&&(i<e.heap_len&&Zy(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!Zy(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r},Jy=(e,t,n)=>{let r,i,u=0,p,o;if(e.sym_next!==0)do r=e.pending_buf[e.sym_buf+u++]&255,r+=(e.pending_buf[e.sym_buf+u++]&255)<<8,i=e.pending_buf[e.sym_buf+u++],r===0?Vr(e,i,t):(p=Ul[i],Vr(e,p+pu+1,t),o=dp[p],o!==0&&(i-=ug[p],Bn(e,i,o)),r--,p=oC(r),Vr(e,p,n),o=wc[p],o!==0&&(r-=of[p],Bn(e,r,o)));while(u<e.sym_next);Vr(e,lg,t)},hp=(e,t)=>{const n=t.dyn_tree,r=t.stat_desc.static_tree,i=t.stat_desc.has_stree,u=t.stat_desc.elems;let p,o,a=-1,l;for(e.heap_len=0,e.heap_max=JS,p=0;p<u;p++)n[p*2]!==0?(e.heap[++e.heap_len]=a=p,e.depth[p]=0):n[p*2+1]=0;for(;e.heap_len<2;)l=e.heap[++e.heap_len]=a<2?++a:0,n[l*2]=1,e.depth[l]=0,e.opt_len--,i&&(e.static_len-=r[l*2+1]);for(t.max_code=a,p=e.heap_len>>1;p>=1;p--)Vd(e,n,p);l=u;do p=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Vd(e,n,1),o=e.heap[1],e.heap[--e.heap_max]=p,e.heap[--e.heap_max]=o,n[l*2]=n[p*2]+n[o*2],e.depth[l]=(e.depth[p]>=e.depth[o]?e.depth[p]:e.depth[o])+1,n[p*2+1]=n[o*2+1]=l,e.heap[1]=l++,Vd(e,n,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],BU(e,t),lC(n,a,e.bl_count)},Qy=(e,t,n)=>{let r,i=-1,u,p=t[0*2+1],o=0,a=7,l=4;for(p===0&&(a=138,l=3),t[(n+1)*2+1]=65535,r=0;r<=n;r++)u=p,p=t[(r+1)*2+1],!(++o<a&&u===p)&&(o<l?e.bl_tree[u*2]+=o:u!==0?(u!==i&&e.bl_tree[u*2]++,e.bl_tree[QS*2]++):o<=10?e.bl_tree[eC*2]++:e.bl_tree[tC*2]++,o=0,i=u,p===0?(a=138,l=3):u===p?(a=6,l=3):(a=7,l=4))},eb=(e,t,n)=>{let r,i=-1,u,p=t[0*2+1],o=0,a=7,l=4;for(p===0&&(a=138,l=3),r=0;r<=n;r++)if(u=p,p=t[(r+1)*2+1],!(++o<a&&u===p)){if(o<l)do Vr(e,u,e.bl_tree);while(--o!==0);else u!==0?(u!==i&&(Vr(e,u,e.bl_tree),o--),Vr(e,QS,e.bl_tree),Bn(e,o-3,2)):o<=10?(Vr(e,eC,e.bl_tree),Bn(e,o-3,3)):(Vr(e,tC,e.bl_tree),Bn(e,o-11,7));o=0,i=u,p===0?(a=138,l=3):u===p?(a=6,l=3):(a=7,l=4)}},NU=e=>{let t;for(Qy(e,e.dyn_ltree,e.l_desc.max_code),Qy(e,e.dyn_dtree,e.d_desc.max_code),hp(e,e.bl_desc),t=sg-1;t>=3&&e.bl_tree[nC[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t},zU=(e,t,n,r)=>{let i;for(Bn(e,t-257,5),Bn(e,n-1,5),Bn(e,r-4,4),i=0;i<r;i++)Bn(e,e.bl_tree[nC[i]*2+1],3);eb(e,e.dyn_ltree,t-1),eb(e,e.dyn_dtree,n-1)},jU=e=>{let t=4093624447,n;for(n=0;n<=31;n++,t>>>=1)if(t&1&&e.dyn_ltree[n*2]!==0)return Xy;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return qy;for(n=32;n<pu;n++)if(e.dyn_ltree[n*2]!==0)return qy;return Xy};let tb=!1;const VU=e=>{tb||($U(),tb=!0),e.l_desc=new jd(e.dyn_ltree,rC),e.d_desc=new jd(e.dyn_dtree,iC),e.bl_desc=new jd(e.bl_tree,aC),e.bi_buf=0,e.bi_valid=0,uC(e)},fC=(e,t,n,r)=>{Bn(e,(AU<<1)+(r?1:0),3),cC(e),Hl(e,n),Hl(e,~n),n&&e.pending_buf.set(e.window.subarray(t,t+n),e.pending),e.pending+=n},UU=e=>{Bn(e,ZS<<1,3),Vr(e,lg,di),FU(e)},HU=(e,t,n,r)=>{let i,u,p=0;e.level>0?(e.strm.data_type===OU&&(e.strm.data_type=jU(e)),hp(e,e.l_desc),hp(e,e.d_desc),p=NU(e),i=e.opt_len+3+7>>>3,u=e.static_len+3+7>>>3,u<=i&&(i=u)):i=u=n+5,n+4<=i&&t!==-1?fC(e,t,n,r):e.strategy===EU||u===i?(Bn(e,(ZS<<1)+(r?1:0),3),Jy(e,di,ol)):(Bn(e,(PU<<1)+(r?1:0),3),zU(e,e.l_desc.max_code+1,e.d_desc.max_code+1,p+1),Jy(e,e.dyn_ltree,e.dyn_dtree)),uC(e),r&&cC(e)},WU=(e,t,n)=>(e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=n,t===0?e.dyn_ltree[n*2]++:(e.matches++,t--,e.dyn_ltree[(Ul[n]+pu+1)*2]++,e.dyn_dtree[oC(t)*2]++),e.sym_next===e.sym_end);var GU=VU,YU=fC,KU=HU,XU=WU,qU=UU,ZU={_tr_init:GU,_tr_stored_block:YU,_tr_flush_block:KU,_tr_tally:XU,_tr_align:qU};const JU=(e,t,n,r)=>{let i=e&65535|0,u=e>>>16&65535|0,p=0;for(;n!==0;){p=n>2e3?2e3:n,n-=p;do i=i+t[r++]|0,u=u+i|0;while(--p);i%=65521,u%=65521}return i|u<<16|0};var Wl=JU;const QU=()=>{let e,t=[];for(var n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=e&1?3988292384^e>>>1:e>>>1;t[n]=e}return t},eH=new Uint32Array(QU()),tH=(e,t,n,r)=>{const i=eH,u=r+n;e^=-1;for(let p=r;p<u;p++)e=e>>>8^i[(e^t[p])&255];return e^-1};var ln=tH,eo={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},_s={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:nH,_tr_stored_block:pp,_tr_flush_block:rH,_tr_tally:ta,_tr_align:iH}=ZU,{Z_NO_FLUSH:na,Z_PARTIAL_FLUSH:aH,Z_FULL_FLUSH:oH,Z_FINISH:cr,Z_BLOCK:nb,Z_OK:cn,Z_STREAM_END:rb,Z_STREAM_ERROR:Gr,Z_DATA_ERROR:sH,Z_BUF_ERROR:Ud,Z_DEFAULT_COMPRESSION:lH,Z_FILTERED:uH,Z_HUFFMAN_ONLY:Gu,Z_RLE:cH,Z_FIXED:fH,Z_DEFAULT_STRATEGY:dH,Z_UNKNOWN:hH,Z_DEFLATED:Nf}=_s,pH=9,mH=15,gH=8,vH=29,yH=256,mp=yH+1+vH,bH=30,_H=19,wH=2*mp+1,SH=15,ft=3,Zi=258,Yr=Zi+ft+1,CH=32,is=42,cg=57,gp=69,vp=73,yp=91,bp=103,$a=113,$s=666,In=1,ws=2,to=3,Ss=4,xH=3,Na=(e,t)=>(e.msg=eo[t],t),ib=e=>e*2-(e>4?9:0),Yi=e=>{let t=e.length;for(;--t>=0;)e[t]=0},TH=e=>{let t,n,r,i=e.w_size;t=e.hash_size,r=t;do n=e.head[--r],e.head[r]=n>=i?n-i:0;while(--t);t=i,r=t;do n=e.prev[--r],e.prev[r]=n>=i?n-i:0;while(--t)};let kH=(e,t,n)=>(t<<e.hash_shift^n)&e.hash_mask,ra=kH;const Gn=e=>{const t=e.state;let n=t.pending;n>e.avail_out&&(n=e.avail_out),n!==0&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+n),e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,t.pending===0&&(t.pending_out=0))},qn=(e,t)=>{rH(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Gn(e.strm)},yt=(e,t)=>{e.pending_buf[e.pending++]=t},Ms=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255},_p=(e,t,n,r)=>{let i=e.avail_in;return i>r&&(i=r),i===0?0:(e.avail_in-=i,t.set(e.input.subarray(e.next_in,e.next_in+i),n),e.state.wrap===1?e.adler=Wl(e.adler,t,i,n):e.state.wrap===2&&(e.adler=ln(e.adler,t,i,n)),e.next_in+=i,e.total_in+=i,i)},dC=(e,t)=>{let n=e.max_chain_length,r=e.strstart,i,u,p=e.prev_length,o=e.nice_match;const a=e.strstart>e.w_size-Yr?e.strstart-(e.w_size-Yr):0,l=e.window,h=e.w_mask,c=e.prev,f=e.strstart+Zi;let s=l[r+p-1],d=l[r+p];e.prev_length>=e.good_match&&(n>>=2),o>e.lookahead&&(o=e.lookahead);do if(i=t,!(l[i+p]!==d||l[i+p-1]!==s||l[i]!==l[r]||l[++i]!==l[r+1])){r+=2,i++;do;while(l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&r<f);if(u=Zi-(f-r),r=f-Zi,u>p){if(e.match_start=t,p=u,u>=o)break;s=l[r+p-1],d=l[r+p]}}while((t=c[t&h])>a&&--n!==0);return p<=e.lookahead?p:e.lookahead},as=e=>{const t=e.w_size;let n,r,i;do{if(r=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-Yr)&&(e.window.set(e.window.subarray(t,t+t-r),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,e.insert>e.strstart&&(e.insert=e.strstart),TH(e),r+=t),e.strm.avail_in===0)break;if(n=_p(e.strm,e.window,e.strstart+e.lookahead,r),e.lookahead+=n,e.lookahead+e.insert>=ft)for(i=e.strstart-e.insert,e.ins_h=e.window[i],e.ins_h=ra(e,e.ins_h,e.window[i+1]);e.insert&&(e.ins_h=ra(e,e.ins_h,e.window[i+ft-1]),e.prev[i&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=i,i++,e.insert--,!(e.lookahead+e.insert<ft)););}while(e.lookahead<Yr&&e.strm.avail_in!==0)},hC=(e,t)=>{let n=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,r,i,u,p=0,o=e.strm.avail_in;do{if(r=65535,u=e.bi_valid+42>>3,e.strm.avail_out<u||(u=e.strm.avail_out-u,i=e.strstart-e.block_start,r>i+e.strm.avail_in&&(r=i+e.strm.avail_in),r>u&&(r=u),r<n&&(r===0&&t!==cr||t===na||r!==i+e.strm.avail_in)))break;p=t===cr&&r===i+e.strm.avail_in?1:0,pp(e,0,0,p),e.pending_buf[e.pending-4]=r,e.pending_buf[e.pending-3]=r>>8,e.pending_buf[e.pending-2]=~r,e.pending_buf[e.pending-1]=~r>>8,Gn(e.strm),i&&(i>r&&(i=r),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+i),e.strm.next_out),e.strm.next_out+=i,e.strm.avail_out-=i,e.strm.total_out+=i,e.block_start+=i,r-=i),r&&(_p(e.strm,e.strm.output,e.strm.next_out,r),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r)}while(p===0);return o-=e.strm.avail_in,o&&(o>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=o&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-o,e.strm.next_in),e.strstart),e.strstart+=o,e.insert+=o>e.w_size-e.insert?e.w_size-e.insert:o),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),p?Ss:t!==na&&t!==cr&&e.strm.avail_in===0&&e.strstart===e.block_start?ws:(u=e.window_size-e.strstart,e.strm.avail_in>u&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,u+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),u>e.strm.avail_in&&(u=e.strm.avail_in),u&&(_p(e.strm,e.window,e.strstart,u),e.strstart+=u,e.insert+=u>e.w_size-e.insert?e.w_size-e.insert:u),e.high_water<e.strstart&&(e.high_water=e.strstart),u=e.bi_valid+42>>3,u=e.pending_buf_size-u>65535?65535:e.pending_buf_size-u,n=u>e.w_size?e.w_size:u,i=e.strstart-e.block_start,(i>=n||(i||t===cr)&&t!==na&&e.strm.avail_in===0&&i<=u)&&(r=i>u?u:i,p=t===cr&&e.strm.avail_in===0&&r===i?1:0,pp(e,e.block_start,r,p),e.block_start+=r,Gn(e.strm)),p?to:In)},Hd=(e,t)=>{let n,r;for(;;){if(e.lookahead<Yr){if(as(e),e.lookahead<Yr&&t===na)return In;if(e.lookahead===0)break}if(n=0,e.lookahead>=ft&&(e.ins_h=ra(e,e.ins_h,e.window[e.strstart+ft-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),n!==0&&e.strstart-n<=e.w_size-Yr&&(e.match_length=dC(e,n)),e.match_length>=ft)if(r=ta(e,e.strstart-e.match_start,e.match_length-ft),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=ft){e.match_length--;do e.strstart++,e.ins_h=ra(e,e.ins_h,e.window[e.strstart+ft-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=ra(e,e.ins_h,e.window[e.strstart+1]);else r=ta(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(qn(e,!1),e.strm.avail_out===0))return In}return e.insert=e.strstart<ft-1?e.strstart:ft-1,t===cr?(qn(e,!0),e.strm.avail_out===0?to:Ss):e.sym_next&&(qn(e,!1),e.strm.avail_out===0)?In:ws},To=(e,t)=>{let n,r,i;for(;;){if(e.lookahead<Yr){if(as(e),e.lookahead<Yr&&t===na)return In;if(e.lookahead===0)break}if(n=0,e.lookahead>=ft&&(e.ins_h=ra(e,e.ins_h,e.window[e.strstart+ft-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=ft-1,n!==0&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-Yr&&(e.match_length=dC(e,n),e.match_length<=5&&(e.strategy===uH||e.match_length===ft&&e.strstart-e.match_start>4096)&&(e.match_length=ft-1)),e.prev_length>=ft&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-ft,r=ta(e,e.strstart-1-e.prev_match,e.prev_length-ft),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=i&&(e.ins_h=ra(e,e.ins_h,e.window[e.strstart+ft-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=ft-1,e.strstart++,r&&(qn(e,!1),e.strm.avail_out===0))return In}else if(e.match_available){if(r=ta(e,0,e.window[e.strstart-1]),r&&qn(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return In}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=ta(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<ft-1?e.strstart:ft-1,t===cr?(qn(e,!0),e.strm.avail_out===0?to:Ss):e.sym_next&&(qn(e,!1),e.strm.avail_out===0)?In:ws},EH=(e,t)=>{let n,r,i,u;const p=e.window;for(;;){if(e.lookahead<=Zi){if(as(e),e.lookahead<=Zi&&t===na)return In;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=ft&&e.strstart>0&&(i=e.strstart-1,r=p[i],r===p[++i]&&r===p[++i]&&r===p[++i])){u=e.strstart+Zi;do;while(r===p[++i]&&r===p[++i]&&r===p[++i]&&r===p[++i]&&r===p[++i]&&r===p[++i]&&r===p[++i]&&r===p[++i]&&i<u);e.match_length=Zi-(u-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=ft?(n=ta(e,1,e.match_length-ft),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=ta(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(qn(e,!1),e.strm.avail_out===0))return In}return e.insert=0,t===cr?(qn(e,!0),e.strm.avail_out===0?to:Ss):e.sym_next&&(qn(e,!1),e.strm.avail_out===0)?In:ws},OH=(e,t)=>{let n;for(;;){if(e.lookahead===0&&(as(e),e.lookahead===0)){if(t===na)return In;break}if(e.match_length=0,n=ta(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(qn(e,!1),e.strm.avail_out===0))return In}return e.insert=0,t===cr?(qn(e,!0),e.strm.avail_out===0?to:Ss):e.sym_next&&(qn(e,!1),e.strm.avail_out===0)?In:ws};function Br(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}const Ns=[new Br(0,0,0,0,hC),new Br(4,4,8,4,Hd),new Br(4,5,16,8,Hd),new Br(4,6,32,32,Hd),new Br(4,4,16,16,To),new Br(8,16,32,32,To),new Br(8,16,128,128,To),new Br(8,32,128,256,To),new Br(32,128,258,1024,To),new Br(32,258,258,4096,To)],AH=e=>{e.window_size=2*e.w_size,Yi(e.head),e.max_lazy_match=Ns[e.level].max_lazy,e.good_match=Ns[e.level].good_length,e.nice_match=Ns[e.level].nice_length,e.max_chain_length=Ns[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=ft-1,e.match_available=0,e.ins_h=0};function PH(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Nf,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(wH*2),this.dyn_dtree=new Uint16Array((2*bH+1)*2),this.bl_tree=new Uint16Array((2*_H+1)*2),Yi(this.dyn_ltree),Yi(this.dyn_dtree),Yi(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(SH+1),this.heap=new Uint16Array(2*mp+1),Yi(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*mp+1),Yi(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const mu=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.status!==is&&t.status!==cg&&t.status!==gp&&t.status!==vp&&t.status!==yp&&t.status!==bp&&t.status!==$a&&t.status!==$s?1:0},pC=e=>{if(mu(e))return Na(e,Gr);e.total_in=e.total_out=0,e.data_type=hH;const t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap===2?cg:t.wrap?is:$a,e.adler=t.wrap===2?0:1,t.last_flush=-2,nH(t),cn},mC=e=>{const t=pC(e);return t===cn&&AH(e.state),t},IH=(e,t)=>mu(e)||e.state.wrap!==2?Gr:(e.state.gzhead=t,cn),gC=(e,t,n,r,i,u)=>{if(!e)return Gr;let p=1;if(t===lH&&(t=6),r<0?(p=0,r=-r):r>15&&(p=2,r-=16),i<1||i>pH||n!==Nf||r<8||r>15||t<0||t>9||u<0||u>fH||r===8&&p!==1)return Na(e,Gr);r===8&&(r=9);const o=new PH;return e.state=o,o.strm=e,o.status=is,o.wrap=p,o.gzhead=null,o.w_bits=r,o.w_size=1<<o.w_bits,o.w_mask=o.w_size-1,o.hash_bits=i+7,o.hash_size=1<<o.hash_bits,o.hash_mask=o.hash_size-1,o.hash_shift=~~((o.hash_bits+ft-1)/ft),o.window=new Uint8Array(o.w_size*2),o.head=new Uint16Array(o.hash_size),o.prev=new Uint16Array(o.w_size),o.lit_bufsize=1<<i+6,o.pending_buf_size=o.lit_bufsize*4,o.pending_buf=new Uint8Array(o.pending_buf_size),o.sym_buf=o.lit_bufsize,o.sym_end=(o.lit_bufsize-1)*3,o.level=t,o.strategy=u,o.method=n,mC(e)},MH=(e,t)=>gC(e,t,Nf,mH,gH,dH),LH=(e,t)=>{if(mu(e)||t>nb||t<0)return e?Na(e,Gr):Gr;const n=e.state;if(!e.output||e.avail_in!==0&&!e.input||n.status===$s&&t!==cr)return Na(e,e.avail_out===0?Ud:Gr);const r=n.last_flush;if(n.last_flush=t,n.pending!==0){if(Gn(e),e.avail_out===0)return n.last_flush=-1,cn}else if(e.avail_in===0&&ib(t)<=ib(r)&&t!==cr)return Na(e,Ud);if(n.status===$s&&e.avail_in!==0)return Na(e,Ud);if(n.status===is&&n.wrap===0&&(n.status=$a),n.status===is){let i=Nf+(n.w_bits-8<<4)<<8,u=-1;if(n.strategy>=Gu||n.level<2?u=0:n.level<6?u=1:n.level===6?u=2:u=3,i|=u<<6,n.strstart!==0&&(i|=CH),i+=31-i%31,Ms(n,i),n.strstart!==0&&(Ms(n,e.adler>>>16),Ms(n,e.adler&65535)),e.adler=1,n.status=$a,Gn(e),n.pending!==0)return n.last_flush=-1,cn}if(n.status===cg){if(e.adler=0,yt(n,31),yt(n,139),yt(n,8),n.gzhead)yt(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),yt(n,n.gzhead.time&255),yt(n,n.gzhead.time>>8&255),yt(n,n.gzhead.time>>16&255),yt(n,n.gzhead.time>>24&255),yt(n,n.level===9?2:n.strategy>=Gu||n.level<2?4:0),yt(n,n.gzhead.os&255),n.gzhead.extra&&n.gzhead.extra.length&&(yt(n,n.gzhead.extra.length&255),yt(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=ln(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=gp;else if(yt(n,0),yt(n,0),yt(n,0),yt(n,0),yt(n,0),yt(n,n.level===9?2:n.strategy>=Gu||n.level<2?4:0),yt(n,xH),n.status=$a,Gn(e),n.pending!==0)return n.last_flush=-1,cn}if(n.status===gp){if(n.gzhead.extra){let i=n.pending,u=(n.gzhead.extra.length&65535)-n.gzindex;for(;n.pending+u>n.pending_buf_size;){let o=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+o),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>i&&(e.adler=ln(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex+=o,Gn(e),n.pending!==0)return n.last_flush=-1,cn;i=0,u-=o}let p=new Uint8Array(n.gzhead.extra);n.pending_buf.set(p.subarray(n.gzindex,n.gzindex+u),n.pending),n.pending+=u,n.gzhead.hcrc&&n.pending>i&&(e.adler=ln(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex=0}n.status=vp}if(n.status===vp){if(n.gzhead.name){let i=n.pending,u;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>i&&(e.adler=ln(e.adler,n.pending_buf,n.pending-i,i)),Gn(e),n.pending!==0)return n.last_flush=-1,cn;i=0}n.gzindex<n.gzhead.name.length?u=n.gzhead.name.charCodeAt(n.gzindex++)&255:u=0,yt(n,u)}while(u!==0);n.gzhead.hcrc&&n.pending>i&&(e.adler=ln(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex=0}n.status=yp}if(n.status===yp){if(n.gzhead.comment){let i=n.pending,u;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>i&&(e.adler=ln(e.adler,n.pending_buf,n.pending-i,i)),Gn(e),n.pending!==0)return n.last_flush=-1,cn;i=0}n.gzindex<n.gzhead.comment.length?u=n.gzhead.comment.charCodeAt(n.gzindex++)&255:u=0,yt(n,u)}while(u!==0);n.gzhead.hcrc&&n.pending>i&&(e.adler=ln(e.adler,n.pending_buf,n.pending-i,i))}n.status=bp}if(n.status===bp){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(Gn(e),n.pending!==0))return n.last_flush=-1,cn;yt(n,e.adler&255),yt(n,e.adler>>8&255),e.adler=0}if(n.status=$a,Gn(e),n.pending!==0)return n.last_flush=-1,cn}if(e.avail_in!==0||n.lookahead!==0||t!==na&&n.status!==$s){let i=n.level===0?hC(n,t):n.strategy===Gu?OH(n,t):n.strategy===cH?EH(n,t):Ns[n.level].func(n,t);if((i===to||i===Ss)&&(n.status=$s),i===In||i===to)return e.avail_out===0&&(n.last_flush=-1),cn;if(i===ws&&(t===aH?iH(n):t!==nb&&(pp(n,0,0,!1),t===oH&&(Yi(n.head),n.lookahead===0&&(n.strstart=0,n.block_start=0,n.insert=0))),Gn(e),e.avail_out===0))return n.last_flush=-1,cn}return t!==cr?cn:n.wrap<=0?rb:(n.wrap===2?(yt(n,e.adler&255),yt(n,e.adler>>8&255),yt(n,e.adler>>16&255),yt(n,e.adler>>24&255),yt(n,e.total_in&255),yt(n,e.total_in>>8&255),yt(n,e.total_in>>16&255),yt(n,e.total_in>>24&255)):(Ms(n,e.adler>>>16),Ms(n,e.adler&65535)),Gn(e),n.wrap>0&&(n.wrap=-n.wrap),n.pending!==0?cn:rb)},RH=e=>{if(mu(e))return Gr;const t=e.state.status;return e.state=null,t===$a?Na(e,sH):cn},DH=(e,t)=>{let n=t.length;if(mu(e))return Gr;const r=e.state,i=r.wrap;if(i===2||i===1&&r.status!==is||r.lookahead)return Gr;if(i===1&&(e.adler=Wl(e.adler,t,n,0)),r.wrap=0,n>=r.w_size){i===0&&(Yi(r.head),r.strstart=0,r.block_start=0,r.insert=0);let a=new Uint8Array(r.w_size);a.set(t.subarray(n-r.w_size,n),0),t=a,n=r.w_size}const u=e.avail_in,p=e.next_in,o=e.input;for(e.avail_in=n,e.next_in=0,e.input=t,as(r);r.lookahead>=ft;){let a=r.strstart,l=r.lookahead-(ft-1);do r.ins_h=ra(r,r.ins_h,r.window[a+ft-1]),r.prev[a&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=a,a++;while(--l);r.strstart=a,r.lookahead=ft-1,as(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=ft-1,r.match_available=0,e.next_in=p,e.input=o,e.avail_in=u,r.wrap=i,cn};var FH=MH,BH=gC,$H=mC,NH=pC,zH=IH,jH=LH,VH=RH,UH=DH,HH="pako deflate (from Nodeca project)",sl={deflateInit:FH,deflateInit2:BH,deflateReset:$H,deflateResetKeep:NH,deflateSetHeader:zH,deflate:jH,deflateEnd:VH,deflateSetDictionary:UH,deflateInfo:HH};const WH=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var GH=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const n=t.shift();if(!!n){if(typeof n!="object")throw new TypeError(n+"must be non-object");for(const r in n)WH(n,r)&&(e[r]=n[r])}}return e},YH=e=>{let t=0;for(let r=0,i=e.length;r<i;r++)t+=e[r].length;const n=new Uint8Array(t);for(let r=0,i=0,u=e.length;r<u;r++){let p=e[r];n.set(p,i),i+=p.length}return n},zf={assign:GH,flattenChunks:YH};let vC=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{vC=!1}const Gl=new Uint8Array(256);for(let e=0;e<256;e++)Gl[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;Gl[254]=Gl[254]=1;var KH=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,n,r,i,u,p=e.length,o=0;for(i=0;i<p;i++)n=e.charCodeAt(i),(n&64512)===55296&&i+1<p&&(r=e.charCodeAt(i+1),(r&64512)===56320&&(n=65536+(n-55296<<10)+(r-56320),i++)),o+=n<128?1:n<2048?2:n<65536?3:4;for(t=new Uint8Array(o),u=0,i=0;u<o;i++)n=e.charCodeAt(i),(n&64512)===55296&&i+1<p&&(r=e.charCodeAt(i+1),(r&64512)===56320&&(n=65536+(n-55296<<10)+(r-56320),i++)),n<128?t[u++]=n:n<2048?(t[u++]=192|n>>>6,t[u++]=128|n&63):n<65536?(t[u++]=224|n>>>12,t[u++]=128|n>>>6&63,t[u++]=128|n&63):(t[u++]=240|n>>>18,t[u++]=128|n>>>12&63,t[u++]=128|n>>>6&63,t[u++]=128|n&63);return t};const XH=(e,t)=>{if(t<65534&&e.subarray&&vC)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let n="";for(let r=0;r<t;r++)n+=String.fromCharCode(e[r]);return n};var qH=(e,t)=>{const n=t||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let r,i;const u=new Array(n*2);for(i=0,r=0;r<n;){let p=e[r++];if(p<128){u[i++]=p;continue}let o=Gl[p];if(o>4){u[i++]=65533,r+=o-1;continue}for(p&=o===2?31:o===3?15:7;o>1&&r<n;)p=p<<6|e[r++]&63,o--;if(o>1){u[i++]=65533;continue}p<65536?u[i++]=p:(p-=65536,u[i++]=55296|p>>10&1023,u[i++]=56320|p&1023)}return XH(u,i)},ZH=(e,t)=>{t=t||e.length,t>e.length&&(t=e.length);let n=t-1;for(;n>=0&&(e[n]&192)===128;)n--;return n<0||n===0?t:n+Gl[e[n]]>t?n:t},Yl={string2buf:KH,buf2string:qH,utf8border:ZH};function JH(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var yC=JH;const bC=Object.prototype.toString,{Z_NO_FLUSH:QH,Z_SYNC_FLUSH:eW,Z_FULL_FLUSH:tW,Z_FINISH:nW,Z_OK:sf,Z_STREAM_END:rW,Z_DEFAULT_COMPRESSION:iW,Z_DEFAULT_STRATEGY:aW,Z_DEFLATED:oW}=_s;function gu(e){this.options=zf.assign({level:iW,method:oW,chunkSize:16384,windowBits:15,memLevel:8,strategy:aW},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new yC,this.strm.avail_out=0;let n=sl.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==sf)throw new Error(eo[n]);if(t.header&&sl.deflateSetHeader(this.strm,t.header),t.dictionary){let r;if(typeof t.dictionary=="string"?r=Yl.string2buf(t.dictionary):bC.call(t.dictionary)==="[object ArrayBuffer]"?r=new Uint8Array(t.dictionary):r=t.dictionary,n=sl.deflateSetDictionary(this.strm,r),n!==sf)throw new Error(eo[n]);this._dict_set=!0}}gu.prototype.push=function(e,t){const n=this.strm,r=this.options.chunkSize;let i,u;if(this.ended)return!1;for(t===~~t?u=t:u=t===!0?nW:QH,typeof e=="string"?n.input=Yl.string2buf(e):bC.call(e)==="[object ArrayBuffer]"?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){if(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),(u===eW||u===tW)&&n.avail_out<=6){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(i=sl.deflate(n,u),i===rW)return n.next_out>0&&this.onData(n.output.subarray(0,n.next_out)),i=sl.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===sf;if(n.avail_out===0){this.onData(n.output);continue}if(u>0&&n.next_out>0){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(n.avail_in===0)break}return!0};gu.prototype.onData=function(e){this.chunks.push(e)};gu.prototype.onEnd=function(e){e===sf&&(this.result=zf.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function fg(e,t){const n=new gu(t);if(n.push(e,!0),n.err)throw n.msg||eo[n.err];return n.result}function sW(e,t){return t=t||{},t.raw=!0,fg(e,t)}function lW(e,t){return t=t||{},t.gzip=!0,fg(e,t)}var uW=gu,cW=fg,fW=sW,dW=lW,hW=_s,pW={Deflate:uW,deflate:cW,deflateRaw:fW,gzip:dW,constants:hW};const Yu=16209,mW=16191;var gW=function(t,n){let r,i,u,p,o,a,l,h,c,f,s,d,g,m,v,y,b,w,S,C,T,k,A,P;const z=t.state;r=t.next_in,A=t.input,i=r+(t.avail_in-5),u=t.next_out,P=t.output,p=u-(n-t.avail_out),o=u+(t.avail_out-257),a=z.dmax,l=z.wsize,h=z.whave,c=z.wnext,f=z.window,s=z.hold,d=z.bits,g=z.lencode,m=z.distcode,v=(1<<z.lenbits)-1,y=(1<<z.distbits)-1;e:do{d<15&&(s+=A[r++]<<d,d+=8,s+=A[r++]<<d,d+=8),b=g[s&v];t:for(;;){if(w=b>>>24,s>>>=w,d-=w,w=b>>>16&255,w===0)P[u++]=b&65535;else if(w&16){S=b&65535,w&=15,w&&(d<w&&(s+=A[r++]<<d,d+=8),S+=s&(1<<w)-1,s>>>=w,d-=w),d<15&&(s+=A[r++]<<d,d+=8,s+=A[r++]<<d,d+=8),b=m[s&y];n:for(;;){if(w=b>>>24,s>>>=w,d-=w,w=b>>>16&255,w&16){if(C=b&65535,w&=15,d<w&&(s+=A[r++]<<d,d+=8,d<w&&(s+=A[r++]<<d,d+=8)),C+=s&(1<<w)-1,C>a){t.msg="invalid distance too far back",z.mode=Yu;break e}if(s>>>=w,d-=w,w=u-p,C>w){if(w=C-w,w>h&&z.sane){t.msg="invalid distance too far back",z.mode=Yu;break e}if(T=0,k=f,c===0){if(T+=l-w,w<S){S-=w;do P[u++]=f[T++];while(--w);T=u-C,k=P}}else if(c<w){if(T+=l+c-w,w-=c,w<S){S-=w;do P[u++]=f[T++];while(--w);if(T=0,c<S){w=c,S-=w;do P[u++]=f[T++];while(--w);T=u-C,k=P}}}else if(T+=c-w,w<S){S-=w;do P[u++]=f[T++];while(--w);T=u-C,k=P}for(;S>2;)P[u++]=k[T++],P[u++]=k[T++],P[u++]=k[T++],S-=3;S&&(P[u++]=k[T++],S>1&&(P[u++]=k[T++]))}else{T=u-C;do P[u++]=P[T++],P[u++]=P[T++],P[u++]=P[T++],S-=3;while(S>2);S&&(P[u++]=P[T++],S>1&&(P[u++]=P[T++]))}}else if((w&64)===0){b=m[(b&65535)+(s&(1<<w)-1)];continue n}else{t.msg="invalid distance code",z.mode=Yu;break e}break}}else if((w&64)===0){b=g[(b&65535)+(s&(1<<w)-1)];continue t}else if(w&32){z.mode=mW;break e}else{t.msg="invalid literal/length code",z.mode=Yu;break e}break}}while(r<i&&u<o);S=d>>3,r-=S,d-=S<<3,s&=(1<<d)-1,t.next_in=r,t.next_out=u,t.avail_in=r<i?5+(i-r):5-(r-i),t.avail_out=u<o?257+(o-u):257-(u-o),z.hold=s,z.bits=d};const ko=15,ab=852,ob=592,sb=0,Wd=1,lb=2,vW=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),yW=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),bW=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),_W=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),wW=(e,t,n,r,i,u,p,o)=>{const a=o.bits;let l=0,h=0,c=0,f=0,s=0,d=0,g=0,m=0,v=0,y=0,b,w,S,C,T,k=null,A;const P=new Uint16Array(ko+1),z=new Uint16Array(ko+1);let I=null,$,O,Y;for(l=0;l<=ko;l++)P[l]=0;for(h=0;h<r;h++)P[t[n+h]]++;for(s=a,f=ko;f>=1&&P[f]===0;f--);if(s>f&&(s=f),f===0)return i[u++]=1<<24|64<<16|0,i[u++]=1<<24|64<<16|0,o.bits=1,0;for(c=1;c<f&&P[c]===0;c++);for(s<c&&(s=c),m=1,l=1;l<=ko;l++)if(m<<=1,m-=P[l],m<0)return-1;if(m>0&&(e===sb||f!==1))return-1;for(z[1]=0,l=1;l<ko;l++)z[l+1]=z[l]+P[l];for(h=0;h<r;h++)t[n+h]!==0&&(p[z[t[n+h]]++]=h);if(e===sb?(k=I=p,A=20):e===Wd?(k=vW,I=yW,A=257):(k=bW,I=_W,A=0),y=0,h=0,l=c,T=u,d=s,g=0,S=-1,v=1<<s,C=v-1,e===Wd&&v>ab||e===lb&&v>ob)return 1;for(;;){$=l-g,p[h]+1<A?(O=0,Y=p[h]):p[h]>=A?(O=I[p[h]-A],Y=k[p[h]-A]):(O=32+64,Y=0),b=1<<l-g,w=1<<d,c=w;do w-=b,i[T+(y>>g)+w]=$<<24|O<<16|Y|0;while(w!==0);for(b=1<<l-1;y&b;)b>>=1;if(b!==0?(y&=b-1,y+=b):y=0,h++,--P[l]===0){if(l===f)break;l=t[n+p[h]]}if(l>s&&(y&C)!==S){for(g===0&&(g=s),T+=c,d=l-g,m=1<<d;d+g<f&&(m-=P[d+g],!(m<=0));)d++,m<<=1;if(v+=1<<d,e===Wd&&v>ab||e===lb&&v>ob)return 1;S=y&C,i[S]=s<<24|d<<16|T-u|0}}return y!==0&&(i[T+y]=l-g<<24|64<<16|0),o.bits=s,0};var ll=wW;const SW=0,_C=1,wC=2,{Z_FINISH:ub,Z_BLOCK:CW,Z_TREES:Ku,Z_OK:no,Z_STREAM_END:xW,Z_NEED_DICT:TW,Z_STREAM_ERROR:gr,Z_DATA_ERROR:SC,Z_MEM_ERROR:CC,Z_BUF_ERROR:kW,Z_DEFLATED:cb}=_s,jf=16180,fb=16181,db=16182,hb=16183,pb=16184,mb=16185,gb=16186,vb=16187,yb=16188,bb=16189,lf=16190,si=16191,Gd=16192,_b=16193,Yd=16194,wb=16195,Sb=16196,Cb=16197,xb=16198,Xu=16199,qu=16200,Tb=16201,kb=16202,Eb=16203,Ob=16204,Ab=16205,Kd=16206,Pb=16207,Ib=16208,Vt=16209,xC=16210,TC=16211,EW=852,OW=592,AW=15,PW=AW,Mb=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function IW(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const ho=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.mode<jf||t.mode>TC?1:0},kC=e=>{if(ho(e))return gr;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=jf,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(EW),t.distcode=t.distdyn=new Int32Array(OW),t.sane=1,t.back=-1,no},EC=e=>{if(ho(e))return gr;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,kC(e)},OC=(e,t)=>{let n;if(ho(e))return gr;const r=e.state;return t<0?(n=0,t=-t):(n=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?gr:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,EC(e))},AC=(e,t)=>{if(!e)return gr;const n=new IW;e.state=n,n.strm=e,n.window=null,n.mode=jf;const r=OC(e,t);return r!==no&&(e.state=null),r},MW=e=>AC(e,PW);let Lb=!0,Xd,qd;const LW=e=>{if(Lb){Xd=new Int32Array(512),qd=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(ll(_C,e.lens,0,288,Xd,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;ll(wC,e.lens,0,32,qd,0,e.work,{bits:5}),Lb=!1}e.lencode=Xd,e.lenbits=9,e.distcode=qd,e.distbits=5},PC=(e,t,n,r)=>{let i;const u=e.state;return u.window===null&&(u.wsize=1<<u.wbits,u.wnext=0,u.whave=0,u.window=new Uint8Array(u.wsize)),r>=u.wsize?(u.window.set(t.subarray(n-u.wsize,n),0),u.wnext=0,u.whave=u.wsize):(i=u.wsize-u.wnext,i>r&&(i=r),u.window.set(t.subarray(n-r,n-r+i),u.wnext),r-=i,r?(u.window.set(t.subarray(n-r,n),0),u.wnext=r,u.whave=u.wsize):(u.wnext+=i,u.wnext===u.wsize&&(u.wnext=0),u.whave<u.wsize&&(u.whave+=i))),0},RW=(e,t)=>{let n,r,i,u,p,o,a,l,h,c,f,s,d,g,m=0,v,y,b,w,S,C,T,k;const A=new Uint8Array(4);let P,z;const I=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(ho(e)||!e.output||!e.input&&e.avail_in!==0)return gr;n=e.state,n.mode===si&&(n.mode=Gd),p=e.next_out,i=e.output,a=e.avail_out,u=e.next_in,r=e.input,o=e.avail_in,l=n.hold,h=n.bits,c=o,f=a,k=no;e:for(;;)switch(n.mode){case jf:if(n.wrap===0){n.mode=Gd;break}for(;h<16;){if(o===0)break e;o--,l+=r[u++]<<h,h+=8}if(n.wrap&2&&l===35615){n.wbits===0&&(n.wbits=15),n.check=0,A[0]=l&255,A[1]=l>>>8&255,n.check=ln(n.check,A,2,0),l=0,h=0,n.mode=fb;break}if(n.head&&(n.head.done=!1),!(n.wrap&1)||(((l&255)<<8)+(l>>8))%31){e.msg="incorrect header check",n.mode=Vt;break}if((l&15)!==cb){e.msg="unknown compression method",n.mode=Vt;break}if(l>>>=4,h-=4,T=(l&15)+8,n.wbits===0&&(n.wbits=T),T>15||T>n.wbits){e.msg="invalid window size",n.mode=Vt;break}n.dmax=1<<n.wbits,n.flags=0,e.adler=n.check=1,n.mode=l&512?bb:si,l=0,h=0;break;case fb:for(;h<16;){if(o===0)break e;o--,l+=r[u++]<<h,h+=8}if(n.flags=l,(n.flags&255)!==cb){e.msg="unknown compression method",n.mode=Vt;break}if(n.flags&57344){e.msg="unknown header flags set",n.mode=Vt;break}n.head&&(n.head.text=l>>8&1),n.flags&512&&n.wrap&4&&(A[0]=l&255,A[1]=l>>>8&255,n.check=ln(n.check,A,2,0)),l=0,h=0,n.mode=db;case db:for(;h<32;){if(o===0)break e;o--,l+=r[u++]<<h,h+=8}n.head&&(n.head.time=l),n.flags&512&&n.wrap&4&&(A[0]=l&255,A[1]=l>>>8&255,A[2]=l>>>16&255,A[3]=l>>>24&255,n.check=ln(n.check,A,4,0)),l=0,h=0,n.mode=hb;case hb:for(;h<16;){if(o===0)break e;o--,l+=r[u++]<<h,h+=8}n.head&&(n.head.xflags=l&255,n.head.os=l>>8),n.flags&512&&n.wrap&4&&(A[0]=l&255,A[1]=l>>>8&255,n.check=ln(n.check,A,2,0)),l=0,h=0,n.mode=pb;case pb:if(n.flags&1024){for(;h<16;){if(o===0)break e;o--,l+=r[u++]<<h,h+=8}n.length=l,n.head&&(n.head.extra_len=l),n.flags&512&&n.wrap&4&&(A[0]=l&255,A[1]=l>>>8&255,n.check=ln(n.check,A,2,0)),l=0,h=0}else n.head&&(n.head.extra=null);n.mode=mb;case mb:if(n.flags&1024&&(s=n.length,s>o&&(s=o),s&&(n.head&&(T=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(r.subarray(u,u+s),T)),n.flags&512&&n.wrap&4&&(n.check=ln(n.check,r,s,u)),o-=s,u+=s,n.length-=s),n.length))break e;n.length=0,n.mode=gb;case gb:if(n.flags&2048){if(o===0)break e;s=0;do T=r[u+s++],n.head&&T&&n.length<65536&&(n.head.name+=String.fromCharCode(T));while(T&&s<o);if(n.flags&512&&n.wrap&4&&(n.check=ln(n.check,r,s,u)),o-=s,u+=s,T)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=vb;case vb:if(n.flags&4096){if(o===0)break e;s=0;do T=r[u+s++],n.head&&T&&n.length<65536&&(n.head.comment+=String.fromCharCode(T));while(T&&s<o);if(n.flags&512&&n.wrap&4&&(n.check=ln(n.check,r,s,u)),o-=s,u+=s,T)break e}else n.head&&(n.head.comment=null);n.mode=yb;case yb:if(n.flags&512){for(;h<16;){if(o===0)break e;o--,l+=r[u++]<<h,h+=8}if(n.wrap&4&&l!==(n.check&65535)){e.msg="header crc mismatch",n.mode=Vt;break}l=0,h=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=si;break;case bb:for(;h<32;){if(o===0)break e;o--,l+=r[u++]<<h,h+=8}e.adler=n.check=Mb(l),l=0,h=0,n.mode=lf;case lf:if(n.havedict===0)return e.next_out=p,e.avail_out=a,e.next_in=u,e.avail_in=o,n.hold=l,n.bits=h,TW;e.adler=n.check=1,n.mode=si;case si:if(t===CW||t===Ku)break e;case Gd:if(n.last){l>>>=h&7,h-=h&7,n.mode=Kd;break}for(;h<3;){if(o===0)break e;o--,l+=r[u++]<<h,h+=8}switch(n.last=l&1,l>>>=1,h-=1,l&3){case 0:n.mode=_b;break;case 1:if(LW(n),n.mode=Xu,t===Ku){l>>>=2,h-=2;break e}break;case 2:n.mode=Sb;break;case 3:e.msg="invalid block type",n.mode=Vt}l>>>=2,h-=2;break;case _b:for(l>>>=h&7,h-=h&7;h<32;){if(o===0)break e;o--,l+=r[u++]<<h,h+=8}if((l&65535)!==(l>>>16^65535)){e.msg="invalid stored block lengths",n.mode=Vt;break}if(n.length=l&65535,l=0,h=0,n.mode=Yd,t===Ku)break e;case Yd:n.mode=wb;case wb:if(s=n.length,s){if(s>o&&(s=o),s>a&&(s=a),s===0)break e;i.set(r.subarray(u,u+s),p),o-=s,u+=s,a-=s,p+=s,n.length-=s;break}n.mode=si;break;case Sb:for(;h<14;){if(o===0)break e;o--,l+=r[u++]<<h,h+=8}if(n.nlen=(l&31)+257,l>>>=5,h-=5,n.ndist=(l&31)+1,l>>>=5,h-=5,n.ncode=(l&15)+4,l>>>=4,h-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=Vt;break}n.have=0,n.mode=Cb;case Cb:for(;n.have<n.ncode;){for(;h<3;){if(o===0)break e;o--,l+=r[u++]<<h,h+=8}n.lens[I[n.have++]]=l&7,l>>>=3,h-=3}for(;n.have<19;)n.lens[I[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,P={bits:n.lenbits},k=ll(SW,n.lens,0,19,n.lencode,0,n.work,P),n.lenbits=P.bits,k){e.msg="invalid code lengths set",n.mode=Vt;break}n.have=0,n.mode=xb;case xb:for(;n.have<n.nlen+n.ndist;){for(;m=n.lencode[l&(1<<n.lenbits)-1],v=m>>>24,y=m>>>16&255,b=m&65535,!(v<=h);){if(o===0)break e;o--,l+=r[u++]<<h,h+=8}if(b<16)l>>>=v,h-=v,n.lens[n.have++]=b;else{if(b===16){for(z=v+2;h<z;){if(o===0)break e;o--,l+=r[u++]<<h,h+=8}if(l>>>=v,h-=v,n.have===0){e.msg="invalid bit length repeat",n.mode=Vt;break}T=n.lens[n.have-1],s=3+(l&3),l>>>=2,h-=2}else if(b===17){for(z=v+3;h<z;){if(o===0)break e;o--,l+=r[u++]<<h,h+=8}l>>>=v,h-=v,T=0,s=3+(l&7),l>>>=3,h-=3}else{for(z=v+7;h<z;){if(o===0)break e;o--,l+=r[u++]<<h,h+=8}l>>>=v,h-=v,T=0,s=11+(l&127),l>>>=7,h-=7}if(n.have+s>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=Vt;break}for(;s--;)n.lens[n.have++]=T}}if(n.mode===Vt)break;if(n.lens[256]===0){e.msg="invalid code -- missing end-of-block",n.mode=Vt;break}if(n.lenbits=9,P={bits:n.lenbits},k=ll(_C,n.lens,0,n.nlen,n.lencode,0,n.work,P),n.lenbits=P.bits,k){e.msg="invalid literal/lengths set",n.mode=Vt;break}if(n.distbits=6,n.distcode=n.distdyn,P={bits:n.distbits},k=ll(wC,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,P),n.distbits=P.bits,k){e.msg="invalid distances set",n.mode=Vt;break}if(n.mode=Xu,t===Ku)break e;case Xu:n.mode=qu;case qu:if(o>=6&&a>=258){e.next_out=p,e.avail_out=a,e.next_in=u,e.avail_in=o,n.hold=l,n.bits=h,gW(e,f),p=e.next_out,i=e.output,a=e.avail_out,u=e.next_in,r=e.input,o=e.avail_in,l=n.hold,h=n.bits,n.mode===si&&(n.back=-1);break}for(n.back=0;m=n.lencode[l&(1<<n.lenbits)-1],v=m>>>24,y=m>>>16&255,b=m&65535,!(v<=h);){if(o===0)break e;o--,l+=r[u++]<<h,h+=8}if(y&&(y&240)===0){for(w=v,S=y,C=b;m=n.lencode[C+((l&(1<<w+S)-1)>>w)],v=m>>>24,y=m>>>16&255,b=m&65535,!(w+v<=h);){if(o===0)break e;o--,l+=r[u++]<<h,h+=8}l>>>=w,h-=w,n.back+=w}if(l>>>=v,h-=v,n.back+=v,n.length=b,y===0){n.mode=Ab;break}if(y&32){n.back=-1,n.mode=si;break}if(y&64){e.msg="invalid literal/length code",n.mode=Vt;break}n.extra=y&15,n.mode=Tb;case Tb:if(n.extra){for(z=n.extra;h<z;){if(o===0)break e;o--,l+=r[u++]<<h,h+=8}n.length+=l&(1<<n.extra)-1,l>>>=n.extra,h-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=kb;case kb:for(;m=n.distcode[l&(1<<n.distbits)-1],v=m>>>24,y=m>>>16&255,b=m&65535,!(v<=h);){if(o===0)break e;o--,l+=r[u++]<<h,h+=8}if((y&240)===0){for(w=v,S=y,C=b;m=n.distcode[C+((l&(1<<w+S)-1)>>w)],v=m>>>24,y=m>>>16&255,b=m&65535,!(w+v<=h);){if(o===0)break e;o--,l+=r[u++]<<h,h+=8}l>>>=w,h-=w,n.back+=w}if(l>>>=v,h-=v,n.back+=v,y&64){e.msg="invalid distance code",n.mode=Vt;break}n.offset=b,n.extra=y&15,n.mode=Eb;case Eb:if(n.extra){for(z=n.extra;h<z;){if(o===0)break e;o--,l+=r[u++]<<h,h+=8}n.offset+=l&(1<<n.extra)-1,l>>>=n.extra,h-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=Vt;break}n.mode=Ob;case Ob:if(a===0)break e;if(s=f-a,n.offset>s){if(s=n.offset-s,s>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=Vt;break}s>n.wnext?(s-=n.wnext,d=n.wsize-s):d=n.wnext-s,s>n.length&&(s=n.length),g=n.window}else g=i,d=p-n.offset,s=n.length;s>a&&(s=a),a-=s,n.length-=s;do i[p++]=g[d++];while(--s);n.length===0&&(n.mode=qu);break;case Ab:if(a===0)break e;i[p++]=n.length,a--,n.mode=qu;break;case Kd:if(n.wrap){for(;h<32;){if(o===0)break e;o--,l|=r[u++]<<h,h+=8}if(f-=a,e.total_out+=f,n.total+=f,n.wrap&4&&f&&(e.adler=n.check=n.flags?ln(n.check,i,f,p-f):Wl(n.check,i,f,p-f)),f=a,n.wrap&4&&(n.flags?l:Mb(l))!==n.check){e.msg="incorrect data check",n.mode=Vt;break}l=0,h=0}n.mode=Pb;case Pb:if(n.wrap&&n.flags){for(;h<32;){if(o===0)break e;o--,l+=r[u++]<<h,h+=8}if(n.wrap&4&&l!==(n.total&4294967295)){e.msg="incorrect length check",n.mode=Vt;break}l=0,h=0}n.mode=Ib;case Ib:k=xW;break e;case Vt:k=SC;break e;case xC:return CC;case TC:default:return gr}return e.next_out=p,e.avail_out=a,e.next_in=u,e.avail_in=o,n.hold=l,n.bits=h,(n.wsize||f!==e.avail_out&&n.mode<Vt&&(n.mode<Kd||t!==ub))&&PC(e,e.output,e.next_out,f-e.avail_out),c-=e.avail_in,f-=e.avail_out,e.total_in+=c,e.total_out+=f,n.total+=f,n.wrap&4&&f&&(e.adler=n.check=n.flags?ln(n.check,i,f,e.next_out-f):Wl(n.check,i,f,e.next_out-f)),e.data_type=n.bits+(n.last?64:0)+(n.mode===si?128:0)+(n.mode===Xu||n.mode===Yd?256:0),(c===0&&f===0||t===ub)&&k===no&&(k=kW),k},DW=e=>{if(ho(e))return gr;let t=e.state;return t.window&&(t.window=null),e.state=null,no},FW=(e,t)=>{if(ho(e))return gr;const n=e.state;return(n.wrap&2)===0?gr:(n.head=t,t.done=!1,no)},BW=(e,t)=>{const n=t.length;let r,i,u;return ho(e)||(r=e.state,r.wrap!==0&&r.mode!==lf)?gr:r.mode===lf&&(i=1,i=Wl(i,t,n,0),i!==r.check)?SC:(u=PC(e,t,n,n),u?(r.mode=xC,CC):(r.havedict=1,no))};var $W=EC,NW=OC,zW=kC,jW=MW,VW=AC,UW=RW,HW=DW,WW=FW,GW=BW,YW="pako inflate (from Nodeca project)",hi={inflateReset:$W,inflateReset2:NW,inflateResetKeep:zW,inflateInit:jW,inflateInit2:VW,inflate:UW,inflateEnd:HW,inflateGetHeader:WW,inflateSetDictionary:GW,inflateInfo:YW};function KW(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var XW=KW;const IC=Object.prototype.toString,{Z_NO_FLUSH:qW,Z_FINISH:ZW,Z_OK:Kl,Z_STREAM_END:Zd,Z_NEED_DICT:Jd,Z_STREAM_ERROR:JW,Z_DATA_ERROR:Rb,Z_MEM_ERROR:QW}=_s;function vu(e){this.options=zf.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15)===0&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new yC,this.strm.avail_out=0;let n=hi.inflateInit2(this.strm,t.windowBits);if(n!==Kl)throw new Error(eo[n]);if(this.header=new XW,hi.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=Yl.string2buf(t.dictionary):IC.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=hi.inflateSetDictionary(this.strm,t.dictionary),n!==Kl)))throw new Error(eo[n])}vu.prototype.push=function(e,t){const n=this.strm,r=this.options.chunkSize,i=this.options.dictionary;let u,p,o;if(this.ended)return!1;for(t===~~t?p=t:p=t===!0?ZW:qW,IC.call(e)==="[object ArrayBuffer]"?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){for(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),u=hi.inflate(n,p),u===Jd&&i&&(u=hi.inflateSetDictionary(n,i),u===Kl?u=hi.inflate(n,p):u===Rb&&(u=Jd));n.avail_in>0&&u===Zd&&n.state.wrap>0&&e[n.next_in]!==0;)hi.inflateReset(n),u=hi.inflate(n,p);switch(u){case JW:case Rb:case Jd:case QW:return this.onEnd(u),this.ended=!0,!1}if(o=n.avail_out,n.next_out&&(n.avail_out===0||u===Zd))if(this.options.to==="string"){let a=Yl.utf8border(n.output,n.next_out),l=n.next_out-a,h=Yl.buf2string(n.output,a);n.next_out=l,n.avail_out=r-l,l&&n.output.set(n.output.subarray(a,a+l),0),this.onData(h)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(!(u===Kl&&o===0)){if(u===Zd)return u=hi.inflateEnd(this.strm),this.onEnd(u),this.ended=!0,!0;if(n.avail_in===0)break}}return!0};vu.prototype.onData=function(e){this.chunks.push(e)};vu.prototype.onEnd=function(e){e===Kl&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=zf.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function dg(e,t){const n=new vu(t);if(n.push(e),n.err)throw n.msg||eo[n.err];return n.result}function eG(e,t){return t=t||{},t.raw=!0,dg(e,t)}var tG=vu,nG=dg,rG=eG,iG=dg,aG=_s,oG={Inflate:tG,inflate:nG,inflateRaw:rG,ungzip:iG,constants:aG};const{Deflate:XY,deflate:qY,deflateRaw:sG,gzip:ZY}=pW,{Inflate:JY,inflate:QY,inflateRaw:lG,ungzip:eK}=oG;var uG=sG,cG=lG;function Db(e){const t=new Map;for(const n of e){const[r,i]=n.split("="),u=decodeURIComponent(i);t.set(r,u)}return t}const fG=function(){if(!window.location.search.includes("?"))return;const t=window.location.search.replace("?","").split("&");let n=Db(t);if(console.log("URL params:",n),n.get("share")){const u=cG(new Uint8Array(atob(n.get("share")).split("").map(p=>p.charCodeAt(0))),{to:"string"});if(!u){Ht().raiseError("Error when trying to decode share parameter!",!1);return}n=Db(u.split("&")),console.log("Share URL params:",n)}const r={id:-1,image:"",prompt:n.get("prompt")||"",sampler_name:n.get("sampler_name")||"k_euler",seed:Number(n.get("seed"))||-1,steps:Number(n.get("steps")||20),cfg_scale:Number(n.get("cfg_scale")||5),height:Number(n.get("height")||512),width:Number(n.get("width")||512),clip_skip:Number(n.get("clip_skip")||0),frames:Number(n.get("frames")||1),fps:Number(n.get("fps")||16),scheduler:n.get("scheduler")||"default"};Jt().generateText2Img(r,!1)},dG=10,hG=!1;function wp(e,t,n,r,i=u=>Ht().raiseError(u,!1)){if(e.status===n&&t)return!0;if(!t.message)return i(`${r}: Got response code ${e.status}`);if(!t.errors)return i(`${r}: ${t.message}`);const u=Object.entries(t.errors).map(p=>`${p[0]} - ${p[1]}`).join(" | ");return i(`${r}: ${t.message} (${u})`)}function ka(e,t){const n=e.trim().replace(/\/+$/,""),r=t.startsWith("/")?t:`/${t}`;return n.length===0?r:`${n}${r}`}const pG=us("interrogate",()=>{const e=ae({}),t=ae(!1);async function n(p){Ht().raiseError(p,!1),t.value=!1,e.value={}}async function r(){const p=Ft(),{source_image:o}=e.value;if(!o)return n("Failed to get interrogation ID: No image supplied.");t.value=!0;const a=await fetch(ka(p.baseURL,"/sdapi/v1/interrogate"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({image:o.split(",")[1],model:"clip"})}),l=await a.json();!wp(a,l,200,"Failed to get interrogation",n)||(e.value.id=l.id,e.value.status=l.caption)}function i(){e.value={},t.value=!1}function u(){return e.value.status||!1}return{currentInterrogation:e,interrogating:t,interrogateImage:r,getFormStatus:u,resetInterrogation:i}}),mG={key:0,style:{"margin-top":"16px"}},gG={key:1,style:{"margin-top":"16px"}},vG={key:2},yG={style:{"margin-top":"8px"}},bG={key:0},_G={key:0},wG={key:1},SG=be({__name:"InterrogationView",setup(e){const t=pG(),n=Jt(),r=Ht(),i=ae();async function u(l){if(i.value.clearFiles(),!l.raw.type.includes("image")){r.raiseError("Uploaded file needs to be a image!",!1);return}const h=await zl(l.raw);t.currentInterrogation.source_image=h,t.interrogateImage()}function p(){n.generateText2Img({prompt:o.value})}const o=ee(()=>t.getFormStatus()),{ellipsis:a}=US();return(l,h)=>_(t).currentInterrogation.source_image?_(t).currentInterrogation.status?(N(),oe("div",vG,[ne("div",yG,[se(_(Je),{icon:_(yh),onClick:_(t).resetInterrogation},{default:ue(()=>[...h[1]||(h[1]=[ze("New Interrogation",-1)])]),_:1},8,["icon","onClick"]),o.value?(N(),ve(_(Je),{key:0,icon:_(yh),onClick:p,disabled:!o.value},{default:ue(()=>[...h[2]||(h[2]=[ze("Text2Img (Caption)",-1)])]),_:1},8,["icon","disabled"])):ge("",!0)]),h[4]||(h[4]=ne("h2",{style:{margin:"16px 0 8px 0"}},"Interrogation Results",-1)),se(_(jo),{src:_(t).currentInterrogation.source_image,alt:"Uploaded Image"},null,8,["src"]),o.value?(N(),oe("div",bG,[h[3]||(h[3]=ne("h3",null,"Caption",-1)),o.value?(N(),oe("div",wG,[ne("strong",null,Ee(o.value),1)])):(N(),oe("div",_G,"Processing"+Ee(_(a)),1))])):ge("",!0)])):(N(),oe("div",gG,[ne("strong",null,"Uploading image"+Ee(_(a)),1)])):(N(),oe("div",mG,[ne("div",null,[se(_(Dm),{onChange:u,"auto-upload":!1,limit:1,class:"interrogation-upload",ref_key:"upload",ref:i,multiple:"",drag:""},{default:ue(()=>[se(_(De),{size:100},{default:ue(()=>[se(_(Qp))]),_:1}),h[0]||(h[0]=ne("div",null,[ze("Drop file here OR "),ne("em",null,"click to upload")],-1))]),_:1},512)])]))}}),CG=on(SG,[["__scopeId","data-v-db184ac6"]]);function xG(e,t,n){if(e===0)return"0"+(t?"s":"seconds");if(e==null)return"?";const r=Math.floor(e/86400),i=Math.floor(e%86400/3600),u=Math.floor(e%86400%3600/60),p=Math.floor(e%86400%3600%60),o=r>0?r+(t?"d":"days"):"",a=i>0?i+(t?"h":"hours"):"",l=u>0?u+(t?"m":"minutes"):"",h=p>0?p+(t?"s":"seconds"):"",c=[];return n!=null&&n.days&&c.push(o),n!=null&&n.hours&&c.push(a),n!=null&&n.minutes&&c.push(l),n!=null&&n.seconds&&c.push(h),c.join(" ")}function Sp(e){const t=[];let n=0;for(let r=0;r<e.length;r++){if(e[r]!=="{")continue;r>n&&t.push({type:"literal",text:e.slice(n,r),start:n,end:r});const i=e.indexOf("}",r+1);if(i===-1){t.push({type:"literal",text:e.slice(r),start:r,end:e.length}),n=e.length;break}t.push({type:"expansion",options:e.slice(r+1,i).split("|"),start:r,end:i+1}),n=i+1,r=i}return n<e.length&&t.push({type:"literal",text:e.slice(n),start:n,end:e.length}),t}function TG(e){return e.reduce((t,n)=>{const r=n.type==="literal"?[n.text]:n.options;return t.flatMap(i=>r.map(u=>[...i,u]))},[[]]).map(t=>t.join(""))}function Fb(e){const t=[],n=/<lora:([^:>]+):([^>]+)>/g;return[e.replace(n,(i,u,p)=>{if(p.trim()==="")return"";const o=Number(p);if(isNaN(o))return"";let a=u,l=!1;const h="|high_noise|";return a.startsWith(h)&&(a=a.substring(h.length),l=!0),t.push({name:a,multiplier:o,...l?{is_high_noise:!0}:{}}),""}),t]}function Bb(e,t){const n=e.indexOf(" ### "),r=n===-1?e:e.slice(0,n),i=n===-1?"":e.slice(n),u=/<lora:([^:>]+):([^>]+)>/g,p="|high_noise|",o=[];for(const l of t)if(l.type==="literal"){if(l.start>=r.length)break;for(const h of l.text.matchAll(u)){const c=h.index;if(c===void 0)continue;const f=l.start+c;if(f>=r.length||h[2].trim()==="")continue;const s=Number(h[2]);if(isNaN(s))continue;const d=h[1];d.startsWith(p)||d.trim()!==""&&o.push({name:d,multiplier:s,start:f,end:Math.min(f+h[0].length,r.length)})}}if(o.length===0)return[e,[]];let a=r;for(let l=o.length-1;l>=0;l--)a=a.slice(0,o[l].start)+a.slice(o[l].end);return[a.replace(/ +/g," ").trim()+i,o.map(l=>({name:l.name,multiplier:l.multiplier}))]}function kG(e,t){const n=e.map(i=>({...i}));let r=n.length;for(;r>0&&n[r-1].lora===""&&n[r-1].multiplier===0;)r--;return t.forEach((i,u)=>{const p=r+u;p<n.length?n[p]={lora:i.lora,multiplier:i.multiplier}:n.push({lora:i.lora,multiplier:i.multiplier})}),n}function MC(e){if(e.trim()==="")return{};let t;try{t=JSON.parse(e)}catch{throw new Error("Extra request fields must be valid JSON.")}if(t===null||Array.isArray(t)||typeof t!="object")throw new Error("Extra request fields must be a JSON object.");return t}const EG={class:"form"},OG={key:0,style:{"padding-bottom":"50px"}},AG={class:"sidebar"},PG={class:"reference-images-header"},IG={class:"reference-images-actions"},MG={key:0,class:"reference-image-list"},LG={class:"reference-image-index"},RG=["title"],DG={class:"reference-image-controls"},FG={key:1,class:"reference-image-empty"},BG={key:12,class:"video-frame-selectors"},$G={class:"video-frame-selector"},NG={key:1,class:"reference-image-thumb video-frame-thumb-empty"},zG=["title"],jG={class:"video-frame-actions"},VG={class:"video-frame-selector"},UG={key:1,class:"reference-image-thumb video-frame-thumb-empty"},HG=["title"],WG={class:"video-frame-actions"},GG={class:"lora-list-summary"},YG={key:0,class:"lora-list-hint"},KG={class:"lora-list-add"},XG={class:"main"},qG={class:"image center-horizontal"},ZG={key:0},JG=be({__name:"GenerateView",setup(e){const n=pm(hm).smallerOrEqual("md"),r=Jt(),i=Ht(),u=al(),p=h0(async()=>{const J=r.cacheVersion,V=(await r.getAvailableSamplers()).map(M=>M.name);return V.length===0?[]:C(V)},[]),o=h0(async()=>{const J=r.cacheVersion,V=(await r.getAvailableSchedulers()).map(M=>M.name);return V.length===0?[]:T(V)},[]),a=ae(""),l=ae([]),h=ae(!1),c=ae(!1);function f(){h.value||c.value||(c.value=!0,r.fetchLoras().then(J=>{J!==null&&(l.value=J,h.value=!0)}).finally(()=>{c.value=!1}))}function s(){l.value=[],h.value=!1}const d=ee(()=>r.loraList.filter(J=>{const E=Number(J.multiplier);return J.lora&&J.lora.trim()!==""&&!isNaN(E)&&E!==0}).length);xe(()=>a.value!==""||d.value>0,J=>{J&&f()},{immediate:!0}),xe(()=>r.cacheVersion,()=>{s(),(a.value!==""||d.value>0)&&f()});const g=ee(()=>{const J=d.value,E=l.value.length;return J===0?h.value?`${E} available`:"":h.value?`${J} enabled, ${E} available`:`${J} enabled`}),m=J=>!!J.lora&&J.lora.trim()!=="",v=ee(()=>r.loraList.filter(m).length);function y(){const J=r.loraList.filter(m);if(J.length===0)return;const E=J.map(V=>{const M=l.value.find(D=>D.path===V.lora||D.name===V.lora),R=Number(V.multiplier),G=isNaN(R)?0:Math.round(R*1e4)/1e4;return`<lora:${M?M.name:V.lora}:${G}>`});r.loraList=r.loraList.filter(V=>!m(V)),r.prompt=r.prompt===""?E.join(" "):`${r.prompt} ${E.join(" ")}`}const b=ee(()=>Bb(r.prompt,Sp(r.prompt))[1].length);function w(){const[J,E]=Bb(r.prompt,Sp(r.prompt));if(E.length===0)return;const V=E.map(M=>{const R=l.value.find(G=>G.path===M.name||G.name===M.name);return{lora:R?R.path:M.name,multiplier:M.multiplier}});r.loraList=kG(r.loraList,V),r.prompt=J}const S=kt({prompt:[{required:!0,message:"Please input prompt",trigger:"change"}],extraRequestFields:[{validator:(J,E,V)=>{try{MC(E),V()}catch(M){V(M instanceof Error?M:new Error(String(M)))}},trigger:"change"}]});function C(J){return!r.params||!r.params.sampler_name||J.indexOf(r.params.sampler_name)===-1&&(r.params.sampler_name=J[0]),J}function T(J){return!r.params||!r.params.scheduler||J.indexOf(r.params.scheduler)===-1&&(r.params.scheduler=J[0]),J}function k(J){return"Elapsed: "+xG(J,!0,{days:!0,hours:!0,minutes:!0,seconds:!0})}function A(){r.validGeneratorTypes.includes(r.generatorType)||(i.showGeneratorBadge=!1)}function P(J){r.generatorType=J,A(),console.log(J)}function z(){u.showCropPreview=!0,u.updateCropPreview()}function I(){var J;(J=document.getElementById("extra_image_input"))==null||J.click()}function $(){var J;(J=document.getElementById("video_start_frame_input"))==null||J.click()}function O(){var J;(J=document.getElementById("video_end_frame_input"))==null||J.click()}function Y(J){var E;return(E=J.dataUrl)==null?void 0:E.startsWith("data:image")}function re(){return r.referenceImages.filter(Y).map(J=>J.dataUrl)}function q(J){return r.referenceImages.slice(0,J).filter(Y).length}return A(),fG(),(J,E)=>(N(),oe($e,null,[se(_(F2),{"default-active":_(r).generatorType,collapse:!0,onSelect:P,mode:_(n)?"horizontal":"vertical",class:ce(_(n)?"mobile-generator-types":"generator-types"),style:je(_(n)?"overflow-x: auto":"")},{default:ue(()=>[se(Wu,{index:"Text2Img","icon-one":_(rO),"icon-two":_(ku),isMobile:_(n)},null,8,["icon-one","icon-two","isMobile"]),se(Wu,{index:"Img2Img","icon-one":_(ku),"icon-two":_(ku),isMobile:_(n)},null,8,["icon-one","icon-two","isMobile"]),se(Wu,{index:"Inpainting","icon-one":VS,"icon-two":_(ku),isMobile:_(n)},null,8,["icon-two","isMobile"]),se(Wu,{index:"Interrogation","icon-one":S7,isMobile:_(n)},null,8,["isMobile"])]),_:1},8,["default-active","mode","class","style"]),ne("div",EG,[_(r).generatorType==="Interrogation"?(N(),oe("div",OG,[E[40]||(E[40]=ne("h1",{style:{margin:"0"}},"Interrogation",-1)),E[41]||(E[41]=ne("div",null,"Interrogate images to get their predicted descriptions.",-1)),se(CG)])):(N(),ve(_(Am),{key:1,"label-position":"left","label-width":"140px",model:_(r),class:"container",rules:S,onSubmit:E[39]||(E[39]=Qe(()=>{},["prevent"]))},{default:ue(()=>{var V,M,R,G;return[ne("div",AG,[se(U7),se(_c,{label:"Negative Prompt",prop:"negativePrompt",modelValue:_(r).negativePrompt,"onUpdate:modelValue":E[0]||(E[0]=D=>_(r).negativePrompt=D),autosize:{maxRows:15},resize:"vertical",type:"textarea",placeholder:"Enter negative prompt here",info:"What to exclude from the image. Not working? Try increasing the guidance.","label-position":"top"},null,8,["modelValue"]),se(_c,{label:"Seed",prop:"seed",modelValue:_(r).params.seed,"onUpdate:modelValue":E[2]||(E[2]=D=>_(r).params.seed=D),placeholder:"Enter seed here",clearable:"","clear-icon":_(eO)},{append:ue(()=>[se(_(fn),{content:"Randomize!",placement:"top"},{default:ue(()=>[se(_(Je),{icon:_(xO),onClick:E[1]||(E[1]=()=>_(r).params.seed=_(LC)())},null,8,["icon"])]),_:1})]),_:1},8,["modelValue","clear-icon"]),(N(),ve(_(by),{key:0,gutter:10},{default:ue(()=>[_(r).multiSelect.sampler.state==="Multiple"?(N(),ve(_(wo),{key:0,span:_(n)?24:12},{default:ue(()=>[se(Lo,{label:"Sampler(s)",prop:"samplers",modelValue:_(r).multiSelect.sampler.selected,"onUpdate:modelValue":E[3]||(E[3]=D=>_(r).multiSelect.sampler.selected=D),options:_(p),info:"Multi-select enabled. Heun and DPM2 double generation time per step, but converge twice as fast.",multiple:""},null,8,["modelValue","options"])]),_:1},8,["span"])):ge("",!0),_(r).multiSelect.sampler.state==="Enabled"?(N(),ve(_(wo),{key:1,span:_(n)?24:12},{default:ue(()=>[se(Lo,{label:"Sampler",prop:"sampler",modelValue:_(r).params.sampler_name,"onUpdate:modelValue":E[4]||(E[4]=D=>_(r).params.sampler_name=D),options:_(p),info:"Heun and DPM2 double generation time per step, but converge twice as fast."},null,8,["modelValue","options"])]),_:1},8,["span"])):ge("",!0),_(r).multiSelect.scheduler.state==="Multiple"?(N(),ve(_(wo),{key:2,span:_(n)?24:12},{default:ue(()=>[se(Lo,{label:"Scheduler(s)",prop:"schedulers",modelValue:_(r).multiSelect.scheduler.selected,"onUpdate:modelValue":E[5]||(E[5]=D=>_(r).multiSelect.scheduler.selected=D),options:_(o),info:"Multi-select enabled. Experimental! KoboldCpp only, allows you to use a different scheduler. Leave as default otherwise.",multiple:""},null,8,["modelValue","options"])]),_:1},8,["span"])):ge("",!0),_(r).multiSelect.scheduler.state==="Enabled"?(N(),ve(_(wo),{key:3,span:_(n)?24:12},{default:ue(()=>[se(Lo,{label:"Scheduler",prop:"scheduler",modelValue:_(r).params.scheduler,"onUpdate:modelValue":E[6]||(E[6]=D=>_(r).params.scheduler=D),options:_(o),info:"Experimental! KoboldCpp only, allows you to use a different scheduler. Leave as default otherwise."},null,8,["modelValue","options"])]),_:1},8,["span"])):ge("",!0)]),_:1})),se(yn,{label:"Batch Size",prop:"batchSize",modelValue:_(r).params.n,"onUpdate:modelValue":E[7]||(E[7]=D=>_(r).params.n=D),min:_(r).minImages,max:_(r).maxImages},null,8,["modelValue","min","max"]),_(r).multiSelect.steps.state==="Multiple"?(N(),ve(yn,{key:1,label:"Steps(s)",prop:"multiSteps",modelValue:_(r).multiSelect.steps.selected,"onUpdate:modelValue":E[8]||(E[8]=D=>_(r).multiSelect.steps.selected=D),min:_(r).minSteps,max:_(r).maxSteps,info:"Multi-select enabled. Keep step count between 30 to 50 for optimal generation times. Coherence typically peaks between 60 and 90 steps, with a trade-off in speed.",multiple:""},null,8,["modelValue","min","max"])):_(r).multiSelect.steps.state==="Enabled"?(N(),ve(yn,{key:2,label:"Steps",prop:"steps",modelValue:_(r).params.steps,"onUpdate:modelValue":E[9]||(E[9]=D=>_(r).params.steps=D),min:_(r).minSteps,max:_(r).maxSteps,info:"Keep step count between 30 to 50 for optimal generation times. Coherence typically peaks between 60 and 90 steps, with a trade-off in speed."},null,8,["modelValue","min","max"])):ge("",!0),se(yn,{label:"Width",prop:"width",modelValue:_(r).params.width,"onUpdate:modelValue":E[10]||(E[10]=D=>_(r).params.width=D),min:_(r).minDimensions,max:_(r).maxDimensions,step:64,change:z},null,8,["modelValue","min","max"]),se(yn,{label:"Height",prop:"height",modelValue:_(r).params.height,"onUpdate:modelValue":E[11]||(E[11]=D=>_(r).params.height=D),min:_(r).minDimensions,max:_(r).maxDimensions,step:64,change:z},null,8,["modelValue","min","max"]),_(r).multiSelect.guidance.state==="Multiple"?(N(),ve(yn,{key:3,label:"Guidance(s)",prop:"cfgScales",modelValue:_(r).multiSelect.guidance.selected,"onUpdate:modelValue":E[12]||(E[12]=D=>_(r).multiSelect.guidance.selected=D),min:_(r).minCfgScale,max:_(r).maxCfgScale,info:"Multi-select enabled. Higher values will make the AI respect your prompt more. Lower values allow the AI to be more creative.",multiple:""},null,8,["modelValue","min","max"])):_(r).multiSelect.guidance.state==="Enabled"?(N(),ve(yn,{key:4,label:"Guidance (CFG)",prop:"cfgScale",modelValue:_(r).params.cfg_scale,"onUpdate:modelValue":E[13]||(E[13]=D=>_(r).params.cfg_scale=D),min:_(r).minCfgScale,max:_(r).maxCfgScale,step:.5,info:"Classifier Free Guidance (CFG Scale). Higher values will make the AI respect your prompt more. Lower values allow the AI to be more creative."},null,8,["modelValue","min","max"])):ge("",!0),_(r).multiSelect.eta.state==="Enabled"?(N(),ve(yn,{key:5,label:"Eta",prop:"eta",modelValue:_(r).params.eta,"onUpdate:modelValue":E[14]||(E[14]=D=>_(r).params.eta=D),min:_(r).minEta,max:_(r).maxEta,step:.1,info:"Noise multiplier for ancestral samplers. 0 disables noise injection."},null,8,["modelValue","min","max"])):ge("",!0),_(r).multiSelect.flowShift.state==="Enabled"?(N(),ve(yn,{key:6,label:"Flow Shift",prop:"flowShift",modelValue:_(r).params.flow_shift,"onUpdate:modelValue":E[15]||(E[15]=D=>_(r).params.flow_shift=D),min:_(r).minFlowShift,max:_(r).maxFlowShift,step:.5,info:"Override shift value for flow models."},null,8,["modelValue","min","max"])):ge("",!0),_(r).multiSelect.clipSkip.state==="Multiple"?(N(),ve(yn,{key:7,label:"CLIP Skip(s)",prop:"clipSkips",modelValue:_(r).multiSelect.clipSkip.selected,"onUpdate:modelValue":E[16]||(E[16]=D=>_(r).multiSelect.clipSkip.selected=D),min:_(r).minClipSkip,max:_(r).maxClipSkip,info:"Multi-select enabled. Last layers of CLIP to ignore. For most situations this can be left alone.",multiple:""},null,8,["modelValue","min","max"])):_(r).multiSelect.clipSkip.state==="Enabled"?(N(),ve(yn,{key:8,label:"CLIP Skip",prop:"clipSkip",modelValue:_(r).params.clip_skip,"onUpdate:modelValue":E[17]||(E[17]=D=>_(r).params.clip_skip=D),min:_(r).minClipSkip,max:_(r).maxClipSkip,info:"Last layers of CLIP to ignore. For most situations this can be left alone."},null,8,["modelValue","min","max"])):ge("",!0),_(r).sourceGeneratorTypes.includes(_(r).generatorType)?(N(),ve(yn,{key:9,label:"Init Strength",prop:"denoise",modelValue:_(r).params.denoising_strength,"onUpdate:modelValue":E[18]||(E[18]=D=>_(r).params.denoising_strength=D),min:_(r).minDenoise,max:_(r).maxDenoise,step:.01,info:"The final image will diverge from the starting image at higher values. 0=unchanged, 1=fullychanged"},null,8,["modelValue","min","max"])):ge("",!0),se(yn,{label:"Video Frames",prop:"frames",modelValue:_(r).params.frames,"onUpdate:modelValue":E[19]||(E[19]=D=>_(r).params.frames=D),min:_(r).minFrames,max:_(r).maxFrames,info:"Number of consecutive video frames to generate (Video models only). More frames increases memory usage."},null,8,["modelValue","min","max"]),_(r).params.frames>1?(N(),ve(yn,{key:10,label:"FPS",prop:"fps",modelValue:_(r).params.fps,"onUpdate:modelValue":E[20]||(E[20]=D=>_(r).params.fps=D),min:_(r).minFps,max:_(r).maxFps,disabled:_(r).params.frames<=1,info:"Frames per second for video generation."},null,8,["modelValue","min","max","disabled"])):ge("",!0),_(r).generatorType==="Text2Img"?(N(),oe("div",{key:11,class:"reference-images",onDragover:E[23]||(E[23]=Qe(()=>{},["prevent"])),onDrop:E[24]||(E[24]=Qe(D=>_(r).setExtraImage(D),["prevent"]))},[ne("div",PG,[E[44]||(E[44]=ne("span",{class:"reference-images-label"},"Reference Media",-1)),ne("div",IG,[ne("input",{class:"reference-images-input",type:"file",id:"extra_image_input",onChange:E[21]||(E[21]=D=>_(r).setExtraImage(D)),accept:"image/*,audio/*",multiple:""},null,32),se(_(Je),{onClick:I},{default:ue(()=>[...E[42]||(E[42]=[ze(" Select or Drag Files ",-1)])]),_:1}),se(_(Je),{onClick:E[22]||(E[22]=D=>_(r).clearExtraImage()),disabled:_(r).referenceImages.length===0},{default:ue(()=>[...E[43]||(E[43]=[ze(" Clear Files ",-1)])]),_:1},8,["disabled"])])]),_(r).referenceImages.length>0?(N(),oe("div",MG,[(N(!0),oe($e,null,zt(_(r).referenceImages,(D,B)=>(N(),oe("div",{class:ce(["reference-image-item",{"reference-file-item":!Y(D)}]),key:D.id},[ne("span",LG,Ee(B+1),1),Y(D)?(N(),ve(_(jo),{key:0,class:"reference-image-thumb",src:D.dataUrl,fit:"cover","preview-src-list":re(),"initial-index":q(B),"preview-teleported":""},null,8,["src","preview-src-list","initial-index"])):ge("",!0),ne("span",{class:"reference-image-name",title:D.name},Ee(D.name),9,RG),ne("div",DG,[se(_(fn),{content:"Move up",placement:"top"},{default:ue(()=>[se(_(Je),{class:"small-btn",icon:_(vh),disabled:B===0,onClick:Z=>_(r).moveExtraImage(B,-1)},null,8,["icon","disabled","onClick"])]),_:2},1024),se(_(fn),{content:"Move down",placement:"top"},{default:ue(()=>[se(_(Je),{class:"small-btn",icon:_(Ko),disabled:B===_(r).referenceImages.length-1,onClick:Z=>_(r).moveExtraImage(B,1)},null,8,["icon","disabled","onClick"])]),_:2},1024),se(_(fn),{content:"Remove",placement:"top"},{default:ue(()=>[se(_(Je),{class:"small-btn",type:"danger",icon:_(Ki),plain:"",onClick:Z=>_(r).removeExtraImage(B)},null,8,["icon","onClick"])]),_:2},1024)])],2))),128))])):(N(),oe("div",FG," No reference images selected. "))],32)):ge("",!0),_(r).generatorType==="Text2Img"&&_(r).params.frames>1?(N(),oe("div",BG,[ne("div",$G,[ne("input",{class:"reference-images-input",type:"file",id:"video_start_frame_input",onChange:E[25]||(E[25]=D=>_(r).setVideoStartFrame(D)),accept:"image/*"},null,32),E[46]||(E[46]=ne("span",{class:"video-frame-label"},"Video Start Frame",-1)),_(r).videoStartFrame?(N(),ve(_(jo),{key:0,class:"reference-image-thumb",src:_(r).videoStartFrame.dataUrl,fit:"cover","preview-teleported":""},null,8,["src"])):(N(),oe("div",NG)),ne("span",{class:"video-frame-name",title:((V=_(r).videoStartFrame)==null?void 0:V.name)||"No image selected"},Ee(((M=_(r).videoStartFrame)==null?void 0:M.name)||"No image selected"),9,zG),ne("div",jG,[se(_(Je),{onClick:$},{default:ue(()=>[...E[45]||(E[45]=[ze(" Select Image ",-1)])]),_:1}),se(_(fn),{content:"Remove",placement:"top"},{default:ue(()=>[se(_(Je),{class:"small-btn",type:"danger",icon:_(Ki),plain:"",disabled:!_(r).videoStartFrame,onClick:E[26]||(E[26]=D=>_(r).clearVideoStartFrame())},null,8,["icon","disabled"])]),_:1})])]),ne("div",VG,[ne("input",{class:"reference-images-input",type:"file",id:"video_end_frame_input",onChange:E[27]||(E[27]=D=>_(r).setVideoEndFrame(D)),accept:"image/*"},null,32),E[48]||(E[48]=ne("span",{class:"video-frame-label"},"Video End Frame",-1)),_(r).videoEndFrame?(N(),ve(_(jo),{key:0,class:"reference-image-thumb",src:_(r).videoEndFrame.dataUrl,fit:"cover","preview-teleported":""},null,8,["src"])):(N(),oe("div",UG)),ne("span",{class:"video-frame-name",title:((R=_(r).videoEndFrame)==null?void 0:R.name)||"No image selected"},Ee(((G=_(r).videoEndFrame)==null?void 0:G.name)||"No image selected"),9,HG),ne("div",WG,[se(_(Je),{onClick:O},{default:ue(()=>[...E[47]||(E[47]=[ze(" Select Image ",-1)])]),_:1}),se(_(fn),{content:"Remove",placement:"top"},{default:ue(()=>[se(_(Je),{class:"small-btn",type:"danger",icon:_(Ki),plain:"",disabled:!_(r).videoEndFrame,onClick:E[28]||(E[28]=D=>_(r).clearVideoEndFrame())},null,8,["icon","disabled"])]),_:1})])])])):ge("",!0),se(_(by),null,{default:ue(()=>[se(_(wo),{span:_(n)?24:12},{default:ue(()=>[se(Gy,{label:"ESRGAN Upscale",prop:"enable_hr",modelValue:_(r).params.enable_hr,"onUpdate:modelValue":E[29]||(E[29]=D=>_(r).params.enable_hr=D),info:"Enable upscale with ESRGAN."},null,8,["modelValue"])]),_:1},8,["span"]),se(_(wo),{span:_(n)?24:12},{default:ue(()=>[_(r).generatorType==="Img2Img"?(N(),ve(Gy,{key:0,label:"Send as RefImg",prop:"send_as_refimg",modelValue:_(r).params.send_as_refimg,"onUpdate:modelValue":E[30]||(E[30]=D=>_(r).params.send_as_refimg=D),info:"Instead of regular Img2Img, send the image as a reference image for edit models."},null,8,["modelValue"])):ge("",!0)]),_:1},8,["span"])]),_:1}),se(_c,{label:"Extra Fields",prop:"extraRequestFields",modelValue:_(r).extraRequestFields,"onUpdate:modelValue":E[31]||(E[31]=D=>_(r).extraRequestFields=D),autosize:{minRows:2,maxRows:8},resize:"vertical",type:"textarea",placeholder:'{"some_field": 1234}',info:"Optional JSON object merged into the final generation request. These values override fields configured above."},null,8,["modelValue"]),se(_(fD),{modelValue:a.value,"onUpdate:modelValue":E[33]||(E[33]=D=>a.value=D),class:"lora-list-collapse"},{default:ue(()=>[se(_(dD),{name:"lora-list"},{title:ue(()=>[E[49]||(E[49]=ne("span",{class:"lora-list-title"},"LoRAs",-1)),ne("span",GG,Ee(g.value),1)]),default:ue(()=>[h.value&&l.value.length===0?(N(),oe("div",YG," No LoRAs were returned by the server. ")):ge("",!0),(N(!0),oe($e,null,zt(_(r).loraList,(D,B)=>(N(),oe("div",{key:B,class:"lora-list-row"},[se(_(Lm),{modelValue:D.lora,"onUpdate:modelValue":Z=>D.lora=Z,class:"lora-list-select",filterable:"",placeholder:"Select a LoRA"},{default:ue(()=>[se(_(Yc),{value:""}),(N(!0),oe($e,null,zt(l.value,Z=>(N(),ve(_(Yc),{key:Z.path,label:Z.name,value:Z.path},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onUpdate:modelValue"]),se(_(Gc),{modelValue:D.multiplier,"onUpdate:modelValue":Z=>D.multiplier=Z,step:.05,precision:2,"controls-position":"right"},null,8,["modelValue","onUpdate:modelValue"]),se(_(fn),{content:"Remove",placement:"top"},{default:ue(()=>[se(_(Je),{icon:_(Ki),plain:"",onClick:Z=>_(r).removeLoraRow(B)},null,8,["icon","onClick"])]),_:2},1024)]))),128)),ne("div",KG,[se(_(Je),{icon:_(Sf),onClick:E[32]||(E[32]=D=>_(r).addLoraRow()),disabled:l.value.length===0},{default:ue(()=>[...E[50]||(E[50]=[ze(" Add LoRA ",-1)])]),_:1},8,["icon","disabled"]),se(_(Je),{icon:_(vh),onClick:y,disabled:v.value===0},{default:ue(()=>[...E[51]||(E[51]=[ze(" To Prompt ",-1)])]),_:1},8,["icon","disabled"]),se(_(Je),{icon:_(Ko),onClick:w,disabled:b.value===0},{default:ue(()=>[...E[52]||(E[52]=[ze(" From Prompt ",-1)])]),_:1},8,["icon","disabled"])])]),_:1})]),_:1},8,["modelValue"])]),ne("div",XG,[se(_(Je),{onClick:E[34]||(E[34]=()=>{_(r).cancelled=!0,_(r).generating=!1,_(r).resetStore()}),class:"reset-btn"},{default:ue(()=>[...E[53]||(E[53]=[ze("Reset",-1)])]),_:1}),se(_(Je),{type:"primary",class:"generate-cancel-btn",style:je(_(r).generating?"width: 55%;":""),onClick:E[35]||(E[35]=()=>_(r).generateImage(_(r).generatorType))},{default:ue(()=>[ne("span",null," Generate "+Ee(_(r).totalImageCount)+" image"+Ee(_(r).totalImageCount===1?"":"s"),1)]),_:1},8,["style"]),_(r).generating?(N(),ve(_(Je),{key:0,type:"danger",class:"generate-cancel-btn",style:{width:"25%"},disabled:_(r).cancelled,onClick:E[36]||(E[36]=()=>{var D;(D=_(r).abortController)==null||D.abort(),_(r).cancelled=!0,_(r).generating=!1,_(r).clearQueue(),_(r).clearLastImageGenkey(),_(r).stopProgressPolling()})},{default:ue(()=>[...E[54]||(E[54]=[ze("Cancel all",-1)])]),_:1},8,["disabled"])):ge("",!0)]),ne("div",qG,[se(_(hR),{class:"center-both generated-image"},{default:ue(()=>{var D,B,Z,H,Q;return[!_(r).generating&&_(r).outputs.length==0?(N(),oe("div",ZG,[/Inpainting/.test(_(r).generatorType)?(N(),ve(Ky,{key:0})):ge("",!0),/Img2Img/.test(_(r).generatorType)?(N(),ve(Ky,{key:1})):ge("",!0)])):ge("",!0),!_(i).showGeneratedImages&&_(r).generating?(N(),ve(D7,{key:1,generated:_(r).outputs.length,total:_(r).queue.length,elapsed:k(_(r).timer.seconds),"progress-percentage":(D=_(r).progressInfo)==null?void 0:D.percentage,"text-info":(B=_(r).progressInfo)==null?void 0:B.textInfo,"current-step":(Z=_(r).progressInfo)==null?void 0:Z.currentStep,"total-steps":(H=_(r).progressInfo)==null?void 0:H.totalSteps,"preview-image":(Q=_(r).progressInfo)==null?void 0:Q.previewImage,generating:_(r).generating,onShowGenerated:E[37]||(E[37]=te=>_(i).showGeneratedImages=!0)},null,8,["generated","total","elapsed","progress-percentage","text-info","current-step","total-steps","preview-image","generating"])):ge("",!0),_(i).showGeneratedImages&&_(r).outputs.length!==0?(N(),ve(Z7,{key:2})):ge("",!0)]}),_:1}),_(r).lastImageRecoveryAvailable?(N(),ve(_(f$),{key:0,class:"last-image-recovery",type:"primary",onClick:E[38]||(E[38]=D=>_(r).recoverLastGeneratedImage())},{default:ue(()=>[...E[55]||(E[55]=[ze(" Recover last generated image ",-1)])]),_:1})):ge("",!0)])]}),_:1},8,["model","rules"]))])],64))}}),ul=zE({history:gE("/"),routes:[{path:"/",name:"generate",component:JG},{path:"/images",name:"images",component:()=>Fd(()=>Promise.resolve().then(()=>LY),void 0)},{path:"/about",name:"about",component:()=>Fd(()=>Promise.resolve().then(()=>jY),void 0)},{path:"/options",name:"options",component:()=>Fd(()=>Promise.resolve().then(()=>HY),void 0)},{path:"/return",name:"return",redirect:e=>(window.location.href=window.location.pathname.endsWith("/")?"..":".","/")}]});function Zu(){return{steps:20,n:1,sampler_name:"Euler",width:512,height:512,cfg_scale:5,eta:1,flow_shift:0,clip_skip:0,seed:-1,denoising_strength:.6,frames:1,fps:16,enable_hr:!1,send_as_refimg:!0,scheduler:"default"}}function LC(){return Math.floor(Math.random()*9999999)+1}function QG(){return Math.floor(Math.random()*9e5+1e5).toString()}const Jt=us("generator",()=>{const e=["Text2Img","Img2Img","Inpainting"],t=["Img2Img","Inpainting"],n=ae("Text2Img"),r=ae(""),i=sn("promptHistory",[]),u=ae(""),p=sn("negativeLibrary",[]),o=ae(""),a=ae(Zu()),l=ae({interval:0,seconds:0}),h=ae(null),c=ae(0),f=ae({sampler:{name:"Sampler",state:"Enabled",allowedStates:["Disabled","Enabled","Multiple"],selected:[a.value.sampler_name],mapToParam:Se=>Se.sampler_name},scheduler:{name:"Scheduler",state:"Enabled",allowedStates:["Disabled","Enabled","Multiple"],selected:[a.value.scheduler],mapToParam:Se=>Se.scheduler},steps:{name:"Steps",state:"Enabled",allowedStates:["Disabled","Enabled","Multiple"],selected:[a.value.steps],mapToParam:Se=>Se.steps},guidance:{name:"CFG Scale",state:"Enabled",allowedStates:["Disabled","Enabled","Multiple"],selected:[a.value.cfg_scale],mapToParam:Se=>Se.cfg_scale},clipSkip:{name:"Clip Skip",state:"Disabled",allowedStates:["Disabled","Enabled","Multiple"],selected:[a.value.clip_skip],mapToParam:Se=>Se.clip_skip},eta:{name:"Eta",state:"Disabled",allowedStates:["Disabled","Enabled"],selected:[a.value.eta],mapToParam:Se=>Se.eta},flowShift:{name:"Flow Shift",state:"Disabled",allowedStates:["Disabled","Enabled"],selected:[a.value.flow_shift],mapToParam:Se=>Se.flow_shift}}),s=()=>({sourceProcessing:void 0,sourceImage:void 0,maskImage:void 0}),d=ae({...s(),sourceProcessing:"inpainting"}),g=ae({...s(),sourceProcessing:"img2img"}),m=Se=>Se==="Inpainting"?d.value:Se==="Img2Img"?g.value:s(),v=ee(()=>m(n.value)),y=ae(""),b=ae(!1),w=ae(!1),S=ae([]),C=ae(null),T=ae([]),k=sn("lastImageGenkey",""),A=sn("lastImageRecoveryAttemptedGenkey",""),P=ae(!1);A.value===k.value&&(k.value=""),A.value="";const z=ee(()=>k.value?ka(Ft().baseURL,`/sdapi/v1/get_last.json?genkey=${encodeURIComponent(k.value)}`):""),I=ee(()=>z.value!==""&&!b.value&&!P.value);function $(){k.value="",A.value=""}async function O(){var Se,Ne,Ue,et,nt,Ot;if(!(!z.value||P.value)){A.value=k.value,P.value=!0;try{const Ye=await fetch(z.value);if(!Ye.ok)throw new Error(`server returned ${Ye.status}`);const st=await Ye.json();if(!Array.isArray(st.images)||!st.images[0])throw new Error("server returned an invalid recovery payload");const Rn=(Ne=(Se=st.parameters)!=null?Se:st.params)!=null?Ne:{};S.value=[],Ht().showGeneratedImages=!1,await ie([{...st,prompt:(et=(Ue=st.prompt)!=null?Ue:Rn.prompt)!=null?et:"",params:Rn,models:(Ot=st.models)!=null?Ot:[(nt=st.modelName)!=null?nt:"(Unknown model)"]}],!0)}catch(Ye){const st=Ye instanceof Error?Ye.message:String(Ye);Ht().raiseError(`Failed to recover the last generated image: ${st}`,!1)}finally{P.value=!1}}}const Y=ae(64),re=ee(()=>Ft().allowLargerParams==="Enabled"?3072:1024),q=ae(1),J=ae(20),E=ae(1),V=ee(()=>Ft().allowLargerParams==="Enabled"?150:50),M=ae(1),R=ae(24),G=ae(0),D=ae(1),B=ae(0),Z=ae(20),H=ae(0),Q=ae(1),te=ae(0),fe=ae(10),me=ae(1),_e=ee(()=>Ft().allowLargerParams==="Enabled"?400:200),j=ae(16),x=ee(()=>Ft().allowLargerParams==="Enabled"?32:24),U=(Se,Ne,Ue)=>Array.from({length:(Ne-Se+1)/Ue},(et,nt)=>(nt+Se)*Ue),K=ae(U(te.value,fe.value,1)),L=ae(U(M.value,R.value,.5)),F=ee(()=>{const Se=(Rn,nn,ei=1)=>Rn*(nn.state==="Multiple"&&nn.selected.length>0?nn.selected.length:ei),Ue=a.value.n*Ce().length,et=Se(Ue,f.value.sampler),nt=Se(et,f.value.scheduler),Ot=Se(nt,f.value.steps),Ye=Se(Ot,f.value.guidance);return Se(Ye,f.value.clipSkip)});function X(){return a.value=Zu(),o.value="",d.value=s(),g.value=s(),po.value=null,mo.value=null,S.value=[],Rr.value=[],Ht().showGeneratedImages=!1,de(),$(),!0}function de(){T.value=[]}function le(){S.value=[]}async function W(){const Se=await Wt("/sdapi/v1/loras");return Array.isArray(Se)?Se:null}async function pe(Se){var _g,wg;if(!e.includes(Se))return[];if(r.value==="")return he("Failed to generate: No prompt submitted.");let Ne;try{Ne=MC(o.value)}catch(Ve){const pt=Ve instanceof Error?Ve.message:String(Ve);return he(`Failed to generate: ${pt}`)}const Ue=al(),et=Ht();Ue.saveImages();const{sourceImage:nt,maskImage:Ot,sourceProcessing:Ye}=m(Se);va(r.value);const st=[],nn=Ce().map(Ve=>{const pt=Ve.split(" ### ");return{prompt:pt[0],negative_prompt:pt[1]||""}}).map(Ve=>{const[pt,Zt]=Fb(Ve.prompt);return{...Ve,prompt:pt,extractedLoras:Zt}}),ei=nn.some(Ve=>Ve.extractedLoras.length>0)||Rr.value.some(Ve=>Ve.lora&&Ve.lora.trim()!=="")?(_g=await W())!=null?_g:[]:[],ti=Rr.value.filter(Ve=>Ve.lora&&Ve.lora.trim()!=="").flatMap(Ve=>{const pt=ei.find(Dn=>Dn.name===Ve.lora||Dn.path===Ve.lora),Zt=Number(Ve.multiplier);return[{name:pt?pt.name:Ve.lora,multiplier:isNaN(Zt)?0:Zt,allowUnresolved:!1}]}),br=Ve=>{const pt=new Map;for(const Zt of Ve){if(!Zt.name||Zt.name.trim()==="")continue;const Dn=`${Zt.name}\0${Zt.is_high_noise?1:0}`,or=pt.get(Dn);or?(or.multiplier=Math.round((or.multiplier+Zt.multiplier)*1e4)/1e4,or.allowUnresolved=or.allowUnresolved||Zt.allowUnresolved):pt.set(Dn,{...Zt})}return[...pt.values()]},yu=nn.map(({extractedLoras:Ve,...pt})=>{const Zt=br([...Ve.map(Gt=>({name:Gt.name,multiplier:Gt.multiplier,...Gt.is_high_noise?{is_high_noise:!0}:{},allowUnresolved:!0})),...ti]),Dn=Zt.flatMap(Gt=>{if(Gt.multiplier===0)return[];const _u=ei.find(Cg=>Cg.name===Gt.name||Cg.path===Gt.name),Sg=_u?_u.path:Gt.allowUnresolved?Gt.name:"";return Sg?[{path:Sg,multiplier:Gt.multiplier,...Gt.is_high_noise?{is_high_noise:!0}:{}}]:[]}),or=Zt.map(Gt=>`<lora:${Gt.is_high_noise?"|high_noise|":""}${Gt.name}:${String(Math.round(Gt.multiplier*1e4)/1e4)}>`),ya=[or.length>0?pt.prompt.replace(/ +/g," ").trim():pt.prompt,or.join(" ")].filter(Gt=>Gt!=="").join(" "),vo=pt.negative_prompt!==""?`${ya} ### ${pt.negative_prompt}`:ya;return{...pt,full_prompt:vo,...Dn.length>0?{lora:Dn}:{}}}),{seed:bu,cfg_scale:ar,eta:mg,steps:ni,clip_skip:qC,flow_shift:gg,sampler_name:ZC,scheduler:JC,n:QC,...vg}=a.value,Wf=parseInt(bu.toString()),ex=isNaN(Wf)||Wf<0?LC():Wf,tx=Array.from({length:QC},(Ve,pt)=>ex+pt),go=(Ve,pt)=>Ve.state==="Disabled"?[]:Ve.state==="Enabled"?[pt]:Ve.state==="Multiple"&&Ve.selected.length===0?[]:Ve.selected,nx={promptVariant:yu,seed:tx,cfg_scale:go(f.value.guidance,ar),eta:go(f.value.eta,mg),steps:go(f.value.steps,ni),clip_skip:go(f.value.clipSkip,qC),sampler_name:go(f.value.sampler,ZC),scheduler:go(f.value.scheduler,JC)},rx=(Ve=>Object.entries(Ve).filter(([Zt,Dn])=>Dn.length>0).reduce((Zt,[Dn,or])=>{const $t=[];for(const ya of Zt)for(const vo of or)$t.push({...ya,[Dn]:vo});return $t},[{}]))(nx),ix=[await mt()];for(const Ve of rx){const{promptVariant:{full_prompt:pt,...Zt},...Dn}=Ve,or=Se==="Img2Img"?vg.send_as_refimg:!1,$t={prompt:pt,params:{...vg,send_as_refimg:or,...Dn,...Zt,init_images:nt?[nt.split(",")[1]]:[],mask:Ot,inpainting_mask_invert:Ot?0:null,inpainting_fill:Ot?1:null},source_image:nt==null?void 0:nt.split(",")[1],source_mask:Ot,source_processing:Ye,models:ix};$t.params.sampler_name=="default"&&delete $t.params.sampler_name,$t.params.scheduler=="default"&&delete $t.params.scheduler,!$t.params.frames||$t.params.frames<=1?(delete $t.params.frames,delete $t.params.fps):$t.params.fps=Math.min(x.value,Math.max(j.value,Math.round(Number($t.params.fps)||Zu().fps)));const ya=Se==="Text2Img",vo=ya?Dr.value.map(_u=>_u.base64):[];vo.length>0&&($t.params.extra_images=vo),ya&&$t.params.frames&&$t.params.frames>1&&(po.value&&($t.params.video_start_frame=po.value.base64),mo.value&&($t.params.video_end_frame=mo.value.base64)),Ft().alsoRequestAvi==="Enabled"&&$t.params.frames&&$t.params.frames>1&&($t.params.video_output_type=2);const Gt={};f.value.flowShift.state==="Enabled"&&gg>0&&(Gt.params={flow_shift:gg}),Ft().keepImageGenOnDisconnect==="Enabled"&&(Gt.keep_image_gen_on_disconnect=!0),Object.keys(Gt).length>0&&($t.params.kcpp_extra_args=Gt),Object.assign($t.params,Ne),st.push($t)}let yg=!1;b.value||(yg=!0,S.value=[]),b.value=!0,et.showGeneratedImages=!1;let bg=T.value.filter(Ve=>!Ve.gathered&&!Ve.failed).length;for(let Ve=0;Ve<st.length;Ve++)bg<dG&&(T.value.push({...st[Ve],jobId:"",index:Ve,gathered:!1,failed:!1}),++bg);if(!!yg){for(C.value=new AbortController,w.value=!1,l.value.interval&&(clearInterval(l.value.interval),l.value.interval=0,l.value.seconds=0),l.value.interval=setInterval(()=>{l.value.seconds++},1e3),XC();!T.value.every(Ve=>Ve.gathered||Ve.failed)&&!w.value;){const Ve=T.value.find(pt=>!pt.gathered&&!pt.failed);if(!Ve)break;Ve.gathered=!0;try{const pt=await Ie(Ve.params,(wg=C.value)==null?void 0:wg.signal);if(!pt){Ve.failed=!0;continue}ie([{...pt,...Ve}])}catch(pt){Ve.failed=!0,console.error("Error fetching image:",pt)}}T.value.some(Ve=>Ve.failed)&&T.value.every(Ve=>Ve.gathered||Ve.failed)&&(b.value=!1,clearInterval(l.value.interval),l.value.interval=0,l.value.seconds=0,Hf(),T.value=[])}}async function ie(Se,Ne=!1){const Ue=Qa();console.log(Se);const et=await Promise.all(Se.map(async Ye=>{var yu,bu;const st=Ye.images[0],nn=!!Ye.animated?"gif":"png",ei=Ye.extra_data?`data:video/avi;base64,${Ye.extra_data}`:"",ti=Ye.final_frame?`data:image/jpeg;base64,${Ye.final_frame}`:"",br={id:-1,image:`data:image/${nn};base64,${st}`,prompt:Ye.prompt,modelName:Ye.models[0],frames:Ye.params.frames,fps:Ye.params.fps,extra_avi:ei,final_frame:ti,enable_hr:Ye.params.enable_hr,send_as_refimg:Ye.params.send_as_refimg,flow_shift:(bu=(yu=Ye.params.kcpp_extra_args)==null?void 0:yu.params)==null?void 0:bu.flow_shift,lora_meta:""};if(Ye.info&&typeof Ye.info=="string"&&Ye.info.trim()!=="")try{const ar=JSON.parse(Ye.info);["seed","steps","sampler_name","cfg_scale","eta","width","height","clip_skip","fps"].forEach(ni=>{ar[ni]!=null&&ar[ni]!=null?br[ni]=ar[ni]:Ye.params[ni]!=null&&(br[ni]=Ye.params[ni])}),ar.extra_generation_params&&ar.extra_generation_params["Schedule type"]?br.scheduler=ar.extra_generation_params["Schedule type"]:br.scheduler=Ye.params.scheduler,ar.lora_meta&&(br.lora_meta=ar.lora_meta)}catch(ar){console.warn("Failed to parse info JSON:",ar)}return br})),nt=await Ue.pushOutputs(et),Ot=0;return S.value=[...nt.map(Ye=>({type:"image",index:Ot,output:Ye})),...S.value].sort((Ye,st)=>Ye.index-st.index),(Ne||S.value.length===T.value.length)&&(T.value=[],b.value=!1,Ht().showGeneratedImages=!0,$(),clearInterval(l.value.interval),l.value.interval=0,l.value.seconds=0,Hf()),et}async function he(Se){const Ne=Ht();return Se&&Ne.raiseError(Se,!1),[]}function we(Se,Ne,Ue,et){return Ne<=Ue?Ne:(Ht().raiseWarning(`This image was generated using the 'Larger Values' option. Setting '${Se}' to its default value instead of ${Ne}.`,!0),et)}async function Te(Se,Ne=!0){var et;const Ue=Zu();if(n.value="Text2Img",f.value.guidance.state="Enabled",f.value.sampler.state="Enabled",f.value.steps.state="Enabled",f.value.clipSkip.state="Disabled",f.value.scheduler.state="Enabled",ul.push("/"),Ne&&(Se.width=Se.width||Ue.width,Se.height=Se.height||Ue.height),Se.prompt){const nt=Se.prompt.split(" ### ");r.value=nt[0],u.value=nt[1]||"";const[,Ot]=Fb(r.value);if(Ot.length>0){const Ye=(et=await W())!=null?et:[];Rr.value=Rr.value.filter(st=>!st.lora||st.lora.trim()===""?!0:!Ot.some(Rn=>Rn.name===st.lora||Ye.some(nn=>nn.name===Rn.name&&nn.path===st.lora)))}}if(Se.sampler_name){a.value.sampler_name=Se.sampler_name;const Ot=(await rr()).find(Ye=>Ye.aliases&&Ye.aliases.includes(Se.sampler_name));Ot&&(a.value.sampler_name=Ot.name)}Se.steps&&(a.value.steps=we("steps",Se.steps,V.value,Ue.steps)),Se.cfg_scale&&(a.value.cfg_scale=Se.cfg_scale),(Se.eta||Se.eta===0)&&(a.value.eta=Se.eta),(Se.flow_shift||Se.flow_shift===0)&&(a.value.flow_shift=Se.flow_shift,f.value.flowShift.state=Se.flow_shift>0?"Enabled":"Disabled"),Se.width&&(a.value.width=we("width",Se.width,re.value,Ue.width)),Se.height&&(a.value.height=we("height",Se.height,re.value,Ue.height)),Se.seed&&(a.value.seed=Se.seed),Se.clip_skip&&(a.value.clip_skip=we("clip_skip",Se.clip_skip,fe.value,Ue.clip_skip)),Se.scheduler&&(a.value.scheduler=Se.scheduler),Se.frames&&(a.value.frames=we("frames",Se.frames,_e.value,Ue.frames)),Se.fps&&(a.value.fps=Math.min(x.value,Math.max(j.value,Math.round(we("fps",Se.fps,x.value,Ue.fps)))))}function Ae(Se){const Ne=al();n.value="Img2Img",g.value.sourceImage=Se,Ne.drawing=!1,S.value=[],ul.push("/"),ur.fabric.Image.fromURL(Se,Ne.newImage)}function Le(Se){const Ne=al();S.value=[],d.value.sourceImage=Se,n.value="Inpainting",ul.push("/"),ur.fabric.Image.fromURL(Se,Ne.newImage)}function ye(){return u.value===""?r.value:`${r.value} ### ${u.value}`}function Ce(){const Se=ye();return TG(Sp(Se))}async function Ie(Se,Ne){const Ue=Ft();try{const et=QG();k.value=et,A.value="";const nt={...Se,genkey:et},Ot=await fetch(ka(Ue.baseURL,`/sdapi/v1/${Se.init_images.length>0?"img":"txt"}2img`),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(nt),signal:Ne}),Ye=await Ot.json();return wp(Ot,Ye,200,"Failed to fetch",Me)?Ye:!1}catch{return!1}}function Me(Se){return Ht().raiseError(Se,!1),w.value=!1,S.value=[],!1}async function mt(){const Se=Ft(),Ne=await fetch(ka(Se.baseURL,"/sdapi/v1/sd-models")),Ue=await Ne.json();if(!!wp(Ne,Ue,200,"Failed to get available models"))return Ue.length===0?"(No model loaded)":Ue[0].model_name}const qt=ae(0),tt=new Map;function Lt(){tt.clear(),qt.value++}xe(()=>Ft().baseURL,()=>{Lt()});async function Wt(Se){const Ne=Ft(),Ue=ka(Ne.baseURL,Se);if(tt.has(Ue))return tt.get(Ue);const et=(async()=>{try{const nt=await fetch(Ue);if(nt.ok)return await nt.json();console.error(`API Error: ${nt.status} ${nt.statusText} at ${Ue}`)}catch(nt){console.error(`Fetch error for ${Ue}:`,nt)}return tt.delete(Ue),null})();return tt.set(Ue,et),et}async function rr(){const Se=await Wt("/sdapi/v1/samplers");return Array.isArray(Se)?Se:[]}async function Tn(){const Se=await Wt("/sdapi/v1/schedulers");return Array.isArray(Se)?Se:[]}function ir(Se){p.value.indexOf(Se)===-1&&(p.value=[...p.value,Se])}function ga(Se){p.value=p.value.filter(Ne=>Ne!=Se)}function va(Se){if(i.value.findIndex(Ne=>Ne.prompt===Se)===-1){if(i.value.length>=10+i.value.filter(Ne=>Ne.starred).length){const Ne=i.value.filter(et=>!et.starred),Ue=i.value.findIndex(et=>et===Ne[Ne.length-1]);i.value.splice(Ue,1)}i.value=[...i.value,{starred:!1,timestamp:Date.now(),prompt:Se}]}}function DC(Se){i.value=i.value.filter(Ne=>Ne.prompt!=Se&&Ne!=Se)}function FC(){return!1}const Rr=ae([]);function BC(){Rr.value=[...Rr.value,{lora:"",multiplier:0}]}function $C(Se){Rr.value=Rr.value.filter((Ne,Ue)=>Ue!==Se)}const Dr=ae([]),po=ae(null),mo=ae(null);async function pg(Se){var Ot,Ye;const Ue=(Ye=Se.target.files)!=null?Ye:(Ot=Se.dataTransfer)==null?void 0:Ot.files,et=Array.from(Ue!=null?Ue:[])[0];if(!et)return null;const nt=await zl(et);return{id:`${Date.now()}-${et.name}`,name:et.name,size:et.size,dataUrl:nt,base64:nt.includes("data:image")?nt.split(",")[1]:nt}}async function NC(Se){po.value=await pg(Se);const Ne=Se.target;Ne.value!==void 0&&(Ne.value="")}async function zC(Se){mo.value=await pg(Se);const Ne=Se.target;Ne.value!==void 0&&(Ne.value="")}function jC(){po.value=null;const Se=document.getElementById("video_start_frame_input");Se&&(Se.value="")}function VC(){mo.value=null;const Se=document.getElementById("video_end_frame_input");Se&&(Se.value="")}async function UC(Se){var Ot,Ye;const Ne=Se.target,Ue=(Ye=Ne.files)!=null?Ye:(Ot=Se.dataTransfer)==null?void 0:Ot.files,et=Array.from(Ue!=null?Ue:[]);if(et.length===0)return;const nt=await Promise.all(et.map(async(st,Rn)=>{const nn=await zl(st);return{id:`${Date.now()}-${Rn}-${st.name}`,name:st.name,size:st.size,dataUrl:nn,base64:nn.includes("data:image")?nn.split(",")[1]:nn}}));Dr.value||(Dr.value=[]);for(let st=0;st<nt.length;++st)Dr.value.push(nt[st]);Ne.value!==void 0&&(Ne.value="")}function HC(Se){Dr.value.splice(Se,1)}function WC(Se,Ne){const Ue=Se+Ne;if(Ue<0||Ue>=Dr.value.length)return;const et=[...Dr.value],[nt]=et.splice(Se,1);et.splice(Ue,0,nt),Dr.value=et}function GC(){Dr.value=[];const Se=document.getElementById("extra_image_input");Se&&(Se.value="")}const Vf=ae(""),Uf=ae(-1);async function YC(){var Ne,Ue,et,nt,Ot,Ye,st,Rn,nn;const Se=Ft();try{const ei=await fetch(ka(Se.baseURL,`/sdapi/v1/progress?skip_current_image=true&genkey=${encodeURIComponent(k.value)}`));if(!ei.ok)return;const ti=await ei.json();h.value={percentage:Math.round(((Ne=ti.progress)!=null?Ne:0)*100),textInfo:ti.textinfo||null,currentStep:(et=(Ue=ti.state)==null?void 0:Ue.sampling_step)!=null?et:0,totalSteps:(Ot=(nt=ti.state)==null?void 0:nt.sampling_steps)!=null?Ot:0,previewImage:(st=(Ye=h.value)==null?void 0:Ye.previewImage)!=null?st:null},Vf.value!=k.value&&(Vf.value=k.value,Uf.value=-1);const br=(nn=(Rn=ti.state)==null?void 0:Rn.sampling_step)!=null?nn:0;Uf.value!=br&&(Uf.value=br,Se.fetchGenerationProgress==="Image"&&KC())}catch{}}async function KC(){const Se=Ft();try{const Ne=await fetch(ka(Se.baseURL,`/sdapi/v1/progress?genkey=${encodeURIComponent(k.value)}`));if(!Ne.ok)return;const Ue=await Ne.json();Ue.current_image&&h.value&&(h.value.previewImage=Ue.current_image)}catch{}}function XC(){Vf.value="",!c.value&&Ft().fetchGenerationProgress!=="Off"&&(h.value={percentage:0,textInfo:null,currentStep:0,totalSteps:0,previewImage:null},c.value=setInterval(YC,2e3))}function Hf(){c.value&&(clearInterval(c.value),c.value=0),h.value=null}return{generatorType:n,prompt:r,params:a,outputs:S,inpainting:d,img2img:g,uploadDimensions:y,cancelled:w,abortController:C,multiSelect:f,referenceImages:Dr,videoStartFrame:po,videoEndFrame:mo,loraList:Rr,addLoraRow:BC,removeLoraRow:$C,negativePrompt:u,extraRequestFields:o,generating:b,negativePromptLibrary:p,minDimensions:Y,maxDimensions:re,minImages:q,maxImages:J,minSteps:E,maxSteps:V,minCfgScale:M,maxCfgScale:R,minDenoise:H,maxDenoise:Q,minClipSkip:te,maxClipSkip:fe,minFrames:me,maxFrames:_e,minFps:j,maxFps:x,minEta:G,maxEta:D,minFlowShift:B,maxFlowShift:Z,clipSkipList:K,cfgList:L,queue:T,promptHistory:i,timer:l,progressInfo:h,progressInterval:c,lastImageGenkey:k,recoveringLastImage:P,lastImageRecoveryUrl:z,lastImageRecoveryAvailable:I,clearLastImageGenkey:$,recoverLastGeneratedImage:O,validGeneratorTypes:e,sourceGeneratorTypes:t,currentImageProps:v,totalImageCount:F,generateImage:pe,generateText2Img:Te,generateImg2Img:Ae,generateInpainting:Le,getPrompt:FC,resetStore:X,clearQueue:de,clearOutputs:le,stopProgressPolling:Hf,pushToNegativeLibrary:ir,removeFromNegativeLibrary:ga,pushToPromptHistory:va,removeFromPromptHistory:DC,setExtraImage:UC,removeExtraImage:HC,moveExtraImage:WC,clearExtraImage:GC,setVideoStartFrame:NC,setVideoEndFrame:zC,clearVideoStartFrame:jC,clearVideoEndFrame:VC,getAvailableSamplers:rr,getAvailableSchedulers:Tn,fetchLoras:W,cacheVersion:qt,invalidateApiCaches:Lt,getCachedEndpoint:Wt}}),eY=be({__name:"ImageActions",props:{imageData:{},onDelete:{type:Function},showDismiss:{type:Boolean}},setup(e){const t=Jt(),n=Qa(),r=e,i=()=>{G2.confirm("This action will permanently delete this image. Continue?","Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then(async()=>{var a;await n.deleteOutput(r.imageData.id),(a=r.onDelete)==null||a.call(r,r.imageData.id),la({type:"success",message:"Deleted Image"})})},u=a=>{if(a.extra_avi){const l=a.extra_avi.split(",")[1];if(!l)return;const h=`${a.seed}-${a.prompt}.avi`;qS(l,h);return}else ag(a.image,`${a.seed}-${a.prompt}`)},p=()=>{Jt().clearOutputs(),Ht().showGeneratedImages=!1,Jt().clearQueue()};async function o(a){const l=window.location.origin,h={prompt:a.prompt,width:a.width?a.width:void 0,height:a.height?a.height:void 0,steps:a.steps,cfg_scale:a.cfg_scale,sampler_name:a.sampler_name,model_name:a.modelName,seed:a.seed,clip_skip:a.clip_skip,frames:a.frames,fps:a.fps,scheduler:a.scheduler,extra_avi:a.extra_avi,final_frame:a.final_frame,enable_hr:a.enable_hr,send_as_refimg:a.send_as_refimg,lora_meta:a.lora_meta},c=window.location.pathname.replace("images","");let f=`${l}${c}?share=`,s="",d="";for(const[m,v]of Object.entries(h)){if(!v)continue;let y=v;typeof v=="string"?y=encodeURIComponent(v):Array.isArray(v)&&(y=JSON.stringify(v)),s+=`${d}${m}=${y}`,d="&"}const g=btoa(String.fromCharCode.apply(null,Array.from(uG(s))));f+=g,await navigator.clipboard.writeText(f),la({type:"success",message:"Copied shareable link to clipboard"})}return(a,l)=>(N(),oe($e,null,[se(_(Je),{class:"compact-button",onClick:i,type:"danger",size:"small",icon:_(Ki),plain:""},{default:ue(()=>[...l[8]||(l[8]=[ze("Delete",-1)])]),_:1},8,["icon"]),se(_(Je),{class:"compact-button",onClick:l[0]||(l[0]=h=>u(a.imageData)),type:"success",size:"small",icon:_(bl),plain:""},{default:ue(()=>[...l[9]||(l[9]=[ze("Download",-1)])]),_:1},8,["icon"]),a.imageData.starred?ge("",!0):(N(),ve(_(Je),{key:0,class:"compact-button",onClick:l[1]||(l[1]=h=>_(n).toggleStarred(a.imageData.id)),type:"warning",size:"small",icon:_(GO),plain:""},{default:ue(()=>[...l[10]||(l[10]=[ze("Star",-1)])]),_:1},8,["icon"])),a.imageData.starred?(N(),ve(_(Je),{key:1,class:"compact-button",onClick:l[2]||(l[2]=h=>_(n).toggleStarred(a.imageData.id)),type:"warning",size:"small",icon:_($1),plain:""},{default:ue(()=>[...l[11]||(l[11]=[ze("Unstar",-1)])]),_:1},8,["icon"])):ge("",!0),se(_(Je),{class:"compact-button",onClick:l[3]||(l[3]=h=>_(t).generateText2Img(a.imageData)),type:"success",size:"small",plain:""},{default:ue(()=>[...l[12]||(l[12]=[ze("Txt2img",-1)])]),_:1}),se(_(Je),{class:"compact-button",onClick:l[4]||(l[4]=h=>_(t).generateImg2Img(a.imageData.image)),type:"success",size:"small",plain:""},{default:ue(()=>[...l[13]||(l[13]=[ze("Img2img",-1)])]),_:1}),se(_(Je),{class:"compact-button",onClick:l[5]||(l[5]=h=>_(t).generateInpainting(a.imageData.image)),type:"success",size:"small",plain:""},{default:ue(()=>[...l[14]||(l[14]=[ze("Inpaint",-1)])]),_:1}),a.showDismiss?(N(),ve(_(Je),{key:2,class:"compact-button",onClick:l[6]||(l[6]=h=>p()),type:"success",size:"small",plain:""},{default:ue(()=>[...l[15]||(l[15]=[ze("Dismiss",-1)])]),_:1})):ge("",!0),se(_(Je),{class:"compact-button",onClick:l[7]||(l[7]=h=>o(a.imageData)),type:"success",icon:_(wO),size:"small",plain:""},{default:ue(()=>[...l[16]||(l[16]=[ze("Share",-1)])]),_:1},8,["icon"])],64))}}),RC=on(eY,[["__scopeId","data-v-7a45e2c8"]]),tY={class:"main-output",style:{position:"relative",display:"flex","align-items":"center","justify-content":"center"}},nY=["src"],rY={style:{"font-size":"16px","font-weight":"500"}},iY={style:{"font-family":"'Segoe UI', Tahoma, Geneva, Verdana, sans-serif","letter-spacing":"0.025em"}},aY={key:0},oY={key:1},sY={key:0},lY={key:1},uY={key:2},cY=be({__name:"ImageDialog",setup(e){const t=Qa(),n=Ht(),r=Jt(),i=ae();u6(i,{onSwipeEnd(f,s){s==="RIGHT"&&n.openModalToLeft(),s==="LEFT"&&n.openModalToRight()}});const u=ee({get(){return n.activeModal!==-1},set(){n.activeModal=-1}}),p=ae(t.currentOutputs[0]);xe(()=>n.activeModal,async f=>{if(f===-1){p.value=void 0;return}const s=t.currentOutputs.find(g=>g.id===f);if(s)return p.value=s;p.value=void 0;const d=await Yt.outputs.get(f);if(n.activeModal===f){if(!d){p.value=void 0,n.activeModal=-1;return}p.value=d}});function o(){u.value=!1}function a(f){const s=r.outputs.findIndex(d=>d.output.id===f);s!==-1&&r.outputs.splice(s,1),o()}function l(){var d;if(!((d=p.value)!=null&&d.final_frame))return;const f=p.value.final_frame;Jt().generateImg2Img(f)}function h(){var f;!((f=p.value)!=null&&f.image)||ag(p.value.image,`${p.value.seed}-${p.value.prompt}`)}function c(){var d,g;if(!((d=p.value)!=null&&d.extra_avi))return;const f=p.value.extra_avi.split(",")[1];if(!f)return;const s=`output-${(g=p.value.id)!=null?g:"video"}.avi`;qS(f,s)}return(f,s)=>{var d;return N(),ve(_(eF),{"model-value":u.value,width:(d=p.value)==null?void 0:d.width,class:"image-viewer",onClosed:o,"align-center":""},{footer:ue(()=>[p.value?(N(),ve(RC,{key:0,"image-data":p.value,"on-delete":a},null,8,["image-data"])):ge("",!0)]),default:ue(()=>{var g,m,v,y,b,w,S,C,T,k,A,P,z,I,$,O,Y,re,q,J,E,V;return[ne("div",{class:"main-output-container",ref_key:"target",ref:i},[ne("div",tY,[(g=p.value)!=null&&g.image?(N(),oe("img",{key:0,src:(m=p.value)==null?void 0:m.image,alt:"Output image",style:{"max-width":"100%","max-height":"100%","object-fit":"contain"}},null,8,nY)):ge("",!0)])],512),ne("div",rY,Ee(((y=(v=p.value)==null?void 0:v.prompt)==null?void 0:y.split("###")[0])||"Unknown Creation"),1),ne("div",iY,[ne("div",null,"Negative Prompt: "+Ee(((w=(b=p.value)==null?void 0:b.prompt)==null?void 0:w.split("###")[1])||"None"),1),ne("span",null,"Model: "+Ee(((S=p.value)==null?void 0:S.modelName)||"Unknown")+" - ",1),ne("span",null,"Sampler: "+Ee(((C=p.value)==null?void 0:C.sampler_name)||"Unknown")+" - ",1),ne("span",null,"Scheduler: "+Ee(((T=p.value)==null?void 0:T.scheduler)||"Unknown")+" - ",1),ne("span",null,"Seed: "+Ee(((k=p.value)==null?void 0:k.seed)||"Unknown")+" - ",1),ne("span",null,"Steps: "+Ee(((A=p.value)==null?void 0:A.steps)||"Unknown")+" - ",1),ne("span",null,"CFG Scale: "+Ee(((P=p.value)==null?void 0:P.cfg_scale)||"Unknown")+" - ",1),ne("span",null,"Clip Skip: "+Ee((I=(z=p.value)==null?void 0:z.clip_skip)!=null?I:"Unknown")+" - ",1),ne("span",null,"Dimensions: "+Ee((($=p.value)==null?void 0:$.width)||"???")+"x"+Ee(((O=p.value)==null?void 0:O.height)||"???")+" - ",1),ne("span",null,"Frames: "+Ee(((Y=p.value)==null?void 0:Y.frames)||"1"),1),((re=p.value)==null?void 0:re.frames)&&p.value.frames>1?(N(),oe("span",aY," - FPS: "+Ee(p.value.fps||"Unknown"),1)):ge("",!0),(q=p.value)!=null&&q.lora_meta?(N(),oe("span",oY," - LoRA: "+Ee(p.value.lora_meta),1)):ge("",!0),s[2]||(s[2]=ne("br",null,null,-1)),ne("b",null,[((J=p.value)==null?void 0:J.frames)&&p.value.frames>1?(N(),oe("span",sY,[ne("a",{href:"#",onClick:Qe(h,["prevent"]),style:{cursor:"pointer",color:"var(--el-color-primary)"}},"[Download GIF]")])):ge("",!0),(E=p.value)!=null&&E.extra_avi?(N(),oe("span",lY,[s[0]||(s[0]=ze(" - ",-1)),ne("a",{href:"#",onClick:Qe(c,["prevent"]),style:{cursor:"pointer",color:"var(--el-color-primary)"}},"[Download AVI]")])):ge("",!0),(V=p.value)!=null&&V.final_frame?(N(),oe("span",uY,[s[1]||(s[1]=ze(" - ",-1)),ne("a",{href:"#",onClick:Qe(l,["prevent"]),style:{cursor:"pointer",color:"var(--el-color-primary)"}},"[Extend Video]")])):ge("",!0)])])]}),_:1},8,["model-value","width"])}}}),fY={class:"generator-icons"},dY=be({__name:"App",setup(e){const n=pm(hm).smallerOrEqual("md"),r=Ht();Ft();const i=VE(),u=ae();return xe(()=>i.path,p=>{u.value&&u.value.open(p)}),(p,o)=>(N(),oe($e,null,[ne("div",{class:ce({"menu-container":!_(n)})},[se(_(F2),{"default-active":_(i).path,mode:"horizontal",router:!0,ellipsis:!_(n),class:ce(_(n)?"mobile-menu":"menu"),ref_key:"menuRef",ref:u},{default:ue(()=>[_(n)?ge("",!0):(N(),ve(_(Im),{key:0,class:"remove-item-styling center-vertical"},{title:ue(()=>[...o[0]||(o[0]=[ne("div",{style:{"font-size":"20px"}},"Stable UI",-1)])]),_:1})),se(Is,{isMobile:_(n),index:"/"},{icon:ue(()=>[ne("div",fY,[se(_(De),null,{default:ue(()=>[se(_(MO))]),_:1}),_(r).showGeneratorBadge?(N(),ve(_(De),{key:0,class:"generator-badge",size:10},{default:ue(()=>[se(h7)]),_:1})):ge("",!0)])]),title:ue(()=>[...o[1]||(o[1]=[ze("Generate",-1)])]),_:1},8,["isMobile"]),se(Is,{isMobile:_(n),index:"/images"},{icon:ue(()=>[se(_(De),null,{default:ue(()=>[se(_(kO))]),_:1})]),title:ue(()=>[...o[2]||(o[2]=[ze("Images",-1)])]),_:1},8,["isMobile"]),se(Is,{isMobile:_(n),index:"/about"},{icon:ue(()=>[se(_(De),null,{default:ue(()=>[se(_(R1))]),_:1})]),title:ue(()=>[...o[3]||(o[3]=[ze("About",-1)])]),_:1},8,["isMobile"]),se(Is,{isMobile:_(n),index:"/options"},{icon:ue(()=>[se(_(De),null,{default:ue(()=>[se(_(XO))]),_:1})]),title:ue(()=>[...o[4]||(o[4]=[ze("Options",-1)])]),_:1},8,["isMobile"]),se(Is,{isMobile:_(n),index:"/return"},{icon:ue(()=>[se(_(De),null,{default:ue(()=>[se(_(P1))]),_:1})]),title:ue(()=>[...o[5]||(o[5]=[ze("Return to Lite",-1)])]),_:1},8,["isMobile"])]),_:1},8,["default-active","ellipsis","class"])],2),ne("div",{class:ce({view:!_(n)})},[se(_(A1))],2),se(cY)],64))}}),hY=on(dY,[["__scopeId","data-v-8f4d2380"]]),hg=Pk(hY);hg.use(Rk());hg.use(ul);hg.mount("#app");ul.replace("/");window.addEventListener("beforeunload",e=>{Jt().generating&&(e.preventDefault(),e.returnValue="")});const pY={key:1,class:"image-action"},mY=be({__name:"CustomImage",props:{imageData:{}},setup(e){const t=e,n=Ht(),r=ae(null);z5(r,n.toggleMultiSelect,{modifiers:{prevent:!0}});const i=ae(!1);l6(r,([{isIntersecting:p}])=>{p&&(i.value=p)},{rootMargin:"500px"});const u=ee(()=>n.selected.includes(t.imageData.id));return(p,o)=>(N(),oe("div",{class:"relative",ref_key:"containerRef",ref:r},[i.value?(N(),ve(_(jo),{key:0,class:"thumbnail",src:p.imageData.image,onClick:o[0]||(o[0]=a=>_(n).activeModal=p.imageData.id),fit:"cover",loading:"lazy",style:je(`${u.value&&"opacity: 0.5"}`)},null,8,["src","style"])):ge("",!0),i.value?(N(),oe("div",pY,[p.imageData.starred?(N(),ve(_(De),{key:0,class:"starred-icon",size:35,color:"var(--el-color-warning)"},{default:ue(()=>[se(_($1))]),_:1})):ge("",!0),_(n).multiSelect?(N(),oe("div",{key:1,class:"select-container",onClick:o[1]||(o[1]=a=>_(n).toggleSelection(p.imageData.id))},[se(_(De),{class:"select-icon",size:35,color:`rgba(255, 255, 255, ${u.value?"1":"0.5"})`},{default:ue(()=>[u.value?ge("",!0):(N(),ve(_(eu),{key:0})),u.value?(N(),ve(_(M1),{key:1})):ge("",!0)]),_:1},8,["color"])])):ge("",!0)])):ge("",!0)],512))}}),$b=on(mY,[["__scopeId","data-v-b9569bbd"]]);function gY({mobileWidth:e=768,hideAfterDistanceFromTop:t=100,hideAfterScroll:n=100}={}){const{width:r}=Cw(),i=ee(()=>r.value<=e),u=ae(!0),{y:p}=s6(window);let o=p.value,a=0;return xe(p,l=>{if(!i.value)return;const h=l-o;if(o=l,h>0&&l>t){a+=h,a>=n&&(u.value=!1,a=0);return}h<0&&(a=0,u.value=!0)}),{isVisible:u,isMobile:i}}const vY={},yY={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 1024 1024"};function bY(e,t){return N(),oe("svg",yY,[...t[0]||(t[0]=[ne("path",{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-696 72h136v656H184V184zm656 656H384V384h456v456zM384 320V184h456v136H384z",fill:"currentColor"},null,-1)])])}const _Y=on(vY,[["render",bY]]),wY={class:"options"},SY=["onClick"],CY=["onClick"],xY=["onClick"],TY={key:1,class:"center-both",style:{gap:"12px"}},kY={key:2},EY={key:0},OY={key:0,style:{display:"flex",gap:"8px"}},AY={key:1,class:"images"},PY={key:1},IY=be({__name:"ImagesView",setup(e){const{width:t}=Cw(),{isVisible:n,isMobile:r}=gY(),i=Qa(),u=Ft(),p=Ht();function o(){p.selected=p.selected.filter(d=>!i.currentOutputs.map(g=>g.id).includes(d)),p.selected=[...p.selected,...i.currentOutputs.map(d=>d.id)],p.multiSelect=!0}async function a(){const d=await Yt.outputs.toCollection().primaryKeys();p.selected=d,p.multiSelect=!0}function l(){p.selected=p.selected.filter(d=>!i.currentOutputs.map(g=>g.id).includes(d)),p.selected.length===0&&(p.multiSelect=!1)}function h(){p.selected=[],p.multiSelect=!1}const c=()=>{G2.confirm(`This action will permanently delete ${p.selected.length} images. Continue?`,"Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then(()=>{i.deleteMultipleOutputs(p.selected)})};m0(["a","A","ArrowLeft"],p.openModalToLeft),m0(["d","D","ArrowRight"],p.openModalToRight);async function f(){XS(p.selected)}const s=ee(()=>{let d=2;t.value>1440?d=6:t.value>1280?d=5:t.value>768?d=4:t.value>480&&(d=3);const g=[];for(let m=0;m<d;m++){const v=[];for(let y=m;y<i.currentOutputs.length;y+=d)v.push(i.currentOutputs[y]);g.push(v)}return g});return(d,g)=>(N(),oe($e,null,[ne("div",{class:ce(["images-top-bar",{"mobile-hidden":_(r)&&!_(n)}])},[ne("div",wY,[se(_(Du),{placement:"bottom",title:"Sort By",trigger:"click",width:200,transition:"none","hide-after":0},{reference:ue(()=>[se(_(Je),{class:"btn-select"},{default:ue(()=>[se(_(De),{size:16},{default:ue(()=>[se(_(UO))]),_:1})]),_:1})]),default:ue(()=>[(N(),oe($e,null,zt(["Newest","Oldest"],m=>ne("div",{key:m,onClick:()=>_(i).sortBy=m,class:ce(`el-select-dropdown__item ${_(i).sortBy===m?"selected":""}`)},Ee(m),11,SY)),64))]),_:1}),se(_(Du),{placement:"bottom",title:"Filter By",trigger:"click",width:240,transition:"none","hide-after":0},{reference:ue(()=>[se(_(Je),{class:"btn-select"},{default:ue(()=>[se(_(De),{size:16},{default:ue(()=>[se(_(pO))]),_:1})]),_:1})]),default:ue(()=>[(N(),oe($e,null,zt(["all","favourited","unfavourited","unrated"],m=>ne("div",{key:m,onClick:()=>_(i).filterBy=m,class:ce(`el-select-dropdown__item ${_(i).filterBy===m?"selected":""}`)},Ee(_(i).filterBy===m?"Showing":"Show")+" "+Ee(m),11,CY)),64))]),_:1}),se(_(Du),{placement:"bottom",title:"Image Layout",trigger:"click",width:240,transition:"none","hide-after":0},{reference:ue(()=>[se(_(Je),{class:"btn-select"},{default:ue(()=>[se(_(De),{size:16},{default:ue(()=>[se(_Y)]),_:1})]),_:1})]),default:ue(()=>[(N(),oe($e,null,zt([{label:"Square Grid",value:"grid"},{label:"Dynamic Layout",value:"dynamic"}],m=>ne("div",{key:m.value,onClick:()=>_(i).currentLayout=m.value,class:ce(`el-select-dropdown__item ${_(i).currentLayout===m.value?"selected":""}`)},Ee(m.label),11,xY)),64))]),_:1}),se(_(Du),{placement:"bottom",title:"Selection",trigger:"click",width:240,transition:"none","hide-after":0},{reference:ue(()=>[se(_(Je),{class:"btn-select"},{default:ue(()=>[se(_(De),{size:16},{default:ue(()=>[_(p).multiSelect?(N(),ve(_(M1),{key:0})):(N(),ve(_(eu),{key:1}))]),_:1})]),_:1})]),default:ue(()=>[_(p).multiSelect?(N(),oe("div",{key:0,class:"el-select-dropdown__item selected",onClick:g[0]||(g[0]=(...m)=>_(p).toggleMultiSelect&&_(p).toggleMultiSelect(...m))},"Disable multi-select")):(N(),oe("div",{key:1,class:"el-select-dropdown__item",onClick:g[1]||(g[1]=(...m)=>_(p).toggleMultiSelect&&_(p).toggleMultiSelect(...m))},"Enable multi-select")),_(p).selected.length>0?(N(),oe("div",{key:2,class:"el-select-dropdown__item selected",onClick:h},"Deselect All")):(N(),oe("div",{key:3,class:"el-select-dropdown__item",onClick:a},"Select All")),_(p).selected.every(m=>!_(i).currentOutputs.map(v=>v.id).includes(m))?(N(),oe("div",{key:5,class:"el-select-dropdown__item",onClick:o},"Select Page")):(N(),oe("div",{key:4,class:"el-select-dropdown__item selected",onClick:l},"Deselect Page"))]),_:1})]),_(u).pageless==="Disabled"?(N(),ve(_(IN),{key:0,layout:"prev, pager, next",total:_(i).outputsLength,"page-size":_(u).pageSize,"current-page":_(i).currentPage,"onUpdate:currentPage":g[2]||(g[2]=m=>_(i).currentPage=m),"hide-on-single-page":""},null,8,["total","page-size","current-page"])):ge("",!0),_(p).multiSelect?(N(),oe("div",TY,[ne("div",null,Ee(_(p).selected.length)+" selected",1),se(_(Je),{type:"danger",onClick:c,icon:_(Ki),plain:""},{default:ue(()=>[...g[3]||(g[3]=[ze("Delete",-1)])]),_:1},8,["icon"]),se(_(Je),{type:"success",onClick:f,icon:_(bl),plain:"",style:{margin:"0"}},{default:ue(()=>[...g[4]||(g[4]=[ze("Download",-1)])]),_:1},8,["icon"])])):(N(),oe("div",kY,[...g[5]||(g[5]=[ne("em",{style:{"font-size":"14px"}},"(long press to select multiple images)",-1)])]))],2),_(i).outputsLength!=0?(N(),oe("div",EY,[_(i).currentLayout==="dynamic"?(N(),oe("div",OY,[(N(!0),oe($e,null,zt(s.value,(m,v)=>(N(),oe("div",{key:v,style:{flex:"1 1 0%"}},[(N(!0),oe($e,null,zt(m,y=>(N(),ve($b,{key:y.id,"image-data":y,style:{"margin-bottom":"8px"}},null,8,["image-data"]))),128))]))),128))])):ge("",!0),_(i).currentLayout==="grid"?(N(),oe("div",AY,[(N(!0),oe($e,null,zt(_(i).currentOutputs,m=>(N(),ve($b,{key:m.id,"image-data":m,style:{width:"200px",height:"200px"}},null,8,["image-data"]))),128))])):ge("",!0)])):ge("",!0),_(i).outputsLength==0?(N(),oe("div",PY,[se(_(YF),{description:"No Images Found"})])):ge("",!0)],64))}}),MY=on(IY,[["__scopeId","data-v-b39b47c5"]]),LY=Object.freeze(Object.defineProperty({__proto__:null,default:MY},Symbol.toStringTag,{value:"Module"})),RY=["href"],DY=be({__name:"BaseLink",props:{href:{},router:{type:Boolean}},setup(e){return(t,n)=>{const r=bt("router-link");return N(),oe($e,null,[t.router?ge("",!0):(N(),oe("a",{key:0,target:"_blank",rel:"noreferrer noopener",href:t.href},[ke(t.$slots,"default",{},void 0,!0)],8,RY)),t.router?(N(),ve(r,{key:1,to:t.href},{default:ue(()=>[ke(t.$slots,"default",{},void 0,!0)]),_:3},8,["to"])):ge("",!0)],64)}}}),FY=on(DY,[["__scopeId","data-v-17b53b7d"]]),BY={class:"about"},$Y={class:"about-content"},NY=be({__name:"AboutView",setup(e){return(t,n)=>(N(),oe("div",BY,[ne("div",$Y,[n[2]||(n[2]=ne("h1",{style:{"margin-top":"0"}},"Stable UI",-1)),n[3]||(n[3]=ne("div",null,[ze("This tool was originally a front-end for the AI Horde and has since been converted for local generations with the A1111 API, such as in "),ne("a",{href:"https://github.com/LostRuins/koboldcpp"},"KoboldCpp"),ze(".")],-1)),n[4]||(n[4]=ne("br",null,null,-1)),n[5]||(n[5]=ne("div",null,"If you want to help improve this tool, you can find the currently maintained source code from this modified version on https://github.com/LostRuins/stable-ui and https://github.com/henk717/stable-ui, which is based off https://github.com/ayunami2000/stable-ui, which derives from the original AI Horde version on https://github.com/aqualxx/stable-ui (Original author aqualxx#5004). Feel free to contribute!",-1)),n[6]||(n[6]=ne("br",null,null,-1)),ne("div",null,[n[1]||(n[1]=ze("You can find the KoboldAI community and authors of this fork on the ",-1)),se(FY,{href:"https://koboldai.org/discord"},{default:ue(()=>[...n[0]||(n[0]=[ze("KoboldAI Discord",-1)])]),_:1})])])]))}}),zY=on(NY,[["__scopeId","data-v-ecc278c5"]]),jY=Object.freeze(Object.defineProperty({__proto__:null,default:zY},Symbol.toStringTag,{value:"Module"})),Fi=be({__name:"FormRadio",props:{label:{},modelValue:{},prop:{},useBoolean:{type:Boolean},options:{},disabled:{type:Boolean},info:{},labelStyle:{},change:{type:Function}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t;function i(p){if(n.useBoolean&&p==="Enabled"?r("update:modelValue",!0):n.useBoolean&&p==="Disabled"?r("update:modelValue",!1):r("update:modelValue",p),!!n.change)return n.useBoolean&&p==="Enabled"?n.change(!0):n.useBoolean&&p==="Disabled"?n.change(!1):n.change(p)}const u=ee(()=>n.useBoolean?n.modelValue===!0?"Enabled":n.modelValue===!1?"Disabled":n.modelValue:n.modelValue);return(p,o)=>(N(),ve(_(ea),{prop:p.prop},{label:ue(()=>[se(hu,{info:p.info,"label-style":p.labelStyle},{default:ue(()=>[ke(p.$slots,"label",{},()=>[ze(Ee(p.label),1)])]),_:3},8,["info","label-style"])]),default:ue(()=>[se(_(jR),{disabled:p.disabled,"model-value":u.value,onChange:i},{default:ue(()=>[(N(!0),oe($e,null,zt(p.options,a=>(N(),ve(_(VR),{key:a,label:a},null,8,["label"]))),128))]),_:1},8,["disabled","model-value"]),ke(p.$slots,"inline")]),_:3},8,["prop"]))}}),VY=be({__name:"OptionsView",setup(e){const t=Ft(),n=Qa(),r=Jt(),i=[{value:"dark",label:"Dark"},{value:"light",label:"Light"},{value:"auto",label:"Auto"}],u=ae([]),p=ae(),o=ae(!1),a=ae(0);async function l(c){n.importFromZip(c),p.value.clearFiles()}async function h(){la({message:`Downloading ${n.outputsLength} image(s)... (this may take a while)`,type:"info"}),o.value=!0,a.value=0;const c=await Yt.outputs.toCollection().primaryKeys();await XS(c,!1,()=>{a.value++}),o.value=!1,a.value=0}return(c,f)=>(N(),oe($e,null,[f[19]||(f[19]=ne("h1",null,"Options",-1)),se(_(Am),{"label-position":"top",model:_(t).options,onSubmit:f[13]||(f[13]=Qe(()=>{},["prevent"]))},{default:ue(()=>[se(_(tj),{type:"border-card",style:{"min-height":"50vh"}},{default:ue(()=>[se(_(kd),{label:"\u{1F5A8}\uFE0F Generation"},{default:ue(()=>[f[14]||(f[14]=ne("h2",null,"Generation Options",-1)),se(_(ea),{label:"Base URL"},{default:ue(()=>[se(_(uo),{class:"apikey",prop:"baseURL",modelValue:_(t).baseURL,"onUpdate:modelValue":f[1]||(f[1]=s=>_(t).baseURL=s)},{append:ue(()=>[se(_(fn),{content:"Invalidate all cached information for this server (LoRAs, samplers, schedulers, ...)",placement:"top"},{default:ue(()=>[se(_(Je),{icon:_(yh),onClick:f[0]||(f[0]=s=>_(r).invalidateApiCaches())},null,8,["icon"])]),_:1})]),_:1},8,["modelValue"])]),_:1}),f[15]||(f[15]=ne("h3",null,"Parameter Controls",-1)),(N(!0),oe($e,null,zt(_(r).multiSelect,(s,d)=>{var g;return N(),oe("div",{key:d},[se(Fi,{label:s.name,prop:"pageless",modelValue:s.state,"onUpdate:modelValue":m=>s.state=m,options:(g=s.allowedStates)!=null?g:[]},null,8,["label","modelValue","onUpdate:modelValue","options"])])}),128)),se(Fi,{label:"Allow Larger Params",prop:"pageless",modelValue:_(t).allowLargerParams,"onUpdate:modelValue":f[2]||(f[2]=s=>_(t).allowLargerParams=s),options:["Enabled","Disabled"]},null,8,["modelValue"]),se(Fi,{label:"Poor Connection Mode",prop:"keepImageGenOnDisconnect",modelValue:_(t).keepImageGenOnDisconnect,"onUpdate:modelValue":f[3]||(f[3]=s=>_(t).keepImageGenOnDisconnect=s),options:["Enabled","Disabled"],info:"Provides compatibility for poor connections or when using unreliable tunnels. Prevents abort on disconnecting, and allows ongoing generations to carry on and be recovered later even after disconnecting."},null,8,["modelValue"]),se(Fi,{label:"Fetch generation progress",prop:"fetchGenerationProgress",modelValue:_(t).fetchGenerationProgress,"onUpdate:modelValue":f[4]||(f[4]=s=>_(t).fetchGenerationProgress=s),options:["Off","Text","Image"],info:"Off: no progress polling. Text: fetch textual progress info only. Image: fetch textual info and live image preview."},null,8,["modelValue"]),se(Lo,{label:"Image Resize Mode",prop:"imageResizeMode",modelValue:_(t).imageResizeMode,"onUpdate:modelValue":f[5]||(f[5]=s=>_(t).imageResizeMode=s),options:[{label:"No Scale",value:"NoScale"},{label:"Scale and Crop",value:"ScaleAndCrop"},{label:"Scale and Pad",value:"ScaleAndPad"},{label:"Stretch",value:"Stretch"},{label:"Original",value:"Original"}],info:"How to adapt input image dimensions to the requested image size. No Scale: do not scale, just crop or pad each dimension to fit (default behavior). Scale and Crop: scale to match the smaller dimension, preserving aspect ratio, then crop to fit. Scale and Pad: scale to match the larger dimension, preserving aspect ratio, then pad to fit. Stretch: stretch both dimensions to fit, possibly not preserving aspect ratio. Original: send the input image as-is to the server, with no scaling, cropping or padding."},null,8,["modelValue"]),se(Fi,{label:"Video Gen: Request AVI download",prop:"pageless",modelValue:_(t).alsoRequestAvi,"onUpdate:modelValue":f[6]||(f[6]=s=>_(t).alsoRequestAvi=s),options:["Enabled","Disabled"]},null,8,["modelValue"])]),_:1}),se(_(kd),{label:"\u{1F4F7} Images"},{default:ue(()=>[f[17]||(f[17]=ne("h2",null,"Image Options",-1)),se(yn,{label:"Images Per Page",prop:"pageSize",modelValue:_(t).pageSize,"onUpdate:modelValue":f[7]||(f[7]=s=>_(t).pageSize=s),min:10,max:50,step:5,disabled:_(t).pageless==="Enabled"},null,8,["modelValue","disabled"]),se(Fi,{label:"Pageless Format",prop:"pageless",modelValue:_(t).pageless,"onUpdate:modelValue":f[8]||(f[8]=s=>_(t).pageless=s),options:["Enabled","Disabled"]},null,8,["modelValue"]),se(Fi,{label:"Carousel Auto Cycle",prop:"autoCarousel",modelValue:_(t).autoCarousel,"onUpdate:modelValue":f[9]||(f[9]=s=>_(t).autoCarousel=s),options:["Enabled","Disabled"]},null,8,["modelValue"]),se(Fi,{label:"Image Download Format",prop:"downloadType",modelValue:_(t).imageDownloadType,"onUpdate:modelValue":f[10]||(f[10]=s=>_(t).imageDownloadType=s),options:["PNG","JPG","WEBP","GIF"]},null,8,["modelValue"]),se(_(ea),{label:"Export Images (ZIP File)"},{default:ue(()=>[o.value?(N(),ve(_(Je),{key:1,icon:_(bl),disabled:""},{default:ue(()=>[ze("Downloading... ("+Ee(a.value)+" / "+Ee(_(n).outputsLength)+" image(s))",1)]),_:1},8,["icon"])):(N(),ve(_(Je),{key:0,icon:_(bl),onClick:f[11]||(f[11]=s=>h())},{default:ue(()=>[ze("Download "+Ee(_(n).outputsLength)+" image(s)",1)]),_:1},8,["icon"]))]),_:1}),se(_(ea),{label:"Import Images (ZIP File)"},{default:ue(()=>[se(_(Dm),{drag:"",ref_key:"upload",ref:p,"auto-upload":!1,onChange:l,"file-list":u.value,limit:1,multiple:""},{default:ue(()=>[se(_(De),{size:100},{default:ue(()=>[se(_(Qp))]),_:1}),f[16]||(f[16]=ne("div",null,[ze("Drop file here OR "),ne("em",null,"click to upload")],-1))]),_:1},8,["file-list"])]),_:1})]),_:1}),se(_(kd),{label:"\u2699\uFE0F General"},{default:ue(()=>[f[18]||(f[18]=ne("h2",null,"General Options",-1)),se(Lo,{label:"Color Scheme",prop:"colorScheme",modelValue:_(t).options.colorMode,"onUpdate:modelValue":f[12]||(f[12]=s=>_(t).options.colorMode=s),options:i},null,8,["modelValue"])]),_:1})]),_:1})]),_:1},8,["model"])],64))}}),UY=on(VY,[["__scopeId","data-v-c2b6a067"]]),HY=Object.freeze(Object.defineProperty({__proto__:null,default:UY},Symbol.toStringTag,{value:"Module"}))});export default WY();
|
|
|
|
</script>
|
|
<style>
|
|
@charset "UTF-8";:root{--el-color-white:#ffffff;--el-color-black:#000000;--el-color-primary-rgb:64,158,255;--el-color-success-rgb:103,194,58;--el-color-warning-rgb:230,162,60;--el-color-danger-rgb:245,108,108;--el-color-error-rgb:245,108,108;--el-color-info-rgb:144,147,153;--el-font-size-extra-large:20px;--el-font-size-large:18px;--el-font-size-medium:16px;--el-font-size-base:14px;--el-font-size-small:13px;--el-font-size-extra-small:12px;--el-font-family:"Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","\5fae\8f6f\96c5\9ed1",Arial,sans-serif;--el-font-weight-primary:500;--el-font-line-height-primary:24px;--el-index-normal:1;--el-index-top:1000;--el-index-popper:2000;--el-border-radius-base:4px;--el-border-radius-small:2px;--el-border-radius-round:20px;--el-border-radius-circle:100%;--el-transition-duration:.3s;--el-transition-duration-fast:.2s;--el-transition-function-ease-in-out-bezier:cubic-bezier(.645, .045, .355, 1);--el-transition-function-fast-bezier:cubic-bezier(.23, 1, .32, 1);--el-transition-all:all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);--el-transition-fade:opacity var(--el-transition-duration) var(--el-transition-function-fast-bezier);--el-transition-md-fade:transform var(--el-transition-duration) var(--el-transition-function-fast-bezier),opacity var(--el-transition-duration) var(--el-transition-function-fast-bezier);--el-transition-fade-linear:opacity var(--el-transition-duration-fast) linear;--el-transition-border:border-color var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-transition-box-shadow:box-shadow var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-transition-color:color var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-component-size-large:40px;--el-component-size:32px;--el-component-size-small:24px}:root{color-scheme:light;--el-color-white:#ffffff;--el-color-black:#000000;--el-color-primary:#409eff;--el-color-primary-light-3:#79bbff;--el-color-primary-light-5:#a0cfff;--el-color-primary-light-7:#c6e2ff;--el-color-primary-light-8:#d9ecff;--el-color-primary-light-9:#ecf5ff;--el-color-primary-dark-2:#337ecc;--el-color-success:#67c23a;--el-color-success-light-3:#95d475;--el-color-success-light-5:#b3e19d;--el-color-success-light-7:#d1edc4;--el-color-success-light-8:#e1f3d8;--el-color-success-light-9:#f0f9eb;--el-color-success-dark-2:#529b2e;--el-color-warning:#e6a23c;--el-color-warning-light-3:#eebe77;--el-color-warning-light-5:#f3d19e;--el-color-warning-light-7:#f8e3c5;--el-color-warning-light-8:#faecd8;--el-color-warning-light-9:#fdf6ec;--el-color-warning-dark-2:#b88230;--el-color-danger:#f56c6c;--el-color-danger-light-3:#f89898;--el-color-danger-light-5:#fab6b6;--el-color-danger-light-7:#fcd3d3;--el-color-danger-light-8:#fde2e2;--el-color-danger-light-9:#fef0f0;--el-color-danger-dark-2:#c45656;--el-color-error:#f56c6c;--el-color-error-light-3:#f89898;--el-color-error-light-5:#fab6b6;--el-color-error-light-7:#fcd3d3;--el-color-error-light-8:#fde2e2;--el-color-error-light-9:#fef0f0;--el-color-error-dark-2:#c45656;--el-color-info:#909399;--el-color-info-light-3:#b1b3b8;--el-color-info-light-5:#c8c9cc;--el-color-info-light-7:#dedfe0;--el-color-info-light-8:#e9e9eb;--el-color-info-light-9:#f4f4f5;--el-color-info-dark-2:#73767a;--el-bg-color:#ffffff;--el-bg-color-page:#f2f3f5;--el-bg-color-overlay:#ffffff;--el-text-color-primary:#303133;--el-text-color-regular:#606266;--el-text-color-secondary:#909399;--el-text-color-placeholder:#a8abb2;--el-text-color-disabled:#c0c4cc;--el-border-color:#dcdfe6;--el-border-color-light:#e4e7ed;--el-border-color-lighter:#ebeef5;--el-border-color-extra-light:#f2f6fc;--el-border-color-dark:#d4d7de;--el-border-color-darker:#cdd0d6;--el-fill-color:#f0f2f5;--el-fill-color-light:#f5f7fa;--el-fill-color-lighter:#fafafa;--el-fill-color-extra-light:#fafcff;--el-fill-color-dark:#ebedf0;--el-fill-color-darker:#e6e8eb;--el-fill-color-blank:#ffffff;--el-box-shadow:0px 12px 32px 4px rgba(0, 0, 0, .04),0px 8px 20px rgba(0, 0, 0, .08);--el-box-shadow-light:0px 0px 12px rgba(0, 0, 0, .12);--el-box-shadow-lighter:0px 0px 6px rgba(0, 0, 0, .12);--el-box-shadow-dark:0px 16px 48px 16px rgba(0, 0, 0, .08),0px 12px 32px rgba(0, 0, 0, .12),0px 8px 16px -8px rgba(0, 0, 0, .16);--el-disabled-bg-color:var(--el-fill-color-light);--el-disabled-text-color:var(--el-text-color-placeholder);--el-disabled-border-color:var(--el-border-color-light);--el-overlay-color:rgba(0, 0, 0, .8);--el-overlay-color-light:rgba(0, 0, 0, .7);--el-overlay-color-lighter:rgba(0, 0, 0, .5);--el-mask-color:rgba(255, 255, 255, .9);--el-mask-color-extra-light:rgba(255, 255, 255, .3);--el-border-width:1px;--el-border-style:solid;--el-border-color-hover:var(--el-text-color-disabled);--el-border:var(--el-border-width) var(--el-border-style) var(--el-border-color);--el-svg-monochrome-grey:var(--el-border-color)}:root{--el-menu-active-color:var(--el-color-primary);--el-menu-text-color:var(--el-text-color-primary);--el-menu-hover-text-color:var(--el-color-primary);--el-menu-bg-color:var(--el-fill-color-blank);--el-menu-hover-bg-color:var(--el-color-primary-light-9);--el-menu-item-height:56px;--el-menu-sub-item-height:calc(var(--el-menu-item-height) - 6px);--el-menu-horizontal-sub-item-height:36px;--el-menu-item-font-size:var(--el-font-size-base);--el-menu-item-hover-fill:var(--el-color-primary-light-9);--el-menu-border-color:var(--el-border-color);--el-menu-base-level-padding:20px;--el-menu-level-padding:20px;--el-menu-icon-width:24px}.el-menu{border-right:solid 1px var(--el-menu-border-color);list-style:none;position:relative;margin:0;padding-left:0;background-color:var(--el-menu-bg-color);box-sizing:border-box}.el-menu--vertical:not(.el-menu--collapse):not(.el-menu--popup-container) .el-menu-item,.el-menu--vertical:not(.el-menu--collapse):not(.el-menu--popup-container) .el-menu-item-group__title,.el-menu--vertical:not(.el-menu--collapse):not(.el-menu--popup-container) .el-sub-menu__title{white-space:nowrap;padding-left:calc(var(--el-menu-base-level-padding) + var(--el-menu-level) * var(--el-menu-level-padding))}.el-menu--horizontal{display:flex;flex-wrap:nowrap;border-bottom:solid 1px var(--el-menu-border-color);border-right:none}.el-menu--horizontal>.el-menu-item{display:inline-flex;justify-content:center;align-items:center;height:100%;margin:0;border-bottom:2px solid transparent;color:var(--el-menu-text-color)}.el-menu--horizontal>.el-menu-item a,.el-menu--horizontal>.el-menu-item a:hover{color:inherit}.el-menu--horizontal>.el-menu-item:not(.is-disabled):focus,.el-menu--horizontal>.el-menu-item:not(.is-disabled):hover{background-color:#fff}.el-menu--horizontal>.el-sub-menu:focus,.el-menu--horizontal>.el-sub-menu:hover{outline:0}.el-menu--horizontal>.el-sub-menu:hover .el-sub-menu__title{color:var(--el-menu-hover-text-color)}.el-menu--horizontal>.el-sub-menu.is-active .el-sub-menu__title{border-bottom:2px solid var(--el-menu-active-color);color:var(--el-menu-active-color)}.el-menu--horizontal>.el-sub-menu .el-sub-menu__title{height:100%;border-bottom:2px solid transparent;color:var(--el-menu-text-color)}.el-menu--horizontal>.el-sub-menu .el-sub-menu__title:hover{background-color:var(--el-bg-color-overlay)}.el-menu--horizontal>.el-sub-menu .el-sub-menu__icon-arrow{position:static;vertical-align:middle;margin-left:8px;margin-top:-3px}.el-menu--horizontal .el-menu .el-menu-item,.el-menu--horizontal .el-menu .el-sub-menu__title{background-color:var(--el-menu-bg-color);display:flex;align-items:center;height:var(--el-menu-horizontal-sub-item-height);padding:0 10px;color:var(--el-menu-text-color)}.el-menu--horizontal .el-menu .el-sub-menu__title{padding-right:40px}.el-menu--horizontal .el-menu .el-menu-item.is-active,.el-menu--horizontal .el-menu .el-sub-menu.is-active>.el-sub-menu__title{color:var(--el-menu-active-color)}.el-menu--horizontal .el-menu-item:not(.is-disabled):focus,.el-menu--horizontal .el-menu-item:not(.is-disabled):hover{outline:0;color:var(--el-menu-hover-text-color);background-color:var(--el-menu-hover-bg-color)}.el-menu--horizontal>.el-menu-item.is-active{border-bottom:2px solid var(--el-menu-active-color);color:var(--el-menu-active-color)!important}.el-menu--collapse{width:calc(var(--el-menu-icon-width) + var(--el-menu-base-level-padding) * 2)}.el-menu--collapse>.el-menu-item [class^=el-icon],.el-menu--collapse>.el-sub-menu>.el-sub-menu__title [class^=el-icon]{margin:0;vertical-align:middle;width:var(--el-menu-icon-width);text-align:center}.el-menu--collapse>.el-menu-item .el-sub-menu__icon-arrow,.el-menu--collapse>.el-sub-menu>.el-sub-menu__title .el-sub-menu__icon-arrow{display:none}.el-menu--collapse>.el-menu-item>span,.el-menu--collapse>.el-sub-menu>.el-sub-menu__title>span{height:0;width:0;overflow:hidden;visibility:hidden;display:inline-block}.el-menu--collapse>.el-menu-item.is-active i{color:inherit}.el-menu--collapse .el-menu .el-sub-menu{min-width:200px}.el-menu--collapse .el-sub-menu{position:relative}.el-menu--collapse .el-sub-menu .el-menu{position:absolute;margin-left:5px;top:0;left:100%;z-index:10;border:1px solid var(--el-border-color-light);border-radius:var(--el-border-radius-small);box-shadow:var(--el-box-shadow-light)}.el-menu--collapse .el-sub-menu.is-active .el-sub-menu__title{color:var(--el-menu-active-color)}.el-menu--popup{z-index:100;min-width:200px;border:none;padding:5px 0;border-radius:var(--el-border-radius-small);box-shadow:var(--el-box-shadow-light)}.el-menu .el-icon{flex-shrink:0}.el-menu-item{display:flex;align-items:center;height:var(--el-menu-item-height);line-height:var(--el-menu-item-height);font-size:var(--el-menu-item-font-size);color:var(--el-menu-text-color);padding:0 var(--el-menu-base-level-padding);list-style:none;cursor:pointer;position:relative;transition:border-color var(--el-transition-duration),background-color var(--el-transition-duration),color var(--el-transition-duration);box-sizing:border-box;white-space:nowrap}.el-menu-item *{vertical-align:bottom}.el-menu-item i{color:inherit}.el-menu-item:focus,.el-menu-item:hover{outline:0}.el-menu-item:hover{background-color:var(--el-menu-hover-bg-color)}.el-menu-item.is-disabled{opacity:.25;cursor:not-allowed;background:0 0!important}.el-menu-item [class^=el-icon]{margin-right:5px;width:var(--el-menu-icon-width);text-align:center;font-size:18px;vertical-align:middle}.el-menu-item.is-active{color:var(--el-menu-active-color)}.el-menu-item.is-active i{color:inherit}.el-menu-item .el-menu-tooltip__trigger{position:absolute;left:0;top:0;height:100%;width:100%;display:inline-flex;align-items:center;box-sizing:border-box;padding:0 var(--el-menu-base-level-padding)}.el-sub-menu{list-style:none;margin:0;padding-left:0}.el-sub-menu__title{display:flex;align-items:center;height:var(--el-menu-item-height);line-height:var(--el-menu-item-height);font-size:var(--el-menu-item-font-size);color:var(--el-menu-text-color);padding:0 var(--el-menu-base-level-padding);list-style:none;cursor:pointer;position:relative;transition:border-color var(--el-transition-duration),background-color var(--el-transition-duration),color var(--el-transition-duration);box-sizing:border-box;white-space:nowrap}.el-sub-menu__title *{vertical-align:bottom}.el-sub-menu__title i{color:inherit}.el-sub-menu__title:focus,.el-sub-menu__title:hover{outline:0}.el-sub-menu__title.is-disabled{opacity:.25;cursor:not-allowed;background:0 0!important}.el-sub-menu__title:hover{background-color:var(--el-menu-hover-bg-color)}.el-sub-menu .el-menu{border:none}.el-sub-menu .el-menu-item{height:var(--el-menu-sub-item-height);line-height:var(--el-menu-sub-item-height);min-width:200px}.el-sub-menu__hide-arrow .el-sub-menu__icon-arrow{display:none!important}.el-sub-menu.is-active .el-sub-menu__title{border-bottom-color:var(--el-menu-active-color)}.el-sub-menu.is-disabled .el-menu-item,.el-sub-menu.is-disabled .el-sub-menu__title{opacity:.25;cursor:not-allowed;background:0 0!important}.el-sub-menu .el-icon{vertical-align:middle;margin-right:5px;width:var(--el-menu-icon-width);text-align:center;font-size:18px}.el-sub-menu .el-icon.el-sub-menu__icon-more{margin-right:0!important}.el-sub-menu .el-sub-menu__icon-arrow{position:absolute;top:50%;right:var(--el-menu-base-level-padding);margin-top:-7px;transition:transform var(--el-transition-duration);font-size:12px;margin-right:0;width:inherit}.el-menu-item-group>ul{padding:0}.el-menu-item-group__title{padding:7px 0 7px var(--el-menu-base-level-padding);line-height:normal;font-size:12px;color:var(--el-text-color-secondary)}.horizontal-collapse-transition .el-sub-menu__title .el-sub-menu__icon-arrow{transition:var(--el-transition-duration-fast);opacity:0}.el-popper{--el-popper-border-radius:var(--el-popover-border-radius, 4px)}.el-popper{position:absolute;border-radius:var(--el-popper-border-radius);padding:5px 11px;z-index:2000;font-size:12px;line-height:20px;min-width:10px;word-wrap:break-word;visibility:visible}.el-popper.is-dark{color:var(--el-bg-color);background:var(--el-text-color-primary);border:1px solid var(--el-text-color-primary)}.el-popper.is-dark .el-popper__arrow:before{border:1px solid var(--el-text-color-primary);background:var(--el-text-color-primary);right:0}.el-popper.is-light{background:var(--el-bg-color-overlay);border:1px solid var(--el-border-color-light)}.el-popper.is-light .el-popper__arrow:before{border:1px solid var(--el-border-color-light);background:var(--el-bg-color-overlay);right:0}.el-popper.is-pure{padding:0}.el-popper__arrow{position:absolute;width:10px;height:10px;z-index:-1}.el-popper__arrow:before{position:absolute;width:10px;height:10px;z-index:-1;content:" ";transform:rotate(45deg);background:var(--el-text-color-primary);box-sizing:border-box}.el-popper[data-popper-placement^=top]>.el-popper__arrow{bottom:-5px}.el-popper[data-popper-placement^=top]>.el-popper__arrow:before{border-bottom-right-radius:2px}.el-popper[data-popper-placement^=bottom]>.el-popper__arrow{top:-5px}.el-popper[data-popper-placement^=bottom]>.el-popper__arrow:before{border-top-left-radius:2px}.el-popper[data-popper-placement^=left]>.el-popper__arrow{right:-5px}.el-popper[data-popper-placement^=left]>.el-popper__arrow:before{border-top-right-radius:2px}.el-popper[data-popper-placement^=right]>.el-popper__arrow{left:-5px}.el-popper[data-popper-placement^=right]>.el-popper__arrow:before{border-bottom-left-radius:2px}.el-popper[data-popper-placement^=top] .el-popper__arrow:before{border-top-color:transparent!important;border-left-color:transparent!important}.el-popper[data-popper-placement^=bottom] .el-popper__arrow:before{border-bottom-color:transparent!important;border-right-color:transparent!important}.el-popper[data-popper-placement^=left] .el-popper__arrow:before{border-left-color:transparent!important;border-bottom-color:transparent!important}.el-popper[data-popper-placement^=right] .el-popper__arrow:before{border-right-color:transparent!important;border-top-color:transparent!important}.el-icon-loading{-webkit-animation:rotating 2s linear infinite;animation:rotating 2s linear infinite}.el-icon--right{margin-left:5px}.el-icon--left{margin-right:5px}@-webkit-keyframes rotating{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes rotating{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.el-icon{--color:inherit;height:1em;width:1em;line-height:1em;display:inline-flex;justify-content:center;align-items:center;position:relative;fill:currentColor;color:var(--color);font-size:inherit}.el-icon.is-loading{-webkit-animation:rotating 2s linear infinite;animation:rotating 2s linear infinite}.el-icon svg{height:1em;width:1em}.el-badge{--el-badge-bg-color:var(--el-color-danger);--el-badge-radius:10px;--el-badge-font-size:12px;--el-badge-padding:6px;--el-badge-size:18px;position:relative;vertical-align:middle;display:inline-block}.el-badge__content{background-color:var(--el-badge-bg-color);border-radius:var(--el-badge-radius);color:var(--el-color-white);display:inline-flex;justify-content:center;align-items:center;font-size:var(--el-badge-font-size);height:var(--el-badge-size);padding:0 var(--el-badge-padding);white-space:nowrap;border:1px solid var(--el-bg-color)}.el-badge__content.is-fixed{position:absolute;top:0;right:calc(1px + var(--el-badge-size)/ 2);transform:translateY(-50%) translate(100%)}.el-badge__content.is-fixed.is-dot{right:5px}.el-badge__content.is-dot{height:8px;width:8px;padding:0;right:0;border-radius:50%}.el-badge__content--primary{background-color:var(--el-color-primary)}.el-badge__content--success{background-color:var(--el-color-success)}.el-badge__content--warning{background-color:var(--el-color-warning)}.el-badge__content--info{background-color:var(--el-color-info)}.el-badge__content--danger{background-color:var(--el-color-danger)}.el-message{--el-message-bg-color:var(--el-color-info-light-9);--el-message-border-color:var(--el-border-color-lighter);--el-message-padding:15px 19px;--el-message-close-size:16px;--el-message-close-icon-color:var(--el-text-color-placeholder);--el-message-close-hover-color:var(--el-text-color-secondary)}.el-message{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;max-width:calc(100% - 32px);box-sizing:border-box;border-radius:var(--el-border-radius-base);border-width:var(--el-border-width);border-style:var(--el-border-style);border-color:var(--el-message-border-color);position:fixed;left:50%;top:20px;transform:translate(-50%);background-color:var(--el-message-bg-color);transition:opacity var(--el-transition-duration),transform .4s,top .4s;padding:var(--el-message-padding);display:flex;align-items:center}.el-message.is-center{justify-content:center}.el-message.is-closable .el-message__content{padding-right:31px}.el-message p{margin:0}.el-message--success{--el-message-bg-color:var(--el-color-success-light-9);--el-message-border-color:var(--el-color-success-light-8);--el-message-text-color:var(--el-color-success)}.el-message--success .el-message__content{color:var(--el-message-text-color);overflow-wrap:anywhere}.el-message .el-message-icon--success{color:var(--el-message-text-color)}.el-message--info{--el-message-bg-color:var(--el-color-info-light-9);--el-message-border-color:var(--el-color-info-light-8);--el-message-text-color:var(--el-color-info)}.el-message--info .el-message__content{color:var(--el-message-text-color);overflow-wrap:anywhere}.el-message .el-message-icon--info{color:var(--el-message-text-color)}.el-message--warning{--el-message-bg-color:var(--el-color-warning-light-9);--el-message-border-color:var(--el-color-warning-light-8);--el-message-text-color:var(--el-color-warning)}.el-message--warning .el-message__content{color:var(--el-message-text-color);overflow-wrap:anywhere}.el-message .el-message-icon--warning{color:var(--el-message-text-color)}.el-message--error{--el-message-bg-color:var(--el-color-error-light-9);--el-message-border-color:var(--el-color-error-light-8);--el-message-text-color:var(--el-color-error)}.el-message--error .el-message__content{color:var(--el-message-text-color);overflow-wrap:anywhere}.el-message .el-message-icon--error{color:var(--el-message-text-color)}.el-message__icon{margin-right:10px}.el-message .el-message__badge{position:absolute;top:-8px;right:-8px}.el-message__content{padding:0;font-size:14px;line-height:1}.el-message__content:focus{outline-width:0}.el-message .el-message__closeBtn{position:absolute;top:50%;right:19px;transform:translateY(-50%);cursor:pointer;color:var(--el-message-close-icon-color);font-size:var(--el-message-close-size)}.el-message .el-message__closeBtn:focus{outline-width:0}.el-message .el-message__closeBtn:hover{color:var(--el-message-close-hover-color)}.el-message-fade-enter-from,.el-message-fade-leave-to{opacity:0;transform:translate(-50%,-100%)}.el-dialog{--el-dialog-width:50%;--el-dialog-margin-top:15vh;--el-dialog-bg-color:var(--el-bg-color);--el-dialog-box-shadow:var(--el-box-shadow);--el-dialog-title-font-size:var(--el-font-size-large);--el-dialog-content-font-size:14px;--el-dialog-font-line-height:var(--el-font-line-height-primary);--el-dialog-padding-primary:20px;--el-dialog-border-radius:var(--el-border-radius-small);position:relative;margin:var(--el-dialog-margin-top,15vh) auto 50px;background:var(--el-dialog-bg-color);border-radius:var(--el-dialog-border-radius);box-shadow:var(--el-dialog-box-shadow);box-sizing:border-box;width:var(--el-dialog-width,50%)}.el-dialog:focus{outline:0!important}.el-dialog.is-align-center{margin:auto}.el-dialog.is-fullscreen{--el-dialog-width:100%;--el-dialog-margin-top:0;margin-bottom:0;height:100%;overflow:auto}.el-dialog__wrapper{position:fixed;top:0;right:0;bottom:0;left:0;overflow:auto;margin:0}.el-dialog.is-draggable .el-dialog__header{cursor:move;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-dialog__header{padding:var(--el-dialog-padding-primary);padding-bottom:10px;margin-right:16px;word-break:break-all}.el-dialog__headerbtn{position:absolute;top:6px;right:0;padding:0;width:54px;height:54px;background:0 0;border:none;outline:0;cursor:pointer;font-size:var(--el-message-close-size,16px)}.el-dialog__headerbtn .el-dialog__close{color:var(--el-color-info);font-size:inherit}.el-dialog__headerbtn:focus .el-dialog__close,.el-dialog__headerbtn:hover .el-dialog__close{color:var(--el-color-primary)}.el-dialog__title{line-height:var(--el-dialog-font-line-height);font-size:var(--el-dialog-title-font-size);color:var(--el-text-color-primary)}.el-dialog__body{padding:calc(var(--el-dialog-padding-primary) + 10px) var(--el-dialog-padding-primary);color:var(--el-text-color-regular);font-size:var(--el-dialog-content-font-size);word-break:break-all}.el-dialog__footer{padding:var(--el-dialog-padding-primary);padding-top:10px;text-align:right;box-sizing:border-box}.el-dialog--center{text-align:center}.el-dialog--center .el-dialog__body{text-align:initial;padding:25px calc(var(--el-dialog-padding-primary) + 5px) 30px}.el-dialog--center .el-dialog__footer{text-align:inherit}.el-overlay-dialog{position:fixed;top:0;right:0;bottom:0;left:0;overflow:auto}.dialog-fade-enter-active{-webkit-animation:modal-fade-in var(--el-transition-duration);animation:modal-fade-in var(--el-transition-duration)}.dialog-fade-enter-active .el-overlay-dialog{-webkit-animation:dialog-fade-in var(--el-transition-duration);animation:dialog-fade-in var(--el-transition-duration)}.dialog-fade-leave-active{-webkit-animation:modal-fade-out var(--el-transition-duration);animation:modal-fade-out var(--el-transition-duration)}.dialog-fade-leave-active .el-overlay-dialog{-webkit-animation:dialog-fade-out var(--el-transition-duration);animation:dialog-fade-out var(--el-transition-duration)}@-webkit-keyframes dialog-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes dialog-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}to{transform:translateZ(0);opacity:1}}@-webkit-keyframes dialog-fade-out{0%{transform:translateZ(0);opacity:1}to{transform:translate3d(0,-20px,0);opacity:0}}@keyframes dialog-fade-out{0%{transform:translateZ(0);opacity:1}to{transform:translate3d(0,-20px,0);opacity:0}}@-webkit-keyframes modal-fade-in{0%{opacity:0}to{opacity:1}}@keyframes modal-fade-in{0%{opacity:0}to{opacity:1}}@-webkit-keyframes modal-fade-out{0%{opacity:1}to{opacity:0}}@keyframes modal-fade-out{0%{opacity:1}to{opacity:0}}.el-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:2000;height:100%;background-color:var(--el-overlay-color-lighter);overflow:auto}.el-overlay .el-overlay-root{height:0}.fade-in-linear-enter-active,.fade-in-linear-leave-active{transition:var(--el-transition-fade-linear)}.fade-in-linear-enter-from,.fade-in-linear-leave-to{opacity:0}.el-fade-in-linear-enter-active,.el-fade-in-linear-leave-active{transition:var(--el-transition-fade-linear)}.el-fade-in-linear-enter-from,.el-fade-in-linear-leave-to{opacity:0}.el-fade-in-enter-active,.el-fade-in-leave-active{transition:all var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-fade-in-enter-from,.el-fade-in-leave-active{opacity:0}.el-zoom-in-center-enter-active,.el-zoom-in-center-leave-active{transition:all var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-zoom-in-center-enter-from,.el-zoom-in-center-leave-active{opacity:0;transform:scaleX(0)}.el-zoom-in-top-enter-active,.el-zoom-in-top-leave-active{opacity:1;transform:scaleY(1);transition:var(--el-transition-md-fade);transform-origin:center top}.el-zoom-in-top-enter-active[data-popper-placement^=top],.el-zoom-in-top-leave-active[data-popper-placement^=top]{transform-origin:center bottom}.el-zoom-in-top-enter-from,.el-zoom-in-top-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-bottom-enter-active,.el-zoom-in-bottom-leave-active{opacity:1;transform:scaleY(1);transition:var(--el-transition-md-fade);transform-origin:center bottom}.el-zoom-in-bottom-enter-from,.el-zoom-in-bottom-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-left-enter-active,.el-zoom-in-left-leave-active{opacity:1;transform:scale(1);transition:var(--el-transition-md-fade);transform-origin:top left}.el-zoom-in-left-enter-from,.el-zoom-in-left-leave-active{opacity:0;transform:scale(.45)}.collapse-transition{transition:var(--el-transition-duration) height ease-in-out,var(--el-transition-duration) padding-top ease-in-out,var(--el-transition-duration) padding-bottom ease-in-out}.el-collapse-transition-enter-active,.el-collapse-transition-leave-active{transition:var(--el-transition-duration) max-height ease-in-out,var(--el-transition-duration) padding-top ease-in-out,var(--el-transition-duration) padding-bottom ease-in-out}.horizontal-collapse-transition{transition:var(--el-transition-duration) width ease-in-out,var(--el-transition-duration) padding-left ease-in-out,var(--el-transition-duration) padding-right ease-in-out}.el-list-enter-active,.el-list-leave-active{transition:all 1s}.el-list-enter-from,.el-list-leave-to{opacity:0;transform:translateY(-30px)}.el-list-leave-active{position:absolute!important}.el-opacity-transition{transition:opacity var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-collapse{--el-collapse-border-color:var(--el-border-color-lighter);--el-collapse-header-height:48px;--el-collapse-header-bg-color:var(--el-fill-color-blank);--el-collapse-header-text-color:var(--el-text-color-primary);--el-collapse-header-font-size:13px;--el-collapse-content-bg-color:var(--el-fill-color-blank);--el-collapse-content-font-size:13px;--el-collapse-content-text-color:var(--el-text-color-primary);border-top:1px solid var(--el-collapse-border-color);border-bottom:1px solid var(--el-collapse-border-color)}.el-collapse-item.is-disabled .el-collapse-item__header{color:var(--el-text-color-disabled);cursor:not-allowed}.el-collapse-item__header{display:flex;align-items:center;height:var(--el-collapse-header-height);line-height:var(--el-collapse-header-height);background-color:var(--el-collapse-header-bg-color);color:var(--el-collapse-header-text-color);cursor:pointer;border-bottom:1px solid var(--el-collapse-border-color);font-size:var(--el-collapse-header-font-size);font-weight:500;transition:border-bottom-color var(--el-transition-duration);outline:0}.el-collapse-item__arrow{margin:0 8px 0 auto;transition:transform var(--el-transition-duration);font-weight:300}.el-collapse-item__arrow.is-active{transform:rotate(90deg)}.el-collapse-item__header.focusing:focus:not(:hover){color:var(--el-color-primary)}.el-collapse-item__header.is-active{border-bottom-color:transparent}.el-collapse-item__wrap{will-change:height;background-color:var(--el-collapse-content-bg-color);overflow:hidden;box-sizing:border-box;border-bottom:1px solid var(--el-collapse-border-color)}.el-collapse-item__content{padding-bottom:25px;font-size:var(--el-collapse-content-font-size);color:var(--el-collapse-content-text-color);line-height:1.7692307692}.el-collapse-item:last-child{margin-bottom:-1px}.el-form{--el-form-label-font-size:var(--el-font-size-base)}.el-form--label-left .el-form-item__label{justify-content:flex-start}.el-form--label-top .el-form-item{display:block}.el-form--label-top .el-form-item .el-form-item__label{display:block;height:auto;text-align:left;margin-bottom:8px;line-height:22px}.el-form--inline .el-form-item{display:inline-flex;vertical-align:middle;margin-right:32px}.el-form--inline.el-form--label-top{display:flex;flex-wrap:wrap}.el-form--inline.el-form--label-top .el-form-item{display:block}.el-form--large.el-form--label-top .el-form-item .el-form-item__label{margin-bottom:12px;line-height:22px}.el-form--default.el-form--label-top .el-form-item .el-form-item__label{margin-bottom:8px;line-height:22px}.el-form--small.el-form--label-top .el-form-item .el-form-item__label{margin-bottom:4px;line-height:20px}.el-form-item{display:flex;--font-size:14px;margin-bottom:18px}.el-form-item .el-form-item{margin-bottom:0}.el-form-item .el-input__validateIcon{display:none}.el-form-item--large{--font-size:14px;--el-form-label-font-size:var(--font-size);margin-bottom:22px}.el-form-item--large .el-form-item__label{height:40px;line-height:40px}.el-form-item--large .el-form-item__content{line-height:40px}.el-form-item--large .el-form-item__error{padding-top:4px}.el-form-item--default{--font-size:14px;--el-form-label-font-size:var(--font-size);margin-bottom:18px}.el-form-item--default .el-form-item__label{height:32px;line-height:32px}.el-form-item--default .el-form-item__content{line-height:32px}.el-form-item--default .el-form-item__error{padding-top:2px}.el-form-item--small{--font-size:12px;--el-form-label-font-size:var(--font-size);margin-bottom:18px}.el-form-item--small .el-form-item__label{height:24px;line-height:24px}.el-form-item--small .el-form-item__content{line-height:24px}.el-form-item--small .el-form-item__error{padding-top:2px}.el-form-item__label-wrap{display:flex}.el-form-item__label{display:inline-flex;justify-content:flex-end;align-items:flex-start;flex:0 0 auto;font-size:var(--el-form-label-font-size);color:var(--el-text-color-regular);height:32px;line-height:32px;padding:0 12px 0 0;box-sizing:border-box}.el-form-item__content{display:flex;flex-wrap:wrap;align-items:center;flex:1;line-height:32px;position:relative;font-size:var(--font-size);min-width:0}.el-form-item__content .el-input-group{vertical-align:top}.el-form-item__error{color:var(--el-color-danger);font-size:12px;line-height:1;padding-top:2px;position:absolute;top:100%;left:0}.el-form-item__error--inline{position:relative;top:auto;left:auto;display:inline-block;margin-left:10px}.el-form-item.is-required:not(.is-no-asterisk).asterisk-left>.el-form-item__label-wrap>.el-form-item__label:before,.el-form-item.is-required:not(.is-no-asterisk).asterisk-left>.el-form-item__label:before{content:"*";color:var(--el-color-danger);margin-right:4px}.el-form-item.is-required:not(.is-no-asterisk).asterisk-right>.el-form-item__label-wrap>.el-form-item__label:after,.el-form-item.is-required:not(.is-no-asterisk).asterisk-right>.el-form-item__label:after{content:"*";color:var(--el-color-danger);margin-left:4px}.el-form-item.is-error .el-select-v2__wrapper,.el-form-item.is-error .el-select-v2__wrapper:focus,.el-form-item.is-error .el-textarea__inner,.el-form-item.is-error .el-textarea__inner:focus{box-shadow:0 0 0 1px var(--el-color-danger) inset}.el-form-item.is-error .el-input__wrapper{box-shadow:0 0 0 1px var(--el-color-danger) inset}.el-form-item.is-error .el-input-group__append .el-input__wrapper,.el-form-item.is-error .el-input-group__prepend .el-input__wrapper{box-shadow:0 0 0 1px transparent inset}.el-form-item.is-error .el-input__validateIcon{color:var(--el-color-danger)}.el-form-item--feedback .el-input__validateIcon{display:inline-flex}.el-button{--el-button-font-weight:var(--el-font-weight-primary);--el-button-border-color:var(--el-border-color);--el-button-bg-color:var(--el-fill-color-blank);--el-button-text-color:var(--el-text-color-regular);--el-button-disabled-text-color:var(--el-disabled-text-color);--el-button-disabled-bg-color:var(--el-fill-color-blank);--el-button-disabled-border-color:var(--el-border-color-light);--el-button-divide-border-color:rgba(255, 255, 255, .5);--el-button-hover-text-color:var(--el-color-primary);--el-button-hover-bg-color:var(--el-color-primary-light-9);--el-button-hover-border-color:var(--el-color-primary-light-7);--el-button-active-text-color:var(--el-button-hover-text-color);--el-button-active-border-color:var(--el-color-primary);--el-button-active-bg-color:var(--el-button-hover-bg-color);--el-button-outline-color:var(--el-color-primary-light-5);--el-button-hover-link-text-color:var(--el-color-info);--el-button-active-color:var(--el-text-color-primary)}.el-button{display:inline-flex;justify-content:center;align-items:center;line-height:1;height:32px;white-space:nowrap;cursor:pointer;color:var(--el-button-text-color);text-align:center;box-sizing:border-box;outline:0;transition:.1s;font-weight:var(--el-button-font-weight);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle;-webkit-appearance:none;background-color:var(--el-button-bg-color);border:var(--el-border);border-color:var(--el-button-border-color);padding:8px 15px;font-size:var(--el-font-size-base);border-radius:var(--el-border-radius-base)}.el-button:focus,.el-button:hover{color:var(--el-button-hover-text-color);border-color:var(--el-button-hover-border-color);background-color:var(--el-button-hover-bg-color);outline:0}.el-button:active{color:var(--el-button-active-text-color);border-color:var(--el-button-active-border-color);background-color:var(--el-button-active-bg-color);outline:0}.el-button:focus-visible{outline:2px solid var(--el-button-outline-color);outline-offset:1px}.el-button>span{display:inline-flex;align-items:center}.el-button+.el-button{margin-left:12px}.el-button.is-round{padding:8px 15px}.el-button::-moz-focus-inner{border:0}.el-button [class*=el-icon]+span{margin-left:6px}.el-button [class*=el-icon] svg{vertical-align:bottom}.el-button.is-plain{--el-button-hover-text-color:var(--el-color-primary);--el-button-hover-bg-color:var(--el-fill-color-blank);--el-button-hover-border-color:var(--el-color-primary)}.el-button.is-active{color:var(--el-button-active-text-color);border-color:var(--el-button-active-border-color);background-color:var(--el-button-active-bg-color);outline:0}.el-button.is-disabled,.el-button.is-disabled:focus,.el-button.is-disabled:hover{color:var(--el-button-disabled-text-color);cursor:not-allowed;background-image:none;background-color:var(--el-button-disabled-bg-color);border-color:var(--el-button-disabled-border-color)}.el-button.is-loading{position:relative;pointer-events:none}.el-button.is-loading:before{z-index:1;pointer-events:none;content:"";position:absolute;left:-1px;top:-1px;right:-1px;bottom:-1px;border-radius:inherit;background-color:var(--el-mask-color-extra-light)}.el-button.is-round{border-radius:var(--el-border-radius-round)}.el-button.is-circle{border-radius:50%;padding:8px}.el-button.is-text{color:var(--el-button-text-color);border:0 solid transparent;background-color:transparent}.el-button.is-text.is-disabled{color:var(--el-button-disabled-text-color);background-color:transparent!important}.el-button.is-text:not(.is-disabled):focus,.el-button.is-text:not(.is-disabled):hover{background-color:var(--el-fill-color-light)}.el-button.is-text:not(.is-disabled):focus-visible{outline:2px solid var(--el-button-outline-color);outline-offset:1px}.el-button.is-text:not(.is-disabled):active{background-color:var(--el-fill-color)}.el-button.is-text:not(.is-disabled).is-has-bg{background-color:var(--el-fill-color-light)}.el-button.is-text:not(.is-disabled).is-has-bg:focus,.el-button.is-text:not(.is-disabled).is-has-bg:hover{background-color:var(--el-fill-color)}.el-button.is-text:not(.is-disabled).is-has-bg:active{background-color:var(--el-fill-color-dark)}.el-button__text--expand{letter-spacing:.3em;margin-right:-.3em}.el-button.is-link{border-color:transparent;color:var(--el-button-text-color);background:0 0;padding:2px;height:auto}.el-button.is-link:focus,.el-button.is-link:hover{color:var(--el-button-hover-link-text-color)}.el-button.is-link.is-disabled{color:var(--el-button-disabled-text-color);background-color:transparent!important;border-color:transparent!important}.el-button.is-link:not(.is-disabled):focus,.el-button.is-link:not(.is-disabled):hover{border-color:transparent;background-color:transparent}.el-button.is-link:not(.is-disabled):active{color:var(--el-button-active-color);border-color:transparent;background-color:transparent}.el-button--text{border-color:transparent;background:0 0;color:var(--el-color-primary);padding-left:0;padding-right:0}.el-button--text.is-disabled{color:var(--el-button-disabled-text-color);background-color:transparent!important;border-color:transparent!important}.el-button--text:not(.is-disabled):focus,.el-button--text:not(.is-disabled):hover{color:var(--el-color-primary-light-3);border-color:transparent;background-color:transparent}.el-button--text:not(.is-disabled):active{color:var(--el-color-primary-dark-2);border-color:transparent;background-color:transparent}.el-button__link--expand{letter-spacing:.3em;margin-right:-.3em}.el-button--primary{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-primary);--el-button-border-color:var(--el-color-primary);--el-button-outline-color:var(--el-color-primary-light-5);--el-button-active-color:var(--el-color-primary-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-primary-light-5);--el-button-hover-bg-color:var(--el-color-primary-light-3);--el-button-hover-border-color:var(--el-color-primary-light-3);--el-button-active-bg-color:var(--el-color-primary-dark-2);--el-button-active-border-color:var(--el-color-primary-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-primary-light-5);--el-button-disabled-border-color:var(--el-color-primary-light-5)}.el-button--primary.is-link,.el-button--primary.is-plain,.el-button--primary.is-text{--el-button-text-color:var(--el-color-primary);--el-button-bg-color:var(--el-color-primary-light-9);--el-button-border-color:var(--el-color-primary-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-primary);--el-button-hover-border-color:var(--el-color-primary);--el-button-active-text-color:var(--el-color-white)}.el-button--primary.is-link.is-disabled,.el-button--primary.is-link.is-disabled:active,.el-button--primary.is-link.is-disabled:focus,.el-button--primary.is-link.is-disabled:hover,.el-button--primary.is-plain.is-disabled,.el-button--primary.is-plain.is-disabled:active,.el-button--primary.is-plain.is-disabled:focus,.el-button--primary.is-plain.is-disabled:hover,.el-button--primary.is-text.is-disabled,.el-button--primary.is-text.is-disabled:active,.el-button--primary.is-text.is-disabled:focus,.el-button--primary.is-text.is-disabled:hover{color:var(--el-color-primary-light-5);background-color:var(--el-color-primary-light-9);border-color:var(--el-color-primary-light-8)}.el-button--success{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-success);--el-button-border-color:var(--el-color-success);--el-button-outline-color:var(--el-color-success-light-5);--el-button-active-color:var(--el-color-success-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-success-light-5);--el-button-hover-bg-color:var(--el-color-success-light-3);--el-button-hover-border-color:var(--el-color-success-light-3);--el-button-active-bg-color:var(--el-color-success-dark-2);--el-button-active-border-color:var(--el-color-success-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-success-light-5);--el-button-disabled-border-color:var(--el-color-success-light-5)}.el-button--success.is-link,.el-button--success.is-plain,.el-button--success.is-text{--el-button-text-color:var(--el-color-success);--el-button-bg-color:var(--el-color-success-light-9);--el-button-border-color:var(--el-color-success-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-success);--el-button-hover-border-color:var(--el-color-success);--el-button-active-text-color:var(--el-color-white)}.el-button--success.is-link.is-disabled,.el-button--success.is-link.is-disabled:active,.el-button--success.is-link.is-disabled:focus,.el-button--success.is-link.is-disabled:hover,.el-button--success.is-plain.is-disabled,.el-button--success.is-plain.is-disabled:active,.el-button--success.is-plain.is-disabled:focus,.el-button--success.is-plain.is-disabled:hover,.el-button--success.is-text.is-disabled,.el-button--success.is-text.is-disabled:active,.el-button--success.is-text.is-disabled:focus,.el-button--success.is-text.is-disabled:hover{color:var(--el-color-success-light-5);background-color:var(--el-color-success-light-9);border-color:var(--el-color-success-light-8)}.el-button--warning{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-warning);--el-button-border-color:var(--el-color-warning);--el-button-outline-color:var(--el-color-warning-light-5);--el-button-active-color:var(--el-color-warning-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-warning-light-5);--el-button-hover-bg-color:var(--el-color-warning-light-3);--el-button-hover-border-color:var(--el-color-warning-light-3);--el-button-active-bg-color:var(--el-color-warning-dark-2);--el-button-active-border-color:var(--el-color-warning-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-warning-light-5);--el-button-disabled-border-color:var(--el-color-warning-light-5)}.el-button--warning.is-link,.el-button--warning.is-plain,.el-button--warning.is-text{--el-button-text-color:var(--el-color-warning);--el-button-bg-color:var(--el-color-warning-light-9);--el-button-border-color:var(--el-color-warning-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-warning);--el-button-hover-border-color:var(--el-color-warning);--el-button-active-text-color:var(--el-color-white)}.el-button--warning.is-link.is-disabled,.el-button--warning.is-link.is-disabled:active,.el-button--warning.is-link.is-disabled:focus,.el-button--warning.is-link.is-disabled:hover,.el-button--warning.is-plain.is-disabled,.el-button--warning.is-plain.is-disabled:active,.el-button--warning.is-plain.is-disabled:focus,.el-button--warning.is-plain.is-disabled:hover,.el-button--warning.is-text.is-disabled,.el-button--warning.is-text.is-disabled:active,.el-button--warning.is-text.is-disabled:focus,.el-button--warning.is-text.is-disabled:hover{color:var(--el-color-warning-light-5);background-color:var(--el-color-warning-light-9);border-color:var(--el-color-warning-light-8)}.el-button--danger{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-danger);--el-button-border-color:var(--el-color-danger);--el-button-outline-color:var(--el-color-danger-light-5);--el-button-active-color:var(--el-color-danger-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-danger-light-5);--el-button-hover-bg-color:var(--el-color-danger-light-3);--el-button-hover-border-color:var(--el-color-danger-light-3);--el-button-active-bg-color:var(--el-color-danger-dark-2);--el-button-active-border-color:var(--el-color-danger-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-danger-light-5);--el-button-disabled-border-color:var(--el-color-danger-light-5)}.el-button--danger.is-link,.el-button--danger.is-plain,.el-button--danger.is-text{--el-button-text-color:var(--el-color-danger);--el-button-bg-color:var(--el-color-danger-light-9);--el-button-border-color:var(--el-color-danger-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-danger);--el-button-hover-border-color:var(--el-color-danger);--el-button-active-text-color:var(--el-color-white)}.el-button--danger.is-link.is-disabled,.el-button--danger.is-link.is-disabled:active,.el-button--danger.is-link.is-disabled:focus,.el-button--danger.is-link.is-disabled:hover,.el-button--danger.is-plain.is-disabled,.el-button--danger.is-plain.is-disabled:active,.el-button--danger.is-plain.is-disabled:focus,.el-button--danger.is-plain.is-disabled:hover,.el-button--danger.is-text.is-disabled,.el-button--danger.is-text.is-disabled:active,.el-button--danger.is-text.is-disabled:focus,.el-button--danger.is-text.is-disabled:hover{color:var(--el-color-danger-light-5);background-color:var(--el-color-danger-light-9);border-color:var(--el-color-danger-light-8)}.el-button--info{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-info);--el-button-border-color:var(--el-color-info);--el-button-outline-color:var(--el-color-info-light-5);--el-button-active-color:var(--el-color-info-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-info-light-5);--el-button-hover-bg-color:var(--el-color-info-light-3);--el-button-hover-border-color:var(--el-color-info-light-3);--el-button-active-bg-color:var(--el-color-info-dark-2);--el-button-active-border-color:var(--el-color-info-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-info-light-5);--el-button-disabled-border-color:var(--el-color-info-light-5)}.el-button--info.is-link,.el-button--info.is-plain,.el-button--info.is-text{--el-button-text-color:var(--el-color-info);--el-button-bg-color:var(--el-color-info-light-9);--el-button-border-color:var(--el-color-info-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-info);--el-button-hover-border-color:var(--el-color-info);--el-button-active-text-color:var(--el-color-white)}.el-button--info.is-link.is-disabled,.el-button--info.is-link.is-disabled:active,.el-button--info.is-link.is-disabled:focus,.el-button--info.is-link.is-disabled:hover,.el-button--info.is-plain.is-disabled,.el-button--info.is-plain.is-disabled:active,.el-button--info.is-plain.is-disabled:focus,.el-button--info.is-plain.is-disabled:hover,.el-button--info.is-text.is-disabled,.el-button--info.is-text.is-disabled:active,.el-button--info.is-text.is-disabled:focus,.el-button--info.is-text.is-disabled:hover{color:var(--el-color-info-light-5);background-color:var(--el-color-info-light-9);border-color:var(--el-color-info-light-8)}.el-button--large{--el-button-size:40px;height:var(--el-button-size);padding:12px 19px;font-size:var(--el-font-size-base);border-radius:var(--el-border-radius-base)}.el-button--large [class*=el-icon]+span{margin-left:8px}.el-button--large.is-round{padding:12px 19px}.el-button--large.is-circle{width:var(--el-button-size);padding:12px}.el-button--small{--el-button-size:24px;height:var(--el-button-size);padding:5px 11px;font-size:12px;border-radius:calc(var(--el-border-radius-base) - 1px)}.el-button--small [class*=el-icon]+span{margin-left:4px}.el-button--small.is-round{padding:5px 11px}.el-button--small.is-circle{width:var(--el-button-size);padding:5px}.el-card{--el-card-border-color:var(--el-border-color-light);--el-card-border-radius:4px;--el-card-padding:20px;--el-card-bg-color:var(--el-fill-color-blank)}.el-card{border-radius:var(--el-card-border-radius);border:1px solid var(--el-card-border-color);background-color:var(--el-card-bg-color);overflow:hidden;color:var(--el-text-color-primary);transition:var(--el-transition-duration)}.el-card.is-always-shadow{box-shadow:var(--el-box-shadow-light)}.el-card.is-hover-shadow:focus,.el-card.is-hover-shadow:hover{box-shadow:var(--el-box-shadow-light)}.el-card__header{padding:calc(var(--el-card-padding) - 2px) var(--el-card-padding);border-bottom:1px solid var(--el-card-border-color);box-sizing:border-box}.el-card__body{padding:var(--el-card-padding)}.el-link{--el-link-font-size:var(--el-font-size-base);--el-link-font-weight:var(--el-font-weight-primary);--el-link-text-color:var(--el-text-color-regular);--el-link-hover-text-color:var(--el-color-primary);--el-link-disabled-text-color:var(--el-text-color-placeholder)}.el-link{display:inline-flex;flex-direction:row;align-items:center;justify-content:center;vertical-align:middle;position:relative;text-decoration:none;outline:0;cursor:pointer;padding:0;font-size:var(--el-link-font-size);font-weight:var(--el-link-font-weight);color:var(--el-link-text-color)}.el-link:hover{color:var(--el-link-hover-text-color)}.el-link.is-underline:hover:after{content:"";position:absolute;left:0;right:0;height:0;bottom:0;border-bottom:1px solid var(--el-link-hover-text-color)}.el-link.is-disabled{color:var(--el-link-disabled-text-color);cursor:not-allowed}.el-link [class*=el-icon-]+span{margin-left:5px}.el-link.el-link--default:after{border-color:var(--el-link-hover-text-color)}.el-link__inner{display:inline-flex;justify-content:center;align-items:center}.el-link.el-link--primary{--el-link-text-color:var(--el-color-primary);--el-link-hover-text-color:var(--el-color-primary-light-3);--el-link-disabled-text-color:var(--el-color-primary-light-5)}.el-link.el-link--primary:after{border-color:var(--el-link-text-color)}.el-link.el-link--primary.is-underline:hover:after{border-color:var(--el-link-text-color)}.el-link.el-link--success{--el-link-text-color:var(--el-color-success);--el-link-hover-text-color:var(--el-color-success-light-3);--el-link-disabled-text-color:var(--el-color-success-light-5)}.el-link.el-link--success:after{border-color:var(--el-link-text-color)}.el-link.el-link--success.is-underline:hover:after{border-color:var(--el-link-text-color)}.el-link.el-link--warning{--el-link-text-color:var(--el-color-warning);--el-link-hover-text-color:var(--el-color-warning-light-3);--el-link-disabled-text-color:var(--el-color-warning-light-5)}.el-link.el-link--warning:after{border-color:var(--el-link-text-color)}.el-link.el-link--warning.is-underline:hover:after{border-color:var(--el-link-text-color)}.el-link.el-link--danger{--el-link-text-color:var(--el-color-danger);--el-link-hover-text-color:var(--el-color-danger-light-3);--el-link-disabled-text-color:var(--el-color-danger-light-5)}.el-link.el-link--danger:after{border-color:var(--el-link-text-color)}.el-link.el-link--danger.is-underline:hover:after{border-color:var(--el-link-text-color)}.el-link.el-link--error{--el-link-text-color:var(--el-color-error);--el-link-hover-text-color:var(--el-color-error-light-3);--el-link-disabled-text-color:var(--el-color-error-light-5)}.el-link.el-link--error:after{border-color:var(--el-link-text-color)}.el-link.el-link--error.is-underline:hover:after{border-color:var(--el-link-text-color)}.el-link.el-link--info{--el-link-text-color:var(--el-color-info);--el-link-hover-text-color:var(--el-color-info-light-3);--el-link-disabled-text-color:var(--el-color-info-light-5)}.el-link.el-link--info:after{border-color:var(--el-link-text-color)}.el-link.el-link--info.is-underline:hover:after{border-color:var(--el-link-text-color)}.el-row{display:flex;flex-wrap:wrap;position:relative;box-sizing:border-box}.el-row.is-justify-center{justify-content:center}.el-row.is-justify-end{justify-content:flex-end}.el-row.is-justify-space-between{justify-content:space-between}.el-row.is-justify-space-around{justify-content:space-around}.el-row.is-justify-space-evenly{justify-content:space-evenly}.el-row.is-align-middle{align-items:center}.el-row.is-align-bottom{align-items:flex-end}[class*=el-col-]{box-sizing:border-box}[class*=el-col-].is-guttered{display:block;min-height:1px}.el-col-0,.el-col-0.is-guttered{display:none}.el-col-0{max-width:0%;flex:0 0 0%}.el-col-offset-0{margin-left:0}.el-col-pull-0{position:relative;right:0}.el-col-push-0{position:relative;left:0}.el-col-1{max-width:4.1666666667%;flex:0 0 4.1666666667%}.el-col-offset-1{margin-left:4.1666666667%}.el-col-pull-1{position:relative;right:4.1666666667%}.el-col-push-1{position:relative;left:4.1666666667%}.el-col-2{max-width:8.3333333333%;flex:0 0 8.3333333333%}.el-col-offset-2{margin-left:8.3333333333%}.el-col-pull-2{position:relative;right:8.3333333333%}.el-col-push-2{position:relative;left:8.3333333333%}.el-col-3{max-width:12.5%;flex:0 0 12.5%}.el-col-offset-3{margin-left:12.5%}.el-col-pull-3{position:relative;right:12.5%}.el-col-push-3{position:relative;left:12.5%}.el-col-4{max-width:16.6666666667%;flex:0 0 16.6666666667%}.el-col-offset-4{margin-left:16.6666666667%}.el-col-pull-4{position:relative;right:16.6666666667%}.el-col-push-4{position:relative;left:16.6666666667%}.el-col-5{max-width:20.8333333333%;flex:0 0 20.8333333333%}.el-col-offset-5{margin-left:20.8333333333%}.el-col-pull-5{position:relative;right:20.8333333333%}.el-col-push-5{position:relative;left:20.8333333333%}.el-col-6{max-width:25%;flex:0 0 25%}.el-col-offset-6{margin-left:25%}.el-col-pull-6{position:relative;right:25%}.el-col-push-6{position:relative;left:25%}.el-col-7{max-width:29.1666666667%;flex:0 0 29.1666666667%}.el-col-offset-7{margin-left:29.1666666667%}.el-col-pull-7{position:relative;right:29.1666666667%}.el-col-push-7{position:relative;left:29.1666666667%}.el-col-8{max-width:33.3333333333%;flex:0 0 33.3333333333%}.el-col-offset-8{margin-left:33.3333333333%}.el-col-pull-8{position:relative;right:33.3333333333%}.el-col-push-8{position:relative;left:33.3333333333%}.el-col-9{max-width:37.5%;flex:0 0 37.5%}.el-col-offset-9{margin-left:37.5%}.el-col-pull-9{position:relative;right:37.5%}.el-col-push-9{position:relative;left:37.5%}.el-col-10{max-width:41.6666666667%;flex:0 0 41.6666666667%}.el-col-offset-10{margin-left:41.6666666667%}.el-col-pull-10{position:relative;right:41.6666666667%}.el-col-push-10{position:relative;left:41.6666666667%}.el-col-11{max-width:45.8333333333%;flex:0 0 45.8333333333%}.el-col-offset-11{margin-left:45.8333333333%}.el-col-pull-11{position:relative;right:45.8333333333%}.el-col-push-11{position:relative;left:45.8333333333%}.el-col-12{max-width:50%;flex:0 0 50%}.el-col-offset-12{margin-left:50%}.el-col-pull-12{position:relative;right:50%}.el-col-push-12{position:relative;left:50%}.el-col-13{max-width:54.1666666667%;flex:0 0 54.1666666667%}.el-col-offset-13{margin-left:54.1666666667%}.el-col-pull-13{position:relative;right:54.1666666667%}.el-col-push-13{position:relative;left:54.1666666667%}.el-col-14{max-width:58.3333333333%;flex:0 0 58.3333333333%}.el-col-offset-14{margin-left:58.3333333333%}.el-col-pull-14{position:relative;right:58.3333333333%}.el-col-push-14{position:relative;left:58.3333333333%}.el-col-15{max-width:62.5%;flex:0 0 62.5%}.el-col-offset-15{margin-left:62.5%}.el-col-pull-15{position:relative;right:62.5%}.el-col-push-15{position:relative;left:62.5%}.el-col-16{max-width:66.6666666667%;flex:0 0 66.6666666667%}.el-col-offset-16{margin-left:66.6666666667%}.el-col-pull-16{position:relative;right:66.6666666667%}.el-col-push-16{position:relative;left:66.6666666667%}.el-col-17{max-width:70.8333333333%;flex:0 0 70.8333333333%}.el-col-offset-17{margin-left:70.8333333333%}.el-col-pull-17{position:relative;right:70.8333333333%}.el-col-push-17{position:relative;left:70.8333333333%}.el-col-18{max-width:75%;flex:0 0 75%}.el-col-offset-18{margin-left:75%}.el-col-pull-18{position:relative;right:75%}.el-col-push-18{position:relative;left:75%}.el-col-19{max-width:79.1666666667%;flex:0 0 79.1666666667%}.el-col-offset-19{margin-left:79.1666666667%}.el-col-pull-19{position:relative;right:79.1666666667%}.el-col-push-19{position:relative;left:79.1666666667%}.el-col-20{max-width:83.3333333333%;flex:0 0 83.3333333333%}.el-col-offset-20{margin-left:83.3333333333%}.el-col-pull-20{position:relative;right:83.3333333333%}.el-col-push-20{position:relative;left:83.3333333333%}.el-col-21{max-width:87.5%;flex:0 0 87.5%}.el-col-offset-21{margin-left:87.5%}.el-col-pull-21{position:relative;right:87.5%}.el-col-push-21{position:relative;left:87.5%}.el-col-22{max-width:91.6666666667%;flex:0 0 91.6666666667%}.el-col-offset-22{margin-left:91.6666666667%}.el-col-pull-22{position:relative;right:91.6666666667%}.el-col-push-22{position:relative;left:91.6666666667%}.el-col-23{max-width:95.8333333333%;flex:0 0 95.8333333333%}.el-col-offset-23{margin-left:95.8333333333%}.el-col-pull-23{position:relative;right:95.8333333333%}.el-col-push-23{position:relative;left:95.8333333333%}.el-col-24{max-width:100%;flex:0 0 100%}.el-col-offset-24{margin-left:100%}.el-col-pull-24{position:relative;right:100%}.el-col-push-24{position:relative;left:100%}@media only screen and (max-width:768px){.el-col-xs-0,.el-col-xs-0.is-guttered{display:none}.el-col-xs-0{max-width:0%;flex:0 0 0%}.el-col-xs-offset-0{margin-left:0}.el-col-xs-pull-0{position:relative;right:0}.el-col-xs-push-0{position:relative;left:0}.el-col-xs-1{display:block;max-width:4.1666666667%;flex:0 0 4.1666666667%}.el-col-xs-offset-1{margin-left:4.1666666667%}.el-col-xs-pull-1{position:relative;right:4.1666666667%}.el-col-xs-push-1{position:relative;left:4.1666666667%}.el-col-xs-2{display:block;max-width:8.3333333333%;flex:0 0 8.3333333333%}.el-col-xs-offset-2{margin-left:8.3333333333%}.el-col-xs-pull-2{position:relative;right:8.3333333333%}.el-col-xs-push-2{position:relative;left:8.3333333333%}.el-col-xs-3{display:block;max-width:12.5%;flex:0 0 12.5%}.el-col-xs-offset-3{margin-left:12.5%}.el-col-xs-pull-3{position:relative;right:12.5%}.el-col-xs-push-3{position:relative;left:12.5%}.el-col-xs-4{display:block;max-width:16.6666666667%;flex:0 0 16.6666666667%}.el-col-xs-offset-4{margin-left:16.6666666667%}.el-col-xs-pull-4{position:relative;right:16.6666666667%}.el-col-xs-push-4{position:relative;left:16.6666666667%}.el-col-xs-5{display:block;max-width:20.8333333333%;flex:0 0 20.8333333333%}.el-col-xs-offset-5{margin-left:20.8333333333%}.el-col-xs-pull-5{position:relative;right:20.8333333333%}.el-col-xs-push-5{position:relative;left:20.8333333333%}.el-col-xs-6{display:block;max-width:25%;flex:0 0 25%}.el-col-xs-offset-6{margin-left:25%}.el-col-xs-pull-6{position:relative;right:25%}.el-col-xs-push-6{position:relative;left:25%}.el-col-xs-7{display:block;max-width:29.1666666667%;flex:0 0 29.1666666667%}.el-col-xs-offset-7{margin-left:29.1666666667%}.el-col-xs-pull-7{position:relative;right:29.1666666667%}.el-col-xs-push-7{position:relative;left:29.1666666667%}.el-col-xs-8{display:block;max-width:33.3333333333%;flex:0 0 33.3333333333%}.el-col-xs-offset-8{margin-left:33.3333333333%}.el-col-xs-pull-8{position:relative;right:33.3333333333%}.el-col-xs-push-8{position:relative;left:33.3333333333%}.el-col-xs-9{display:block;max-width:37.5%;flex:0 0 37.5%}.el-col-xs-offset-9{margin-left:37.5%}.el-col-xs-pull-9{position:relative;right:37.5%}.el-col-xs-push-9{position:relative;left:37.5%}.el-col-xs-10{display:block;max-width:41.6666666667%;flex:0 0 41.6666666667%}.el-col-xs-offset-10{margin-left:41.6666666667%}.el-col-xs-pull-10{position:relative;right:41.6666666667%}.el-col-xs-push-10{position:relative;left:41.6666666667%}.el-col-xs-11{display:block;max-width:45.8333333333%;flex:0 0 45.8333333333%}.el-col-xs-offset-11{margin-left:45.8333333333%}.el-col-xs-pull-11{position:relative;right:45.8333333333%}.el-col-xs-push-11{position:relative;left:45.8333333333%}.el-col-xs-12{display:block;max-width:50%;flex:0 0 50%}.el-col-xs-offset-12{margin-left:50%}.el-col-xs-pull-12{position:relative;right:50%}.el-col-xs-push-12{position:relative;left:50%}.el-col-xs-13{display:block;max-width:54.1666666667%;flex:0 0 54.1666666667%}.el-col-xs-offset-13{margin-left:54.1666666667%}.el-col-xs-pull-13{position:relative;right:54.1666666667%}.el-col-xs-push-13{position:relative;left:54.1666666667%}.el-col-xs-14{display:block;max-width:58.3333333333%;flex:0 0 58.3333333333%}.el-col-xs-offset-14{margin-left:58.3333333333%}.el-col-xs-pull-14{position:relative;right:58.3333333333%}.el-col-xs-push-14{position:relative;left:58.3333333333%}.el-col-xs-15{display:block;max-width:62.5%;flex:0 0 62.5%}.el-col-xs-offset-15{margin-left:62.5%}.el-col-xs-pull-15{position:relative;right:62.5%}.el-col-xs-push-15{position:relative;left:62.5%}.el-col-xs-16{display:block;max-width:66.6666666667%;flex:0 0 66.6666666667%}.el-col-xs-offset-16{margin-left:66.6666666667%}.el-col-xs-pull-16{position:relative;right:66.6666666667%}.el-col-xs-push-16{position:relative;left:66.6666666667%}.el-col-xs-17{display:block;max-width:70.8333333333%;flex:0 0 70.8333333333%}.el-col-xs-offset-17{margin-left:70.8333333333%}.el-col-xs-pull-17{position:relative;right:70.8333333333%}.el-col-xs-push-17{position:relative;left:70.8333333333%}.el-col-xs-18{display:block;max-width:75%;flex:0 0 75%}.el-col-xs-offset-18{margin-left:75%}.el-col-xs-pull-18{position:relative;right:75%}.el-col-xs-push-18{position:relative;left:75%}.el-col-xs-19{display:block;max-width:79.1666666667%;flex:0 0 79.1666666667%}.el-col-xs-offset-19{margin-left:79.1666666667%}.el-col-xs-pull-19{position:relative;right:79.1666666667%}.el-col-xs-push-19{position:relative;left:79.1666666667%}.el-col-xs-20{display:block;max-width:83.3333333333%;flex:0 0 83.3333333333%}.el-col-xs-offset-20{margin-left:83.3333333333%}.el-col-xs-pull-20{position:relative;right:83.3333333333%}.el-col-xs-push-20{position:relative;left:83.3333333333%}.el-col-xs-21{display:block;max-width:87.5%;flex:0 0 87.5%}.el-col-xs-offset-21{margin-left:87.5%}.el-col-xs-pull-21{position:relative;right:87.5%}.el-col-xs-push-21{position:relative;left:87.5%}.el-col-xs-22{display:block;max-width:91.6666666667%;flex:0 0 91.6666666667%}.el-col-xs-offset-22{margin-left:91.6666666667%}.el-col-xs-pull-22{position:relative;right:91.6666666667%}.el-col-xs-push-22{position:relative;left:91.6666666667%}.el-col-xs-23{display:block;max-width:95.8333333333%;flex:0 0 95.8333333333%}.el-col-xs-offset-23{margin-left:95.8333333333%}.el-col-xs-pull-23{position:relative;right:95.8333333333%}.el-col-xs-push-23{position:relative;left:95.8333333333%}.el-col-xs-24{display:block;max-width:100%;flex:0 0 100%}.el-col-xs-offset-24{margin-left:100%}.el-col-xs-pull-24{position:relative;right:100%}.el-col-xs-push-24{position:relative;left:100%}}@media only screen and (min-width:768px){.el-col-sm-0,.el-col-sm-0.is-guttered{display:none}.el-col-sm-0{max-width:0%;flex:0 0 0%}.el-col-sm-offset-0{margin-left:0}.el-col-sm-pull-0{position:relative;right:0}.el-col-sm-push-0{position:relative;left:0}.el-col-sm-1{display:block;max-width:4.1666666667%;flex:0 0 4.1666666667%}.el-col-sm-offset-1{margin-left:4.1666666667%}.el-col-sm-pull-1{position:relative;right:4.1666666667%}.el-col-sm-push-1{position:relative;left:4.1666666667%}.el-col-sm-2{display:block;max-width:8.3333333333%;flex:0 0 8.3333333333%}.el-col-sm-offset-2{margin-left:8.3333333333%}.el-col-sm-pull-2{position:relative;right:8.3333333333%}.el-col-sm-push-2{position:relative;left:8.3333333333%}.el-col-sm-3{display:block;max-width:12.5%;flex:0 0 12.5%}.el-col-sm-offset-3{margin-left:12.5%}.el-col-sm-pull-3{position:relative;right:12.5%}.el-col-sm-push-3{position:relative;left:12.5%}.el-col-sm-4{display:block;max-width:16.6666666667%;flex:0 0 16.6666666667%}.el-col-sm-offset-4{margin-left:16.6666666667%}.el-col-sm-pull-4{position:relative;right:16.6666666667%}.el-col-sm-push-4{position:relative;left:16.6666666667%}.el-col-sm-5{display:block;max-width:20.8333333333%;flex:0 0 20.8333333333%}.el-col-sm-offset-5{margin-left:20.8333333333%}.el-col-sm-pull-5{position:relative;right:20.8333333333%}.el-col-sm-push-5{position:relative;left:20.8333333333%}.el-col-sm-6{display:block;max-width:25%;flex:0 0 25%}.el-col-sm-offset-6{margin-left:25%}.el-col-sm-pull-6{position:relative;right:25%}.el-col-sm-push-6{position:relative;left:25%}.el-col-sm-7{display:block;max-width:29.1666666667%;flex:0 0 29.1666666667%}.el-col-sm-offset-7{margin-left:29.1666666667%}.el-col-sm-pull-7{position:relative;right:29.1666666667%}.el-col-sm-push-7{position:relative;left:29.1666666667%}.el-col-sm-8{display:block;max-width:33.3333333333%;flex:0 0 33.3333333333%}.el-col-sm-offset-8{margin-left:33.3333333333%}.el-col-sm-pull-8{position:relative;right:33.3333333333%}.el-col-sm-push-8{position:relative;left:33.3333333333%}.el-col-sm-9{display:block;max-width:37.5%;flex:0 0 37.5%}.el-col-sm-offset-9{margin-left:37.5%}.el-col-sm-pull-9{position:relative;right:37.5%}.el-col-sm-push-9{position:relative;left:37.5%}.el-col-sm-10{display:block;max-width:41.6666666667%;flex:0 0 41.6666666667%}.el-col-sm-offset-10{margin-left:41.6666666667%}.el-col-sm-pull-10{position:relative;right:41.6666666667%}.el-col-sm-push-10{position:relative;left:41.6666666667%}.el-col-sm-11{display:block;max-width:45.8333333333%;flex:0 0 45.8333333333%}.el-col-sm-offset-11{margin-left:45.8333333333%}.el-col-sm-pull-11{position:relative;right:45.8333333333%}.el-col-sm-push-11{position:relative;left:45.8333333333%}.el-col-sm-12{display:block;max-width:50%;flex:0 0 50%}.el-col-sm-offset-12{margin-left:50%}.el-col-sm-pull-12{position:relative;right:50%}.el-col-sm-push-12{position:relative;left:50%}.el-col-sm-13{display:block;max-width:54.1666666667%;flex:0 0 54.1666666667%}.el-col-sm-offset-13{margin-left:54.1666666667%}.el-col-sm-pull-13{position:relative;right:54.1666666667%}.el-col-sm-push-13{position:relative;left:54.1666666667%}.el-col-sm-14{display:block;max-width:58.3333333333%;flex:0 0 58.3333333333%}.el-col-sm-offset-14{margin-left:58.3333333333%}.el-col-sm-pull-14{position:relative;right:58.3333333333%}.el-col-sm-push-14{position:relative;left:58.3333333333%}.el-col-sm-15{display:block;max-width:62.5%;flex:0 0 62.5%}.el-col-sm-offset-15{margin-left:62.5%}.el-col-sm-pull-15{position:relative;right:62.5%}.el-col-sm-push-15{position:relative;left:62.5%}.el-col-sm-16{display:block;max-width:66.6666666667%;flex:0 0 66.6666666667%}.el-col-sm-offset-16{margin-left:66.6666666667%}.el-col-sm-pull-16{position:relative;right:66.6666666667%}.el-col-sm-push-16{position:relative;left:66.6666666667%}.el-col-sm-17{display:block;max-width:70.8333333333%;flex:0 0 70.8333333333%}.el-col-sm-offset-17{margin-left:70.8333333333%}.el-col-sm-pull-17{position:relative;right:70.8333333333%}.el-col-sm-push-17{position:relative;left:70.8333333333%}.el-col-sm-18{display:block;max-width:75%;flex:0 0 75%}.el-col-sm-offset-18{margin-left:75%}.el-col-sm-pull-18{position:relative;right:75%}.el-col-sm-push-18{position:relative;left:75%}.el-col-sm-19{display:block;max-width:79.1666666667%;flex:0 0 79.1666666667%}.el-col-sm-offset-19{margin-left:79.1666666667%}.el-col-sm-pull-19{position:relative;right:79.1666666667%}.el-col-sm-push-19{position:relative;left:79.1666666667%}.el-col-sm-20{display:block;max-width:83.3333333333%;flex:0 0 83.3333333333%}.el-col-sm-offset-20{margin-left:83.3333333333%}.el-col-sm-pull-20{position:relative;right:83.3333333333%}.el-col-sm-push-20{position:relative;left:83.3333333333%}.el-col-sm-21{display:block;max-width:87.5%;flex:0 0 87.5%}.el-col-sm-offset-21{margin-left:87.5%}.el-col-sm-pull-21{position:relative;right:87.5%}.el-col-sm-push-21{position:relative;left:87.5%}.el-col-sm-22{display:block;max-width:91.6666666667%;flex:0 0 91.6666666667%}.el-col-sm-offset-22{margin-left:91.6666666667%}.el-col-sm-pull-22{position:relative;right:91.6666666667%}.el-col-sm-push-22{position:relative;left:91.6666666667%}.el-col-sm-23{display:block;max-width:95.8333333333%;flex:0 0 95.8333333333%}.el-col-sm-offset-23{margin-left:95.8333333333%}.el-col-sm-pull-23{position:relative;right:95.8333333333%}.el-col-sm-push-23{position:relative;left:95.8333333333%}.el-col-sm-24{display:block;max-width:100%;flex:0 0 100%}.el-col-sm-offset-24{margin-left:100%}.el-col-sm-pull-24{position:relative;right:100%}.el-col-sm-push-24{position:relative;left:100%}}@media only screen and (min-width:992px){.el-col-md-0,.el-col-md-0.is-guttered{display:none}.el-col-md-0{max-width:0%;flex:0 0 0%}.el-col-md-offset-0{margin-left:0}.el-col-md-pull-0{position:relative;right:0}.el-col-md-push-0{position:relative;left:0}.el-col-md-1{display:block;max-width:4.1666666667%;flex:0 0 4.1666666667%}.el-col-md-offset-1{margin-left:4.1666666667%}.el-col-md-pull-1{position:relative;right:4.1666666667%}.el-col-md-push-1{position:relative;left:4.1666666667%}.el-col-md-2{display:block;max-width:8.3333333333%;flex:0 0 8.3333333333%}.el-col-md-offset-2{margin-left:8.3333333333%}.el-col-md-pull-2{position:relative;right:8.3333333333%}.el-col-md-push-2{position:relative;left:8.3333333333%}.el-col-md-3{display:block;max-width:12.5%;flex:0 0 12.5%}.el-col-md-offset-3{margin-left:12.5%}.el-col-md-pull-3{position:relative;right:12.5%}.el-col-md-push-3{position:relative;left:12.5%}.el-col-md-4{display:block;max-width:16.6666666667%;flex:0 0 16.6666666667%}.el-col-md-offset-4{margin-left:16.6666666667%}.el-col-md-pull-4{position:relative;right:16.6666666667%}.el-col-md-push-4{position:relative;left:16.6666666667%}.el-col-md-5{display:block;max-width:20.8333333333%;flex:0 0 20.8333333333%}.el-col-md-offset-5{margin-left:20.8333333333%}.el-col-md-pull-5{position:relative;right:20.8333333333%}.el-col-md-push-5{position:relative;left:20.8333333333%}.el-col-md-6{display:block;max-width:25%;flex:0 0 25%}.el-col-md-offset-6{margin-left:25%}.el-col-md-pull-6{position:relative;right:25%}.el-col-md-push-6{position:relative;left:25%}.el-col-md-7{display:block;max-width:29.1666666667%;flex:0 0 29.1666666667%}.el-col-md-offset-7{margin-left:29.1666666667%}.el-col-md-pull-7{position:relative;right:29.1666666667%}.el-col-md-push-7{position:relative;left:29.1666666667%}.el-col-md-8{display:block;max-width:33.3333333333%;flex:0 0 33.3333333333%}.el-col-md-offset-8{margin-left:33.3333333333%}.el-col-md-pull-8{position:relative;right:33.3333333333%}.el-col-md-push-8{position:relative;left:33.3333333333%}.el-col-md-9{display:block;max-width:37.5%;flex:0 0 37.5%}.el-col-md-offset-9{margin-left:37.5%}.el-col-md-pull-9{position:relative;right:37.5%}.el-col-md-push-9{position:relative;left:37.5%}.el-col-md-10{display:block;max-width:41.6666666667%;flex:0 0 41.6666666667%}.el-col-md-offset-10{margin-left:41.6666666667%}.el-col-md-pull-10{position:relative;right:41.6666666667%}.el-col-md-push-10{position:relative;left:41.6666666667%}.el-col-md-11{display:block;max-width:45.8333333333%;flex:0 0 45.8333333333%}.el-col-md-offset-11{margin-left:45.8333333333%}.el-col-md-pull-11{position:relative;right:45.8333333333%}.el-col-md-push-11{position:relative;left:45.8333333333%}.el-col-md-12{display:block;max-width:50%;flex:0 0 50%}.el-col-md-offset-12{margin-left:50%}.el-col-md-pull-12{position:relative;right:50%}.el-col-md-push-12{position:relative;left:50%}.el-col-md-13{display:block;max-width:54.1666666667%;flex:0 0 54.1666666667%}.el-col-md-offset-13{margin-left:54.1666666667%}.el-col-md-pull-13{position:relative;right:54.1666666667%}.el-col-md-push-13{position:relative;left:54.1666666667%}.el-col-md-14{display:block;max-width:58.3333333333%;flex:0 0 58.3333333333%}.el-col-md-offset-14{margin-left:58.3333333333%}.el-col-md-pull-14{position:relative;right:58.3333333333%}.el-col-md-push-14{position:relative;left:58.3333333333%}.el-col-md-15{display:block;max-width:62.5%;flex:0 0 62.5%}.el-col-md-offset-15{margin-left:62.5%}.el-col-md-pull-15{position:relative;right:62.5%}.el-col-md-push-15{position:relative;left:62.5%}.el-col-md-16{display:block;max-width:66.6666666667%;flex:0 0 66.6666666667%}.el-col-md-offset-16{margin-left:66.6666666667%}.el-col-md-pull-16{position:relative;right:66.6666666667%}.el-col-md-push-16{position:relative;left:66.6666666667%}.el-col-md-17{display:block;max-width:70.8333333333%;flex:0 0 70.8333333333%}.el-col-md-offset-17{margin-left:70.8333333333%}.el-col-md-pull-17{position:relative;right:70.8333333333%}.el-col-md-push-17{position:relative;left:70.8333333333%}.el-col-md-18{display:block;max-width:75%;flex:0 0 75%}.el-col-md-offset-18{margin-left:75%}.el-col-md-pull-18{position:relative;right:75%}.el-col-md-push-18{position:relative;left:75%}.el-col-md-19{display:block;max-width:79.1666666667%;flex:0 0 79.1666666667%}.el-col-md-offset-19{margin-left:79.1666666667%}.el-col-md-pull-19{position:relative;right:79.1666666667%}.el-col-md-push-19{position:relative;left:79.1666666667%}.el-col-md-20{display:block;max-width:83.3333333333%;flex:0 0 83.3333333333%}.el-col-md-offset-20{margin-left:83.3333333333%}.el-col-md-pull-20{position:relative;right:83.3333333333%}.el-col-md-push-20{position:relative;left:83.3333333333%}.el-col-md-21{display:block;max-width:87.5%;flex:0 0 87.5%}.el-col-md-offset-21{margin-left:87.5%}.el-col-md-pull-21{position:relative;right:87.5%}.el-col-md-push-21{position:relative;left:87.5%}.el-col-md-22{display:block;max-width:91.6666666667%;flex:0 0 91.6666666667%}.el-col-md-offset-22{margin-left:91.6666666667%}.el-col-md-pull-22{position:relative;right:91.6666666667%}.el-col-md-push-22{position:relative;left:91.6666666667%}.el-col-md-23{display:block;max-width:95.8333333333%;flex:0 0 95.8333333333%}.el-col-md-offset-23{margin-left:95.8333333333%}.el-col-md-pull-23{position:relative;right:95.8333333333%}.el-col-md-push-23{position:relative;left:95.8333333333%}.el-col-md-24{display:block;max-width:100%;flex:0 0 100%}.el-col-md-offset-24{margin-left:100%}.el-col-md-pull-24{position:relative;right:100%}.el-col-md-push-24{position:relative;left:100%}}@media only screen and (min-width:1200px){.el-col-lg-0,.el-col-lg-0.is-guttered{display:none}.el-col-lg-0{max-width:0%;flex:0 0 0%}.el-col-lg-offset-0{margin-left:0}.el-col-lg-pull-0{position:relative;right:0}.el-col-lg-push-0{position:relative;left:0}.el-col-lg-1{display:block;max-width:4.1666666667%;flex:0 0 4.1666666667%}.el-col-lg-offset-1{margin-left:4.1666666667%}.el-col-lg-pull-1{position:relative;right:4.1666666667%}.el-col-lg-push-1{position:relative;left:4.1666666667%}.el-col-lg-2{display:block;max-width:8.3333333333%;flex:0 0 8.3333333333%}.el-col-lg-offset-2{margin-left:8.3333333333%}.el-col-lg-pull-2{position:relative;right:8.3333333333%}.el-col-lg-push-2{position:relative;left:8.3333333333%}.el-col-lg-3{display:block;max-width:12.5%;flex:0 0 12.5%}.el-col-lg-offset-3{margin-left:12.5%}.el-col-lg-pull-3{position:relative;right:12.5%}.el-col-lg-push-3{position:relative;left:12.5%}.el-col-lg-4{display:block;max-width:16.6666666667%;flex:0 0 16.6666666667%}.el-col-lg-offset-4{margin-left:16.6666666667%}.el-col-lg-pull-4{position:relative;right:16.6666666667%}.el-col-lg-push-4{position:relative;left:16.6666666667%}.el-col-lg-5{display:block;max-width:20.8333333333%;flex:0 0 20.8333333333%}.el-col-lg-offset-5{margin-left:20.8333333333%}.el-col-lg-pull-5{position:relative;right:20.8333333333%}.el-col-lg-push-5{position:relative;left:20.8333333333%}.el-col-lg-6{display:block;max-width:25%;flex:0 0 25%}.el-col-lg-offset-6{margin-left:25%}.el-col-lg-pull-6{position:relative;right:25%}.el-col-lg-push-6{position:relative;left:25%}.el-col-lg-7{display:block;max-width:29.1666666667%;flex:0 0 29.1666666667%}.el-col-lg-offset-7{margin-left:29.1666666667%}.el-col-lg-pull-7{position:relative;right:29.1666666667%}.el-col-lg-push-7{position:relative;left:29.1666666667%}.el-col-lg-8{display:block;max-width:33.3333333333%;flex:0 0 33.3333333333%}.el-col-lg-offset-8{margin-left:33.3333333333%}.el-col-lg-pull-8{position:relative;right:33.3333333333%}.el-col-lg-push-8{position:relative;left:33.3333333333%}.el-col-lg-9{display:block;max-width:37.5%;flex:0 0 37.5%}.el-col-lg-offset-9{margin-left:37.5%}.el-col-lg-pull-9{position:relative;right:37.5%}.el-col-lg-push-9{position:relative;left:37.5%}.el-col-lg-10{display:block;max-width:41.6666666667%;flex:0 0 41.6666666667%}.el-col-lg-offset-10{margin-left:41.6666666667%}.el-col-lg-pull-10{position:relative;right:41.6666666667%}.el-col-lg-push-10{position:relative;left:41.6666666667%}.el-col-lg-11{display:block;max-width:45.8333333333%;flex:0 0 45.8333333333%}.el-col-lg-offset-11{margin-left:45.8333333333%}.el-col-lg-pull-11{position:relative;right:45.8333333333%}.el-col-lg-push-11{position:relative;left:45.8333333333%}.el-col-lg-12{display:block;max-width:50%;flex:0 0 50%}.el-col-lg-offset-12{margin-left:50%}.el-col-lg-pull-12{position:relative;right:50%}.el-col-lg-push-12{position:relative;left:50%}.el-col-lg-13{display:block;max-width:54.1666666667%;flex:0 0 54.1666666667%}.el-col-lg-offset-13{margin-left:54.1666666667%}.el-col-lg-pull-13{position:relative;right:54.1666666667%}.el-col-lg-push-13{position:relative;left:54.1666666667%}.el-col-lg-14{display:block;max-width:58.3333333333%;flex:0 0 58.3333333333%}.el-col-lg-offset-14{margin-left:58.3333333333%}.el-col-lg-pull-14{position:relative;right:58.3333333333%}.el-col-lg-push-14{position:relative;left:58.3333333333%}.el-col-lg-15{display:block;max-width:62.5%;flex:0 0 62.5%}.el-col-lg-offset-15{margin-left:62.5%}.el-col-lg-pull-15{position:relative;right:62.5%}.el-col-lg-push-15{position:relative;left:62.5%}.el-col-lg-16{display:block;max-width:66.6666666667%;flex:0 0 66.6666666667%}.el-col-lg-offset-16{margin-left:66.6666666667%}.el-col-lg-pull-16{position:relative;right:66.6666666667%}.el-col-lg-push-16{position:relative;left:66.6666666667%}.el-col-lg-17{display:block;max-width:70.8333333333%;flex:0 0 70.8333333333%}.el-col-lg-offset-17{margin-left:70.8333333333%}.el-col-lg-pull-17{position:relative;right:70.8333333333%}.el-col-lg-push-17{position:relative;left:70.8333333333%}.el-col-lg-18{display:block;max-width:75%;flex:0 0 75%}.el-col-lg-offset-18{margin-left:75%}.el-col-lg-pull-18{position:relative;right:75%}.el-col-lg-push-18{position:relative;left:75%}.el-col-lg-19{display:block;max-width:79.1666666667%;flex:0 0 79.1666666667%}.el-col-lg-offset-19{margin-left:79.1666666667%}.el-col-lg-pull-19{position:relative;right:79.1666666667%}.el-col-lg-push-19{position:relative;left:79.1666666667%}.el-col-lg-20{display:block;max-width:83.3333333333%;flex:0 0 83.3333333333%}.el-col-lg-offset-20{margin-left:83.3333333333%}.el-col-lg-pull-20{position:relative;right:83.3333333333%}.el-col-lg-push-20{position:relative;left:83.3333333333%}.el-col-lg-21{display:block;max-width:87.5%;flex:0 0 87.5%}.el-col-lg-offset-21{margin-left:87.5%}.el-col-lg-pull-21{position:relative;right:87.5%}.el-col-lg-push-21{position:relative;left:87.5%}.el-col-lg-22{display:block;max-width:91.6666666667%;flex:0 0 91.6666666667%}.el-col-lg-offset-22{margin-left:91.6666666667%}.el-col-lg-pull-22{position:relative;right:91.6666666667%}.el-col-lg-push-22{position:relative;left:91.6666666667%}.el-col-lg-23{display:block;max-width:95.8333333333%;flex:0 0 95.8333333333%}.el-col-lg-offset-23{margin-left:95.8333333333%}.el-col-lg-pull-23{position:relative;right:95.8333333333%}.el-col-lg-push-23{position:relative;left:95.8333333333%}.el-col-lg-24{display:block;max-width:100%;flex:0 0 100%}.el-col-lg-offset-24{margin-left:100%}.el-col-lg-pull-24{position:relative;right:100%}.el-col-lg-push-24{position:relative;left:100%}}@media only screen and (min-width:1920px){.el-col-xl-0,.el-col-xl-0.is-guttered{display:none}.el-col-xl-0{max-width:0%;flex:0 0 0%}.el-col-xl-offset-0{margin-left:0}.el-col-xl-pull-0{position:relative;right:0}.el-col-xl-push-0{position:relative;left:0}.el-col-xl-1{display:block;max-width:4.1666666667%;flex:0 0 4.1666666667%}.el-col-xl-offset-1{margin-left:4.1666666667%}.el-col-xl-pull-1{position:relative;right:4.1666666667%}.el-col-xl-push-1{position:relative;left:4.1666666667%}.el-col-xl-2{display:block;max-width:8.3333333333%;flex:0 0 8.3333333333%}.el-col-xl-offset-2{margin-left:8.3333333333%}.el-col-xl-pull-2{position:relative;right:8.3333333333%}.el-col-xl-push-2{position:relative;left:8.3333333333%}.el-col-xl-3{display:block;max-width:12.5%;flex:0 0 12.5%}.el-col-xl-offset-3{margin-left:12.5%}.el-col-xl-pull-3{position:relative;right:12.5%}.el-col-xl-push-3{position:relative;left:12.5%}.el-col-xl-4{display:block;max-width:16.6666666667%;flex:0 0 16.6666666667%}.el-col-xl-offset-4{margin-left:16.6666666667%}.el-col-xl-pull-4{position:relative;right:16.6666666667%}.el-col-xl-push-4{position:relative;left:16.6666666667%}.el-col-xl-5{display:block;max-width:20.8333333333%;flex:0 0 20.8333333333%}.el-col-xl-offset-5{margin-left:20.8333333333%}.el-col-xl-pull-5{position:relative;right:20.8333333333%}.el-col-xl-push-5{position:relative;left:20.8333333333%}.el-col-xl-6{display:block;max-width:25%;flex:0 0 25%}.el-col-xl-offset-6{margin-left:25%}.el-col-xl-pull-6{position:relative;right:25%}.el-col-xl-push-6{position:relative;left:25%}.el-col-xl-7{display:block;max-width:29.1666666667%;flex:0 0 29.1666666667%}.el-col-xl-offset-7{margin-left:29.1666666667%}.el-col-xl-pull-7{position:relative;right:29.1666666667%}.el-col-xl-push-7{position:relative;left:29.1666666667%}.el-col-xl-8{display:block;max-width:33.3333333333%;flex:0 0 33.3333333333%}.el-col-xl-offset-8{margin-left:33.3333333333%}.el-col-xl-pull-8{position:relative;right:33.3333333333%}.el-col-xl-push-8{position:relative;left:33.3333333333%}.el-col-xl-9{display:block;max-width:37.5%;flex:0 0 37.5%}.el-col-xl-offset-9{margin-left:37.5%}.el-col-xl-pull-9{position:relative;right:37.5%}.el-col-xl-push-9{position:relative;left:37.5%}.el-col-xl-10{display:block;max-width:41.6666666667%;flex:0 0 41.6666666667%}.el-col-xl-offset-10{margin-left:41.6666666667%}.el-col-xl-pull-10{position:relative;right:41.6666666667%}.el-col-xl-push-10{position:relative;left:41.6666666667%}.el-col-xl-11{display:block;max-width:45.8333333333%;flex:0 0 45.8333333333%}.el-col-xl-offset-11{margin-left:45.8333333333%}.el-col-xl-pull-11{position:relative;right:45.8333333333%}.el-col-xl-push-11{position:relative;left:45.8333333333%}.el-col-xl-12{display:block;max-width:50%;flex:0 0 50%}.el-col-xl-offset-12{margin-left:50%}.el-col-xl-pull-12{position:relative;right:50%}.el-col-xl-push-12{position:relative;left:50%}.el-col-xl-13{display:block;max-width:54.1666666667%;flex:0 0 54.1666666667%}.el-col-xl-offset-13{margin-left:54.1666666667%}.el-col-xl-pull-13{position:relative;right:54.1666666667%}.el-col-xl-push-13{position:relative;left:54.1666666667%}.el-col-xl-14{display:block;max-width:58.3333333333%;flex:0 0 58.3333333333%}.el-col-xl-offset-14{margin-left:58.3333333333%}.el-col-xl-pull-14{position:relative;right:58.3333333333%}.el-col-xl-push-14{position:relative;left:58.3333333333%}.el-col-xl-15{display:block;max-width:62.5%;flex:0 0 62.5%}.el-col-xl-offset-15{margin-left:62.5%}.el-col-xl-pull-15{position:relative;right:62.5%}.el-col-xl-push-15{position:relative;left:62.5%}.el-col-xl-16{display:block;max-width:66.6666666667%;flex:0 0 66.6666666667%}.el-col-xl-offset-16{margin-left:66.6666666667%}.el-col-xl-pull-16{position:relative;right:66.6666666667%}.el-col-xl-push-16{position:relative;left:66.6666666667%}.el-col-xl-17{display:block;max-width:70.8333333333%;flex:0 0 70.8333333333%}.el-col-xl-offset-17{margin-left:70.8333333333%}.el-col-xl-pull-17{position:relative;right:70.8333333333%}.el-col-xl-push-17{position:relative;left:70.8333333333%}.el-col-xl-18{display:block;max-width:75%;flex:0 0 75%}.el-col-xl-offset-18{margin-left:75%}.el-col-xl-pull-18{position:relative;right:75%}.el-col-xl-push-18{position:relative;left:75%}.el-col-xl-19{display:block;max-width:79.1666666667%;flex:0 0 79.1666666667%}.el-col-xl-offset-19{margin-left:79.1666666667%}.el-col-xl-pull-19{position:relative;right:79.1666666667%}.el-col-xl-push-19{position:relative;left:79.1666666667%}.el-col-xl-20{display:block;max-width:83.3333333333%;flex:0 0 83.3333333333%}.el-col-xl-offset-20{margin-left:83.3333333333%}.el-col-xl-pull-20{position:relative;right:83.3333333333%}.el-col-xl-push-20{position:relative;left:83.3333333333%}.el-col-xl-21{display:block;max-width:87.5%;flex:0 0 87.5%}.el-col-xl-offset-21{margin-left:87.5%}.el-col-xl-pull-21{position:relative;right:87.5%}.el-col-xl-push-21{position:relative;left:87.5%}.el-col-xl-22{display:block;max-width:91.6666666667%;flex:0 0 91.6666666667%}.el-col-xl-offset-22{margin-left:91.6666666667%}.el-col-xl-pull-22{position:relative;right:91.6666666667%}.el-col-xl-push-22{position:relative;left:91.6666666667%}.el-col-xl-23{display:block;max-width:95.8333333333%;flex:0 0 95.8333333333%}.el-col-xl-offset-23{margin-left:95.8333333333%}.el-col-xl-pull-23{position:relative;right:95.8333333333%}.el-col-xl-push-23{position:relative;left:95.8333333333%}.el-col-xl-24{display:block;max-width:100%;flex:0 0 100%}.el-col-xl-offset-24{margin-left:100%}.el-col-xl-pull-24{position:relative;right:100%}.el-col-xl-push-24{position:relative;left:100%}}.el-image__error,.el-image__inner,.el-image__placeholder,.el-image__wrapper{width:100%;height:100%}.el-image{position:relative;display:inline-block;overflow:hidden}.el-image__inner{vertical-align:top;opacity:1}.el-image__inner.is-loading{opacity:0}.el-image__wrapper{position:absolute;top:0;left:0}.el-image__placeholder{background:var(--el-fill-color-light)}.el-image__error{display:flex;justify-content:center;align-items:center;font-size:14px;background:var(--el-fill-color-light);color:var(--el-text-color-placeholder);vertical-align:middle}.el-image__preview{cursor:pointer}.el-image-viewer__wrapper{position:fixed;top:0;right:0;bottom:0;left:0}.el-image-viewer__btn{position:absolute;z-index:1;display:flex;align-items:center;justify-content:center;border-radius:50%;opacity:.8;cursor:pointer;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-image-viewer__btn .el-icon{font-size:inherit;cursor:pointer}.el-image-viewer__close{top:40px;right:40px;width:40px;height:40px;font-size:40px}.el-image-viewer__canvas{width:100%;height:100%;display:flex;justify-content:center;align-items:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-image-viewer__actions{left:50%;bottom:30px;transform:translate(-50%);width:282px;height:44px;padding:0 23px;background-color:var(--el-text-color-regular);border-color:#fff;border-radius:22px}.el-image-viewer__actions__inner{width:100%;height:100%;text-align:justify;cursor:default;font-size:23px;color:#fff;display:flex;align-items:center;justify-content:space-around}.el-image-viewer__prev{top:50%;transform:translateY(-50%);left:40px;width:44px;height:44px;font-size:24px;color:#fff;background-color:var(--el-text-color-regular);border-color:#fff}.el-image-viewer__next{top:50%;transform:translateY(-50%);right:40px;text-indent:2px;width:44px;height:44px;font-size:24px;color:#fff;background-color:var(--el-text-color-regular);border-color:#fff}.el-image-viewer__close{width:44px;height:44px;font-size:24px;color:#fff;background-color:var(--el-text-color-regular);border-color:#fff}.el-image-viewer__mask{position:absolute;width:100%;height:100%;top:0;left:0;opacity:.5;background:#000}.viewer-fade-enter-active{-webkit-animation:viewer-fade-in var(--el-transition-duration);animation:viewer-fade-in var(--el-transition-duration)}.viewer-fade-leave-active{-webkit-animation:viewer-fade-out var(--el-transition-duration);animation:viewer-fade-out var(--el-transition-duration)}@-webkit-keyframes viewer-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes viewer-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}to{transform:translateZ(0);opacity:1}}@-webkit-keyframes viewer-fade-out{0%{transform:translateZ(0);opacity:1}to{transform:translate3d(0,-20px,0);opacity:0}}@keyframes viewer-fade-out{0%{transform:translateZ(0);opacity:1}to{transform:translate3d(0,-20px,0);opacity:0}}.el-textarea{--el-input-text-color:var(--el-text-color-regular);--el-input-border:var(--el-border);--el-input-hover-border:var(--el-border-color-hover);--el-input-focus-border:var(--el-color-primary);--el-input-transparent-border:0 0 0 1px transparent inset;--el-input-border-color:var(--el-border-color);--el-input-border-radius:var(--el-border-radius-base);--el-input-bg-color:var(--el-fill-color-blank);--el-input-icon-color:var(--el-text-color-placeholder);--el-input-placeholder-color:var(--el-text-color-placeholder);--el-input-hover-border-color:var(--el-border-color-hover);--el-input-clear-hover-color:var(--el-text-color-secondary);--el-input-focus-border-color:var(--el-color-primary)}.el-textarea{position:relative;display:inline-block;width:100%;vertical-align:bottom;font-size:var(--el-font-size-base)}.el-textarea__inner{position:relative;display:block;resize:vertical;padding:5px 11px;line-height:1.5;box-sizing:border-box;width:100%;font-size:inherit;font-family:inherit;color:var(--el-input-text-color,var(--el-text-color-regular));background-color:var(--el-input-bg-color,var(--el-fill-color-blank));background-image:none;-webkit-appearance:none;box-shadow:0 0 0 1px var(--el-input-border-color,var(--el-border-color)) inset;border-radius:var(--el-input-border-radius,var(--el-border-radius-base));transition:var(--el-transition-box-shadow);border:none}.el-textarea__inner::-moz-placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-textarea__inner:-ms-input-placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-textarea__inner::placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-textarea__inner:hover{box-shadow:0 0 0 1px var(--el-input-hover-border-color) inset}.el-textarea__inner:focus{outline:0;box-shadow:0 0 0 1px var(--el-input-focus-border-color) inset}.el-textarea .el-input__count{color:var(--el-color-info);background:var(--el-fill-color-blank);position:absolute;font-size:12px;line-height:14px;bottom:5px;right:10px}.el-textarea.is-disabled .el-textarea__inner{background-color:var(--el-disabled-bg-color);border-color:var(--el-disabled-border-color);color:var(--el-disabled-text-color);cursor:not-allowed}.el-textarea.is-disabled .el-textarea__inner::-moz-placeholder{color:var(--el-text-color-placeholder)}.el-textarea.is-disabled .el-textarea__inner:-ms-input-placeholder{color:var(--el-text-color-placeholder)}.el-textarea.is-disabled .el-textarea__inner::placeholder{color:var(--el-text-color-placeholder)}.el-textarea.is-exceed .el-textarea__inner{border-color:var(--el-color-danger)}.el-textarea.is-exceed .el-input__count{color:var(--el-color-danger)}.el-input{--el-input-text-color:var(--el-text-color-regular);--el-input-border:var(--el-border);--el-input-hover-border:var(--el-border-color-hover);--el-input-focus-border:var(--el-color-primary);--el-input-transparent-border:0 0 0 1px transparent inset;--el-input-border-color:var(--el-border-color);--el-input-border-radius:var(--el-border-radius-base);--el-input-bg-color:var(--el-fill-color-blank);--el-input-icon-color:var(--el-text-color-placeholder);--el-input-placeholder-color:var(--el-text-color-placeholder);--el-input-hover-border-color:var(--el-border-color-hover);--el-input-clear-hover-color:var(--el-text-color-secondary);--el-input-focus-border-color:var(--el-color-primary)}.el-input{--el-input-height:var(--el-component-size);position:relative;font-size:var(--el-font-size-base);display:inline-flex;width:100%;line-height:var(--el-input-height);box-sizing:border-box;vertical-align:middle}.el-input::-webkit-scrollbar{z-index:11;width:6px}.el-input::-webkit-scrollbar:horizontal{height:6px}.el-input::-webkit-scrollbar-thumb{border-radius:5px;width:6px;background:var(--el-text-color-disabled)}.el-input::-webkit-scrollbar-corner{background:var(--el-fill-color-blank)}.el-input::-webkit-scrollbar-track{background:var(--el-fill-color-blank)}.el-input::-webkit-scrollbar-track-piece{background:var(--el-fill-color-blank);width:6px}.el-input .el-input__clear,.el-input .el-input__password{color:var(--el-input-icon-color);font-size:14px;cursor:pointer}.el-input .el-input__clear:hover,.el-input .el-input__password:hover{color:var(--el-input-clear-hover-color)}.el-input .el-input__count{height:100%;display:inline-flex;align-items:center;color:var(--el-color-info);font-size:12px}.el-input .el-input__count .el-input__count-inner{background:var(--el-fill-color-blank);line-height:initial;display:inline-block;padding-left:8px}.el-input__wrapper{display:inline-flex;flex-grow:1;align-items:center;justify-content:center;padding:1px 11px;background-color:var(--el-input-bg-color,var(--el-fill-color-blank));background-image:none;border-radius:var(--el-input-border-radius,var(--el-border-radius-base));transition:var(--el-transition-box-shadow);box-shadow:0 0 0 1px var(--el-input-border-color,var(--el-border-color)) inset}.el-input__wrapper:hover{box-shadow:0 0 0 1px var(--el-input-hover-border-color) inset}.el-input__wrapper.is-focus{box-shadow:0 0 0 1px var(--el-input-focus-border-color) inset}.el-input__inner{--el-input-inner-height:calc(var(--el-input-height, 32px) - 2px);width:100%;flex-grow:1;-webkit-appearance:none;color:var(--el-input-text-color,var(--el-text-color-regular));font-size:inherit;height:var(--el-input-inner-height);line-height:var(--el-input-inner-height);padding:0;outline:0;border:none;background:0 0;box-sizing:border-box}.el-input__inner:focus{outline:0}.el-input__inner::-moz-placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-input__inner:-ms-input-placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-input__inner::placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-input__inner[type=password]::-ms-reveal{display:none}.el-input__prefix{display:inline-flex;white-space:nowrap;flex-shrink:0;flex-wrap:nowrap;height:100%;text-align:center;color:var(--el-input-icon-color,var(--el-text-color-placeholder));transition:all var(--el-transition-duration);pointer-events:none}.el-input__prefix-inner{pointer-events:all;display:inline-flex;align-items:center;justify-content:center}.el-input__prefix-inner>:last-child{margin-right:8px}.el-input__prefix-inner>:first-child,.el-input__prefix-inner>:first-child.el-input__icon{margin-left:0}.el-input__suffix{display:inline-flex;white-space:nowrap;flex-shrink:0;flex-wrap:nowrap;height:100%;text-align:center;color:var(--el-input-icon-color,var(--el-text-color-placeholder));transition:all var(--el-transition-duration);pointer-events:none}.el-input__suffix-inner{pointer-events:all;display:inline-flex;align-items:center;justify-content:center}.el-input__suffix-inner>:first-child{margin-left:8px}.el-input .el-input__icon{height:inherit;line-height:inherit;display:flex;justify-content:center;align-items:center;transition:all var(--el-transition-duration);margin-left:8px}.el-input__validateIcon{pointer-events:none}.el-input.is-active .el-input__wrapper{box-shadow:0 0 0 1px var(--el-input-focus-color,) inset}.el-input.is-disabled{cursor:not-allowed}.el-input.is-disabled .el-input__wrapper{background-color:var(--el-disabled-bg-color);box-shadow:0 0 0 1px var(--el-disabled-border-color) inset}.el-input.is-disabled .el-input__inner{color:var(--el-disabled-text-color);-webkit-text-fill-color:var(--el-disabled-text-color);cursor:not-allowed}.el-input.is-disabled .el-input__inner::-moz-placeholder{color:var(--el-text-color-placeholder)}.el-input.is-disabled .el-input__inner:-ms-input-placeholder{color:var(--el-text-color-placeholder)}.el-input.is-disabled .el-input__inner::placeholder{color:var(--el-text-color-placeholder)}.el-input.is-disabled .el-input__icon{cursor:not-allowed}.el-input.is-exceed .el-input__wrapper{box-shadow:0 0 0 1px var(--el-color-danger) inset}.el-input.is-exceed .el-input__suffix .el-input__count{color:var(--el-color-danger)}.el-input--large{--el-input-height:var(--el-component-size-large);font-size:14px}.el-input--large .el-input__wrapper{padding:1px 15px}.el-input--large .el-input__inner{--el-input-inner-height:calc(var(--el-input-height, 40px) - 2px)}.el-input--small{--el-input-height:var(--el-component-size-small);font-size:12px}.el-input--small .el-input__wrapper{padding:1px 7px}.el-input--small .el-input__inner{--el-input-inner-height:calc(var(--el-input-height, 24px) - 2px)}.el-input-group{display:inline-flex;width:100%;align-items:stretch}.el-input-group__append,.el-input-group__prepend{background-color:var(--el-fill-color-light);color:var(--el-color-info);position:relative;display:inline-flex;align-items:center;justify-content:center;min-height:100%;border-radius:var(--el-input-border-radius);padding:0 20px;white-space:nowrap}.el-input-group__append:focus,.el-input-group__prepend:focus{outline:0}.el-input-group__append .el-button,.el-input-group__append .el-select,.el-input-group__prepend .el-button,.el-input-group__prepend .el-select{display:inline-block;margin:0 -20px}.el-input-group__append button.el-button,.el-input-group__append button.el-button:hover,.el-input-group__append div.el-select .el-input__wrapper,.el-input-group__append div.el-select:hover .el-input__wrapper,.el-input-group__prepend button.el-button,.el-input-group__prepend button.el-button:hover,.el-input-group__prepend div.el-select .el-input__wrapper,.el-input-group__prepend div.el-select:hover .el-input__wrapper{border-color:transparent;background-color:transparent;color:inherit}.el-input-group__append .el-button,.el-input-group__append .el-input,.el-input-group__prepend .el-button,.el-input-group__prepend .el-input{font-size:inherit}.el-input-group__prepend{border-right:0;border-top-right-radius:0;border-bottom-right-radius:0;box-shadow:1px 0 0 0 var(--el-input-border-color) inset,0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset}.el-input-group__append{border-left:0;border-top-left-radius:0;border-bottom-left-radius:0;box-shadow:0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset,-1px 0 0 0 var(--el-input-border-color) inset}.el-input-group--prepend>.el-input__wrapper{border-top-left-radius:0;border-bottom-left-radius:0}.el-input-group--prepend .el-input-group__prepend .el-select .el-input .el-input__inner{box-shadow:none!important}.el-input-group--prepend .el-input-group__prepend .el-select .el-input .el-input__wrapper{border-top-right-radius:0;border-bottom-right-radius:0;box-shadow:1px 0 0 0 var(--el-input-border-color) inset,0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset}.el-input-group--prepend .el-input-group__prepend .el-select .el-input.is-focus .el-input__inner{box-shadow:none!important}.el-input-group--prepend .el-input-group__prepend .el-select .el-input.is-focus .el-input__wrapper{box-shadow:1px 0 0 0 var(--el-input-focus-border-color) inset,1px 0 0 0 var(--el-input-focus-border-color),0 1px 0 0 var(--el-input-focus-border-color) inset,0 -1px 0 0 var(--el-input-focus-border-color) inset!important;z-index:2}.el-input-group--prepend .el-input-group__prepend .el-select .el-input.is-focus .el-input__wrapper:focus{outline:0;z-index:2;box-shadow:1px 0 0 0 var(--el-input-focus-border-color) inset,1px 0 0 0 var(--el-input-focus-border-color),0 1px 0 0 var(--el-input-focus-border-color) inset,0 -1px 0 0 var(--el-input-focus-border-color) inset!important}.el-input-group--prepend .el-input-group__prepend .el-select:hover .el-input__inner{box-shadow:none!important}.el-input-group--prepend .el-input-group__prepend .el-select:hover .el-input__wrapper{z-index:1;box-shadow:1px 0 0 0 var(--el-input-hover-border-color) inset,1px 0 0 0 var(--el-input-hover-border-color),0 1px 0 0 var(--el-input-hover-border-color) inset,0 -1px 0 0 var(--el-input-hover-border-color) inset!important}.el-input-group--append>.el-input__wrapper{border-top-right-radius:0;border-bottom-right-radius:0}.el-input-group--append .el-input-group__append .el-select .el-input .el-input__inner{box-shadow:none!important}.el-input-group--append .el-input-group__append .el-select .el-input .el-input__wrapper{border-top-left-radius:0;border-bottom-left-radius:0;box-shadow:0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset,-1px 0 0 0 var(--el-input-border-color) inset}.el-input-group--append .el-input-group__append .el-select .el-input.is-focus .el-input__inner{box-shadow:none!important}.el-input-group--append .el-input-group__append .el-select .el-input.is-focus .el-input__wrapper{z-index:2;box-shadow:-1px 0 0 0 var(--el-input-focus-border-color),-1px 0 0 0 var(--el-input-focus-border-color) inset,0 1px 0 0 var(--el-input-focus-border-color) inset,0 -1px 0 0 var(--el-input-focus-border-color) inset!important}.el-input-group--append .el-input-group__append .el-select:hover .el-input__inner{box-shadow:none!important}.el-input-group--append .el-input-group__append .el-select:hover .el-input__wrapper{z-index:1;box-shadow:-1px 0 0 0 var(--el-input-hover-border-color),-1px 0 0 0 var(--el-input-hover-border-color) inset,0 1px 0 0 var(--el-input-hover-border-color) inset,0 -1px 0 0 var(--el-input-hover-border-color) inset!important}.el-tag{--el-tag-font-size:12px;--el-tag-border-radius:4px;--el-tag-border-radius-rounded:9999px}.el-tag{--el-tag-bg-color:var(--el-color-primary-light-9);--el-tag-border-color:var(--el-color-primary-light-8);--el-tag-hover-color:var(--el-color-primary);--el-tag-text-color:var(--el-color-primary);background-color:var(--el-tag-bg-color);border-color:var(--el-tag-border-color);color:var(--el-tag-text-color);display:inline-flex;justify-content:center;align-items:center;height:24px;padding:0 9px;font-size:var(--el-tag-font-size);line-height:1;border-width:1px;border-style:solid;border-radius:var(--el-tag-border-radius);box-sizing:border-box;white-space:nowrap;--el-icon-size:14px}.el-tag.el-tag--primary{--el-tag-bg-color:var(--el-color-primary-light-9);--el-tag-border-color:var(--el-color-primary-light-8);--el-tag-hover-color:var(--el-color-primary)}.el-tag.el-tag--success{--el-tag-bg-color:var(--el-color-success-light-9);--el-tag-border-color:var(--el-color-success-light-8);--el-tag-hover-color:var(--el-color-success)}.el-tag.el-tag--warning{--el-tag-bg-color:var(--el-color-warning-light-9);--el-tag-border-color:var(--el-color-warning-light-8);--el-tag-hover-color:var(--el-color-warning)}.el-tag.el-tag--danger{--el-tag-bg-color:var(--el-color-danger-light-9);--el-tag-border-color:var(--el-color-danger-light-8);--el-tag-hover-color:var(--el-color-danger)}.el-tag.el-tag--error{--el-tag-bg-color:var(--el-color-error-light-9);--el-tag-border-color:var(--el-color-error-light-8);--el-tag-hover-color:var(--el-color-error)}.el-tag.el-tag--info{--el-tag-bg-color:var(--el-color-info-light-9);--el-tag-border-color:var(--el-color-info-light-8);--el-tag-hover-color:var(--el-color-info)}.el-tag.el-tag--primary{--el-tag-text-color:var(--el-color-primary)}.el-tag.el-tag--success{--el-tag-text-color:var(--el-color-success)}.el-tag.el-tag--warning{--el-tag-text-color:var(--el-color-warning)}.el-tag.el-tag--danger{--el-tag-text-color:var(--el-color-danger)}.el-tag.el-tag--error{--el-tag-text-color:var(--el-color-error)}.el-tag.el-tag--info{--el-tag-text-color:var(--el-color-info)}.el-tag.is-hit{border-color:var(--el-color-primary)}.el-tag.is-round{border-radius:var(--el-tag-border-radius-rounded)}.el-tag .el-tag__close{color:var(--el-tag-text-color)}.el-tag .el-tag__close:hover{color:var(--el-color-white);background-color:var(--el-tag-hover-color)}.el-tag .el-icon{border-radius:50%;cursor:pointer;font-size:calc(var(--el-icon-size) - 2px);height:var(--el-icon-size);width:var(--el-icon-size)}.el-tag .el-tag__close{margin-left:6px}.el-tag--dark{--el-tag-bg-color:var(--el-color-primary);--el-tag-border-color:var(--el-color-primary);--el-tag-hover-color:var(--el-color-primary-light-3);--el-tag-text-color:var(--el-color-white)}.el-tag--dark.el-tag--primary{--el-tag-bg-color:var(--el-color-primary);--el-tag-border-color:var(--el-color-primary);--el-tag-hover-color:var(--el-color-primary-light-3)}.el-tag--dark.el-tag--success{--el-tag-bg-color:var(--el-color-success);--el-tag-border-color:var(--el-color-success);--el-tag-hover-color:var(--el-color-success-light-3)}.el-tag--dark.el-tag--warning{--el-tag-bg-color:var(--el-color-warning);--el-tag-border-color:var(--el-color-warning);--el-tag-hover-color:var(--el-color-warning-light-3)}.el-tag--dark.el-tag--danger{--el-tag-bg-color:var(--el-color-danger);--el-tag-border-color:var(--el-color-danger);--el-tag-hover-color:var(--el-color-danger-light-3)}.el-tag--dark.el-tag--error{--el-tag-bg-color:var(--el-color-error);--el-tag-border-color:var(--el-color-error);--el-tag-hover-color:var(--el-color-error-light-3)}.el-tag--dark.el-tag--info{--el-tag-bg-color:var(--el-color-info);--el-tag-border-color:var(--el-color-info);--el-tag-hover-color:var(--el-color-info-light-3)}.el-tag--dark.el-tag--primary,.el-tag--dark.el-tag--success,.el-tag--dark.el-tag--warning,.el-tag--dark.el-tag--danger,.el-tag--dark.el-tag--error,.el-tag--dark.el-tag--info{--el-tag-text-color:var(--el-color-white)}.el-tag--plain{--el-tag-border-color:var(--el-color-primary-light-5);--el-tag-hover-color:var(--el-color-primary);--el-tag-bg-color:var(--el-fill-color-blank)}.el-tag--plain.el-tag--primary{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-primary-light-5);--el-tag-hover-color:var(--el-color-primary)}.el-tag--plain.el-tag--success{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-success-light-5);--el-tag-hover-color:var(--el-color-success)}.el-tag--plain.el-tag--warning{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-warning-light-5);--el-tag-hover-color:var(--el-color-warning)}.el-tag--plain.el-tag--danger{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-danger-light-5);--el-tag-hover-color:var(--el-color-danger)}.el-tag--plain.el-tag--error{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-error-light-5);--el-tag-hover-color:var(--el-color-error)}.el-tag--plain.el-tag--info{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-info-light-5);--el-tag-hover-color:var(--el-color-info)}.el-tag.is-closable{padding-right:5px}.el-tag--large{padding:0 11px;height:32px;--el-icon-size:16px}.el-tag--large .el-tag__close{margin-left:8px}.el-tag--large.is-closable{padding-right:7px}.el-tag--small{padding:0 7px;height:20px;--el-icon-size:12px}.el-tag--small .el-tag__close{margin-left:4px}.el-tag--small.is-closable{padding-right:3px}.el-tag--small .el-icon-close{transform:scale(.8)}.el-tag.el-tag--primary.is-hit{border-color:var(--el-color-primary)}.el-tag.el-tag--success.is-hit{border-color:var(--el-color-success)}.el-tag.el-tag--warning.is-hit{border-color:var(--el-color-warning)}.el-tag.el-tag--danger.is-hit{border-color:var(--el-color-danger)}.el-tag.el-tag--error.is-hit{border-color:var(--el-color-error)}.el-tag.el-tag--info.is-hit{border-color:var(--el-color-info)}.el-select-dropdown__item{font-size:var(--el-font-size-base);padding:0 32px 0 20px;position:relative;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--el-text-color-regular);height:34px;line-height:34px;box-sizing:border-box;cursor:pointer}.el-select-dropdown__item.is-disabled{color:var(--el-text-color-placeholder);cursor:not-allowed}.el-select-dropdown__item.hover,.el-select-dropdown__item:hover{background-color:var(--el-fill-color-light)}.el-select-dropdown__item.selected{color:var(--el-color-primary);font-weight:700}.el-select-group{margin:0;padding:0}.el-select-group__wrap{position:relative;list-style:none;margin:0;padding:0}.el-select-group__wrap:not(:last-of-type){padding-bottom:24px}.el-select-group__wrap:not(:last-of-type):after{content:"";position:absolute;display:block;left:20px;right:20px;bottom:12px;height:1px;background:var(--el-border-color-light)}.el-select-group__split-dash{position:absolute;left:20px;right:20px;height:1px;background:var(--el-border-color-light)}.el-select-group__title{padding-left:20px;font-size:12px;color:var(--el-color-info);line-height:30px}.el-select-group .el-select-dropdown__item{padding-left:20px}.el-scrollbar{--el-scrollbar-opacity:.3;--el-scrollbar-bg-color:var(--el-text-color-secondary);--el-scrollbar-hover-opacity:.5;--el-scrollbar-hover-bg-color:var(--el-text-color-secondary)}.el-scrollbar{overflow:hidden;position:relative;height:100%}.el-scrollbar__wrap{overflow:auto;height:100%}.el-scrollbar__wrap--hidden-default{scrollbar-width:none}.el-scrollbar__wrap--hidden-default::-webkit-scrollbar{display:none}.el-scrollbar__thumb{position:relative;display:block;width:0;height:0;cursor:pointer;border-radius:inherit;background-color:var(--el-scrollbar-bg-color,var(--el-text-color-secondary));transition:var(--el-transition-duration) background-color;opacity:var(--el-scrollbar-opacity,.3)}.el-scrollbar__thumb:hover{background-color:var(--el-scrollbar-hover-bg-color,var(--el-text-color-secondary));opacity:var(--el-scrollbar-hover-opacity,.5)}.el-scrollbar__bar{position:absolute;right:2px;bottom:2px;z-index:1;border-radius:4px}.el-scrollbar__bar.is-vertical{width:6px;top:2px}.el-scrollbar__bar.is-vertical>div{width:100%}.el-scrollbar__bar.is-horizontal{height:6px;left:2px}.el-scrollbar__bar.is-horizontal>div{height:100%}.el-scrollbar-fade-enter-active{transition:opacity .34s ease-out}.el-scrollbar-fade-leave-active{transition:opacity .12s ease-out}.el-scrollbar-fade-enter-from,.el-scrollbar-fade-leave-active{opacity:0}.el-select-dropdown{z-index:calc(var(--el-index-top) + 1);border-radius:var(--el-border-radius-base);box-sizing:border-box}.el-select-dropdown.is-multiple .el-select-dropdown__item.selected{color:var(--el-color-primary);background-color:var(--el-bg-color-overlay)}.el-select-dropdown.is-multiple .el-select-dropdown__item.selected.hover{background-color:var(--el-fill-color-light)}.el-select-dropdown.is-multiple .el-select-dropdown__item.selected:after{content:"";position:absolute;top:50%;right:20px;border-top:none;border-right:none;background-repeat:no-repeat;background-position:center;background-color:var(--el-color-primary);-webkit-mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;mask-size:100% 100%;-webkit-mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;-webkit-mask-size:100% 100%;transform:translateY(-50%);width:12px;height:12px}.el-select-dropdown.is-multiple .el-select-dropdown__item.selected.is-disabled:after{background-color:var(--el-text-color-disabled)}.el-select-dropdown .el-select-dropdown__option-item.is-selected:after{content:"";position:absolute;top:50%;right:20px;border-top:none;border-right:none;background-repeat:no-repeat;background-position:center;background-color:var(--el-color-primary);-webkit-mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;mask-size:100% 100%;-webkit-mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;-webkit-mask-size:100% 100%;transform:translateY(-50%);width:12px;height:12px}.el-select-dropdown .el-scrollbar.is-empty .el-select-dropdown__list{padding:0}.el-select-dropdown .el-select-dropdown__item.is-disabled:hover{background-color:unset}.el-select-dropdown .el-select-dropdown__item.is-disabled.selected{color:var(--el-text-color-disabled)}.el-select-dropdown__empty{padding:10px 0;margin:0;text-align:center;color:var(--el-text-color-secondary);font-size:var(--el-select-font-size)}.el-select-dropdown__wrap{max-height:274px}.el-select-dropdown__list{list-style:none;padding:6px 0;margin:0;box-sizing:border-box}.el-select{--el-select-border-color-hover:var(--el-border-color-hover);--el-select-disabled-border:var(--el-disabled-border-color);--el-select-font-size:var(--el-font-size-base);--el-select-close-hover-color:var(--el-text-color-secondary);--el-select-input-color:var(--el-text-color-placeholder);--el-select-multiple-input-color:var(--el-text-color-regular);--el-select-input-focus-border-color:var(--el-color-primary);--el-select-input-font-size:14px}.el-select{display:inline-block;position:relative;vertical-align:middle;line-height:32px}.el-select__popper.el-popper{background:var(--el-bg-color-overlay);border:1px solid var(--el-border-color-light);box-shadow:var(--el-box-shadow-light)}.el-select__popper.el-popper .el-popper__arrow:before{border:1px solid var(--el-border-color-light)}.el-select__popper.el-popper[data-popper-placement^=top] .el-popper__arrow:before{border-top-color:transparent;border-left-color:transparent}.el-select__popper.el-popper[data-popper-placement^=bottom] .el-popper__arrow:before{border-bottom-color:transparent;border-right-color:transparent}.el-select__popper.el-popper[data-popper-placement^=left] .el-popper__arrow:before{border-left-color:transparent;border-bottom-color:transparent}.el-select__popper.el-popper[data-popper-placement^=right] .el-popper__arrow:before{border-right-color:transparent;border-top-color:transparent}.el-select .el-select-tags-wrapper.has-prefix{margin-left:6px}.el-select--large{line-height:40px}.el-select--large .el-select-tags-wrapper.has-prefix{margin-left:8px}.el-select--small{line-height:24px}.el-select--small .el-select-tags-wrapper.has-prefix{margin-left:4px}.el-select .el-select__tags>span{display:inline-block}.el-select:hover:not(.el-select--disabled) .el-input__wrapper{box-shadow:0 0 0 1px var(--el-select-border-color-hover) inset}.el-select .el-select__tags-text{display:inline-block;line-height:normal;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.el-select .el-input__wrapper{cursor:pointer}.el-select .el-input__wrapper.is-focus{box-shadow:0 0 0 1px var(--el-select-input-focus-border-color) inset!important}.el-select .el-input__inner{cursor:pointer}.el-select .el-input{display:flex}.el-select .el-input .el-select__caret{color:var(--el-select-input-color);font-size:var(--el-select-input-font-size);transition:transform var(--el-transition-duration);transform:rotate(0);cursor:pointer}.el-select .el-input .el-select__caret.is-reverse{transform:rotate(-180deg)}.el-select .el-input .el-select__caret.is-show-close{font-size:var(--el-select-font-size);text-align:center;transform:rotate(0);border-radius:var(--el-border-radius-circle);color:var(--el-select-input-color);transition:var(--el-transition-color)}.el-select .el-input .el-select__caret.is-show-close:hover{color:var(--el-select-close-hover-color)}.el-select .el-input .el-select__caret.el-icon{position:relative;height:inherit;z-index:2}.el-select .el-input.is-disabled .el-input__wrapper{cursor:not-allowed}.el-select .el-input.is-disabled .el-input__wrapper:hover{box-shadow:0 0 0 1px var(--el-select-disabled-border) inset}.el-select .el-input.is-disabled .el-input__inner,.el-select .el-input.is-disabled .el-select__caret{cursor:not-allowed}.el-select .el-input.is-focus .el-input__wrapper{box-shadow:0 0 0 1px var(--el-select-input-focus-border-color) inset!important}.el-select__input{border:none;outline:0;padding:0;margin-left:15px;color:var(--el-select-multiple-input-color);font-size:var(--el-select-font-size);-webkit-appearance:none;-moz-appearance:none;appearance:none;height:28px;background-color:transparent}.el-select__input.is-small{height:14px}.el-select__close{cursor:pointer;position:absolute;top:8px;z-index:var(--el-index-top);right:25px;color:var(--el-select-input-color);line-height:18px;font-size:var(--el-select-input-font-size)}.el-select__close:hover{color:var(--el-select-close-hover-color)}.el-select__tags{position:absolute;line-height:normal;top:50%;transform:translateY(-50%);white-space:normal;z-index:var(--el-index-normal);display:flex;align-items:center;flex-wrap:wrap}.el-select__collapse-tags{white-space:normal;z-index:var(--el-index-normal);display:flex;align-items:center;flex-wrap:wrap}.el-select__collapse-tag{line-height:inherit;height:inherit;display:flex}.el-select .el-select__tags .el-tag{box-sizing:border-box;border-color:transparent;margin:2px 6px 2px 0}.el-select .el-select__tags .el-tag:last-child{margin-right:0}.el-select .el-select__tags .el-tag .el-icon-close{background-color:var(--el-text-color-placeholder);right:-7px;top:0;color:#fff}.el-select .el-select__tags .el-tag .el-icon-close:hover{background-color:var(--el-text-color-secondary)}.el-select .el-select__tags .el-tag .el-icon-close:before{display:block;transform:translateY(.5px)}.el-select .el-select__tags .el-tag--info{background-color:var(--el-fill-color)}.el-input-number{position:relative;display:inline-block;width:150px;line-height:30px}.el-input-number .el-input__wrapper{padding-left:42px;padding-right:42px}.el-input-number .el-input__inner{-webkit-appearance:none;-moz-appearance:textfield;text-align:center;line-height:1}.el-input-number .el-input__inner::-webkit-inner-spin-button,.el-input-number .el-input__inner::-webkit-outer-spin-button{margin:0;-webkit-appearance:none}.el-input-number__decrease,.el-input-number__increase{display:flex;justify-content:center;align-items:center;height:auto;position:absolute;z-index:1;top:1px;bottom:1px;width:32px;background:var(--el-fill-color-light);color:var(--el-text-color-regular);cursor:pointer;font-size:13px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-input-number__decrease:hover,.el-input-number__increase:hover{color:var(--el-color-primary)}.el-input-number__decrease:hover~.el-input:not(.is-disabled) .el-input_wrapper,.el-input-number__increase:hover~.el-input:not(.is-disabled) .el-input_wrapper{box-shadow:0 0 0 1px var(--el-input-focus-border-color,var(--el-color-primary)) inset}.el-input-number__decrease.is-disabled,.el-input-number__increase.is-disabled{color:var(--el-disabled-text-color);cursor:not-allowed}.el-input-number__increase{right:1px;border-radius:0 var(--el-border-radius-base) var(--el-border-radius-base) 0;border-left:var(--el-border)}.el-input-number__decrease{left:1px;border-radius:var(--el-border-radius-base) 0 0 var(--el-border-radius-base);border-right:var(--el-border)}.el-input-number.is-disabled .el-input-number__decrease,.el-input-number.is-disabled .el-input-number__increase{border-color:var(--el-disabled-border-color);color:var(--el-disabled-border-color)}.el-input-number.is-disabled .el-input-number__decrease:hover,.el-input-number.is-disabled .el-input-number__increase:hover{color:var(--el-disabled-border-color);cursor:not-allowed}.el-input-number--large{width:180px;line-height:38px}.el-input-number--large .el-input-number__decrease,.el-input-number--large .el-input-number__increase{width:40px;font-size:14px}.el-input-number--large .el-input__wrapper{padding-left:47px;padding-right:47px}.el-input-number--small{width:120px;line-height:22px}.el-input-number--small .el-input-number__decrease,.el-input-number--small .el-input-number__increase{width:24px;font-size:12px}.el-input-number--small .el-input__wrapper{padding-left:31px;padding-right:31px}.el-input-number--small .el-input-number__decrease [class*=el-icon],.el-input-number--small .el-input-number__increase [class*=el-icon]{transform:scale(.9)}.el-input-number.is-without-controls .el-input__wrapper{padding-left:15px;padding-right:15px}.el-input-number.is-controls-right .el-input__wrapper{padding-left:15px;padding-right:42px}.el-input-number.is-controls-right .el-input-number__decrease,.el-input-number.is-controls-right .el-input-number__increase{--el-input-number-controls-height:15px;height:var(--el-input-number-controls-height);line-height:var(--el-input-number-controls-height)}.el-input-number.is-controls-right .el-input-number__decrease [class*=el-icon],.el-input-number.is-controls-right .el-input-number__increase [class*=el-icon]{transform:scale(.8)}.el-input-number.is-controls-right .el-input-number__increase{bottom:auto;left:auto;border-radius:0 var(--el-border-radius-base) 0 0;border-bottom:var(--el-border)}.el-input-number.is-controls-right .el-input-number__decrease{right:1px;top:auto;left:auto;border-right:none;border-left:var(--el-border);border-radius:0 0 var(--el-border-radius-base) 0}.el-input-number.is-controls-right[class*=large] [class*=decrease],.el-input-number.is-controls-right[class*=large] [class*=increase]{--el-input-number-controls-height:19px}.el-input-number.is-controls-right[class*=small] [class*=decrease],.el-input-number.is-controls-right[class*=small] [class*=increase]{--el-input-number-controls-height:11px}.el-progress{position:relative;line-height:1;display:flex;align-items:center}.el-progress__text{font-size:14px;color:var(--el-text-color-regular);margin-left:5px;min-width:50px;line-height:1}.el-progress__text i{vertical-align:middle;display:block}.el-progress--circle,.el-progress--dashboard{display:inline-block}.el-progress--circle .el-progress__text,.el-progress--dashboard .el-progress__text{position:absolute;top:50%;left:0;width:100%;text-align:center;margin:0;transform:translateY(-50%)}.el-progress--circle .el-progress__text i,.el-progress--dashboard .el-progress__text i{vertical-align:middle;display:inline-block}.el-progress--without-text .el-progress__text{display:none}.el-progress--without-text .el-progress-bar{padding-right:0;margin-right:0;display:block}.el-progress--text-inside .el-progress-bar{padding-right:0;margin-right:0}.el-progress.is-success .el-progress-bar__inner{background-color:var(--el-color-success)}.el-progress.is-success .el-progress__text{color:var(--el-color-success)}.el-progress.is-warning .el-progress-bar__inner{background-color:var(--el-color-warning)}.el-progress.is-warning .el-progress__text{color:var(--el-color-warning)}.el-progress.is-exception .el-progress-bar__inner{background-color:var(--el-color-danger)}.el-progress.is-exception .el-progress__text{color:var(--el-color-danger)}.el-progress-bar{flex-grow:1;box-sizing:border-box}.el-progress-bar__outer{height:6px;border-radius:100px;background-color:var(--el-border-color-lighter);overflow:hidden;position:relative;vertical-align:middle}.el-progress-bar__inner{position:absolute;left:0;top:0;height:100%;background-color:var(--el-color-primary);text-align:right;border-radius:100px;line-height:1;white-space:nowrap;transition:width .6s ease}.el-progress-bar__inner:after{display:inline-block;content:"";height:100%;vertical-align:middle}.el-progress-bar__inner--indeterminate{transform:translateZ(0);-webkit-animation:indeterminate 3s infinite;animation:indeterminate 3s infinite}.el-progress-bar__innerText{display:inline-block;vertical-align:middle;color:#fff;font-size:12px;margin:0 5px}@-webkit-keyframes progress{0%{background-position:0 0}to{background-position:32px 0}}@keyframes progress{0%{background-position:0 0}to{background-position:32px 0}}@-webkit-keyframes indeterminate{0%{left:-100%}to{left:100%}}@keyframes indeterminate{0%{left:-100%}to{left:100%}}.batch-text[data-v-d7fade8b]{font-size:14px;color:var(--el-color-info);margin-bottom:8px;font-weight:500}.step-text[data-v-d7fade8b]{font-weight:500}.preview-container[data-v-d7fade8b]{margin-top:12px;display:flex;justify-content:center}.preview-img[data-v-d7fade8b]{max-width:200px;max-height:200px;min-width:64px;min-height:64px;width:auto;height:auto;border-radius:8px;box-shadow:0 4px 12px #00000026;border:1px solid var(--el-border-color-lighter);animation:fadeIn-d7fade8b .2s ease-in-out}@keyframes fadeIn-d7fade8b{0%{opacity:.6}to{opacity:1}}.view-images[data-v-d7fade8b],.gen-text[data-v-d7fade8b]{display:flex;align-items:center;justify-content:center;color:var(--el-color-info);font-weight:500;margin-top:8px;gap:8px}.gen-text[data-v-d7fade8b]{font-weight:400;min-height:40px}.view-images[data-v-d7fade8b]:hover{cursor:pointer;text-decoration:underline}.el-slider{--el-slider-main-bg-color:var(--el-color-primary);--el-slider-runway-bg-color:var(--el-border-color-light);--el-slider-stop-bg-color:var(--el-color-white);--el-slider-disabled-color:var(--el-text-color-placeholder);--el-slider-border-radius:3px;--el-slider-height:6px;--el-slider-button-size:20px;--el-slider-button-wrapper-size:36px;--el-slider-button-wrapper-offset:-15px}.el-slider{width:100%;height:32px;display:flex;align-items:center}.el-slider__runway{flex:1;height:var(--el-slider-height);background-color:var(--el-slider-runway-bg-color);border-radius:var(--el-slider-border-radius);position:relative;cursor:pointer}.el-slider__runway.show-input{margin-right:30px;width:auto}.el-slider__runway.is-disabled{cursor:default}.el-slider__runway.is-disabled .el-slider__bar{background-color:var(--el-slider-disabled-color)}.el-slider__runway.is-disabled .el-slider__button{border-color:var(--el-slider-disabled-color)}.el-slider__runway.is-disabled .el-slider__button-wrapper.hover,.el-slider__runway.is-disabled .el-slider__button-wrapper:hover,.el-slider__runway.is-disabled .el-slider__button-wrapper.dragging{cursor:not-allowed}.el-slider__runway.is-disabled .el-slider__button.dragging,.el-slider__runway.is-disabled .el-slider__button.hover,.el-slider__runway.is-disabled .el-slider__button:hover{transform:scale(1)}.el-slider__runway.is-disabled .el-slider__button.hover,.el-slider__runway.is-disabled .el-slider__button:hover,.el-slider__runway.is-disabled .el-slider__button.dragging{cursor:not-allowed}.el-slider__input{flex-shrink:0;width:130px}.el-slider__bar{height:var(--el-slider-height);background-color:var(--el-slider-main-bg-color);border-top-left-radius:var(--el-slider-border-radius);border-bottom-left-radius:var(--el-slider-border-radius);position:absolute}.el-slider__button-wrapper{height:var(--el-slider-button-wrapper-size);width:var(--el-slider-button-wrapper-size);position:absolute;z-index:1;top:var(--el-slider-button-wrapper-offset);transform:translate(-50%);background-color:transparent;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;line-height:normal;outline:0}.el-slider__button-wrapper:after{display:inline-block;content:"";height:100%;vertical-align:middle}.el-slider__button-wrapper.hover,.el-slider__button-wrapper:hover{cursor:-webkit-grab;cursor:grab}.el-slider__button-wrapper.dragging{cursor:-webkit-grabbing;cursor:grabbing}.el-slider__button{display:inline-block;width:var(--el-slider-button-size);height:var(--el-slider-button-size);vertical-align:middle;border:solid 2px var(--el-slider-main-bg-color);background-color:var(--el-color-white);border-radius:50%;box-sizing:border-box;transition:var(--el-transition-duration-fast);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-slider__button.dragging,.el-slider__button.hover,.el-slider__button:hover{transform:scale(1.2)}.el-slider__button.hover,.el-slider__button:hover{cursor:-webkit-grab;cursor:grab}.el-slider__button.dragging{cursor:-webkit-grabbing;cursor:grabbing}.el-slider__stop{position:absolute;height:var(--el-slider-height);width:var(--el-slider-height);border-radius:var(--el-border-radius-circle);background-color:var(--el-slider-stop-bg-color);transform:translate(-50%)}.el-slider__marks{top:0;left:12px;width:18px;height:100%}.el-slider__marks-text{position:absolute;transform:translate(-50%);font-size:14px;color:var(--el-color-info);margin-top:15px}.el-slider.is-vertical{position:relative;display:inline-flex;width:auto;height:100%;flex:0}.el-slider.is-vertical .el-slider__runway{width:var(--el-slider-height);height:100%;margin:0 16px}.el-slider.is-vertical .el-slider__bar{width:var(--el-slider-height);height:auto;border-radius:0 0 3px 3px}.el-slider.is-vertical .el-slider__button-wrapper{top:auto;left:var(--el-slider-button-wrapper-offset);transform:translateY(50%)}.el-slider.is-vertical .el-slider__stop{transform:translateY(50%)}.el-slider.is-vertical .el-slider__marks-text{margin-top:0;left:15px;transform:translateY(50%)}.el-slider--large{height:40px}.el-slider--small{height:24px}.align-vertical[data-v-ec7e7ec1]{display:flex;align-items:center;height:100%}.el-switch{--el-switch-on-color:var(--el-color-primary);--el-switch-off-color:var(--el-border-color)}.el-switch{display:inline-flex;align-items:center;position:relative;font-size:14px;line-height:20px;height:32px;vertical-align:middle}.el-switch.is-disabled .el-switch__core,.el-switch.is-disabled .el-switch__label{cursor:not-allowed}.el-switch__label{transition:var(--el-transition-duration-fast);height:20px;display:inline-block;font-size:14px;font-weight:500;cursor:pointer;vertical-align:middle;color:var(--el-text-color-primary)}.el-switch__label.is-active{color:var(--el-color-primary)}.el-switch__label--left{margin-right:10px}.el-switch__label--right{margin-left:10px}.el-switch__label *{line-height:1;font-size:14px;display:inline-block}.el-switch__label .el-icon{height:inherit}.el-switch__label .el-icon svg{vertical-align:middle}.el-switch__input{position:absolute;width:0;height:0;opacity:0;margin:0}.el-switch__input:focus-visible~.el-switch__core{outline:2px solid var(--el-switch-on-color);outline-offset:1px}.el-switch__core{margin:0;display:inline-block;position:relative;width:40px;height:20px;border:1px solid var(--el-switch-border-color,var(--el-switch-off-color));outline:0;border-radius:10px;box-sizing:border-box;background:var(--el-switch-off-color);cursor:pointer;transition:border-color var(--el-transition-duration),background-color var(--el-transition-duration);vertical-align:middle}.el-switch__core .el-switch__inner{position:absolute;top:1px;left:1px;transition:all var(--el-transition-duration);width:16px;height:16px;display:flex;justify-content:center;align-items:center;left:50%;white-space:nowrap}.el-switch__core .el-switch__inner .is-icon,.el-switch__core .el-switch__inner .is-text{color:var(--el-color-white);transition:opacity var(--el-transition-duration);position:absolute;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-switch__core .el-switch__action{position:absolute;top:1px;left:1px;border-radius:var(--el-border-radius-circle);transition:all var(--el-transition-duration);width:16px;height:16px;background-color:var(--el-color-white);display:flex;justify-content:center;align-items:center;color:var(--el-switch-off-color)}.el-switch__core .el-switch__action .is-icon,.el-switch__core .el-switch__action .is-text{transition:opacity var(--el-transition-duration);position:absolute;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-switch__core .is-text{font-size:12px}.el-switch__core .is-show{opacity:1}.el-switch__core .is-hide{opacity:0}.el-switch.is-checked .el-switch__core{border-color:var(--el-switch-border-color,var(--el-switch-on-color));background-color:var(--el-switch-on-color)}.el-switch.is-checked .el-switch__core .el-switch__action{left:100%;margin-left:-17px;color:var(--el-switch-on-color)}.el-switch.is-checked .el-switch__core .el-switch__inner{left:50%;white-space:nowrap;margin-left:-17px}.el-switch.is-disabled{opacity:.6}.el-switch--wide .el-switch__label.el-switch__label--left span{left:10px}.el-switch--wide .el-switch__label.el-switch__label--right span{right:10px}.el-switch .label-fade-enter-from,.el-switch .label-fade-leave-active{opacity:0}.el-switch--large{font-size:14px;line-height:24px;height:40px}.el-switch--large .el-switch__label{height:24px;font-size:14px}.el-switch--large .el-switch__label *{font-size:14px}.el-switch--large .el-switch__core{width:50px;height:24px;border-radius:12px}.el-switch--large .el-switch__core .el-switch__inner,.el-switch--large .el-switch__core .el-switch__action{width:20px;height:20px}.el-switch--large.is-checked .el-switch__core .el-switch__action,.el-switch--large.is-checked .el-switch__core .el-switch__inner{margin-left:-21px}.el-switch--small{font-size:12px;line-height:16px;height:24px}.el-switch--small .el-switch__label{height:16px;font-size:12px}.el-switch--small .el-switch__label *{font-size:12px}.el-switch--small .el-switch__core{width:30px;height:16px;border-radius:8px}.el-switch--small .el-switch__core .el-switch__inner,.el-switch--small .el-switch__core .el-switch__action{width:12px;height:12px}.el-switch--small.is-checked .el-switch__core .el-switch__action,.el-switch--small.is-checked .el-switch__core .el-switch__inner{margin-left:-13px}h3[data-v-cf07eac2]{margin:0}h4[data-v-cf07eac2],h5[data-v-cf07eac2]{margin-bottom:0}.tag-select[data-v-cf07eac2]{display:flex;justify-content:space-between;gap:32px;padding:0 8px;width:240px}.tag-select[data-v-cf07eac2]:hover{background-color:#646464!important}.trigger-select[data-v-cf07eac2]{width:30px;height:30px}[data-v-cf07eac2] .trigger-select .el-input__wrapper{padding:0}[data-v-cf07eac2] .trigger-select .el-input__suffix{width:100%}.el-carousel{--el-carousel-arrow-font-size:12px;--el-carousel-arrow-size:36px;--el-carousel-arrow-background:rgba(31, 45, 61, .11);--el-carousel-arrow-hover-background:rgba(31, 45, 61, .23);--el-carousel-indicator-width:30px;--el-carousel-indicator-height:2px;--el-carousel-indicator-padding-horizontal:4px;--el-carousel-indicator-padding-vertical:12px;--el-carousel-indicator-out-color:var(--el-border-color-hover);position:relative}.el-carousel--horizontal{overflow-x:hidden}.el-carousel--vertical{overflow-y:hidden}.el-carousel__container{position:relative;height:300px}.el-carousel__arrow{border:none;outline:0;padding:0;margin:0;height:var(--el-carousel-arrow-size);width:var(--el-carousel-arrow-size);cursor:pointer;transition:var(--el-transition-duration);border-radius:50%;background-color:var(--el-carousel-arrow-background);color:#fff;position:absolute;top:50%;z-index:10;transform:translateY(-50%);text-align:center;font-size:var(--el-carousel-arrow-font-size);display:inline-flex;justify-content:center;align-items:center}.el-carousel__arrow--left{left:16px}.el-carousel__arrow--right{right:16px}.el-carousel__arrow:hover{background-color:var(--el-carousel-arrow-hover-background)}.el-carousel__arrow i{cursor:pointer}.el-carousel__indicators{position:absolute;list-style:none;margin:0;padding:0;z-index:calc(var(--el-index-normal) + 1)}.el-carousel__indicators--horizontal{bottom:0;left:50%;transform:translate(-50%)}.el-carousel__indicators--vertical{right:0;top:50%;transform:translateY(-50%)}.el-carousel__indicators--outside{bottom:calc(var(--el-carousel-indicator-height) + var(--el-carousel-indicator-padding-vertical) * 2);text-align:center;position:static;transform:none}.el-carousel__indicators--outside .el-carousel__indicator:hover button{opacity:.64}.el-carousel__indicators--outside button{background-color:var(--el-carousel-indicator-out-color);opacity:.24}.el-carousel__indicators--labels{left:0;right:0;transform:none;text-align:center}.el-carousel__indicators--labels .el-carousel__button{height:auto;width:auto;padding:2px 18px;font-size:12px}.el-carousel__indicators--labels .el-carousel__indicator{padding:6px 4px}.el-carousel__indicator{background-color:transparent;cursor:pointer}.el-carousel__indicator:hover button{opacity:.72}.el-carousel__indicator--horizontal{display:inline-block;padding:var(--el-carousel-indicator-padding-vertical) var(--el-carousel-indicator-padding-horizontal)}.el-carousel__indicator--vertical{padding:var(--el-carousel-indicator-padding-horizontal) var(--el-carousel-indicator-padding-vertical)}.el-carousel__indicator--vertical .el-carousel__button{width:var(--el-carousel-indicator-height);height:calc(var(--el-carousel-indicator-width)/ 2)}.el-carousel__indicator.is-active button{opacity:1}.el-carousel__button{display:block;opacity:.48;width:var(--el-carousel-indicator-width);height:var(--el-carousel-indicator-height);background-color:#fff;border:none;outline:0;padding:0;margin:0;cursor:pointer;transition:var(--el-transition-duration)}.carousel-arrow-left-enter-from,.carousel-arrow-left-leave-active{transform:translateY(-50%) translate(-10px);opacity:0}.carousel-arrow-right-enter-from,.carousel-arrow-right-leave-active{transform:translateY(-50%) translate(10px);opacity:0}.el-carousel__item{position:absolute;top:0;left:0;width:100%;height:100%;display:inline-block;overflow:hidden;z-index:calc(var(--el-index-normal) - 1)}.el-carousel__item.is-active{z-index:calc(var(--el-index-normal) - 1)}.el-carousel__item.is-animating{transition:transform .4s ease-in-out}.el-carousel__item--card{width:50%;transition:transform .4s ease-in-out}.el-carousel__item--card.is-in-stage{cursor:pointer;z-index:var(--el-index-normal)}.el-carousel__item--card.is-in-stage.is-hover .el-carousel__mask,.el-carousel__item--card.is-in-stage:hover .el-carousel__mask{opacity:.12}.el-carousel__item--card.is-active{z-index:calc(var(--el-index-normal) + 1)}.el-carousel__mask{position:absolute;width:100%;height:100%;top:0;left:0;background-color:var(--el-color-white);opacity:.24;transition:var(--el-transition-duration-fast)}.el-divider{position:relative}.el-divider--horizontal{display:block;height:1px;width:100%;margin:24px 0;border-top:1px var(--el-border-color) var(--el-border-style)}.el-divider--vertical{display:inline-block;width:1px;height:1em;margin:0 8px;vertical-align:middle;position:relative;border-left:1px var(--el-border-color) var(--el-border-style)}.el-divider__text{position:absolute;background-color:var(--el-bg-color);padding:0 20px;font-weight:500;color:var(--el-text-color-primary);font-size:14px}.el-divider__text.is-left{left:20px;transform:translateY(-50%)}.el-divider__text.is-center{left:50%;transform:translate(-50%) translateY(-50%)}.el-divider__text.is-right{right:20px;transform:translateY(-50%)}.carousel-footer[data-v-ae935641]{position:absolute;bottom:24px;width:100%}.carousel[data-v-ae935641]{--el-carousel-indicator-padding-vertical: 4px;width:100%;margin:auto}.carousel-container[data-v-ae935641]{display:flex;width:100%;height:100%;overflow-y:auto}.back-to-generation[data-v-ae935641]{position:absolute;top:16px;left:16px;display:flex;align-items:center;justify-content:center;gap:8px;color:var(--el-color-info);font-weight:500;z-index:1}.back-to-generation[data-v-ae935641]:hover{cursor:pointer;text-decoration:underline}@media only screen and (max-width: 1280px){.carousel-footer[data-v-ae935641]{bottom:5px}.carousel-footer>.el-divider[data-v-ae935641]{margin:5px 0}}.el-upload{--el-upload-dragger-padding-horizontal:40px;--el-upload-dragger-padding-vertical:10px}.el-upload{display:inline-flex;justify-content:center;align-items:center;cursor:pointer;outline:0}.el-upload__input{display:none}.el-upload__tip{font-size:12px;color:var(--el-text-color-regular);margin-top:7px}.el-upload iframe{position:absolute;z-index:-1;top:0;left:0;opacity:0}.el-upload--picture-card{--el-upload-picture-card-size:148px;background-color:var(--el-fill-color-lighter);border:1px dashed var(--el-border-color-darker);border-radius:6px;box-sizing:border-box;width:var(--el-upload-picture-card-size);height:var(--el-upload-picture-card-size);cursor:pointer;vertical-align:top;display:inline-flex;justify-content:center;align-items:center}.el-upload--picture-card i{font-size:28px;color:var(--el-text-color-secondary)}.el-upload--picture-card:hover{border-color:var(--el-color-primary);color:var(--el-color-primary)}.el-upload.is-drag{display:block}.el-upload:focus{border-color:var(--el-color-primary);color:var(--el-color-primary)}.el-upload:focus .el-upload-dragger{border-color:var(--el-color-primary)}.el-upload-dragger{padding:var(--el-upload-dragger-padding-horizontal) var(--el-upload-dragger-padding-vertical);background-color:var(--el-fill-color-blank);border:1px dashed var(--el-border-color);border-radius:6px;box-sizing:border-box;text-align:center;cursor:pointer;position:relative;overflow:hidden}.el-upload-dragger .el-icon--upload{font-size:67px;color:var(--el-text-color-placeholder);margin-bottom:16px;line-height:50px}.el-upload-dragger+.el-upload__tip{text-align:center}.el-upload-dragger~.el-upload__files{border-top:var(--el-border);margin-top:7px;padding-top:5px}.el-upload-dragger .el-upload__text{color:var(--el-text-color-regular);font-size:14px;text-align:center}.el-upload-dragger .el-upload__text em{color:var(--el-color-primary);font-style:normal}.el-upload-dragger:hover{border-color:var(--el-color-primary)}.el-upload-dragger.is-dragover{padding:calc(var(--el-upload-dragger-padding-horizontal) - 1px) calc(var(--el-upload-dragger-padding-vertical) - 1px);background-color:var(--el-color-primary-light-9);border:2px dashed var(--el-color-primary)}.el-upload-list{margin:10px 0 0;padding:0;list-style:none;position:relative}.el-upload-list__item{transition:all .5s cubic-bezier(.55,0,.1,1);font-size:14px;color:var(--el-text-color-regular);margin-bottom:5px;position:relative;box-sizing:border-box;border-radius:4px;width:100%}.el-upload-list__item .el-progress{position:absolute;top:20px;width:100%}.el-upload-list__item .el-progress__text{position:absolute;right:0;top:-13px}.el-upload-list__item .el-progress-bar{margin-right:0;padding-right:0}.el-upload-list__item .el-icon--upload-success{color:var(--el-color-success)}.el-upload-list__item .el-icon--close{display:none;position:absolute;right:5px;top:50%;cursor:pointer;opacity:.75;color:var(--el-text-color-regular);transition:opacity var(--el-transition-duration);transform:translateY(-50%)}.el-upload-list__item .el-icon--close:hover{opacity:1;color:var(--el-color-primary)}.el-upload-list__item .el-icon--close-tip{display:none;position:absolute;top:1px;right:5px;font-size:12px;cursor:pointer;opacity:1;color:var(--el-color-primary);font-style:normal}.el-upload-list__item:hover{background-color:var(--el-fill-color-light)}.el-upload-list__item:hover .el-icon--close{display:inline-flex}.el-upload-list__item:hover .el-progress__text{display:none}.el-upload-list__item .el-upload-list__item-info{display:inline-flex;justify-content:center;flex-direction:column;width:calc(100% - 30px);margin-left:4px}.el-upload-list__item.is-success .el-upload-list__item-status-label{display:inline-flex}.el-upload-list__item.is-success .el-upload-list__item-name:focus,.el-upload-list__item.is-success .el-upload-list__item-name:hover{color:var(--el-color-primary);cursor:pointer}.el-upload-list__item.is-success:focus:not(:hover) .el-icon--close-tip{display:inline-block}.el-upload-list__item.is-success:active,.el-upload-list__item.is-success:not(.focusing):focus{outline-width:0}.el-upload-list__item.is-success:active .el-icon--close-tip,.el-upload-list__item.is-success:not(.focusing):focus .el-icon--close-tip{display:none}.el-upload-list__item.is-success:focus .el-upload-list__item-status-label,.el-upload-list__item.is-success:hover .el-upload-list__item-status-label{display:none;opacity:0}.el-upload-list.is-disabled .el-upload-list__item-status-label,.el-upload-list.is-disabled .el-upload-list__item:hover{display:block}.el-upload-list__item-name{color:var(--el-text-color-regular);display:inline-flex;text-align:center;align-items:center;padding:0 4px;transition:color var(--el-transition-duration);font-size:var(--el-font-size-base)}.el-upload-list__item-name .el-icon{margin-right:6px;color:var(--el-text-color-secondary)}.el-upload-list__item-file-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.el-upload-list__item-status-label{position:absolute;right:5px;top:0;line-height:inherit;display:none;height:100%;justify-content:center;align-items:center;transition:opacity var(--el-transition-duration)}.el-upload-list__item-delete{position:absolute;right:10px;top:0;font-size:12px;color:var(--el-text-color-regular);display:none}.el-upload-list__item-delete:hover{color:var(--el-color-primary)}.el-upload-list--picture-card{--el-upload-list-picture-card-size:148px;display:inline-flex;flex-wrap:wrap;margin:0}.el-upload-list--picture-card .el-upload-list__item{overflow:hidden;background-color:var(--el-fill-color-blank);border:1px solid var(--el-border-color);border-radius:6px;box-sizing:border-box;width:var(--el-upload-list-picture-card-size);height:var(--el-upload-list-picture-card-size);margin:0 8px 8px 0;padding:0;display:inline-flex}.el-upload-list--picture-card .el-upload-list__item .el-icon--check,.el-upload-list--picture-card .el-upload-list__item .el-icon--circle-check{color:#fff}.el-upload-list--picture-card .el-upload-list__item .el-icon--close{display:none}.el-upload-list--picture-card .el-upload-list__item:hover .el-upload-list__item-status-label{opacity:0;display:block}.el-upload-list--picture-card .el-upload-list__item:hover .el-progress__text{display:block}.el-upload-list--picture-card .el-upload-list__item .el-upload-list__item-name{display:none}.el-upload-list--picture-card .el-upload-list__item-thumbnail{width:100%;height:100%;-o-object-fit:contain;object-fit:contain}.el-upload-list--picture-card .el-upload-list__item-status-label{right:-15px;top:-6px;width:40px;height:24px;background:var(--el-color-success);text-align:center;transform:rotate(45deg)}.el-upload-list--picture-card .el-upload-list__item-status-label i{font-size:12px;margin-top:11px;transform:rotate(-45deg)}.el-upload-list--picture-card .el-upload-list__item-actions{position:absolute;width:100%;height:100%;left:0;top:0;cursor:default;display:inline-flex;justify-content:center;align-items:center;color:#fff;opacity:0;font-size:20px;background-color:var(--el-overlay-color-lighter);transition:opacity var(--el-transition-duration)}.el-upload-list--picture-card .el-upload-list__item-actions span{display:none;cursor:pointer}.el-upload-list--picture-card .el-upload-list__item-actions span+span{margin-left:1rem}.el-upload-list--picture-card .el-upload-list__item-actions .el-upload-list__item-delete{position:static;font-size:inherit;color:inherit}.el-upload-list--picture-card .el-upload-list__item-actions:hover{opacity:1}.el-upload-list--picture-card .el-upload-list__item-actions:hover span{display:inline-flex}.el-upload-list--picture-card .el-progress{top:50%;left:50%;transform:translate(-50%,-50%);bottom:auto;width:126px}.el-upload-list--picture-card .el-progress .el-progress__text{top:50%}.el-upload-list--picture .el-upload-list__item{overflow:hidden;z-index:0;background-color:var(--el-fill-color-blank);border:1px solid var(--el-border-color);border-radius:6px;box-sizing:border-box;margin-top:10px;padding:10px;display:flex;align-items:center}.el-upload-list--picture .el-upload-list__item .el-icon--check,.el-upload-list--picture .el-upload-list__item .el-icon--circle-check{color:#fff}.el-upload-list--picture .el-upload-list__item:hover .el-upload-list__item-status-label{opacity:0;display:block}.el-upload-list--picture .el-upload-list__item:hover .el-progress__text{display:block}.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name i{display:none}.el-upload-list--picture .el-upload-list__item .el-icon--close{top:5px;transform:translateY(0)}.el-upload-list--picture .el-upload-list__item-thumbnail{display:inline-flex;justify-content:center;align-items:center;width:70px;height:70px;-o-object-fit:contain;object-fit:contain;position:relative;z-index:1;background-color:var(--el-color-white)}.el-upload-list--picture .el-upload-list__item-status-label{position:absolute;right:-17px;top:-7px;width:46px;height:26px;background:var(--el-color-success);text-align:center;transform:rotate(45deg)}.el-upload-list--picture .el-upload-list__item-status-label i{font-size:12px;margin-top:12px;transform:rotate(-45deg)}.el-upload-list--picture .el-progress{position:relative;top:-7px}.el-upload-cover{position:absolute;left:0;top:0;width:100%;height:100%;overflow:hidden;z-index:10;cursor:default}.el-upload-cover:after{display:inline-block;content:"";height:100%;vertical-align:middle}.el-upload-cover img{display:block;width:100%;height:100%}.el-upload-cover__label{right:-15px;top:-6px;width:40px;height:24px;background:var(--el-color-success);text-align:center;transform:rotate(45deg)}.el-upload-cover__label i{font-size:12px;margin-top:11px;transform:rotate(-45deg);color:#fff}.el-upload-cover__progress{display:inline-block;vertical-align:middle;position:static;width:243px}.el-upload-cover__progress+.el-upload__inner{opacity:0}.el-upload-cover__content{position:absolute;top:0;left:0;width:100%;height:100%}.el-upload-cover__interact{position:absolute;bottom:0;left:0;width:100%;height:100%;background-color:var(--el-overlay-color-light);text-align:center}.el-upload-cover__interact .btn{display:inline-block;color:#fff;font-size:14px;cursor:pointer;vertical-align:middle;transition:var(--el-transition-md-fade);margin-top:60px}.el-upload-cover__interact .btn i{margin-top:0}.el-upload-cover__interact .btn span{opacity:0;transition:opacity .15s linear}.el-upload-cover__interact .btn:not(:first-child){margin-left:35px}.el-upload-cover__interact .btn:hover{transform:translateY(-13px)}.el-upload-cover__interact .btn:hover span{opacity:1}.el-upload-cover__interact .btn i{color:#fff;display:block;font-size:24px;line-height:inherit;margin:0 auto 5px}.el-upload-cover__title{position:absolute;bottom:0;left:0;background-color:#fff;height:36px;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:400;text-align:left;padding:0 10px;margin:0;line-height:36px;font-size:14px;color:var(--el-text-color-primary)}.el-upload-cover+.el-upload__inner{opacity:0;position:relative;z-index:1}.el-color-predefine{display:flex;font-size:12px;margin-top:8px;width:280px}.el-color-predefine__colors{display:flex;flex:1;flex-wrap:wrap}.el-color-predefine__color-selector{margin:0 0 8px 8px;width:20px;height:20px;border-radius:4px;cursor:pointer}.el-color-predefine__color-selector:nth-child(10n+1){margin-left:0}.el-color-predefine__color-selector.selected{box-shadow:0 0 3px 2px var(--el-color-primary)}.el-color-predefine__color-selector>div{display:flex;height:100%;border-radius:3px}.el-color-predefine__color-selector.is-alpha{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==)}.el-color-hue-slider{position:relative;box-sizing:border-box;width:280px;height:12px;background-color:red;padding:0 2px;float:right}.el-color-hue-slider__bar{position:relative;background:linear-gradient(to right,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%);height:100%}.el-color-hue-slider__thumb{position:absolute;cursor:pointer;box-sizing:border-box;left:0;top:0;width:4px;height:100%;border-radius:1px;background:#fff;border:1px solid var(--el-border-color-lighter);box-shadow:0 0 2px #0009;z-index:1}.el-color-hue-slider.is-vertical{width:12px;height:180px;padding:2px 0}.el-color-hue-slider.is-vertical .el-color-hue-slider__bar{background:linear-gradient(to bottom,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}.el-color-hue-slider.is-vertical .el-color-hue-slider__thumb{left:0;top:0;width:100%;height:4px}.el-color-svpanel{position:relative;width:280px;height:180px}.el-color-svpanel__black,.el-color-svpanel__white{position:absolute;top:0;left:0;right:0;bottom:0}.el-color-svpanel__white{background:linear-gradient(to right,#fff,rgba(255,255,255,0))}.el-color-svpanel__black{background:linear-gradient(to top,#000,rgba(0,0,0,0))}.el-color-svpanel__cursor{position:absolute}.el-color-svpanel__cursor>div{cursor:head;width:4px;height:4px;box-shadow:0 0 0 1.5px #fff,inset 0 0 1px 1px #0000004d,0 0 1px 2px #0006;border-radius:50%;transform:translate(-2px,-2px)}.el-color-alpha-slider{position:relative;box-sizing:border-box;width:280px;height:12px;background-image:linear-gradient(45deg,var(--el-color-picker-alpha-bg-a) 25%,var(--el-color-picker-alpha-bg-b) 25%),linear-gradient(135deg,var(--el-color-picker-alpha-bg-a) 25%,var(--el-color-picker-alpha-bg-b) 25%),linear-gradient(45deg,var(--el-color-picker-alpha-bg-b) 75%,var(--el-color-picker-alpha-bg-a) 75%),linear-gradient(135deg,var(--el-color-picker-alpha-bg-b) 75%,var(--el-color-picker-alpha-bg-a) 75%);background-size:12px 12px;background-position:0 0,6px 0,6px -6px,0 6px}.el-color-alpha-slider__bar{position:relative;background:linear-gradient(to right,rgba(255,255,255,0) 0,var(--el-bg-color) 100%);height:100%}.el-color-alpha-slider__thumb{position:absolute;cursor:pointer;box-sizing:border-box;left:0;top:0;width:4px;height:100%;border-radius:1px;background:#fff;border:1px solid var(--el-border-color-lighter);box-shadow:0 0 2px #0009;z-index:1}.el-color-alpha-slider.is-vertical{width:20px;height:180px}.el-color-alpha-slider.is-vertical .el-color-alpha-slider__bar{background:linear-gradient(to bottom,rgba(255,255,255,0) 0,#fff 100%)}.el-color-alpha-slider.is-vertical .el-color-alpha-slider__thumb{left:0;top:0;width:100%;height:4px}.el-color-dropdown{width:300px}.el-color-dropdown__main-wrapper{margin-bottom:6px}.el-color-dropdown__main-wrapper:after{content:"";display:table;clear:both}.el-color-dropdown__btns{margin-top:12px;text-align:right}.el-color-dropdown__value{float:left;line-height:26px;font-size:12px;color:#000;width:160px}.el-color-picker{display:inline-block;position:relative;line-height:normal}.el-color-picker.is-disabled .el-color-picker__trigger{cursor:not-allowed}.el-color-picker--large{height:40px}.el-color-picker--large .el-color-picker__trigger{height:40px;width:40px}.el-color-picker--large .el-color-picker__mask{height:38px;width:38px}.el-color-picker--small{height:24px}.el-color-picker--small .el-color-picker__trigger{height:24px;width:24px}.el-color-picker--small .el-color-picker__mask{height:22px;width:22px}.el-color-picker--small .el-color-picker__empty,.el-color-picker--small .el-color-picker__icon{transform:scale(.8)}.el-color-picker__mask{height:38px;width:38px;border-radius:4px;position:absolute;top:1px;left:1px;z-index:1;cursor:not-allowed;background-color:#ffffffb3}.el-color-picker__trigger{display:inline-flex;justify-content:center;align-items:center;box-sizing:border-box;height:32px;width:32px;padding:4px;border:1px solid var(--el-border-color);border-radius:4px;font-size:0;position:relative;cursor:pointer}.el-color-picker__color{position:relative;display:block;box-sizing:border-box;border:1px solid var(--el-text-color-secondary);border-radius:var(--el-border-radius-small);width:100%;height:100%;text-align:center}.el-color-picker__color.is-alpha{background-image:linear-gradient(45deg,var(--el-color-picker-alpha-bg-a) 25%,var(--el-color-picker-alpha-bg-b) 25%),linear-gradient(135deg,var(--el-color-picker-alpha-bg-a) 25%,var(--el-color-picker-alpha-bg-b) 25%),linear-gradient(45deg,var(--el-color-picker-alpha-bg-b) 75%,var(--el-color-picker-alpha-bg-a) 75%),linear-gradient(135deg,var(--el-color-picker-alpha-bg-b) 75%,var(--el-color-picker-alpha-bg-a) 75%);background-size:12px 12px;background-position:0 0,6px 0,6px -6px,0 6px}.el-color-picker__color-inner{display:inline-flex;justify-content:center;align-items:center;width:100%;height:100%}.el-color-picker .el-color-picker__empty{font-size:12px;color:var(--el-text-color-secondary)}.el-color-picker .el-color-picker__icon{display:inline-flex;justify-content:center;align-items:center;color:#fff;font-size:12px}.el-color-picker__panel{position:absolute;z-index:10;padding:6px;box-sizing:content-box;background-color:#fff;border-radius:var(--el-border-radius-base);box-shadow:var(--el-box-shadow-light)}.el-color-picker__panel.el-popper{border:1px solid var(--el-border-color-lighter)}.el-color-picker,.el-color-picker__panel{--el-color-picker-alpha-bg-a:#ccc;--el-color-picker-alpha-bg-b:transparent}.dark .el-color-picker,.dark .el-color-picker__panel{--el-color-picker-alpha-bg-a:#333333}.action-buttons[data-v-0cdc2bf8]{display:flex;flex-direction:column;position:absolute;gap:8px;top:10px;right:10px}.action-buttons[data-v-0cdc2bf8]>*{width:30px;height:30px;margin:0}.canvas-container[data-v-0cdc2bf8]{position:relative}@media only screen and (max-width: 1280px){.canvas-container[data-v-0cdc2bf8]{transform:scale(.7)}}.firstIcon[data-v-74586a39]{position:absolute;right:15%;bottom:12%;opacity:.8;z-index:0}.secondIcon[data-v-74586a39]{position:absolute;left:15%;top:12%;z-index:1}.centerIcons[data-v-74586a39]{width:var(--2ad037ca);height:var(--2ad037ca);display:flex;align-items:center;justify-content:center}.stackedIcons[data-v-74586a39]{position:relative;width:100%;height:100%}@media only screen and (max-width: 768px){.firstIcon[data-v-74586a39]{right:30%}.secondIcon[data-v-74586a39]{left:30%}}h3[data-v-db184ac6]{margin-bottom:0}.interrogation-upload[data-v-db184ac6]{max-width:720px}:root{--sidebar-width: 70px }.small-btn{padding:6px 8px;height:unset}.generator-types{position:fixed;height:calc(100vh - 67px);top:67px}.mobile-generator-types{width:100%}.generated-image{aspect-ratio:1 / 1;width:100%;height:100%;display:flex;justify-content:center;align-items:center;padding-top:20px;padding-bottom:20px}.generated-image>.el-card__body{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.el-collapse,.sidebar-container{width:100%}.form{padding-left:20px;margin-left:var(--sidebar-width)}.main{grid-area:main;display:flex;justify-content:center}.generate-cancel-btn{width:80%}.sidebar{grid-area:sidebar;max-width:90%}.reference-images{margin:14px 0}.reference-images-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}.reference-images-label{flex:0 0 120px;font-size:14px;color:var(--el-text-color-regular)}.reference-images-actions{display:flex;align-items:center;gap:8px;flex:1;min-width:0}.reference-images-input{display:none}.reference-image-list{display:flex;flex-direction:column;gap:8px}.reference-image-item{display:grid;grid-template-columns:28px 48px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:58px;padding:6px 8px;border:1px solid var(--el-border-color);border-radius:6px;background:var(--el-fill-color-blank)}.reference-file-item{grid-template-columns:28px minmax(0,1fr) auto}.reference-image-index{font-size:13px;color:var(--el-text-color-secondary);text-align:center}.reference-image-thumb{width:48px;height:48px;border-radius:4px;border:1px solid var(--el-border-color-lighter);overflow:hidden}.reference-image-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.reference-image-controls{display:flex;align-items:center;gap:4px}.reference-image-controls .el-button+.el-button{margin-left:0}.reference-image-empty{padding:10px 8px;border:1px dashed var(--el-border-color);border-radius:6px;color:var(--el-text-color-secondary);font-size:13px}.lora-list-collapse{width:100%;margin:14px 0}.lora-list-title{font-size:14px;font-weight:600}.lora-list-summary{margin-left:8px;font-size:13px;color:var(--el-text-color-secondary)}.lora-list-hint{padding:4px 0;color:var(--el-text-color-secondary);font-size:13px}.lora-list-row{display:flex;align-items:center;gap:8px;padding:6px 0}.lora-list-select{flex:1;min-width:140px}.lora-list-add{padding:6px 0}.video-frame-selectors{display:flex;flex-direction:column;gap:8px;margin:14px 0}.video-frame-selector{display:grid;grid-template-columns:140px 48px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:58px;padding:6px 8px;border:1px solid var(--el-border-color);border-radius:6px;background:var(--el-fill-color-blank)}.video-frame-label{font-size:14px;color:var(--el-text-color-regular)}.video-frame-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;color:var(--el-text-color-secondary)}.video-frame-thumb-empty{background:var(--el-fill-color-light)}.video-frame-actions{display:flex;align-items:center;gap:4px}.video-frame-actions .el-button+.el-button{margin-left:0}.image{grid-area:image;flex-direction:column}.last-image-recovery{margin-top:10px;font-size:13px}.container{display:grid;height:75vh;grid-template-columns:50% 50%;grid-template-rows:40px 95%;grid-template-areas:"sidebar main" "sidebar image"}@media only screen and (max-width: 1280px){.generated-image>.el-card__body{height:100%;display:flex;justify-content:center;align-items:center}.generated-image{width:90%;height:100%;padding-top:0;padding-bottom:0}.container{display:grid;height:auto;min-height:110vh;grid-template-rows:minmax(400px,45vh) max-content auto;grid-template-columns:100%;gap:8px;grid-template-areas:"image" "main" "sidebar"}.sidebar{max-width:100%}.reference-images-header{align-items:flex-start;flex-direction:column}.reference-images-label{flex-basis:auto}.reference-images-actions{width:100%;flex-wrap:wrap}.video-frame-selector{grid-template-columns:130px 44px minmax(0,1fr) auto}.main{flex-wrap:wrap;gap:5px}.main>*{width:100%!important;margin:0!important}.reset-btn{order:1}.generate-cancel-btn{order:0}}@media only screen and (max-width: 768px){.generated-image{width:100%;height:100%;padding-top:0;padding-bottom:0}.container{grid-template-rows:minmax(400px,50vh) max-content auto}.form{padding-top:20px;padding-left:0;margin-left:0}.reference-image-item{grid-template-columns:24px 44px minmax(0,1fr)}.reference-file-item{grid-template-columns:24px minmax(0,1fr)}.reference-image-controls{grid-column:3;justify-content:flex-end;width:100%}.reference-file-item .reference-image-controls{grid-column:2}.reference-image-thumb{width:44px;height:44px}.video-frame-selector{grid-template-columns:1fr 44px}.video-frame-label{grid-column:1 / -1}.video-frame-name{min-width:0}.video-frame-actions{grid-column:1 / -1;justify-content:flex-end;width:100%}}:root{--el-popup-modal-bg-color:var(--el-color-black);--el-popup-modal-opacity:.5}.v-modal-enter{-webkit-animation:v-modal-in var(--el-transition-duration-fast) ease;animation:v-modal-in var(--el-transition-duration-fast) ease}.v-modal-leave{-webkit-animation:v-modal-out var(--el-transition-duration-fast) ease forwards;animation:v-modal-out var(--el-transition-duration-fast) ease forwards}@-webkit-keyframes v-modal-in{0%{opacity:0}}@keyframes v-modal-in{0%{opacity:0}}@-webkit-keyframes v-modal-out{to{opacity:0}}@keyframes v-modal-out{to{opacity:0}}.v-modal{position:fixed;left:0;top:0;width:100%;height:100%;opacity:var(--el-popup-modal-opacity);background:var(--el-popup-modal-bg-color)}.el-popup-parent--hidden{overflow:hidden}.el-message-box{--el-messagebox-title-color:var(--el-text-color-primary);--el-messagebox-width:420px;--el-messagebox-border-radius:4px;--el-messagebox-font-size:var(--el-font-size-large);--el-messagebox-content-font-size:var(--el-font-size-base);--el-messagebox-content-color:var(--el-text-color-regular);--el-messagebox-error-font-size:12px;--el-messagebox-padding-primary:15px}.el-message-box{display:inline-block;max-width:var(--el-messagebox-width);width:100%;padding-bottom:10px;vertical-align:middle;background-color:var(--el-bg-color);border-radius:var(--el-messagebox-border-radius);border:1px solid var(--el-border-color-lighter);font-size:var(--el-messagebox-font-size);box-shadow:var(--el-box-shadow-light);text-align:left;overflow:hidden;-webkit-backface-visibility:hidden;backface-visibility:hidden}.el-message-box:focus{outline:0!important}.el-overlay.is-message-box .el-overlay-message-box{text-align:center;position:fixed;top:0;right:0;bottom:0;left:0;padding:16px;overflow:auto}.el-overlay.is-message-box .el-overlay-message-box:after{content:"";display:inline-block;height:100%;width:0;vertical-align:middle}.el-message-box.is-draggable .el-message-box__header{cursor:move;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-message-box__header{position:relative;padding:var(--el-messagebox-padding-primary);padding-bottom:10px}.el-message-box__title{padding-left:0;margin-bottom:0;font-size:var(--el-messagebox-font-size);line-height:1;color:var(--el-messagebox-title-color)}.el-message-box__headerbtn{position:absolute;top:var(--el-messagebox-padding-primary);right:var(--el-messagebox-padding-primary);padding:0;border:none;outline:0;background:0 0;font-size:var(--el-message-close-size,16px);cursor:pointer}.el-message-box__headerbtn .el-message-box__close{color:var(--el-color-info);font-size:inherit}.el-message-box__headerbtn:focus .el-message-box__close,.el-message-box__headerbtn:hover .el-message-box__close{color:var(--el-color-primary)}.el-message-box__content{padding:10px var(--el-messagebox-padding-primary);color:var(--el-messagebox-content-color);font-size:var(--el-messagebox-content-font-size)}.el-message-box__container{position:relative}.el-message-box__input{padding-top:15px}.el-message-box__input div.invalid>input{border-color:var(--el-color-error)}.el-message-box__input div.invalid>input:focus{border-color:var(--el-color-error)}.el-message-box__status{position:absolute;top:50%;transform:translateY(-50%);font-size:24px!important}.el-message-box__status:before{padding-left:1px}.el-message-box__status.el-icon{position:absolute}.el-message-box__status+.el-message-box__message{padding-left:36px;padding-right:12px;word-break:break-word}.el-message-box__status.el-message-box-icon--success{--el-messagebox-color:var(--el-color-success);color:var(--el-messagebox-color)}.el-message-box__status.el-message-box-icon--info{--el-messagebox-color:var(--el-color-info);color:var(--el-messagebox-color)}.el-message-box__status.el-message-box-icon--warning{--el-messagebox-color:var(--el-color-warning);color:var(--el-messagebox-color)}.el-message-box__status.el-message-box-icon--error{--el-messagebox-color:var(--el-color-error);color:var(--el-messagebox-color)}.el-message-box__message{margin:0}.el-message-box__message p{margin:0;line-height:24px}.el-message-box__errormsg{color:var(--el-color-error);font-size:var(--el-messagebox-error-font-size);min-height:18px;margin-top:2px}.el-message-box__btns{padding:5px 15px 0;display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center}.el-message-box__btns button:nth-child(2){margin-left:10px}.el-message-box__btns-reverse{flex-direction:row-reverse}.el-message-box--center .el-message-box__title{position:relative;display:flex;align-items:center;justify-content:center}.el-message-box--center .el-message-box__status{position:relative;top:auto;padding-right:5px;text-align:center;transform:translateY(-1px)}.el-message-box--center .el-message-box__message{margin-left:0}.el-message-box--center .el-message-box__btns{justify-content:center}.el-message-box--center .el-message-box__content{padding-left:calc(var(--el-messagebox-padding-primary) + 12px);padding-right:calc(var(--el-messagebox-padding-primary) + 12px);text-align:center}.fade-in-linear-enter-active .el-overlay-message-box{-webkit-animation:msgbox-fade-in var(--el-transition-duration);animation:msgbox-fade-in var(--el-transition-duration)}.fade-in-linear-leave-active .el-overlay-message-box{animation:msgbox-fade-in var(--el-transition-duration) reverse}@-webkit-keyframes msgbox-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes msgbox-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}to{transform:translateZ(0);opacity:1}}@-webkit-keyframes msgbox-fade-out{0%{transform:translateZ(0);opacity:1}to{transform:translate3d(0,-20px,0);opacity:0}}@keyframes msgbox-fade-out{0%{transform:translateZ(0);opacity:1}to{transform:translate3d(0,-20px,0);opacity:0}}.compact-button[data-v-7a45e2c8]{padding-left:6px;padding-right:6px;margin-left:6px}.main-output-container{display:flex;justify-content:center;background-color:var(--el-fill-color-light)}.main-output{max-height:54vh}.image-viewer{width:100%;max-width:1024px;height:82vh;display:flex;flex-direction:column}.image-viewer>.el-dialog__header{padding:12px 26px}.image-viewer>.el-dialog__body{display:flex;flex-direction:column;justify-content:space-between;gap:8px;text-align:center;word-break:keep-all;overflow-y:scroll;padding-top:0;height:100%}.image-viewer>.el-dialog__footer{border-top:1px solid var(--el-border-color);display:flex;flex-wrap:wrap;justify-content:center;row-gap:8px}@media only screen and (max-width: 1280px){.image-viewer{width:720px}}@media only screen and (max-width: 768px){.image-viewer{width:100%;height:82vh}}.el-menu--horizontal .el-menu-item[data-v-8f4d2380]:not(.is-disabled):focus,.el-menu--horizontal .el-menu-item[data-v-8f4d2380]:not(.is-disabled):hover{background-color:transparent!important}.remove-item-styling[data-v-8f4d2380]{cursor:default;color:var(--el-menu-text-color)!important;background-color:transparent!important}.remove-item-styling[data-v-8f4d2380]:hover{cursor:default;color:var(--el-menu-text-color)!important}.view[data-v-8f4d2380]{margin-top:80px}.generator-icons[data-v-8f4d2380]{position:relative;display:inline-flex;justify-content:center;align-items:center}.generator-badge[data-v-8f4d2380]{position:absolute;bottom:9px;right:-7px;color:var(--el-color-danger)!important}.mobile-menu[data-v-8f4d2380]{z-index:100;position:fixed;bottom:0;height:50px;left:50%;transform:translate(-50%);width:100%;justify-content:center;--el-menu-bg-color: var(--el-mask-color) }.mobile-menu[data-v-8f4d2380]>*{width:60px}html.dark{color-scheme:dark;--el-color-primary:#409eff;--el-color-primary-light-3:#3375b9;--el-color-primary-light-5:#2a598a;--el-color-primary-light-7:#213d5b;--el-color-primary-light-8:#1d3043;--el-color-primary-light-9:#18222c;--el-color-primary-dark-2:#66b1ff;--el-color-success:#67c23a;--el-color-success-light-3:#4e8e2f;--el-color-success-light-5:#3e6b27;--el-color-success-light-7:#2d481f;--el-color-success-light-8:#25371c;--el-color-success-light-9:#1c2518;--el-color-success-dark-2:#85ce61;--el-color-warning:#e6a23c;--el-color-warning-light-3:#a77730;--el-color-warning-light-5:#7d5b28;--el-color-warning-light-7:#533f20;--el-color-warning-light-8:#3e301c;--el-color-warning-light-9:#292218;--el-color-warning-dark-2:#ebb563;--el-color-danger:#f56c6c;--el-color-danger-light-3:#b25252;--el-color-danger-light-5:#854040;--el-color-danger-light-7:#582e2e;--el-color-danger-light-8:#412626;--el-color-danger-light-9:#2b1d1d;--el-color-danger-dark-2:#f78989;--el-color-error:#f56c6c;--el-color-error-light-3:#b25252;--el-color-error-light-5:#854040;--el-color-error-light-7:#582e2e;--el-color-error-light-8:#412626;--el-color-error-light-9:#2b1d1d;--el-color-error-dark-2:#f78989;--el-color-info:#909399;--el-color-info-light-3:#6b6d71;--el-color-info-light-5:#525457;--el-color-info-light-7:#393a3c;--el-color-info-light-8:#2d2d2f;--el-color-info-light-9:#202121;--el-color-info-dark-2:#a6a9ad;--el-box-shadow:0px 12px 32px 4px rgba(0, 0, 0, .36),0px 8px 20px rgba(0, 0, 0, .72);--el-box-shadow-light:0px 0px 12px rgba(0, 0, 0, .72);--el-box-shadow-lighter:0px 0px 6px rgba(0, 0, 0, .72);--el-box-shadow-dark:0px 16px 48px 16px rgba(0, 0, 0, .72),0px 12px 32px #000000,0px 8px 16px -8px #000000;--el-bg-color-page:#0a0a0a;--el-bg-color:#141414;--el-bg-color-overlay:#1d1e1f;--el-text-color-primary:#E5EAF3;--el-text-color-regular:#CFD3DC;--el-text-color-secondary:#A3A6AD;--el-text-color-placeholder:#8D9095;--el-text-color-disabled:#6C6E72;--el-border-color-darker:#636466;--el-border-color-dark:#58585B;--el-border-color:#4C4D4F;--el-border-color-light:#414243;--el-border-color-lighter:#363637;--el-border-color-extra-light:#2B2B2C;--el-fill-color-darker:#424243;--el-fill-color-dark:#39393A;--el-fill-color:#303030;--el-fill-color-light:#262727;--el-fill-color-lighter:#1D1D1D;--el-fill-color-extra-light:#191919;--el-fill-color-blank:transparent;--el-mask-color:rgba(0, 0, 0, .8);--el-mask-color-extra-light:rgba(0, 0, 0, .3)}html.dark .el-button{--el-button-disabled-text-color:rgba(255, 255, 255, .5)}html.dark .el-card{--el-card-bg-color:var(--el-bg-color-overlay)}html.dark .el-empty{--el-empty-fill-color-0:var(--el-color-black);--el-empty-fill-color-1:#4b4b52;--el-empty-fill-color-2:#36383d;--el-empty-fill-color-3:#1e1e20;--el-empty-fill-color-4:#262629;--el-empty-fill-color-5:#202124;--el-empty-fill-color-6:#212224;--el-empty-fill-color-7:#1b1c1f;--el-empty-fill-color-8:#1c1d1f;--el-empty-fill-color-9:#18181a}html{height:100%}body{padding:0;height:calc(100% - 16px);display:flex;justify-content:center;transition:color .5s,background-color .5s;line-height:1.6;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-size:15px;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#app{height:100%}#app,.menu{width:calc(100% - 8px)}@media only screen and (min-width: 1024px){#app,.menu{max-width:1024px}}@media only screen and (min-width: 1280px){#app,.menu{max-width:1280px}}@media only screen and (min-width: 1536px){#app,.menu{max-width:1536px}}.image-notification{padding:25px!important;width:310px!important;justify-content:space-evenly;user-select:none}.image-notification>.el-notification__icon{height:auto!important;width:auto!important;align-items:start!important}.center-both{display:flex;justify-content:center;align-items:center}.center-horizontal{display:flex;justify-content:center}.center-vertical{display:flex;align-items:center}.menu-container{width:100%;z-index:100;padding-top:4px;backdrop-filter:blur(4px);display:flex;justify-content:center;border-bottom:solid 1px var(--el-menu-border-color);position:fixed;top:0;left:0}html.dark .menu-container{background-color:#00000080}html.light .menu-container{background-color:#ffffff80}.menu{border-bottom:0;background-color:transparent}*{scrollbar-width:auto;scrollbar-color:rgba(163,166,173,.3) transparent}*::-webkit-scrollbar{width:12px}*::-webkit-scrollbar-thumb{background-color:#a3a6ad4d;border-radius:10px;border:3px none transparent}*::-webkit-scrollbar-thumb:hover{background-color:#a3a6ad80}#extra_image_input::file-selector-button{visibility:hidden}.thumbnail[data-v-b9569bbd]{display:block;width:100%;height:100%;border-radius:4px}.thumbnail[data-v-b9569bbd]:hover{cursor:pointer}.relative[data-v-b9569bbd]{position:relative}.image-action[data-v-b9569bbd]{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.starred-icon[data-v-b9569bbd]{position:absolute;left:5px;top:5px}.select-container[data-v-b9569bbd]{position:absolute;width:100%;height:100%;pointer-events:all}.select-icon[data-v-b9569bbd]{position:absolute;right:5px;top:5px}.el-empty{--el-empty-padding:40px 0;--el-empty-image-width:160px;--el-empty-description-margin-top:20px;--el-empty-bottom-margin-top:20px;--el-empty-fill-color-0:var(--el-color-white);--el-empty-fill-color-1:#fcfcfd;--el-empty-fill-color-2:#f8f9fb;--el-empty-fill-color-3:#f7f8fc;--el-empty-fill-color-4:#eeeff3;--el-empty-fill-color-5:#edeef2;--el-empty-fill-color-6:#e9ebef;--el-empty-fill-color-7:#e5e7e9;--el-empty-fill-color-8:#e0e3e9;--el-empty-fill-color-9:#d5d7de;display:flex;justify-content:center;align-items:center;flex-direction:column;text-align:center;box-sizing:border-box;padding:var(--el-empty-padding)}.el-empty__image{width:var(--el-empty-image-width)}.el-empty__image img{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:100%;height:100%;vertical-align:top;-o-object-fit:contain;object-fit:contain}.el-empty__image svg{color:var(--el-svg-monochrome-grey);fill:currentColor;width:100%;height:100%;vertical-align:top}.el-empty__description{margin-top:var(--el-empty-description-margin-top)}.el-empty__description p{margin:0;font-size:var(--el-font-size-base);color:var(--el-text-color-secondary)}.el-empty__bottom{margin-top:var(--el-empty-bottom-margin-top)}.el-pagination{--el-pagination-font-size:14px;--el-pagination-bg-color:var(--el-fill-color-blank);--el-pagination-text-color:var(--el-text-color-primary);--el-pagination-border-radius:3px;--el-pagination-button-color:var(--el-text-color-primary);--el-pagination-button-width:32px;--el-pagination-button-height:32px;--el-pagination-button-disabled-color:var(--el-text-color-placeholder);--el-pagination-button-disabled-bg-color:var(--el-fill-color-blank);--el-pagination-button-bg-color:var(--el-fill-color);--el-pagination-hover-color:var(--el-color-primary);--el-pagination-height-extra-small:24px;--el-pagination-line-height-extra-small:var(--el-pagination-height-extra-small);white-space:nowrap;padding:2px 5px;color:var(--el-pagination-text-color);font-weight:400;display:flex;align-items:center}.el-pagination:after,.el-pagination:before{display:table;content:""}.el-pagination:after{clear:both}.el-pagination button,.el-pagination span:not([class*=suffix]){display:flex;justify-content:center;align-items:center;font-size:var(--el-pagination-font-size);min-width:var(--el-pagination-button-width);height:var(--el-pagination-button-height);line-height:var(--el-pagination-button-height);box-sizing:border-box}.el-pagination .el-input__inner{text-align:center;-moz-appearance:textfield;line-height:normal}.el-pagination .el-select .el-input{width:128px}.el-pagination button{border:none;padding:0 6px;background:0 0}.el-pagination button:focus{outline:0}.el-pagination button:hover{color:var(--el-pagination-hover-color)}.el-pagination button:disabled{color:var(--el-pagination-button-disabled-color);background-color:var(--el-pagination-button-disabled-bg-color);cursor:not-allowed}.el-pagination .btn-next,.el-pagination .btn-prev{background:center center no-repeat;background-size:16px;background-color:var(--el-pagination-bg-color);cursor:pointer;margin:0;color:var(--el-pagination-button-color)}.el-pagination .btn-next .el-icon,.el-pagination .btn-prev .el-icon{display:block;font-size:12px;font-weight:700;width:inherit}.el-pagination .btn-next:focus-visible,.el-pagination .btn-prev:focus-visible{outline:1px solid var(--el-pagination-hover-color);color:var(--el-pagination-hover-color)}.el-pagination .el-pager li.is-disabled{color:var(--el-text-color-placeholder);cursor:not-allowed}.el-pagination--small .btn-next,.el-pagination--small .btn-prev,.el-pagination--small .el-pager li,.el-pagination--small .el-pager li.btn-quicknext,.el-pagination--small .el-pager li.btn-quickprev,.el-pagination--small .el-pager li:last-child{border-color:transparent;font-size:var(--el-font-size-extra-small);line-height:var(--el-pagination-line-height-extra-small);height:var(--el-pagination-height-extra-small);min-width:24px}.el-pagination--small .arrow.is-disabled{visibility:hidden}.el-pagination--small .more:before,.el-pagination--small li.more:before{line-height:var(--el-pagination-line-height-extra-small)}.el-pagination--small button,.el-pagination--small span:not([class*=suffix]){height:var(--el-pagination-height-extra-small);line-height:var(--el-pagination-line-height-extra-small);font-size:var(--el-font-size-extra-small)}.el-pagination--small .el-pagination__editor{height:var(--el-pagination-line-height-extra-small)}.el-pagination--small .el-pagination__editor.el-input .el-input__inner{height:var(--el-pagination-height-extra-small)}.el-pagination--small .el-input--small,.el-pagination--small .el-input__inner{height:var(--el-pagination-height-extra-small)!important;line-height:var(--el-pagination-line-height-extra-small)}.el-pagination--small .el-input__suffix,.el-pagination--small .el-input__suffix .el-input__suffix-inner,.el-pagination--small .el-input__suffix .el-input__suffix-inner i.el-select__caret{line-height:var(--el-pagination-line-height-extra-small)}.el-pagination--small .el-select .el-input{width:100px}.el-pagination__sizes{margin:0 16px 0 0;font-weight:400;color:var(--el-text-color-regular)}.el-pagination__sizes+button.btn-prev[type=button]{margin-left:0}.el-pagination__sizes+.el-pager .number:first-child{margin-left:0}.el-pagination__sizes+.el-pager .number:last-child{margin-right:0}.el-pagination__total{margin-right:16px;font-weight:400;color:var(--el-text-color-regular)}.el-pagination__total+button.btn-prev[type=button]{margin-left:0}.el-pagination__total+.el-pager .number:first-child{margin-left:0}.el-pagination__total+.el-pager .number:last-child{margin-right:0}.el-pagination__total[disabled=true]{color:var(--el-text-color-placeholder)}.el-pagination__jump{margin-left:16px;font-weight:400;color:var(--el-text-color-regular)}.el-pagination__jump .el-input__inner{padding:0 3px}.el-pagination__jump[disabled=true]{color:var(--el-text-color-placeholder)}.el-pagination__rightwrapper{flex:1;display:flex;align-items:center;justify-content:flex-end}.el-pagination__editor{line-height:18px;margin:0 8px;height:var(--el-pagination-button-height);min-width:56px;text-align:center;box-sizing:border-box;border-radius:var(--el-pagination-border-radius)}.el-pagination__editor.el-input{width:50px}.el-pagination__editor.el-input .el-input__inner{height:var(--el-pagination-button-height)}.el-pagination__editor .el-input__inner::-webkit-inner-spin-button,.el-pagination__editor .el-input__inner::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.el-pagination.is-background .btn-next,.el-pagination.is-background .btn-prev,.el-pagination.is-background .el-pager li{margin:0 4px;background-color:var(--el-pagination-button-bg-color);color:var(--el-text-color-regular);min-width:32px;border-radius:2px}.el-pagination.is-background .btn-next.is-disabled,.el-pagination.is-background .btn-prev.is-disabled,.el-pagination.is-background .el-pager li.is-disabled{color:var(--el-text-color-placeholder);background-color:var(--el-disabled-bg-color)}.el-pagination.is-background .btn-next.is-disabled.is-active,.el-pagination.is-background .btn-prev.is-disabled.is-active,.el-pagination.is-background .el-pager li.is-disabled.is-active{color:var(--el-text-color-secondary);background-color:var(--el-fill-color-dark)}.el-pagination.is-background .btn-next.is-first,.el-pagination.is-background .btn-prev.is-first,.el-pagination.is-background .el-pager li.is-first{margin-left:0}.el-pagination.is-background .btn-next.is-last,.el-pagination.is-background .btn-prev.is-last,.el-pagination.is-background .el-pager li.is-last{margin-right:0}.el-pagination.is-background .btn-next,.el-pagination.is-background .btn-prev{padding:0}.el-pagination.is-background .btn-next:disabled,.el-pagination.is-background .btn-prev:disabled{color:var(--el-text-color-placeholder);background-color:var(--el-disabled-bg-color)}.el-pagination.is-background .btn-next:hover:not([disabled]),.el-pagination.is-background .btn-prev:hover:not([disabled]){color:var(--el-pagination-hover-color)}.el-pagination.is-background .el-pager li:not(.is-disabled):hover{color:var(--el-pagination-hover-color)}.el-pagination.is-background .el-pager li:not(.is-disabled).is-active{background-color:var(--el-color-primary);color:var(--el-color-white);font-weight:700}.el-pagination.is-background.el-pagination--small .btn-next,.el-pagination.is-background.el-pagination--small .btn-prev,.el-pagination.is-background.el-pagination--small .el-pager li{min-width:24px}.el-pagination.is-background .el-pagination__sizes.is-last{margin-left:16px}.el-pager{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;list-style:none;font-size:0;padding:0;margin:0;display:flex;align-items:center}.el-pager li{padding:0 4px;background:var(--el-pagination-bg-color);display:flex;justify-content:center;align-items:center;font-size:var(--el-pagination-font-size);min-width:var(--el-pagination-button-width);height:var(--el-pagination-button-height);line-height:var(--el-pagination-button-height);box-sizing:border-box;cursor:pointer;text-align:center;margin:0 1px}.el-pager li.btn-quickprev:hover,.el-pager li.btn-quicknext:hover{cursor:pointer}.el-pager li.btn-quicknext,.el-pager li.btn-quickprev{line-height:32px;color:var(--el-pagination-button-color)}.el-pager li.btn-quicknext.is-disabled,.el-pager li.btn-quickprev.is-disabled{color:var(--el-text-color-placeholder);cursor:not-allowed}.el-pager li.btn-quicknext svg,.el-pager li.btn-quickprev svg{pointer-events:none}.el-pager li.btn-quicknext:focus-visible,.el-pager li.btn-quickprev:focus-visible{outline:1px solid var(--el-pagination-hover-color);color:var(--el-pagination-hover-color)}.el-pager li.is-active+li{border-left:0}.el-pager li:focus-visible{outline:1px solid var(--el-pagination-hover-color)}.el-pager li:hover{color:var(--el-pagination-hover-color)}.el-pager li.is-active{color:var(--el-pagination-hover-color);cursor:default}.el-pager li.is-active.is-disabled{font-weight:700;color:var(--el-text-color-secondary)}.el-pager+button.btn-next[type=button]{margin-right:0}.el-popover{--el-popover-bg-color:var(--el-bg-color-overlay);--el-popover-font-size:var(--el-font-size-base);--el-popover-border-color:var(--el-border-color-lighter);--el-popover-padding:12px;--el-popover-padding-large:18px 20px;--el-popover-title-font-size:16px;--el-popover-title-text-color:var(--el-text-color-primary);--el-popover-border-radius:4px}.el-popover.el-popper{background:var(--el-popover-bg-color);min-width:150px;border-radius:var(--el-popover-border-radius);border:1px solid var(--el-popover-border-color);padding:var(--el-popover-padding);z-index:var(--el-index-popper);color:var(--el-text-color-regular);line-height:1.4;text-align:justify;font-size:var(--el-popover-font-size);box-shadow:var(--el-box-shadow-light);word-break:break-all;box-sizing:border-box}.el-popover.el-popper--plain{padding:var(--el-popover-padding-large)}.el-popover__title{color:var(--el-popover-title-text-color);font-size:var(--el-popover-title-font-size);line-height:1;margin-bottom:12px}.el-popover__reference:focus:hover,.el-popover__reference:focus:not(.focusing){outline-width:0}.el-popover.el-popper.is-dark{--el-popover-title-text-color:var(--el-bg-color)}.el-popover.el-popper:focus,.el-popover.el-popper:focus:active{outline-width:0}.images[data-v-b39b47c5]{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;width:100%}.selected[data-v-b39b47c5]{color:var(--el-color-primary);text-decoration:underline;background-color:#262626}.btn-select[data-v-b39b47c5]{width:48px;height:32px}.options[data-v-b39b47c5]{display:flex;align-items:center;gap:8px}.options[data-v-b39b47c5]>*{margin:0}.images-top-bar[data-v-b39b47c5]{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;gap:8px;position:sticky;top:60px;z-index:99;padding:8px;background-color:color-mix(in srgb,var(--el-bg-color-overlay) 60%,transparent);border-bottom:1px solid var(--el-border-color);transition:transform .3s ease-in-out}.images-top-bar.mobile-hidden[data-v-b39b47c5]{transform:translateY(-100%)}.images-top-bar[data-v-b39b47c5]>*{width:100%;display:flex;justify-content:center;text-align:center;white-space:nowrap;flex-grow:0}.bottom-pagination[data-v-b39b47c5]{display:none}@media only screen and (max-width: 768px){.images-top-bar[data-v-b39b47c5]{top:0;flex-wrap:wrap}.bottom-pagination[data-v-b39b47c5]{margin-bottom:50px;display:flex}}a[data-v-17b53b7d]{color:var(--el-color-primary);text-decoration:none}a[data-v-17b53b7d]:hover{text-decoration:underline}h3[data-v-ecc278c5],h1[data-v-ecc278c5]{margin-bottom:0}.about[data-v-ecc278c5]{width:100%;font-size:1.1rem;display:flex;justify-content:center}.about-content[data-v-ecc278c5]{width:60%}.faq[data-v-ecc278c5]{font-size:1.05rem}@media only screen and (max-width: 1000px){.about-content[data-v-ecc278c5]{width:80%}}@media only screen and (max-width: 700px){.about-content[data-v-ecc278c5]{width:100%}}.el-tabs{--el-tabs-header-height:40px}.el-tabs__header{padding:0;position:relative;margin:0 0 15px}.el-tabs__active-bar{position:absolute;bottom:0;left:0;height:2px;background-color:var(--el-color-primary);z-index:1;transition:width var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier),transform var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);list-style:none}.el-tabs__new-tab{display:flex;align-items:center;justify-content:center;float:right;border:1px solid var(--el-border-color);height:20px;width:20px;line-height:20px;margin:10px 0 10px 10px;border-radius:3px;text-align:center;font-size:12px;color:var(--el-text-color-primary);cursor:pointer;transition:all .15s}.el-tabs__new-tab .is-icon-plus{height:inherit;width:inherit;transform:scale(.8)}.el-tabs__new-tab .is-icon-plus svg{vertical-align:middle}.el-tabs__new-tab:hover{color:var(--el-color-primary)}.el-tabs__nav-wrap{overflow:hidden;margin-bottom:-1px;position:relative}.el-tabs__nav-wrap:after{content:"";position:absolute;left:0;bottom:0;width:100%;height:2px;background-color:var(--el-border-color-light);z-index:var(--el-index-normal)}.el-tabs__nav-wrap.is-scrollable{padding:0 20px;box-sizing:border-box}.el-tabs__nav-scroll{overflow:hidden}.el-tabs__nav-next,.el-tabs__nav-prev{position:absolute;cursor:pointer;line-height:44px;font-size:12px;color:var(--el-text-color-secondary)}.el-tabs__nav-next{right:0}.el-tabs__nav-prev{left:0}.el-tabs__nav{white-space:nowrap;position:relative;transition:transform var(--el-transition-duration);float:left;z-index:calc(var(--el-index-normal) + 1)}.el-tabs__nav.is-stretch{min-width:100%;display:flex}.el-tabs__nav.is-stretch>*{flex:1;text-align:center}.el-tabs__item{padding:0 20px;height:var(--el-tabs-header-height);box-sizing:border-box;line-height:var(--el-tabs-header-height);display:inline-block;list-style:none;font-size:var(--el-font-size-base);font-weight:500;color:var(--el-text-color-primary);position:relative}.el-tabs__item:focus,.el-tabs__item:focus:active{outline:0}.el-tabs__item:focus-visible{box-shadow:0 0 2px 2px var(--el-color-primary) inset;border-radius:3px}.el-tabs__item .is-icon-close{border-radius:50%;text-align:center;transition:all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);margin-left:5px}.el-tabs__item .is-icon-close:before{transform:scale(.9);display:inline-block}.el-tabs__item .is-icon-close:hover{background-color:var(--el-text-color-placeholder);color:#fff}.el-tabs__item .is-icon-close svg{margin-top:1px}.el-tabs__item.is-active{color:var(--el-color-primary)}.el-tabs__item:hover{color:var(--el-color-primary);cursor:pointer}.el-tabs__item.is-disabled{color:var(--el-disabled-text-color);cursor:not-allowed}.el-tabs__content{overflow:hidden;position:relative}.el-tabs--card>.el-tabs__header{border-bottom:1px solid var(--el-border-color-light);height:var(--el-tabs-header-height)}.el-tabs--card>.el-tabs__header .el-tabs__nav-wrap:after{content:none}.el-tabs--card>.el-tabs__header .el-tabs__nav{border:1px solid var(--el-border-color-light);border-bottom:none;border-radius:4px 4px 0 0;box-sizing:border-box}.el-tabs--card>.el-tabs__header .el-tabs__active-bar{display:none}.el-tabs--card>.el-tabs__header .el-tabs__item .is-icon-close{position:relative;font-size:12px;width:0;height:14px;vertical-align:middle;line-height:15px;overflow:hidden;top:-1px;right:-2px;transform-origin:100% 50%}.el-tabs--card>.el-tabs__header .el-tabs__item{border-bottom:1px solid transparent;border-left:1px solid var(--el-border-color-light);transition:color var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier),padding var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier)}.el-tabs--card>.el-tabs__header .el-tabs__item:first-child{border-left:none}.el-tabs--card>.el-tabs__header .el-tabs__item.is-closable:hover{padding-left:13px;padding-right:13px}.el-tabs--card>.el-tabs__header .el-tabs__item.is-closable:hover .is-icon-close{width:14px}.el-tabs--card>.el-tabs__header .el-tabs__item.is-active{border-bottom-color:var(--el-bg-color)}.el-tabs--card>.el-tabs__header .el-tabs__item.is-active.is-closable{padding-left:20px;padding-right:20px}.el-tabs--card>.el-tabs__header .el-tabs__item.is-active.is-closable .is-icon-close{width:14px}.el-tabs--border-card{background:var(--el-bg-color-overlay);border:1px solid var(--el-border-color)}.el-tabs--border-card>.el-tabs__content{padding:15px}.el-tabs--border-card>.el-tabs__header{background-color:var(--el-fill-color-light);border-bottom:1px solid var(--el-border-color-light);margin:0}.el-tabs--border-card>.el-tabs__header .el-tabs__nav-wrap:after{content:none}.el-tabs--border-card>.el-tabs__header .el-tabs__item{transition:all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);border:1px solid transparent;margin-top:-1px;color:var(--el-text-color-secondary)}.el-tabs--border-card>.el-tabs__header .el-tabs__item:first-child{margin-left:-1px}.el-tabs--border-card>.el-tabs__header .el-tabs__item+.el-tabs__item{margin-left:-1px}.el-tabs--border-card>.el-tabs__header .el-tabs__item.is-active{color:var(--el-color-primary);background-color:var(--el-bg-color-overlay);border-right-color:var(--el-border-color);border-left-color:var(--el-border-color)}.el-tabs--border-card>.el-tabs__header .el-tabs__item:not(.is-disabled):hover{color:var(--el-color-primary)}.el-tabs--border-card>.el-tabs__header .el-tabs__item.is-disabled{color:var(--el-disabled-text-color)}.el-tabs--border-card>.el-tabs__header .is-scrollable .el-tabs__item:first-child{margin-left:0}.el-tabs--bottom .el-tabs__item.is-bottom:nth-child(2),.el-tabs--bottom .el-tabs__item.is-top:nth-child(2),.el-tabs--top .el-tabs__item.is-bottom:nth-child(2),.el-tabs--top .el-tabs__item.is-top:nth-child(2){padding-left:0}.el-tabs--bottom .el-tabs__item.is-bottom:last-child,.el-tabs--bottom .el-tabs__item.is-top:last-child,.el-tabs--top .el-tabs__item.is-bottom:last-child,.el-tabs--top .el-tabs__item.is-top:last-child{padding-right:0}.el-tabs--bottom .el-tabs--left>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--bottom .el-tabs--right>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--bottom.el-tabs--border-card>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--bottom.el-tabs--card>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--top .el-tabs--left>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--top .el-tabs--right>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--top.el-tabs--border-card>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__item:nth-child(2){padding-left:20px}.el-tabs--bottom .el-tabs--left>.el-tabs__header .el-tabs__item:last-child,.el-tabs--bottom .el-tabs--right>.el-tabs__header .el-tabs__item:last-child,.el-tabs--bottom.el-tabs--border-card>.el-tabs__header .el-tabs__item:last-child,.el-tabs--bottom.el-tabs--card>.el-tabs__header .el-tabs__item:last-child,.el-tabs--top .el-tabs--left>.el-tabs__header .el-tabs__item:last-child,.el-tabs--top .el-tabs--right>.el-tabs__header .el-tabs__item:last-child,.el-tabs--top.el-tabs--border-card>.el-tabs__header .el-tabs__item:last-child,.el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__item:last-child{padding-right:20px}.el-tabs--bottom .el-tabs__header.is-bottom{margin-bottom:0;margin-top:10px}.el-tabs--bottom.el-tabs--border-card .el-tabs__header.is-bottom{border-bottom:0;border-top:1px solid var(--el-border-color)}.el-tabs--bottom.el-tabs--border-card .el-tabs__nav-wrap.is-bottom{margin-top:-1px;margin-bottom:0}.el-tabs--bottom.el-tabs--border-card .el-tabs__item.is-bottom:not(.is-active){border:1px solid transparent}.el-tabs--bottom.el-tabs--border-card .el-tabs__item.is-bottom{margin:0 -1px -1px}.el-tabs--left,.el-tabs--right{overflow:hidden}.el-tabs--left .el-tabs__header.is-left,.el-tabs--left .el-tabs__header.is-right,.el-tabs--left .el-tabs__nav-scroll,.el-tabs--left .el-tabs__nav-wrap.is-left,.el-tabs--left .el-tabs__nav-wrap.is-right,.el-tabs--right .el-tabs__header.is-left,.el-tabs--right .el-tabs__header.is-right,.el-tabs--right .el-tabs__nav-scroll,.el-tabs--right .el-tabs__nav-wrap.is-left,.el-tabs--right .el-tabs__nav-wrap.is-right{height:100%}.el-tabs--left .el-tabs__active-bar.is-left,.el-tabs--left .el-tabs__active-bar.is-right,.el-tabs--right .el-tabs__active-bar.is-left,.el-tabs--right .el-tabs__active-bar.is-right{top:0;bottom:auto;width:2px;height:auto}.el-tabs--left .el-tabs__nav-wrap.is-left,.el-tabs--left .el-tabs__nav-wrap.is-right,.el-tabs--right .el-tabs__nav-wrap.is-left,.el-tabs--right .el-tabs__nav-wrap.is-right{margin-bottom:0}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-next,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev{height:30px;line-height:30px;width:100%;text-align:center;cursor:pointer}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-next i,.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev i,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-next i,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev i,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-next i,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev i,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-next i,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev i{transform:rotate(90deg)}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev{left:auto;top:0}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-next{right:auto;bottom:0}.el-tabs--left .el-tabs__nav-wrap.is-left.is-scrollable,.el-tabs--left .el-tabs__nav-wrap.is-right.is-scrollable,.el-tabs--right .el-tabs__nav-wrap.is-left.is-scrollable,.el-tabs--right .el-tabs__nav-wrap.is-right.is-scrollable{padding:30px 0}.el-tabs--left .el-tabs__nav-wrap.is-left:after,.el-tabs--left .el-tabs__nav-wrap.is-right:after,.el-tabs--right .el-tabs__nav-wrap.is-left:after,.el-tabs--right .el-tabs__nav-wrap.is-right:after{height:100%;width:2px;bottom:auto;top:0}.el-tabs--left .el-tabs__nav.is-left,.el-tabs--left .el-tabs__nav.is-right,.el-tabs--right .el-tabs__nav.is-left,.el-tabs--right .el-tabs__nav.is-right{float:none}.el-tabs--left .el-tabs__item.is-left,.el-tabs--left .el-tabs__item.is-right,.el-tabs--right .el-tabs__item.is-left,.el-tabs--right .el-tabs__item.is-right{display:block}.el-tabs--left .el-tabs__header.is-left{float:left;margin-bottom:0;margin-right:10px}.el-tabs--left .el-tabs__nav-wrap.is-left{margin-right:-1px}.el-tabs--left .el-tabs__nav-wrap.is-left:after{left:auto;right:0}.el-tabs--left .el-tabs__active-bar.is-left{right:0;left:auto}.el-tabs--left .el-tabs__item.is-left{text-align:right}.el-tabs--left.el-tabs--card .el-tabs__active-bar.is-left{display:none}.el-tabs--left.el-tabs--card .el-tabs__item.is-left{border-left:none;border-right:1px solid var(--el-border-color-light);border-bottom:none;border-top:1px solid var(--el-border-color-light);text-align:left}.el-tabs--left.el-tabs--card .el-tabs__item.is-left:first-child{border-right:1px solid var(--el-border-color-light);border-top:none}.el-tabs--left.el-tabs--card .el-tabs__item.is-left.is-active{border:1px solid var(--el-border-color-light);border-right-color:#fff;border-left:none;border-bottom:none}.el-tabs--left.el-tabs--card .el-tabs__item.is-left.is-active:first-child{border-top:none}.el-tabs--left.el-tabs--card .el-tabs__item.is-left.is-active:last-child{border-bottom:none}.el-tabs--left.el-tabs--card .el-tabs__nav{border-radius:4px 0 0 4px;border-bottom:1px solid var(--el-border-color-light);border-right:none}.el-tabs--left.el-tabs--card .el-tabs__new-tab{float:none}.el-tabs--left.el-tabs--border-card .el-tabs__header.is-left{border-right:1px solid var(--el-border-color)}.el-tabs--left.el-tabs--border-card .el-tabs__item.is-left{border:1px solid transparent;margin:-1px 0 -1px -1px}.el-tabs--left.el-tabs--border-card .el-tabs__item.is-left.is-active{border-color:transparent;border-top-color:#d1dbe5;border-bottom-color:#d1dbe5}.el-tabs--right .el-tabs__header.is-right{float:right;margin-bottom:0;margin-left:10px}.el-tabs--right .el-tabs__nav-wrap.is-right{margin-left:-1px}.el-tabs--right .el-tabs__nav-wrap.is-right:after{left:0;right:auto}.el-tabs--right .el-tabs__active-bar.is-right{left:0}.el-tabs--right.el-tabs--card .el-tabs__active-bar.is-right{display:none}.el-tabs--right.el-tabs--card .el-tabs__item.is-right{border-bottom:none;border-top:1px solid var(--el-border-color-light)}.el-tabs--right.el-tabs--card .el-tabs__item.is-right:first-child{border-left:1px solid var(--el-border-color-light);border-top:none}.el-tabs--right.el-tabs--card .el-tabs__item.is-right.is-active{border:1px solid var(--el-border-color-light);border-left-color:#fff;border-right:none;border-bottom:none}.el-tabs--right.el-tabs--card .el-tabs__item.is-right.is-active:first-child{border-top:none}.el-tabs--right.el-tabs--card .el-tabs__item.is-right.is-active:last-child{border-bottom:none}.el-tabs--right.el-tabs--card .el-tabs__nav{border-radius:0 4px 4px 0;border-bottom:1px solid var(--el-border-color-light);border-left:none}.el-tabs--right.el-tabs--border-card .el-tabs__header.is-right{border-left:1px solid var(--el-border-color)}.el-tabs--right.el-tabs--border-card .el-tabs__item.is-right{border:1px solid transparent;margin:-1px -1px -1px 0}.el-tabs--right.el-tabs--border-card .el-tabs__item.is-right.is-active{border-color:transparent;border-top-color:#d1dbe5;border-bottom-color:#d1dbe5}.slideInLeft-transition,.slideInRight-transition{display:inline-block}.slideInRight-enter{-webkit-animation:slideInRight-enter var(--el-transition-duration);animation:slideInRight-enter var(--el-transition-duration)}.slideInRight-leave{position:absolute;left:0;right:0;-webkit-animation:slideInRight-leave var(--el-transition-duration);animation:slideInRight-leave var(--el-transition-duration)}.slideInLeft-enter{-webkit-animation:slideInLeft-enter var(--el-transition-duration);animation:slideInLeft-enter var(--el-transition-duration)}.slideInLeft-leave{position:absolute;left:0;right:0;-webkit-animation:slideInLeft-leave var(--el-transition-duration);animation:slideInLeft-leave var(--el-transition-duration)}@-webkit-keyframes slideInRight-enter{0%{opacity:0;transform-origin:0 0;transform:translate(100%)}to{opacity:1;transform-origin:0 0;transform:translate(0)}}@keyframes slideInRight-enter{0%{opacity:0;transform-origin:0 0;transform:translate(100%)}to{opacity:1;transform-origin:0 0;transform:translate(0)}}@-webkit-keyframes slideInRight-leave{0%{transform-origin:0 0;transform:translate(0);opacity:1}to{transform-origin:0 0;transform:translate(100%);opacity:0}}@keyframes slideInRight-leave{0%{transform-origin:0 0;transform:translate(0);opacity:1}to{transform-origin:0 0;transform:translate(100%);opacity:0}}@-webkit-keyframes slideInLeft-enter{0%{opacity:0;transform-origin:0 0;transform:translate(-100%)}to{opacity:1;transform-origin:0 0;transform:translate(0)}}@keyframes slideInLeft-enter{0%{opacity:0;transform-origin:0 0;transform:translate(-100%)}to{opacity:1;transform-origin:0 0;transform:translate(0)}}@-webkit-keyframes slideInLeft-leave{0%{transform-origin:0 0;transform:translate(0);opacity:1}to{transform-origin:0 0;transform:translate(-100%);opacity:0}}@keyframes slideInLeft-leave{0%{transform-origin:0 0;transform:translate(0);opacity:1}to{transform-origin:0 0;transform:translate(-100%);opacity:0}}.el-radio-group{display:inline-flex;align-items:center;flex-wrap:wrap;font-size:0}.el-radio-button{--el-radio-button-checked-bg-color:var(--el-color-primary);--el-radio-button-checked-text-color:var(--el-color-white);--el-radio-button-checked-border-color:var(--el-color-primary);--el-radio-button-disabled-checked-fill:var(--el-border-color-extra-light)}.el-radio-button{position:relative;display:inline-block;outline:0}.el-radio-button__inner{display:inline-block;line-height:1;white-space:nowrap;vertical-align:middle;background:var(--el-button-bg-color,var(--el-fill-color-blank));border:var(--el-border);font-weight:var(--el-button-font-weight,var(--el-font-weight-primary));border-left:0;color:var(--el-button-text-color,var(--el-text-color-regular));-webkit-appearance:none;text-align:center;box-sizing:border-box;outline:0;margin:0;position:relative;cursor:pointer;transition:var(--el-transition-all);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;padding:8px 15px;font-size:var(--el-font-size-base);border-radius:0}.el-radio-button__inner.is-round{padding:8px 15px}.el-radio-button__inner:hover{color:var(--el-color-primary)}.el-radio-button__inner [class*=el-icon-]{line-height:.9}.el-radio-button__inner [class*=el-icon-]+span{margin-left:5px}.el-radio-button:first-child .el-radio-button__inner{border-left:var(--el-border);border-radius:var(--el-border-radius-base) 0 0 var(--el-border-radius-base);box-shadow:none!important}.el-radio-button__original-radio{opacity:0;outline:0;position:absolute;z-index:-1}.el-radio-button__original-radio:checked+.el-radio-button__inner{color:var(--el-radio-button-checked-text-color,var(--el-color-white));background-color:var(--el-radio-button-checked-bg-color,var(--el-color-primary));border-color:var(--el-radio-button-checked-border-color,var(--el-color-primary));box-shadow:-1px 0 0 0 var(--el-radio-button-checked-border-color,var(--el-color-primary))}.el-radio-button__original-radio:focus-visible+.el-radio-button__inner{border-left:var(--el-border);border-left-color:var(--el-radio-button-checked-border-color,var(--el-color-primary));outline:2px solid var(--el-radio-button-checked-border-color);outline-offset:1px;z-index:2;border-radius:var(--el-border-radius-base);box-shadow:none}.el-radio-button__original-radio:disabled+.el-radio-button__inner{color:var(--el-disabled-text-color);cursor:not-allowed;background-image:none;background-color:var(--el-button-disabled-bg-color,var(--el-fill-color-blank));border-color:var(--el-button-disabled-border-color,var(--el-border-color-light));box-shadow:none}.el-radio-button__original-radio:disabled:checked+.el-radio-button__inner{background-color:var(--el-radio-button-disabled-checked-fill)}.el-radio-button:last-child .el-radio-button__inner{border-radius:0 var(--el-border-radius-base) var(--el-border-radius-base) 0}.el-radio-button:first-child:last-child .el-radio-button__inner{border-radius:var(--el-border-radius-base)}.el-radio-button--large .el-radio-button__inner{padding:12px 19px;font-size:var(--el-font-size-base);border-radius:0}.el-radio-button--large .el-radio-button__inner.is-round{padding:12px 19px}.el-radio-button--small .el-radio-button__inner{padding:5px 11px;font-size:12px;border-radius:0}.el-radio-button--small .el-radio-button__inner.is-round{padding:5px 11px}.anon[data-v-c2b6a067]{width:80px}.el-tab-pane[data-v-c2b6a067]{max-width:600px}h2[data-v-c2b6a067]{margin-top:0}.apikey[data-v-c2b6a067]{width:calc(100% - 80px)}@media only screen and (max-width: 1000px){.anon[data-v-c2b6a067]{width:80px}.apikey[data-v-c2b6a067]{width:100%}}
|
|
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="app"></div>
|
|
|
|
<script>window.history.pushState=window.history.replaceState=function(){};</script>
|
|
</body>
|
|
</html>
|