Repository: fatedier/frp (language: go)

Issue:
能否在服务端控制面板中展示更多信息
### Describe the feature request

控制面板中目前至展示了bind bindudp http 和https4四个端口。能否增加展示kcp端口和新的quic端口。发现0.46.1的kcp端口如果设置了和bind端口一样，那么quic端口如果也设置和kcp端一样，那么服务无法启动。必须设置另一个端口。
但随着配置增加，各种端口各种配置是否允许，设置的什么值经常忘掉，但是有时候又不想再去看配置文件，控制面板毕竟看起来更清爽。
所以希望增加kcp端口，quic端口，已经允许映射的端口范围的展示
如果能增加展示一些其他信息就更好了。比如是否必须强制tls，是否必须mux之类。
还有希望能看到客户端是通过哪个协议注册的服务。是tcp, kcp,还是quic,还有还能展示客户端的版本号就更好了。现在只能到日志里去看，太慢烦了

### Describe alternatives you've considered

_No response_

### Affected area

- [ ] Docs
- [ ] Installation
- [ ] Performance and Scalability
- [ ] Security
- [ ] User Experience
- [ ] Test and Release
- [ ] Developer Infrastructure
- [ ] Client Plugin
- [ ] Server Plugin
- [ ] Extensions
- [ ] Others


Discussion / hints:

Fix patch:
diff --git a/assets/frps/static/index-cd02d3b4.js b/assets/frps/static/index-2a8cf2f5.js
similarity index 51%
rename from assets/frps/static/index-cd02d3b4.js
rename to assets/frps/static/index-2a8cf2f5.js
index 44b23d272bc..2ba05a6e4f1 100644
--- a/assets/frps/static/index-cd02d3b4.js
+++ b/assets/frps/static/index-2a8cf2f5.js
@@ -1,4 +1,4 @@
-var TL=Object.defineProperty;var ML=(e,t,r)=>t in e?TL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var AL=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Wt=(e,t,r)=>(ML(e,typeof t!="symbol"?t+"":t,r),r);var Iee=AL((Or,kr)=>{(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerpolicy&&(a.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?a.credentials="include":i.crossorigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=r(i);fetch(i.href,a)}})();function mm(e,t){const r=Object.create(null),n=e.split(",");for(let i=0;i<n.length;i++)r[n[i]]=!0;return t?i=>!!r[i.toLowerCase()]:i=>!!r[i]}function At(e){if(ye(e)){const t={};for(let r=0;r<e.length;r++){const n=e[r],i=Ue(n)?DL(n):At(n);if(i)for(const a in i)t[a]=i[a]}return t}else{if(Ue(e))return e;if(je(e))return e}}const EL=/;(?![^(]*\))/g,PL=/:([^]+)/,LL=/\/\*.*?\*\//gs;function DL(e){const t={};return e.replace(LL,"").split(EL).forEach(r=>{if(r){const n=r.split(PL);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function de(e){let t="";if(Ue(e))t=e;else if(ye(e))for(let r=0;r<e.length;r++){const n=de(e[r]);n&&(t+=n+" ")}else if(je(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}const IL="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",RL=mm(IL);function US(e){return!!e||e===""}function OL(e,t){if(e.length!==t.length)return!1;let r=!0;for(let n=0;r&&n<e.length;n++)r=gd(e[n],t[n]);return r}function gd(e,t){if(e===t)return!0;let r=N0(e),n=N0(t);if(r||n)return r&&n?e.getTime()===t.getTime():!1;if(r=Zl(e),n=Zl(t),r||n)return e===t;if(r=ye(e),n=ye(t),r||n)return r&&n?OL(e,t):!1;if(r=je(e),n=je(t),r||n){if(!r||!n)return!1;const i=Object.keys(e).length,a=Object.keys(t).length;if(i!==a)return!1;for(const o in e){const s=e.hasOwnProperty(o),l=t.hasOwnProperty(o);if(s&&!l||!s&&l||!gd(e[o],t[o]))return!1}}return String(e)===String(t)}function YS(e,t){return e.findIndex(r=>gd(r,t))}const Re=e=>Ue(e)?e:e==null?"":ye(e)||je(e)&&(e.toString===KS||!Ee(e.toString))?JSON.stringify(e,qS,2):String(e),qS=(e,t)=>t&&t.__v_isRef?qS(e,t.value):Qo(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,i])=>(r[`${n} =>`]=i,r),{})}:yd(t)?{[`Set(${t.size})`]:[...t.values()]}:je(t)&&!ye(t)&&!XS(t)?String(t):t,mt={},Zo=[],or=()=>{},kL=()=>!1,NL=/^on[^a-z]/,md=e=>NL.test(e),ym=e=>e.startsWith("onUpdate:"),jt=Object.assign,_m=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},BL=Object.prototype.hasOwnProperty,ze=(e,t)=>BL.call(e,t),ye=Array.isArray,Qo=e=>Du(e)==="[object Map]",yd=e=>Du(e)==="[object Set]",N0=e=>Du(e)==="[object Date]",Ee=e=>typeof e=="function",Ue=e=>typeof e=="string",Zl=e=>typeof e=="symbol",je=e=>e!==null&&typeof e=="object",jS=e=>je(e)&&Ee(e.then)&&Ee(e.catch),KS=Object.prototype.toString,Du=e=>KS.call(e),FL=e=>Du(e).slice(8,-1),XS=e=>Du(e)==="[object Object]",bm=e=>Ue(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,nc=mm(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),_d=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},$L=/-(\w)/g,Sn=_d(e=>e.replace($L,(t,r)=>r?r.toUpperCase():"")),HL=/\B([A-Z])/g,Ps=_d(e=>e.replace(HL,"-$1").toLowerCase()),bd=_d(e=>e.charAt(0).toUpperCase()+e.slice(1)),ic=_d(e=>e?`on${bd(e)}`:""),Ql=(e,t)=>!Object.is(e,t),ac=(e,t)=>{for(let r=0;r<e.length;r++)e[r](t)},Ic=(e,t,r)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r})},wm=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let B0;const zL=()=>B0||(B0=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let Dr;class WL{constructor(t=!1){this.detached=t,this.active=!0,this.effects=[],this.cleanups=[],this.parent=Dr,!t&&Dr&&(this.index=(Dr.scopes||(Dr.scopes=[])).push(this)-1)}run(t){if(this.active){const r=Dr;try{return Dr=this,t()}finally{Dr=r}}}on(){Dr=this}off(){Dr=this.parent}stop(t){if(this.active){let r,n;for(r=0,n=this.effects.length;r<n;r++)this.effects[r].stop();for(r=0,n=this.cleanups.length;r<n;r++)this.cleanups[r]();if(this.scopes)for(r=0,n=this.scopes.length;r<n;r++)this.scopes[r].stop(!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,this.active=!1}}}function VL(e,t=Dr){t&&t.active&&t.effects.push(e)}function GL(){return Dr}function UL(e){Dr&&Dr.cleanups.push(e)}const xm=e=>{const t=new Set(e);return t.w=0,t.n=0,t},ZS=e=>(e.w&Zi)>0,QS=e=>(e.n&Zi)>0,YL=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Zi},qL=e=>{const{deps:t}=e;if(t.length){let r=0;for(let n=0;n<t.length;n++){const i=t[n];ZS(i)&&!QS(i)?i.delete(e):t[r++]=i,i.w&=~Zi,i.n&=~Zi}t.length=r}},vp=new WeakMap;let pl=0,Zi=1;const pp=30;let mn;const Qa=Symbol(""),gp=Symbol("");class Sm{constructor(t,r=null,n){this.fn=t,this.scheduler=r,this.active=!0,this.deps=[],this.parent=void 0,VL(this,n)}run(){if(!this.active)return this.fn();let t=mn,r=qi;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=mn,mn=this,qi=!0,Zi=1<<++pl,pl<=pp?YL(this):F0(this),this.fn()}finally{pl<=pp&&qL(this),Zi=1<<--pl,mn=this.parent,qi=r,this.parent=void 0,this.deferStop&&this.stop()}}stop(){mn===this?this.deferStop=!0:this.active&&(F0(this),this.onStop&&this.onStop(),this.active=!1)}}function F0(e){const{deps:t}=e;if(t.length){for(let r=0;r<t.length;r++)t[r].delete(e);t.length=0}}let qi=!0;const JS=[];function Ls(){JS.push(qi),qi=!1}function Ds(){const e=JS.pop();qi=e===void 0?!0:e}function Fr(e,t,r){if(qi&&mn){let n=vp.get(e);n||vp.set(e,n=new Map);let i=n.get(r);i||n.set(r,i=xm()),eC(i)}}function eC(e,t){let r=!1;pl<=pp?QS(e)||(e.n|=Zi,r=!ZS(e)):r=!e.has(mn),r&&(e.add(mn),mn.deps.push(e))}function di(e,t,r,n,i,a){const o=vp.get(e);if(!o)return;let s=[];if(t==="clear")s=[...o.values()];else if(r==="length"&&ye(e)){const l=wm(n);o.forEach((u,f)=>{(f==="length"||f>=l)&&s.push(u)})}else switch(r!==void 0&&s.push(o.get(r)),t){case"add":ye(e)?bm(r)&&s.push(o.get("length")):(s.push(o.get(Qa)),Qo(e)&&s.push(o.get(gp)));break;case"delete":ye(e)||(s.push(o.get(Qa)),Qo(e)&&s.push(o.get(gp)));break;case"set":Qo(e)&&s.push(o.get(Qa));break}if(s.length===1)s[0]&&mp(s[0]);else{const l=[];for(const u of s)u&&l.push(...u);mp(xm(l))}}function mp(e,t){const r=ye(e)?e:[...e];for(const n of r)n.computed&&$0(n);for(const n of r)n.computed||$0(n)}function $0(e,t){(e!==mn||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const jL=mm("__proto__,__v_isRef,__isVue"),tC=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Zl)),KL=Cm(),XL=Cm(!1,!0),ZL=Cm(!0),H0=QL();function QL(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...r){const n=Ze(this);for(let a=0,o=this.length;a<o;a++)Fr(n,"get",a+"");const i=n[t](...r);return i===-1||i===!1?n[t](...r.map(Ze)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...r){Ls();const n=Ze(this)[t].apply(this,r);return Ds(),n}}),e}function Cm(e=!1,t=!1){return function(n,i,a){if(i==="__v_isReactive")return!e;if(i==="__v_isReadonly")return e;if(i==="__v_isShallow")return t;if(i==="__v_raw"&&a===(e?t?vD:oC:t?aC:iC).get(n))return n;const o=ye(n);if(!e&&o&&ze(H0,i))return Reflect.get(H0,i,a);const s=Reflect.get(n,i,a);return(Zl(i)?tC.has(i):jL(i))||(e||Fr(n,"get",i),t)?s:St(s)?o&&bm(i)?s:s.value:je(s)?e?xd(s):ln(s):s}}const JL=rC(),eD=rC(!0);function rC(e=!1){return function(r,n,i,a){let o=r[n];if(us(o)&&St(o)&&!St(i))return!1;if(!e&&(!Rc(i)&&!us(i)&&(o=Ze(o),i=Ze(i)),!ye(r)&&St(o)&&!St(i)))return o.value=i,!0;const s=ye(r)&&bm(n)?Number(n)<r.length:ze(r,n),l=Reflect.set(r,n,i,a);return r===Ze(a)&&(s?Ql(i,o)&&di(r,"set",n,i):di(r,"add",n,i)),l}}function tD(e,t){const r=ze(e,t);e[t];const n=Reflect.deleteProperty(e,t);return n&&r&&di(e,"delete",t,void 0),n}function rD(e,t){const r=Reflect.has(e,t);return(!Zl(t)||!tC.has(t))&&Fr(e,"has",t),r}function nD(e){return Fr(e,"iterate",ye(e)?"length":Qa),Reflect.ownKeys(e)}const nC={get:KL,set:JL,deleteProperty:tD,has:rD,ownKeys:nD},iD={get:ZL,set(e,t){return!0},deleteProperty(e,t){return!0}},aD=jt({},nC,{get:XL,set:eD}),Tm=e=>e,wd=e=>Reflect.getPrototypeOf(e);function Xu(e,t,r=!1,n=!1){e=e.__v_raw;const i=Ze(e),a=Ze(t);r||(t!==a&&Fr(i,"get",t),Fr(i,"get",a));const{has:o}=wd(i),s=n?Tm:r?Em:Jl;if(o.call(i,t))return s(e.get(t));if(o.call(i,a))return s(e.get(a));e!==i&&e.get(t)}function Zu(e,t=!1){const r=this.__v_raw,n=Ze(r),i=Ze(e);return t||(e!==i&&Fr(n,"has",e),Fr(n,"has",i)),e===i?r.has(e):r.has(e)||r.has(i)}function Qu(e,t=!1){return e=e.__v_raw,!t&&Fr(Ze(e),"iterate",Qa),Reflect.get(e,"size",e)}function z0(e){e=Ze(e);const t=Ze(this);return wd(t).has.call(t,e)||(t.add(e),di(t,"add",e,e)),this}function W0(e,t){t=Ze(t);const r=Ze(this),{has:n,get:i}=wd(r);let a=n.call(r,e);a||(e=Ze(e),a=n.call(r,e));const o=i.call(r,e);return r.set(e,t),a?Ql(t,o)&&di(r,"set",e,t):di(r,"add",e,t),this}function V0(e){const t=Ze(this),{has:r,get:n}=wd(t);let i=r.call(t,e);i||(e=Ze(e),i=r.call(t,e)),n&&n.call(t,e);const a=t.delete(e);return i&&di(t,"delete",e,void 0),a}function G0(){const e=Ze(this),t=e.size!==0,r=e.clear();return t&&di(e,"clear",void 0,void 0),r}function Ju(e,t){return function(n,i){const a=this,o=a.__v_raw,s=Ze(o),l=t?Tm:e?Em:Jl;return!e&&Fr(s,"iterate",Qa),o.forEach((u,f)=>n.call(i,l(u),l(f),a))}}function ef(e,t,r){return function(...n){const i=this.__v_raw,a=Ze(i),o=Qo(a),s=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=i[e](...n),f=r?Tm:t?Em:Jl;return!t&&Fr(a,"iterate",l?gp:Qa),{next(){const{value:c,done:d}=u.next();return d?{value:c,done:d}:{value:s?[f(c[0]),f(c[1])]:f(c),done:d}},[Symbol.iterator](){return this}}}}function Ti(e){return function(...t){return e==="delete"?!1:this}}function oD(){const e={get(a){return Xu(this,a)},get size(){return Qu(this)},has:Zu,add:z0,set:W0,delete:V0,clear:G0,forEach:Ju(!1,!1)},t={get(a){return Xu(this,a,!1,!0)},get size(){return Qu(this)},has:Zu,add:z0,set:W0,delete:V0,clear:G0,forEach:Ju(!1,!0)},r={get(a){return Xu(this,a,!0)},get size(){return Qu(this,!0)},has(a){return Zu.call(this,a,!0)},add:Ti("add"),set:Ti("set"),delete:Ti("delete"),clear:Ti("clear"),forEach:Ju(!0,!1)},n={get(a){return Xu(this,a,!0,!0)},get size(){return Qu(this,!0)},has(a){return Zu.call(this,a,!0)},add:Ti("add"),set:Ti("set"),delete:Ti("delete"),clear:Ti("clear"),forEach:Ju(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(a=>{e[a]=ef(a,!1,!1),r[a]=ef(a,!0,!1),t[a]=ef(a,!1,!0),n[a]=ef(a,!0,!0)}),[e,r,t,n]}const[sD,lD,uD,fD]=oD();function Mm(e,t){const r=t?e?fD:uD:e?lD:sD;return(n,i,a)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(ze(r,i)&&i in n?r:n,i,a)}const cD={get:Mm(!1,!1)},dD={get:Mm(!1,!0)},hD={get:Mm(!0,!1)},iC=new WeakMap,aC=new WeakMap,oC=new WeakMap,vD=new WeakMap;function pD(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function gD(e){return e.__v_skip||!Object.isExtensible(e)?0:pD(FL(e))}function ln(e){return us(e)?e:Am(e,!1,nC,cD,iC)}function sC(e){return Am(e,!1,aD,dD,aC)}function xd(e){return Am(e,!0,iD,hD,oC)}function Am(e,t,r,n,i){if(!je(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=i.get(e);if(a)return a;const o=gD(e);if(o===0)return e;const s=new Proxy(e,o===2?n:r);return i.set(e,s),s}function Jo(e){return us(e)?Jo(e.__v_raw):!!(e&&e.__v_isReactive)}function us(e){return!!(e&&e.__v_isReadonly)}function Rc(e){return!!(e&&e.__v_isShallow)}function lC(e){return Jo(e)||us(e)}function Ze(e){const t=e&&e.__v_raw;return t?Ze(t):e}function uC(e){return Ic(e,"__v_skip",!0),e}const Jl=e=>je(e)?ln(e):e,Em=e=>je(e)?xd(e):e;function fC(e){qi&&mn&&(e=Ze(e),eC(e.dep||(e.dep=xm())))}function cC(e,t){e=Ze(e),e.dep&&mp(e.dep)}function St(e){return!!(e&&e.__v_isRef===!0)}function H(e){return dC(e,!1)}function mD(e){return dC(e,!0)}function dC(e,t){return St(e)?e:new yD(e,t)}class yD{constructor(t,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?t:Ze(t),this._value=r?t:Jl(t)}get value(){return fC(this),this._value}set value(t){const r=this.__v_isShallow||Rc(t)||us(t);t=r?t:Ze(t),Ql(t,this._rawValue)&&(this._rawValue=t,this._value=r?t:Jl(t),cC(this))}}function L(e){return St(e)?e.value:e}const _D={get:(e,t,r)=>L(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const i=e[t];return St(i)&&!St(r)?(i.value=r,!0):Reflect.set(e,t,r,n)}};function hC(e){return Jo(e)?e:new Proxy(e,_D)}function Sd(e){const t=ye(e)?new Array(e.length):{};for(const r in e)t[r]=wn(e,r);return t}class bD{constructor(t,r,n){this._object=t,this._key=r,this._defaultValue=n,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}}function wn(e,t,r){const n=e[t];return St(n)?n:new bD(e,t,r)}var vC;class wD{constructor(t,r,n,i){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this[vC]=!1,this._dirty=!0,this.effect=new Sm(t,()=>{this._dirty||(this._dirty=!0,cC(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=n}get value(){const t=Ze(this);return fC(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}vC="__v_isReadonly";function xD(e,t,r=!1){let n,i;const a=Ee(e);return a?(n=e,i=or):(n=e.get,i=e.set),new wD(n,i,a||!i,r)}function SD(e,...t){}function ji(e,t,r,n){let i;try{i=n?e(...n):e()}catch(a){Cd(a,t,r)}return i}function en(e,t,r,n){if(Ee(e)){const a=ji(e,t,r,n);return a&&jS(a)&&a.catch(o=>{Cd(o,t,r)}),a}const i=[];for(let a=0;a<e.length;a++)i.push(en(e[a],t,r,n));return i}function Cd(e,t,r,n=!0){const i=t?t.vnode:null;if(t){let a=t.parent;const o=t.proxy,s=r;for(;a;){const u=a.ec;if(u){for(let f=0;f<u.length;f++)if(u[f](e,o,s)===!1)return}a=a.parent}const l=t.appContext.config.errorHandler;if(l){ji(l,null,10,[e,o,s]);return}}CD(e,r,i,n)}function CD(e,t,r,n=!0){console.error(e)}let eu=!1,yp=!1;const Jt=[];let Nn=0;const es=[];let oi=null,$a=0;const pC=Promise.resolve();let Pm=null;function Ht(e){const t=Pm||pC;return e?t.then(this?e.bind(this):e):t}function TD(e){let t=Nn+1,r=Jt.length;for(;t<r;){const n=t+r>>>1;tu(Jt[n])<e?t=n+1:r=n}return t}function Lm(e){(!Jt.length||!Jt.includes(e,eu&&e.allowRecurse?Nn+1:Nn))&&(e.id==null?Jt.push(e):Jt.splice(TD(e.id),0,e),gC())}function gC(){!eu&&!yp&&(yp=!0,Pm=pC.then(yC))}function MD(e){const t=Jt.indexOf(e);t>Nn&&Jt.splice(t,1)}function AD(e){ye(e)?es.push(...e):(!oi||!oi.includes(e,e.allowRecurse?$a+1:$a))&&es.push(e),gC()}function U0(e,t=eu?Nn+1:0){for(;t<Jt.length;t++){const r=Jt[t];r&&r.pre&&(Jt.splice(t,1),t--,r())}}function mC(e){if(es.length){const t=[...new Set(es)];if(es.length=0,oi){oi.push(...t);return}for(oi=t,oi.sort((r,n)=>tu(r)-tu(n)),$a=0;$a<oi.length;$a++)oi[$a]();oi=null,$a=0}}const tu=e=>e.id==null?1/0:e.id,ED=(e,t)=>{const r=tu(e)-tu(t);if(r===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return r};function yC(e){yp=!1,eu=!0,Jt.sort(ED);const t=or;try{for(Nn=0;Nn<Jt.length;Nn++){const r=Jt[Nn];r&&r.active!==!1&&ji(r,null,14)}}finally{Nn=0,Jt.length=0,mC(),eu=!1,Pm=null,(Jt.length||es.length)&&yC()}}function PD(e,t,...r){if(e.isUnmounted)return;const n=e.vnode.props||mt;let i=r;const a=t.startsWith("update:"),o=a&&t.slice(7);if(o&&o in n){const f=`${o==="modelValue"?"model":o}Modifiers`,{number:c,trim:d}=n[f]||mt;d&&(i=r.map(h=>Ue(h)?h.trim():h)),c&&(i=r.map(wm))}let s,l=n[s=ic(t)]||n[s=ic(Sn(t))];!l&&a&&(l=n[s=ic(Ps(t))]),l&&en(l,e,6,i);const u=n[s+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,en(u,e,6,i)}}function _C(e,t,r=!1){const n=t.emitsCache,i=n.get(e);if(i!==void 0)return i;const a=e.emits;let o={},s=!1;if(!Ee(e)){const l=u=>{const f=_C(u,t,!0);f&&(s=!0,jt(o,f))};!r&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!a&&!s?(je(e)&&n.set(e,null),null):(ye(a)?a.forEach(l=>o[l]=null):jt(o,a),je(e)&&n.set(e,o),o)}function Td(e,t){return!e||!md(t)?!1:(t=t.slice(2).replace(/Once$/,""),ze(e,t[0].toLowerCase()+t.slice(1))||ze(e,Ps(t))||ze(e,t))}let Yt=null,bC=null;function Oc(e){const t=Yt;return Yt=e,bC=e&&e.type.__scopeId||null,t}function ee(e,t=Yt,r){if(!t||e._n)return e;const n=(...i)=>{n._d&&n_(-1);const a=Oc(t);let o;try{o=e(...i)}finally{Oc(a),n._d&&n_(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function xh(e){const{type:t,vnode:r,proxy:n,withProxy:i,props:a,propsOptions:[o],slots:s,attrs:l,emit:u,render:f,renderCache:c,data:d,setupState:h,ctx:v,inheritAttrs:p}=e;let g,m;const y=Oc(e);try{if(r.shapeFlag&4){const b=i||n;g=kn(f.call(b,b,c,a,h,d,v)),m=l}else{const b=t;g=kn(b.length>1?b(a,{attrs:l,slots:s,emit:u}):b(a,null)),m=t.props?l:LD(l)}}catch(b){Al.length=0,Cd(b,e,1),g=J(br)}let _=g;if(m&&p!==!1){const b=Object.keys(m),{shapeFlag:x}=_;b.length&&x&7&&(o&&b.some(ym)&&(m=DD(m,o)),_=vi(_,m))}return r.dirs&&(_=vi(_),_.dirs=_.dirs?_.dirs.concat(r.dirs):r.dirs),r.transition&&(_.transition=r.transition),g=_,Oc(y),g}const LD=e=>{let t;for(const r in e)(r==="class"||r==="style"||md(r))&&((t||(t={}))[r]=e[r]);return t},DD=(e,t)=>{const r={};for(const n in e)(!ym(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r};function ID(e,t,r){const{props:n,children:i,component:a}=e,{props:o,children:s,patchFlag:l}=t,u=a.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&l>=0){if(l&1024)return!0;if(l&16)return n?Y0(n,o,u):!!o;if(l&8){const f=t.dynamicProps;for(let c=0;c<f.length;c++){const d=f[c];if(o[d]!==n[d]&&!Td(u,d))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:n===o?!1:n?o?Y0(n,o,u):!0:!!o;return!1}function Y0(e,t,r){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let i=0;i<n.length;i++){const a=n[i];if(t[a]!==e[a]&&!Td(r,a))return!0}return!1}function RD({vnode:e,parent:t},r){for(;t&&t.subTree===e;)(e=t.vnode).el=r,t=t.parent}const OD=e=>e.__isSuspense;function kD(e,t){t&&t.pendingBranch?ye(e)?t.effects.push(...e):t.effects.push(e):AD(e)}function Ct(e,t){if($t){let r=$t.provides;const n=$t.parent&&$t.parent.provides;n===r&&(r=$t.provides=Object.create(n)),r[e]=t}}function De(e,t,r=!1){const n=$t||Yt;if(n){const i=n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides;if(i&&e in i)return i[e];if(arguments.length>1)return r&&Ee(t)?t.call(n.proxy):t}}function ts(e,t){return Dm(e,null,t)}const tf={};function Me(e,t,r){return Dm(e,t,r)}function Dm(e,t,{immediate:r,deep:n,flush:i,onTrack:a,onTrigger:o}=mt){const s=$t;let l,u=!1,f=!1;if(St(e)?(l=()=>e.value,u=Rc(e)):Jo(e)?(l=()=>e,n=!0):ye(e)?(f=!0,u=e.some(_=>Jo(_)||Rc(_)),l=()=>e.map(_=>{if(St(_))return _.value;if(Jo(_))return Ua(_);if(Ee(_))return ji(_,s,2)})):Ee(e)?t?l=()=>ji(e,s,2):l=()=>{if(!(s&&s.isUnmounted))return c&&c(),en(e,s,3,[d])}:l=or,t&&n){const _=l;l=()=>Ua(_())}let c,d=_=>{c=m.onStop=()=>{ji(_,s,4)}},h;if(nu)if(d=or,t?r&&en(t,s,3,[l(),f?[]:void 0,d]):l(),i==="sync"){const _=AI();h=_.__watcherHandles||(_.__watcherHandles=[])}else return or;let v=f?new Array(e.length).fill(tf):tf;const p=()=>{if(m.active)if(t){const _=m.run();(n||u||(f?_.some((b,x)=>Ql(b,v[x])):Ql(_,v)))&&(c&&c(),en(t,s,3,[_,v===tf?void 0:f&&v[0]===tf?[]:v,d]),v=_)}else m.run()};p.allowRecurse=!!t;let g;i==="sync"?g=p:i==="post"?g=()=>pr(p,s&&s.suspense):(p.pre=!0,s&&(p.id=s.uid),g=()=>Lm(p));const m=new Sm(l,g);t?r?p():v=m.run():i==="post"?pr(m.run.bind(m),s&&s.suspense):m.run();const y=()=>{m.stop(),s&&s.scope&&_m(s.scope.effects,m)};return h&&h.push(y),y}function ND(e,t,r){const n=this.proxy,i=Ue(e)?e.includes(".")?wC(n,e):()=>n[e]:e.bind(n,n);let a;Ee(t)?a=t:(a=t.handler,r=t);const o=$t;fs(this);const s=Dm(i,a.bind(n),r);return o?fs(o):Ja(),s}function wC(e,t){const r=t.split(".");return()=>{let n=e;for(let i=0;i<r.length&&n;i++)n=n[r[i]];return n}}function Ua(e,t){if(!je(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),St(e))Ua(e.value,t);else if(ye(e))for(let r=0;r<e.length;r++)Ua(e[r],t);else if(yd(e)||Qo(e))e.forEach(r=>{Ua(r,t)});else if(XS(e))for(const r in e)Ua(e[r],t);return e}function BD(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Et(()=>{e.isMounted=!0}),tr(()=>{e.isUnmounting=!0}),e}const zr=[Function,Array],FD={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:zr,onEnter:zr,onAfterEnter:zr,onEnterCancelled:zr,onBeforeLeave:zr,onLeave:zr,onAfterLeave:zr,onLeaveCancelled:zr,onBeforeAppear:zr,onAppear:zr,onAfterAppear:zr,onAppearCancelled:zr},setup(e,{slots:t}){const r=dt(),n=BD();let i;return()=>{const a=t.default&&CC(t.default(),!0);if(!a||!a.length)return;let o=a[0];if(a.length>1){for(const p of a)if(p.type!==br){o=p;break}}const s=Ze(e),{mode:l}=s;if(n.isLeaving)return Sh(o);const u=q0(o);if(!u)return Sh(o);const f=_p(u,s,n,r);bp(u,f);const c=r.subTree,d=c&&q0(c);let h=!1;const{getTransitionKey:v}=u.type;if(v){const p=v();i===void 0?i=p:p!==i&&(i=p,h=!0)}if(d&&d.type!==br&&(!Ha(u,d)||h)){const p=_p(d,s,n,r);if(bp(d,p),l==="out-in")return n.isLeaving=!0,p.afterLeave=()=>{n.isLeaving=!1,r.update.active!==!1&&r.update()},Sh(o);l==="in-out"&&u.type!==br&&(p.delayLeave=(g,m,y)=>{const _=SC(n,d);_[String(d.key)]=d,g._leaveCb=()=>{m(),g._leaveCb=void 0,delete f.delayedLeave},f.delayedLeave=y})}return o}}},xC=FD;function SC(e,t){const{leavingVNodes:r}=e;let n=r.get(t.type);return n||(n=Object.create(null),r.set(t.type,n)),n}function _p(e,t,r,n){const{appear:i,mode:a,persisted:o=!1,onBeforeEnter:s,onEnter:l,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:c,onLeave:d,onAfterLeave:h,onLeaveCancelled:v,onBeforeAppear:p,onAppear:g,onAfterAppear:m,onAppearCancelled:y}=t,_=String(e.key),b=SC(r,e),x=(C,T)=>{C&&en(C,n,9,T)},w=(C,T)=>{const E=T[1];x(C,T),ye(C)?C.every(A=>A.length<=1)&&E():C.length<=1&&E()},S={mode:a,persisted:o,beforeEnter(C){let T=s;if(!r.isMounted)if(i)T=p||s;else return;C._leaveCb&&C._leaveCb(!0);const E=b[_];E&&Ha(e,E)&&E.el._leaveCb&&E.el._leaveCb(),x(T,[C])},enter(C){let T=l,E=u,A=f;if(!r.isMounted)if(i)T=g||l,E=m||u,A=y||f;else return;let M=!1;const D=C._enterCb=O=>{M||(M=!0,O?x(A,[C]):x(E,[C]),S.delayedLeave&&S.delayedLeave(),C._enterCb=void 0)};T?w(T,[C,D]):D()},leave(C,T){const E=String(e.key);if(C._enterCb&&C._enterCb(!0),r.isUnmounting)return T();x(c,[C]);let A=!1;const M=C._leaveCb=D=>{A||(A=!0,T(),D?x(v,[C]):x(h,[C]),C._leaveCb=void 0,b[E]===e&&delete b[E])};b[E]=e,d?w(d,[C,M]):M()},clone(C){return _p(C,t,r,n)}};return S}function Sh(e){if(Md(e))return e=vi(e),e.children=null,e}function q0(e){return Md(e)?e.children?e.children[0]:void 0:e}function bp(e,t){e.shapeFlag&6&&e.component?bp(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 CC(e,t=!1,r){let n=[],i=0;for(let a=0;a<e.length;a++){let o=e[a];const s=r==null?o.key:String(r)+String(o.key!=null?o.key:a);o.type===wt?(o.patchFlag&128&&i++,n=n.concat(CC(o.children,t,s))):(t||o.type!==br)&&n.push(s!=null?vi(o,{key:s}):o)}if(i>1)for(let a=0;a<n.length;a++)n[a].patchFlag=-2;return n}function ue(e){return Ee(e)?{setup:e,name:e.name}:e}const Cl=e=>!!e.type.__asyncLoader,Md=e=>e.type.__isKeepAlive;function $D(e,t){MC(e,"a",t)}function TC(e,t){MC(e,"da",t)}function MC(e,t,r=$t){const n=e.__wdc||(e.__wdc=()=>{let i=r;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Ad(t,n,r),r){let i=r.parent;for(;i&&i.parent;)Md(i.parent.vnode)&&HD(n,t,r,i),i=i.parent}}function HD(e,t,r,n){const i=Ad(t,e,n,!0);Iu(()=>{_m(n[t],i)},r)}function Ad(e,t,r=$t,n=!1){if(r){const i=r[e]||(r[e]=[]),a=t.__weh||(t.__weh=(...o)=>{if(r.isUnmounted)return;Ls(),fs(r);const s=en(t,r,e,o);return Ja(),Ds(),s});return n?i.unshift(a):i.push(a),a}}const bi=e=>(t,r=$t)=>(!nu||e==="sp")&&Ad(e,(...n)=>t(...n),r),Ed=bi("bm"),Et=bi("m"),zD=bi("bu"),Pd=bi("u"),tr=bi("bum"),Iu=bi("um"),WD=bi("sp"),VD=bi("rtg"),GD=bi("rtc");function UD(e,t=$t){Ad("ec",e,t)}function sr(e,t){const r=Yt;if(r===null)return e;const n=Dd(r)||r.proxy,i=e.dirs||(e.dirs=[]);for(let a=0;a<t.length;a++){let[o,s,l,u=mt]=t[a];o&&(Ee(o)&&(o={mounted:o,updated:o}),o.deep&&Ua(s),i.push({dir:o,instance:n,value:s,oldValue:void 0,arg:l,modifiers:u}))}return e}function sa(e,t,r,n){const i=e.dirs,a=t&&t.dirs;for(let o=0;o<i.length;o++){const s=i[o];a&&(s.oldValue=a[o].value);let l=s.dir[n];l&&(Ls(),en(l,r,8,[e.el,s,e,t]),Ds())}}const Im="components",YD="directives";function gr(e,t){return Om(Im,e,!0,t)||e}const AC=Symbol();function hi(e){return Ue(e)?Om(Im,e,!1)||e:e||AC}function Rm(e){return Om(YD,e)}function Om(e,t,r=!0,n=!1){const i=Yt||$t;if(i){const a=i.type;if(e===Im){const s=SI(a,!1);if(s&&(s===t||s===Sn(t)||s===bd(Sn(t))))return a}const o=j0(i[e]||a[e],t)||j0(i.appContext[e],t);return!o&&n?a:o}}function j0(e,t){return e&&(e[t]||e[Sn(t)]||e[bd(Sn(t))])}function K0(e,t,r,n){let i;const a=r&&r[n];if(ye(e)||Ue(e)){i=new Array(e.length);for(let o=0,s=e.length;o<s;o++)i[o]=t(e[o],o,void 0,a&&a[o])}else if(typeof e=="number"){i=new Array(e);for(let o=0;o<e;o++)i[o]=t(o+1,o,void 0,a&&a[o])}else if(je(e))if(e[Symbol.iterator])i=Array.from(e,(o,s)=>t(o,s,void 0,a&&a[s]));else{const o=Object.keys(e);i=new Array(o.length);for(let s=0,l=o.length;s<l;s++){const u=o[s];i[s]=t(e[u],u,s,a&&a[s])}}else i=[];return r&&(r[n]=i),i}function Be(e,t,r={},n,i){if(Yt.isCE||Yt.parent&&Cl(Yt.parent)&&Yt.parent.isCE)return t!=="default"&&(r.name=t),J("slot",r,n&&n());let a=e[t];a&&a._c&&(a._d=!1),X();const o=a&&EC(a(r)),s=Ie(wt,{key:r.key||o&&o.key||`_${t}`},o||(n?n():[]),o&&e._===1?64:-2);return!i&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),a&&a._c&&(a._d=!0),s}function EC(e){return e.some(t=>Qi(t)?!(t.type===br||t.type===wt&&!EC(t.children)):!0)?e:null}function qD(e,t){const r={};for(const n in e)r[t&&/[A-Z]/.test(n)?`on:${n}`:ic(n)]=e[n];return r}const wp=e=>e?$C(e)?Dd(e)||e.proxy:wp(e.parent):null,Tl=jt(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=>wp(e.parent),$root:e=>wp(e.root),$emit:e=>e.emit,$options:e=>km(e),$forceUpdate:e=>e.f||(e.f=()=>Lm(e.update)),$nextTick:e=>e.n||(e.n=Ht.bind(e.proxy)),$watch:e=>ND.bind(e)}),Ch=(e,t)=>e!==mt&&!e.__isScriptSetup&&ze(e,t),jD={get({_:e},t){const{ctx:r,setupState:n,data:i,props:a,accessCache:o,type:s,appContext:l}=e;let u;if(t[0]!=="$"){const h=o[t];if(h!==void 0)switch(h){case 1:return n[t];case 2:return i[t];case 4:return r[t];case 3:return a[t]}else{if(Ch(n,t))return o[t]=1,n[t];if(i!==mt&&ze(i,t))return o[t]=2,i[t];if((u=e.propsOptions[0])&&ze(u,t))return o[t]=3,a[t];if(r!==mt&&ze(r,t))return o[t]=4,r[t];xp&&(o[t]=0)}}const f=Tl[t];let c,d;if(f)return t==="$attrs"&&Fr(e,"get",t),f(e);if((c=s.__cssModules)&&(c=c[t]))return c;if(r!==mt&&ze(r,t))return o[t]=4,r[t];if(d=l.config.globalProperties,ze(d,t))return d[t]},set({_:e},t,r){const{data:n,setupState:i,ctx:a}=e;return Ch(i,t)?(i[t]=r,!0):n!==mt&&ze(n,t)?(n[t]=r,!0):ze(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(a[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:n,appContext:i,propsOptions:a}},o){let s;return!!r[o]||e!==mt&&ze(e,o)||Ch(t,o)||(s=a[0])&&ze(s,o)||ze(n,o)||ze(Tl,o)||ze(i.config.globalProperties,o)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:ze(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};let xp=!0;function KD(e){const t=km(e),r=e.proxy,n=e.ctx;xp=!1,t.beforeCreate&&X0(t.beforeCreate,e,"bc");const{data:i,computed:a,methods:o,watch:s,provide:l,inject:u,created:f,beforeMount:c,mounted:d,beforeUpdate:h,updated:v,activated:p,deactivated:g,beforeDestroy:m,beforeUnmount:y,destroyed:_,unmounted:b,render:x,renderTracked:w,renderTriggered:S,errorCaptured:C,serverPrefetch:T,expose:E,inheritAttrs:A,components:M,directives:D,filters:O}=t;if(u&&XD(u,n,null,e.appContext.config.unwrapInjectedRef),o)for(const j in o){const B=o[j];Ee(B)&&(n[j]=B.bind(r))}if(i){const j=i.call(r,r);je(j)&&(e.data=ln(j))}if(xp=!0,a)for(const j in a){const B=a[j],N=Ee(B)?B.bind(r,r):Ee(B.get)?B.get.bind(r,r):or,U=!Ee(B)&&Ee(B.set)?B.set.bind(r):or,re=$({get:N,set:U});Object.defineProperty(n,j,{enumerable:!0,configurable:!0,get:()=>re.value,set:ae=>re.value=ae})}if(s)for(const j in s)PC(s[j],n,r,j);if(l){const j=Ee(l)?l.call(r):l;Reflect.ownKeys(j).forEach(B=>{Ct(B,j[B])})}f&&X0(f,e,"c");function F(j,B){ye(B)?B.forEach(N=>j(N.bind(r))):B&&j(B.bind(r))}if(F(Ed,c),F(Et,d),F(zD,h),F(Pd,v),F($D,p),F(TC,g),F(UD,C),F(GD,w),F(VD,S),F(tr,y),F(Iu,b),F(WD,T),ye(E))if(E.length){const j=e.exposed||(e.exposed={});E.forEach(B=>{Object.defineProperty(j,B,{get:()=>r[B],set:N=>r[B]=N})})}else e.exposed||(e.exposed={});x&&e.render===or&&(e.render=x),A!=null&&(e.inheritAttrs=A),M&&(e.components=M),D&&(e.directives=D)}function XD(e,t,r=or,n=!1){ye(e)&&(e=Sp(e));for(const i in e){const a=e[i];let o;je(a)?"default"in a?o=De(a.from||i,a.default,!0):o=De(a.from||i):o=De(a),St(o)&&n?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>o.value,set:s=>o.value=s}):t[i]=o}}function X0(e,t,r){en(ye(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function PC(e,t,r,n){const i=n.includes(".")?wC(r,n):()=>r[n];if(Ue(e)){const a=t[e];Ee(a)&&Me(i,a)}else if(Ee(e))Me(i,e.bind(r));else if(je(e))if(ye(e))e.forEach(a=>PC(a,t,r,n));else{const a=Ee(e.handler)?e.handler.bind(r):t[e.handler];Ee(a)&&Me(i,a,e)}}function km(e){const t=e.type,{mixins:r,extends:n}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t);let l;return s?l=s:!i.length&&!r&&!n?l=t:(l={},i.length&&i.forEach(u=>kc(l,u,o,!0)),kc(l,t,o)),je(t)&&a.set(t,l),l}function kc(e,t,r,n=!1){const{mixins:i,extends:a}=t;a&&kc(e,a,r,!0),i&&i.forEach(o=>kc(e,o,r,!0));for(const o in t)if(!(n&&o==="expose")){const s=ZD[o]||r&&r[o];e[o]=s?s(e[o],t[o]):t[o]}return e}const ZD={data:Z0,props:Na,emits:Na,methods:Na,computed:Na,beforeCreate:rr,created:rr,beforeMount:rr,mounted:rr,beforeUpdate:rr,updated:rr,beforeDestroy:rr,beforeUnmount:rr,destroyed:rr,unmounted:rr,activated:rr,deactivated:rr,errorCaptured:rr,serverPrefetch:rr,components:Na,directives:Na,watch:JD,provide:Z0,inject:QD};function Z0(e,t){return t?e?function(){return jt(Ee(e)?e.call(this,this):e,Ee(t)?t.call(this,this):t)}:t:e}function QD(e,t){return Na(Sp(e),Sp(t))}function Sp(e){if(ye(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function rr(e,t){return e?[...new Set([].concat(e,t))]:t}function Na(e,t){return e?jt(jt(Object.create(null),e),t):t}function JD(e,t){if(!e)return t;if(!t)return e;const r=jt(Object.create(null),e);for(const n in t)r[n]=rr(e[n],t[n]);return r}function eI(e,t,r,n=!1){const i={},a={};Ic(a,Ld,1),e.propsDefaults=Object.create(null),LC(e,t,i,a);for(const o in e.propsOptions[0])o in i||(i[o]=void 0);r?e.props=n?i:sC(i):e.type.props?e.props=i:e.props=a,e.attrs=a}function tI(e,t,r,n){const{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=Ze(i),[l]=e.propsOptions;let u=!1;if((n||o>0)&&!(o&16)){if(o&8){const f=e.vnode.dynamicProps;for(let c=0;c<f.length;c++){let d=f[c];if(Td(e.emitsOptions,d))continue;const h=t[d];if(l)if(ze(a,d))h!==a[d]&&(a[d]=h,u=!0);else{const v=Sn(d);i[v]=Cp(l,s,v,h,e,!1)}else h!==a[d]&&(a[d]=h,u=!0)}}}else{LC(e,t,i,a)&&(u=!0);let f;for(const c in s)(!t||!ze(t,c)&&((f=Ps(c))===c||!ze(t,f)))&&(l?r&&(r[c]!==void 0||r[f]!==void 0)&&(i[c]=Cp(l,s,c,void 0,e,!0)):delete i[c]);if(a!==s)for(const c in a)(!t||!ze(t,c))&&(delete a[c],u=!0)}u&&di(e,"set","$attrs")}function LC(e,t,r,n){const[i,a]=e.propsOptions;let o=!1,s;if(t)for(let l in t){if(nc(l))continue;const u=t[l];let f;i&&ze(i,f=Sn(l))?!a||!a.includes(f)?r[f]=u:(s||(s={}))[f]=u:Td(e.emitsOptions,l)||(!(l in n)||u!==n[l])&&(n[l]=u,o=!0)}if(a){const l=Ze(r),u=s||mt;for(let f=0;f<a.length;f++){const c=a[f];r[c]=Cp(i,l,c,u[c],e,!ze(u,c))}}return o}function Cp(e,t,r,n,i,a){const o=e[r];if(o!=null){const s=ze(o,"default");if(s&&n===void 0){const l=o.default;if(o.type!==Function&&Ee(l)){const{propsDefaults:u}=i;r in u?n=u[r]:(fs(i),n=u[r]=l.call(null,t),Ja())}else n=l}o[0]&&(a&&!s?n=!1:o[1]&&(n===""||n===Ps(r))&&(n=!0))}return n}function DC(e,t,r=!1){const n=t.propsCache,i=n.get(e);if(i)return i;const a=e.props,o={},s=[];let l=!1;if(!Ee(e)){const f=c=>{l=!0;const[d,h]=DC(c,t,!0);jt(o,d),h&&s.push(...h)};!r&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!a&&!l)return je(e)&&n.set(e,Zo),Zo;if(ye(a))for(let f=0;f<a.length;f++){const c=Sn(a[f]);Q0(c)&&(o[c]=mt)}else if(a)for(const f in a){const c=Sn(f);if(Q0(c)){const d=a[f],h=o[c]=ye(d)||Ee(d)?{type:d}:Object.assign({},d);if(h){const v=t_(Boolean,h.type),p=t_(String,h.type);h[0]=v>-1,h[1]=p<0||v<p,(v>-1||ze(h,"default"))&&s.push(c)}}}const u=[o,s];return je(e)&&n.set(e,u),u}function Q0(e){return e[0]!=="$"}function J0(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function e_(e,t){return J0(e)===J0(t)}function t_(e,t){return ye(t)?t.findIndex(r=>e_(r,e)):Ee(t)&&e_(t,e)?0:-1}const IC=e=>e[0]==="_"||e==="$stable",Nm=e=>ye(e)?e.map(kn):[kn(e)],rI=(e,t,r)=>{if(t._n)return t;const n=ee((...i)=>Nm(t(...i)),r);return n._c=!1,n},RC=(e,t,r)=>{const n=e._ctx;for(const i in e){if(IC(i))continue;const a=e[i];if(Ee(a))t[i]=rI(i,a,n);else if(a!=null){const o=Nm(a);t[i]=()=>o}}},OC=(e,t)=>{const r=Nm(t);e.slots.default=()=>r},nI=(e,t)=>{if(e.vnode.shapeFlag&32){const r=t._;r?(e.slots=Ze(t),Ic(t,"_",r)):RC(t,e.slots={})}else e.slots={},t&&OC(e,t);Ic(e.slots,Ld,1)},iI=(e,t,r)=>{const{vnode:n,slots:i}=e;let a=!0,o=mt;if(n.shapeFlag&32){const s=t._;s?r&&s===1?a=!1:(jt(i,t),!r&&s===1&&delete i._):(a=!t.$stable,RC(t,i)),o=t}else t&&(OC(e,t),o={default:1});if(a)for(const s in i)!IC(s)&&!(s in o)&&delete i[s]};function kC(){return{app:null,config:{isNativeTag:kL,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 aI=0;function oI(e,t){return function(n,i=null){Ee(n)||(n=Object.assign({},n)),i!=null&&!je(i)&&(i=null);const a=kC(),o=new Set;let s=!1;const l=a.app={_uid:aI++,_component:n,_props:i,_container:null,_context:a,_instance:null,version:EI,get config(){return a.config},set config(u){},use(u,...f){return o.has(u)||(u&&Ee(u.install)?(o.add(u),u.install(l,...f)):Ee(u)&&(o.add(u),u(l,...f))),l},mixin(u){return a.mixins.includes(u)||a.mixins.push(u),l},component(u,f){return f?(a.components[u]=f,l):a.components[u]},directive(u,f){return f?(a.directives[u]=f,l):a.directives[u]},mount(u,f,c){if(!s){const d=J(n,i);return d.appContext=a,f&&t?t(d,u):e(d,u,c),s=!0,l._container=u,u.__vue_app__=l,Dd(d.component)||d.component.proxy}},unmount(){s&&(e(null,l._container),delete l._container.__vue_app__)},provide(u,f){return a.provides[u]=f,l}};return l}}function Tp(e,t,r,n,i=!1){if(ye(e)){e.forEach((d,h)=>Tp(d,t&&(ye(t)?t[h]:t),r,n,i));return}if(Cl(n)&&!i)return;const a=n.shapeFlag&4?Dd(n.component)||n.component.proxy:n.el,o=i?null:a,{i:s,r:l}=e,u=t&&t.r,f=s.refs===mt?s.refs={}:s.refs,c=s.setupState;if(u!=null&&u!==l&&(Ue(u)?(f[u]=null,ze(c,u)&&(c[u]=null)):St(u)&&(u.value=null)),Ee(l))ji(l,s,12,[o,f]);else{const d=Ue(l),h=St(l);if(d||h){const v=()=>{if(e.f){const p=d?ze(c,l)?c[l]:f[l]:l.value;i?ye(p)&&_m(p,a):ye(p)?p.includes(a)||p.push(a):d?(f[l]=[a],ze(c,l)&&(c[l]=f[l])):(l.value=[a],e.k&&(f[e.k]=l.value))}else d?(f[l]=o,ze(c,l)&&(c[l]=o)):h&&(l.value=o,e.k&&(f[e.k]=o))};o?(v.id=-1,pr(v,r)):v()}}}const pr=kD;function sI(e){return lI(e)}function lI(e,t){const r=zL();r.__VUE__=!0;const{insert:n,remove:i,patchProp:a,createElement:o,createText:s,createComment:l,setText:u,setElementText:f,parentNode:c,nextSibling:d,setScopeId:h=or,insertStaticContent:v}=e,p=(P,I,z,G=null,q=null,ne=null,ce=!1,te=null,ie=!!I.dynamicChildren)=>{if(P===I)return;P&&!Ha(P,I)&&(G=W(P),ae(P,q,ne,!0),P=null),I.patchFlag===-2&&(ie=!1,I.dynamicChildren=null);const{type:K,ref:_e,shapeFlag:ve}=I;switch(K){case Is:g(P,I,z,G);break;case br:m(P,I,z,G);break;case Th:P==null&&y(I,z,G,ce);break;case wt:M(P,I,z,G,q,ne,ce,te,ie);break;default:ve&1?x(P,I,z,G,q,ne,ce,te,ie):ve&6?D(P,I,z,G,q,ne,ce,te,ie):(ve&64||ve&128)&&K.process(P,I,z,G,q,ne,ce,te,ie,se)}_e!=null&&q&&Tp(_e,P&&P.ref,ne,I||P,!I)},g=(P,I,z,G)=>{if(P==null)n(I.el=s(I.children),z,G);else{const q=I.el=P.el;I.children!==P.children&&u(q,I.children)}},m=(P,I,z,G)=>{P==null?n(I.el=l(I.children||""),z,G):I.el=P.el},y=(P,I,z,G)=>{[P.el,P.anchor]=v(P.children,I,z,G,P.el,P.anchor)},_=({el:P,anchor:I},z,G)=>{let q;for(;P&&P!==I;)q=d(P),n(P,z,G),P=q;n(I,z,G)},b=({el:P,anchor:I})=>{let z;for(;P&&P!==I;)z=d(P),i(P),P=z;i(I)},x=(P,I,z,G,q,ne,ce,te,ie)=>{ce=ce||I.type==="svg",P==null?w(I,z,G,q,ne,ce,te,ie):T(P,I,q,ne,ce,te,ie)},w=(P,I,z,G,q,ne,ce,te)=>{let ie,K;const{type:_e,props:ve,shapeFlag:be,transition:Le,dirs:Fe}=P;if(ie=P.el=o(P.type,ne,ve&&ve.is,ve),be&8?f(ie,P.children):be&16&&C(P.children,ie,null,G,q,ne&&_e!=="foreignObject",ce,te),Fe&&sa(P,null,G,"created"),ve){for(const Je in ve)Je!=="value"&&!nc(Je)&&a(ie,Je,null,ve[Je],ne,P.children,G,q,Q);"value"in ve&&a(ie,"value",null,ve.value),(K=ve.onVnodeBeforeMount)&&Ln(K,G,P)}S(ie,P,P.scopeId,ce,G),Fe&&sa(P,null,G,"beforeMount");const tt=(!q||q&&!q.pendingBranch)&&Le&&!Le.persisted;tt&&Le.beforeEnter(ie),n(ie,I,z),((K=ve&&ve.onVnodeMounted)||tt||Fe)&&pr(()=>{K&&Ln(K,G,P),tt&&Le.enter(ie),Fe&&sa(P,null,G,"mounted")},q)},S=(P,I,z,G,q)=>{if(z&&h(P,z),G)for(let ne=0;ne<G.length;ne++)h(P,G[ne]);if(q){let ne=q.subTree;if(I===ne){const ce=q.vnode;S(P,ce,ce.scopeId,ce.slotScopeIds,q.parent)}}},C=(P,I,z,G,q,ne,ce,te,ie=0)=>{for(let K=ie;K<P.length;K++){const _e=P[K]=te?$i(P[K]):kn(P[K]);p(null,_e,I,z,G,q,ne,ce,te)}},T=(P,I,z,G,q,ne,ce)=>{const te=I.el=P.el;let{patchFlag:ie,dynamicChildren:K,dirs:_e}=I;ie|=P.patchFlag&16;const ve=P.props||mt,be=I.props||mt;let Le;z&&la(z,!1),(Le=be.onVnodeBeforeUpdate)&&Ln(Le,z,I,P),_e&&sa(I,P,z,"beforeUpdate"),z&&la(z,!0);const Fe=q&&I.type!=="foreignObject";if(K?E(P.dynamicChildren,K,te,z,G,Fe,ne):ce||B(P,I,te,null,z,G,Fe,ne,!1),ie>0){if(ie&16)A(te,I,ve,be,z,G,q);else if(ie&2&&ve.class!==be.class&&a(te,"class",null,be.class,q),ie&4&&a(te,"style",ve.style,be.style,q),ie&8){const tt=I.dynamicProps;for(let Je=0;Je<tt.length;Je++){const fe=tt[Je],xe=ve[fe],$e=be[fe];($e!==xe||fe==="value")&&a(te,fe,xe,$e,q,P.children,z,G,Q)}}ie&1&&P.children!==I.children&&f(te,I.children)}else!ce&&K==null&&A(te,I,ve,be,z,G,q);((Le=be.onVnodeUpdated)||_e)&&pr(()=>{Le&&Ln(Le,z,I,P),_e&&sa(I,P,z,"updated")},G)},E=(P,I,z,G,q,ne,ce)=>{for(let te=0;te<I.length;te++){const ie=P[te],K=I[te],_e=ie.el&&(ie.type===wt||!Ha(ie,K)||ie.shapeFlag&70)?c(ie.el):z;p(ie,K,_e,null,G,q,ne,ce,!0)}},A=(P,I,z,G,q,ne,ce)=>{if(z!==G){if(z!==mt)for(const te in z)!nc(te)&&!(te in G)&&a(P,te,z[te],null,ce,I.children,q,ne,Q);for(const te in G){if(nc(te))continue;const ie=G[te],K=z[te];ie!==K&&te!=="value"&&a(P,te,K,ie,ce,I.children,q,ne,Q)}"value"in G&&a(P,"value",z.value,G.value)}},M=(P,I,z,G,q,ne,ce,te,ie)=>{const K=I.el=P?P.el:s(""),_e=I.anchor=P?P.anchor:s("");let{patchFlag:ve,dynamicChildren:be,slotScopeIds:Le}=I;Le&&(te=te?te.concat(Le):Le),P==null?(n(K,z,G),n(_e,z,G),C(I.children,z,_e,q,ne,ce,te,ie)):ve>0&&ve&64&&be&&P.dynamicChildren?(E(P.dynamicChildren,be,z,q,ne,ce,te),(I.key!=null||q&&I===q.subTree)&&Bm(P,I,!0)):B(P,I,z,_e,q,ne,ce,te,ie)},D=(P,I,z,G,q,ne,ce,te,ie)=>{I.slotScopeIds=te,P==null?I.shapeFlag&512?q.ctx.activate(I,z,G,ce,ie):O(I,z,G,q,ne,ce,ie):k(P,I,ie)},O=(P,I,z,G,q,ne,ce)=>{const te=P.component=_I(P,G,q);if(Md(P)&&(te.ctx.renderer=se),bI(te),te.asyncDep){if(q&&q.registerDep(te,F),!P.el){const ie=te.subTree=J(br);m(null,ie,I,z)}return}F(te,P,I,z,q,ne,ce)},k=(P,I,z)=>{const G=I.component=P.component;if(ID(P,I,z))if(G.asyncDep&&!G.asyncResolved){j(G,I,z);return}else G.next=I,MD(G.update),G.update();else I.el=P.el,G.vnode=I},F=(P,I,z,G,q,ne,ce)=>{const te=()=>{if(P.isMounted){let{next:_e,bu:ve,u:be,parent:Le,vnode:Fe}=P,tt=_e,Je;la(P,!1),_e?(_e.el=Fe.el,j(P,_e,ce)):_e=Fe,ve&&ac(ve),(Je=_e.props&&_e.props.onVnodeBeforeUpdate)&&Ln(Je,Le,_e,Fe),la(P,!0);const fe=xh(P),xe=P.subTree;P.subTree=fe,p(xe,fe,c(xe.el),W(xe),P,q,ne),_e.el=fe.el,tt===null&&RD(P,fe.el),be&&pr(be,q),(Je=_e.props&&_e.props.onVnodeUpdated)&&pr(()=>Ln(Je,Le,_e,Fe),q)}else{let _e;const{el:ve,props:be}=I,{bm:Le,m:Fe,parent:tt}=P,Je=Cl(I);if(la(P,!1),Le&&ac(Le),!Je&&(_e=be&&be.onVnodeBeforeMount)&&Ln(_e,tt,I),la(P,!0),ve&&Z){const fe=()=>{P.subTree=xh(P),Z(ve,P.subTree,P,q,null)};Je?I.type.__asyncLoader().then(()=>!P.isUnmounted&&fe()):fe()}else{const fe=P.subTree=xh(P);p(null,fe,z,G,P,q,ne),I.el=fe.el}if(Fe&&pr(Fe,q),!Je&&(_e=be&&be.onVnodeMounted)){const fe=I;pr(()=>Ln(_e,tt,fe),q)}(I.shapeFlag&256||tt&&Cl(tt.vnode)&&tt.vnode.shapeFlag&256)&&P.a&&pr(P.a,q),P.isMounted=!0,I=z=G=null}},ie=P.effect=new Sm(te,()=>Lm(K),P.scope),K=P.update=()=>ie.run();K.id=P.uid,la(P,!0),K()},j=(P,I,z)=>{I.component=P;const G=P.vnode.props;P.vnode=I,P.next=null,tI(P,I.props,G,z),iI(P,I.children,z),Ls(),U0(),Ds()},B=(P,I,z,G,q,ne,ce,te,ie=!1)=>{const K=P&&P.children,_e=P?P.shapeFlag:0,ve=I.children,{patchFlag:be,shapeFlag:Le}=I;if(be>0){if(be&128){U(K,ve,z,G,q,ne,ce,te,ie);return}else if(be&256){N(K,ve,z,G,q,ne,ce,te,ie);return}}Le&8?(_e&16&&Q(K,q,ne),ve!==K&&f(z,ve)):_e&16?Le&16?U(K,ve,z,G,q,ne,ce,te,ie):Q(K,q,ne,!0):(_e&8&&f(z,""),Le&16&&C(ve,z,G,q,ne,ce,te,ie))},N=(P,I,z,G,q,ne,ce,te,ie)=>{P=P||Zo,I=I||Zo;const K=P.length,_e=I.length,ve=Math.min(K,_e);let be;for(be=0;be<ve;be++){const Le=I[be]=ie?$i(I[be]):kn(I[be]);p(P[be],Le,z,null,q,ne,ce,te,ie)}K>_e?Q(P,q,ne,!0,!1,ve):C(I,z,G,q,ne,ce,te,ie,ve)},U=(P,I,z,G,q,ne,ce,te,ie)=>{let K=0;const _e=I.length;let ve=P.length-1,be=_e-1;for(;K<=ve&&K<=be;){const Le=P[K],Fe=I[K]=ie?$i(I[K]):kn(I[K]);if(Ha(Le,Fe))p(Le,Fe,z,null,q,ne,ce,te,ie);else break;K++}for(;K<=ve&&K<=be;){const Le=P[ve],Fe=I[be]=ie?$i(I[be]):kn(I[be]);if(Ha(Le,Fe))p(Le,Fe,z,null,q,ne,ce,te,ie);else break;ve--,be--}if(K>ve){if(K<=be){const Le=be+1,Fe=Le<_e?I[Le].el:G;for(;K<=be;)p(null,I[K]=ie?$i(I[K]):kn(I[K]),z,Fe,q,ne,ce,te,ie),K++}}else if(K>be)for(;K<=ve;)ae(P[K],q,ne,!0),K++;else{const Le=K,Fe=K,tt=new Map;for(K=Fe;K<=be;K++){const ht=I[K]=ie?$i(I[K]):kn(I[K]);ht.key!=null&&tt.set(ht.key,K)}let Je,fe=0;const xe=be-Fe+1;let $e=!1,He=0;const Ke=new Array(xe);for(K=0;K<xe;K++)Ke[K]=0;for(K=Le;K<=ve;K++){const ht=P[K];if(fe>=xe){ae(ht,q,ne,!0);continue}let zt;if(ht.key!=null)zt=tt.get(ht.key);else for(Je=Fe;Je<=be;Je++)if(Ke[Je-Fe]===0&&Ha(ht,I[Je])){zt=Je;break}zt===void 0?ae(ht,q,ne,!0):(Ke[zt-Fe]=K+1,zt>=He?He=zt:$e=!0,p(ht,I[zt],z,null,q,ne,ce,te,ie),fe++)}const Ot=$e?uI(Ke):Zo;for(Je=Ot.length-1,K=xe-1;K>=0;K--){const ht=Fe+K,zt=I[ht],Hr=ht+1<_e?I[ht+1].el:G;Ke[K]===0?p(null,zt,z,Hr,q,ne,ce,te,ie):$e&&(Je<0||K!==Ot[Je]?re(zt,z,Hr,2):Je--)}}},re=(P,I,z,G,q=null)=>{const{el:ne,type:ce,transition:te,children:ie,shapeFlag:K}=P;if(K&6){re(P.component.subTree,I,z,G);return}if(K&128){P.suspense.move(I,z,G);return}if(K&64){ce.move(P,I,z,se);return}if(ce===wt){n(ne,I,z);for(let ve=0;ve<ie.length;ve++)re(ie[ve],I,z,G);n(P.anchor,I,z);return}if(ce===Th){_(P,I,z);return}if(G!==2&&K&1&&te)if(G===0)te.beforeEnter(ne),n(ne,I,z),pr(()=>te.enter(ne),q);else{const{leave:ve,delayLeave:be,afterLeave:Le}=te,Fe=()=>n(ne,I,z),tt=()=>{ve(ne,()=>{Fe(),Le&&Le()})};be?be(ne,Fe,tt):tt()}else n(ne,I,z)},ae=(P,I,z,G=!1,q=!1)=>{const{type:ne,props:ce,ref:te,children:ie,dynamicChildren:K,shapeFlag:_e,patchFlag:ve,dirs:be}=P;if(te!=null&&Tp(te,null,z,P,!0),_e&256){I.ctx.deactivate(P);return}const Le=_e&1&&be,Fe=!Cl(P);let tt;if(Fe&&(tt=ce&&ce.onVnodeBeforeUnmount)&&Ln(tt,I,P),_e&6)V(P.component,z,G);else{if(_e&128){P.suspense.unmount(z,G);return}Le&&sa(P,null,I,"beforeUnmount"),_e&64?P.type.remove(P,I,z,q,se,G):K&&(ne!==wt||ve>0&&ve&64)?Q(K,I,z,!1,!0):(ne===wt&&ve&384||!q&&_e&16)&&Q(ie,I,z),G&&me(P)}(Fe&&(tt=ce&&ce.onVnodeUnmounted)||Le)&&pr(()=>{tt&&Ln(tt,I,P),Le&&sa(P,null,I,"unmounted")},z)},me=P=>{const{type:I,el:z,anchor:G,transition:q}=P;if(I===wt){Te(z,G);return}if(I===Th){b(P);return}const ne=()=>{i(z),q&&!q.persisted&&q.afterLeave&&q.afterLeave()};if(P.shapeFlag&1&&q&&!q.persisted){const{leave:ce,delayLeave:te}=q,ie=()=>ce(z,ne);te?te(P.el,ne,ie):ie()}else ne()},Te=(P,I)=>{let z;for(;P!==I;)z=d(P),i(P),P=z;i(I)},V=(P,I,z)=>{const{bum:G,scope:q,update:ne,subTree:ce,um:te}=P;G&&ac(G),q.stop(),ne&&(ne.active=!1,ae(ce,P,I,z)),te&&pr(te,I),pr(()=>{P.isUnmounted=!0},I),I&&I.pendingBranch&&!I.isUnmounted&&P.asyncDep&&!P.asyncResolved&&P.suspenseId===I.pendingId&&(I.deps--,I.deps===0&&I.resolve())},Q=(P,I,z,G=!1,q=!1,ne=0)=>{for(let ce=ne;ce<P.length;ce++)ae(P[ce],I,z,G,q)},W=P=>P.shapeFlag&6?W(P.component.subTree):P.shapeFlag&128?P.suspense.next():d(P.anchor||P.el),Y=(P,I,z)=>{P==null?I._vnode&&ae(I._vnode,null,null,!0):p(I._vnode||null,P,I,null,null,null,z),U0(),mC(),I._vnode=P},se={p,um:ae,m:re,r:me,mt:O,mc:C,pc:B,pbc:E,n:W,o:e};let he,Z;return t&&([he,Z]=t(se)),{render:Y,hydrate:he,createApp:oI(Y,he)}}function la({effect:e,update:t},r){e.allowRecurse=t.allowRecurse=r}function Bm(e,t,r=!1){const n=e.children,i=t.children;if(ye(n)&&ye(i))for(let a=0;a<n.length;a++){const o=n[a];let s=i[a];s.shapeFlag&1&&!s.dynamicChildren&&((s.patchFlag<=0||s.patchFlag===32)&&(s=i[a]=$i(i[a]),s.el=o.el),r||Bm(o,s)),s.type===Is&&(s.el=o.el)}}function uI(e){const t=e.slice(),r=[0];let n,i,a,o,s;const l=e.length;for(n=0;n<l;n++){const u=e[n];if(u!==0){if(i=r[r.length-1],e[i]<u){t[n]=i,r.push(n);continue}for(a=0,o=r.length-1;a<o;)s=a+o>>1,e[r[s]]<u?a=s+1:o=s;u<e[r[a]]&&(a>0&&(t[n]=r[a-1]),r[a]=n)}}for(a=r.length,o=r[a-1];a-- >0;)r[a]=o,o=t[o];return r}const fI=e=>e.__isTeleport,Ml=e=>e&&(e.disabled||e.disabled===""),r_=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Mp=(e,t)=>{const r=e&&e.to;return Ue(r)?t?t(r):null:r},cI={__isTeleport:!0,process(e,t,r,n,i,a,o,s,l,u){const{mc:f,pc:c,pbc:d,o:{insert:h,querySelector:v,createText:p,createComment:g}}=u,m=Ml(t.props);let{shapeFlag:y,children:_,dynamicChildren:b}=t;if(e==null){const x=t.el=p(""),w=t.anchor=p("");h(x,r,n),h(w,r,n);const S=t.target=Mp(t.props,v),C=t.targetAnchor=p("");S&&(h(C,S),o=o||r_(S));const T=(E,A)=>{y&16&&f(_,E,A,i,a,o,s,l)};m?T(r,w):S&&T(S,C)}else{t.el=e.el;const x=t.anchor=e.anchor,w=t.target=e.target,S=t.targetAnchor=e.targetAnchor,C=Ml(e.props),T=C?r:w,E=C?x:S;if(o=o||r_(w),b?(d(e.dynamicChildren,b,T,i,a,o,s),Bm(e,t,!0)):l||c(e,t,T,E,i,a,o,s,!1),m)C||rf(t,r,x,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const A=t.target=Mp(t.props,v);A&&rf(t,A,null,u,0)}else C&&rf(t,w,S,u,1)}NC(t)},remove(e,t,r,n,{um:i,o:{remove:a}},o){const{shapeFlag:s,children:l,anchor:u,targetAnchor:f,target:c,props:d}=e;if(c&&a(f),(o||!Ml(d))&&(a(u),s&16))for(let h=0;h<l.length;h++){const v=l[h];i(v,t,r,!0,!!v.dynamicChildren)}},move:rf,hydrate:dI};function rf(e,t,r,{o:{insert:n},m:i},a=2){a===0&&n(e.targetAnchor,t,r);const{el:o,anchor:s,shapeFlag:l,children:u,props:f}=e,c=a===2;if(c&&n(o,t,r),(!c||Ml(f))&&l&16)for(let d=0;d<u.length;d++)i(u[d],t,r,2);c&&n(s,t,r)}function dI(e,t,r,n,i,a,{o:{nextSibling:o,parentNode:s,querySelector:l}},u){const f=t.target=Mp(t.props,l);if(f){const c=f._lpa||f.firstChild;if(t.shapeFlag&16)if(Ml(t.props))t.anchor=u(o(e),t,s(e),r,n,i,a),t.targetAnchor=c;else{t.anchor=o(e);let d=c;for(;d;)if(d=o(d),d&&d.nodeType===8&&d.data==="teleport anchor"){t.targetAnchor=d,f._lpa=t.targetAnchor&&o(t.targetAnchor);break}u(c,t,f,r,n,i,a)}NC(t)}return t.anchor&&o(t.anchor)}const hI=cI;function NC(e){const t=e.ctx;if(t&&t.ut){let r=e.children[0].el;for(;r!==e.targetAnchor;)r.nodeType===1&&r.setAttribute("data-v-owner",t.uid),r=r.nextSibling;t.ut()}}const wt=Symbol(void 0),Is=Symbol(void 0),br=Symbol(void 0),Th=Symbol(void 0),Al=[];let yn=null;function X(e=!1){Al.push(yn=e?null:[])}function vI(){Al.pop(),yn=Al[Al.length-1]||null}let ru=1;function n_(e){ru+=e}function BC(e){return e.dynamicChildren=ru>0?yn||Zo:null,vI(),ru>0&&yn&&yn.push(e),e}function Se(e,t,r,n,i,a){return BC(le(e,t,r,n,i,a,!0))}function Ie(e,t,r,n,i){return BC(J(e,t,r,n,i,!0))}function Qi(e){return e?e.__v_isVNode===!0:!1}function Ha(e,t){return e.type===t.type&&e.key===t.key}const Ld="__vInternal",FC=({key:e})=>e??null,oc=({ref:e,ref_key:t,ref_for:r})=>e!=null?Ue(e)||St(e)||Ee(e)?{i:Yt,r:e,k:t,f:!!r}:e:null;function le(e,t=null,r=null,n=0,i=null,a=e===wt?0:1,o=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&FC(t),ref:t&&oc(t),scopeId:bC,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Yt};return s?(Fm(l,r),a&128&&e.normalize(l)):r&&(l.shapeFlag|=Ue(r)?8:16),ru>0&&!o&&yn&&(l.patchFlag>0||a&6)&&l.patchFlag!==32&&yn.push(l),l}const J=pI;function pI(e,t=null,r=null,n=0,i=null,a=!1){if((!e||e===AC)&&(e=br),Qi(e)){const s=vi(e,t,!0);return r&&Fm(s,r),ru>0&&!a&&yn&&(s.shapeFlag&6?yn[yn.indexOf(e)]=s:yn.push(s)),s.patchFlag|=-2,s}if(CI(e)&&(e=e.__vccOpts),t){t=gI(t);let{class:s,style:l}=t;s&&!Ue(s)&&(t.class=de(s)),je(l)&&(lC(l)&&!ye(l)&&(l=jt({},l)),t.style=At(l))}const o=Ue(e)?1:OD(e)?128:fI(e)?64:je(e)?4:Ee(e)?2:0;return le(e,t,r,n,i,o,a,!0)}function gI(e){return e?lC(e)||Ld in e?jt({},e):e:null}function vi(e,t,r=!1){const{props:n,ref:i,patchFlag:a,children:o}=e,s=t?go(n||{},t):n;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&FC(s),ref:t&&t.ref?r&&i?ye(i)?i.concat(oc(t)):[i,oc(t)]:oc(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==wt?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&vi(e.ssContent),ssFallback:e.ssFallback&&vi(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx}}function kt(e=" ",t=0){return J(Is,null,e,t)}function ct(e="",t=!1){return t?(X(),Ie(br,null,e)):J(br,null,e)}function kn(e){return e==null||typeof e=="boolean"?J(br):ye(e)?J(wt,null,e.slice()):typeof e=="object"?$i(e):J(Is,null,String(e))}function $i(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:vi(e)}function Fm(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(ye(t))r=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),Fm(e,i()),i._c&&(i._d=!0));return}else{r=32;const i=t._;!i&&!(Ld in t)?t._ctx=Yt:i===3&&Yt&&(Yt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ee(t)?(t={default:t,_ctx:Yt},r=32):(t=String(t),n&64?(r=16,t=[kt(t)]):r=8);e.children=t,e.shapeFlag|=r}function go(...e){const t={};for(let r=0;r<e.length;r++){const n=e[r];for(const i in n)if(i==="class")t.class!==n.class&&(t.class=de([t.class,n.class]));else if(i==="style")t.style=At([t.style,n.style]);else if(md(i)){const a=t[i],o=n[i];o&&a!==o&&!(ye(a)&&a.includes(o))&&(t[i]=a?[].concat(a,o):o)}else i!==""&&(t[i]=n[i])}return t}function Ln(e,t,r,n=null){en(e,t,7,[r,n])}const mI=kC();let yI=0;function _I(e,t,r){const n=e.type,i=(t?t.appContext:e.appContext)||mI,a={uid:yI++,vnode:e,type:n,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new WL(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:DC(n,i),emitsOptions:_C(n,i),emit:null,emitted:null,propsDefaults:mt,inheritAttrs:n.inheritAttrs,ctx:mt,data:mt,props:mt,attrs:mt,slots:mt,refs:mt,setupState:mt,setupContext:null,suspense:r,suspenseId:r?r.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 a.ctx={_:a},a.root=t?t.root:a,a.emit=PD.bind(null,a),e.ce&&e.ce(a),a}let $t=null;const dt=()=>$t||Yt,fs=e=>{$t=e,e.scope.on()},Ja=()=>{$t&&$t.scope.off(),$t=null};function $C(e){return e.vnode.shapeFlag&4}let nu=!1;function bI(e,t=!1){nu=t;const{props:r,children:n}=e.vnode,i=$C(e);eI(e,r,i,t),nI(e,n);const a=i?wI(e,t):void 0;return nu=!1,a}function wI(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=uC(new Proxy(e.ctx,jD));const{setup:n}=r;if(n){const i=e.setupContext=n.length>1?zC(e):null;fs(e),Ls();const a=ji(n,e,0,[e.props,i]);if(Ds(),Ja(),jS(a)){if(a.then(Ja,Ja),t)return a.then(o=>{i_(e,o,t)}).catch(o=>{Cd(o,e,0)});e.asyncDep=a}else i_(e,a,t)}else HC(e,t)}function i_(e,t,r){Ee(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:je(t)&&(e.setupState=hC(t)),HC(e,r)}let a_;function HC(e,t,r){const n=e.type;if(!e.render){if(!t&&a_&&!n.render){const i=n.template||km(e).template;if(i){const{isCustomElement:a,compilerOptions:o}=e.appContext.config,{delimiters:s,compilerOptions:l}=n,u=jt(jt({isCustomElement:a,delimiters:s},o),l);n.render=a_(i,u)}}e.render=n.render||or}fs(e),Ls(),KD(e),Ds(),Ja()}function xI(e){return new Proxy(e.attrs,{get(t,r){return Fr(e,"get","$attrs"),t[r]}})}function zC(e){const t=n=>{e.exposed=n||{}};let r;return{get attrs(){return r||(r=xI(e))},slots:e.slots,emit:e.emit,expose:t}}function Dd(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(hC(uC(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in Tl)return Tl[r](e)},has(t,r){return r in t||r in Tl}}))}function SI(e,t=!0){return Ee(e)?e.displayName||e.name:e.name||t&&e.__name}function CI(e){return Ee(e)&&"__vccOpts"in e}const $=(e,t)=>xD(e,t,nu);function Id(){return TI().slots}function TI(){const e=dt();return e.setupContext||(e.setupContext=zC(e))}function we(e,t,r){const n=arguments.length;return n===2?je(t)&&!ye(t)?Qi(t)?J(e,null,[t]):J(e,t):J(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&Qi(r)&&(r=[r]),J(e,t,r))}const MI=Symbol(""),AI=()=>De(MI),EI="3.2.45",PI="http://www.w3.org/2000/svg",za=typeof document<"u"?document:null,o_=za&&za.createElement("template"),LI={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,n)=>{const i=t?za.createElementNS(PI,e):za.createElement(e,r?{is:r}:void 0);return e==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:e=>za.createTextNode(e),createComment:e=>za.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>za.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,n,i,a){const o=r?r.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),r),!(i===a||!(i=i.nextSibling)););else{o_.innerHTML=n?`<svg>${e}</svg>`:e;const s=o_.content;if(n){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}t.insertBefore(s,r)}return[o?o.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}};function DI(e,t,r){const n=e._vtc;n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}function II(e,t,r){const n=e.style,i=Ue(r);if(r&&!i){for(const a in r)Ap(n,a,r[a]);if(t&&!Ue(t))for(const a in t)r[a]==null&&Ap(n,a,"")}else{const a=n.display;i?t!==r&&(n.cssText=r):t&&e.removeAttribute("style"),"_vod"in e&&(n.display=a)}}const s_=/\s*!important$/;function Ap(e,t,r){if(ye(r))r.forEach(n=>Ap(e,t,n));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const n=RI(e,t);s_.test(r)?e.setProperty(Ps(n),r.replace(s_,""),"important"):e[n]=r}}const l_=["Webkit","Moz","ms"],Mh={};function RI(e,t){const r=Mh[t];if(r)return r;let n=Sn(t);if(n!=="filter"&&n in e)return Mh[t]=n;n=bd(n);for(let i=0;i<l_.length;i++){const a=l_[i]+n;if(a in e)return Mh[t]=a}return t}const u_="http://www.w3.org/1999/xlink";function OI(e,t,r,n,i){if(n&&t.startsWith("xlink:"))r==null?e.removeAttributeNS(u_,t.slice(6,t.length)):e.setAttributeNS(u_,t,r);else{const a=RL(t);r==null||a&&!US(r)?e.removeAttribute(t):e.setAttribute(t,a?"":r)}}function kI(e,t,r,n,i,a,o){if(t==="innerHTML"||t==="textContent"){n&&o(n,i,a),e[t]=r??"";return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=r;const l=r??"";(e.value!==l||e.tagName==="OPTION")&&(e.value=l),r==null&&e.removeAttribute(t);return}let s=!1;if(r===""||r==null){const l=typeof e[t];l==="boolean"?r=US(r):r==null&&l==="string"?(r="",s=!0):l==="number"&&(r=0,s=!0)}try{e[t]=r}catch{}s&&e.removeAttribute(t)}function WC(e,t,r,n){e.addEventListener(t,r,n)}function NI(e,t,r,n){e.removeEventListener(t,r,n)}function BI(e,t,r,n,i=null){const a=e._vei||(e._vei={}),o=a[t];if(n&&o)o.value=n;else{const[s,l]=FI(t);if(n){const u=a[t]=zI(n,i);WC(e,s,u,l)}else o&&(NI(e,s,o,l),a[t]=void 0)}}const f_=/(?:Once|Passive|Capture)$/;function FI(e){let t;if(f_.test(e)){t={};let n;for(;n=e.match(f_);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ps(e.slice(2)),t]}let Ah=0;const $I=Promise.resolve(),HI=()=>Ah||($I.then(()=>Ah=0),Ah=Date.now());function zI(e,t){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;en(WI(n,r.value),t,5,[n])};return r.value=e,r.attached=HI(),r}function WI(e,t){if(ye(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(n=>i=>!i._stopped&&n&&n(i))}else return t}const c_=/^on[a-z]/,VI=(e,t,r,n,i=!1,a,o,s,l)=>{t==="class"?DI(e,n,i):t==="style"?II(e,r,n):md(t)?ym(t)||BI(e,t,r,n,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):GI(e,t,n,i))?kI(e,t,n,a,o,s,l):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),OI(e,t,n,i))};function GI(e,t,r,n){return n?!!(t==="innerHTML"||t==="textContent"||t in e&&c_.test(t)&&Ee(r)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||c_.test(t)&&Ue(r)?!1:t in e}const Mi="transition",Vs="animation",Kn=(e,{slots:t})=>we(xC,UI(e),t);Kn.displayName="Transition";const VC={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};Kn.props=jt({},xC.props,VC);const ua=(e,t=[])=>{ye(e)?e.forEach(r=>r(...t)):e&&e(...t)},d_=e=>e?ye(e)?e.some(t=>t.length>1):e.length>1:!1;function UI(e){const t={};for(const M in e)M in VC||(t[M]=e[M]);if(e.css===!1)return t;const{name:r="v",type:n,duration:i,enterFromClass:a=`${r}-enter-from`,enterActiveClass:o=`${r}-enter-active`,enterToClass:s=`${r}-enter-to`,appearFromClass:l=a,appearActiveClass:u=o,appearToClass:f=s,leaveFromClass:c=`${r}-leave-from`,leaveActiveClass:d=`${r}-leave-active`,leaveToClass:h=`${r}-leave-to`}=e,v=YI(i),p=v&&v[0],g=v&&v[1],{onBeforeEnter:m,onEnter:y,onEnterCancelled:_,onLeave:b,onLeaveCancelled:x,onBeforeAppear:w=m,onAppear:S=y,onAppearCancelled:C=_}=t,T=(M,D,O)=>{fa(M,D?f:s),fa(M,D?u:o),O&&O()},E=(M,D)=>{M._isLeaving=!1,fa(M,c),fa(M,h),fa(M,d),D&&D()},A=M=>(D,O)=>{const k=M?S:y,F=()=>T(D,M,O);ua(k,[D,F]),h_(()=>{fa(D,M?l:a),Ai(D,M?f:s),d_(k)||v_(D,n,p,F)})};return jt(t,{onBeforeEnter(M){ua(m,[M]),Ai(M,a),Ai(M,o)},onBeforeAppear(M){ua(w,[M]),Ai(M,l),Ai(M,u)},onEnter:A(!1),onAppear:A(!0),onLeave(M,D){M._isLeaving=!0;const O=()=>E(M,D);Ai(M,c),KI(),Ai(M,d),h_(()=>{M._isLeaving&&(fa(M,c),Ai(M,h),d_(b)||v_(M,n,g,O))}),ua(b,[M,O])},onEnterCancelled(M){T(M,!1),ua(_,[M])},onAppearCancelled(M){T(M,!0),ua(C,[M])},onLeaveCancelled(M){E(M),ua(x,[M])}})}function YI(e){if(e==null)return null;if(je(e))return[Eh(e.enter),Eh(e.leave)];{const t=Eh(e);return[t,t]}}function Eh(e){return wm(e)}function Ai(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e._vtc||(e._vtc=new Set)).add(t)}function fa(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const{_vtc:r}=e;r&&(r.delete(t),r.size||(e._vtc=void 0))}function h_(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let qI=0;function v_(e,t,r,n){const i=e._endId=++qI,a=()=>{i===e._endId&&n()};if(r)return setTimeout(a,r);const{type:o,timeout:s,propCount:l}=jI(e,t);if(!o)return n();const u=o+"end";let f=0;const c=()=>{e.removeEventListener(u,d),a()},d=h=>{h.target===e&&++f>=l&&c()};setTimeout(()=>{f<l&&c()},s+1),e.addEventListener(u,d)}function jI(e,t){const r=window.getComputedStyle(e),n=v=>(r[v]||"").split(", "),i=n(`${Mi}Delay`),a=n(`${Mi}Duration`),o=p_(i,a),s=n(`${Vs}Delay`),l=n(`${Vs}Duration`),u=p_(s,l);let f=null,c=0,d=0;t===Mi?o>0&&(f=Mi,c=o,d=a.length):t===Vs?u>0&&(f=Vs,c=u,d=l.length):(c=Math.max(o,u),f=c>0?o>u?Mi:Vs:null,d=f?f===Mi?a.length:l.length:0);const h=f===Mi&&/\b(transform|all)(,|$)/.test(n(`${Mi}Property`).toString());return{type:f,timeout:c,propCount:d,hasTransform:h}}function p_(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,n)=>g_(r)+g_(e[n])))}function g_(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function KI(){return document.body.offsetHeight}const m_=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ye(t)?r=>ac(t,r):t},Nc={deep:!0,created(e,t,r){e._assign=m_(r),WC(e,"change",()=>{const n=e._modelValue,i=XI(e),a=e.checked,o=e._assign;if(ye(n)){const s=YS(n,i),l=s!==-1;if(a&&!l)o(n.concat(i));else if(!a&&l){const u=[...n];u.splice(s,1),o(u)}}else if(yd(n)){const s=new Set(n);a?s.add(i):s.delete(i),o(s)}else o(GC(e,a))})},mounted:y_,beforeUpdate(e,t,r){e._assign=m_(r),y_(e,t,r)}};function y_(e,{value:t,oldValue:r},n){e._modelValue=t,ye(t)?e.checked=YS(t,n.props.value)>-1:yd(t)?e.checked=t.has(n.props.value):t!==r&&(e.checked=gd(t,GC(e,!0)))}function XI(e){return"_value"in e?e._value:e.value}function GC(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const ZI=["ctrl","shift","alt","meta"],QI={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)=>ZI.some(r=>e[`${r}Key`]&&!t.includes(r))},Ep=(e,t)=>(r,...n)=>{for(let i=0;i<t.length;i++){const a=QI[t[i]];if(a&&a(r,t))return}return e(r,...n)},oo={beforeMount(e,{value:t},{transition:r}){e._vod=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):Gs(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:n}){!t!=!r&&(n?t?(n.beforeEnter(e),Gs(e,!0),n.enter(e)):n.leave(e,()=>{Gs(e,!1)}):Gs(e,t))},beforeUnmount(e,{value:t}){Gs(e,t)}};function Gs(e,t){e.style.display=t?e._vod:"none"}const JI=jt({patchProp:VI},LI);let __;function UC(){return __||(__=sI(JI))}const b_=(...e)=>{UC().render(...e)},eR=(...e)=>{const t=UC().createApp(...e),{mount:r}=t;return t.mount=n=>{const i=tR(n);if(!i)return;const a=t._component;!Ee(a)&&!a.render&&!a.template&&(a.template=i.innerHTML),i.innerHTML="";const o=r(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t};function tR(e){return Ue(e)?document.querySelector(e):e}var rR=typeof global=="object"&&global&&global.Object===Object&&global;const YC=rR;var nR=typeof self=="object"&&self&&self.Object===Object&&self,iR=YC||nR||Function("return this")();const Mn=iR;var aR=Mn.Symbol;const nn=aR;var qC=Object.prototype,oR=qC.hasOwnProperty,sR=qC.toString,Us=nn?nn.toStringTag:void 0;function lR(e){var t=oR.call(e,Us),r=e[Us];try{e[Us]=void 0;var n=!0}catch{}var i=sR.call(e);return n&&(t?e[Us]=r:delete e[Us]),i}var uR=Object.prototype,fR=uR.toString;function cR(e){return fR.call(e)}var dR="[object Null]",hR="[object Undefined]",w_=nn?nn.toStringTag:void 0;function mo(e){return e==null?e===void 0?hR:dR:w_&&w_ in Object(e)?lR(e):cR(e)}function Yn(e){return e!=null&&typeof e=="object"}var vR="[object Symbol]";function Rd(e){return typeof e=="symbol"||Yn(e)&&mo(e)==vR}function jC(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var pR=Array.isArray;const ur=pR;var gR=1/0,x_=nn?nn.prototype:void 0,S_=x_?x_.toString:void 0;function KC(e){if(typeof e=="string")return e;if(ur(e))return jC(e,KC)+"";if(Rd(e))return S_?S_.call(e):"";var t=e+"";return t=="0"&&1/e==-gR?"-0":t}var mR=/\s/;function yR(e){for(var t=e.length;t--&&mR.test(e.charAt(t)););return t}var _R=/^\s+/;function bR(e){return e&&e.slice(0,yR(e)+1).replace(_R,"")}function Cr(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var C_=0/0,wR=/^[-+]0x[0-9a-f]+$/i,xR=/^0b[01]+$/i,SR=/^0o[0-7]+$/i,CR=parseInt;function T_(e){if(typeof e=="number")return e;if(Rd(e))return C_;if(Cr(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Cr(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=bR(e);var r=xR.test(e);return r||SR.test(e)?CR(e.slice(2),r?2:8):wR.test(e)?C_:+e}function $m(e){return e}var TR="[object AsyncFunction]",MR="[object Function]",AR="[object GeneratorFunction]",ER="[object Proxy]";function Hm(e){if(!Cr(e))return!1;var t=mo(e);return t==MR||t==AR||t==TR||t==ER}var PR=Mn["__core-js_shared__"];const Ph=PR;var M_=function(){var e=/[^.]+$/.exec(Ph&&Ph.keys&&Ph.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function LR(e){return!!M_&&M_ in e}var DR=Function.prototype,IR=DR.toString;function yo(e){if(e!=null){try{return IR.call(e)}catch{}try{return e+""}catch{}}return""}var RR=/[\\^$.*+?()[\]{}|]/g,OR=/^\[object .+?Constructor\]$/,kR=Function.prototype,NR=Object.prototype,BR=kR.toString,FR=NR.hasOwnProperty,$R=RegExp("^"+BR.call(FR).replace(RR,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function HR(e){if(!Cr(e)||LR(e))return!1;var t=Hm(e)?$R:OR;return t.test(yo(e))}function zR(e,t){return e==null?void 0:e[t]}function _o(e,t){var r=zR(e,t);return HR(r)?r:void 0}var WR=_o(Mn,"WeakMap");const Pp=WR;var A_=Object.create,VR=function(){function e(){}return function(t){if(!Cr(t))return{};if(A_)return A_(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();const GR=VR;function UR(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function XC(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var YR=800,qR=16,jR=Date.now;function KR(e){var t=0,r=0;return function(){var n=jR(),i=qR-(n-r);if(r=n,i>0){if(++t>=YR)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function XR(e){return function(){return e}}var ZR=function(){try{var e=_o(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Bc=ZR;var QR=Bc?function(e,t){return Bc(e,"toString",{configurable:!0,enumerable:!1,value:XR(t),writable:!0})}:$m;const JR=QR;var eO=KR(JR);const ZC=eO;function tO(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var rO=9007199254740991,nO=/^(?:0|[1-9]\d*)$/;function Od(e,t){var r=typeof e;return t=t??rO,!!t&&(r=="number"||r!="symbol"&&nO.test(e))&&e>-1&&e%1==0&&e<t}function zm(e,t,r){t=="__proto__"&&Bc?Bc(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Ru(e,t){return e===t||e!==e&&t!==t}var iO=Object.prototype,aO=iO.hasOwnProperty;function Wm(e,t,r){var n=e[t];(!(aO.call(e,t)&&Ru(n,r))||r===void 0&&!(t in e))&&zm(e,t,r)}function Ou(e,t,r,n){var i=!r;r||(r={});for(var a=-1,o=t.length;++a<o;){var s=t[a],l=n?n(r[s],e[s],s,r,e):void 0;l===void 0&&(l=e[s]),i?zm(r,s,l):Wm(r,s,l)}return r}var E_=Math.max;function QC(e,t,r){return t=E_(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=E_(n.length-t,0),o=Array(a);++i<a;)o[i]=n[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=n[i];return s[t]=r(o),UR(e,this,s)}}function oO(e,t){return ZC(QC(e,t,$m),e+"")}var sO=9007199254740991;function Vm(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=sO}function Rs(e){return e!=null&&Vm(e.length)&&!Hm(e)}function lO(e,t,r){if(!Cr(r))return!1;var n=typeof t;return(n=="number"?Rs(r)&&Od(t,r.length):n=="string"&&t in r)?Ru(r[t],e):!1}function uO(e){return oO(function(t,r){var n=-1,i=r.length,a=i>1?r[i-1]:void 0,o=i>2?r[2]:void 0;for(a=e.length>3&&typeof a=="function"?(i--,a):void 0,o&&lO(r[0],r[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++n<i;){var s=r[n];s&&e(t,s,n,a)}return t})}var fO=Object.prototype;function Gm(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||fO;return e===r}function cO(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var dO="[object Arguments]";function P_(e){return Yn(e)&&mo(e)==dO}var JC=Object.prototype,hO=JC.hasOwnProperty,vO=JC.propertyIsEnumerable,pO=P_(function(){return arguments}())?P_:function(e){return Yn(e)&&hO.call(e,"callee")&&!vO.call(e,"callee")};const iu=pO;function gO(){return!1}var eT=typeof Or=="object"&&Or&&!Or.nodeType&&Or,L_=eT&&typeof kr=="object"&&kr&&!kr.nodeType&&kr,mO=L_&&L_.exports===eT,D_=mO?Mn.Buffer:void 0,yO=D_?D_.isBuffer:void 0,_O=yO||gO;const au=_O;var bO="[object Arguments]",wO="[object Array]",xO="[object Boolean]",SO="[object Date]",CO="[object Error]",TO="[object Function]",MO="[object Map]",AO="[object Number]",EO="[object Object]",PO="[object RegExp]",LO="[object Set]",DO="[object String]",IO="[object WeakMap]",RO="[object ArrayBuffer]",OO="[object DataView]",kO="[object Float32Array]",NO="[object Float64Array]",BO="[object Int8Array]",FO="[object Int16Array]",$O="[object Int32Array]",HO="[object Uint8Array]",zO="[object Uint8ClampedArray]",WO="[object Uint16Array]",VO="[object Uint32Array]",gt={};gt[kO]=gt[NO]=gt[BO]=gt[FO]=gt[$O]=gt[HO]=gt[zO]=gt[WO]=gt[VO]=!0;gt[bO]=gt[wO]=gt[RO]=gt[xO]=gt[OO]=gt[SO]=gt[CO]=gt[TO]=gt[MO]=gt[AO]=gt[EO]=gt[PO]=gt[LO]=gt[DO]=gt[IO]=!1;function GO(e){return Yn(e)&&Vm(e.length)&&!!gt[mo(e)]}function Um(e){return function(t){return e(t)}}var tT=typeof Or=="object"&&Or&&!Or.nodeType&&Or,El=tT&&typeof kr=="object"&&kr&&!kr.nodeType&&kr,UO=El&&El.exports===tT,Lh=UO&&YC.process,YO=function(){try{var e=El&&El.require&&El.require("util").types;return e||Lh&&Lh.binding&&Lh.binding("util")}catch{}}();const cs=YO;var I_=cs&&cs.isTypedArray,qO=I_?Um(I_):GO;const Ym=qO;var jO=Object.prototype,KO=jO.hasOwnProperty;function rT(e,t){var r=ur(e),n=!r&&iu(e),i=!r&&!n&&au(e),a=!r&&!n&&!i&&Ym(e),o=r||n||i||a,s=o?cO(e.length,String):[],l=s.length;for(var u in e)(t||KO.call(e,u))&&!(o&&(u=="length"||i&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Od(u,l)))&&s.push(u);return s}function nT(e,t){return function(r){return e(t(r))}}var XO=nT(Object.keys,Object);const ZO=XO;var QO=Object.prototype,JO=QO.hasOwnProperty;function ek(e){if(!Gm(e))return ZO(e);var t=[];for(var r in Object(e))JO.call(e,r)&&r!="constructor"&&t.push(r);return t}function ku(e){return Rs(e)?rT(e):ek(e)}function tk(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var rk=Object.prototype,nk=rk.hasOwnProperty;function ik(e){if(!Cr(e))return tk(e);var t=Gm(e),r=[];for(var n in e)n=="constructor"&&(t||!nk.call(e,n))||r.push(n);return r}function Nu(e){return Rs(e)?rT(e,!0):ik(e)}var ak=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ok=/^\w*$/;function qm(e,t){if(ur(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Rd(e)?!0:ok.test(e)||!ak.test(e)||t!=null&&e in Object(t)}var sk=_o(Object,"create");const ou=sk;function lk(){this.__data__=ou?ou(null):{},this.size=0}function uk(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var fk="__lodash_hash_undefined__",ck=Object.prototype,dk=ck.hasOwnProperty;function hk(e){var t=this.__data__;if(ou){var r=t[e];return r===fk?void 0:r}return dk.call(t,e)?t[e]:void 0}var vk=Object.prototype,pk=vk.hasOwnProperty;function gk(e){var t=this.__data__;return ou?t[e]!==void 0:pk.call(t,e)}var mk="__lodash_hash_undefined__";function yk(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ou&&t===void 0?mk:t,this}function so(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}so.prototype.clear=lk;so.prototype.delete=uk;so.prototype.get=hk;so.prototype.has=gk;so.prototype.set=yk;function _k(){this.__data__=[],this.size=0}function kd(e,t){for(var r=e.length;r--;)if(Ru(e[r][0],t))return r;return-1}var bk=Array.prototype,wk=bk.splice;function xk(e){var t=this.__data__,r=kd(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():wk.call(t,r,1),--this.size,!0}function Sk(e){var t=this.__data__,r=kd(t,e);return r<0?void 0:t[r][1]}function Ck(e){return kd(this.__data__,e)>-1}function Tk(e,t){var r=this.__data__,n=kd(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function wi(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}wi.prototype.clear=_k;wi.prototype.delete=xk;wi.prototype.get=Sk;wi.prototype.has=Ck;wi.prototype.set=Tk;var Mk=_o(Mn,"Map");const su=Mk;function Ak(){this.size=0,this.__data__={hash:new so,map:new(su||wi),string:new so}}function Ek(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Nd(e,t){var r=e.__data__;return Ek(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Pk(e){var t=Nd(this,e).delete(e);return this.size-=t?1:0,t}function Lk(e){return Nd(this,e).get(e)}function Dk(e){return Nd(this,e).has(e)}function Ik(e,t){var r=Nd(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function xi(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}xi.prototype.clear=Ak;xi.prototype.delete=Pk;xi.prototype.get=Lk;xi.prototype.has=Dk;xi.prototype.set=Ik;var Rk="Expected a function";function jm(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Rk);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,n);return r.cache=a.set(i,o)||a,o};return r.cache=new(jm.Cache||xi),r}jm.Cache=xi;var Ok=500;function kk(e){var t=jm(e,function(n){return r.size===Ok&&r.clear(),n}),r=t.cache;return t}var Nk=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Bk=/\\(\\)?/g,Fk=kk(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Nk,function(r,n,i,a){t.push(i?a.replace(Bk,"$1"):n||r)}),t});const $k=Fk;function Hk(e){return e==null?"":KC(e)}function Bd(e,t){return ur(e)?e:qm(e,t)?[e]:$k(Hk(e))}var zk=1/0;function Bu(e){if(typeof e=="string"||Rd(e))return e;var t=e+"";return t=="0"&&1/e==-zk?"-0":t}function Km(e,t){t=Bd(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[Bu(t[r++])];return r&&r==n?e:void 0}function lu(e,t,r){var n=e==null?void 0:Km(e,t);return n===void 0?r:n}function Xm(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var R_=nn?nn.isConcatSpreadable:void 0;function Wk(e){return ur(e)||iu(e)||!!(R_&&e&&e[R_])}function Zm(e,t,r,n,i){var a=-1,o=e.length;for(r||(r=Wk),i||(i=[]);++a<o;){var s=e[a];t>0&&r(s)?t>1?Zm(s,t-1,r,n,i):Xm(i,s):n||(i[i.length]=s)}return i}function Vk(e){var t=e==null?0:e.length;return t?Zm(e,1):[]}function Gk(e){return ZC(QC(e,void 0,Vk),e+"")}var Uk=nT(Object.getPrototypeOf,Object);const Qm=Uk;var Yk="[object Object]",qk=Function.prototype,jk=Object.prototype,iT=qk.toString,Kk=jk.hasOwnProperty,Xk=iT.call(Object);function Zk(e){if(!Yn(e)||mo(e)!=Yk)return!1;var t=Qm(e);if(t===null)return!0;var r=Kk.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&iT.call(r)==Xk}function Lp(){if(!arguments.length)return[];var e=arguments[0];return ur(e)?e:[e]}function Qk(){this.__data__=new wi,this.size=0}function Jk(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function eN(e){return this.__data__.get(e)}function tN(e){return this.__data__.has(e)}var rN=200;function nN(e,t){var r=this.__data__;if(r instanceof wi){var n=r.__data__;if(!su||n.length<rN-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new xi(n)}return r.set(e,t),this.size=r.size,this}function xn(e){var t=this.__data__=new wi(e);this.size=t.size}xn.prototype.clear=Qk;xn.prototype.delete=Jk;xn.prototype.get=eN;xn.prototype.has=tN;xn.prototype.set=nN;function iN(e,t){return e&&Ou(t,ku(t),e)}function aN(e,t){return e&&Ou(t,Nu(t),e)}var aT=typeof Or=="object"&&Or&&!Or.nodeType&&Or,O_=aT&&typeof kr=="object"&&kr&&!kr.nodeType&&kr,oN=O_&&O_.exports===aT,k_=oN?Mn.Buffer:void 0,N_=k_?k_.allocUnsafe:void 0;function oT(e,t){if(t)return e.slice();var r=e.length,n=N_?N_(r):new e.constructor(r);return e.copy(n),n}function sN(e,t){for(var r=-1,n=e==null?0:e.length,i=0,a=[];++r<n;){var o=e[r];t(o,r,e)&&(a[i++]=o)}return a}function sT(){return[]}var lN=Object.prototype,uN=lN.propertyIsEnumerable,B_=Object.getOwnPropertySymbols,fN=B_?function(e){return e==null?[]:(e=Object(e),sN(B_(e),function(t){return uN.call(e,t)}))}:sT;const Jm=fN;function cN(e,t){return Ou(e,Jm(e),t)}var dN=Object.getOwnPropertySymbols,hN=dN?function(e){for(var t=[];e;)Xm(t,Jm(e)),e=Qm(e);return t}:sT;const lT=hN;function vN(e,t){return Ou(e,lT(e),t)}function uT(e,t,r){var n=t(e);return ur(e)?n:Xm(n,r(e))}function Dp(e){return uT(e,ku,Jm)}function pN(e){return uT(e,Nu,lT)}var gN=_o(Mn,"DataView");const Ip=gN;var mN=_o(Mn,"Promise");const Rp=mN;var yN=_o(Mn,"Set");const Op=yN;var F_="[object Map]",_N="[object Object]",$_="[object Promise]",H_="[object Set]",z_="[object WeakMap]",W_="[object DataView]",bN=yo(Ip),wN=yo(su),xN=yo(Rp),SN=yo(Op),CN=yo(Pp),Ba=mo;(Ip&&Ba(new Ip(new ArrayBuffer(1)))!=W_||su&&Ba(new su)!=F_||Rp&&Ba(Rp.resolve())!=$_||Op&&Ba(new Op)!=H_||Pp&&Ba(new Pp)!=z_)&&(Ba=function(e){var t=mo(e),r=t==_N?e.constructor:void 0,n=r?yo(r):"";if(n)switch(n){case bN:return W_;case wN:return F_;case xN:return $_;case SN:return H_;case CN:return z_}return t});const uu=Ba;var TN=Object.prototype,MN=TN.hasOwnProperty;function AN(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&MN.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var EN=Mn.Uint8Array;const Fc=EN;function ey(e){var t=new e.constructor(e.byteLength);return new Fc(t).set(new Fc(e)),t}function PN(e,t){var r=t?ey(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var LN=/\w*$/;function DN(e){var t=new e.constructor(e.source,LN.exec(e));return t.lastIndex=e.lastIndex,t}var V_=nn?nn.prototype:void 0,G_=V_?V_.valueOf:void 0;function IN(e){return G_?Object(G_.call(e)):{}}function fT(e,t){var r=t?ey(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var RN="[object Boolean]",ON="[object Date]",kN="[object Map]",NN="[object Number]",BN="[object RegExp]",FN="[object Set]",$N="[object String]",HN="[object Symbol]",zN="[object ArrayBuffer]",WN="[object DataView]",VN="[object Float32Array]",GN="[object Float64Array]",UN="[object Int8Array]",YN="[object Int16Array]",qN="[object Int32Array]",jN="[object Uint8Array]",KN="[object Uint8ClampedArray]",XN="[object Uint16Array]",ZN="[object Uint32Array]";function QN(e,t,r){var n=e.constructor;switch(t){case zN:return ey(e);case RN:case ON:return new n(+e);case WN:return PN(e,r);case VN:case GN:case UN:case YN:case qN:case jN:case KN:case XN:case ZN:return fT(e,r);case kN:return new n;case NN:case $N:return new n(e);case BN:return DN(e);case FN:return new n;case HN:return IN(e)}}function cT(e){return typeof e.constructor=="function"&&!Gm(e)?GR(Qm(e)):{}}var JN="[object Map]";function eB(e){return Yn(e)&&uu(e)==JN}var U_=cs&&cs.isMap,tB=U_?Um(U_):eB;const rB=tB;var nB="[object Set]";function iB(e){return Yn(e)&&uu(e)==nB}var Y_=cs&&cs.isSet,aB=Y_?Um(Y_):iB;const oB=aB;var sB=1,lB=2,uB=4,dT="[object Arguments]",fB="[object Array]",cB="[object Boolean]",dB="[object Date]",hB="[object Error]",hT="[object Function]",vB="[object GeneratorFunction]",pB="[object Map]",gB="[object Number]",vT="[object Object]",mB="[object RegExp]",yB="[object Set]",_B="[object String]",bB="[object Symbol]",wB="[object WeakMap]",xB="[object ArrayBuffer]",SB="[object DataView]",CB="[object Float32Array]",TB="[object Float64Array]",MB="[object Int8Array]",AB="[object Int16Array]",EB="[object Int32Array]",PB="[object Uint8Array]",LB="[object Uint8ClampedArray]",DB="[object Uint16Array]",IB="[object Uint32Array]",vt={};vt[dT]=vt[fB]=vt[xB]=vt[SB]=vt[cB]=vt[dB]=vt[CB]=vt[TB]=vt[MB]=vt[AB]=vt[EB]=vt[pB]=vt[gB]=vt[vT]=vt[mB]=vt[yB]=vt[_B]=vt[bB]=vt[PB]=vt[LB]=vt[DB]=vt[IB]=!0;vt[hB]=vt[hT]=vt[wB]=!1;function sc(e,t,r,n,i,a){var o,s=t&sB,l=t&lB,u=t&uB;if(r&&(o=i?r(e,n,i,a):r(e)),o!==void 0)return o;if(!Cr(e))return e;var f=ur(e);if(f){if(o=AN(e),!s)return XC(e,o)}else{var c=uu(e),d=c==hT||c==vB;if(au(e))return oT(e,s);if(c==vT||c==dT||d&&!i){if(o=l||d?{}:cT(e),!s)return l?vN(e,aN(o,e)):cN(e,iN(o,e))}else{if(!vt[c])return i?e:{};o=QN(e,c,s)}}a||(a=new xn);var h=a.get(e);if(h)return h;a.set(e,o),oB(e)?e.forEach(function(g){o.add(sc(g,t,r,g,e,a))}):rB(e)&&e.forEach(function(g,m){o.set(m,sc(g,t,r,m,e,a))});var v=u?l?pN:Dp:l?Nu:ku,p=f?void 0:v(e);return tO(p||e,function(g,m){p&&(m=g,g=e[m]),Wm(o,m,sc(g,t,r,m,e,a))}),o}var RB=4;function q_(e){return sc(e,RB)}var OB="__lodash_hash_undefined__";function kB(e){return this.__data__.set(e,OB),this}function NB(e){return this.__data__.has(e)}function $c(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new xi;++t<r;)this.add(e[t])}$c.prototype.add=$c.prototype.push=kB;$c.prototype.has=NB;function BB(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function FB(e,t){return e.has(t)}var $B=1,HB=2;function pT(e,t,r,n,i,a){var o=r&$B,s=e.length,l=t.length;if(s!=l&&!(o&&l>s))return!1;var u=a.get(e),f=a.get(t);if(u&&f)return u==t&&f==e;var c=-1,d=!0,h=r&HB?new $c:void 0;for(a.set(e,t),a.set(t,e);++c<s;){var v=e[c],p=t[c];if(n)var g=o?n(p,v,c,t,e,a):n(v,p,c,e,t,a);if(g!==void 0){if(g)continue;d=!1;break}if(h){if(!BB(t,function(m,y){if(!FB(h,y)&&(v===m||i(v,m,r,n,a)))return h.push(y)})){d=!1;break}}else if(!(v===p||i(v,p,r,n,a))){d=!1;break}}return a.delete(e),a.delete(t),d}function zB(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function WB(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var VB=1,GB=2,UB="[object Boolean]",YB="[object Date]",qB="[object Error]",jB="[object Map]",KB="[object Number]",XB="[object RegExp]",ZB="[object Set]",QB="[object String]",JB="[object Symbol]",eF="[object ArrayBuffer]",tF="[object DataView]",j_=nn?nn.prototype:void 0,Dh=j_?j_.valueOf:void 0;function rF(e,t,r,n,i,a,o){switch(r){case tF:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case eF:return!(e.byteLength!=t.byteLength||!a(new Fc(e),new Fc(t)));case UB:case YB:case KB:return Ru(+e,+t);case qB:return e.name==t.name&&e.message==t.message;case XB:case QB:return e==t+"";case jB:var s=zB;case ZB:var l=n&VB;if(s||(s=WB),e.size!=t.size&&!l)return!1;var u=o.get(e);if(u)return u==t;n|=GB,o.set(e,t);var f=pT(s(e),s(t),n,i,a,o);return o.delete(e),f;case JB:if(Dh)return Dh.call(e)==Dh.call(t)}return!1}var nF=1,iF=Object.prototype,aF=iF.hasOwnProperty;function oF(e,t,r,n,i,a){var o=r&nF,s=Dp(e),l=s.length,u=Dp(t),f=u.length;if(l!=f&&!o)return!1;for(var c=l;c--;){var d=s[c];if(!(o?d in t:aF.call(t,d)))return!1}var h=a.get(e),v=a.get(t);if(h&&v)return h==t&&v==e;var p=!0;a.set(e,t),a.set(t,e);for(var g=o;++c<l;){d=s[c];var m=e[d],y=t[d];if(n)var _=o?n(y,m,d,t,e,a):n(m,y,d,e,t,a);if(!(_===void 0?m===y||i(m,y,r,n,a):_)){p=!1;break}g||(g=d=="constructor")}if(p&&!g){var b=e.constructor,x=t.constructor;b!=x&&"constructor"in e&&"constructor"in t&&!(typeof b=="function"&&b instanceof b&&typeof x=="function"&&x instanceof x)&&(p=!1)}return a.delete(e),a.delete(t),p}var sF=1,K_="[object Arguments]",X_="[object Array]",nf="[object Object]",lF=Object.prototype,Z_=lF.hasOwnProperty;function uF(e,t,r,n,i,a){var o=ur(e),s=ur(t),l=o?X_:uu(e),u=s?X_:uu(t);l=l==K_?nf:l,u=u==K_?nf:u;var f=l==nf,c=u==nf,d=l==u;if(d&&au(e)){if(!au(t))return!1;o=!0,f=!1}if(d&&!f)return a||(a=new xn),o||Ym(e)?pT(e,t,r,n,i,a):rF(e,t,l,r,n,i,a);if(!(r&sF)){var h=f&&Z_.call(e,"__wrapped__"),v=c&&Z_.call(t,"__wrapped__");if(h||v){var p=h?e.value():e,g=v?t.value():t;return a||(a=new xn),i(p,g,r,n,a)}}return d?(a||(a=new xn),oF(e,t,r,n,i,a)):!1}function Fd(e,t,r,n,i){return e===t?!0:e==null||t==null||!Yn(e)&&!Yn(t)?e!==e&&t!==t:uF(e,t,r,n,Fd,i)}var fF=1,cF=2;function dF(e,t,r,n){var i=r.length,a=i,o=!n;if(e==null)return!a;for(e=Object(e);i--;){var s=r[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){s=r[i];var l=s[0],u=e[l],f=s[1];if(o&&s[2]){if(u===void 0&&!(l in e))return!1}else{var c=new xn;if(n)var d=n(u,f,l,e,t,c);if(!(d===void 0?Fd(f,u,fF|cF,n,c):d))return!1}}return!0}function gT(e){return e===e&&!Cr(e)}function hF(e){for(var t=ku(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,gT(i)]}return t}function mT(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function vF(e){var t=hF(e);return t.length==1&&t[0][2]?mT(t[0][0],t[0][1]):function(r){return r===e||dF(r,e,t)}}function pF(e,t){return e!=null&&t in Object(e)}function gF(e,t,r){t=Bd(t,e);for(var n=-1,i=t.length,a=!1;++n<i;){var o=Bu(t[n]);if(!(a=e!=null&&r(e,o)))break;e=e[o]}return a||++n!=i?a:(i=e==null?0:e.length,!!i&&Vm(i)&&Od(o,i)&&(ur(e)||iu(e)))}function yT(e,t){return e!=null&&gF(e,t,pF)}var mF=1,yF=2;function _F(e,t){return qm(e)&&gT(t)?mT(Bu(e),t):function(r){var n=lu(r,e);return n===void 0&&n===t?yT(r,e):Fd(t,n,mF|yF)}}function bF(e){return function(t){return t==null?void 0:t[e]}}function wF(e){return function(t){return Km(t,e)}}function xF(e){return qm(e)?bF(Bu(e)):wF(e)}function SF(e){return typeof e=="function"?e:e==null?$m:typeof e=="object"?ur(e)?_F(e[0],e[1]):vF(e):xF(e)}function CF(e){return function(t,r,n){for(var i=-1,a=Object(t),o=n(t),s=o.length;s--;){var l=o[e?s:++i];if(r(a[l],l,a)===!1)break}return t}}var TF=CF();const _T=TF;function MF(e,t){return e&&_T(e,t,ku)}function AF(e,t){return function(r,n){if(r==null)return r;if(!Rs(r))return e(r,n);for(var i=r.length,a=t?i:-1,o=Object(r);(t?a--:++a<i)&&n(o[a],a,o)!==!1;);return r}}var EF=AF(MF);const PF=EF;var LF=function(){return Mn.Date.now()};const Ih=LF;var DF="Expected a function",IF=Math.max,RF=Math.min;function Hc(e,t,r){var n,i,a,o,s,l,u=0,f=!1,c=!1,d=!0;if(typeof e!="function")throw new TypeError(DF);t=T_(t)||0,Cr(r)&&(f=!!r.leading,c="maxWait"in r,a=c?IF(T_(r.maxWait)||0,t):a,d="trailing"in r?!!r.trailing:d);function h(w){var S=n,C=i;return n=i=void 0,u=w,o=e.apply(C,S),o}function v(w){return u=w,s=setTimeout(m,t),f?h(w):o}function p(w){var S=w-l,C=w-u,T=t-S;return c?RF(T,a-C):T}function g(w){var S=w-l,C=w-u;return l===void 0||S>=t||S<0||c&&C>=a}function m(){var w=Ih();if(g(w))return y(w);s=setTimeout(m,p(w))}function y(w){return s=void 0,d&&n?h(w):(n=i=void 0,o)}function _(){s!==void 0&&clearTimeout(s),u=0,n=l=i=s=void 0}function b(){return s===void 0?o:y(Ih())}function x(){var w=Ih(),S=g(w);if(n=arguments,i=this,l=w,S){if(s===void 0)return v(l);if(c)return clearTimeout(s),s=setTimeout(m,t),h(l)}return s===void 0&&(s=setTimeout(m,t)),o}return x.cancel=_,x.flush=b,x}function kp(e,t,r){(r!==void 0&&!Ru(e[t],r)||r===void 0&&!(t in e))&&zm(e,t,r)}function OF(e){return Yn(e)&&Rs(e)}function Np(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function kF(e){return Ou(e,Nu(e))}function NF(e,t,r,n,i,a,o){var s=Np(e,r),l=Np(t,r),u=o.get(l);if(u){kp(e,r,u);return}var f=a?a(s,l,r+"",e,t,o):void 0,c=f===void 0;if(c){var d=ur(l),h=!d&&au(l),v=!d&&!h&&Ym(l);f=l,d||h||v?ur(s)?f=s:OF(s)?f=XC(s):h?(c=!1,f=oT(l,!0)):v?(c=!1,f=fT(l,!0)):f=[]:Zk(l)||iu(l)?(f=s,iu(s)?f=kF(s):(!Cr(s)||Hm(s))&&(f=cT(l))):c=!1}c&&(o.set(l,f),i(f,l,n,a,o),o.delete(l)),kp(e,r,f)}function bT(e,t,r,n,i){e!==t&&_T(t,function(a,o){if(i||(i=new xn),Cr(a))NF(e,t,o,r,bT,n,i);else{var s=n?n(Np(e,o),a,o+"",e,t,i):void 0;s===void 0&&(s=a),kp(e,o,s)}},Nu)}function BF(e,t){var r=-1,n=Rs(e)?Array(e.length):[];return PF(e,function(i,a,o){n[++r]=t(i,a,o)}),n}function FF(e,t){var r=ur(e)?jC:BF;return r(e,SF(t))}function $F(e,t){return Zm(FF(e,t),1)}function HF(e){for(var t=-1,r=e==null?0:e.length,n={};++t<r;){var i=e[t];n[i[0]]=i[1]}return n}function zF(e,t){return Fd(e,t)}function ty(e){return e==null}var WF=uO(function(e,t,r){bT(e,t,r)});const wT=WF;function xT(e,t,r,n){if(!Cr(e))return e;t=Bd(t,e);for(var i=-1,a=t.length,o=a-1,s=e;s!=null&&++i<a;){var l=Bu(t[i]),u=r;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(i!=o){var f=s[l];u=n?n(f,l,s):void 0,u===void 0&&(u=Cr(f)?f:Od(t[i+1])?[]:{})}Wm(s,l,u),s=s[l]}return e}function VF(e,t,r){for(var n=-1,i=t.length,a={};++n<i;){var o=t[n],s=Km(e,o);r(s,o)&&xT(a,Bd(o,e),s)}return a}function GF(e,t){return VF(e,t,function(r,n){return yT(e,n)})}var UF=Gk(function(e,t){return e==null?{}:GF(e,t)});const YF=UF;function qF(e,t,r){return e==null?e:xT(e,t,r)}const lc=function(e,t,...r){let n;t.includes("mouse")||t.includes("click")?n="MouseEvents":t.includes("key")?n="KeyboardEvent":n="HTMLEvents";const i=document.createEvent(n);return i.initEvent(t,...r),e.dispatchEvent(i),e},si=(e,t,{checkForDefaultPrevented:r=!0}={})=>i=>{const a=e==null?void 0:e(i);if(r===!1||!a)return t==null?void 0:t(i)};var Q_;const Rt=typeof window<"u",pi=e=>typeof e=="boolean",_r=e=>typeof e=="number",jF=e=>typeof e=="string",Bp=()=>{};Rt&&((Q_=window==null?void 0:window.navigator)!=null&&Q_.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function zc(e){return typeof e=="function"?e():L(e)}function KF(e,t){function r(...n){return new Promise((i,a)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(i).catch(a)})}return r}function XF(e,t={}){let r,n,i=Bp;const a=s=>{clearTimeout(s),i(),i=Bp};return s=>{const l=zc(e),u=zc(t.maxWait);return r&&a(r),l<=0||u!==void 0&&u<=0?(n&&(a(n),n=null),Promise.resolve(s())):new Promise((f,c)=>{i=t.rejectOnCancel?c:f,u&&!n&&(n=setTimeout(()=>{r&&a(r),n=null,f(s())},u)),r=setTimeout(()=>{n&&a(n),n=null,f(s())},l)})}}function ZF(e){return e}function $d(e){return GL()?(UL(e),!0):!1}function QF(e,t=200,r={}){return KF(XF(t,r),e)}function JF(e,t=200,r={}){const n=H(e.value),i=QF(()=>{n.value=e.value},t,r);return Me(e,()=>i()),n}function e$(e,t=!0){dt()?Et(e):t?e():Ht(e)}function Fp(e,t,r={}){const{immediate:n=!0}=r,i=H(!1);let a=null;function o(){a&&(clearTimeout(a),a=null)}function s(){i.value=!1,o()}function l(...u){o(),i.value=!0,a=setTimeout(()=>{i.value=!1,a=null,e(...u)},zc(t))}return n&&(i.value=!0,Rt&&l()),$d(s),{isPending:xd(i),start:l,stop:s}}function zi(e){var t;const r=zc(e);return(t=r==null?void 0:r.$el)!=null?t:r}const ry=Rt?window:void 0;function $n(...e){let t,r,n,i;if(jF(e[0])||Array.isArray(e[0])?([r,n,i]=e,t=ry):[t,r,n,i]=e,!t)return Bp;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const a=[],o=()=>{a.forEach(f=>f()),a.length=0},s=(f,c,d)=>(f.addEventListener(c,d,i),()=>f.removeEventListener(c,d,i)),l=Me(()=>zi(t),f=>{o(),f&&a.push(...r.flatMap(c=>n.map(d=>s(f,c,d))))},{immediate:!0,flush:"post"}),u=()=>{l(),o()};return $d(u),u}function t$(e,t,r={}){const{window:n=ry,ignore:i=[],capture:a=!0,detectIframe:o=!1}=r;if(!n)return;let s=!0,l;const u=h=>i.some(v=>{if(typeof v=="string")return Array.from(n.document.querySelectorAll(v)).some(p=>p===h.target||h.composedPath().includes(p));{const p=zi(v);return p&&(h.target===p||h.composedPath().includes(p))}}),f=h=>{n.clearTimeout(l);const v=zi(e);if(!(!v||v===h.target||h.composedPath().includes(v))){if(h.detail===0&&(s=!u(h)),!s){s=!0;return}t(h)}},c=[$n(n,"click",f,{passive:!0,capture:a}),$n(n,"pointerdown",h=>{const v=zi(e);v&&(s=!h.composedPath().includes(v)&&!u(h))},{passive:!0}),$n(n,"pointerup",h=>{if(h.button===0){const v=h.composedPath();h.composedPath=()=>v,l=n.setTimeout(()=>f(h),50)}},{passive:!0}),o&&$n(n,"blur",h=>{var v;const p=zi(e);((v=n.document.activeElement)==null?void 0:v.tagName)==="IFRAME"&&!(p!=null&&p.contains(n.document.activeElement))&&t(h)})].filter(Boolean);return()=>c.forEach(h=>h())}function r$(e,t=!1){const r=H(),n=()=>r.value=Boolean(e());return n(),e$(n,t),r}const $p=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Hp="__vueuse_ssr_handlers__";$p[Hp]=$p[Hp]||{};$p[Hp];var J_=Object.getOwnPropertySymbols,n$=Object.prototype.hasOwnProperty,i$=Object.prototype.propertyIsEnumerable,a$=(e,t)=>{var r={};for(var n in e)n$.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&J_)for(var n of J_(e))t.indexOf(n)<0&&i$.call(e,n)&&(r[n]=e[n]);return r};function ds(e,t,r={}){const n=r,{window:i=ry}=n,a=a$(n,["window"]);let o;const s=r$(()=>i&&"ResizeObserver"in i),l=()=>{o&&(o.disconnect(),o=void 0)},u=Me(()=>zi(e),c=>{l(),s.value&&i&&c&&(o=new ResizeObserver(t),o.observe(c,a))},{immediate:!0,flush:"post"}),f=()=>{l(),u()};return $d(f),{isSupported:s,stop:f}}var eb;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(eb||(eb={}));var o$=Object.defineProperty,tb=Object.getOwnPropertySymbols,s$=Object.prototype.hasOwnProperty,l$=Object.prototype.propertyIsEnumerable,rb=(e,t,r)=>t in e?o$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,u$=(e,t)=>{for(var r in t||(t={}))s$.call(t,r)&&rb(e,r,t[r]);if(tb)for(var r of tb(t))l$.call(t,r)&&rb(e,r,t[r]);return e};const f$={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]};u$({linear:ZF},f$);const Wc=e=>e===void 0,hs=e=>typeof Element>"u"?!1:e instanceof Element,c$=e=>Ue(e)?!Number.isNaN(Number(e)):!1,nb=e=>Object.keys(e),uc=(e,t,r)=>({get value(){return lu(e,t,r)},set value(n){qF(e,t,n)}});class d$ extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function lo(e,t){throw new d$(`[${e}] ${t}`)}const ST=(e="")=>e.split(" ").filter(t=>!!t.trim()),Pl=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Uo=(e,t)=>{!e||!t.trim()||e.classList.add(...ST(t))},rs=(e,t)=>{!e||!t.trim()||e.classList.remove(...ST(t))},ib=(e,t)=>{var r;if(!Rt||!e||!t)return"";let n=Sn(t);n==="float"&&(n="cssFloat");try{const i=e.style[n];if(i)return i;const a=(r=document.defaultView)==null?void 0:r.getComputedStyle(e,"");return a?a[n]:""}catch{return e.style[n]}};function vs(e,t="px"){if(!e)return"";if(_r(e)||c$(e))return`${e}${t}`;if(Ue(e))return e}/*! Element Plus Icons Vue v2.0.10 */var Xn=(e,t)=>{let r=e.__vccOpts||e;for(let[n,i]of t)r[n]=i;return r},h$={name:"ArrowDown"},v$={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},p$=le("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 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.592 30.592 0 0 0-42.752 0z"},null,-1),g$=[p$];function m$(e,t,r,n,i,a){return X(),Se("svg",v$,g$)}var CT=Xn(h$,[["render",m$],["__file","arrow-down.vue"]]),y$={name:"ArrowRight"},_$={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},b$=le("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 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"},null,-1),w$=[b$];function x$(e,t,r,n,i,a){return X(),Se("svg",_$,w$)}var ny=Xn(y$,[["render",x$],["__file","arrow-right.vue"]]),S$={name:"ArrowUp"},C$={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},T$=le("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 0z"},null,-1),M$=[T$];function A$(e,t,r,n,i,a){return X(),Se("svg",C$,M$)}var E$=Xn(S$,[["render",A$],["__file","arrow-up.vue"]]),P$={name:"CircleCloseFilled"},L$={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},D$=le("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 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.336L512 457.664z"},null,-1),I$=[D$];function R$(e,t,r,n,i,a){return X(),Se("svg",L$,I$)}var TT=Xn(P$,[["render",R$],["__file","circle-close-filled.vue"]]),O$={name:"Close"},k$={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},N$=le("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"},null,-1),B$=[N$];function F$(e,t,r,n,i,a){return X(),Se("svg",k$,B$)}var zp=Xn(O$,[["render",F$],["__file","close.vue"]]),$$={name:"InfoFilled"},H$={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},z$=le("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64zm67.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.344zM590.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.992 12.992 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"},null,-1),W$=[z$];function V$(e,t,r,n,i,a){return X(),Se("svg",H$,W$)}var MT=Xn($$,[["render",V$],["__file","info-filled.vue"]]),G$={name:"Loading"},U$={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Y$=le("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32zm448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32zm-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32zM195.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.248zm452.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.248zM828.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 0zm-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 0z"},null,-1),q$=[Y$];function j$(e,t,r,n,i,a){return X(),Se("svg",U$,q$)}var AT=Xn(G$,[["render",j$],["__file","loading.vue"]]),K$={name:"More"},X$={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Z$=le("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-96zm336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96zm336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96z"},null,-1),Q$=[Z$];function J$(e,t,r,n,i,a){return X(),Se("svg",X$,Q$)}var e5=Xn(K$,[["render",J$],["__file","more.vue"]]),t5={name:"SuccessFilled"},r5={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},n5=le("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336L456.192 600.384z"},null,-1),i5=[n5];function a5(e,t,r,n,i,a){return X(),Se("svg",r5,i5)}var ET=Xn(t5,[["render",a5],["__file","success-filled.vue"]]),o5={name:"WarningFilled"},s5={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},l5=le("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256zm0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4z"},null,-1),u5=[l5];function f5(e,t,r,n,i,a){return X(),Se("svg",s5,u5)}var PT=Xn(o5,[["render",f5],["__file","warning-filled.vue"]]);const LT="__epPropKey",Ae=e=>e,c5=e=>je(e)&&!!e[LT],Hd=(e,t)=>{if(!je(e)||c5(e))return e;const{values:r,required:n,default:i,type:a,validator:o}=e,l={type:a,required:!!n,validator:r||o?u=>{let f=!1,c=[];if(r&&(c=Array.from(r),ze(e,"default")&&c.push(i),f||(f=c.includes(u))),o&&(f||(f=o(u))),!f&&c.length>0){const d=[...new Set(c)].map(h=>JSON.stringify(h)).join(", ");SD(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${d}], got value ${JSON.stringify(u)}.`)}return f}:void 0,[LT]:!0};return ze(e,"default")&&(l.default=i),l},at=e=>HF(Object.entries(e).map(([t,r])=>[t,Hd(r,t)])),Wi=Ae([String,Object,Function]),d5={Close:zp,SuccessFilled:ET,InfoFilled:MT,WarningFilled:PT,CircleCloseFilled:TT},ab={success:ET,warning:PT,error:TT,info:MT},Er=(e,t)=>{if(e.install=r=>{for(const n of[e,...Object.values(t??{})])r.component(n.name,n)},t)for(const[r,n]of Object.entries(t))e[r]=n;return e},h5=(e,t)=>(e.install=r=>{e._context=r._context,r.config.globalProperties[t]=e},e),v5=(e,t)=>(e.install=r=>{r.directive(t,e)},e),ia=e=>(e.install=or,e),Lt={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"},zd="update:modelValue",Wd=["","default","small","large"],fc=e=>{const t=ye(e)?e:[e],r=[];return t.forEach(n=>{var i;ye(n)?r.push(...fc(n)):Qi(n)&&ye(n.children)?r.push(...fc(n.children)):(r.push(n),Qi(n)&&((i=n.component)!=null&&i.subTree)&&r.push(...fc(n.component.subTree)))}),r},Wa=e=>e,DT=Symbol("buttonGroupContextKey"),Os=Symbol("checkboxGroupContextKey"),IT=Symbol(),ks=Symbol("formContextKey"),uo=Symbol("formItemContextKey"),RT=Symbol("rowContextKey"),OT=Symbol("scrollbarContextKey"),iy=Symbol("popper"),kT=Symbol("popperContent"),ay=Symbol("elTooltip"),NT=e=>{const t=dt();return $(()=>{var r,n;return(n=((r=t.proxy)==null?void 0:r.$props)[e])!=null?n:void 0})},Vc=H();function aa(e,t=void 0){const r=dt()?De(IT,Vc):Vc;return e?$(()=>{var n,i;return(i=(n=r.value)==null?void 0:n[e])!=null?i:t}):r}const p5=(e,t,r=!1)=>{var n;const i=!!dt(),a=i?aa():void 0,o=(n=t==null?void 0:t.provide)!=null?n:i?Ct:void 0;if(!o)return;const s=$(()=>{const l=L(e);return a!=null&&a.value?g5(a.value,l):l});return o(IT,s),(r||!Vc.value)&&(Vc.value=s.value),s},g5=(e,t)=>{var r;const n=[...new Set([...nb(e),...nb(t)])],i={};for(const a of n)i[a]=(r=t[a])!=null?r:e[a];return i},Vd=Hd({type:String,values:Wd,required:!1}),fo=(e,t={})=>{const r=H(void 0),n=t.prop?r:NT("size"),i=t.global?r:aa("size"),a=t.form?{size:void 0}:De(ks,void 0),o=t.formItem?{size:void 0}:De(uo,void 0);return $(()=>n.value||L(e)||(o==null?void 0:o.size)||(a==null?void 0:a.size)||i.value||"")},oy=e=>{const t=NT("disabled"),r=De(ks,void 0);return $(()=>t.value||L(e)||(r==null?void 0:r.disabled)||!1)},m5=({from:e,replacement:t,scope:r,version:n,ref:i,type:a="API"},o)=>{Me(()=>L(o),s=>{},{immediate:!0})},sy="el",y5="is-",ca=(e,t,r,n,i)=>{let a=`${e}-${t}`;return r&&(a+=`-${r}`),n&&(a+=`__${n}`),i&&(a+=`--${i}`),a},Ne=e=>{const t=aa("namespace",sy);return{namespace:t,b:(v="")=>ca(t.value,e,v,"",""),e:v=>v?ca(t.value,e,"",v,""):"",m:v=>v?ca(t.value,e,"","",v):"",be:(v,p)=>v&&p?ca(t.value,e,v,p,""):"",em:(v,p)=>v&&p?ca(t.value,e,"",v,p):"",bm:(v,p)=>v&&p?ca(t.value,e,v,"",p):"",bem:(v,p,g)=>v&&p&&g?ca(t.value,e,v,p,g):"",is:(v,...p)=>{const g=p.length>=1?p[0]:!0;return v&&g?`${y5}${v}`:""},cssVar:v=>{const p={};for(const g in v)v[g]&&(p[`--${t.value}-${g}`]=v[g]);return p},cssVarName:v=>`--${t.value}-${v}`,cssVarBlock:v=>{const p={};for(const g in v)v[g]&&(p[`--${t.value}-${e}-${g}`]=v[g]);return p},cssVarBlockName:v=>`--${t.value}-${e}-${v}`}},ob={prefix:Math.floor(Math.random()*1e4),current:0},_5=Symbol("elIdInjection"),BT=()=>dt()?De(_5,ob):ob,ly=e=>{const t=BT(),r=aa("namespace",sy);return $(()=>L(e)||`${r.value}-id-${t.prefix}-${t.current++}`)},Gd=()=>{const e=De(ks,void 0),t=De(uo,void 0);return{form:e,formItem:t}},FT=(e,{formItemContext:t,disableIdGeneration:r,disableIdManagement:n})=>{r||(r=H(!1)),n||(n=H(!1));const i=H();let a;const o=$(()=>{var s;return!!(!e.label&&t&&t.inputIds&&((s=t.inputIds)==null?void 0:s.length)<=1)});return Et(()=>{a=Me([wn(e,"id"),r],([s,l])=>{const u=s??(l?void 0:ly().value);u!==i.value&&(t!=null&&t.removeInputId&&(i.value&&t.removeInputId(i.value),!(n!=null&&n.value)&&!l&&u&&t.addInputId(u)),i.value=u)},{immediate:!0})}),Iu(()=>{a&&a(),t!=null&&t.removeInputId&&i.value&&t.removeInputId(i.value)}),{isLabeledByFormItem:o,inputId:i}};var b5={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 w5=e=>(t,r)=>x5(t,r,L(e)),x5=(e,t,r)=>lu(r,e,e).replace(/\{(\w+)\}/g,(n,i)=>{var a;return`${(a=t==null?void 0:t[i])!=null?a:`{${i}}`}`}),S5=e=>{const t=$(()=>L(e).name),r=St(e)?e:H(e);return{lang:t,locale:r,t:w5(e)}},$T=()=>{const e=aa("locale");return S5($(()=>e.value||b5))},C5=Hd({type:Ae(Boolean),default:null}),T5=Hd({type:Ae(Function)}),M5=e=>{const t=`update:${e}`,r=`onUpdate:${e}`,n=[t],i={[e]:C5,[r]:T5};return{useModelToggle:({indicator:o,toggleReason:s,shouldHideWhenRouteChanges:l,shouldProceed:u,onShow:f,onHide:c})=>{const d=dt(),{emit:h}=d,v=d.props,p=$(()=>Ee(v[r])),g=$(()=>v[e]===null),m=S=>{o.value!==!0&&(o.value=!0,s&&(s.value=S),Ee(f)&&f(S))},y=S=>{o.value!==!1&&(o.value=!1,s&&(s.value=S),Ee(c)&&c(S))},_=S=>{if(v.disabled===!0||Ee(u)&&!u())return;const C=p.value&&Rt;C&&h(t,!0),(g.value||!C)&&m(S)},b=S=>{if(v.disabled===!0||!Rt)return;const C=p.value&&Rt;C&&h(t,!1),(g.value||!C)&&y(S)},x=S=>{pi(S)&&(v.disabled&&S?p.value&&h(t,!1):o.value!==S&&(S?m():y()))},w=()=>{o.value?b():_()};return Me(()=>v[e],x),l&&d.appContext.config.globalProperties.$route!==void 0&&Me(()=>({...d.proxy.$route}),()=>{l.value&&o.value&&b()}),Et(()=>{x(v[e])}),{hide:b,show:_,toggle:w,hasUpdateHandler:p}},useModelToggleProps:i,useModelToggleEmits:n}};var wr="top",an="bottom",on="right",xr="left",uy="auto",Fu=[wr,an,on,xr],ps="start",fu="end",A5="clippingParents",HT="viewport",Ys="popper",E5="reference",sb=Fu.reduce(function(e,t){return e.concat([t+"-"+ps,t+"-"+fu])},[]),fy=[].concat(Fu,[uy]).reduce(function(e,t){return e.concat([t,t+"-"+ps,t+"-"+fu])},[]),P5="beforeRead",L5="read",D5="afterRead",I5="beforeMain",R5="main",O5="afterMain",k5="beforeWrite",N5="write",B5="afterWrite",F5=[P5,L5,D5,I5,R5,O5,k5,N5,B5];function qn(e){return e?(e.nodeName||"").toLowerCase():null}function An(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function gs(e){var t=An(e).Element;return e instanceof t||e instanceof Element}function tn(e){var t=An(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function cy(e){if(typeof ShadowRoot>"u")return!1;var t=An(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function $5(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},i=t.attributes[r]||{},a=t.elements[r];!tn(a)||!qn(a)||(Object.assign(a.style,n),Object.keys(i).forEach(function(o){var s=i[o];s===!1?a.removeAttribute(o):a.setAttribute(o,s===!0?"":s)}))})}function H5(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var i=t.elements[n],a=t.attributes[n]||{},o=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),s=o.reduce(function(l,u){return l[u]="",l},{});!tn(i)||!qn(i)||(Object.assign(i.style,s),Object.keys(a).forEach(function(l){i.removeAttribute(l)}))})}}var zT={name:"applyStyles",enabled:!0,phase:"write",fn:$5,effect:H5,requires:["computeStyles"]};function Gn(e){return e.split("-")[0]}var eo=Math.max,Gc=Math.min,ms=Math.round;function ys(e,t){t===void 0&&(t=!1);var r=e.getBoundingClientRect(),n=1,i=1;if(tn(e)&&t){var a=e.offsetHeight,o=e.offsetWidth;o>0&&(n=ms(r.width)/o||1),a>0&&(i=ms(r.height)/a||1)}return{width:r.width/n,height:r.height/i,top:r.top/i,right:r.right/n,bottom:r.bottom/i,left:r.left/n,x:r.left/n,y:r.top/i}}function dy(e){var t=ys(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function WT(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&cy(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function gi(e){return An(e).getComputedStyle(e)}function z5(e){return["table","td","th"].indexOf(qn(e))>=0}function oa(e){return((gs(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ud(e){return qn(e)==="html"?e:e.assignedSlot||e.parentNode||(cy(e)?e.host:null)||oa(e)}function lb(e){return!tn(e)||gi(e).position==="fixed"?null:e.offsetParent}function W5(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,r=navigator.userAgent.indexOf("Trident")!==-1;if(r&&tn(e)){var n=gi(e);if(n.position==="fixed")return null}var i=Ud(e);for(cy(i)&&(i=i.host);tn(i)&&["html","body"].indexOf(qn(i))<0;){var a=gi(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function $u(e){for(var t=An(e),r=lb(e);r&&z5(r)&&gi(r).position==="static";)r=lb(r);return r&&(qn(r)==="html"||qn(r)==="body"&&gi(r).position==="static")?t:r||W5(e)||t}function hy(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ll(e,t,r){return eo(e,Gc(t,r))}function V5(e,t,r){var n=Ll(e,t,r);return n>r?r:n}function VT(){return{top:0,right:0,bottom:0,left:0}}function GT(e){return Object.assign({},VT(),e)}function UT(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var G5=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,GT(typeof e!="number"?e:UT(e,Fu))};function U5(e){var t,r=e.state,n=e.name,i=e.options,a=r.elements.arrow,o=r.modifiersData.popperOffsets,s=Gn(r.placement),l=hy(s),u=[xr,on].indexOf(s)>=0,f=u?"height":"width";if(!(!a||!o)){var c=G5(i.padding,r),d=dy(a),h=l==="y"?wr:xr,v=l==="y"?an:on,p=r.rects.reference[f]+r.rects.reference[l]-o[l]-r.rects.popper[f],g=o[l]-r.rects.reference[l],m=$u(a),y=m?l==="y"?m.clientHeight||0:m.clientWidth||0:0,_=p/2-g/2,b=c[h],x=y-d[f]-c[v],w=y/2-d[f]/2+_,S=Ll(b,w,x),C=l;r.modifiersData[n]=(t={},t[C]=S,t.centerOffset=S-w,t)}}function Y5(e){var t=e.state,r=e.options,n=r.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||!WT(t.elements.popper,i)||(t.elements.arrow=i))}var q5={name:"arrow",enabled:!0,phase:"main",fn:U5,effect:Y5,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function _s(e){return e.split("-")[1]}var j5={top:"auto",right:"auto",bottom:"auto",left:"auto"};function K5(e){var t=e.x,r=e.y,n=window,i=n.devicePixelRatio||1;return{x:ms(t*i)/i||0,y:ms(r*i)/i||0}}function ub(e){var t,r=e.popper,n=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,f=e.roundOffsets,c=e.isFixed,d=o.x,h=d===void 0?0:d,v=o.y,p=v===void 0?0:v,g=typeof f=="function"?f({x:h,y:p}):{x:h,y:p};h=g.x,p=g.y;var m=o.hasOwnProperty("x"),y=o.hasOwnProperty("y"),_=xr,b=wr,x=window;if(u){var w=$u(r),S="clientHeight",C="clientWidth";if(w===An(r)&&(w=oa(r),gi(w).position!=="static"&&s==="absolute"&&(S="scrollHeight",C="scrollWidth")),w=w,i===wr||(i===xr||i===on)&&a===fu){b=an;var T=c&&w===x&&x.visualViewport?x.visualViewport.height:w[S];p-=T-n.height,p*=l?1:-1}if(i===xr||(i===wr||i===an)&&a===fu){_=on;var E=c&&w===x&&x.visualViewport?x.visualViewport.width:w[C];h-=E-n.width,h*=l?1:-1}}var A=Object.assign({position:s},u&&j5),M=f===!0?K5({x:h,y:p}):{x:h,y:p};if(h=M.x,p=M.y,l){var D;return Object.assign({},A,(D={},D[b]=y?"0":"",D[_]=m?"0":"",D.transform=(x.devicePixelRatio||1)<=1?"translate("+h+"px, "+p+"px)":"translate3d("+h+"px, "+p+"px, 0)",D))}return Object.assign({},A,(t={},t[b]=y?p+"px":"",t[_]=m?h+"px":"",t.transform="",t))}function X5(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=n===void 0?!0:n,a=r.adaptive,o=a===void 0?!0:a,s=r.roundOffsets,l=s===void 0?!0:s,u={placement:Gn(t.placement),variation:_s(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,ub(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ub(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var YT={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:X5,data:{}},af={passive:!0};function Z5(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,a=i===void 0?!0:i,o=n.resize,s=o===void 0?!0:o,l=An(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach(function(f){f.addEventListener("scroll",r.update,af)}),s&&l.addEventListener("resize",r.update,af),function(){a&&u.forEach(function(f){f.removeEventListener("scroll",r.update,af)}),s&&l.removeEventListener("resize",r.update,af)}}var qT={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Z5,data:{}},Q5={left:"right",right:"left",bottom:"top",top:"bottom"};function cc(e){return e.replace(/left|right|bottom|top/g,function(t){return Q5[t]})}var J5={start:"end",end:"start"};function fb(e){return e.replace(/start|end/g,function(t){return J5[t]})}function vy(e){var t=An(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function py(e){return ys(oa(e)).left+vy(e).scrollLeft}function e3(e){var t=An(e),r=oa(e),n=t.visualViewport,i=r.clientWidth,a=r.clientHeight,o=0,s=0;return n&&(i=n.width,a=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=n.offsetLeft,s=n.offsetTop)),{width:i,height:a,x:o+py(e),y:s}}function t3(e){var t,r=oa(e),n=vy(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=eo(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=eo(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+py(e),l=-n.scrollTop;return gi(i||r).direction==="rtl"&&(s+=eo(r.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:s,y:l}}function gy(e){var t=gi(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function jT(e){return["html","body","#document"].indexOf(qn(e))>=0?e.ownerDocument.body:tn(e)&&gy(e)?e:jT(Ud(e))}function Dl(e,t){var r;t===void 0&&(t=[]);var n=jT(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),a=An(n),o=i?[a].concat(a.visualViewport||[],gy(n)?n:[]):n,s=t.concat(o);return i?s:s.concat(Dl(Ud(o)))}function Wp(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function r3(e){var t=ys(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 cb(e,t){return t===HT?Wp(e3(e)):gs(t)?r3(t):Wp(t3(oa(e)))}function n3(e){var t=Dl(Ud(e)),r=["absolute","fixed"].indexOf(gi(e).position)>=0,n=r&&tn(e)?$u(e):e;return gs(n)?t.filter(function(i){return gs(i)&&WT(i,n)&&qn(i)!=="body"}):[]}function i3(e,t,r){var n=t==="clippingParents"?n3(e):[].concat(t),i=[].concat(n,[r]),a=i[0],o=i.reduce(function(s,l){var u=cb(e,l);return s.top=eo(u.top,s.top),s.right=Gc(u.right,s.right),s.bottom=Gc(u.bottom,s.bottom),s.left=eo(u.left,s.left),s},cb(e,a));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function KT(e){var t=e.reference,r=e.element,n=e.placement,i=n?Gn(n):null,a=n?_s(n):null,o=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,l;switch(i){case wr:l={x:o,y:t.y-r.height};break;case an:l={x:o,y:t.y+t.height};break;case on:l={x:t.x+t.width,y:s};break;case xr:l={x:t.x-r.width,y:s};break;default:l={x:t.x,y:t.y}}var u=i?hy(i):null;if(u!=null){var f=u==="y"?"height":"width";switch(a){case ps:l[u]=l[u]-(t[f]/2-r[f]/2);break;case fu:l[u]=l[u]+(t[f]/2-r[f]/2);break}}return l}function cu(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=n===void 0?e.placement:n,a=r.boundary,o=a===void 0?A5:a,s=r.rootBoundary,l=s===void 0?HT:s,u=r.elementContext,f=u===void 0?Ys:u,c=r.altBoundary,d=c===void 0?!1:c,h=r.padding,v=h===void 0?0:h,p=GT(typeof v!="number"?v:UT(v,Fu)),g=f===Ys?E5:Ys,m=e.rects.popper,y=e.elements[d?g:f],_=i3(gs(y)?y:y.contextElement||oa(e.elements.popper),o,l),b=ys(e.elements.reference),x=KT({reference:b,element:m,strategy:"absolute",placement:i}),w=Wp(Object.assign({},m,x)),S=f===Ys?w:b,C={top:_.top-S.top+p.top,bottom:S.bottom-_.bottom+p.bottom,left:_.left-S.left+p.left,right:S.right-_.right+p.right},T=e.modifiersData.offset;if(f===Ys&&T){var E=T[i];Object.keys(C).forEach(function(A){var M=[on,an].indexOf(A)>=0?1:-1,D=[wr,an].indexOf(A)>=0?"y":"x";C[A]+=E[D]*M})}return C}function a3(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=r.boundary,a=r.rootBoundary,o=r.padding,s=r.flipVariations,l=r.allowedAutoPlacements,u=l===void 0?fy:l,f=_s(n),c=f?s?sb:sb.filter(function(v){return _s(v)===f}):Fu,d=c.filter(function(v){return u.indexOf(v)>=0});d.length===0&&(d=c);var h=d.reduce(function(v,p){return v[p]=cu(e,{placement:p,boundary:i,rootBoundary:a,padding:o})[Gn(p)],v},{});return Object.keys(h).sort(function(v,p){return h[v]-h[p]})}function o3(e){if(Gn(e)===uy)return[];var t=cc(e);return[fb(e),t,fb(t)]}function s3(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,a=i===void 0?!0:i,o=r.altAxis,s=o===void 0?!0:o,l=r.fallbackPlacements,u=r.padding,f=r.boundary,c=r.rootBoundary,d=r.altBoundary,h=r.flipVariations,v=h===void 0?!0:h,p=r.allowedAutoPlacements,g=t.options.placement,m=Gn(g),y=m===g,_=l||(y||!v?[cc(g)]:o3(g)),b=[g].concat(_).reduce(function(Te,V){return Te.concat(Gn(V)===uy?a3(t,{placement:V,boundary:f,rootBoundary:c,padding:u,flipVariations:v,allowedAutoPlacements:p}):V)},[]),x=t.rects.reference,w=t.rects.popper,S=new Map,C=!0,T=b[0],E=0;E<b.length;E++){var A=b[E],M=Gn(A),D=_s(A)===ps,O=[wr,an].indexOf(M)>=0,k=O?"width":"height",F=cu(t,{placement:A,boundary:f,rootBoundary:c,altBoundary:d,padding:u}),j=O?D?on:xr:D?an:wr;x[k]>w[k]&&(j=cc(j));var B=cc(j),N=[];if(a&&N.push(F[M]<=0),s&&N.push(F[j]<=0,F[B]<=0),N.every(function(Te){return Te})){T=A,C=!1;break}S.set(A,N)}if(C)for(var U=v?3:1,re=function(Te){var V=b.find(function(Q){var W=S.get(Q);if(W)return W.slice(0,Te).every(function(Y){return Y})});if(V)return T=V,"break"},ae=U;ae>0;ae--){var me=re(ae);if(me==="break")break}t.placement!==T&&(t.modifiersData[n]._skip=!0,t.placement=T,t.reset=!0)}}var l3={name:"flip",enabled:!0,phase:"main",fn:s3,requiresIfExists:["offset"],data:{_skip:!1}};function db(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function hb(e){return[wr,on,an,xr].some(function(t){return e[t]>=0})}function u3(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=cu(t,{elementContext:"reference"}),s=cu(t,{altBoundary:!0}),l=db(o,n),u=db(s,i,a),f=hb(l),c=hb(u);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:f,hasPopperEscaped:c},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":c})}var f3={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:u3};function c3(e,t,r){var n=Gn(e),i=[xr,wr].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,o=a[0],s=a[1];return o=o||0,s=(s||0)*i,[xr,on].indexOf(n)>=0?{x:s,y:o}:{x:o,y:s}}function d3(e){var t=e.state,r=e.options,n=e.name,i=r.offset,a=i===void 0?[0,0]:i,o=fy.reduce(function(f,c){return f[c]=c3(c,t.rects,a),f},{}),s=o[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=o}var h3={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:d3};function v3(e){var t=e.state,r=e.name;t.modifiersData[r]=KT({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var XT={name:"popperOffsets",enabled:!0,phase:"read",fn:v3,data:{}};function p3(e){return e==="x"?"y":"x"}function g3(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,a=i===void 0?!0:i,o=r.altAxis,s=o===void 0?!1:o,l=r.boundary,u=r.rootBoundary,f=r.altBoundary,c=r.padding,d=r.tether,h=d===void 0?!0:d,v=r.tetherOffset,p=v===void 0?0:v,g=cu(t,{boundary:l,rootBoundary:u,padding:c,altBoundary:f}),m=Gn(t.placement),y=_s(t.placement),_=!y,b=hy(m),x=p3(b),w=t.modifiersData.popperOffsets,S=t.rects.reference,C=t.rects.popper,T=typeof p=="function"?p(Object.assign({},t.rects,{placement:t.placement})):p,E=typeof T=="number"?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(w){if(a){var D,O=b==="y"?wr:xr,k=b==="y"?an:on,F=b==="y"?"height":"width",j=w[b],B=j+g[O],N=j-g[k],U=h?-C[F]/2:0,re=y===ps?S[F]:C[F],ae=y===ps?-C[F]:-S[F],me=t.elements.arrow,Te=h&&me?dy(me):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:VT(),Q=V[O],W=V[k],Y=Ll(0,S[F],Te[F]),se=_?S[F]/2-U-Y-Q-E.mainAxis:re-Y-Q-E.mainAxis,he=_?-S[F]/2+U+Y+W+E.mainAxis:ae+Y+W+E.mainAxis,Z=t.elements.arrow&&$u(t.elements.arrow),P=Z?b==="y"?Z.clientTop||0:Z.clientLeft||0:0,I=(D=A==null?void 0:A[b])!=null?D:0,z=j+se-I-P,G=j+he-I,q=Ll(h?Gc(B,z):B,j,h?eo(N,G):N);w[b]=q,M[b]=q-j}if(s){var ne,ce=b==="x"?wr:xr,te=b==="x"?an:on,ie=w[x],K=x==="y"?"height":"width",_e=ie+g[ce],ve=ie-g[te],be=[wr,xr].indexOf(m)!==-1,Le=(ne=A==null?void 0:A[x])!=null?ne:0,Fe=be?_e:ie-S[K]-C[K]-Le+E.altAxis,tt=be?ie+S[K]+C[K]-Le-E.altAxis:ve,Je=h&&be?V5(Fe,ie,tt):Ll(h?Fe:_e,ie,h?tt:ve);w[x]=Je,M[x]=Je-ie}t.modifiersData[n]=M}}var m3={name:"preventOverflow",enabled:!0,phase:"main",fn:g3,requiresIfExists:["offset"]};function y3(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function _3(e){return e===An(e)||!tn(e)?vy(e):y3(e)}function b3(e){var t=e.getBoundingClientRect(),r=ms(t.width)/e.offsetWidth||1,n=ms(t.height)/e.offsetHeight||1;return r!==1||n!==1}function w3(e,t,r){r===void 0&&(r=!1);var n=tn(t),i=tn(t)&&b3(t),a=oa(t),o=ys(e,i),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((qn(t)!=="body"||gy(a))&&(s=_3(t)),tn(t)?(l=ys(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=py(a))),{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function x3(e){var t=new Map,r=new Set,n=[];e.forEach(function(a){t.set(a.name,a)});function i(a){r.add(a.name);var o=[].concat(a.requires||[],a.requiresIfExists||[]);o.forEach(function(s){if(!r.has(s)){var l=t.get(s);l&&i(l)}}),n.push(a)}return e.forEach(function(a){r.has(a.name)||i(a)}),n}function S3(e){var t=x3(e);return F5.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function C3(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function T3(e){var t=e.reduce(function(r,n){var i=r[n.name];return r[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var vb={placement:"bottom",modifiers:[],strategy:"absolute"};function pb(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function my(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,i=t.defaultOptions,a=i===void 0?vb:i;return function(o,s,l){l===void 0&&(l=a);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},vb,a),modifiersData:{},elements:{reference:o,popper:s},attributes:{},styles:{}},f=[],c=!1,d={state:u,setOptions:function(p){var g=typeof p=="function"?p(u.options):p;v(),u.options=Object.assign({},a,u.options,g),u.scrollParents={reference:gs(o)?Dl(o):o.contextElement?Dl(o.contextElement):[],popper:Dl(s)};var m=S3(T3([].concat(n,u.options.modifiers)));return u.orderedModifiers=m.filter(function(y){return y.enabled}),h(),d.update()},forceUpdate:function(){if(!c){var p=u.elements,g=p.reference,m=p.popper;if(pb(g,m)){u.rects={reference:w3(g,$u(m),u.options.strategy==="fixed"),popper:dy(m)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(C){return u.modifiersData[C.name]=Object.assign({},C.data)});for(var y=0;y<u.orderedModifiers.length;y++){if(u.reset===!0){u.reset=!1,y=-1;continue}var _=u.orderedModifiers[y],b=_.fn,x=_.options,w=x===void 0?{}:x,S=_.name;typeof b=="function"&&(u=b({state:u,options:w,name:S,instance:d})||u)}}}},update:C3(function(){return new Promise(function(p){d.forceUpdate(),p(u)})}),destroy:function(){v(),c=!0}};if(!pb(o,s))return d;d.setOptions(l).then(function(p){!c&&l.onFirstUpdate&&l.onFirstUpdate(p)});function h(){u.orderedModifiers.forEach(function(p){var g=p.name,m=p.options,y=m===void 0?{}:m,_=p.effect;if(typeof _=="function"){var b=_({state:u,name:g,instance:d,options:y}),x=function(){};f.push(b||x)}})}function v(){f.forEach(function(p){return p()}),f=[]}return d}}my();var M3=[qT,XT,YT,zT];my({defaultModifiers:M3});var A3=[qT,XT,YT,zT,h3,l3,m3,q5,f3],ZT=my({defaultModifiers:A3});function E3(){let e;const t=(n,i)=>{r(),e=window.setTimeout(n,i)},r=()=>window.clearTimeout(e);return $d(()=>r()),{registerTimeout:t,cancelTimeout:r}}let zo=[];const gb=e=>{const t=e;t.key===Lt.esc&&zo.forEach(r=>r(t))},P3=e=>{Et(()=>{zo.length===0&&document.addEventListener("keydown",gb),Rt&&zo.push(e)}),tr(()=>{zo=zo.filter(t=>t!==e),zo.length===0&&Rt&&document.removeEventListener("keydown",gb)})};let mb;const QT=()=>{const e=aa("namespace",sy),t=BT(),r=$(()=>`${e.value}-popper-container-${t.prefix}`),n=$(()=>`#${r.value}`);return{id:r,selector:n}},L3=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},D3=()=>{Ed(()=>{if(!Rt)return;const{id:e,selector:t}=QT();!mb&&!document.body.querySelector(t.value)&&(mb=L3(e.value))})},I3=at({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200}}),JT=({showAfter:e,hideAfter:t,open:r,close:n})=>{const{registerTimeout:i}=E3();return{onOpen:s=>{i(()=>{r(s)},L(e))},onClose:s=>{i(()=>{n(s)},L(t))}}},eM=Symbol("elForwardRef"),R3=e=>{Ct(eM,{setForwardRef:r=>{e.value=r}})},O3=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),yb=H(0),yy=()=>{const e=aa("zIndex",2e3),t=$(()=>e.value+yb.value);return{initialZIndex:e,currentZIndex:t,nextZIndex:()=>(yb.value++,t.value)}};var Qe=(e,t)=>{const r=e.__vccOpts||e;for(const[n,i]of t)r[n]=i;return r};const k3=at({size:{type:Ae([Number,String])},color:{type:String}}),N3=ue({name:"ElIcon",inheritAttrs:!1}),B3=ue({...N3,props:k3,setup(e){const t=e,r=Ne("icon"),n=$(()=>{const{size:i,color:a}=t;return!i&&!a?{}:{fontSize:Wc(i)?void 0:vs(i),"--color":a}});return(i,a)=>(X(),Se("i",go({class:L(r).b(),style:L(n)},i.$attrs),[Be(i.$slots,"default")],16))}});var F3=Qe(B3,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const Cn=Er(F3),Yo=4,$3={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"}},H3=({move:e,size:t,bar:r})=>({[r.size]:t,transform:`translate${r.axis}(${e}%)`}),z3=at({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),W3="Thumb",V3=ue({__name:"thumb",props:z3,setup(e){const t=e,r=De(OT),n=Ne("scrollbar");r||lo(W3,"can not inject scrollbar context");const i=H(),a=H(),o=H({}),s=H(!1);let l=!1,u=!1,f=Rt?document.onselectstart:null;const c=$(()=>$3[t.vertical?"vertical":"horizontal"]),d=$(()=>H3({size:t.size,move:t.move,bar:c.value})),h=$(()=>i.value[c.value.offset]**2/r.wrapElement[c.value.scrollSize]/t.ratio/a.value[c.value.offset]),v=w=>{var S;if(w.stopPropagation(),w.ctrlKey||[1,2].includes(w.button))return;(S=window.getSelection())==null||S.removeAllRanges(),g(w);const C=w.currentTarget;C&&(o.value[c.value.axis]=C[c.value.offset]-(w[c.value.client]-C.getBoundingClientRect()[c.value.direction]))},p=w=>{if(!a.value||!i.value||!r.wrapElement)return;const S=Math.abs(w.target.getBoundingClientRect()[c.value.direction]-w[c.value.client]),C=a.value[c.value.offset]/2,T=(S-C)*100*h.value/i.value[c.value.offset];r.wrapElement[c.value.scroll]=T*r.wrapElement[c.value.scrollSize]/100},g=w=>{w.stopImmediatePropagation(),l=!0,document.addEventListener("mousemove",m),document.addEventListener("mouseup",y),f=document.onselectstart,document.onselectstart=()=>!1},m=w=>{if(!i.value||!a.value||l===!1)return;const S=o.value[c.value.axis];if(!S)return;const C=(i.value.getBoundingClientRect()[c.value.direction]-w[c.value.client])*-1,T=a.value[c.value.offset]-S,E=(C-T)*100*h.value/i.value[c.value.offset];r.wrapElement[c.value.scroll]=E*r.wrapElement[c.value.scrollSize]/100},y=()=>{l=!1,o.value[c.value.axis]=0,document.removeEventListener("mousemove",m),document.removeEventListener("mouseup",y),x(),u&&(s.value=!1)},_=()=>{u=!1,s.value=!!t.size},b=()=>{u=!0,s.value=l};tr(()=>{x(),document.removeEventListener("mouseup",y)});const x=()=>{document.onselectstart!==f&&(document.onselectstart=f)};return $n(wn(r,"scrollbarElement"),"mousemove",_),$n(wn(r,"scrollbarElement"),"mouseleave",b),(w,S)=>(X(),Ie(Kn,{name:L(n).b("fade"),persisted:""},{default:ee(()=>[sr(le("div",{ref_key:"instance",ref:i,class:de([L(n).e("bar"),L(n).is(L(c).key)]),onMousedown:p},[le("div",{ref_key:"thumb",ref:a,class:de(L(n).e("thumb")),style:At(L(d)),onMousedown:v},null,38)],34),[[oo,w.always||s.value]])]),_:1},8,["name"]))}});var _b=Qe(V3,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const G3=at({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),U3=ue({__name:"bar",props:G3,setup(e,{expose:t}){const r=e,n=H(0),i=H(0);return t({handleScroll:o=>{if(o){const s=o.offsetHeight-Yo,l=o.offsetWidth-Yo;i.value=o.scrollTop*100/s*r.ratioY,n.value=o.scrollLeft*100/l*r.ratioX}}}),(o,s)=>(X(),Se(wt,null,[J(_b,{move:n.value,ratio:o.ratioX,size:o.width,always:o.always},null,8,["move","ratio","size","always"]),J(_b,{move:i.value,ratio:o.ratioY,size:o.height,vertical:"",always:o.always},null,8,["move","ratio","size","always"])],64))}});var Y3=Qe(U3,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const q3=at({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:Ae([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}}),j3={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(_r)},K3="ElScrollbar",X3=ue({name:K3}),Z3=ue({...X3,props:q3,emits:j3,setup(e,{expose:t,emit:r}){const n=e,i=Ne("scrollbar");let a,o;const s=H(),l=H(),u=H(),f=H("0"),c=H("0"),d=H(),h=H(1),v=H(1),p=$(()=>{const S={};return n.height&&(S.height=vs(n.height)),n.maxHeight&&(S.maxHeight=vs(n.maxHeight)),[n.wrapStyle,S]}),g=$(()=>[n.wrapClass,i.e("wrap"),{[i.em("wrap","hidden-default")]:!n.native}]),m=$(()=>[i.e("view"),n.viewClass]),y=()=>{var S;l.value&&((S=d.value)==null||S.handleScroll(l.value),r("scroll",{scrollTop:l.value.scrollTop,scrollLeft:l.value.scrollLeft}))};function _(S,C){je(S)?l.value.scrollTo(S):_r(S)&&_r(C)&&l.value.scrollTo(S,C)}const b=S=>{_r(S)&&(l.value.scrollTop=S)},x=S=>{_r(S)&&(l.value.scrollLeft=S)},w=()=>{if(!l.value)return;const S=l.value.offsetHeight-Yo,C=l.value.offsetWidth-Yo,T=S**2/l.value.scrollHeight,E=C**2/l.value.scrollWidth,A=Math.max(T,n.minSize),M=Math.max(E,n.minSize);h.value=T/(S-T)/(A/(S-A)),v.value=E/(C-E)/(M/(C-M)),c.value=A+Yo<S?`${A}px`:"",f.value=M+Yo<C?`${M}px`:""};return Me(()=>n.noresize,S=>{S?(a==null||a(),o==null||o()):({stop:a}=ds(u,w),o=$n("resize",w))},{immediate:!0}),Me(()=>[n.maxHeight,n.height],()=>{n.native||Ht(()=>{var S;w(),l.value&&((S=d.value)==null||S.handleScroll(l.value))})}),Ct(OT,ln({scrollbarElement:s,wrapElement:l})),Et(()=>{n.native||Ht(()=>{w()})}),Pd(()=>w()),t({wrapRef:l,update:w,scrollTo:_,setScrollTop:b,setScrollLeft:x,handleScroll:y}),(S,C)=>(X(),Se("div",{ref_key:"scrollbarRef",ref:s,class:de(L(i).b())},[le("div",{ref_key:"wrapRef",ref:l,class:de(L(g)),style:At(L(p)),onScroll:y},[(X(),Ie(hi(S.tag),{ref_key:"resizeRef",ref:u,class:de(L(m)),style:At(S.viewStyle)},{default:ee(()=>[Be(S.$slots,"default")]),_:3},8,["class","style"]))],38),S.native?ct("v-if",!0):(X(),Ie(Y3,{key:0,ref_key:"barRef",ref:d,height:c.value,width:f.value,always:S.always,"ratio-x":v.value,"ratio-y":h.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});var Q3=Qe(Z3,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);const tM=Er(Q3),J3=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],rM=at({role:{type:String,values:J3,default:"tooltip"}}),e4=ue({name:"ElPopperRoot",inheritAttrs:!1}),t4=ue({...e4,props:rM,setup(e,{expose:t}){const r=e,n=H(),i=H(),a=H(),o=H(),s=$(()=>r.role),l={triggerRef:n,popperInstanceRef:i,contentRef:a,referenceRef:o,role:s};return t(l),Ct(iy,l),(u,f)=>Be(u.$slots,"default")}});var r4=Qe(t4,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const nM=at({arrowOffset:{type:Number,default:5}}),n4=ue({name:"ElPopperArrow",inheritAttrs:!1}),i4=ue({...n4,props:nM,setup(e,{expose:t}){const r=e,n=Ne("popper"),{arrowOffset:i,arrowRef:a}=De(kT,void 0);return Me(()=>r.arrowOffset,o=>{i.value=o}),tr(()=>{a.value=void 0}),t({arrowRef:a}),(o,s)=>(X(),Se("span",{ref_key:"arrowRef",ref:a,class:de(L(n).e("arrow")),"data-popper-arrow":""},null,2))}});var a4=Qe(i4,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const o4="ElOnlyChild",s4=ue({name:o4,setup(e,{slots:t,attrs:r}){var n;const i=De(eM),a=O3((n=i==null?void 0:i.setForwardRef)!=null?n:or);return()=>{var o;const s=(o=t.default)==null?void 0:o.call(t,r);if(!s||s.length>1)return null;const l=iM(s);return l?sr(vi(l,r),[[a]]):null}}});function iM(e){if(!e)return null;const t=e;for(const r of t){if(je(r))switch(r.type){case br:continue;case Is:case"svg":return bb(r);case wt:return iM(r.children);default:return r}return bb(r)}return null}function bb(e){const t=Ne("only-child");return J("span",{class:t.e("content")},[e])}const aM=at({virtualRef:{type:Ae(Object)},virtualTriggering:Boolean,onMouseenter:{type:Ae(Function)},onMouseleave:{type:Ae(Function)},onClick:{type:Ae(Function)},onKeydown:{type:Ae(Function)},onFocus:{type:Ae(Function)},onBlur:{type:Ae(Function)},onContextmenu:{type:Ae(Function)},id:String,open:Boolean}),l4=ue({name:"ElPopperTrigger",inheritAttrs:!1}),u4=ue({...l4,props:aM,setup(e,{expose:t}){const r=e,{role:n,triggerRef:i}=De(iy,void 0);R3(i);const a=$(()=>s.value?r.id:void 0),o=$(()=>{if(n&&n.value==="tooltip")return r.open&&r.id?r.id:void 0}),s=$(()=>{if(n&&n.value!=="tooltip")return n.value}),l=$(()=>s.value?`${r.open}`:void 0);let u;return Et(()=>{Me(()=>r.virtualRef,f=>{f&&(i.value=zi(f))},{immediate:!0}),Me(i,(f,c)=>{u==null||u(),u=void 0,hs(f)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(d=>{var h;const v=r[d];v&&(f.addEventListener(d.slice(2).toLowerCase(),v),(h=c==null?void 0:c.removeEventListener)==null||h.call(c,d.slice(2).toLowerCase(),v))}),u=Me([a,o,s,l],d=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((h,v)=>{ty(d[v])?f.removeAttribute(h):f.setAttribute(h,d[v])})},{immediate:!0})),hs(c)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(d=>c.removeAttribute(d))},{immediate:!0})}),tr(()=>{u==null||u(),u=void 0}),t({triggerRef:i}),(f,c)=>f.virtualTriggering?ct("v-if",!0):(X(),Ie(L(s4),go({key:0},f.$attrs,{"aria-controls":L(a),"aria-describedby":L(o),"aria-expanded":L(l),"aria-haspopup":L(s)}),{default:ee(()=>[Be(f.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var f4=Qe(u4,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]);const Rh="focus-trap.focus-after-trapped",Oh="focus-trap.focus-after-released",c4="focus-trap.focusout-prevented",wb={cancelable:!0,bubbles:!1},d4={cancelable:!0,bubbles:!1},xb="focusAfterTrapped",Sb="focusAfterReleased",h4=Symbol("elFocusTrap"),_y=H(),Yd=H(0),by=H(0);let of=0;const oM=e=>{const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0||n===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t},Cb=(e,t)=>{for(const r of e)if(!v4(r,t))return r},v4=(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},p4=e=>{const t=oM(e),r=Cb(t,e),n=Cb(t.reverse(),e);return[r,n]},g4=e=>e instanceof HTMLInputElement&&"select"in e,ki=(e,t)=>{if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),by.value=window.performance.now(),e!==r&&g4(e)&&t&&e.select()}};function Tb(e,t){const r=[...e],n=e.indexOf(t);return n!==-1&&r.splice(n,1),r}const m4=()=>{let e=[];return{push:n=>{const i=e[0];i&&n!==i&&i.pause(),e=Tb(e,n),e.unshift(n)},remove:n=>{var i,a;e=Tb(e,n),(a=(i=e[0])==null?void 0:i.resume)==null||a.call(i)}}},y4=(e,t=!1)=>{const r=document.activeElement;for(const n of e)if(ki(n,t),document.activeElement!==r)return},Mb=m4(),_4=()=>Yd.value>by.value,sf=()=>{_y.value="pointer",Yd.value=window.performance.now()},Ab=()=>{_y.value="keyboard",Yd.value=window.performance.now()},b4=()=>(Et(()=>{of===0&&(document.addEventListener("mousedown",sf),document.addEventListener("touchstart",sf),document.addEventListener("keydown",Ab)),of++}),tr(()=>{of--,of<=0&&(document.removeEventListener("mousedown",sf),document.removeEventListener("touchstart",sf),document.removeEventListener("keydown",Ab))}),{focusReason:_y,lastUserFocusTimestamp:Yd,lastAutomatedFocusTimestamp:by}),lf=e=>new CustomEvent(c4,{...d4,detail:e}),w4=ue({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[xb,Sb,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const r=H();let n,i;const{focusReason:a}=b4();P3(v=>{e.trapped&&!o.paused&&t("release-requested",v)});const o={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},s=v=>{if(!e.loop&&!e.trapped||o.paused)return;const{key:p,altKey:g,ctrlKey:m,metaKey:y,currentTarget:_,shiftKey:b}=v,{loop:x}=e,w=p===Lt.tab&&!g&&!m&&!y,S=document.activeElement;if(w&&S){const C=_,[T,E]=p4(C);if(T&&E){if(!b&&S===E){const M=lf({focusReason:a.value});t("focusout-prevented",M),M.defaultPrevented||(v.preventDefault(),x&&ki(T,!0))}else if(b&&[T,C].includes(S)){const M=lf({focusReason:a.value});t("focusout-prevented",M),M.defaultPrevented||(v.preventDefault(),x&&ki(E,!0))}}else if(S===C){const M=lf({focusReason:a.value});t("focusout-prevented",M),M.defaultPrevented||v.preventDefault()}}};Ct(h4,{focusTrapRef:r,onKeydown:s}),Me(()=>e.focusTrapEl,v=>{v&&(r.value=v)},{immediate:!0}),Me([r],([v],[p])=>{v&&(v.addEventListener("keydown",s),v.addEventListener("focusin",f),v.addEventListener("focusout",c)),p&&(p.removeEventListener("keydown",s),p.removeEventListener("focusin",f),p.removeEventListener("focusout",c))});const l=v=>{t(xb,v)},u=v=>t(Sb,v),f=v=>{const p=L(r);if(!p)return;const g=v.target,m=v.relatedTarget,y=g&&p.contains(g);e.trapped||m&&p.contains(m)||(n=m),y&&t("focusin",v),!o.paused&&e.trapped&&(y?i=g:ki(i,!0))},c=v=>{const p=L(r);if(!(o.paused||!p))if(e.trapped){const g=v.relatedTarget;!ty(g)&&!p.contains(g)&&setTimeout(()=>{if(!o.paused&&e.trapped){const m=lf({focusReason:a.value});t("focusout-prevented",m),m.defaultPrevented||ki(i,!0)}},0)}else{const g=v.target;g&&p.contains(g)||t("focusout",v)}};async function d(){await Ht();const v=L(r);if(v){Mb.push(o);const p=v.contains(document.activeElement)?n:document.activeElement;if(n=p,!v.contains(p)){const m=new Event(Rh,wb);v.addEventListener(Rh,l),v.dispatchEvent(m),m.defaultPrevented||Ht(()=>{let y=e.focusStartEl;Ue(y)||(ki(y),document.activeElement!==y&&(y="first")),y==="first"&&y4(oM(v),!0),(document.activeElement===p||y==="container")&&ki(v)})}}}function h(){const v=L(r);if(v){v.removeEventListener(Rh,l);const p=new CustomEvent(Oh,{...wb,detail:{focusReason:a.value}});v.addEventListener(Oh,u),v.dispatchEvent(p),!p.defaultPrevented&&(a.value=="keyboard"||!_4())&&ki(n??document.body),v.removeEventListener(Oh,l),Mb.remove(o)}}return Et(()=>{e.trapped&&d(),Me(()=>e.trapped,v=>{v?d():h()})}),tr(()=>{e.trapped&&h()}),{onKeydown:s}}});function x4(e,t,r,n,i,a){return Be(e.$slots,"default",{handleKeydown:e.onKeydown})}var S4=Qe(w4,[["render",x4],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const C4=["fixed","absolute"],T4=at({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:Ae(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:fy,default:"bottom"},popperOptions:{type:Ae(Object),default:()=>({})},strategy:{type:String,values:C4,default:"absolute"}}),sM=at({...T4,id:String,style:{type:Ae([String,Array,Object])},className:{type:Ae([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:Ae([String,Array,Object])},popperStyle:{type:Ae([String,Array,Object])},referenceEl:{type:Ae(Object)},triggerTargetEl:{type:Ae(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),M4={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},Eb=(e,t)=>{const{placement:r,strategy:n,popperOptions:i}=e,a={placement:r,strategy:n,...i,modifiers:E4(e)};return P4(a,t),L4(a,i==null?void 0:i.modifiers),a},A4=e=>{if(Rt)return zi(e)};function E4(e){const{offset:t,gpuAcceleration:r,fallbackPlacements:n}=e;return[{name:"offset",options:{offset:[0,t??12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:n}},{name:"computeStyles",options:{gpuAcceleration:r}}]}function P4(e,{arrowEl:t,arrowOffset:r}){e.modifiers.push({name:"arrow",options:{element:t,padding:r??5}})}function L4(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const D4=ue({name:"ElPopperContent"}),I4=ue({...D4,props:sM,emits:M4,setup(e,{expose:t,emit:r}){const n=e,{popperInstanceRef:i,contentRef:a,triggerRef:o,role:s}=De(iy,void 0),l=De(uo,void 0),{nextZIndex:u}=yy(),f=Ne("popper"),c=H(),d=H("first"),h=H(),v=H();Ct(kT,{arrowRef:h,arrowOffset:v}),l&&(l.addInputId||l.removeInputId)&&Ct(uo,{...l,addInputId:or,removeInputId:or});const p=H(n.zIndex||u()),g=H(!1);let m;const y=$(()=>A4(n.referenceEl)||L(o)),_=$(()=>[{zIndex:L(p)},n.popperStyle]),b=$(()=>[f.b(),f.is("pure",n.pure),f.is(n.effect),n.popperClass]),x=$(()=>s&&s.value==="dialog"?"false":void 0),w=({referenceEl:O,popperContentEl:k,arrowEl:F})=>{const j=Eb(n,{arrowEl:F,arrowOffset:L(v)});return ZT(O,k,j)},S=(O=!0)=>{var k;(k=L(i))==null||k.update(),O&&(p.value=n.zIndex||u())},C=()=>{var O,k;const F={name:"eventListeners",enabled:n.visible};(k=(O=L(i))==null?void 0:O.setOptions)==null||k.call(O,j=>({...j,modifiers:[...j.modifiers||[],F]})),S(!1),n.visible&&n.focusOnShow?g.value=!0:n.visible===!1&&(g.value=!1)},T=()=>{r("focus")},E=O=>{var k;((k=O.detail)==null?void 0:k.focusReason)!=="pointer"&&(d.value="first",r("blur"))},A=O=>{n.visible&&!g.value&&(O.target&&(d.value=O.target),g.value=!0)},M=O=>{n.trapping||(O.detail.focusReason==="pointer"&&O.preventDefault(),g.value=!1)},D=()=>{g.value=!1,r("close")};return Et(()=>{let O;Me(y,k=>{var F;O==null||O();const j=L(i);if((F=j==null?void 0:j.destroy)==null||F.call(j),k){const B=L(c);a.value=B,i.value=w({referenceEl:k,popperContentEl:B,arrowEl:L(h)}),O=Me(()=>k.getBoundingClientRect(),()=>S(),{immediate:!0})}else i.value=void 0},{immediate:!0}),Me(()=>n.triggerTargetEl,(k,F)=>{m==null||m(),m=void 0;const j=L(k||c.value),B=L(F||c.value);hs(j)&&(m=Me([s,()=>n.ariaLabel,x,()=>n.id],N=>{["role","aria-label","aria-modal","id"].forEach((U,re)=>{ty(N[re])?j.removeAttribute(U):j.setAttribute(U,N[re])})},{immediate:!0})),B!==j&&hs(B)&&["role","aria-label","aria-modal","id"].forEach(N=>{B.removeAttribute(N)})},{immediate:!0}),Me(()=>n.visible,C,{immediate:!0}),Me(()=>Eb(n,{arrowEl:L(h),arrowOffset:L(v)}),k=>{var F;return(F=i.value)==null?void 0:F.setOptions(k)})}),tr(()=>{m==null||m(),m=void 0}),t({popperContentRef:c,popperInstanceRef:i,updatePopper:S,contentStyle:_}),(O,k)=>(X(),Se("div",{ref_key:"popperContentRef",ref:c,style:At(L(_)),class:de(L(b)),tabindex:"-1",onMouseenter:k[0]||(k[0]=F=>O.$emit("mouseenter",F)),onMouseleave:k[1]||(k[1]=F=>O.$emit("mouseleave",F))},[J(L(S4),{trapped:g.value,"trap-on-focus-in":!0,"focus-trap-el":c.value,"focus-start-el":d.value,onFocusAfterTrapped:T,onFocusAfterReleased:E,onFocusin:A,onFocusoutPrevented:M,onReleaseRequested:D},{default:ee(()=>[Be(O.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el"])],38))}});var R4=Qe(I4,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const O4=Er(r4),k4=Ne("tooltip"),qr=at({...I3,...sM,appendTo:{type:Ae([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:Ae(Boolean),default:null},transition:{type:String,default:`${k4.namespace.value}-fade-in-linear`},teleported:{type:Boolean,default:!0},disabled:{type:Boolean}}),du=at({...aM,disabled:Boolean,trigger:{type:Ae([String,Array]),default:"hover"},triggerKeys:{type:Ae(Array),default:()=>[Lt.enter,Lt.space]}}),{useModelToggleProps:N4,useModelToggleEmits:B4,useModelToggle:F4}=M5("visible"),$4=at({...rM,...N4,...qr,...du,...nM,showArrow:{type:Boolean,default:!0}}),H4=[...B4,"before-show","before-hide","show","hide","open","close"],z4=(e,t)=>ye(e)?e.includes(t):e===t,Co=(e,t,r)=>n=>{z4(L(e),t)&&r(n)},W4=ue({name:"ElTooltipTrigger"}),V4=ue({...W4,props:du,setup(e,{expose:t}){const r=e,n=Ne("tooltip"),{controlled:i,id:a,open:o,onOpen:s,onClose:l,onToggle:u}=De(ay,void 0),f=H(null),c=()=>{if(L(i)||r.disabled)return!0},d=wn(r,"trigger"),h=si(c,Co(d,"hover",s)),v=si(c,Co(d,"hover",l)),p=si(c,Co(d,"click",b=>{b.button===0&&u(b)})),g=si(c,Co(d,"focus",s)),m=si(c,Co(d,"focus",l)),y=si(c,Co(d,"contextmenu",b=>{b.preventDefault(),u(b)})),_=si(c,b=>{const{code:x}=b;r.triggerKeys.includes(x)&&(b.preventDefault(),u(b))});return t({triggerRef:f}),(b,x)=>(X(),Ie(L(f4),{id:L(a),"virtual-ref":b.virtualRef,open:L(o),"virtual-triggering":b.virtualTriggering,class:de(L(n).e("trigger")),onBlur:L(m),onClick:L(p),onContextmenu:L(y),onFocus:L(g),onMouseenter:L(h),onMouseleave:L(v),onKeydown:L(_)},{default:ee(()=>[Be(b.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var G4=Qe(V4,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const U4=ue({name:"ElTooltipContent",inheritAttrs:!1}),Y4=ue({...U4,props:qr,setup(e,{expose:t}){const r=e,{selector:n}=QT(),i=H(null),a=H(!1),{controlled:o,id:s,open:l,trigger:u,onClose:f,onOpen:c,onShow:d,onHide:h,onBeforeShow:v,onBeforeHide:p}=De(ay,void 0),g=$(()=>r.persistent);tr(()=>{a.value=!0});const m=$(()=>L(g)?!0:L(l)),y=$(()=>r.disabled?!1:L(l)),_=$(()=>r.appendTo||n.value),b=$(()=>{var k;return(k=r.style)!=null?k:{}}),x=$(()=>!L(l)),w=()=>{h()},S=()=>{if(L(o))return!0},C=si(S,()=>{r.enterable&&L(u)==="hover"&&c()}),T=si(S,()=>{L(u)==="hover"&&f()}),E=()=>{var k,F;(F=(k=i.value)==null?void 0:k.updatePopper)==null||F.call(k),v==null||v()},A=()=>{p==null||p()},M=()=>{d(),O=t$($(()=>{var k;return(k=i.value)==null?void 0:k.popperContentRef}),()=>{if(L(o))return;L(u)!=="hover"&&f()})},D=()=>{r.virtualTriggering||f()};let O;return Me(()=>L(l),k=>{k||O==null||O()},{flush:"post"}),Me(()=>r.content,()=>{var k,F;(F=(k=i.value)==null?void 0:k.updatePopper)==null||F.call(k)}),t({contentRef:i}),(k,F)=>(X(),Ie(hI,{disabled:!k.teleported,to:L(_)},[J(Kn,{name:k.transition,onAfterLeave:w,onBeforeEnter:E,onAfterEnter:M,onBeforeLeave:A},{default:ee(()=>[L(m)?sr((X(),Ie(L(R4),go({key:0,id:L(s),ref_key:"contentRef",ref:i},k.$attrs,{"aria-label":k.ariaLabel,"aria-hidden":L(x),"boundaries-padding":k.boundariesPadding,"fallback-placements":k.fallbackPlacements,"gpu-acceleration":k.gpuAcceleration,offset:k.offset,placement:k.placement,"popper-options":k.popperOptions,strategy:k.strategy,effect:k.effect,enterable:k.enterable,pure:k.pure,"popper-class":k.popperClass,"popper-style":[k.popperStyle,L(b)],"reference-el":k.referenceEl,"trigger-target-el":k.triggerTargetEl,visible:L(y),"z-index":k.zIndex,onMouseenter:L(C),onMouseleave:L(T),onBlur:D,onClose:L(f)}),{default:ee(()=>[a.value?ct("v-if",!0):Be(k.$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","onClose"])),[[oo,L(y)]]):ct("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var q4=Qe(Y4,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const j4=["innerHTML"],K4={key:1},X4=ue({name:"ElTooltip"}),Z4=ue({...X4,props:$4,emits:H4,setup(e,{expose:t,emit:r}){const n=e;D3();const i=ly(),a=H(),o=H(),s=()=>{var m;const y=L(a);y&&((m=y.popperInstanceRef)==null||m.update())},l=H(!1),u=H(),{show:f,hide:c,hasUpdateHandler:d}=F4({indicator:l,toggleReason:u}),{onOpen:h,onClose:v}=JT({showAfter:wn(n,"showAfter"),hideAfter:wn(n,"hideAfter"),open:f,close:c}),p=$(()=>pi(n.visible)&&!d.value);Ct(ay,{controlled:p,id:i,open:xd(l),trigger:wn(n,"trigger"),onOpen:m=>{h(m)},onClose:m=>{v(m)},onToggle:m=>{L(l)?v(m):h(m)},onShow:()=>{r("show",u.value)},onHide:()=>{r("hide",u.value)},onBeforeShow:()=>{r("before-show",u.value)},onBeforeHide:()=>{r("before-hide",u.value)},updatePopper:s}),Me(()=>n.disabled,m=>{m&&l.value&&(l.value=!1)});const g=()=>{var m,y;const _=(y=(m=o.value)==null?void 0:m.contentRef)==null?void 0:y.popperContentRef;return _&&_.contains(document.activeElement)};return TC(()=>l.value&&c()),t({popperRef:a,contentRef:o,isFocusInsideContent:g,updatePopper:s,onOpen:h,onClose:v,hide:c}),(m,y)=>(X(),Ie(L(O4),{ref_key:"popperRef",ref:a,role:m.role},{default:ee(()=>[J(G4,{disabled:m.disabled,trigger:m.trigger,"trigger-keys":m.triggerKeys,"virtual-ref":m.virtualRef,"virtual-triggering":m.virtualTriggering},{default:ee(()=>[m.$slots.default?Be(m.$slots,"default",{key:0}):ct("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),J(q4,{ref_key:"contentRef",ref:o,"aria-label":m.ariaLabel,"boundaries-padding":m.boundariesPadding,content:m.content,disabled:m.disabled,effect:m.effect,enterable:m.enterable,"fallback-placements":m.fallbackPlacements,"hide-after":m.hideAfter,"gpu-acceleration":m.gpuAcceleration,offset:m.offset,persistent:m.persistent,"popper-class":m.popperClass,"popper-style":m.popperStyle,placement:m.placement,"popper-options":m.popperOptions,pure:m.pure,"raw-content":m.rawContent,"reference-el":m.referenceEl,"trigger-target-el":m.triggerTargetEl,"show-after":m.showAfter,strategy:m.strategy,teleported:m.teleported,transition:m.transition,"virtual-triggering":m.virtualTriggering,"z-index":m.zIndex,"append-to":m.appendTo},{default:ee(()=>[Be(m.$slots,"content",{},()=>[m.rawContent?(X(),Se("span",{key:0,innerHTML:m.content},null,8,j4)):(X(),Se("span",K4,Re(m.content),1))]),m.showArrow?(X(),Ie(L(a4),{key:0,"arrow-offset":m.arrowOffset},null,8,["arrow-offset"])):ct("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 Q4=Qe(Z4,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);const qd=Er(Q4),J4=at({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"}}),eH=["textContent"],tH=ue({name:"ElBadge"}),rH=ue({...tH,props:J4,setup(e,{expose:t}){const r=e,n=Ne("badge"),i=$(()=>r.isDot?"":_r(r.value)&&_r(r.max)?r.max<r.value?`${r.max}+`:`${r.value}`:`${r.value}`);return t({content:i}),(a,o)=>(X(),Se("div",{class:de(L(n).b())},[Be(a.$slots,"default"),J(Kn,{name:`${L(n).namespace.value}-zoom-in-center`,persisted:""},{default:ee(()=>[sr(le("sup",{class:de([L(n).e("content"),L(n).em("content",a.type),L(n).is("fixed",!!a.$slots.default),L(n).is("dot",a.isDot)]),textContent:Re(L(i))},null,10,eH),[[oo,!a.hidden&&(L(i)||a.isDot)]])]),_:1},8,["name"])],2))}});var nH=Qe(rH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);const iH=Er(nH),aH=(e,t)=>{m5({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},$(()=>e.type==="text"));const r=De(DT,void 0),n=aa("button"),{form:i}=Gd(),a=fo($(()=>r==null?void 0:r.size)),o=oy(),s=H(),l=Id(),u=$(()=>e.type||(r==null?void 0:r.type)||""),f=$(()=>{var h,v,p;return(p=(v=e.autoInsertSpace)!=null?v:(h=n.value)==null?void 0:h.autoInsertSpace)!=null?p:!1}),c=$(()=>{var h;const v=(h=l.default)==null?void 0:h.call(l);if(f.value&&(v==null?void 0:v.length)===1){const p=v[0];if((p==null?void 0:p.type)===Is){const g=p.children;return/^\p{Unified_Ideograph}{2}$/u.test(g.trim())}}return!1});return{_disabled:o,_size:a,_type:u,_ref:s,shouldAddSpace:c,handleClick:h=>{e.nativeType==="reset"&&(i==null||i.resetFields()),t("click",h)}}},oH=["default","primary","success","warning","info","danger","text",""],sH=["button","submit","reset"],Vp=at({size:Vd,disabled:Boolean,type:{type:String,values:oH,default:""},icon:{type:Wi},nativeType:{type:String,values:sH,default:"button"},loading:Boolean,loadingIcon:{type:Wi,default:()=>AT},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0}}),lH={click:e=>e instanceof MouseEvent};function qt(e,t){uH(e)&&(e="100%");var r=fH(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),r&&(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 uf(e){return Math.min(1,Math.max(0,e))}function uH(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function fH(e){return typeof e=="string"&&e.indexOf("%")!==-1}function lM(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ff(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Ya(e){return e.length===1?"0"+e:String(e)}function cH(e,t,r){return{r:qt(e,255)*255,g:qt(t,255)*255,b:qt(r,255)*255}}function Pb(e,t,r){e=qt(e,255),t=qt(t,255),r=qt(r,255);var n=Math.max(e,t,r),i=Math.min(e,t,r),a=0,o=0,s=(n+i)/2;if(n===i)o=0,a=0;else{var l=n-i;switch(o=s>.5?l/(2-n-i):l/(n+i),n){case e:a=(t-r)/l+(t<r?6:0);break;case t:a=(r-e)/l+2;break;case r:a=(e-t)/l+4;break}a/=6}return{h:a,s:o,l:s}}function kh(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*(6*r):r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function dH(e,t,r){var n,i,a;if(e=qt(e,360),t=qt(t,100),r=qt(r,100),t===0)i=r,a=r,n=r;else{var o=r<.5?r*(1+t):r+t-r*t,s=2*r-o;n=kh(s,o,e+1/3),i=kh(s,o,e),a=kh(s,o,e-1/3)}return{r:n*255,g:i*255,b:a*255}}function Lb(e,t,r){e=qt(e,255),t=qt(t,255),r=qt(r,255);var n=Math.max(e,t,r),i=Math.min(e,t,r),a=0,o=n,s=n-i,l=n===0?0:s/n;if(n===i)a=0;else{switch(n){case e:a=(t-r)/s+(t<r?6:0);break;case t:a=(r-e)/s+2;break;case r:a=(e-t)/s+4;break}a/=6}return{h:a,s:l,v:o}}function hH(e,t,r){e=qt(e,360)*6,t=qt(t,100),r=qt(r,100);var n=Math.floor(e),i=e-n,a=r*(1-t),o=r*(1-i*t),s=r*(1-(1-i)*t),l=n%6,u=[r,o,a,a,s,r][l],f=[s,r,r,o,a,a][l],c=[a,a,s,r,r,o][l];return{r:u*255,g:f*255,b:c*255}}function Db(e,t,r,n){var i=[Ya(Math.round(e).toString(16)),Ya(Math.round(t).toString(16)),Ya(Math.round(r).toString(16))];return n&&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 vH(e,t,r,n,i){var a=[Ya(Math.round(e).toString(16)),Ya(Math.round(t).toString(16)),Ya(Math.round(r).toString(16)),Ya(pH(n))];return i&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function pH(e){return Math.round(parseFloat(e)*255).toString(16)}function Ib(e){return Lr(e)/255}function Lr(e){return parseInt(e,16)}function gH(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var Gp={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 mH(e){var t={r:0,g:0,b:0},r=1,n=null,i=null,a=null,o=!1,s=!1;return typeof e=="string"&&(e=bH(e)),typeof e=="object"&&(ti(e.r)&&ti(e.g)&&ti(e.b)?(t=cH(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):ti(e.h)&&ti(e.s)&&ti(e.v)?(n=ff(e.s),i=ff(e.v),t=hH(e.h,n,i),o=!0,s="hsv"):ti(e.h)&&ti(e.s)&&ti(e.l)&&(n=ff(e.s),a=ff(e.l),t=dH(e.h,n,a),o=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=lM(r),{ok:o,format:e.format||s,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:r}}var yH="[-\\+]?\\d+%?",_H="[-\\+]?\\d*\\.\\d+%?",Vi="(?:".concat(_H,")|(?:").concat(yH,")"),Nh="[\\s|\\(]+(".concat(Vi,")[,|\\s]+(").concat(Vi,")[,|\\s]+(").concat(Vi,")\\s*\\)?"),Bh="[\\s|\\(]+(".concat(Vi,")[,|\\s]+(").concat(Vi,")[,|\\s]+(").concat(Vi,")[,|\\s]+(").concat(Vi,")\\s*\\)?"),dn={CSS_UNIT:new RegExp(Vi),rgb:new RegExp("rgb"+Nh),rgba:new RegExp("rgba"+Bh),hsl:new RegExp("hsl"+Nh),hsla:new RegExp("hsla"+Bh),hsv:new RegExp("hsv"+Nh),hsva:new RegExp("hsva"+Bh),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 bH(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Gp[e])e=Gp[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=dn.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=dn.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=dn.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=dn.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=dn.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=dn.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=dn.hex8.exec(e),r?{r:Lr(r[1]),g:Lr(r[2]),b:Lr(r[3]),a:Ib(r[4]),format:t?"name":"hex8"}:(r=dn.hex6.exec(e),r?{r:Lr(r[1]),g:Lr(r[2]),b:Lr(r[3]),format:t?"name":"hex"}:(r=dn.hex4.exec(e),r?{r:Lr(r[1]+r[1]),g:Lr(r[2]+r[2]),b:Lr(r[3]+r[3]),a:Ib(r[4]+r[4]),format:t?"name":"hex8"}:(r=dn.hex3.exec(e),r?{r:Lr(r[1]+r[1]),g:Lr(r[2]+r[2]),b:Lr(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function ti(e){return Boolean(dn.CSS_UNIT.exec(String(e)))}var uM=function(){function e(t,r){t===void 0&&(t=""),r===void 0&&(r={});var n;if(t instanceof e)return t;typeof t=="number"&&(t=gH(t)),this.originalInput=t;var i=mH(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=(n=r.format)!==null&&n!==void 0?n:i.format,this.gradientType=r.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(),r,n,i,a=t.r/255,o=t.g/255,s=t.b/255;return a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),s<=.03928?i=s/12.92:i=Math.pow((s+.055)/1.055,2.4),.2126*r+.7152*n+.0722*i},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=lM(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=Lb(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=Lb(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),i=Math.round(t.v*100);return this.a===1?"hsv(".concat(r,", ").concat(n,"%, ").concat(i,"%)"):"hsva(".concat(r,", ").concat(n,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Pb(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=Pb(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),i=Math.round(t.l*100);return this.a===1?"hsl(".concat(r,", ").concat(n,"%, ").concat(i,"%)"):"hsla(".concat(r,", ").concat(n,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Db(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),vH(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.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),r=Math.round(this.g),n=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(r,", ").concat(n,")"):"rgba(".concat(t,", ").concat(r,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(r){return"".concat(Math.round(qt(r,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(r){return Math.round(qt(r,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="#"+Db(this.r,this.g,this.b,!1),r=0,n=Object.entries(Gp);r<n.length;r++){var i=n[r],a=i[0],o=i[1];if(t===o)return a}return!1},e.prototype.toString=function(t){var r=Boolean(t);t=t??this.format;var n=!1,i=this.a<1&&this.a>=0,a=!r&&i&&(t.startsWith("hex")||t==="name");return a?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||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 r=this.toHsl();return r.l+=t/100,r.l=uf(r.l),new e(r)},e.prototype.brighten=function(t){t===void 0&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),new e(r)},e.prototype.darken=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=uf(r.l),new e(r)},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 r=this.toHsl();return r.s-=t/100,r.s=uf(r.s),new e(r)},e.prototype.saturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=uf(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var r=this.toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,new e(r)},e.prototype.mix=function(t,r){r===void 0&&(r=50);var n=this.toRgb(),i=new e(t).toRgb(),a=r/100,o={r:(i.r-n.r)*a+n.r,g:(i.g-n.g)*a+n.g,b:(i.b-n.b)*a+n.b,a:(i.a-n.a)*a+n.a};return new e(o)},e.prototype.analogous=function(t,r){t===void 0&&(t=6),r===void 0&&(r=30);var n=this.toHsl(),i=360/r,a=[this];for(n.h=(n.h-(i*t>>1)+720)%360;--t;)n.h=(n.h+i)%360,a.push(new e(n));return a},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 r=this.toHsv(),n=r.h,i=r.s,a=r.v,o=[],s=1/t;t--;)o.push(new e({h:n,s:i,v:a})),a=(a+s)%1;return o},e.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return[this,new e({h:(r+72)%360,s:t.s,l:t.l}),new e({h:(r+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var r=this.toRgb(),n=new e(t).toRgb();return new e({r:n.r+(r.r-n.r)*r.a,g:n.g+(r.g-n.g)*r.a,b:n.b+(r.b-n.b)*r.a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var r=this.toHsl(),n=r.h,i=[this],a=360/t,o=1;o<t;o++)i.push(new e({h:(n+o*a)%360,s:r.s,l:r.l}));return i},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function Ei(e,t=20){return e.mix("#141414",t).toString()}function wH(e){const t=oy(),r=Ne("button");return $(()=>{let n={};const i=e.color;if(i){const a=new uM(i),o=e.dark?a.tint(20).toString():Ei(a,20);if(e.plain)n=r.cssVarBlock({"bg-color":e.dark?Ei(a,90):a.tint(90).toString(),"text-color":i,"border-color":e.dark?Ei(a,50):a.tint(50).toString(),"hover-text-color":`var(${r.cssVarName("color-white")})`,"hover-bg-color":i,"hover-border-color":i,"active-bg-color":o,"active-text-color":`var(${r.cssVarName("color-white")})`,"active-border-color":o}),t.value&&(n[r.cssVarBlockName("disabled-bg-color")]=e.dark?Ei(a,90):a.tint(90).toString(),n[r.cssVarBlockName("disabled-text-color")]=e.dark?Ei(a,50):a.tint(50).toString(),n[r.cssVarBlockName("disabled-border-color")]=e.dark?Ei(a,80):a.tint(80).toString());else{const s=e.dark?Ei(a,30):a.tint(30).toString(),l=a.isDark()?`var(${r.cssVarName("color-white")})`:`var(${r.cssVarName("color-black")})`;if(n=r.cssVarBlock({"bg-color":i,"text-color":l,"border-color":i,"hover-bg-color":s,"hover-text-color":l,"hover-border-color":s,"active-bg-color":o,"active-border-color":o}),t.value){const u=e.dark?Ei(a,50):a.tint(50).toString();n[r.cssVarBlockName("disabled-bg-color")]=u,n[r.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${r.cssVarName("color-white")})`,n[r.cssVarBlockName("disabled-border-color")]=u}}}return n})}const xH=["aria-disabled","disabled","autofocus","type"],SH=ue({name:"ElButton"}),CH=ue({...SH,props:Vp,emits:lH,setup(e,{expose:t,emit:r}){const n=e,i=wH(n),a=Ne("button"),{_ref:o,_size:s,_type:l,_disabled:u,shouldAddSpace:f,handleClick:c}=aH(n,r);return t({ref:o,size:s,type:l,disabled:u,shouldAddSpace:f}),(d,h)=>(X(),Se("button",{ref_key:"_ref",ref:o,class:de([L(a).b(),L(a).m(L(l)),L(a).m(L(s)),L(a).is("disabled",L(u)),L(a).is("loading",d.loading),L(a).is("plain",d.plain),L(a).is("round",d.round),L(a).is("circle",d.circle),L(a).is("text",d.text),L(a).is("link",d.link),L(a).is("has-bg",d.bg)]),"aria-disabled":L(u)||d.loading,disabled:L(u)||d.loading,autofocus:d.autofocus,type:d.nativeType,style:At(L(i)),onClick:h[0]||(h[0]=(...v)=>L(c)&&L(c)(...v))},[d.loading?(X(),Se(wt,{key:0},[d.$slots.loading?Be(d.$slots,"loading",{key:0}):(X(),Ie(L(Cn),{key:1,class:de(L(a).is("loading"))},{default:ee(()=>[(X(),Ie(hi(d.loadingIcon)))]),_:1},8,["class"]))],64)):d.icon||d.$slots.icon?(X(),Ie(L(Cn),{key:1},{default:ee(()=>[d.icon?(X(),Ie(hi(d.icon),{key:0})):Be(d.$slots,"icon",{key:1})]),_:3})):ct("v-if",!0),d.$slots.default?(X(),Se("span",{key:2,class:de({[L(a).em("text","expand")]:L(f)})},[Be(d.$slots,"default")],2)):ct("v-if",!0)],14,xH))}});var TH=Qe(CH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const MH={size:Vp.size,type:Vp.type},AH=ue({name:"ElButtonGroup"}),EH=ue({...AH,props:MH,setup(e){const t=e;Ct(DT,ln({size:wn(t,"size"),type:wn(t,"type")}));const r=Ne("button");return(n,i)=>(X(),Se("div",{class:de(`${L(r).b("group")}`)},[Be(n.$slots,"default")],2))}});var fM=Qe(EH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const PH=Er(TH,{ButtonGroup:fM});ia(fM);var LH=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};const Ni=new Map;let Rb;Rt&&(document.addEventListener("mousedown",e=>Rb=e),document.addEventListener("mouseup",e=>{for(const t of Ni.values())for(const{documentHandler:r}of t)r(e,Rb)}));function Ob(e,t){let r=[];return Array.isArray(t.arg)?r=t.arg:hs(t.arg)&&r.push(t.arg),function(n,i){const a=t.instance.popperRef,o=n.target,s=i==null?void 0:i.target,l=!t||!t.instance,u=!o||!s,f=e.contains(o)||e.contains(s),c=e===o,d=r.length&&r.some(v=>v==null?void 0:v.contains(o))||r.length&&r.includes(s),h=a&&(a.contains(o)||a.contains(s));l||u||f||c||d||h||t.value(n,i)}}const DH={beforeMount(e,t){Ni.has(e)||Ni.set(e,[]),Ni.get(e).push({documentHandler:Ob(e,t),bindingFn:t.value})},updated(e,t){Ni.has(e)||Ni.set(e,[]);const r=Ni.get(e),n=r.findIndex(a=>a.bindingFn===t.oldValue),i={documentHandler:Ob(e,t),bindingFn:t.value};n>=0?r.splice(n,1,i):r.push(i)},unmounted(e){Ni.delete(e)}};var kb=!1,Va,Up,Yp,dc,hc,cM,vc,qp,jp,Kp,dM,Xp,Zp,hM,vM;function cr(){if(!kb){kb=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),r=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(Xp=/\b(iPhone|iP[ao]d)/.exec(e),Zp=/\b(iP[ao]d)/.exec(e),Kp=/Android/i.exec(e),hM=/FBAN\/\w+;/i.exec(e),vM=/Mobile/i.exec(e),dM=!!/Win64/.exec(e),t){Va=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,Va&&document&&document.documentMode&&(Va=document.documentMode);var n=/(?:Trident\/(\d+.\d+))/.exec(e);cM=n?parseFloat(n[1])+4:Va,Up=t[2]?parseFloat(t[2]):NaN,Yp=t[3]?parseFloat(t[3]):NaN,dc=t[4]?parseFloat(t[4]):NaN,dc?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),hc=t&&t[1]?parseFloat(t[1]):NaN):hc=NaN}else Va=Up=Yp=hc=dc=NaN;if(r){if(r[1]){var i=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);vc=i?parseFloat(i[1].replace("_",".")):!0}else vc=!1;qp=!!r[2],jp=!!r[3]}else vc=qp=jp=!1}}var Qp={ie:function(){return cr()||Va},ieCompatibilityMode:function(){return cr()||cM>Va},ie64:function(){return Qp.ie()&&dM},firefox:function(){return cr()||Up},opera:function(){return cr()||Yp},webkit:function(){return cr()||dc},safari:function(){return Qp.webkit()},chrome:function(){return cr()||hc},windows:function(){return cr()||qp},osx:function(){return cr()||vc},linux:function(){return cr()||jp},iphone:function(){return cr()||Xp},mobile:function(){return cr()||Xp||Zp||Kp||vM},nativeApp:function(){return cr()||hM},android:function(){return cr()||Kp},ipad:function(){return cr()||Zp}},IH=Qp,cf=!!(typeof window<"u"&&window.document&&window.document.createElement),RH={canUseDOM:cf,canUseWorkers:typeof Worker<"u",canUseEventListeners:cf&&!!(window.addEventListener||window.attachEvent),canUseViewport:cf&&!!window.screen,isInWorker:!cf},pM=RH,gM;pM.canUseDOM&&(gM=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function OH(e,t){if(!pM.canUseDOM||t&&!("addEventListener"in document))return!1;var r="on"+e,n=r in document;if(!n){var i=document.createElement("div");i.setAttribute(r,"return;"),n=typeof i[r]=="function"}return!n&&gM&&e==="wheel"&&(n=document.implementation.hasFeature("Events.wheel","3.0")),n}var kH=OH,Nb=10,Bb=40,Fb=800;function mM(e){var t=0,r=0,n=0,i=0;return"detail"in e&&(r=e.detail),"wheelDelta"in e&&(r=-e.wheelDelta/120),"wheelDeltaY"in e&&(r=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=r,r=0),n=t*Nb,i=r*Nb,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(n=e.deltaX),(n||i)&&e.deltaMode&&(e.deltaMode==1?(n*=Bb,i*=Bb):(n*=Fb,i*=Fb)),n&&!t&&(t=n<1?-1:1),i&&!r&&(r=i<1?-1:1),{spinX:t,spinY:r,pixelX:n,pixelY:i}}mM.getEventType=function(){return IH.firefox()?"DOMMouseScroll":kH("wheel")?"wheel":"mousewheel"};var NH=mM;/**
+var ML=Object.defineProperty;var AL=(e,t,r)=>t in e?ML(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var EL=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Ft=(e,t,r)=>(AL(e,typeof t!="symbol"?t+"":t,r),r);var Ree=EL((Or,kr)=>{(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerpolicy&&(a.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?a.credentials="include":i.crossorigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=r(i);fetch(i.href,a)}})();function mm(e,t){const r=Object.create(null),n=e.split(",");for(let i=0;i<n.length;i++)r[n[i]]=!0;return t?i=>!!r[i.toLowerCase()]:i=>!!r[i]}function At(e){if(ye(e)){const t={};for(let r=0;r<e.length;r++){const n=e[r],i=Ue(n)?IL(n):At(n);if(i)for(const a in i)t[a]=i[a]}return t}else{if(Ue(e))return e;if(Ke(e))return e}}const PL=/;(?![^(]*\))/g,LL=/:([^]+)/,DL=/\/\*.*?\*\//gs;function IL(e){const t={};return e.replace(DL,"").split(PL).forEach(r=>{if(r){const n=r.split(LL);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function de(e){let t="";if(Ue(e))t=e;else if(ye(e))for(let r=0;r<e.length;r++){const n=de(e[r]);n&&(t+=n+" ")}else if(Ke(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}const RL="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",OL=mm(RL);function YS(e){return!!e||e===""}function kL(e,t){if(e.length!==t.length)return!1;let r=!0;for(let n=0;r&&n<e.length;n++)r=md(e[n],t[n]);return r}function md(e,t){if(e===t)return!0;let r=N0(e),n=N0(t);if(r||n)return r&&n?e.getTime()===t.getTime():!1;if(r=Zl(e),n=Zl(t),r||n)return e===t;if(r=ye(e),n=ye(t),r||n)return r&&n?kL(e,t):!1;if(r=Ke(e),n=Ke(t),r||n){if(!r||!n)return!1;const i=Object.keys(e).length,a=Object.keys(t).length;if(i!==a)return!1;for(const o in e){const s=e.hasOwnProperty(o),l=t.hasOwnProperty(o);if(s&&!l||!s&&l||!md(e[o],t[o]))return!1}}return String(e)===String(t)}function qS(e,t){return e.findIndex(r=>md(r,t))}const Ae=e=>Ue(e)?e:e==null?"":ye(e)||Ke(e)&&(e.toString===XS||!Le(e.toString))?JSON.stringify(e,jS,2):String(e),jS=(e,t)=>t&&t.__v_isRef?jS(e,t.value):Qo(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,i])=>(r[`${n} =>`]=i,r),{})}:_d(t)?{[`Set(${t.size})`]:[...t.values()]}:Ke(t)&&!ye(t)&&!ZS(t)?String(t):t,mt={},Zo=[],sr=()=>{},NL=()=>!1,BL=/^on[^a-z]/,yd=e=>BL.test(e),ym=e=>e.startsWith("onUpdate:"),Kt=Object.assign,_m=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},FL=Object.prototype.hasOwnProperty,ze=(e,t)=>FL.call(e,t),ye=Array.isArray,Qo=e=>Du(e)==="[object Map]",_d=e=>Du(e)==="[object Set]",N0=e=>Du(e)==="[object Date]",Le=e=>typeof e=="function",Ue=e=>typeof e=="string",Zl=e=>typeof e=="symbol",Ke=e=>e!==null&&typeof e=="object",KS=e=>Ke(e)&&Le(e.then)&&Le(e.catch),XS=Object.prototype.toString,Du=e=>XS.call(e),$L=e=>Du(e).slice(8,-1),ZS=e=>Du(e)==="[object Object]",bm=e=>Ue(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ic=mm(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),bd=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},HL=/-(\w)/g,Sn=bd(e=>e.replace(HL,(t,r)=>r?r.toUpperCase():"")),zL=/\B([A-Z])/g,Ps=bd(e=>e.replace(zL,"-$1").toLowerCase()),wd=bd(e=>e.charAt(0).toUpperCase()+e.slice(1)),ac=bd(e=>e?`on${wd(e)}`:""),Ql=(e,t)=>!Object.is(e,t),oc=(e,t)=>{for(let r=0;r<e.length;r++)e[r](t)},Rc=(e,t,r)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r})},wm=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let B0;const WL=()=>B0||(B0=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let Dr;class VL{constructor(t=!1){this.detached=t,this.active=!0,this.effects=[],this.cleanups=[],this.parent=Dr,!t&&Dr&&(this.index=(Dr.scopes||(Dr.scopes=[])).push(this)-1)}run(t){if(this.active){const r=Dr;try{return Dr=this,t()}finally{Dr=r}}}on(){Dr=this}off(){Dr=this.parent}stop(t){if(this.active){let r,n;for(r=0,n=this.effects.length;r<n;r++)this.effects[r].stop();for(r=0,n=this.cleanups.length;r<n;r++)this.cleanups[r]();if(this.scopes)for(r=0,n=this.scopes.length;r<n;r++)this.scopes[r].stop(!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,this.active=!1}}}function GL(e,t=Dr){t&&t.active&&t.effects.push(e)}function UL(){return Dr}function YL(e){Dr&&Dr.cleanups.push(e)}const xm=e=>{const t=new Set(e);return t.w=0,t.n=0,t},QS=e=>(e.w&Qi)>0,JS=e=>(e.n&Qi)>0,qL=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Qi},jL=e=>{const{deps:t}=e;if(t.length){let r=0;for(let n=0;n<t.length;n++){const i=t[n];QS(i)&&!JS(i)?i.delete(e):t[r++]=i,i.w&=~Qi,i.n&=~Qi}t.length=r}},vp=new WeakMap;let pl=0,Qi=1;const pp=30;let mn;const Ja=Symbol(""),gp=Symbol("");class Sm{constructor(t,r=null,n){this.fn=t,this.scheduler=r,this.active=!0,this.deps=[],this.parent=void 0,GL(this,n)}run(){if(!this.active)return this.fn();let t=mn,r=ji;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=mn,mn=this,ji=!0,Qi=1<<++pl,pl<=pp?qL(this):F0(this),this.fn()}finally{pl<=pp&&jL(this),Qi=1<<--pl,mn=this.parent,ji=r,this.parent=void 0,this.deferStop&&this.stop()}}stop(){mn===this?this.deferStop=!0:this.active&&(F0(this),this.onStop&&this.onStop(),this.active=!1)}}function F0(e){const{deps:t}=e;if(t.length){for(let r=0;r<t.length;r++)t[r].delete(e);t.length=0}}let ji=!0;const eC=[];function Ls(){eC.push(ji),ji=!1}function Ds(){const e=eC.pop();ji=e===void 0?!0:e}function Fr(e,t,r){if(ji&&mn){let n=vp.get(e);n||vp.set(e,n=new Map);let i=n.get(r);i||n.set(r,i=xm()),tC(i)}}function tC(e,t){let r=!1;pl<=pp?JS(e)||(e.n|=Qi,r=!QS(e)):r=!e.has(mn),r&&(e.add(mn),mn.deps.push(e))}function di(e,t,r,n,i,a){const o=vp.get(e);if(!o)return;let s=[];if(t==="clear")s=[...o.values()];else if(r==="length"&&ye(e)){const l=wm(n);o.forEach((u,f)=>{(f==="length"||f>=l)&&s.push(u)})}else switch(r!==void 0&&s.push(o.get(r)),t){case"add":ye(e)?bm(r)&&s.push(o.get("length")):(s.push(o.get(Ja)),Qo(e)&&s.push(o.get(gp)));break;case"delete":ye(e)||(s.push(o.get(Ja)),Qo(e)&&s.push(o.get(gp)));break;case"set":Qo(e)&&s.push(o.get(Ja));break}if(s.length===1)s[0]&&mp(s[0]);else{const l=[];for(const u of s)u&&l.push(...u);mp(xm(l))}}function mp(e,t){const r=ye(e)?e:[...e];for(const n of r)n.computed&&$0(n);for(const n of r)n.computed||$0(n)}function $0(e,t){(e!==mn||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const KL=mm("__proto__,__v_isRef,__isVue"),rC=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Zl)),XL=Cm(),ZL=Cm(!1,!0),QL=Cm(!0),H0=JL();function JL(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...r){const n=Qe(this);for(let a=0,o=this.length;a<o;a++)Fr(n,"get",a+"");const i=n[t](...r);return i===-1||i===!1?n[t](...r.map(Qe)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...r){Ls();const n=Qe(this)[t].apply(this,r);return Ds(),n}}),e}function Cm(e=!1,t=!1){return function(n,i,a){if(i==="__v_isReactive")return!e;if(i==="__v_isReadonly")return e;if(i==="__v_isShallow")return t;if(i==="__v_raw"&&a===(e?t?pD:sC:t?oC:aC).get(n))return n;const o=ye(n);if(!e&&o&&ze(H0,i))return Reflect.get(H0,i,a);const s=Reflect.get(n,i,a);return(Zl(i)?rC.has(i):KL(i))||(e||Fr(n,"get",i),t)?s:St(s)?o&&bm(i)?s:s.value:Ke(s)?e?Sd(s):ln(s):s}}const eD=nC(),tD=nC(!0);function nC(e=!1){return function(r,n,i,a){let o=r[n];if(us(o)&&St(o)&&!St(i))return!1;if(!e&&(!Oc(i)&&!us(i)&&(o=Qe(o),i=Qe(i)),!ye(r)&&St(o)&&!St(i)))return o.value=i,!0;const s=ye(r)&&bm(n)?Number(n)<r.length:ze(r,n),l=Reflect.set(r,n,i,a);return r===Qe(a)&&(s?Ql(i,o)&&di(r,"set",n,i):di(r,"add",n,i)),l}}function rD(e,t){const r=ze(e,t);e[t];const n=Reflect.deleteProperty(e,t);return n&&r&&di(e,"delete",t,void 0),n}function nD(e,t){const r=Reflect.has(e,t);return(!Zl(t)||!rC.has(t))&&Fr(e,"has",t),r}function iD(e){return Fr(e,"iterate",ye(e)?"length":Ja),Reflect.ownKeys(e)}const iC={get:XL,set:eD,deleteProperty:rD,has:nD,ownKeys:iD},aD={get:QL,set(e,t){return!0},deleteProperty(e,t){return!0}},oD=Kt({},iC,{get:ZL,set:tD}),Tm=e=>e,xd=e=>Reflect.getPrototypeOf(e);function Zu(e,t,r=!1,n=!1){e=e.__v_raw;const i=Qe(e),a=Qe(t);r||(t!==a&&Fr(i,"get",t),Fr(i,"get",a));const{has:o}=xd(i),s=n?Tm:r?Em:Jl;if(o.call(i,t))return s(e.get(t));if(o.call(i,a))return s(e.get(a));e!==i&&e.get(t)}function Qu(e,t=!1){const r=this.__v_raw,n=Qe(r),i=Qe(e);return t||(e!==i&&Fr(n,"has",e),Fr(n,"has",i)),e===i?r.has(e):r.has(e)||r.has(i)}function Ju(e,t=!1){return e=e.__v_raw,!t&&Fr(Qe(e),"iterate",Ja),Reflect.get(e,"size",e)}function z0(e){e=Qe(e);const t=Qe(this);return xd(t).has.call(t,e)||(t.add(e),di(t,"add",e,e)),this}function W0(e,t){t=Qe(t);const r=Qe(this),{has:n,get:i}=xd(r);let a=n.call(r,e);a||(e=Qe(e),a=n.call(r,e));const o=i.call(r,e);return r.set(e,t),a?Ql(t,o)&&di(r,"set",e,t):di(r,"add",e,t),this}function V0(e){const t=Qe(this),{has:r,get:n}=xd(t);let i=r.call(t,e);i||(e=Qe(e),i=r.call(t,e)),n&&n.call(t,e);const a=t.delete(e);return i&&di(t,"delete",e,void 0),a}function G0(){const e=Qe(this),t=e.size!==0,r=e.clear();return t&&di(e,"clear",void 0,void 0),r}function ef(e,t){return function(n,i){const a=this,o=a.__v_raw,s=Qe(o),l=t?Tm:e?Em:Jl;return!e&&Fr(s,"iterate",Ja),o.forEach((u,f)=>n.call(i,l(u),l(f),a))}}function tf(e,t,r){return function(...n){const i=this.__v_raw,a=Qe(i),o=Qo(a),s=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=i[e](...n),f=r?Tm:t?Em:Jl;return!t&&Fr(a,"iterate",l?gp:Ja),{next(){const{value:c,done:d}=u.next();return d?{value:c,done:d}:{value:s?[f(c[0]),f(c[1])]:f(c),done:d}},[Symbol.iterator](){return this}}}}function Mi(e){return function(...t){return e==="delete"?!1:this}}function sD(){const e={get(a){return Zu(this,a)},get size(){return Ju(this)},has:Qu,add:z0,set:W0,delete:V0,clear:G0,forEach:ef(!1,!1)},t={get(a){return Zu(this,a,!1,!0)},get size(){return Ju(this)},has:Qu,add:z0,set:W0,delete:V0,clear:G0,forEach:ef(!1,!0)},r={get(a){return Zu(this,a,!0)},get size(){return Ju(this,!0)},has(a){return Qu.call(this,a,!0)},add:Mi("add"),set:Mi("set"),delete:Mi("delete"),clear:Mi("clear"),forEach:ef(!0,!1)},n={get(a){return Zu(this,a,!0,!0)},get size(){return Ju(this,!0)},has(a){return Qu.call(this,a,!0)},add:Mi("add"),set:Mi("set"),delete:Mi("delete"),clear:Mi("clear"),forEach:ef(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(a=>{e[a]=tf(a,!1,!1),r[a]=tf(a,!0,!1),t[a]=tf(a,!1,!0),n[a]=tf(a,!0,!0)}),[e,r,t,n]}const[lD,uD,fD,cD]=sD();function Mm(e,t){const r=t?e?cD:fD:e?uD:lD;return(n,i,a)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(ze(r,i)&&i in n?r:n,i,a)}const dD={get:Mm(!1,!1)},hD={get:Mm(!1,!0)},vD={get:Mm(!0,!1)},aC=new WeakMap,oC=new WeakMap,sC=new WeakMap,pD=new WeakMap;function gD(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function mD(e){return e.__v_skip||!Object.isExtensible(e)?0:gD($L(e))}function ln(e){return us(e)?e:Am(e,!1,iC,dD,aC)}function lC(e){return Am(e,!1,oD,hD,oC)}function Sd(e){return Am(e,!0,aD,vD,sC)}function Am(e,t,r,n,i){if(!Ke(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=i.get(e);if(a)return a;const o=mD(e);if(o===0)return e;const s=new Proxy(e,o===2?n:r);return i.set(e,s),s}function Jo(e){return us(e)?Jo(e.__v_raw):!!(e&&e.__v_isReactive)}function us(e){return!!(e&&e.__v_isReadonly)}function Oc(e){return!!(e&&e.__v_isShallow)}function uC(e){return Jo(e)||us(e)}function Qe(e){const t=e&&e.__v_raw;return t?Qe(t):e}function fC(e){return Rc(e,"__v_skip",!0),e}const Jl=e=>Ke(e)?ln(e):e,Em=e=>Ke(e)?Sd(e):e;function cC(e){ji&&mn&&(e=Qe(e),tC(e.dep||(e.dep=xm())))}function dC(e,t){e=Qe(e),e.dep&&mp(e.dep)}function St(e){return!!(e&&e.__v_isRef===!0)}function H(e){return hC(e,!1)}function yD(e){return hC(e,!0)}function hC(e,t){return St(e)?e:new _D(e,t)}class _D{constructor(t,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?t:Qe(t),this._value=r?t:Jl(t)}get value(){return cC(this),this._value}set value(t){const r=this.__v_isShallow||Oc(t)||us(t);t=r?t:Qe(t),Ql(t,this._rawValue)&&(this._rawValue=t,this._value=r?t:Jl(t),dC(this))}}function L(e){return St(e)?e.value:e}const bD={get:(e,t,r)=>L(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const i=e[t];return St(i)&&!St(r)?(i.value=r,!0):Reflect.set(e,t,r,n)}};function vC(e){return Jo(e)?e:new Proxy(e,bD)}function Cd(e){const t=ye(e)?new Array(e.length):{};for(const r in e)t[r]=wn(e,r);return t}class wD{constructor(t,r,n){this._object=t,this._key=r,this._defaultValue=n,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}}function wn(e,t,r){const n=e[t];return St(n)?n:new wD(e,t,r)}var pC;class xD{constructor(t,r,n,i){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this[pC]=!1,this._dirty=!0,this.effect=new Sm(t,()=>{this._dirty||(this._dirty=!0,dC(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=n}get value(){const t=Qe(this);return cC(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}pC="__v_isReadonly";function SD(e,t,r=!1){let n,i;const a=Le(e);return a?(n=e,i=sr):(n=e.get,i=e.set),new xD(n,i,a||!i,r)}function CD(e,...t){}function Ki(e,t,r,n){let i;try{i=n?e(...n):e()}catch(a){Td(a,t,r)}return i}function en(e,t,r,n){if(Le(e)){const a=Ki(e,t,r,n);return a&&KS(a)&&a.catch(o=>{Td(o,t,r)}),a}const i=[];for(let a=0;a<e.length;a++)i.push(en(e[a],t,r,n));return i}function Td(e,t,r,n=!0){const i=t?t.vnode:null;if(t){let a=t.parent;const o=t.proxy,s=r;for(;a;){const u=a.ec;if(u){for(let f=0;f<u.length;f++)if(u[f](e,o,s)===!1)return}a=a.parent}const l=t.appContext.config.errorHandler;if(l){Ki(l,null,10,[e,o,s]);return}}TD(e,r,i,n)}function TD(e,t,r,n=!0){console.error(e)}let eu=!1,yp=!1;const er=[];let Nn=0;const es=[];let oi=null,Ha=0;const gC=Promise.resolve();let Pm=null;function zt(e){const t=Pm||gC;return e?t.then(this?e.bind(this):e):t}function MD(e){let t=Nn+1,r=er.length;for(;t<r;){const n=t+r>>>1;tu(er[n])<e?t=n+1:r=n}return t}function Lm(e){(!er.length||!er.includes(e,eu&&e.allowRecurse?Nn+1:Nn))&&(e.id==null?er.push(e):er.splice(MD(e.id),0,e),mC())}function mC(){!eu&&!yp&&(yp=!0,Pm=gC.then(_C))}function AD(e){const t=er.indexOf(e);t>Nn&&er.splice(t,1)}function ED(e){ye(e)?es.push(...e):(!oi||!oi.includes(e,e.allowRecurse?Ha+1:Ha))&&es.push(e),mC()}function U0(e,t=eu?Nn+1:0){for(;t<er.length;t++){const r=er[t];r&&r.pre&&(er.splice(t,1),t--,r())}}function yC(e){if(es.length){const t=[...new Set(es)];if(es.length=0,oi){oi.push(...t);return}for(oi=t,oi.sort((r,n)=>tu(r)-tu(n)),Ha=0;Ha<oi.length;Ha++)oi[Ha]();oi=null,Ha=0}}const tu=e=>e.id==null?1/0:e.id,PD=(e,t)=>{const r=tu(e)-tu(t);if(r===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return r};function _C(e){yp=!1,eu=!0,er.sort(PD);const t=sr;try{for(Nn=0;Nn<er.length;Nn++){const r=er[Nn];r&&r.active!==!1&&Ki(r,null,14)}}finally{Nn=0,er.length=0,yC(),eu=!1,Pm=null,(er.length||es.length)&&_C()}}function LD(e,t,...r){if(e.isUnmounted)return;const n=e.vnode.props||mt;let i=r;const a=t.startsWith("update:"),o=a&&t.slice(7);if(o&&o in n){const f=`${o==="modelValue"?"model":o}Modifiers`,{number:c,trim:d}=n[f]||mt;d&&(i=r.map(h=>Ue(h)?h.trim():h)),c&&(i=r.map(wm))}let s,l=n[s=ac(t)]||n[s=ac(Sn(t))];!l&&a&&(l=n[s=ac(Ps(t))]),l&&en(l,e,6,i);const u=n[s+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,en(u,e,6,i)}}function bC(e,t,r=!1){const n=t.emitsCache,i=n.get(e);if(i!==void 0)return i;const a=e.emits;let o={},s=!1;if(!Le(e)){const l=u=>{const f=bC(u,t,!0);f&&(s=!0,Kt(o,f))};!r&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!a&&!s?(Ke(e)&&n.set(e,null),null):(ye(a)?a.forEach(l=>o[l]=null):Kt(o,a),Ke(e)&&n.set(e,o),o)}function Md(e,t){return!e||!yd(t)?!1:(t=t.slice(2).replace(/Once$/,""),ze(e,t[0].toLowerCase()+t.slice(1))||ze(e,Ps(t))||ze(e,t))}let Yt=null,wC=null;function kc(e){const t=Yt;return Yt=e,wC=e&&e.type.__scopeId||null,t}function Z(e,t=Yt,r){if(!t||e._n)return e;const n=(...i)=>{n._d&&n_(-1);const a=kc(t);let o;try{o=e(...i)}finally{kc(a),n._d&&n_(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function xh(e){const{type:t,vnode:r,proxy:n,withProxy:i,props:a,propsOptions:[o],slots:s,attrs:l,emit:u,render:f,renderCache:c,data:d,setupState:h,ctx:v,inheritAttrs:p}=e;let g,m;const y=kc(e);try{if(r.shapeFlag&4){const b=i||n;g=kn(f.call(b,b,c,a,h,d,v)),m=l}else{const b=t;g=kn(b.length>1?b(a,{attrs:l,slots:s,emit:u}):b(a,null)),m=t.props?l:DD(l)}}catch(b){Al.length=0,Td(b,e,1),g=ee(br)}let _=g;if(m&&p!==!1){const b=Object.keys(m),{shapeFlag:x}=_;b.length&&x&7&&(o&&b.some(ym)&&(m=ID(m,o)),_=vi(_,m))}return r.dirs&&(_=vi(_),_.dirs=_.dirs?_.dirs.concat(r.dirs):r.dirs),r.transition&&(_.transition=r.transition),g=_,kc(y),g}const DD=e=>{let t;for(const r in e)(r==="class"||r==="style"||yd(r))&&((t||(t={}))[r]=e[r]);return t},ID=(e,t)=>{const r={};for(const n in e)(!ym(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r};function RD(e,t,r){const{props:n,children:i,component:a}=e,{props:o,children:s,patchFlag:l}=t,u=a.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&l>=0){if(l&1024)return!0;if(l&16)return n?Y0(n,o,u):!!o;if(l&8){const f=t.dynamicProps;for(let c=0;c<f.length;c++){const d=f[c];if(o[d]!==n[d]&&!Md(u,d))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:n===o?!1:n?o?Y0(n,o,u):!0:!!o;return!1}function Y0(e,t,r){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let i=0;i<n.length;i++){const a=n[i];if(t[a]!==e[a]&&!Md(r,a))return!0}return!1}function OD({vnode:e,parent:t},r){for(;t&&t.subTree===e;)(e=t.vnode).el=r,t=t.parent}const kD=e=>e.__isSuspense;function ND(e,t){t&&t.pendingBranch?ye(e)?t.effects.push(...e):t.effects.push(e):ED(e)}function Ct(e,t){if(Ht){let r=Ht.provides;const n=Ht.parent&&Ht.parent.provides;n===r&&(r=Ht.provides=Object.create(n)),r[e]=t}}function Re(e,t,r=!1){const n=Ht||Yt;if(n){const i=n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides;if(i&&e in i)return i[e];if(arguments.length>1)return r&&Le(t)?t.call(n.proxy):t}}function ts(e,t){return Dm(e,null,t)}const rf={};function Ee(e,t,r){return Dm(e,t,r)}function Dm(e,t,{immediate:r,deep:n,flush:i,onTrack:a,onTrigger:o}=mt){const s=Ht;let l,u=!1,f=!1;if(St(e)?(l=()=>e.value,u=Oc(e)):Jo(e)?(l=()=>e,n=!0):ye(e)?(f=!0,u=e.some(_=>Jo(_)||Oc(_)),l=()=>e.map(_=>{if(St(_))return _.value;if(Jo(_))return Ya(_);if(Le(_))return Ki(_,s,2)})):Le(e)?t?l=()=>Ki(e,s,2):l=()=>{if(!(s&&s.isUnmounted))return c&&c(),en(e,s,3,[d])}:l=sr,t&&n){const _=l;l=()=>Ya(_())}let c,d=_=>{c=m.onStop=()=>{Ki(_,s,4)}},h;if(nu)if(d=sr,t?r&&en(t,s,3,[l(),f?[]:void 0,d]):l(),i==="sync"){const _=EI();h=_.__watcherHandles||(_.__watcherHandles=[])}else return sr;let v=f?new Array(e.length).fill(rf):rf;const p=()=>{if(m.active)if(t){const _=m.run();(n||u||(f?_.some((b,x)=>Ql(b,v[x])):Ql(_,v)))&&(c&&c(),en(t,s,3,[_,v===rf?void 0:f&&v[0]===rf?[]:v,d]),v=_)}else m.run()};p.allowRecurse=!!t;let g;i==="sync"?g=p:i==="post"?g=()=>pr(p,s&&s.suspense):(p.pre=!0,s&&(p.id=s.uid),g=()=>Lm(p));const m=new Sm(l,g);t?r?p():v=m.run():i==="post"?pr(m.run.bind(m),s&&s.suspense):m.run();const y=()=>{m.stop(),s&&s.scope&&_m(s.scope.effects,m)};return h&&h.push(y),y}function BD(e,t,r){const n=this.proxy,i=Ue(e)?e.includes(".")?xC(n,e):()=>n[e]:e.bind(n,n);let a;Le(t)?a=t:(a=t.handler,r=t);const o=Ht;fs(this);const s=Dm(i,a.bind(n),r);return o?fs(o):eo(),s}function xC(e,t){const r=t.split(".");return()=>{let n=e;for(let i=0;i<r.length&&n;i++)n=n[r[i]];return n}}function Ya(e,t){if(!Ke(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),St(e))Ya(e.value,t);else if(ye(e))for(let r=0;r<e.length;r++)Ya(e[r],t);else if(_d(e)||Qo(e))e.forEach(r=>{Ya(r,t)});else if(ZS(e))for(const r in e)Ya(e[r],t);return e}function FD(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Et(()=>{e.isMounted=!0}),rr(()=>{e.isUnmounting=!0}),e}const zr=[Function,Array],$D={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:zr,onEnter:zr,onAfterEnter:zr,onEnterCancelled:zr,onBeforeLeave:zr,onLeave:zr,onAfterLeave:zr,onLeaveCancelled:zr,onBeforeAppear:zr,onAppear:zr,onAfterAppear:zr,onAppearCancelled:zr},setup(e,{slots:t}){const r=dt(),n=FD();let i;return()=>{const a=t.default&&TC(t.default(),!0);if(!a||!a.length)return;let o=a[0];if(a.length>1){for(const p of a)if(p.type!==br){o=p;break}}const s=Qe(e),{mode:l}=s;if(n.isLeaving)return Sh(o);const u=q0(o);if(!u)return Sh(o);const f=_p(u,s,n,r);bp(u,f);const c=r.subTree,d=c&&q0(c);let h=!1;const{getTransitionKey:v}=u.type;if(v){const p=v();i===void 0?i=p:p!==i&&(i=p,h=!0)}if(d&&d.type!==br&&(!za(u,d)||h)){const p=_p(d,s,n,r);if(bp(d,p),l==="out-in")return n.isLeaving=!0,p.afterLeave=()=>{n.isLeaving=!1,r.update.active!==!1&&r.update()},Sh(o);l==="in-out"&&u.type!==br&&(p.delayLeave=(g,m,y)=>{const _=CC(n,d);_[String(d.key)]=d,g._leaveCb=()=>{m(),g._leaveCb=void 0,delete f.delayedLeave},f.delayedLeave=y})}return o}}},SC=$D;function CC(e,t){const{leavingVNodes:r}=e;let n=r.get(t.type);return n||(n=Object.create(null),r.set(t.type,n)),n}function _p(e,t,r,n){const{appear:i,mode:a,persisted:o=!1,onBeforeEnter:s,onEnter:l,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:c,onLeave:d,onAfterLeave:h,onLeaveCancelled:v,onBeforeAppear:p,onAppear:g,onAfterAppear:m,onAppearCancelled:y}=t,_=String(e.key),b=CC(r,e),x=(C,T)=>{C&&en(C,n,9,T)},w=(C,T)=>{const E=T[1];x(C,T),ye(C)?C.every(A=>A.length<=1)&&E():C.length<=1&&E()},S={mode:a,persisted:o,beforeEnter(C){let T=s;if(!r.isMounted)if(i)T=p||s;else return;C._leaveCb&&C._leaveCb(!0);const E=b[_];E&&za(e,E)&&E.el._leaveCb&&E.el._leaveCb(),x(T,[C])},enter(C){let T=l,E=u,A=f;if(!r.isMounted)if(i)T=g||l,E=m||u,A=y||f;else return;let M=!1;const D=C._enterCb=O=>{M||(M=!0,O?x(A,[C]):x(E,[C]),S.delayedLeave&&S.delayedLeave(),C._enterCb=void 0)};T?w(T,[C,D]):D()},leave(C,T){const E=String(e.key);if(C._enterCb&&C._enterCb(!0),r.isUnmounting)return T();x(c,[C]);let A=!1;const M=C._leaveCb=D=>{A||(A=!0,T(),D?x(v,[C]):x(h,[C]),C._leaveCb=void 0,b[E]===e&&delete b[E])};b[E]=e,d?w(d,[C,M]):M()},clone(C){return _p(C,t,r,n)}};return S}function Sh(e){if(Ad(e))return e=vi(e),e.children=null,e}function q0(e){return Ad(e)?e.children?e.children[0]:void 0:e}function bp(e,t){e.shapeFlag&6&&e.component?bp(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 TC(e,t=!1,r){let n=[],i=0;for(let a=0;a<e.length;a++){let o=e[a];const s=r==null?o.key:String(r)+String(o.key!=null?o.key:a);o.type===yt?(o.patchFlag&128&&i++,n=n.concat(TC(o.children,t,s))):(t||o.type!==br)&&n.push(s!=null?vi(o,{key:s}):o)}if(i>1)for(let a=0;a<n.length;a++)n[a].patchFlag=-2;return n}function ue(e){return Le(e)?{setup:e,name:e.name}:e}const Cl=e=>!!e.type.__asyncLoader,Ad=e=>e.type.__isKeepAlive;function HD(e,t){AC(e,"a",t)}function MC(e,t){AC(e,"da",t)}function AC(e,t,r=Ht){const n=e.__wdc||(e.__wdc=()=>{let i=r;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Ed(t,n,r),r){let i=r.parent;for(;i&&i.parent;)Ad(i.parent.vnode)&&zD(n,t,r,i),i=i.parent}}function zD(e,t,r,n){const i=Ed(t,e,n,!0);Iu(()=>{_m(n[t],i)},r)}function Ed(e,t,r=Ht,n=!1){if(r){const i=r[e]||(r[e]=[]),a=t.__weh||(t.__weh=(...o)=>{if(r.isUnmounted)return;Ls(),fs(r);const s=en(t,r,e,o);return eo(),Ds(),s});return n?i.unshift(a):i.push(a),a}}const wi=e=>(t,r=Ht)=>(!nu||e==="sp")&&Ed(e,(...n)=>t(...n),r),Pd=wi("bm"),Et=wi("m"),WD=wi("bu"),Ld=wi("u"),rr=wi("bum"),Iu=wi("um"),VD=wi("sp"),GD=wi("rtg"),UD=wi("rtc");function YD(e,t=Ht){Ed("ec",e,t)}function qt(e,t){const r=Yt;if(r===null)return e;const n=Id(r)||r.proxy,i=e.dirs||(e.dirs=[]);for(let a=0;a<t.length;a++){let[o,s,l,u=mt]=t[a];o&&(Le(o)&&(o={mounted:o,updated:o}),o.deep&&Ya(s),i.push({dir:o,instance:n,value:s,oldValue:void 0,arg:l,modifiers:u}))}return e}function la(e,t,r,n){const i=e.dirs,a=t&&t.dirs;for(let o=0;o<i.length;o++){const s=i[o];a&&(s.oldValue=a[o].value);let l=s.dir[n];l&&(Ls(),en(l,r,8,[e.el,s,e,t]),Ds())}}const Im="components",qD="directives";function gr(e,t){return Om(Im,e,!0,t)||e}const EC=Symbol();function hi(e){return Ue(e)?Om(Im,e,!1)||e:e||EC}function Rm(e){return Om(qD,e)}function Om(e,t,r=!0,n=!1){const i=Yt||Ht;if(i){const a=i.type;if(e===Im){const s=CI(a,!1);if(s&&(s===t||s===Sn(t)||s===wd(Sn(t))))return a}const o=j0(i[e]||a[e],t)||j0(i.appContext[e],t);return!o&&n?a:o}}function j0(e,t){return e&&(e[t]||e[Sn(t)]||e[wd(Sn(t))])}function K0(e,t,r,n){let i;const a=r&&r[n];if(ye(e)||Ue(e)){i=new Array(e.length);for(let o=0,s=e.length;o<s;o++)i[o]=t(e[o],o,void 0,a&&a[o])}else if(typeof e=="number"){i=new Array(e);for(let o=0;o<e;o++)i[o]=t(o+1,o,void 0,a&&a[o])}else if(Ke(e))if(e[Symbol.iterator])i=Array.from(e,(o,s)=>t(o,s,void 0,a&&a[s]));else{const o=Object.keys(e);i=new Array(o.length);for(let s=0,l=o.length;s<l;s++){const u=o[s];i[s]=t(e[u],u,s,a&&a[s])}}else i=[];return r&&(r[n]=i),i}function Be(e,t,r={},n,i){if(Yt.isCE||Yt.parent&&Cl(Yt.parent)&&Yt.parent.isCE)return t!=="default"&&(r.name=t),ee("slot",r,n&&n());let a=e[t];a&&a._c&&(a._d=!1),K();const o=a&&PC(a(r)),s=xe(yt,{key:r.key||o&&o.key||`_${t}`},o||(n?n():[]),o&&e._===1?64:-2);return!i&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),a&&a._c&&(a._d=!0),s}function PC(e){return e.some(t=>Ji(t)?!(t.type===br||t.type===yt&&!PC(t.children)):!0)?e:null}function jD(e,t){const r={};for(const n in e)r[t&&/[A-Z]/.test(n)?`on:${n}`:ac(n)]=e[n];return r}const wp=e=>e?HC(e)?Id(e)||e.proxy:wp(e.parent):null,Tl=Kt(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=>wp(e.parent),$root:e=>wp(e.root),$emit:e=>e.emit,$options:e=>km(e),$forceUpdate:e=>e.f||(e.f=()=>Lm(e.update)),$nextTick:e=>e.n||(e.n=zt.bind(e.proxy)),$watch:e=>BD.bind(e)}),Ch=(e,t)=>e!==mt&&!e.__isScriptSetup&&ze(e,t),KD={get({_:e},t){const{ctx:r,setupState:n,data:i,props:a,accessCache:o,type:s,appContext:l}=e;let u;if(t[0]!=="$"){const h=o[t];if(h!==void 0)switch(h){case 1:return n[t];case 2:return i[t];case 4:return r[t];case 3:return a[t]}else{if(Ch(n,t))return o[t]=1,n[t];if(i!==mt&&ze(i,t))return o[t]=2,i[t];if((u=e.propsOptions[0])&&ze(u,t))return o[t]=3,a[t];if(r!==mt&&ze(r,t))return o[t]=4,r[t];xp&&(o[t]=0)}}const f=Tl[t];let c,d;if(f)return t==="$attrs"&&Fr(e,"get",t),f(e);if((c=s.__cssModules)&&(c=c[t]))return c;if(r!==mt&&ze(r,t))return o[t]=4,r[t];if(d=l.config.globalProperties,ze(d,t))return d[t]},set({_:e},t,r){const{data:n,setupState:i,ctx:a}=e;return Ch(i,t)?(i[t]=r,!0):n!==mt&&ze(n,t)?(n[t]=r,!0):ze(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(a[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:n,appContext:i,propsOptions:a}},o){let s;return!!r[o]||e!==mt&&ze(e,o)||Ch(t,o)||(s=a[0])&&ze(s,o)||ze(n,o)||ze(Tl,o)||ze(i.config.globalProperties,o)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:ze(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};let xp=!0;function XD(e){const t=km(e),r=e.proxy,n=e.ctx;xp=!1,t.beforeCreate&&X0(t.beforeCreate,e,"bc");const{data:i,computed:a,methods:o,watch:s,provide:l,inject:u,created:f,beforeMount:c,mounted:d,beforeUpdate:h,updated:v,activated:p,deactivated:g,beforeDestroy:m,beforeUnmount:y,destroyed:_,unmounted:b,render:x,renderTracked:w,renderTriggered:S,errorCaptured:C,serverPrefetch:T,expose:E,inheritAttrs:A,components:M,directives:D,filters:O}=t;if(u&&ZD(u,n,null,e.appContext.config.unwrapInjectedRef),o)for(const j in o){const B=o[j];Le(B)&&(n[j]=B.bind(r))}if(i){const j=i.call(r,r);Ke(j)&&(e.data=ln(j))}if(xp=!0,a)for(const j in a){const B=a[j],N=Le(B)?B.bind(r,r):Le(B.get)?B.get.bind(r,r):sr,U=!Le(B)&&Le(B.set)?B.set.bind(r):sr,re=$({get:N,set:U});Object.defineProperty(n,j,{enumerable:!0,configurable:!0,get:()=>re.value,set:ae=>re.value=ae})}if(s)for(const j in s)LC(s[j],n,r,j);if(l){const j=Le(l)?l.call(r):l;Reflect.ownKeys(j).forEach(B=>{Ct(B,j[B])})}f&&X0(f,e,"c");function F(j,B){ye(B)?B.forEach(N=>j(N.bind(r))):B&&j(B.bind(r))}if(F(Pd,c),F(Et,d),F(WD,h),F(Ld,v),F(HD,p),F(MC,g),F(YD,C),F(UD,w),F(GD,S),F(rr,y),F(Iu,b),F(VD,T),ye(E))if(E.length){const j=e.exposed||(e.exposed={});E.forEach(B=>{Object.defineProperty(j,B,{get:()=>r[B],set:N=>r[B]=N})})}else e.exposed||(e.exposed={});x&&e.render===sr&&(e.render=x),A!=null&&(e.inheritAttrs=A),M&&(e.components=M),D&&(e.directives=D)}function ZD(e,t,r=sr,n=!1){ye(e)&&(e=Sp(e));for(const i in e){const a=e[i];let o;Ke(a)?"default"in a?o=Re(a.from||i,a.default,!0):o=Re(a.from||i):o=Re(a),St(o)&&n?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>o.value,set:s=>o.value=s}):t[i]=o}}function X0(e,t,r){en(ye(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function LC(e,t,r,n){const i=n.includes(".")?xC(r,n):()=>r[n];if(Ue(e)){const a=t[e];Le(a)&&Ee(i,a)}else if(Le(e))Ee(i,e.bind(r));else if(Ke(e))if(ye(e))e.forEach(a=>LC(a,t,r,n));else{const a=Le(e.handler)?e.handler.bind(r):t[e.handler];Le(a)&&Ee(i,a,e)}}function km(e){const t=e.type,{mixins:r,extends:n}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t);let l;return s?l=s:!i.length&&!r&&!n?l=t:(l={},i.length&&i.forEach(u=>Nc(l,u,o,!0)),Nc(l,t,o)),Ke(t)&&a.set(t,l),l}function Nc(e,t,r,n=!1){const{mixins:i,extends:a}=t;a&&Nc(e,a,r,!0),i&&i.forEach(o=>Nc(e,o,r,!0));for(const o in t)if(!(n&&o==="expose")){const s=QD[o]||r&&r[o];e[o]=s?s(e[o],t[o]):t[o]}return e}const QD={data:Z0,props:Ba,emits:Ba,methods:Ba,computed:Ba,beforeCreate:nr,created:nr,beforeMount:nr,mounted:nr,beforeUpdate:nr,updated:nr,beforeDestroy:nr,beforeUnmount:nr,destroyed:nr,unmounted:nr,activated:nr,deactivated:nr,errorCaptured:nr,serverPrefetch:nr,components:Ba,directives:Ba,watch:eI,provide:Z0,inject:JD};function Z0(e,t){return t?e?function(){return Kt(Le(e)?e.call(this,this):e,Le(t)?t.call(this,this):t)}:t:e}function JD(e,t){return Ba(Sp(e),Sp(t))}function Sp(e){if(ye(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function nr(e,t){return e?[...new Set([].concat(e,t))]:t}function Ba(e,t){return e?Kt(Kt(Object.create(null),e),t):t}function eI(e,t){if(!e)return t;if(!t)return e;const r=Kt(Object.create(null),e);for(const n in t)r[n]=nr(e[n],t[n]);return r}function tI(e,t,r,n=!1){const i={},a={};Rc(a,Dd,1),e.propsDefaults=Object.create(null),DC(e,t,i,a);for(const o in e.propsOptions[0])o in i||(i[o]=void 0);r?e.props=n?i:lC(i):e.type.props?e.props=i:e.props=a,e.attrs=a}function rI(e,t,r,n){const{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=Qe(i),[l]=e.propsOptions;let u=!1;if((n||o>0)&&!(o&16)){if(o&8){const f=e.vnode.dynamicProps;for(let c=0;c<f.length;c++){let d=f[c];if(Md(e.emitsOptions,d))continue;const h=t[d];if(l)if(ze(a,d))h!==a[d]&&(a[d]=h,u=!0);else{const v=Sn(d);i[v]=Cp(l,s,v,h,e,!1)}else h!==a[d]&&(a[d]=h,u=!0)}}}else{DC(e,t,i,a)&&(u=!0);let f;for(const c in s)(!t||!ze(t,c)&&((f=Ps(c))===c||!ze(t,f)))&&(l?r&&(r[c]!==void 0||r[f]!==void 0)&&(i[c]=Cp(l,s,c,void 0,e,!0)):delete i[c]);if(a!==s)for(const c in a)(!t||!ze(t,c))&&(delete a[c],u=!0)}u&&di(e,"set","$attrs")}function DC(e,t,r,n){const[i,a]=e.propsOptions;let o=!1,s;if(t)for(let l in t){if(ic(l))continue;const u=t[l];let f;i&&ze(i,f=Sn(l))?!a||!a.includes(f)?r[f]=u:(s||(s={}))[f]=u:Md(e.emitsOptions,l)||(!(l in n)||u!==n[l])&&(n[l]=u,o=!0)}if(a){const l=Qe(r),u=s||mt;for(let f=0;f<a.length;f++){const c=a[f];r[c]=Cp(i,l,c,u[c],e,!ze(u,c))}}return o}function Cp(e,t,r,n,i,a){const o=e[r];if(o!=null){const s=ze(o,"default");if(s&&n===void 0){const l=o.default;if(o.type!==Function&&Le(l)){const{propsDefaults:u}=i;r in u?n=u[r]:(fs(i),n=u[r]=l.call(null,t),eo())}else n=l}o[0]&&(a&&!s?n=!1:o[1]&&(n===""||n===Ps(r))&&(n=!0))}return n}function IC(e,t,r=!1){const n=t.propsCache,i=n.get(e);if(i)return i;const a=e.props,o={},s=[];let l=!1;if(!Le(e)){const f=c=>{l=!0;const[d,h]=IC(c,t,!0);Kt(o,d),h&&s.push(...h)};!r&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!a&&!l)return Ke(e)&&n.set(e,Zo),Zo;if(ye(a))for(let f=0;f<a.length;f++){const c=Sn(a[f]);Q0(c)&&(o[c]=mt)}else if(a)for(const f in a){const c=Sn(f);if(Q0(c)){const d=a[f],h=o[c]=ye(d)||Le(d)?{type:d}:Object.assign({},d);if(h){const v=t_(Boolean,h.type),p=t_(String,h.type);h[0]=v>-1,h[1]=p<0||v<p,(v>-1||ze(h,"default"))&&s.push(c)}}}const u=[o,s];return Ke(e)&&n.set(e,u),u}function Q0(e){return e[0]!=="$"}function J0(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function e_(e,t){return J0(e)===J0(t)}function t_(e,t){return ye(t)?t.findIndex(r=>e_(r,e)):Le(t)&&e_(t,e)?0:-1}const RC=e=>e[0]==="_"||e==="$stable",Nm=e=>ye(e)?e.map(kn):[kn(e)],nI=(e,t,r)=>{if(t._n)return t;const n=Z((...i)=>Nm(t(...i)),r);return n._c=!1,n},OC=(e,t,r)=>{const n=e._ctx;for(const i in e){if(RC(i))continue;const a=e[i];if(Le(a))t[i]=nI(i,a,n);else if(a!=null){const o=Nm(a);t[i]=()=>o}}},kC=(e,t)=>{const r=Nm(t);e.slots.default=()=>r},iI=(e,t)=>{if(e.vnode.shapeFlag&32){const r=t._;r?(e.slots=Qe(t),Rc(t,"_",r)):OC(t,e.slots={})}else e.slots={},t&&kC(e,t);Rc(e.slots,Dd,1)},aI=(e,t,r)=>{const{vnode:n,slots:i}=e;let a=!0,o=mt;if(n.shapeFlag&32){const s=t._;s?r&&s===1?a=!1:(Kt(i,t),!r&&s===1&&delete i._):(a=!t.$stable,OC(t,i)),o=t}else t&&(kC(e,t),o={default:1});if(a)for(const s in i)!RC(s)&&!(s in o)&&delete i[s]};function NC(){return{app:null,config:{isNativeTag:NL,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 oI=0;function sI(e,t){return function(n,i=null){Le(n)||(n=Object.assign({},n)),i!=null&&!Ke(i)&&(i=null);const a=NC(),o=new Set;let s=!1;const l=a.app={_uid:oI++,_component:n,_props:i,_container:null,_context:a,_instance:null,version:PI,get config(){return a.config},set config(u){},use(u,...f){return o.has(u)||(u&&Le(u.install)?(o.add(u),u.install(l,...f)):Le(u)&&(o.add(u),u(l,...f))),l},mixin(u){return a.mixins.includes(u)||a.mixins.push(u),l},component(u,f){return f?(a.components[u]=f,l):a.components[u]},directive(u,f){return f?(a.directives[u]=f,l):a.directives[u]},mount(u,f,c){if(!s){const d=ee(n,i);return d.appContext=a,f&&t?t(d,u):e(d,u,c),s=!0,l._container=u,u.__vue_app__=l,Id(d.component)||d.component.proxy}},unmount(){s&&(e(null,l._container),delete l._container.__vue_app__)},provide(u,f){return a.provides[u]=f,l}};return l}}function Tp(e,t,r,n,i=!1){if(ye(e)){e.forEach((d,h)=>Tp(d,t&&(ye(t)?t[h]:t),r,n,i));return}if(Cl(n)&&!i)return;const a=n.shapeFlag&4?Id(n.component)||n.component.proxy:n.el,o=i?null:a,{i:s,r:l}=e,u=t&&t.r,f=s.refs===mt?s.refs={}:s.refs,c=s.setupState;if(u!=null&&u!==l&&(Ue(u)?(f[u]=null,ze(c,u)&&(c[u]=null)):St(u)&&(u.value=null)),Le(l))Ki(l,s,12,[o,f]);else{const d=Ue(l),h=St(l);if(d||h){const v=()=>{if(e.f){const p=d?ze(c,l)?c[l]:f[l]:l.value;i?ye(p)&&_m(p,a):ye(p)?p.includes(a)||p.push(a):d?(f[l]=[a],ze(c,l)&&(c[l]=f[l])):(l.value=[a],e.k&&(f[e.k]=l.value))}else d?(f[l]=o,ze(c,l)&&(c[l]=o)):h&&(l.value=o,e.k&&(f[e.k]=o))};o?(v.id=-1,pr(v,r)):v()}}}const pr=ND;function lI(e){return uI(e)}function uI(e,t){const r=WL();r.__VUE__=!0;const{insert:n,remove:i,patchProp:a,createElement:o,createText:s,createComment:l,setText:u,setElementText:f,parentNode:c,nextSibling:d,setScopeId:h=sr,insertStaticContent:v}=e,p=(P,I,z,G=null,q=null,ne=null,ce=!1,te=null,ie=!!I.dynamicChildren)=>{if(P===I)return;P&&!za(P,I)&&(G=W(P),ae(P,q,ne,!0),P=null),I.patchFlag===-2&&(ie=!1,I.dynamicChildren=null);const{type:X,ref:_e,shapeFlag:ve}=I;switch(X){case Is:g(P,I,z,G);break;case br:m(P,I,z,G);break;case Th:P==null&&y(I,z,G,ce);break;case yt:M(P,I,z,G,q,ne,ce,te,ie);break;default:ve&1?x(P,I,z,G,q,ne,ce,te,ie):ve&6?D(P,I,z,G,q,ne,ce,te,ie):(ve&64||ve&128)&&X.process(P,I,z,G,q,ne,ce,te,ie,le)}_e!=null&&q&&Tp(_e,P&&P.ref,ne,I||P,!I)},g=(P,I,z,G)=>{if(P==null)n(I.el=s(I.children),z,G);else{const q=I.el=P.el;I.children!==P.children&&u(q,I.children)}},m=(P,I,z,G)=>{P==null?n(I.el=l(I.children||""),z,G):I.el=P.el},y=(P,I,z,G)=>{[P.el,P.anchor]=v(P.children,I,z,G,P.el,P.anchor)},_=({el:P,anchor:I},z,G)=>{let q;for(;P&&P!==I;)q=d(P),n(P,z,G),P=q;n(I,z,G)},b=({el:P,anchor:I})=>{let z;for(;P&&P!==I;)z=d(P),i(P),P=z;i(I)},x=(P,I,z,G,q,ne,ce,te,ie)=>{ce=ce||I.type==="svg",P==null?w(I,z,G,q,ne,ce,te,ie):T(P,I,q,ne,ce,te,ie)},w=(P,I,z,G,q,ne,ce,te)=>{let ie,X;const{type:_e,props:ve,shapeFlag:be,transition:Ie,dirs:Fe}=P;if(ie=P.el=o(P.type,ne,ve&&ve.is,ve),be&8?f(ie,P.children):be&16&&C(P.children,ie,null,G,q,ne&&_e!=="foreignObject",ce,te),Fe&&la(P,null,G,"created"),ve){for(const et in ve)et!=="value"&&!ic(et)&&a(ie,et,null,ve[et],ne,P.children,G,q,J);"value"in ve&&a(ie,"value",null,ve.value),(X=ve.onVnodeBeforeMount)&&Ln(X,G,P)}S(ie,P,P.scopeId,ce,G),Fe&&la(P,null,G,"beforeMount");const rt=(!q||q&&!q.pendingBranch)&&Ie&&!Ie.persisted;rt&&Ie.beforeEnter(ie),n(ie,I,z),((X=ve&&ve.onVnodeMounted)||rt||Fe)&&pr(()=>{X&&Ln(X,G,P),rt&&Ie.enter(ie),Fe&&la(P,null,G,"mounted")},q)},S=(P,I,z,G,q)=>{if(z&&h(P,z),G)for(let ne=0;ne<G.length;ne++)h(P,G[ne]);if(q){let ne=q.subTree;if(I===ne){const ce=q.vnode;S(P,ce,ce.scopeId,ce.slotScopeIds,q.parent)}}},C=(P,I,z,G,q,ne,ce,te,ie=0)=>{for(let X=ie;X<P.length;X++){const _e=P[X]=te?Hi(P[X]):kn(P[X]);p(null,_e,I,z,G,q,ne,ce,te)}},T=(P,I,z,G,q,ne,ce)=>{const te=I.el=P.el;let{patchFlag:ie,dynamicChildren:X,dirs:_e}=I;ie|=P.patchFlag&16;const ve=P.props||mt,be=I.props||mt;let Ie;z&&ua(z,!1),(Ie=be.onVnodeBeforeUpdate)&&Ln(Ie,z,I,P),_e&&la(I,P,z,"beforeUpdate"),z&&ua(z,!0);const Fe=q&&I.type!=="foreignObject";if(X?E(P.dynamicChildren,X,te,z,G,Fe,ne):ce||B(P,I,te,null,z,G,Fe,ne,!1),ie>0){if(ie&16)A(te,I,ve,be,z,G,q);else if(ie&2&&ve.class!==be.class&&a(te,"class",null,be.class,q),ie&4&&a(te,"style",ve.style,be.style,q),ie&8){const rt=I.dynamicProps;for(let et=0;et<rt.length;et++){const fe=rt[et],Ce=ve[fe],$e=be[fe];($e!==Ce||fe==="value")&&a(te,fe,Ce,$e,q,P.children,z,G,J)}}ie&1&&P.children!==I.children&&f(te,I.children)}else!ce&&X==null&&A(te,I,ve,be,z,G,q);((Ie=be.onVnodeUpdated)||_e)&&pr(()=>{Ie&&Ln(Ie,z,I,P),_e&&la(I,P,z,"updated")},G)},E=(P,I,z,G,q,ne,ce)=>{for(let te=0;te<I.length;te++){const ie=P[te],X=I[te],_e=ie.el&&(ie.type===yt||!za(ie,X)||ie.shapeFlag&70)?c(ie.el):z;p(ie,X,_e,null,G,q,ne,ce,!0)}},A=(P,I,z,G,q,ne,ce)=>{if(z!==G){if(z!==mt)for(const te in z)!ic(te)&&!(te in G)&&a(P,te,z[te],null,ce,I.children,q,ne,J);for(const te in G){if(ic(te))continue;const ie=G[te],X=z[te];ie!==X&&te!=="value"&&a(P,te,X,ie,ce,I.children,q,ne,J)}"value"in G&&a(P,"value",z.value,G.value)}},M=(P,I,z,G,q,ne,ce,te,ie)=>{const X=I.el=P?P.el:s(""),_e=I.anchor=P?P.anchor:s("");let{patchFlag:ve,dynamicChildren:be,slotScopeIds:Ie}=I;Ie&&(te=te?te.concat(Ie):Ie),P==null?(n(X,z,G),n(_e,z,G),C(I.children,z,_e,q,ne,ce,te,ie)):ve>0&&ve&64&&be&&P.dynamicChildren?(E(P.dynamicChildren,be,z,q,ne,ce,te),(I.key!=null||q&&I===q.subTree)&&Bm(P,I,!0)):B(P,I,z,_e,q,ne,ce,te,ie)},D=(P,I,z,G,q,ne,ce,te,ie)=>{I.slotScopeIds=te,P==null?I.shapeFlag&512?q.ctx.activate(I,z,G,ce,ie):O(I,z,G,q,ne,ce,ie):k(P,I,ie)},O=(P,I,z,G,q,ne,ce)=>{const te=P.component=bI(P,G,q);if(Ad(P)&&(te.ctx.renderer=le),wI(te),te.asyncDep){if(q&&q.registerDep(te,F),!P.el){const ie=te.subTree=ee(br);m(null,ie,I,z)}return}F(te,P,I,z,q,ne,ce)},k=(P,I,z)=>{const G=I.component=P.component;if(RD(P,I,z))if(G.asyncDep&&!G.asyncResolved){j(G,I,z);return}else G.next=I,AD(G.update),G.update();else I.el=P.el,G.vnode=I},F=(P,I,z,G,q,ne,ce)=>{const te=()=>{if(P.isMounted){let{next:_e,bu:ve,u:be,parent:Ie,vnode:Fe}=P,rt=_e,et;ua(P,!1),_e?(_e.el=Fe.el,j(P,_e,ce)):_e=Fe,ve&&oc(ve),(et=_e.props&&_e.props.onVnodeBeforeUpdate)&&Ln(et,Ie,_e,Fe),ua(P,!0);const fe=xh(P),Ce=P.subTree;P.subTree=fe,p(Ce,fe,c(Ce.el),W(Ce),P,q,ne),_e.el=fe.el,rt===null&&OD(P,fe.el),be&&pr(be,q),(et=_e.props&&_e.props.onVnodeUpdated)&&pr(()=>Ln(et,Ie,_e,Fe),q)}else{let _e;const{el:ve,props:be}=I,{bm:Ie,m:Fe,parent:rt}=P,et=Cl(I);if(ua(P,!1),Ie&&oc(Ie),!et&&(_e=be&&be.onVnodeBeforeMount)&&Ln(_e,rt,I),ua(P,!0),ve&&Q){const fe=()=>{P.subTree=xh(P),Q(ve,P.subTree,P,q,null)};et?I.type.__asyncLoader().then(()=>!P.isUnmounted&&fe()):fe()}else{const fe=P.subTree=xh(P);p(null,fe,z,G,P,q,ne),I.el=fe.el}if(Fe&&pr(Fe,q),!et&&(_e=be&&be.onVnodeMounted)){const fe=I;pr(()=>Ln(_e,rt,fe),q)}(I.shapeFlag&256||rt&&Cl(rt.vnode)&&rt.vnode.shapeFlag&256)&&P.a&&pr(P.a,q),P.isMounted=!0,I=z=G=null}},ie=P.effect=new Sm(te,()=>Lm(X),P.scope),X=P.update=()=>ie.run();X.id=P.uid,ua(P,!0),X()},j=(P,I,z)=>{I.component=P;const G=P.vnode.props;P.vnode=I,P.next=null,rI(P,I.props,G,z),aI(P,I.children,z),Ls(),U0(),Ds()},B=(P,I,z,G,q,ne,ce,te,ie=!1)=>{const X=P&&P.children,_e=P?P.shapeFlag:0,ve=I.children,{patchFlag:be,shapeFlag:Ie}=I;if(be>0){if(be&128){U(X,ve,z,G,q,ne,ce,te,ie);return}else if(be&256){N(X,ve,z,G,q,ne,ce,te,ie);return}}Ie&8?(_e&16&&J(X,q,ne),ve!==X&&f(z,ve)):_e&16?Ie&16?U(X,ve,z,G,q,ne,ce,te,ie):J(X,q,ne,!0):(_e&8&&f(z,""),Ie&16&&C(ve,z,G,q,ne,ce,te,ie))},N=(P,I,z,G,q,ne,ce,te,ie)=>{P=P||Zo,I=I||Zo;const X=P.length,_e=I.length,ve=Math.min(X,_e);let be;for(be=0;be<ve;be++){const Ie=I[be]=ie?Hi(I[be]):kn(I[be]);p(P[be],Ie,z,null,q,ne,ce,te,ie)}X>_e?J(P,q,ne,!0,!1,ve):C(I,z,G,q,ne,ce,te,ie,ve)},U=(P,I,z,G,q,ne,ce,te,ie)=>{let X=0;const _e=I.length;let ve=P.length-1,be=_e-1;for(;X<=ve&&X<=be;){const Ie=P[X],Fe=I[X]=ie?Hi(I[X]):kn(I[X]);if(za(Ie,Fe))p(Ie,Fe,z,null,q,ne,ce,te,ie);else break;X++}for(;X<=ve&&X<=be;){const Ie=P[ve],Fe=I[be]=ie?Hi(I[be]):kn(I[be]);if(za(Ie,Fe))p(Ie,Fe,z,null,q,ne,ce,te,ie);else break;ve--,be--}if(X>ve){if(X<=be){const Ie=be+1,Fe=Ie<_e?I[Ie].el:G;for(;X<=be;)p(null,I[X]=ie?Hi(I[X]):kn(I[X]),z,Fe,q,ne,ce,te,ie),X++}}else if(X>be)for(;X<=ve;)ae(P[X],q,ne,!0),X++;else{const Ie=X,Fe=X,rt=new Map;for(X=Fe;X<=be;X++){const ht=I[X]=ie?Hi(I[X]):kn(I[X]);ht.key!=null&&rt.set(ht.key,X)}let et,fe=0;const Ce=be-Fe+1;let $e=!1,He=0;const Xe=new Array(Ce);for(X=0;X<Ce;X++)Xe[X]=0;for(X=Ie;X<=ve;X++){const ht=P[X];if(fe>=Ce){ae(ht,q,ne,!0);continue}let Wt;if(ht.key!=null)Wt=rt.get(ht.key);else for(et=Fe;et<=be;et++)if(Xe[et-Fe]===0&&za(ht,I[et])){Wt=et;break}Wt===void 0?ae(ht,q,ne,!0):(Xe[Wt-Fe]=X+1,Wt>=He?He=Wt:$e=!0,p(ht,I[Wt],z,null,q,ne,ce,te,ie),fe++)}const Ot=$e?fI(Xe):Zo;for(et=Ot.length-1,X=Ce-1;X>=0;X--){const ht=Fe+X,Wt=I[ht],Hr=ht+1<_e?I[ht+1].el:G;Xe[X]===0?p(null,Wt,z,Hr,q,ne,ce,te,ie):$e&&(et<0||X!==Ot[et]?re(Wt,z,Hr,2):et--)}}},re=(P,I,z,G,q=null)=>{const{el:ne,type:ce,transition:te,children:ie,shapeFlag:X}=P;if(X&6){re(P.component.subTree,I,z,G);return}if(X&128){P.suspense.move(I,z,G);return}if(X&64){ce.move(P,I,z,le);return}if(ce===yt){n(ne,I,z);for(let ve=0;ve<ie.length;ve++)re(ie[ve],I,z,G);n(P.anchor,I,z);return}if(ce===Th){_(P,I,z);return}if(G!==2&&X&1&&te)if(G===0)te.beforeEnter(ne),n(ne,I,z),pr(()=>te.enter(ne),q);else{const{leave:ve,delayLeave:be,afterLeave:Ie}=te,Fe=()=>n(ne,I,z),rt=()=>{ve(ne,()=>{Fe(),Ie&&Ie()})};be?be(ne,Fe,rt):rt()}else n(ne,I,z)},ae=(P,I,z,G=!1,q=!1)=>{const{type:ne,props:ce,ref:te,children:ie,dynamicChildren:X,shapeFlag:_e,patchFlag:ve,dirs:be}=P;if(te!=null&&Tp(te,null,z,P,!0),_e&256){I.ctx.deactivate(P);return}const Ie=_e&1&&be,Fe=!Cl(P);let rt;if(Fe&&(rt=ce&&ce.onVnodeBeforeUnmount)&&Ln(rt,I,P),_e&6)V(P.component,z,G);else{if(_e&128){P.suspense.unmount(z,G);return}Ie&&la(P,null,I,"beforeUnmount"),_e&64?P.type.remove(P,I,z,q,le,G):X&&(ne!==yt||ve>0&&ve&64)?J(X,I,z,!1,!0):(ne===yt&&ve&384||!q&&_e&16)&&J(ie,I,z),G&&me(P)}(Fe&&(rt=ce&&ce.onVnodeUnmounted)||Ie)&&pr(()=>{rt&&Ln(rt,I,P),Ie&&la(P,null,I,"unmounted")},z)},me=P=>{const{type:I,el:z,anchor:G,transition:q}=P;if(I===yt){Me(z,G);return}if(I===Th){b(P);return}const ne=()=>{i(z),q&&!q.persisted&&q.afterLeave&&q.afterLeave()};if(P.shapeFlag&1&&q&&!q.persisted){const{leave:ce,delayLeave:te}=q,ie=()=>ce(z,ne);te?te(P.el,ne,ie):ie()}else ne()},Me=(P,I)=>{let z;for(;P!==I;)z=d(P),i(P),P=z;i(I)},V=(P,I,z)=>{const{bum:G,scope:q,update:ne,subTree:ce,um:te}=P;G&&oc(G),q.stop(),ne&&(ne.active=!1,ae(ce,P,I,z)),te&&pr(te,I),pr(()=>{P.isUnmounted=!0},I),I&&I.pendingBranch&&!I.isUnmounted&&P.asyncDep&&!P.asyncResolved&&P.suspenseId===I.pendingId&&(I.deps--,I.deps===0&&I.resolve())},J=(P,I,z,G=!1,q=!1,ne=0)=>{for(let ce=ne;ce<P.length;ce++)ae(P[ce],I,z,G,q)},W=P=>P.shapeFlag&6?W(P.component.subTree):P.shapeFlag&128?P.suspense.next():d(P.anchor||P.el),Y=(P,I,z)=>{P==null?I._vnode&&ae(I._vnode,null,null,!0):p(I._vnode||null,P,I,null,null,null,z),U0(),yC(),I._vnode=P},le={p,um:ae,m:re,r:me,mt:O,mc:C,pc:B,pbc:E,n:W,o:e};let he,Q;return t&&([he,Q]=t(le)),{render:Y,hydrate:he,createApp:sI(Y,he)}}function ua({effect:e,update:t},r){e.allowRecurse=t.allowRecurse=r}function Bm(e,t,r=!1){const n=e.children,i=t.children;if(ye(n)&&ye(i))for(let a=0;a<n.length;a++){const o=n[a];let s=i[a];s.shapeFlag&1&&!s.dynamicChildren&&((s.patchFlag<=0||s.patchFlag===32)&&(s=i[a]=Hi(i[a]),s.el=o.el),r||Bm(o,s)),s.type===Is&&(s.el=o.el)}}function fI(e){const t=e.slice(),r=[0];let n,i,a,o,s;const l=e.length;for(n=0;n<l;n++){const u=e[n];if(u!==0){if(i=r[r.length-1],e[i]<u){t[n]=i,r.push(n);continue}for(a=0,o=r.length-1;a<o;)s=a+o>>1,e[r[s]]<u?a=s+1:o=s;u<e[r[a]]&&(a>0&&(t[n]=r[a-1]),r[a]=n)}}for(a=r.length,o=r[a-1];a-- >0;)r[a]=o,o=t[o];return r}const cI=e=>e.__isTeleport,Ml=e=>e&&(e.disabled||e.disabled===""),r_=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Mp=(e,t)=>{const r=e&&e.to;return Ue(r)?t?t(r):null:r},dI={__isTeleport:!0,process(e,t,r,n,i,a,o,s,l,u){const{mc:f,pc:c,pbc:d,o:{insert:h,querySelector:v,createText:p,createComment:g}}=u,m=Ml(t.props);let{shapeFlag:y,children:_,dynamicChildren:b}=t;if(e==null){const x=t.el=p(""),w=t.anchor=p("");h(x,r,n),h(w,r,n);const S=t.target=Mp(t.props,v),C=t.targetAnchor=p("");S&&(h(C,S),o=o||r_(S));const T=(E,A)=>{y&16&&f(_,E,A,i,a,o,s,l)};m?T(r,w):S&&T(S,C)}else{t.el=e.el;const x=t.anchor=e.anchor,w=t.target=e.target,S=t.targetAnchor=e.targetAnchor,C=Ml(e.props),T=C?r:w,E=C?x:S;if(o=o||r_(w),b?(d(e.dynamicChildren,b,T,i,a,o,s),Bm(e,t,!0)):l||c(e,t,T,E,i,a,o,s,!1),m)C||nf(t,r,x,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const A=t.target=Mp(t.props,v);A&&nf(t,A,null,u,0)}else C&&nf(t,w,S,u,1)}BC(t)},remove(e,t,r,n,{um:i,o:{remove:a}},o){const{shapeFlag:s,children:l,anchor:u,targetAnchor:f,target:c,props:d}=e;if(c&&a(f),(o||!Ml(d))&&(a(u),s&16))for(let h=0;h<l.length;h++){const v=l[h];i(v,t,r,!0,!!v.dynamicChildren)}},move:nf,hydrate:hI};function nf(e,t,r,{o:{insert:n},m:i},a=2){a===0&&n(e.targetAnchor,t,r);const{el:o,anchor:s,shapeFlag:l,children:u,props:f}=e,c=a===2;if(c&&n(o,t,r),(!c||Ml(f))&&l&16)for(let d=0;d<u.length;d++)i(u[d],t,r,2);c&&n(s,t,r)}function hI(e,t,r,n,i,a,{o:{nextSibling:o,parentNode:s,querySelector:l}},u){const f=t.target=Mp(t.props,l);if(f){const c=f._lpa||f.firstChild;if(t.shapeFlag&16)if(Ml(t.props))t.anchor=u(o(e),t,s(e),r,n,i,a),t.targetAnchor=c;else{t.anchor=o(e);let d=c;for(;d;)if(d=o(d),d&&d.nodeType===8&&d.data==="teleport anchor"){t.targetAnchor=d,f._lpa=t.targetAnchor&&o(t.targetAnchor);break}u(c,t,f,r,n,i,a)}BC(t)}return t.anchor&&o(t.anchor)}const vI=dI;function BC(e){const t=e.ctx;if(t&&t.ut){let r=e.children[0].el;for(;r!==e.targetAnchor;)r.nodeType===1&&r.setAttribute("data-v-owner",t.uid),r=r.nextSibling;t.ut()}}const yt=Symbol(void 0),Is=Symbol(void 0),br=Symbol(void 0),Th=Symbol(void 0),Al=[];let yn=null;function K(e=!1){Al.push(yn=e?null:[])}function pI(){Al.pop(),yn=Al[Al.length-1]||null}let ru=1;function n_(e){ru+=e}function FC(e){return e.dynamicChildren=ru>0?yn||Zo:null,pI(),ru>0&&yn&&yn.push(e),e}function Se(e,t,r,n,i,a){return FC(se(e,t,r,n,i,a,!0))}function xe(e,t,r,n,i){return FC(ee(e,t,r,n,i,!0))}function Ji(e){return e?e.__v_isVNode===!0:!1}function za(e,t){return e.type===t.type&&e.key===t.key}const Dd="__vInternal",$C=({key:e})=>e??null,sc=({ref:e,ref_key:t,ref_for:r})=>e!=null?Ue(e)||St(e)||Le(e)?{i:Yt,r:e,k:t,f:!!r}:e:null;function se(e,t=null,r=null,n=0,i=null,a=e===yt?0:1,o=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&$C(t),ref:t&&sc(t),scopeId:wC,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Yt};return s?(Fm(l,r),a&128&&e.normalize(l)):r&&(l.shapeFlag|=Ue(r)?8:16),ru>0&&!o&&yn&&(l.patchFlag>0||a&6)&&l.patchFlag!==32&&yn.push(l),l}const ee=gI;function gI(e,t=null,r=null,n=0,i=null,a=!1){if((!e||e===EC)&&(e=br),Ji(e)){const s=vi(e,t,!0);return r&&Fm(s,r),ru>0&&!a&&yn&&(s.shapeFlag&6?yn[yn.indexOf(e)]=s:yn.push(s)),s.patchFlag|=-2,s}if(TI(e)&&(e=e.__vccOpts),t){t=mI(t);let{class:s,style:l}=t;s&&!Ue(s)&&(t.class=de(s)),Ke(l)&&(uC(l)&&!ye(l)&&(l=Kt({},l)),t.style=At(l))}const o=Ue(e)?1:kD(e)?128:cI(e)?64:Ke(e)?4:Le(e)?2:0;return se(e,t,r,n,i,o,a,!0)}function mI(e){return e?uC(e)||Dd in e?Kt({},e):e:null}function vi(e,t,r=!1){const{props:n,ref:i,patchFlag:a,children:o}=e,s=t?go(n||{},t):n;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&$C(s),ref:t&&t.ref?r&&i?ye(i)?i.concat(sc(t)):[i,sc(t)]:sc(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==yt?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&vi(e.ssContent),ssFallback:e.ssFallback&&vi(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx}}function kt(e=" ",t=0){return ee(Is,null,e,t)}function Ye(e="",t=!1){return t?(K(),xe(br,null,e)):ee(br,null,e)}function kn(e){return e==null||typeof e=="boolean"?ee(br):ye(e)?ee(yt,null,e.slice()):typeof e=="object"?Hi(e):ee(Is,null,String(e))}function Hi(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:vi(e)}function Fm(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(ye(t))r=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),Fm(e,i()),i._c&&(i._d=!0));return}else{r=32;const i=t._;!i&&!(Dd in t)?t._ctx=Yt:i===3&&Yt&&(Yt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Le(t)?(t={default:t,_ctx:Yt},r=32):(t=String(t),n&64?(r=16,t=[kt(t)]):r=8);e.children=t,e.shapeFlag|=r}function go(...e){const t={};for(let r=0;r<e.length;r++){const n=e[r];for(const i in n)if(i==="class")t.class!==n.class&&(t.class=de([t.class,n.class]));else if(i==="style")t.style=At([t.style,n.style]);else if(yd(i)){const a=t[i],o=n[i];o&&a!==o&&!(ye(a)&&a.includes(o))&&(t[i]=a?[].concat(a,o):o)}else i!==""&&(t[i]=n[i])}return t}function Ln(e,t,r,n=null){en(e,t,7,[r,n])}const yI=NC();let _I=0;function bI(e,t,r){const n=e.type,i=(t?t.appContext:e.appContext)||yI,a={uid:_I++,vnode:e,type:n,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new VL(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:IC(n,i),emitsOptions:bC(n,i),emit:null,emitted:null,propsDefaults:mt,inheritAttrs:n.inheritAttrs,ctx:mt,data:mt,props:mt,attrs:mt,slots:mt,refs:mt,setupState:mt,setupContext:null,suspense:r,suspenseId:r?r.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 a.ctx={_:a},a.root=t?t.root:a,a.emit=LD.bind(null,a),e.ce&&e.ce(a),a}let Ht=null;const dt=()=>Ht||Yt,fs=e=>{Ht=e,e.scope.on()},eo=()=>{Ht&&Ht.scope.off(),Ht=null};function HC(e){return e.vnode.shapeFlag&4}let nu=!1;function wI(e,t=!1){nu=t;const{props:r,children:n}=e.vnode,i=HC(e);tI(e,r,i,t),iI(e,n);const a=i?xI(e,t):void 0;return nu=!1,a}function xI(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=fC(new Proxy(e.ctx,KD));const{setup:n}=r;if(n){const i=e.setupContext=n.length>1?WC(e):null;fs(e),Ls();const a=Ki(n,e,0,[e.props,i]);if(Ds(),eo(),KS(a)){if(a.then(eo,eo),t)return a.then(o=>{i_(e,o,t)}).catch(o=>{Td(o,e,0)});e.asyncDep=a}else i_(e,a,t)}else zC(e,t)}function i_(e,t,r){Le(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ke(t)&&(e.setupState=vC(t)),zC(e,r)}let a_;function zC(e,t,r){const n=e.type;if(!e.render){if(!t&&a_&&!n.render){const i=n.template||km(e).template;if(i){const{isCustomElement:a,compilerOptions:o}=e.appContext.config,{delimiters:s,compilerOptions:l}=n,u=Kt(Kt({isCustomElement:a,delimiters:s},o),l);n.render=a_(i,u)}}e.render=n.render||sr}fs(e),Ls(),XD(e),Ds(),eo()}function SI(e){return new Proxy(e.attrs,{get(t,r){return Fr(e,"get","$attrs"),t[r]}})}function WC(e){const t=n=>{e.exposed=n||{}};let r;return{get attrs(){return r||(r=SI(e))},slots:e.slots,emit:e.emit,expose:t}}function Id(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(vC(fC(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in Tl)return Tl[r](e)},has(t,r){return r in t||r in Tl}}))}function CI(e,t=!0){return Le(e)?e.displayName||e.name:e.name||t&&e.__name}function TI(e){return Le(e)&&"__vccOpts"in e}const $=(e,t)=>SD(e,t,nu);function Rd(){return MI().slots}function MI(){const e=dt();return e.setupContext||(e.setupContext=WC(e))}function we(e,t,r){const n=arguments.length;return n===2?Ke(t)&&!ye(t)?Ji(t)?ee(e,null,[t]):ee(e,t):ee(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&Ji(r)&&(r=[r]),ee(e,t,r))}const AI=Symbol(""),EI=()=>Re(AI),PI="3.2.45",LI="http://www.w3.org/2000/svg",Wa=typeof document<"u"?document:null,o_=Wa&&Wa.createElement("template"),DI={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,n)=>{const i=t?Wa.createElementNS(LI,e):Wa.createElement(e,r?{is:r}:void 0);return e==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:e=>Wa.createTextNode(e),createComment:e=>Wa.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Wa.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,n,i,a){const o=r?r.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),r),!(i===a||!(i=i.nextSibling)););else{o_.innerHTML=n?`<svg>${e}</svg>`:e;const s=o_.content;if(n){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}t.insertBefore(s,r)}return[o?o.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}};function II(e,t,r){const n=e._vtc;n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}function RI(e,t,r){const n=e.style,i=Ue(r);if(r&&!i){for(const a in r)Ap(n,a,r[a]);if(t&&!Ue(t))for(const a in t)r[a]==null&&Ap(n,a,"")}else{const a=n.display;i?t!==r&&(n.cssText=r):t&&e.removeAttribute("style"),"_vod"in e&&(n.display=a)}}const s_=/\s*!important$/;function Ap(e,t,r){if(ye(r))r.forEach(n=>Ap(e,t,n));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const n=OI(e,t);s_.test(r)?e.setProperty(Ps(n),r.replace(s_,""),"important"):e[n]=r}}const l_=["Webkit","Moz","ms"],Mh={};function OI(e,t){const r=Mh[t];if(r)return r;let n=Sn(t);if(n!=="filter"&&n in e)return Mh[t]=n;n=wd(n);for(let i=0;i<l_.length;i++){const a=l_[i]+n;if(a in e)return Mh[t]=a}return t}const u_="http://www.w3.org/1999/xlink";function kI(e,t,r,n,i){if(n&&t.startsWith("xlink:"))r==null?e.removeAttributeNS(u_,t.slice(6,t.length)):e.setAttributeNS(u_,t,r);else{const a=OL(t);r==null||a&&!YS(r)?e.removeAttribute(t):e.setAttribute(t,a?"":r)}}function NI(e,t,r,n,i,a,o){if(t==="innerHTML"||t==="textContent"){n&&o(n,i,a),e[t]=r??"";return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=r;const l=r??"";(e.value!==l||e.tagName==="OPTION")&&(e.value=l),r==null&&e.removeAttribute(t);return}let s=!1;if(r===""||r==null){const l=typeof e[t];l==="boolean"?r=YS(r):r==null&&l==="string"?(r="",s=!0):l==="number"&&(r=0,s=!0)}try{e[t]=r}catch{}s&&e.removeAttribute(t)}function VC(e,t,r,n){e.addEventListener(t,r,n)}function BI(e,t,r,n){e.removeEventListener(t,r,n)}function FI(e,t,r,n,i=null){const a=e._vei||(e._vei={}),o=a[t];if(n&&o)o.value=n;else{const[s,l]=$I(t);if(n){const u=a[t]=WI(n,i);VC(e,s,u,l)}else o&&(BI(e,s,o,l),a[t]=void 0)}}const f_=/(?:Once|Passive|Capture)$/;function $I(e){let t;if(f_.test(e)){t={};let n;for(;n=e.match(f_);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ps(e.slice(2)),t]}let Ah=0;const HI=Promise.resolve(),zI=()=>Ah||(HI.then(()=>Ah=0),Ah=Date.now());function WI(e,t){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;en(VI(n,r.value),t,5,[n])};return r.value=e,r.attached=zI(),r}function VI(e,t){if(ye(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(n=>i=>!i._stopped&&n&&n(i))}else return t}const c_=/^on[a-z]/,GI=(e,t,r,n,i=!1,a,o,s,l)=>{t==="class"?II(e,n,i):t==="style"?RI(e,r,n):yd(t)?ym(t)||FI(e,t,r,n,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):UI(e,t,n,i))?NI(e,t,n,a,o,s,l):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),kI(e,t,n,i))};function UI(e,t,r,n){return n?!!(t==="innerHTML"||t==="textContent"||t in e&&c_.test(t)&&Le(r)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||c_.test(t)&&Ue(r)?!1:t in e}const Ai="transition",Vs="animation",Kn=(e,{slots:t})=>we(SC,YI(e),t);Kn.displayName="Transition";const GC={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};Kn.props=Kt({},SC.props,GC);const fa=(e,t=[])=>{ye(e)?e.forEach(r=>r(...t)):e&&e(...t)},d_=e=>e?ye(e)?e.some(t=>t.length>1):e.length>1:!1;function YI(e){const t={};for(const M in e)M in GC||(t[M]=e[M]);if(e.css===!1)return t;const{name:r="v",type:n,duration:i,enterFromClass:a=`${r}-enter-from`,enterActiveClass:o=`${r}-enter-active`,enterToClass:s=`${r}-enter-to`,appearFromClass:l=a,appearActiveClass:u=o,appearToClass:f=s,leaveFromClass:c=`${r}-leave-from`,leaveActiveClass:d=`${r}-leave-active`,leaveToClass:h=`${r}-leave-to`}=e,v=qI(i),p=v&&v[0],g=v&&v[1],{onBeforeEnter:m,onEnter:y,onEnterCancelled:_,onLeave:b,onLeaveCancelled:x,onBeforeAppear:w=m,onAppear:S=y,onAppearCancelled:C=_}=t,T=(M,D,O)=>{ca(M,D?f:s),ca(M,D?u:o),O&&O()},E=(M,D)=>{M._isLeaving=!1,ca(M,c),ca(M,h),ca(M,d),D&&D()},A=M=>(D,O)=>{const k=M?S:y,F=()=>T(D,M,O);fa(k,[D,F]),h_(()=>{ca(D,M?l:a),Ei(D,M?f:s),d_(k)||v_(D,n,p,F)})};return Kt(t,{onBeforeEnter(M){fa(m,[M]),Ei(M,a),Ei(M,o)},onBeforeAppear(M){fa(w,[M]),Ei(M,l),Ei(M,u)},onEnter:A(!1),onAppear:A(!0),onLeave(M,D){M._isLeaving=!0;const O=()=>E(M,D);Ei(M,c),XI(),Ei(M,d),h_(()=>{M._isLeaving&&(ca(M,c),Ei(M,h),d_(b)||v_(M,n,g,O))}),fa(b,[M,O])},onEnterCancelled(M){T(M,!1),fa(_,[M])},onAppearCancelled(M){T(M,!0),fa(C,[M])},onLeaveCancelled(M){E(M),fa(x,[M])}})}function qI(e){if(e==null)return null;if(Ke(e))return[Eh(e.enter),Eh(e.leave)];{const t=Eh(e);return[t,t]}}function Eh(e){return wm(e)}function Ei(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e._vtc||(e._vtc=new Set)).add(t)}function ca(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const{_vtc:r}=e;r&&(r.delete(t),r.size||(e._vtc=void 0))}function h_(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let jI=0;function v_(e,t,r,n){const i=e._endId=++jI,a=()=>{i===e._endId&&n()};if(r)return setTimeout(a,r);const{type:o,timeout:s,propCount:l}=KI(e,t);if(!o)return n();const u=o+"end";let f=0;const c=()=>{e.removeEventListener(u,d),a()},d=h=>{h.target===e&&++f>=l&&c()};setTimeout(()=>{f<l&&c()},s+1),e.addEventListener(u,d)}function KI(e,t){const r=window.getComputedStyle(e),n=v=>(r[v]||"").split(", "),i=n(`${Ai}Delay`),a=n(`${Ai}Duration`),o=p_(i,a),s=n(`${Vs}Delay`),l=n(`${Vs}Duration`),u=p_(s,l);let f=null,c=0,d=0;t===Ai?o>0&&(f=Ai,c=o,d=a.length):t===Vs?u>0&&(f=Vs,c=u,d=l.length):(c=Math.max(o,u),f=c>0?o>u?Ai:Vs:null,d=f?f===Ai?a.length:l.length:0);const h=f===Ai&&/\b(transform|all)(,|$)/.test(n(`${Ai}Property`).toString());return{type:f,timeout:c,propCount:d,hasTransform:h}}function p_(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,n)=>g_(r)+g_(e[n])))}function g_(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function XI(){return document.body.offsetHeight}const m_=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ye(t)?r=>oc(t,r):t},Bc={deep:!0,created(e,t,r){e._assign=m_(r),VC(e,"change",()=>{const n=e._modelValue,i=ZI(e),a=e.checked,o=e._assign;if(ye(n)){const s=qS(n,i),l=s!==-1;if(a&&!l)o(n.concat(i));else if(!a&&l){const u=[...n];u.splice(s,1),o(u)}}else if(_d(n)){const s=new Set(n);a?s.add(i):s.delete(i),o(s)}else o(UC(e,a))})},mounted:y_,beforeUpdate(e,t,r){e._assign=m_(r),y_(e,t,r)}};function y_(e,{value:t,oldValue:r},n){e._modelValue=t,ye(t)?e.checked=qS(t,n.props.value)>-1:_d(t)?e.checked=t.has(n.props.value):t!==r&&(e.checked=md(t,UC(e,!0)))}function ZI(e){return"_value"in e?e._value:e.value}function UC(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const QI=["ctrl","shift","alt","meta"],JI={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)=>QI.some(r=>e[`${r}Key`]&&!t.includes(r))},Ep=(e,t)=>(r,...n)=>{for(let i=0;i<t.length;i++){const a=JI[t[i]];if(a&&a(r,t))return}return e(r,...n)},pi={beforeMount(e,{value:t},{transition:r}){e._vod=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):Gs(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:n}){!t!=!r&&(n?t?(n.beforeEnter(e),Gs(e,!0),n.enter(e)):n.leave(e,()=>{Gs(e,!1)}):Gs(e,t))},beforeUnmount(e,{value:t}){Gs(e,t)}};function Gs(e,t){e.style.display=t?e._vod:"none"}const eR=Kt({patchProp:GI},DI);let __;function YC(){return __||(__=lI(eR))}const b_=(...e)=>{YC().render(...e)},tR=(...e)=>{const t=YC().createApp(...e),{mount:r}=t;return t.mount=n=>{const i=rR(n);if(!i)return;const a=t._component;!Le(a)&&!a.render&&!a.template&&(a.template=i.innerHTML),i.innerHTML="";const o=r(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t};function rR(e){return Ue(e)?document.querySelector(e):e}var nR=typeof global=="object"&&global&&global.Object===Object&&global;const qC=nR;var iR=typeof self=="object"&&self&&self.Object===Object&&self,aR=qC||iR||Function("return this")();const Mn=aR;var oR=Mn.Symbol;const nn=oR;var jC=Object.prototype,sR=jC.hasOwnProperty,lR=jC.toString,Us=nn?nn.toStringTag:void 0;function uR(e){var t=sR.call(e,Us),r=e[Us];try{e[Us]=void 0;var n=!0}catch{}var i=lR.call(e);return n&&(t?e[Us]=r:delete e[Us]),i}var fR=Object.prototype,cR=fR.toString;function dR(e){return cR.call(e)}var hR="[object Null]",vR="[object Undefined]",w_=nn?nn.toStringTag:void 0;function mo(e){return e==null?e===void 0?vR:hR:w_&&w_ in Object(e)?uR(e):dR(e)}function Yn(e){return e!=null&&typeof e=="object"}var pR="[object Symbol]";function Od(e){return typeof e=="symbol"||Yn(e)&&mo(e)==pR}function KC(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var gR=Array.isArray;const ur=gR;var mR=1/0,x_=nn?nn.prototype:void 0,S_=x_?x_.toString:void 0;function XC(e){if(typeof e=="string")return e;if(ur(e))return KC(e,XC)+"";if(Od(e))return S_?S_.call(e):"";var t=e+"";return t=="0"&&1/e==-mR?"-0":t}var yR=/\s/;function _R(e){for(var t=e.length;t--&&yR.test(e.charAt(t)););return t}var bR=/^\s+/;function wR(e){return e&&e.slice(0,_R(e)+1).replace(bR,"")}function Cr(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var C_=0/0,xR=/^[-+]0x[0-9a-f]+$/i,SR=/^0b[01]+$/i,CR=/^0o[0-7]+$/i,TR=parseInt;function T_(e){if(typeof e=="number")return e;if(Od(e))return C_;if(Cr(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Cr(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=wR(e);var r=SR.test(e);return r||CR.test(e)?TR(e.slice(2),r?2:8):xR.test(e)?C_:+e}function $m(e){return e}var MR="[object AsyncFunction]",AR="[object Function]",ER="[object GeneratorFunction]",PR="[object Proxy]";function Hm(e){if(!Cr(e))return!1;var t=mo(e);return t==AR||t==ER||t==MR||t==PR}var LR=Mn["__core-js_shared__"];const Ph=LR;var M_=function(){var e=/[^.]+$/.exec(Ph&&Ph.keys&&Ph.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function DR(e){return!!M_&&M_ in e}var IR=Function.prototype,RR=IR.toString;function yo(e){if(e!=null){try{return RR.call(e)}catch{}try{return e+""}catch{}}return""}var OR=/[\\^$.*+?()[\]{}|]/g,kR=/^\[object .+?Constructor\]$/,NR=Function.prototype,BR=Object.prototype,FR=NR.toString,$R=BR.hasOwnProperty,HR=RegExp("^"+FR.call($R).replace(OR,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function zR(e){if(!Cr(e)||DR(e))return!1;var t=Hm(e)?HR:kR;return t.test(yo(e))}function WR(e,t){return e==null?void 0:e[t]}function _o(e,t){var r=WR(e,t);return zR(r)?r:void 0}var VR=_o(Mn,"WeakMap");const Pp=VR;var A_=Object.create,GR=function(){function e(){}return function(t){if(!Cr(t))return{};if(A_)return A_(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();const UR=GR;function YR(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function ZC(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var qR=800,jR=16,KR=Date.now;function XR(e){var t=0,r=0;return function(){var n=KR(),i=jR-(n-r);if(r=n,i>0){if(++t>=qR)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function ZR(e){return function(){return e}}var QR=function(){try{var e=_o(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Fc=QR;var JR=Fc?function(e,t){return Fc(e,"toString",{configurable:!0,enumerable:!1,value:ZR(t),writable:!0})}:$m;const eO=JR;var tO=XR(eO);const QC=tO;function rO(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var nO=9007199254740991,iO=/^(?:0|[1-9]\d*)$/;function kd(e,t){var r=typeof e;return t=t??nO,!!t&&(r=="number"||r!="symbol"&&iO.test(e))&&e>-1&&e%1==0&&e<t}function zm(e,t,r){t=="__proto__"&&Fc?Fc(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Ru(e,t){return e===t||e!==e&&t!==t}var aO=Object.prototype,oO=aO.hasOwnProperty;function Wm(e,t,r){var n=e[t];(!(oO.call(e,t)&&Ru(n,r))||r===void 0&&!(t in e))&&zm(e,t,r)}function Ou(e,t,r,n){var i=!r;r||(r={});for(var a=-1,o=t.length;++a<o;){var s=t[a],l=n?n(r[s],e[s],s,r,e):void 0;l===void 0&&(l=e[s]),i?zm(r,s,l):Wm(r,s,l)}return r}var E_=Math.max;function JC(e,t,r){return t=E_(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=E_(n.length-t,0),o=Array(a);++i<a;)o[i]=n[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=n[i];return s[t]=r(o),YR(e,this,s)}}function sO(e,t){return QC(JC(e,t,$m),e+"")}var lO=9007199254740991;function Vm(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=lO}function Rs(e){return e!=null&&Vm(e.length)&&!Hm(e)}function uO(e,t,r){if(!Cr(r))return!1;var n=typeof t;return(n=="number"?Rs(r)&&kd(t,r.length):n=="string"&&t in r)?Ru(r[t],e):!1}function fO(e){return sO(function(t,r){var n=-1,i=r.length,a=i>1?r[i-1]:void 0,o=i>2?r[2]:void 0;for(a=e.length>3&&typeof a=="function"?(i--,a):void 0,o&&uO(r[0],r[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++n<i;){var s=r[n];s&&e(t,s,n,a)}return t})}var cO=Object.prototype;function Gm(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||cO;return e===r}function dO(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var hO="[object Arguments]";function P_(e){return Yn(e)&&mo(e)==hO}var eT=Object.prototype,vO=eT.hasOwnProperty,pO=eT.propertyIsEnumerable,gO=P_(function(){return arguments}())?P_:function(e){return Yn(e)&&vO.call(e,"callee")&&!pO.call(e,"callee")};const iu=gO;function mO(){return!1}var tT=typeof Or=="object"&&Or&&!Or.nodeType&&Or,L_=tT&&typeof kr=="object"&&kr&&!kr.nodeType&&kr,yO=L_&&L_.exports===tT,D_=yO?Mn.Buffer:void 0,_O=D_?D_.isBuffer:void 0,bO=_O||mO;const au=bO;var wO="[object Arguments]",xO="[object Array]",SO="[object Boolean]",CO="[object Date]",TO="[object Error]",MO="[object Function]",AO="[object Map]",EO="[object Number]",PO="[object Object]",LO="[object RegExp]",DO="[object Set]",IO="[object String]",RO="[object WeakMap]",OO="[object ArrayBuffer]",kO="[object DataView]",NO="[object Float32Array]",BO="[object Float64Array]",FO="[object Int8Array]",$O="[object Int16Array]",HO="[object Int32Array]",zO="[object Uint8Array]",WO="[object Uint8ClampedArray]",VO="[object Uint16Array]",GO="[object Uint32Array]",gt={};gt[NO]=gt[BO]=gt[FO]=gt[$O]=gt[HO]=gt[zO]=gt[WO]=gt[VO]=gt[GO]=!0;gt[wO]=gt[xO]=gt[OO]=gt[SO]=gt[kO]=gt[CO]=gt[TO]=gt[MO]=gt[AO]=gt[EO]=gt[PO]=gt[LO]=gt[DO]=gt[IO]=gt[RO]=!1;function UO(e){return Yn(e)&&Vm(e.length)&&!!gt[mo(e)]}function Um(e){return function(t){return e(t)}}var rT=typeof Or=="object"&&Or&&!Or.nodeType&&Or,El=rT&&typeof kr=="object"&&kr&&!kr.nodeType&&kr,YO=El&&El.exports===rT,Lh=YO&&qC.process,qO=function(){try{var e=El&&El.require&&El.require("util").types;return e||Lh&&Lh.binding&&Lh.binding("util")}catch{}}();const cs=qO;var I_=cs&&cs.isTypedArray,jO=I_?Um(I_):UO;const Ym=jO;var KO=Object.prototype,XO=KO.hasOwnProperty;function nT(e,t){var r=ur(e),n=!r&&iu(e),i=!r&&!n&&au(e),a=!r&&!n&&!i&&Ym(e),o=r||n||i||a,s=o?dO(e.length,String):[],l=s.length;for(var u in e)(t||XO.call(e,u))&&!(o&&(u=="length"||i&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||kd(u,l)))&&s.push(u);return s}function iT(e,t){return function(r){return e(t(r))}}var ZO=iT(Object.keys,Object);const QO=ZO;var JO=Object.prototype,ek=JO.hasOwnProperty;function tk(e){if(!Gm(e))return QO(e);var t=[];for(var r in Object(e))ek.call(e,r)&&r!="constructor"&&t.push(r);return t}function ku(e){return Rs(e)?nT(e):tk(e)}function rk(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var nk=Object.prototype,ik=nk.hasOwnProperty;function ak(e){if(!Cr(e))return rk(e);var t=Gm(e),r=[];for(var n in e)n=="constructor"&&(t||!ik.call(e,n))||r.push(n);return r}function Nu(e){return Rs(e)?nT(e,!0):ak(e)}var ok=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,sk=/^\w*$/;function qm(e,t){if(ur(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Od(e)?!0:sk.test(e)||!ok.test(e)||t!=null&&e in Object(t)}var lk=_o(Object,"create");const ou=lk;function uk(){this.__data__=ou?ou(null):{},this.size=0}function fk(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var ck="__lodash_hash_undefined__",dk=Object.prototype,hk=dk.hasOwnProperty;function vk(e){var t=this.__data__;if(ou){var r=t[e];return r===ck?void 0:r}return hk.call(t,e)?t[e]:void 0}var pk=Object.prototype,gk=pk.hasOwnProperty;function mk(e){var t=this.__data__;return ou?t[e]!==void 0:gk.call(t,e)}var yk="__lodash_hash_undefined__";function _k(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ou&&t===void 0?yk:t,this}function so(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}so.prototype.clear=uk;so.prototype.delete=fk;so.prototype.get=vk;so.prototype.has=mk;so.prototype.set=_k;function bk(){this.__data__=[],this.size=0}function Nd(e,t){for(var r=e.length;r--;)if(Ru(e[r][0],t))return r;return-1}var wk=Array.prototype,xk=wk.splice;function Sk(e){var t=this.__data__,r=Nd(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():xk.call(t,r,1),--this.size,!0}function Ck(e){var t=this.__data__,r=Nd(t,e);return r<0?void 0:t[r][1]}function Tk(e){return Nd(this.__data__,e)>-1}function Mk(e,t){var r=this.__data__,n=Nd(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function xi(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}xi.prototype.clear=bk;xi.prototype.delete=Sk;xi.prototype.get=Ck;xi.prototype.has=Tk;xi.prototype.set=Mk;var Ak=_o(Mn,"Map");const su=Ak;function Ek(){this.size=0,this.__data__={hash:new so,map:new(su||xi),string:new so}}function Pk(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Bd(e,t){var r=e.__data__;return Pk(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Lk(e){var t=Bd(this,e).delete(e);return this.size-=t?1:0,t}function Dk(e){return Bd(this,e).get(e)}function Ik(e){return Bd(this,e).has(e)}function Rk(e,t){var r=Bd(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function Si(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Si.prototype.clear=Ek;Si.prototype.delete=Lk;Si.prototype.get=Dk;Si.prototype.has=Ik;Si.prototype.set=Rk;var Ok="Expected a function";function jm(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Ok);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,n);return r.cache=a.set(i,o)||a,o};return r.cache=new(jm.Cache||Si),r}jm.Cache=Si;var kk=500;function Nk(e){var t=jm(e,function(n){return r.size===kk&&r.clear(),n}),r=t.cache;return t}var Bk=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Fk=/\\(\\)?/g,$k=Nk(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Bk,function(r,n,i,a){t.push(i?a.replace(Fk,"$1"):n||r)}),t});const Hk=$k;function zk(e){return e==null?"":XC(e)}function Fd(e,t){return ur(e)?e:qm(e,t)?[e]:Hk(zk(e))}var Wk=1/0;function Bu(e){if(typeof e=="string"||Od(e))return e;var t=e+"";return t=="0"&&1/e==-Wk?"-0":t}function Km(e,t){t=Fd(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[Bu(t[r++])];return r&&r==n?e:void 0}function lu(e,t,r){var n=e==null?void 0:Km(e,t);return n===void 0?r:n}function Xm(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var R_=nn?nn.isConcatSpreadable:void 0;function Vk(e){return ur(e)||iu(e)||!!(R_&&e&&e[R_])}function Zm(e,t,r,n,i){var a=-1,o=e.length;for(r||(r=Vk),i||(i=[]);++a<o;){var s=e[a];t>0&&r(s)?t>1?Zm(s,t-1,r,n,i):Xm(i,s):n||(i[i.length]=s)}return i}function Gk(e){var t=e==null?0:e.length;return t?Zm(e,1):[]}function Uk(e){return QC(JC(e,void 0,Gk),e+"")}var Yk=iT(Object.getPrototypeOf,Object);const Qm=Yk;var qk="[object Object]",jk=Function.prototype,Kk=Object.prototype,aT=jk.toString,Xk=Kk.hasOwnProperty,Zk=aT.call(Object);function Qk(e){if(!Yn(e)||mo(e)!=qk)return!1;var t=Qm(e);if(t===null)return!0;var r=Xk.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&aT.call(r)==Zk}function Lp(){if(!arguments.length)return[];var e=arguments[0];return ur(e)?e:[e]}function Jk(){this.__data__=new xi,this.size=0}function eN(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function tN(e){return this.__data__.get(e)}function rN(e){return this.__data__.has(e)}var nN=200;function iN(e,t){var r=this.__data__;if(r instanceof xi){var n=r.__data__;if(!su||n.length<nN-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Si(n)}return r.set(e,t),this.size=r.size,this}function xn(e){var t=this.__data__=new xi(e);this.size=t.size}xn.prototype.clear=Jk;xn.prototype.delete=eN;xn.prototype.get=tN;xn.prototype.has=rN;xn.prototype.set=iN;function aN(e,t){return e&&Ou(t,ku(t),e)}function oN(e,t){return e&&Ou(t,Nu(t),e)}var oT=typeof Or=="object"&&Or&&!Or.nodeType&&Or,O_=oT&&typeof kr=="object"&&kr&&!kr.nodeType&&kr,sN=O_&&O_.exports===oT,k_=sN?Mn.Buffer:void 0,N_=k_?k_.allocUnsafe:void 0;function sT(e,t){if(t)return e.slice();var r=e.length,n=N_?N_(r):new e.constructor(r);return e.copy(n),n}function lN(e,t){for(var r=-1,n=e==null?0:e.length,i=0,a=[];++r<n;){var o=e[r];t(o,r,e)&&(a[i++]=o)}return a}function lT(){return[]}var uN=Object.prototype,fN=uN.propertyIsEnumerable,B_=Object.getOwnPropertySymbols,cN=B_?function(e){return e==null?[]:(e=Object(e),lN(B_(e),function(t){return fN.call(e,t)}))}:lT;const Jm=cN;function dN(e,t){return Ou(e,Jm(e),t)}var hN=Object.getOwnPropertySymbols,vN=hN?function(e){for(var t=[];e;)Xm(t,Jm(e)),e=Qm(e);return t}:lT;const uT=vN;function pN(e,t){return Ou(e,uT(e),t)}function fT(e,t,r){var n=t(e);return ur(e)?n:Xm(n,r(e))}function Dp(e){return fT(e,ku,Jm)}function gN(e){return fT(e,Nu,uT)}var mN=_o(Mn,"DataView");const Ip=mN;var yN=_o(Mn,"Promise");const Rp=yN;var _N=_o(Mn,"Set");const Op=_N;var F_="[object Map]",bN="[object Object]",$_="[object Promise]",H_="[object Set]",z_="[object WeakMap]",W_="[object DataView]",wN=yo(Ip),xN=yo(su),SN=yo(Rp),CN=yo(Op),TN=yo(Pp),Fa=mo;(Ip&&Fa(new Ip(new ArrayBuffer(1)))!=W_||su&&Fa(new su)!=F_||Rp&&Fa(Rp.resolve())!=$_||Op&&Fa(new Op)!=H_||Pp&&Fa(new Pp)!=z_)&&(Fa=function(e){var t=mo(e),r=t==bN?e.constructor:void 0,n=r?yo(r):"";if(n)switch(n){case wN:return W_;case xN:return F_;case SN:return $_;case CN:return H_;case TN:return z_}return t});const uu=Fa;var MN=Object.prototype,AN=MN.hasOwnProperty;function EN(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&AN.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var PN=Mn.Uint8Array;const $c=PN;function ey(e){var t=new e.constructor(e.byteLength);return new $c(t).set(new $c(e)),t}function LN(e,t){var r=t?ey(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var DN=/\w*$/;function IN(e){var t=new e.constructor(e.source,DN.exec(e));return t.lastIndex=e.lastIndex,t}var V_=nn?nn.prototype:void 0,G_=V_?V_.valueOf:void 0;function RN(e){return G_?Object(G_.call(e)):{}}function cT(e,t){var r=t?ey(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var ON="[object Boolean]",kN="[object Date]",NN="[object Map]",BN="[object Number]",FN="[object RegExp]",$N="[object Set]",HN="[object String]",zN="[object Symbol]",WN="[object ArrayBuffer]",VN="[object DataView]",GN="[object Float32Array]",UN="[object Float64Array]",YN="[object Int8Array]",qN="[object Int16Array]",jN="[object Int32Array]",KN="[object Uint8Array]",XN="[object Uint8ClampedArray]",ZN="[object Uint16Array]",QN="[object Uint32Array]";function JN(e,t,r){var n=e.constructor;switch(t){case WN:return ey(e);case ON:case kN:return new n(+e);case VN:return LN(e,r);case GN:case UN:case YN:case qN:case jN:case KN:case XN:case ZN:case QN:return cT(e,r);case NN:return new n;case BN:case HN:return new n(e);case FN:return IN(e);case $N:return new n;case zN:return RN(e)}}function dT(e){return typeof e.constructor=="function"&&!Gm(e)?UR(Qm(e)):{}}var eB="[object Map]";function tB(e){return Yn(e)&&uu(e)==eB}var U_=cs&&cs.isMap,rB=U_?Um(U_):tB;const nB=rB;var iB="[object Set]";function aB(e){return Yn(e)&&uu(e)==iB}var Y_=cs&&cs.isSet,oB=Y_?Um(Y_):aB;const sB=oB;var lB=1,uB=2,fB=4,hT="[object Arguments]",cB="[object Array]",dB="[object Boolean]",hB="[object Date]",vB="[object Error]",vT="[object Function]",pB="[object GeneratorFunction]",gB="[object Map]",mB="[object Number]",pT="[object Object]",yB="[object RegExp]",_B="[object Set]",bB="[object String]",wB="[object Symbol]",xB="[object WeakMap]",SB="[object ArrayBuffer]",CB="[object DataView]",TB="[object Float32Array]",MB="[object Float64Array]",AB="[object Int8Array]",EB="[object Int16Array]",PB="[object Int32Array]",LB="[object Uint8Array]",DB="[object Uint8ClampedArray]",IB="[object Uint16Array]",RB="[object Uint32Array]",vt={};vt[hT]=vt[cB]=vt[SB]=vt[CB]=vt[dB]=vt[hB]=vt[TB]=vt[MB]=vt[AB]=vt[EB]=vt[PB]=vt[gB]=vt[mB]=vt[pT]=vt[yB]=vt[_B]=vt[bB]=vt[wB]=vt[LB]=vt[DB]=vt[IB]=vt[RB]=!0;vt[vB]=vt[vT]=vt[xB]=!1;function lc(e,t,r,n,i,a){var o,s=t&lB,l=t&uB,u=t&fB;if(r&&(o=i?r(e,n,i,a):r(e)),o!==void 0)return o;if(!Cr(e))return e;var f=ur(e);if(f){if(o=EN(e),!s)return ZC(e,o)}else{var c=uu(e),d=c==vT||c==pB;if(au(e))return sT(e,s);if(c==pT||c==hT||d&&!i){if(o=l||d?{}:dT(e),!s)return l?pN(e,oN(o,e)):dN(e,aN(o,e))}else{if(!vt[c])return i?e:{};o=JN(e,c,s)}}a||(a=new xn);var h=a.get(e);if(h)return h;a.set(e,o),sB(e)?e.forEach(function(g){o.add(lc(g,t,r,g,e,a))}):nB(e)&&e.forEach(function(g,m){o.set(m,lc(g,t,r,m,e,a))});var v=u?l?gN:Dp:l?Nu:ku,p=f?void 0:v(e);return rO(p||e,function(g,m){p&&(m=g,g=e[m]),Wm(o,m,lc(g,t,r,m,e,a))}),o}var OB=4;function q_(e){return lc(e,OB)}var kB="__lodash_hash_undefined__";function NB(e){return this.__data__.set(e,kB),this}function BB(e){return this.__data__.has(e)}function Hc(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Si;++t<r;)this.add(e[t])}Hc.prototype.add=Hc.prototype.push=NB;Hc.prototype.has=BB;function FB(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function $B(e,t){return e.has(t)}var HB=1,zB=2;function gT(e,t,r,n,i,a){var o=r&HB,s=e.length,l=t.length;if(s!=l&&!(o&&l>s))return!1;var u=a.get(e),f=a.get(t);if(u&&f)return u==t&&f==e;var c=-1,d=!0,h=r&zB?new Hc:void 0;for(a.set(e,t),a.set(t,e);++c<s;){var v=e[c],p=t[c];if(n)var g=o?n(p,v,c,t,e,a):n(v,p,c,e,t,a);if(g!==void 0){if(g)continue;d=!1;break}if(h){if(!FB(t,function(m,y){if(!$B(h,y)&&(v===m||i(v,m,r,n,a)))return h.push(y)})){d=!1;break}}else if(!(v===p||i(v,p,r,n,a))){d=!1;break}}return a.delete(e),a.delete(t),d}function WB(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function VB(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var GB=1,UB=2,YB="[object Boolean]",qB="[object Date]",jB="[object Error]",KB="[object Map]",XB="[object Number]",ZB="[object RegExp]",QB="[object Set]",JB="[object String]",eF="[object Symbol]",tF="[object ArrayBuffer]",rF="[object DataView]",j_=nn?nn.prototype:void 0,Dh=j_?j_.valueOf:void 0;function nF(e,t,r,n,i,a,o){switch(r){case rF:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case tF:return!(e.byteLength!=t.byteLength||!a(new $c(e),new $c(t)));case YB:case qB:case XB:return Ru(+e,+t);case jB:return e.name==t.name&&e.message==t.message;case ZB:case JB:return e==t+"";case KB:var s=WB;case QB:var l=n&GB;if(s||(s=VB),e.size!=t.size&&!l)return!1;var u=o.get(e);if(u)return u==t;n|=UB,o.set(e,t);var f=gT(s(e),s(t),n,i,a,o);return o.delete(e),f;case eF:if(Dh)return Dh.call(e)==Dh.call(t)}return!1}var iF=1,aF=Object.prototype,oF=aF.hasOwnProperty;function sF(e,t,r,n,i,a){var o=r&iF,s=Dp(e),l=s.length,u=Dp(t),f=u.length;if(l!=f&&!o)return!1;for(var c=l;c--;){var d=s[c];if(!(o?d in t:oF.call(t,d)))return!1}var h=a.get(e),v=a.get(t);if(h&&v)return h==t&&v==e;var p=!0;a.set(e,t),a.set(t,e);for(var g=o;++c<l;){d=s[c];var m=e[d],y=t[d];if(n)var _=o?n(y,m,d,t,e,a):n(m,y,d,e,t,a);if(!(_===void 0?m===y||i(m,y,r,n,a):_)){p=!1;break}g||(g=d=="constructor")}if(p&&!g){var b=e.constructor,x=t.constructor;b!=x&&"constructor"in e&&"constructor"in t&&!(typeof b=="function"&&b instanceof b&&typeof x=="function"&&x instanceof x)&&(p=!1)}return a.delete(e),a.delete(t),p}var lF=1,K_="[object Arguments]",X_="[object Array]",af="[object Object]",uF=Object.prototype,Z_=uF.hasOwnProperty;function fF(e,t,r,n,i,a){var o=ur(e),s=ur(t),l=o?X_:uu(e),u=s?X_:uu(t);l=l==K_?af:l,u=u==K_?af:u;var f=l==af,c=u==af,d=l==u;if(d&&au(e)){if(!au(t))return!1;o=!0,f=!1}if(d&&!f)return a||(a=new xn),o||Ym(e)?gT(e,t,r,n,i,a):nF(e,t,l,r,n,i,a);if(!(r&lF)){var h=f&&Z_.call(e,"__wrapped__"),v=c&&Z_.call(t,"__wrapped__");if(h||v){var p=h?e.value():e,g=v?t.value():t;return a||(a=new xn),i(p,g,r,n,a)}}return d?(a||(a=new xn),sF(e,t,r,n,i,a)):!1}function $d(e,t,r,n,i){return e===t?!0:e==null||t==null||!Yn(e)&&!Yn(t)?e!==e&&t!==t:fF(e,t,r,n,$d,i)}var cF=1,dF=2;function hF(e,t,r,n){var i=r.length,a=i,o=!n;if(e==null)return!a;for(e=Object(e);i--;){var s=r[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){s=r[i];var l=s[0],u=e[l],f=s[1];if(o&&s[2]){if(u===void 0&&!(l in e))return!1}else{var c=new xn;if(n)var d=n(u,f,l,e,t,c);if(!(d===void 0?$d(f,u,cF|dF,n,c):d))return!1}}return!0}function mT(e){return e===e&&!Cr(e)}function vF(e){for(var t=ku(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,mT(i)]}return t}function yT(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function pF(e){var t=vF(e);return t.length==1&&t[0][2]?yT(t[0][0],t[0][1]):function(r){return r===e||hF(r,e,t)}}function gF(e,t){return e!=null&&t in Object(e)}function mF(e,t,r){t=Fd(t,e);for(var n=-1,i=t.length,a=!1;++n<i;){var o=Bu(t[n]);if(!(a=e!=null&&r(e,o)))break;e=e[o]}return a||++n!=i?a:(i=e==null?0:e.length,!!i&&Vm(i)&&kd(o,i)&&(ur(e)||iu(e)))}function _T(e,t){return e!=null&&mF(e,t,gF)}var yF=1,_F=2;function bF(e,t){return qm(e)&&mT(t)?yT(Bu(e),t):function(r){var n=lu(r,e);return n===void 0&&n===t?_T(r,e):$d(t,n,yF|_F)}}function wF(e){return function(t){return t==null?void 0:t[e]}}function xF(e){return function(t){return Km(t,e)}}function SF(e){return qm(e)?wF(Bu(e)):xF(e)}function CF(e){return typeof e=="function"?e:e==null?$m:typeof e=="object"?ur(e)?bF(e[0],e[1]):pF(e):SF(e)}function TF(e){return function(t,r,n){for(var i=-1,a=Object(t),o=n(t),s=o.length;s--;){var l=o[e?s:++i];if(r(a[l],l,a)===!1)break}return t}}var MF=TF();const bT=MF;function AF(e,t){return e&&bT(e,t,ku)}function EF(e,t){return function(r,n){if(r==null)return r;if(!Rs(r))return e(r,n);for(var i=r.length,a=t?i:-1,o=Object(r);(t?a--:++a<i)&&n(o[a],a,o)!==!1;);return r}}var PF=EF(AF);const LF=PF;var DF=function(){return Mn.Date.now()};const Ih=DF;var IF="Expected a function",RF=Math.max,OF=Math.min;function zc(e,t,r){var n,i,a,o,s,l,u=0,f=!1,c=!1,d=!0;if(typeof e!="function")throw new TypeError(IF);t=T_(t)||0,Cr(r)&&(f=!!r.leading,c="maxWait"in r,a=c?RF(T_(r.maxWait)||0,t):a,d="trailing"in r?!!r.trailing:d);function h(w){var S=n,C=i;return n=i=void 0,u=w,o=e.apply(C,S),o}function v(w){return u=w,s=setTimeout(m,t),f?h(w):o}function p(w){var S=w-l,C=w-u,T=t-S;return c?OF(T,a-C):T}function g(w){var S=w-l,C=w-u;return l===void 0||S>=t||S<0||c&&C>=a}function m(){var w=Ih();if(g(w))return y(w);s=setTimeout(m,p(w))}function y(w){return s=void 0,d&&n?h(w):(n=i=void 0,o)}function _(){s!==void 0&&clearTimeout(s),u=0,n=l=i=s=void 0}function b(){return s===void 0?o:y(Ih())}function x(){var w=Ih(),S=g(w);if(n=arguments,i=this,l=w,S){if(s===void 0)return v(l);if(c)return clearTimeout(s),s=setTimeout(m,t),h(l)}return s===void 0&&(s=setTimeout(m,t)),o}return x.cancel=_,x.flush=b,x}function kp(e,t,r){(r!==void 0&&!Ru(e[t],r)||r===void 0&&!(t in e))&&zm(e,t,r)}function kF(e){return Yn(e)&&Rs(e)}function Np(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function NF(e){return Ou(e,Nu(e))}function BF(e,t,r,n,i,a,o){var s=Np(e,r),l=Np(t,r),u=o.get(l);if(u){kp(e,r,u);return}var f=a?a(s,l,r+"",e,t,o):void 0,c=f===void 0;if(c){var d=ur(l),h=!d&&au(l),v=!d&&!h&&Ym(l);f=l,d||h||v?ur(s)?f=s:kF(s)?f=ZC(s):h?(c=!1,f=sT(l,!0)):v?(c=!1,f=cT(l,!0)):f=[]:Qk(l)||iu(l)?(f=s,iu(s)?f=NF(s):(!Cr(s)||Hm(s))&&(f=dT(l))):c=!1}c&&(o.set(l,f),i(f,l,n,a,o),o.delete(l)),kp(e,r,f)}function wT(e,t,r,n,i){e!==t&&bT(t,function(a,o){if(i||(i=new xn),Cr(a))BF(e,t,o,r,wT,n,i);else{var s=n?n(Np(e,o),a,o+"",e,t,i):void 0;s===void 0&&(s=a),kp(e,o,s)}},Nu)}function FF(e,t){var r=-1,n=Rs(e)?Array(e.length):[];return LF(e,function(i,a,o){n[++r]=t(i,a,o)}),n}function $F(e,t){var r=ur(e)?KC:FF;return r(e,CF(t))}function HF(e,t){return Zm($F(e,t),1)}function zF(e){for(var t=-1,r=e==null?0:e.length,n={};++t<r;){var i=e[t];n[i[0]]=i[1]}return n}function WF(e,t){return $d(e,t)}function ty(e){return e==null}var VF=fO(function(e,t,r){wT(e,t,r)});const xT=VF;function ST(e,t,r,n){if(!Cr(e))return e;t=Fd(t,e);for(var i=-1,a=t.length,o=a-1,s=e;s!=null&&++i<a;){var l=Bu(t[i]),u=r;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(i!=o){var f=s[l];u=n?n(f,l,s):void 0,u===void 0&&(u=Cr(f)?f:kd(t[i+1])?[]:{})}Wm(s,l,u),s=s[l]}return e}function GF(e,t,r){for(var n=-1,i=t.length,a={};++n<i;){var o=t[n],s=Km(e,o);r(s,o)&&ST(a,Fd(o,e),s)}return a}function UF(e,t){return GF(e,t,function(r,n){return _T(e,n)})}var YF=Uk(function(e,t){return e==null?{}:UF(e,t)});const qF=YF;function jF(e,t,r){return e==null?e:ST(e,t,r)}const uc=function(e,t,...r){let n;t.includes("mouse")||t.includes("click")?n="MouseEvents":t.includes("key")?n="KeyboardEvent":n="HTMLEvents";const i=document.createEvent(n);return i.initEvent(t,...r),e.dispatchEvent(i),e},si=(e,t,{checkForDefaultPrevented:r=!0}={})=>i=>{const a=e==null?void 0:e(i);if(r===!1||!a)return t==null?void 0:t(i)};var Q_;const Rt=typeof window<"u",gi=e=>typeof e=="boolean",_r=e=>typeof e=="number",KF=e=>typeof e=="string",Bp=()=>{};Rt&&((Q_=window==null?void 0:window.navigator)!=null&&Q_.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Wc(e){return typeof e=="function"?e():L(e)}function XF(e,t){function r(...n){return new Promise((i,a)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(i).catch(a)})}return r}function ZF(e,t={}){let r,n,i=Bp;const a=s=>{clearTimeout(s),i(),i=Bp};return s=>{const l=Wc(e),u=Wc(t.maxWait);return r&&a(r),l<=0||u!==void 0&&u<=0?(n&&(a(n),n=null),Promise.resolve(s())):new Promise((f,c)=>{i=t.rejectOnCancel?c:f,u&&!n&&(n=setTimeout(()=>{r&&a(r),n=null,f(s())},u)),r=setTimeout(()=>{n&&a(n),n=null,f(s())},l)})}}function QF(e){return e}function Hd(e){return UL()?(YL(e),!0):!1}function JF(e,t=200,r={}){return XF(ZF(t,r),e)}function e$(e,t=200,r={}){const n=H(e.value),i=JF(()=>{n.value=e.value},t,r);return Ee(e,()=>i()),n}function t$(e,t=!0){dt()?Et(e):t?e():zt(e)}function Fp(e,t,r={}){const{immediate:n=!0}=r,i=H(!1);let a=null;function o(){a&&(clearTimeout(a),a=null)}function s(){i.value=!1,o()}function l(...u){o(),i.value=!0,a=setTimeout(()=>{i.value=!1,a=null,e(...u)},Wc(t))}return n&&(i.value=!0,Rt&&l()),Hd(s),{isPending:Sd(i),start:l,stop:s}}function Wi(e){var t;const r=Wc(e);return(t=r==null?void 0:r.$el)!=null?t:r}const ry=Rt?window:void 0;function $n(...e){let t,r,n,i;if(KF(e[0])||Array.isArray(e[0])?([r,n,i]=e,t=ry):[t,r,n,i]=e,!t)return Bp;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const a=[],o=()=>{a.forEach(f=>f()),a.length=0},s=(f,c,d)=>(f.addEventListener(c,d,i),()=>f.removeEventListener(c,d,i)),l=Ee(()=>Wi(t),f=>{o(),f&&a.push(...r.flatMap(c=>n.map(d=>s(f,c,d))))},{immediate:!0,flush:"post"}),u=()=>{l(),o()};return Hd(u),u}function r$(e,t,r={}){const{window:n=ry,ignore:i=[],capture:a=!0,detectIframe:o=!1}=r;if(!n)return;let s=!0,l;const u=h=>i.some(v=>{if(typeof v=="string")return Array.from(n.document.querySelectorAll(v)).some(p=>p===h.target||h.composedPath().includes(p));{const p=Wi(v);return p&&(h.target===p||h.composedPath().includes(p))}}),f=h=>{n.clearTimeout(l);const v=Wi(e);if(!(!v||v===h.target||h.composedPath().includes(v))){if(h.detail===0&&(s=!u(h)),!s){s=!0;return}t(h)}},c=[$n(n,"click",f,{passive:!0,capture:a}),$n(n,"pointerdown",h=>{const v=Wi(e);v&&(s=!h.composedPath().includes(v)&&!u(h))},{passive:!0}),$n(n,"pointerup",h=>{if(h.button===0){const v=h.composedPath();h.composedPath=()=>v,l=n.setTimeout(()=>f(h),50)}},{passive:!0}),o&&$n(n,"blur",h=>{var v;const p=Wi(e);((v=n.document.activeElement)==null?void 0:v.tagName)==="IFRAME"&&!(p!=null&&p.contains(n.document.activeElement))&&t(h)})].filter(Boolean);return()=>c.forEach(h=>h())}function n$(e,t=!1){const r=H(),n=()=>r.value=Boolean(e());return n(),t$(n,t),r}const $p=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Hp="__vueuse_ssr_handlers__";$p[Hp]=$p[Hp]||{};$p[Hp];var J_=Object.getOwnPropertySymbols,i$=Object.prototype.hasOwnProperty,a$=Object.prototype.propertyIsEnumerable,o$=(e,t)=>{var r={};for(var n in e)i$.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&J_)for(var n of J_(e))t.indexOf(n)<0&&a$.call(e,n)&&(r[n]=e[n]);return r};function ds(e,t,r={}){const n=r,{window:i=ry}=n,a=o$(n,["window"]);let o;const s=n$(()=>i&&"ResizeObserver"in i),l=()=>{o&&(o.disconnect(),o=void 0)},u=Ee(()=>Wi(e),c=>{l(),s.value&&i&&c&&(o=new ResizeObserver(t),o.observe(c,a))},{immediate:!0,flush:"post"}),f=()=>{l(),u()};return Hd(f),{isSupported:s,stop:f}}var eb;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(eb||(eb={}));var s$=Object.defineProperty,tb=Object.getOwnPropertySymbols,l$=Object.prototype.hasOwnProperty,u$=Object.prototype.propertyIsEnumerable,rb=(e,t,r)=>t in e?s$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,f$=(e,t)=>{for(var r in t||(t={}))l$.call(t,r)&&rb(e,r,t[r]);if(tb)for(var r of tb(t))u$.call(t,r)&&rb(e,r,t[r]);return e};const c$={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]};f$({linear:QF},c$);const Vc=e=>e===void 0,hs=e=>typeof Element>"u"?!1:e instanceof Element,d$=e=>Ue(e)?!Number.isNaN(Number(e)):!1,nb=e=>Object.keys(e),fc=(e,t,r)=>({get value(){return lu(e,t,r)},set value(n){jF(e,t,n)}});class h$ extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function lo(e,t){throw new h$(`[${e}] ${t}`)}const CT=(e="")=>e.split(" ").filter(t=>!!t.trim()),Pl=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Uo=(e,t)=>{!e||!t.trim()||e.classList.add(...CT(t))},rs=(e,t)=>{!e||!t.trim()||e.classList.remove(...CT(t))},ib=(e,t)=>{var r;if(!Rt||!e||!t)return"";let n=Sn(t);n==="float"&&(n="cssFloat");try{const i=e.style[n];if(i)return i;const a=(r=document.defaultView)==null?void 0:r.getComputedStyle(e,"");return a?a[n]:""}catch{return e.style[n]}};function vs(e,t="px"){if(!e)return"";if(_r(e)||d$(e))return`${e}${t}`;if(Ue(e))return e}/*! Element Plus Icons Vue v2.0.10 */var Xn=(e,t)=>{let r=e.__vccOpts||e;for(let[n,i]of t)r[n]=i;return r},v$={name:"ArrowDown"},p$={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},g$=se("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 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.592 30.592 0 0 0-42.752 0z"},null,-1),m$=[g$];function y$(e,t,r,n,i,a){return K(),Se("svg",p$,m$)}var TT=Xn(v$,[["render",y$],["__file","arrow-down.vue"]]),_$={name:"ArrowRight"},b$={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},w$=se("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 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"},null,-1),x$=[w$];function S$(e,t,r,n,i,a){return K(),Se("svg",b$,x$)}var ny=Xn(_$,[["render",S$],["__file","arrow-right.vue"]]),C$={name:"ArrowUp"},T$={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},M$=se("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 0z"},null,-1),A$=[M$];function E$(e,t,r,n,i,a){return K(),Se("svg",T$,A$)}var P$=Xn(C$,[["render",E$],["__file","arrow-up.vue"]]),L$={name:"CircleCloseFilled"},D$={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},I$=se("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 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.336L512 457.664z"},null,-1),R$=[I$];function O$(e,t,r,n,i,a){return K(),Se("svg",D$,R$)}var MT=Xn(L$,[["render",O$],["__file","circle-close-filled.vue"]]),k$={name:"Close"},N$={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},B$=se("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"},null,-1),F$=[B$];function $$(e,t,r,n,i,a){return K(),Se("svg",N$,F$)}var zp=Xn(k$,[["render",$$],["__file","close.vue"]]),H$={name:"InfoFilled"},z$={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},W$=se("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64zm67.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.344zM590.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.992 12.992 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"},null,-1),V$=[W$];function G$(e,t,r,n,i,a){return K(),Se("svg",z$,V$)}var AT=Xn(H$,[["render",G$],["__file","info-filled.vue"]]),U$={name:"Loading"},Y$={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},q$=se("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32zm448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32zm-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32zM195.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.248zm452.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.248zM828.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 0zm-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 0z"},null,-1),j$=[q$];function K$(e,t,r,n,i,a){return K(),Se("svg",Y$,j$)}var ET=Xn(U$,[["render",K$],["__file","loading.vue"]]),X$={name:"More"},Z$={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Q$=se("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-96zm336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96zm336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96z"},null,-1),J$=[Q$];function e5(e,t,r,n,i,a){return K(),Se("svg",Z$,J$)}var t5=Xn(X$,[["render",e5],["__file","more.vue"]]),r5={name:"SuccessFilled"},n5={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},i5=se("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336L456.192 600.384z"},null,-1),a5=[i5];function o5(e,t,r,n,i,a){return K(),Se("svg",n5,a5)}var PT=Xn(r5,[["render",o5],["__file","success-filled.vue"]]),s5={name:"WarningFilled"},l5={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},u5=se("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256zm0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4z"},null,-1),f5=[u5];function c5(e,t,r,n,i,a){return K(),Se("svg",l5,f5)}var LT=Xn(s5,[["render",c5],["__file","warning-filled.vue"]]);const DT="__epPropKey",Pe=e=>e,d5=e=>Ke(e)&&!!e[DT],zd=(e,t)=>{if(!Ke(e)||d5(e))return e;const{values:r,required:n,default:i,type:a,validator:o}=e,l={type:a,required:!!n,validator:r||o?u=>{let f=!1,c=[];if(r&&(c=Array.from(r),ze(e,"default")&&c.push(i),f||(f=c.includes(u))),o&&(f||(f=o(u))),!f&&c.length>0){const d=[...new Set(c)].map(h=>JSON.stringify(h)).join(", ");CD(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${d}], got value ${JSON.stringify(u)}.`)}return f}:void 0,[DT]:!0};return ze(e,"default")&&(l.default=i),l},ot=e=>zF(Object.entries(e).map(([t,r])=>[t,zd(r,t)])),Vi=Pe([String,Object,Function]),h5={Close:zp,SuccessFilled:PT,InfoFilled:AT,WarningFilled:LT,CircleCloseFilled:MT},ab={success:PT,warning:LT,error:MT,info:AT},Er=(e,t)=>{if(e.install=r=>{for(const n of[e,...Object.values(t??{})])r.component(n.name,n)},t)for(const[r,n]of Object.entries(t))e[r]=n;return e},v5=(e,t)=>(e.install=r=>{e._context=r._context,r.config.globalProperties[t]=e},e),p5=(e,t)=>(e.install=r=>{r.directive(t,e)},e),aa=e=>(e.install=sr,e),Lt={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"},Wd="update:modelValue",Vd=["","default","small","large"],cc=e=>{const t=ye(e)?e:[e],r=[];return t.forEach(n=>{var i;ye(n)?r.push(...cc(n)):Ji(n)&&ye(n.children)?r.push(...cc(n.children)):(r.push(n),Ji(n)&&((i=n.component)!=null&&i.subTree)&&r.push(...cc(n.component.subTree)))}),r},Va=e=>e,IT=Symbol("buttonGroupContextKey"),Os=Symbol("checkboxGroupContextKey"),RT=Symbol(),ks=Symbol("formContextKey"),uo=Symbol("formItemContextKey"),OT=Symbol("rowContextKey"),kT=Symbol("scrollbarContextKey"),iy=Symbol("popper"),NT=Symbol("popperContent"),ay=Symbol("elTooltip"),BT=e=>{const t=dt();return $(()=>{var r,n;return(n=((r=t.proxy)==null?void 0:r.$props)[e])!=null?n:void 0})},Gc=H();function oa(e,t=void 0){const r=dt()?Re(RT,Gc):Gc;return e?$(()=>{var n,i;return(i=(n=r.value)==null?void 0:n[e])!=null?i:t}):r}const g5=(e,t,r=!1)=>{var n;const i=!!dt(),a=i?oa():void 0,o=(n=t==null?void 0:t.provide)!=null?n:i?Ct:void 0;if(!o)return;const s=$(()=>{const l=L(e);return a!=null&&a.value?m5(a.value,l):l});return o(RT,s),(r||!Gc.value)&&(Gc.value=s.value),s},m5=(e,t)=>{var r;const n=[...new Set([...nb(e),...nb(t)])],i={};for(const a of n)i[a]=(r=t[a])!=null?r:e[a];return i},Gd=zd({type:String,values:Vd,required:!1}),fo=(e,t={})=>{const r=H(void 0),n=t.prop?r:BT("size"),i=t.global?r:oa("size"),a=t.form?{size:void 0}:Re(ks,void 0),o=t.formItem?{size:void 0}:Re(uo,void 0);return $(()=>n.value||L(e)||(o==null?void 0:o.size)||(a==null?void 0:a.size)||i.value||"")},oy=e=>{const t=BT("disabled"),r=Re(ks,void 0);return $(()=>t.value||L(e)||(r==null?void 0:r.disabled)||!1)},y5=({from:e,replacement:t,scope:r,version:n,ref:i,type:a="API"},o)=>{Ee(()=>L(o),s=>{},{immediate:!0})},sy="el",_5="is-",da=(e,t,r,n,i)=>{let a=`${e}-${t}`;return r&&(a+=`-${r}`),n&&(a+=`__${n}`),i&&(a+=`--${i}`),a},Ne=e=>{const t=oa("namespace",sy);return{namespace:t,b:(v="")=>da(t.value,e,v,"",""),e:v=>v?da(t.value,e,"",v,""):"",m:v=>v?da(t.value,e,"","",v):"",be:(v,p)=>v&&p?da(t.value,e,v,p,""):"",em:(v,p)=>v&&p?da(t.value,e,"",v,p):"",bm:(v,p)=>v&&p?da(t.value,e,v,"",p):"",bem:(v,p,g)=>v&&p&&g?da(t.value,e,v,p,g):"",is:(v,...p)=>{const g=p.length>=1?p[0]:!0;return v&&g?`${_5}${v}`:""},cssVar:v=>{const p={};for(const g in v)v[g]&&(p[`--${t.value}-${g}`]=v[g]);return p},cssVarName:v=>`--${t.value}-${v}`,cssVarBlock:v=>{const p={};for(const g in v)v[g]&&(p[`--${t.value}-${e}-${g}`]=v[g]);return p},cssVarBlockName:v=>`--${t.value}-${e}-${v}`}},ob={prefix:Math.floor(Math.random()*1e4),current:0},b5=Symbol("elIdInjection"),FT=()=>dt()?Re(b5,ob):ob,ly=e=>{const t=FT(),r=oa("namespace",sy);return $(()=>L(e)||`${r.value}-id-${t.prefix}-${t.current++}`)},Ud=()=>{const e=Re(ks,void 0),t=Re(uo,void 0);return{form:e,formItem:t}},$T=(e,{formItemContext:t,disableIdGeneration:r,disableIdManagement:n})=>{r||(r=H(!1)),n||(n=H(!1));const i=H();let a;const o=$(()=>{var s;return!!(!e.label&&t&&t.inputIds&&((s=t.inputIds)==null?void 0:s.length)<=1)});return Et(()=>{a=Ee([wn(e,"id"),r],([s,l])=>{const u=s??(l?void 0:ly().value);u!==i.value&&(t!=null&&t.removeInputId&&(i.value&&t.removeInputId(i.value),!(n!=null&&n.value)&&!l&&u&&t.addInputId(u)),i.value=u)},{immediate:!0})}),Iu(()=>{a&&a(),t!=null&&t.removeInputId&&i.value&&t.removeInputId(i.value)}),{isLabeledByFormItem:o,inputId:i}};var w5={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 x5=e=>(t,r)=>S5(t,r,L(e)),S5=(e,t,r)=>lu(r,e,e).replace(/\{(\w+)\}/g,(n,i)=>{var a;return`${(a=t==null?void 0:t[i])!=null?a:`{${i}}`}`}),C5=e=>{const t=$(()=>L(e).name),r=St(e)?e:H(e);return{lang:t,locale:r,t:x5(e)}},HT=()=>{const e=oa("locale");return C5($(()=>e.value||w5))},T5=zd({type:Pe(Boolean),default:null}),M5=zd({type:Pe(Function)}),A5=e=>{const t=`update:${e}`,r=`onUpdate:${e}`,n=[t],i={[e]:T5,[r]:M5};return{useModelToggle:({indicator:o,toggleReason:s,shouldHideWhenRouteChanges:l,shouldProceed:u,onShow:f,onHide:c})=>{const d=dt(),{emit:h}=d,v=d.props,p=$(()=>Le(v[r])),g=$(()=>v[e]===null),m=S=>{o.value!==!0&&(o.value=!0,s&&(s.value=S),Le(f)&&f(S))},y=S=>{o.value!==!1&&(o.value=!1,s&&(s.value=S),Le(c)&&c(S))},_=S=>{if(v.disabled===!0||Le(u)&&!u())return;const C=p.value&&Rt;C&&h(t,!0),(g.value||!C)&&m(S)},b=S=>{if(v.disabled===!0||!Rt)return;const C=p.value&&Rt;C&&h(t,!1),(g.value||!C)&&y(S)},x=S=>{gi(S)&&(v.disabled&&S?p.value&&h(t,!1):o.value!==S&&(S?m():y()))},w=()=>{o.value?b():_()};return Ee(()=>v[e],x),l&&d.appContext.config.globalProperties.$route!==void 0&&Ee(()=>({...d.proxy.$route}),()=>{l.value&&o.value&&b()}),Et(()=>{x(v[e])}),{hide:b,show:_,toggle:w,hasUpdateHandler:p}},useModelToggleProps:i,useModelToggleEmits:n}};var wr="top",an="bottom",on="right",xr="left",uy="auto",Fu=[wr,an,on,xr],ps="start",fu="end",E5="clippingParents",zT="viewport",Ys="popper",P5="reference",sb=Fu.reduce(function(e,t){return e.concat([t+"-"+ps,t+"-"+fu])},[]),fy=[].concat(Fu,[uy]).reduce(function(e,t){return e.concat([t,t+"-"+ps,t+"-"+fu])},[]),L5="beforeRead",D5="read",I5="afterRead",R5="beforeMain",O5="main",k5="afterMain",N5="beforeWrite",B5="write",F5="afterWrite",$5=[L5,D5,I5,R5,O5,k5,N5,B5,F5];function qn(e){return e?(e.nodeName||"").toLowerCase():null}function An(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function gs(e){var t=An(e).Element;return e instanceof t||e instanceof Element}function tn(e){var t=An(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function cy(e){if(typeof ShadowRoot>"u")return!1;var t=An(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function H5(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},i=t.attributes[r]||{},a=t.elements[r];!tn(a)||!qn(a)||(Object.assign(a.style,n),Object.keys(i).forEach(function(o){var s=i[o];s===!1?a.removeAttribute(o):a.setAttribute(o,s===!0?"":s)}))})}function z5(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var i=t.elements[n],a=t.attributes[n]||{},o=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),s=o.reduce(function(l,u){return l[u]="",l},{});!tn(i)||!qn(i)||(Object.assign(i.style,s),Object.keys(a).forEach(function(l){i.removeAttribute(l)}))})}}var WT={name:"applyStyles",enabled:!0,phase:"write",fn:H5,effect:z5,requires:["computeStyles"]};function Gn(e){return e.split("-")[0]}var to=Math.max,Uc=Math.min,ms=Math.round;function ys(e,t){t===void 0&&(t=!1);var r=e.getBoundingClientRect(),n=1,i=1;if(tn(e)&&t){var a=e.offsetHeight,o=e.offsetWidth;o>0&&(n=ms(r.width)/o||1),a>0&&(i=ms(r.height)/a||1)}return{width:r.width/n,height:r.height/i,top:r.top/i,right:r.right/n,bottom:r.bottom/i,left:r.left/n,x:r.left/n,y:r.top/i}}function dy(e){var t=ys(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function VT(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&cy(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function mi(e){return An(e).getComputedStyle(e)}function W5(e){return["table","td","th"].indexOf(qn(e))>=0}function sa(e){return((gs(e)?e.ownerDocument:e.document)||window.document).documentElement}function Yd(e){return qn(e)==="html"?e:e.assignedSlot||e.parentNode||(cy(e)?e.host:null)||sa(e)}function lb(e){return!tn(e)||mi(e).position==="fixed"?null:e.offsetParent}function V5(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,r=navigator.userAgent.indexOf("Trident")!==-1;if(r&&tn(e)){var n=mi(e);if(n.position==="fixed")return null}var i=Yd(e);for(cy(i)&&(i=i.host);tn(i)&&["html","body"].indexOf(qn(i))<0;){var a=mi(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function $u(e){for(var t=An(e),r=lb(e);r&&W5(r)&&mi(r).position==="static";)r=lb(r);return r&&(qn(r)==="html"||qn(r)==="body"&&mi(r).position==="static")?t:r||V5(e)||t}function hy(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ll(e,t,r){return to(e,Uc(t,r))}function G5(e,t,r){var n=Ll(e,t,r);return n>r?r:n}function GT(){return{top:0,right:0,bottom:0,left:0}}function UT(e){return Object.assign({},GT(),e)}function YT(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var U5=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,UT(typeof e!="number"?e:YT(e,Fu))};function Y5(e){var t,r=e.state,n=e.name,i=e.options,a=r.elements.arrow,o=r.modifiersData.popperOffsets,s=Gn(r.placement),l=hy(s),u=[xr,on].indexOf(s)>=0,f=u?"height":"width";if(!(!a||!o)){var c=U5(i.padding,r),d=dy(a),h=l==="y"?wr:xr,v=l==="y"?an:on,p=r.rects.reference[f]+r.rects.reference[l]-o[l]-r.rects.popper[f],g=o[l]-r.rects.reference[l],m=$u(a),y=m?l==="y"?m.clientHeight||0:m.clientWidth||0:0,_=p/2-g/2,b=c[h],x=y-d[f]-c[v],w=y/2-d[f]/2+_,S=Ll(b,w,x),C=l;r.modifiersData[n]=(t={},t[C]=S,t.centerOffset=S-w,t)}}function q5(e){var t=e.state,r=e.options,n=r.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||!VT(t.elements.popper,i)||(t.elements.arrow=i))}var j5={name:"arrow",enabled:!0,phase:"main",fn:Y5,effect:q5,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function _s(e){return e.split("-")[1]}var K5={top:"auto",right:"auto",bottom:"auto",left:"auto"};function X5(e){var t=e.x,r=e.y,n=window,i=n.devicePixelRatio||1;return{x:ms(t*i)/i||0,y:ms(r*i)/i||0}}function ub(e){var t,r=e.popper,n=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,f=e.roundOffsets,c=e.isFixed,d=o.x,h=d===void 0?0:d,v=o.y,p=v===void 0?0:v,g=typeof f=="function"?f({x:h,y:p}):{x:h,y:p};h=g.x,p=g.y;var m=o.hasOwnProperty("x"),y=o.hasOwnProperty("y"),_=xr,b=wr,x=window;if(u){var w=$u(r),S="clientHeight",C="clientWidth";if(w===An(r)&&(w=sa(r),mi(w).position!=="static"&&s==="absolute"&&(S="scrollHeight",C="scrollWidth")),w=w,i===wr||(i===xr||i===on)&&a===fu){b=an;var T=c&&w===x&&x.visualViewport?x.visualViewport.height:w[S];p-=T-n.height,p*=l?1:-1}if(i===xr||(i===wr||i===an)&&a===fu){_=on;var E=c&&w===x&&x.visualViewport?x.visualViewport.width:w[C];h-=E-n.width,h*=l?1:-1}}var A=Object.assign({position:s},u&&K5),M=f===!0?X5({x:h,y:p}):{x:h,y:p};if(h=M.x,p=M.y,l){var D;return Object.assign({},A,(D={},D[b]=y?"0":"",D[_]=m?"0":"",D.transform=(x.devicePixelRatio||1)<=1?"translate("+h+"px, "+p+"px)":"translate3d("+h+"px, "+p+"px, 0)",D))}return Object.assign({},A,(t={},t[b]=y?p+"px":"",t[_]=m?h+"px":"",t.transform="",t))}function Z5(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=n===void 0?!0:n,a=r.adaptive,o=a===void 0?!0:a,s=r.roundOffsets,l=s===void 0?!0:s,u={placement:Gn(t.placement),variation:_s(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,ub(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ub(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var qT={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Z5,data:{}},of={passive:!0};function Q5(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,a=i===void 0?!0:i,o=n.resize,s=o===void 0?!0:o,l=An(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach(function(f){f.addEventListener("scroll",r.update,of)}),s&&l.addEventListener("resize",r.update,of),function(){a&&u.forEach(function(f){f.removeEventListener("scroll",r.update,of)}),s&&l.removeEventListener("resize",r.update,of)}}var jT={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Q5,data:{}},J5={left:"right",right:"left",bottom:"top",top:"bottom"};function dc(e){return e.replace(/left|right|bottom|top/g,function(t){return J5[t]})}var e3={start:"end",end:"start"};function fb(e){return e.replace(/start|end/g,function(t){return e3[t]})}function vy(e){var t=An(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function py(e){return ys(sa(e)).left+vy(e).scrollLeft}function t3(e){var t=An(e),r=sa(e),n=t.visualViewport,i=r.clientWidth,a=r.clientHeight,o=0,s=0;return n&&(i=n.width,a=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=n.offsetLeft,s=n.offsetTop)),{width:i,height:a,x:o+py(e),y:s}}function r3(e){var t,r=sa(e),n=vy(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=to(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=to(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+py(e),l=-n.scrollTop;return mi(i||r).direction==="rtl"&&(s+=to(r.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:s,y:l}}function gy(e){var t=mi(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function KT(e){return["html","body","#document"].indexOf(qn(e))>=0?e.ownerDocument.body:tn(e)&&gy(e)?e:KT(Yd(e))}function Dl(e,t){var r;t===void 0&&(t=[]);var n=KT(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),a=An(n),o=i?[a].concat(a.visualViewport||[],gy(n)?n:[]):n,s=t.concat(o);return i?s:s.concat(Dl(Yd(o)))}function Wp(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function n3(e){var t=ys(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 cb(e,t){return t===zT?Wp(t3(e)):gs(t)?n3(t):Wp(r3(sa(e)))}function i3(e){var t=Dl(Yd(e)),r=["absolute","fixed"].indexOf(mi(e).position)>=0,n=r&&tn(e)?$u(e):e;return gs(n)?t.filter(function(i){return gs(i)&&VT(i,n)&&qn(i)!=="body"}):[]}function a3(e,t,r){var n=t==="clippingParents"?i3(e):[].concat(t),i=[].concat(n,[r]),a=i[0],o=i.reduce(function(s,l){var u=cb(e,l);return s.top=to(u.top,s.top),s.right=Uc(u.right,s.right),s.bottom=Uc(u.bottom,s.bottom),s.left=to(u.left,s.left),s},cb(e,a));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function XT(e){var t=e.reference,r=e.element,n=e.placement,i=n?Gn(n):null,a=n?_s(n):null,o=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,l;switch(i){case wr:l={x:o,y:t.y-r.height};break;case an:l={x:o,y:t.y+t.height};break;case on:l={x:t.x+t.width,y:s};break;case xr:l={x:t.x-r.width,y:s};break;default:l={x:t.x,y:t.y}}var u=i?hy(i):null;if(u!=null){var f=u==="y"?"height":"width";switch(a){case ps:l[u]=l[u]-(t[f]/2-r[f]/2);break;case fu:l[u]=l[u]+(t[f]/2-r[f]/2);break}}return l}function cu(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=n===void 0?e.placement:n,a=r.boundary,o=a===void 0?E5:a,s=r.rootBoundary,l=s===void 0?zT:s,u=r.elementContext,f=u===void 0?Ys:u,c=r.altBoundary,d=c===void 0?!1:c,h=r.padding,v=h===void 0?0:h,p=UT(typeof v!="number"?v:YT(v,Fu)),g=f===Ys?P5:Ys,m=e.rects.popper,y=e.elements[d?g:f],_=a3(gs(y)?y:y.contextElement||sa(e.elements.popper),o,l),b=ys(e.elements.reference),x=XT({reference:b,element:m,strategy:"absolute",placement:i}),w=Wp(Object.assign({},m,x)),S=f===Ys?w:b,C={top:_.top-S.top+p.top,bottom:S.bottom-_.bottom+p.bottom,left:_.left-S.left+p.left,right:S.right-_.right+p.right},T=e.modifiersData.offset;if(f===Ys&&T){var E=T[i];Object.keys(C).forEach(function(A){var M=[on,an].indexOf(A)>=0?1:-1,D=[wr,an].indexOf(A)>=0?"y":"x";C[A]+=E[D]*M})}return C}function o3(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=r.boundary,a=r.rootBoundary,o=r.padding,s=r.flipVariations,l=r.allowedAutoPlacements,u=l===void 0?fy:l,f=_s(n),c=f?s?sb:sb.filter(function(v){return _s(v)===f}):Fu,d=c.filter(function(v){return u.indexOf(v)>=0});d.length===0&&(d=c);var h=d.reduce(function(v,p){return v[p]=cu(e,{placement:p,boundary:i,rootBoundary:a,padding:o})[Gn(p)],v},{});return Object.keys(h).sort(function(v,p){return h[v]-h[p]})}function s3(e){if(Gn(e)===uy)return[];var t=dc(e);return[fb(e),t,fb(t)]}function l3(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,a=i===void 0?!0:i,o=r.altAxis,s=o===void 0?!0:o,l=r.fallbackPlacements,u=r.padding,f=r.boundary,c=r.rootBoundary,d=r.altBoundary,h=r.flipVariations,v=h===void 0?!0:h,p=r.allowedAutoPlacements,g=t.options.placement,m=Gn(g),y=m===g,_=l||(y||!v?[dc(g)]:s3(g)),b=[g].concat(_).reduce(function(Me,V){return Me.concat(Gn(V)===uy?o3(t,{placement:V,boundary:f,rootBoundary:c,padding:u,flipVariations:v,allowedAutoPlacements:p}):V)},[]),x=t.rects.reference,w=t.rects.popper,S=new Map,C=!0,T=b[0],E=0;E<b.length;E++){var A=b[E],M=Gn(A),D=_s(A)===ps,O=[wr,an].indexOf(M)>=0,k=O?"width":"height",F=cu(t,{placement:A,boundary:f,rootBoundary:c,altBoundary:d,padding:u}),j=O?D?on:xr:D?an:wr;x[k]>w[k]&&(j=dc(j));var B=dc(j),N=[];if(a&&N.push(F[M]<=0),s&&N.push(F[j]<=0,F[B]<=0),N.every(function(Me){return Me})){T=A,C=!1;break}S.set(A,N)}if(C)for(var U=v?3:1,re=function(Me){var V=b.find(function(J){var W=S.get(J);if(W)return W.slice(0,Me).every(function(Y){return Y})});if(V)return T=V,"break"},ae=U;ae>0;ae--){var me=re(ae);if(me==="break")break}t.placement!==T&&(t.modifiersData[n]._skip=!0,t.placement=T,t.reset=!0)}}var u3={name:"flip",enabled:!0,phase:"main",fn:l3,requiresIfExists:["offset"],data:{_skip:!1}};function db(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function hb(e){return[wr,on,an,xr].some(function(t){return e[t]>=0})}function f3(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=cu(t,{elementContext:"reference"}),s=cu(t,{altBoundary:!0}),l=db(o,n),u=db(s,i,a),f=hb(l),c=hb(u);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:f,hasPopperEscaped:c},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":c})}var c3={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:f3};function d3(e,t,r){var n=Gn(e),i=[xr,wr].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,o=a[0],s=a[1];return o=o||0,s=(s||0)*i,[xr,on].indexOf(n)>=0?{x:s,y:o}:{x:o,y:s}}function h3(e){var t=e.state,r=e.options,n=e.name,i=r.offset,a=i===void 0?[0,0]:i,o=fy.reduce(function(f,c){return f[c]=d3(c,t.rects,a),f},{}),s=o[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=o}var v3={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:h3};function p3(e){var t=e.state,r=e.name;t.modifiersData[r]=XT({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var ZT={name:"popperOffsets",enabled:!0,phase:"read",fn:p3,data:{}};function g3(e){return e==="x"?"y":"x"}function m3(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,a=i===void 0?!0:i,o=r.altAxis,s=o===void 0?!1:o,l=r.boundary,u=r.rootBoundary,f=r.altBoundary,c=r.padding,d=r.tether,h=d===void 0?!0:d,v=r.tetherOffset,p=v===void 0?0:v,g=cu(t,{boundary:l,rootBoundary:u,padding:c,altBoundary:f}),m=Gn(t.placement),y=_s(t.placement),_=!y,b=hy(m),x=g3(b),w=t.modifiersData.popperOffsets,S=t.rects.reference,C=t.rects.popper,T=typeof p=="function"?p(Object.assign({},t.rects,{placement:t.placement})):p,E=typeof T=="number"?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(w){if(a){var D,O=b==="y"?wr:xr,k=b==="y"?an:on,F=b==="y"?"height":"width",j=w[b],B=j+g[O],N=j-g[k],U=h?-C[F]/2:0,re=y===ps?S[F]:C[F],ae=y===ps?-C[F]:-S[F],me=t.elements.arrow,Me=h&&me?dy(me):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:GT(),J=V[O],W=V[k],Y=Ll(0,S[F],Me[F]),le=_?S[F]/2-U-Y-J-E.mainAxis:re-Y-J-E.mainAxis,he=_?-S[F]/2+U+Y+W+E.mainAxis:ae+Y+W+E.mainAxis,Q=t.elements.arrow&&$u(t.elements.arrow),P=Q?b==="y"?Q.clientTop||0:Q.clientLeft||0:0,I=(D=A==null?void 0:A[b])!=null?D:0,z=j+le-I-P,G=j+he-I,q=Ll(h?Uc(B,z):B,j,h?to(N,G):N);w[b]=q,M[b]=q-j}if(s){var ne,ce=b==="x"?wr:xr,te=b==="x"?an:on,ie=w[x],X=x==="y"?"height":"width",_e=ie+g[ce],ve=ie-g[te],be=[wr,xr].indexOf(m)!==-1,Ie=(ne=A==null?void 0:A[x])!=null?ne:0,Fe=be?_e:ie-S[X]-C[X]-Ie+E.altAxis,rt=be?ie+S[X]+C[X]-Ie-E.altAxis:ve,et=h&&be?G5(Fe,ie,rt):Ll(h?Fe:_e,ie,h?rt:ve);w[x]=et,M[x]=et-ie}t.modifiersData[n]=M}}var y3={name:"preventOverflow",enabled:!0,phase:"main",fn:m3,requiresIfExists:["offset"]};function _3(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function b3(e){return e===An(e)||!tn(e)?vy(e):_3(e)}function w3(e){var t=e.getBoundingClientRect(),r=ms(t.width)/e.offsetWidth||1,n=ms(t.height)/e.offsetHeight||1;return r!==1||n!==1}function x3(e,t,r){r===void 0&&(r=!1);var n=tn(t),i=tn(t)&&w3(t),a=sa(t),o=ys(e,i),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((qn(t)!=="body"||gy(a))&&(s=b3(t)),tn(t)?(l=ys(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=py(a))),{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function S3(e){var t=new Map,r=new Set,n=[];e.forEach(function(a){t.set(a.name,a)});function i(a){r.add(a.name);var o=[].concat(a.requires||[],a.requiresIfExists||[]);o.forEach(function(s){if(!r.has(s)){var l=t.get(s);l&&i(l)}}),n.push(a)}return e.forEach(function(a){r.has(a.name)||i(a)}),n}function C3(e){var t=S3(e);return $5.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function T3(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function M3(e){var t=e.reduce(function(r,n){var i=r[n.name];return r[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var vb={placement:"bottom",modifiers:[],strategy:"absolute"};function pb(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function my(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,i=t.defaultOptions,a=i===void 0?vb:i;return function(o,s,l){l===void 0&&(l=a);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},vb,a),modifiersData:{},elements:{reference:o,popper:s},attributes:{},styles:{}},f=[],c=!1,d={state:u,setOptions:function(p){var g=typeof p=="function"?p(u.options):p;v(),u.options=Object.assign({},a,u.options,g),u.scrollParents={reference:gs(o)?Dl(o):o.contextElement?Dl(o.contextElement):[],popper:Dl(s)};var m=C3(M3([].concat(n,u.options.modifiers)));return u.orderedModifiers=m.filter(function(y){return y.enabled}),h(),d.update()},forceUpdate:function(){if(!c){var p=u.elements,g=p.reference,m=p.popper;if(pb(g,m)){u.rects={reference:x3(g,$u(m),u.options.strategy==="fixed"),popper:dy(m)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(C){return u.modifiersData[C.name]=Object.assign({},C.data)});for(var y=0;y<u.orderedModifiers.length;y++){if(u.reset===!0){u.reset=!1,y=-1;continue}var _=u.orderedModifiers[y],b=_.fn,x=_.options,w=x===void 0?{}:x,S=_.name;typeof b=="function"&&(u=b({state:u,options:w,name:S,instance:d})||u)}}}},update:T3(function(){return new Promise(function(p){d.forceUpdate(),p(u)})}),destroy:function(){v(),c=!0}};if(!pb(o,s))return d;d.setOptions(l).then(function(p){!c&&l.onFirstUpdate&&l.onFirstUpdate(p)});function h(){u.orderedModifiers.forEach(function(p){var g=p.name,m=p.options,y=m===void 0?{}:m,_=p.effect;if(typeof _=="function"){var b=_({state:u,name:g,instance:d,options:y}),x=function(){};f.push(b||x)}})}function v(){f.forEach(function(p){return p()}),f=[]}return d}}my();var A3=[jT,ZT,qT,WT];my({defaultModifiers:A3});var E3=[jT,ZT,qT,WT,v3,u3,y3,j5,c3],QT=my({defaultModifiers:E3});function P3(){let e;const t=(n,i)=>{r(),e=window.setTimeout(n,i)},r=()=>window.clearTimeout(e);return Hd(()=>r()),{registerTimeout:t,cancelTimeout:r}}let zo=[];const gb=e=>{const t=e;t.key===Lt.esc&&zo.forEach(r=>r(t))},L3=e=>{Et(()=>{zo.length===0&&document.addEventListener("keydown",gb),Rt&&zo.push(e)}),rr(()=>{zo=zo.filter(t=>t!==e),zo.length===0&&Rt&&document.removeEventListener("keydown",gb)})};let mb;const JT=()=>{const e=oa("namespace",sy),t=FT(),r=$(()=>`${e.value}-popper-container-${t.prefix}`),n=$(()=>`#${r.value}`);return{id:r,selector:n}},D3=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},I3=()=>{Pd(()=>{if(!Rt)return;const{id:e,selector:t}=JT();!mb&&!document.body.querySelector(t.value)&&(mb=D3(e.value))})},R3=ot({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200}}),eM=({showAfter:e,hideAfter:t,open:r,close:n})=>{const{registerTimeout:i}=P3();return{onOpen:s=>{i(()=>{r(s)},L(e))},onClose:s=>{i(()=>{n(s)},L(t))}}},tM=Symbol("elForwardRef"),O3=e=>{Ct(tM,{setForwardRef:r=>{e.value=r}})},k3=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),yb=H(0),yy=()=>{const e=oa("zIndex",2e3),t=$(()=>e.value+yb.value);return{initialZIndex:e,currentZIndex:t,nextZIndex:()=>(yb.value++,t.value)}};var Je=(e,t)=>{const r=e.__vccOpts||e;for(const[n,i]of t)r[n]=i;return r};const N3=ot({size:{type:Pe([Number,String])},color:{type:String}}),B3=ue({name:"ElIcon",inheritAttrs:!1}),F3=ue({...B3,props:N3,setup(e){const t=e,r=Ne("icon"),n=$(()=>{const{size:i,color:a}=t;return!i&&!a?{}:{fontSize:Vc(i)?void 0:vs(i),"--color":a}});return(i,a)=>(K(),Se("i",go({class:L(r).b(),style:L(n)},i.$attrs),[Be(i.$slots,"default")],16))}});var $3=Je(F3,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const Cn=Er($3),Yo=4,H3={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"}},z3=({move:e,size:t,bar:r})=>({[r.size]:t,transform:`translate${r.axis}(${e}%)`}),W3=ot({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),V3="Thumb",G3=ue({__name:"thumb",props:W3,setup(e){const t=e,r=Re(kT),n=Ne("scrollbar");r||lo(V3,"can not inject scrollbar context");const i=H(),a=H(),o=H({}),s=H(!1);let l=!1,u=!1,f=Rt?document.onselectstart:null;const c=$(()=>H3[t.vertical?"vertical":"horizontal"]),d=$(()=>z3({size:t.size,move:t.move,bar:c.value})),h=$(()=>i.value[c.value.offset]**2/r.wrapElement[c.value.scrollSize]/t.ratio/a.value[c.value.offset]),v=w=>{var S;if(w.stopPropagation(),w.ctrlKey||[1,2].includes(w.button))return;(S=window.getSelection())==null||S.removeAllRanges(),g(w);const C=w.currentTarget;C&&(o.value[c.value.axis]=C[c.value.offset]-(w[c.value.client]-C.getBoundingClientRect()[c.value.direction]))},p=w=>{if(!a.value||!i.value||!r.wrapElement)return;const S=Math.abs(w.target.getBoundingClientRect()[c.value.direction]-w[c.value.client]),C=a.value[c.value.offset]/2,T=(S-C)*100*h.value/i.value[c.value.offset];r.wrapElement[c.value.scroll]=T*r.wrapElement[c.value.scrollSize]/100},g=w=>{w.stopImmediatePropagation(),l=!0,document.addEventListener("mousemove",m),document.addEventListener("mouseup",y),f=document.onselectstart,document.onselectstart=()=>!1},m=w=>{if(!i.value||!a.value||l===!1)return;const S=o.value[c.value.axis];if(!S)return;const C=(i.value.getBoundingClientRect()[c.value.direction]-w[c.value.client])*-1,T=a.value[c.value.offset]-S,E=(C-T)*100*h.value/i.value[c.value.offset];r.wrapElement[c.value.scroll]=E*r.wrapElement[c.value.scrollSize]/100},y=()=>{l=!1,o.value[c.value.axis]=0,document.removeEventListener("mousemove",m),document.removeEventListener("mouseup",y),x(),u&&(s.value=!1)},_=()=>{u=!1,s.value=!!t.size},b=()=>{u=!0,s.value=l};rr(()=>{x(),document.removeEventListener("mouseup",y)});const x=()=>{document.onselectstart!==f&&(document.onselectstart=f)};return $n(wn(r,"scrollbarElement"),"mousemove",_),$n(wn(r,"scrollbarElement"),"mouseleave",b),(w,S)=>(K(),xe(Kn,{name:L(n).b("fade"),persisted:""},{default:Z(()=>[qt(se("div",{ref_key:"instance",ref:i,class:de([L(n).e("bar"),L(n).is(L(c).key)]),onMousedown:p},[se("div",{ref_key:"thumb",ref:a,class:de(L(n).e("thumb")),style:At(L(d)),onMousedown:v},null,38)],34),[[pi,w.always||s.value]])]),_:1},8,["name"]))}});var _b=Je(G3,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const U3=ot({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),Y3=ue({__name:"bar",props:U3,setup(e,{expose:t}){const r=e,n=H(0),i=H(0);return t({handleScroll:o=>{if(o){const s=o.offsetHeight-Yo,l=o.offsetWidth-Yo;i.value=o.scrollTop*100/s*r.ratioY,n.value=o.scrollLeft*100/l*r.ratioX}}}),(o,s)=>(K(),Se(yt,null,[ee(_b,{move:n.value,ratio:o.ratioX,size:o.width,always:o.always},null,8,["move","ratio","size","always"]),ee(_b,{move:i.value,ratio:o.ratioY,size:o.height,vertical:"",always:o.always},null,8,["move","ratio","size","always"])],64))}});var q3=Je(Y3,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const j3=ot({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:Pe([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}}),K3={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(_r)},X3="ElScrollbar",Z3=ue({name:X3}),Q3=ue({...Z3,props:j3,emits:K3,setup(e,{expose:t,emit:r}){const n=e,i=Ne("scrollbar");let a,o;const s=H(),l=H(),u=H(),f=H("0"),c=H("0"),d=H(),h=H(1),v=H(1),p=$(()=>{const S={};return n.height&&(S.height=vs(n.height)),n.maxHeight&&(S.maxHeight=vs(n.maxHeight)),[n.wrapStyle,S]}),g=$(()=>[n.wrapClass,i.e("wrap"),{[i.em("wrap","hidden-default")]:!n.native}]),m=$(()=>[i.e("view"),n.viewClass]),y=()=>{var S;l.value&&((S=d.value)==null||S.handleScroll(l.value),r("scroll",{scrollTop:l.value.scrollTop,scrollLeft:l.value.scrollLeft}))};function _(S,C){Ke(S)?l.value.scrollTo(S):_r(S)&&_r(C)&&l.value.scrollTo(S,C)}const b=S=>{_r(S)&&(l.value.scrollTop=S)},x=S=>{_r(S)&&(l.value.scrollLeft=S)},w=()=>{if(!l.value)return;const S=l.value.offsetHeight-Yo,C=l.value.offsetWidth-Yo,T=S**2/l.value.scrollHeight,E=C**2/l.value.scrollWidth,A=Math.max(T,n.minSize),M=Math.max(E,n.minSize);h.value=T/(S-T)/(A/(S-A)),v.value=E/(C-E)/(M/(C-M)),c.value=A+Yo<S?`${A}px`:"",f.value=M+Yo<C?`${M}px`:""};return Ee(()=>n.noresize,S=>{S?(a==null||a(),o==null||o()):({stop:a}=ds(u,w),o=$n("resize",w))},{immediate:!0}),Ee(()=>[n.maxHeight,n.height],()=>{n.native||zt(()=>{var S;w(),l.value&&((S=d.value)==null||S.handleScroll(l.value))})}),Ct(kT,ln({scrollbarElement:s,wrapElement:l})),Et(()=>{n.native||zt(()=>{w()})}),Ld(()=>w()),t({wrapRef:l,update:w,scrollTo:_,setScrollTop:b,setScrollLeft:x,handleScroll:y}),(S,C)=>(K(),Se("div",{ref_key:"scrollbarRef",ref:s,class:de(L(i).b())},[se("div",{ref_key:"wrapRef",ref:l,class:de(L(g)),style:At(L(p)),onScroll:y},[(K(),xe(hi(S.tag),{ref_key:"resizeRef",ref:u,class:de(L(m)),style:At(S.viewStyle)},{default:Z(()=>[Be(S.$slots,"default")]),_:3},8,["class","style"]))],38),S.native?Ye("v-if",!0):(K(),xe(q3,{key:0,ref_key:"barRef",ref:d,height:c.value,width:f.value,always:S.always,"ratio-x":v.value,"ratio-y":h.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});var J3=Je(Q3,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);const rM=Er(J3),e4=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],nM=ot({role:{type:String,values:e4,default:"tooltip"}}),t4=ue({name:"ElPopperRoot",inheritAttrs:!1}),r4=ue({...t4,props:nM,setup(e,{expose:t}){const r=e,n=H(),i=H(),a=H(),o=H(),s=$(()=>r.role),l={triggerRef:n,popperInstanceRef:i,contentRef:a,referenceRef:o,role:s};return t(l),Ct(iy,l),(u,f)=>Be(u.$slots,"default")}});var n4=Je(r4,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const iM=ot({arrowOffset:{type:Number,default:5}}),i4=ue({name:"ElPopperArrow",inheritAttrs:!1}),a4=ue({...i4,props:iM,setup(e,{expose:t}){const r=e,n=Ne("popper"),{arrowOffset:i,arrowRef:a}=Re(NT,void 0);return Ee(()=>r.arrowOffset,o=>{i.value=o}),rr(()=>{a.value=void 0}),t({arrowRef:a}),(o,s)=>(K(),Se("span",{ref_key:"arrowRef",ref:a,class:de(L(n).e("arrow")),"data-popper-arrow":""},null,2))}});var o4=Je(a4,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const s4="ElOnlyChild",l4=ue({name:s4,setup(e,{slots:t,attrs:r}){var n;const i=Re(tM),a=k3((n=i==null?void 0:i.setForwardRef)!=null?n:sr);return()=>{var o;const s=(o=t.default)==null?void 0:o.call(t,r);if(!s||s.length>1)return null;const l=aM(s);return l?qt(vi(l,r),[[a]]):null}}});function aM(e){if(!e)return null;const t=e;for(const r of t){if(Ke(r))switch(r.type){case br:continue;case Is:case"svg":return bb(r);case yt:return aM(r.children);default:return r}return bb(r)}return null}function bb(e){const t=Ne("only-child");return ee("span",{class:t.e("content")},[e])}const oM=ot({virtualRef:{type:Pe(Object)},virtualTriggering:Boolean,onMouseenter:{type:Pe(Function)},onMouseleave:{type:Pe(Function)},onClick:{type:Pe(Function)},onKeydown:{type:Pe(Function)},onFocus:{type:Pe(Function)},onBlur:{type:Pe(Function)},onContextmenu:{type:Pe(Function)},id:String,open:Boolean}),u4=ue({name:"ElPopperTrigger",inheritAttrs:!1}),f4=ue({...u4,props:oM,setup(e,{expose:t}){const r=e,{role:n,triggerRef:i}=Re(iy,void 0);O3(i);const a=$(()=>s.value?r.id:void 0),o=$(()=>{if(n&&n.value==="tooltip")return r.open&&r.id?r.id:void 0}),s=$(()=>{if(n&&n.value!=="tooltip")return n.value}),l=$(()=>s.value?`${r.open}`:void 0);let u;return Et(()=>{Ee(()=>r.virtualRef,f=>{f&&(i.value=Wi(f))},{immediate:!0}),Ee(i,(f,c)=>{u==null||u(),u=void 0,hs(f)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(d=>{var h;const v=r[d];v&&(f.addEventListener(d.slice(2).toLowerCase(),v),(h=c==null?void 0:c.removeEventListener)==null||h.call(c,d.slice(2).toLowerCase(),v))}),u=Ee([a,o,s,l],d=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((h,v)=>{ty(d[v])?f.removeAttribute(h):f.setAttribute(h,d[v])})},{immediate:!0})),hs(c)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(d=>c.removeAttribute(d))},{immediate:!0})}),rr(()=>{u==null||u(),u=void 0}),t({triggerRef:i}),(f,c)=>f.virtualTriggering?Ye("v-if",!0):(K(),xe(L(l4),go({key:0},f.$attrs,{"aria-controls":L(a),"aria-describedby":L(o),"aria-expanded":L(l),"aria-haspopup":L(s)}),{default:Z(()=>[Be(f.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var c4=Je(f4,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]);const Rh="focus-trap.focus-after-trapped",Oh="focus-trap.focus-after-released",d4="focus-trap.focusout-prevented",wb={cancelable:!0,bubbles:!1},h4={cancelable:!0,bubbles:!1},xb="focusAfterTrapped",Sb="focusAfterReleased",v4=Symbol("elFocusTrap"),_y=H(),qd=H(0),by=H(0);let sf=0;const sM=e=>{const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0||n===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t},Cb=(e,t)=>{for(const r of e)if(!p4(r,t))return r},p4=(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},g4=e=>{const t=sM(e),r=Cb(t,e),n=Cb(t.reverse(),e);return[r,n]},m4=e=>e instanceof HTMLInputElement&&"select"in e,Ni=(e,t)=>{if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),by.value=window.performance.now(),e!==r&&m4(e)&&t&&e.select()}};function Tb(e,t){const r=[...e],n=e.indexOf(t);return n!==-1&&r.splice(n,1),r}const y4=()=>{let e=[];return{push:n=>{const i=e[0];i&&n!==i&&i.pause(),e=Tb(e,n),e.unshift(n)},remove:n=>{var i,a;e=Tb(e,n),(a=(i=e[0])==null?void 0:i.resume)==null||a.call(i)}}},_4=(e,t=!1)=>{const r=document.activeElement;for(const n of e)if(Ni(n,t),document.activeElement!==r)return},Mb=y4(),b4=()=>qd.value>by.value,lf=()=>{_y.value="pointer",qd.value=window.performance.now()},Ab=()=>{_y.value="keyboard",qd.value=window.performance.now()},w4=()=>(Et(()=>{sf===0&&(document.addEventListener("mousedown",lf),document.addEventListener("touchstart",lf),document.addEventListener("keydown",Ab)),sf++}),rr(()=>{sf--,sf<=0&&(document.removeEventListener("mousedown",lf),document.removeEventListener("touchstart",lf),document.removeEventListener("keydown",Ab))}),{focusReason:_y,lastUserFocusTimestamp:qd,lastAutomatedFocusTimestamp:by}),uf=e=>new CustomEvent(d4,{...h4,detail:e}),x4=ue({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[xb,Sb,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const r=H();let n,i;const{focusReason:a}=w4();L3(v=>{e.trapped&&!o.paused&&t("release-requested",v)});const o={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},s=v=>{if(!e.loop&&!e.trapped||o.paused)return;const{key:p,altKey:g,ctrlKey:m,metaKey:y,currentTarget:_,shiftKey:b}=v,{loop:x}=e,w=p===Lt.tab&&!g&&!m&&!y,S=document.activeElement;if(w&&S){const C=_,[T,E]=g4(C);if(T&&E){if(!b&&S===E){const M=uf({focusReason:a.value});t("focusout-prevented",M),M.defaultPrevented||(v.preventDefault(),x&&Ni(T,!0))}else if(b&&[T,C].includes(S)){const M=uf({focusReason:a.value});t("focusout-prevented",M),M.defaultPrevented||(v.preventDefault(),x&&Ni(E,!0))}}else if(S===C){const M=uf({focusReason:a.value});t("focusout-prevented",M),M.defaultPrevented||v.preventDefault()}}};Ct(v4,{focusTrapRef:r,onKeydown:s}),Ee(()=>e.focusTrapEl,v=>{v&&(r.value=v)},{immediate:!0}),Ee([r],([v],[p])=>{v&&(v.addEventListener("keydown",s),v.addEventListener("focusin",f),v.addEventListener("focusout",c)),p&&(p.removeEventListener("keydown",s),p.removeEventListener("focusin",f),p.removeEventListener("focusout",c))});const l=v=>{t(xb,v)},u=v=>t(Sb,v),f=v=>{const p=L(r);if(!p)return;const g=v.target,m=v.relatedTarget,y=g&&p.contains(g);e.trapped||m&&p.contains(m)||(n=m),y&&t("focusin",v),!o.paused&&e.trapped&&(y?i=g:Ni(i,!0))},c=v=>{const p=L(r);if(!(o.paused||!p))if(e.trapped){const g=v.relatedTarget;!ty(g)&&!p.contains(g)&&setTimeout(()=>{if(!o.paused&&e.trapped){const m=uf({focusReason:a.value});t("focusout-prevented",m),m.defaultPrevented||Ni(i,!0)}},0)}else{const g=v.target;g&&p.contains(g)||t("focusout",v)}};async function d(){await zt();const v=L(r);if(v){Mb.push(o);const p=v.contains(document.activeElement)?n:document.activeElement;if(n=p,!v.contains(p)){const m=new Event(Rh,wb);v.addEventListener(Rh,l),v.dispatchEvent(m),m.defaultPrevented||zt(()=>{let y=e.focusStartEl;Ue(y)||(Ni(y),document.activeElement!==y&&(y="first")),y==="first"&&_4(sM(v),!0),(document.activeElement===p||y==="container")&&Ni(v)})}}}function h(){const v=L(r);if(v){v.removeEventListener(Rh,l);const p=new CustomEvent(Oh,{...wb,detail:{focusReason:a.value}});v.addEventListener(Oh,u),v.dispatchEvent(p),!p.defaultPrevented&&(a.value=="keyboard"||!b4())&&Ni(n??document.body),v.removeEventListener(Oh,l),Mb.remove(o)}}return Et(()=>{e.trapped&&d(),Ee(()=>e.trapped,v=>{v?d():h()})}),rr(()=>{e.trapped&&h()}),{onKeydown:s}}});function S4(e,t,r,n,i,a){return Be(e.$slots,"default",{handleKeydown:e.onKeydown})}var C4=Je(x4,[["render",S4],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const T4=["fixed","absolute"],M4=ot({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:Pe(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:fy,default:"bottom"},popperOptions:{type:Pe(Object),default:()=>({})},strategy:{type:String,values:T4,default:"absolute"}}),lM=ot({...M4,id:String,style:{type:Pe([String,Array,Object])},className:{type:Pe([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:Pe([String,Array,Object])},popperStyle:{type:Pe([String,Array,Object])},referenceEl:{type:Pe(Object)},triggerTargetEl:{type:Pe(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),A4={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},Eb=(e,t)=>{const{placement:r,strategy:n,popperOptions:i}=e,a={placement:r,strategy:n,...i,modifiers:P4(e)};return L4(a,t),D4(a,i==null?void 0:i.modifiers),a},E4=e=>{if(Rt)return Wi(e)};function P4(e){const{offset:t,gpuAcceleration:r,fallbackPlacements:n}=e;return[{name:"offset",options:{offset:[0,t??12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:n}},{name:"computeStyles",options:{gpuAcceleration:r}}]}function L4(e,{arrowEl:t,arrowOffset:r}){e.modifiers.push({name:"arrow",options:{element:t,padding:r??5}})}function D4(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const I4=ue({name:"ElPopperContent"}),R4=ue({...I4,props:lM,emits:A4,setup(e,{expose:t,emit:r}){const n=e,{popperInstanceRef:i,contentRef:a,triggerRef:o,role:s}=Re(iy,void 0),l=Re(uo,void 0),{nextZIndex:u}=yy(),f=Ne("popper"),c=H(),d=H("first"),h=H(),v=H();Ct(NT,{arrowRef:h,arrowOffset:v}),l&&(l.addInputId||l.removeInputId)&&Ct(uo,{...l,addInputId:sr,removeInputId:sr});const p=H(n.zIndex||u()),g=H(!1);let m;const y=$(()=>E4(n.referenceEl)||L(o)),_=$(()=>[{zIndex:L(p)},n.popperStyle]),b=$(()=>[f.b(),f.is("pure",n.pure),f.is(n.effect),n.popperClass]),x=$(()=>s&&s.value==="dialog"?"false":void 0),w=({referenceEl:O,popperContentEl:k,arrowEl:F})=>{const j=Eb(n,{arrowEl:F,arrowOffset:L(v)});return QT(O,k,j)},S=(O=!0)=>{var k;(k=L(i))==null||k.update(),O&&(p.value=n.zIndex||u())},C=()=>{var O,k;const F={name:"eventListeners",enabled:n.visible};(k=(O=L(i))==null?void 0:O.setOptions)==null||k.call(O,j=>({...j,modifiers:[...j.modifiers||[],F]})),S(!1),n.visible&&n.focusOnShow?g.value=!0:n.visible===!1&&(g.value=!1)},T=()=>{r("focus")},E=O=>{var k;((k=O.detail)==null?void 0:k.focusReason)!=="pointer"&&(d.value="first",r("blur"))},A=O=>{n.visible&&!g.value&&(O.target&&(d.value=O.target),g.value=!0)},M=O=>{n.trapping||(O.detail.focusReason==="pointer"&&O.preventDefault(),g.value=!1)},D=()=>{g.value=!1,r("close")};return Et(()=>{let O;Ee(y,k=>{var F;O==null||O();const j=L(i);if((F=j==null?void 0:j.destroy)==null||F.call(j),k){const B=L(c);a.value=B,i.value=w({referenceEl:k,popperContentEl:B,arrowEl:L(h)}),O=Ee(()=>k.getBoundingClientRect(),()=>S(),{immediate:!0})}else i.value=void 0},{immediate:!0}),Ee(()=>n.triggerTargetEl,(k,F)=>{m==null||m(),m=void 0;const j=L(k||c.value),B=L(F||c.value);hs(j)&&(m=Ee([s,()=>n.ariaLabel,x,()=>n.id],N=>{["role","aria-label","aria-modal","id"].forEach((U,re)=>{ty(N[re])?j.removeAttribute(U):j.setAttribute(U,N[re])})},{immediate:!0})),B!==j&&hs(B)&&["role","aria-label","aria-modal","id"].forEach(N=>{B.removeAttribute(N)})},{immediate:!0}),Ee(()=>n.visible,C,{immediate:!0}),Ee(()=>Eb(n,{arrowEl:L(h),arrowOffset:L(v)}),k=>{var F;return(F=i.value)==null?void 0:F.setOptions(k)})}),rr(()=>{m==null||m(),m=void 0}),t({popperContentRef:c,popperInstanceRef:i,updatePopper:S,contentStyle:_}),(O,k)=>(K(),Se("div",{ref_key:"popperContentRef",ref:c,style:At(L(_)),class:de(L(b)),tabindex:"-1",onMouseenter:k[0]||(k[0]=F=>O.$emit("mouseenter",F)),onMouseleave:k[1]||(k[1]=F=>O.$emit("mouseleave",F))},[ee(L(C4),{trapped:g.value,"trap-on-focus-in":!0,"focus-trap-el":c.value,"focus-start-el":d.value,onFocusAfterTrapped:T,onFocusAfterReleased:E,onFocusin:A,onFocusoutPrevented:M,onReleaseRequested:D},{default:Z(()=>[Be(O.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el"])],38))}});var O4=Je(R4,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const k4=Er(n4),N4=Ne("tooltip"),qr=ot({...R3,...lM,appendTo:{type:Pe([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:Pe(Boolean),default:null},transition:{type:String,default:`${N4.namespace.value}-fade-in-linear`},teleported:{type:Boolean,default:!0},disabled:{type:Boolean}}),du=ot({...oM,disabled:Boolean,trigger:{type:Pe([String,Array]),default:"hover"},triggerKeys:{type:Pe(Array),default:()=>[Lt.enter,Lt.space]}}),{useModelToggleProps:B4,useModelToggleEmits:F4,useModelToggle:$4}=A5("visible"),H4=ot({...nM,...B4,...qr,...du,...iM,showArrow:{type:Boolean,default:!0}}),z4=[...F4,"before-show","before-hide","show","hide","open","close"],W4=(e,t)=>ye(e)?e.includes(t):e===t,Co=(e,t,r)=>n=>{W4(L(e),t)&&r(n)},V4=ue({name:"ElTooltipTrigger"}),G4=ue({...V4,props:du,setup(e,{expose:t}){const r=e,n=Ne("tooltip"),{controlled:i,id:a,open:o,onOpen:s,onClose:l,onToggle:u}=Re(ay,void 0),f=H(null),c=()=>{if(L(i)||r.disabled)return!0},d=wn(r,"trigger"),h=si(c,Co(d,"hover",s)),v=si(c,Co(d,"hover",l)),p=si(c,Co(d,"click",b=>{b.button===0&&u(b)})),g=si(c,Co(d,"focus",s)),m=si(c,Co(d,"focus",l)),y=si(c,Co(d,"contextmenu",b=>{b.preventDefault(),u(b)})),_=si(c,b=>{const{code:x}=b;r.triggerKeys.includes(x)&&(b.preventDefault(),u(b))});return t({triggerRef:f}),(b,x)=>(K(),xe(L(c4),{id:L(a),"virtual-ref":b.virtualRef,open:L(o),"virtual-triggering":b.virtualTriggering,class:de(L(n).e("trigger")),onBlur:L(m),onClick:L(p),onContextmenu:L(y),onFocus:L(g),onMouseenter:L(h),onMouseleave:L(v),onKeydown:L(_)},{default:Z(()=>[Be(b.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var U4=Je(G4,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const Y4=ue({name:"ElTooltipContent",inheritAttrs:!1}),q4=ue({...Y4,props:qr,setup(e,{expose:t}){const r=e,{selector:n}=JT(),i=H(null),a=H(!1),{controlled:o,id:s,open:l,trigger:u,onClose:f,onOpen:c,onShow:d,onHide:h,onBeforeShow:v,onBeforeHide:p}=Re(ay,void 0),g=$(()=>r.persistent);rr(()=>{a.value=!0});const m=$(()=>L(g)?!0:L(l)),y=$(()=>r.disabled?!1:L(l)),_=$(()=>r.appendTo||n.value),b=$(()=>{var k;return(k=r.style)!=null?k:{}}),x=$(()=>!L(l)),w=()=>{h()},S=()=>{if(L(o))return!0},C=si(S,()=>{r.enterable&&L(u)==="hover"&&c()}),T=si(S,()=>{L(u)==="hover"&&f()}),E=()=>{var k,F;(F=(k=i.value)==null?void 0:k.updatePopper)==null||F.call(k),v==null||v()},A=()=>{p==null||p()},M=()=>{d(),O=r$($(()=>{var k;return(k=i.value)==null?void 0:k.popperContentRef}),()=>{if(L(o))return;L(u)!=="hover"&&f()})},D=()=>{r.virtualTriggering||f()};let O;return Ee(()=>L(l),k=>{k||O==null||O()},{flush:"post"}),Ee(()=>r.content,()=>{var k,F;(F=(k=i.value)==null?void 0:k.updatePopper)==null||F.call(k)}),t({contentRef:i}),(k,F)=>(K(),xe(vI,{disabled:!k.teleported,to:L(_)},[ee(Kn,{name:k.transition,onAfterLeave:w,onBeforeEnter:E,onAfterEnter:M,onBeforeLeave:A},{default:Z(()=>[L(m)?qt((K(),xe(L(O4),go({key:0,id:L(s),ref_key:"contentRef",ref:i},k.$attrs,{"aria-label":k.ariaLabel,"aria-hidden":L(x),"boundaries-padding":k.boundariesPadding,"fallback-placements":k.fallbackPlacements,"gpu-acceleration":k.gpuAcceleration,offset:k.offset,placement:k.placement,"popper-options":k.popperOptions,strategy:k.strategy,effect:k.effect,enterable:k.enterable,pure:k.pure,"popper-class":k.popperClass,"popper-style":[k.popperStyle,L(b)],"reference-el":k.referenceEl,"trigger-target-el":k.triggerTargetEl,visible:L(y),"z-index":k.zIndex,onMouseenter:L(C),onMouseleave:L(T),onBlur:D,onClose:L(f)}),{default:Z(()=>[a.value?Ye("v-if",!0):Be(k.$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","onClose"])),[[pi,L(y)]]):Ye("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var j4=Je(q4,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const K4=["innerHTML"],X4={key:1},Z4=ue({name:"ElTooltip"}),Q4=ue({...Z4,props:H4,emits:z4,setup(e,{expose:t,emit:r}){const n=e;I3();const i=ly(),a=H(),o=H(),s=()=>{var m;const y=L(a);y&&((m=y.popperInstanceRef)==null||m.update())},l=H(!1),u=H(),{show:f,hide:c,hasUpdateHandler:d}=$4({indicator:l,toggleReason:u}),{onOpen:h,onClose:v}=eM({showAfter:wn(n,"showAfter"),hideAfter:wn(n,"hideAfter"),open:f,close:c}),p=$(()=>gi(n.visible)&&!d.value);Ct(ay,{controlled:p,id:i,open:Sd(l),trigger:wn(n,"trigger"),onOpen:m=>{h(m)},onClose:m=>{v(m)},onToggle:m=>{L(l)?v(m):h(m)},onShow:()=>{r("show",u.value)},onHide:()=>{r("hide",u.value)},onBeforeShow:()=>{r("before-show",u.value)},onBeforeHide:()=>{r("before-hide",u.value)},updatePopper:s}),Ee(()=>n.disabled,m=>{m&&l.value&&(l.value=!1)});const g=()=>{var m,y;const _=(y=(m=o.value)==null?void 0:m.contentRef)==null?void 0:y.popperContentRef;return _&&_.contains(document.activeElement)};return MC(()=>l.value&&c()),t({popperRef:a,contentRef:o,isFocusInsideContent:g,updatePopper:s,onOpen:h,onClose:v,hide:c}),(m,y)=>(K(),xe(L(k4),{ref_key:"popperRef",ref:a,role:m.role},{default:Z(()=>[ee(U4,{disabled:m.disabled,trigger:m.trigger,"trigger-keys":m.triggerKeys,"virtual-ref":m.virtualRef,"virtual-triggering":m.virtualTriggering},{default:Z(()=>[m.$slots.default?Be(m.$slots,"default",{key:0}):Ye("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),ee(j4,{ref_key:"contentRef",ref:o,"aria-label":m.ariaLabel,"boundaries-padding":m.boundariesPadding,content:m.content,disabled:m.disabled,effect:m.effect,enterable:m.enterable,"fallback-placements":m.fallbackPlacements,"hide-after":m.hideAfter,"gpu-acceleration":m.gpuAcceleration,offset:m.offset,persistent:m.persistent,"popper-class":m.popperClass,"popper-style":m.popperStyle,placement:m.placement,"popper-options":m.popperOptions,pure:m.pure,"raw-content":m.rawContent,"reference-el":m.referenceEl,"trigger-target-el":m.triggerTargetEl,"show-after":m.showAfter,strategy:m.strategy,teleported:m.teleported,transition:m.transition,"virtual-triggering":m.virtualTriggering,"z-index":m.zIndex,"append-to":m.appendTo},{default:Z(()=>[Be(m.$slots,"content",{},()=>[m.rawContent?(K(),Se("span",{key:0,innerHTML:m.content},null,8,K4)):(K(),Se("span",X4,Ae(m.content),1))]),m.showArrow?(K(),xe(L(o4),{key:0,"arrow-offset":m.arrowOffset},null,8,["arrow-offset"])):Ye("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 J4=Je(Q4,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);const Hu=Er(J4),eH=ot({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"}}),tH=["textContent"],rH=ue({name:"ElBadge"}),nH=ue({...rH,props:eH,setup(e,{expose:t}){const r=e,n=Ne("badge"),i=$(()=>r.isDot?"":_r(r.value)&&_r(r.max)?r.max<r.value?`${r.max}+`:`${r.value}`:`${r.value}`);return t({content:i}),(a,o)=>(K(),Se("div",{class:de(L(n).b())},[Be(a.$slots,"default"),ee(Kn,{name:`${L(n).namespace.value}-zoom-in-center`,persisted:""},{default:Z(()=>[qt(se("sup",{class:de([L(n).e("content"),L(n).em("content",a.type),L(n).is("fixed",!!a.$slots.default),L(n).is("dot",a.isDot)]),textContent:Ae(L(i))},null,10,tH),[[pi,!a.hidden&&(L(i)||a.isDot)]])]),_:1},8,["name"])],2))}});var iH=Je(nH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);const aH=Er(iH),oH=(e,t)=>{y5({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},$(()=>e.type==="text"));const r=Re(IT,void 0),n=oa("button"),{form:i}=Ud(),a=fo($(()=>r==null?void 0:r.size)),o=oy(),s=H(),l=Rd(),u=$(()=>e.type||(r==null?void 0:r.type)||""),f=$(()=>{var h,v,p;return(p=(v=e.autoInsertSpace)!=null?v:(h=n.value)==null?void 0:h.autoInsertSpace)!=null?p:!1}),c=$(()=>{var h;const v=(h=l.default)==null?void 0:h.call(l);if(f.value&&(v==null?void 0:v.length)===1){const p=v[0];if((p==null?void 0:p.type)===Is){const g=p.children;return/^\p{Unified_Ideograph}{2}$/u.test(g.trim())}}return!1});return{_disabled:o,_size:a,_type:u,_ref:s,shouldAddSpace:c,handleClick:h=>{e.nativeType==="reset"&&(i==null||i.resetFields()),t("click",h)}}},sH=["default","primary","success","warning","info","danger","text",""],lH=["button","submit","reset"],Vp=ot({size:Gd,disabled:Boolean,type:{type:String,values:sH,default:""},icon:{type:Vi},nativeType:{type:String,values:lH,default:"button"},loading:Boolean,loadingIcon:{type:Vi,default:()=>ET},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0}}),uH={click:e=>e instanceof MouseEvent};function jt(e,t){fH(e)&&(e="100%");var r=cH(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),r&&(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 ff(e){return Math.min(1,Math.max(0,e))}function fH(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function cH(e){return typeof e=="string"&&e.indexOf("%")!==-1}function uM(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function cf(e){return e<=1?"".concat(Number(e)*100,"%"):e}function qa(e){return e.length===1?"0"+e:String(e)}function dH(e,t,r){return{r:jt(e,255)*255,g:jt(t,255)*255,b:jt(r,255)*255}}function Pb(e,t,r){e=jt(e,255),t=jt(t,255),r=jt(r,255);var n=Math.max(e,t,r),i=Math.min(e,t,r),a=0,o=0,s=(n+i)/2;if(n===i)o=0,a=0;else{var l=n-i;switch(o=s>.5?l/(2-n-i):l/(n+i),n){case e:a=(t-r)/l+(t<r?6:0);break;case t:a=(r-e)/l+2;break;case r:a=(e-t)/l+4;break}a/=6}return{h:a,s:o,l:s}}function kh(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*(6*r):r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function hH(e,t,r){var n,i,a;if(e=jt(e,360),t=jt(t,100),r=jt(r,100),t===0)i=r,a=r,n=r;else{var o=r<.5?r*(1+t):r+t-r*t,s=2*r-o;n=kh(s,o,e+1/3),i=kh(s,o,e),a=kh(s,o,e-1/3)}return{r:n*255,g:i*255,b:a*255}}function Lb(e,t,r){e=jt(e,255),t=jt(t,255),r=jt(r,255);var n=Math.max(e,t,r),i=Math.min(e,t,r),a=0,o=n,s=n-i,l=n===0?0:s/n;if(n===i)a=0;else{switch(n){case e:a=(t-r)/s+(t<r?6:0);break;case t:a=(r-e)/s+2;break;case r:a=(e-t)/s+4;break}a/=6}return{h:a,s:l,v:o}}function vH(e,t,r){e=jt(e,360)*6,t=jt(t,100),r=jt(r,100);var n=Math.floor(e),i=e-n,a=r*(1-t),o=r*(1-i*t),s=r*(1-(1-i)*t),l=n%6,u=[r,o,a,a,s,r][l],f=[s,r,r,o,a,a][l],c=[a,a,s,r,r,o][l];return{r:u*255,g:f*255,b:c*255}}function Db(e,t,r,n){var i=[qa(Math.round(e).toString(16)),qa(Math.round(t).toString(16)),qa(Math.round(r).toString(16))];return n&&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 pH(e,t,r,n,i){var a=[qa(Math.round(e).toString(16)),qa(Math.round(t).toString(16)),qa(Math.round(r).toString(16)),qa(gH(n))];return i&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function gH(e){return Math.round(parseFloat(e)*255).toString(16)}function Ib(e){return Lr(e)/255}function Lr(e){return parseInt(e,16)}function mH(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var Gp={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 yH(e){var t={r:0,g:0,b:0},r=1,n=null,i=null,a=null,o=!1,s=!1;return typeof e=="string"&&(e=wH(e)),typeof e=="object"&&(ti(e.r)&&ti(e.g)&&ti(e.b)?(t=dH(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):ti(e.h)&&ti(e.s)&&ti(e.v)?(n=cf(e.s),i=cf(e.v),t=vH(e.h,n,i),o=!0,s="hsv"):ti(e.h)&&ti(e.s)&&ti(e.l)&&(n=cf(e.s),a=cf(e.l),t=hH(e.h,n,a),o=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=uM(r),{ok:o,format:e.format||s,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:r}}var _H="[-\\+]?\\d+%?",bH="[-\\+]?\\d*\\.\\d+%?",Gi="(?:".concat(bH,")|(?:").concat(_H,")"),Nh="[\\s|\\(]+(".concat(Gi,")[,|\\s]+(").concat(Gi,")[,|\\s]+(").concat(Gi,")\\s*\\)?"),Bh="[\\s|\\(]+(".concat(Gi,")[,|\\s]+(").concat(Gi,")[,|\\s]+(").concat(Gi,")[,|\\s]+(").concat(Gi,")\\s*\\)?"),dn={CSS_UNIT:new RegExp(Gi),rgb:new RegExp("rgb"+Nh),rgba:new RegExp("rgba"+Bh),hsl:new RegExp("hsl"+Nh),hsla:new RegExp("hsla"+Bh),hsv:new RegExp("hsv"+Nh),hsva:new RegExp("hsva"+Bh),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 wH(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Gp[e])e=Gp[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=dn.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=dn.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=dn.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=dn.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=dn.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=dn.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=dn.hex8.exec(e),r?{r:Lr(r[1]),g:Lr(r[2]),b:Lr(r[3]),a:Ib(r[4]),format:t?"name":"hex8"}:(r=dn.hex6.exec(e),r?{r:Lr(r[1]),g:Lr(r[2]),b:Lr(r[3]),format:t?"name":"hex"}:(r=dn.hex4.exec(e),r?{r:Lr(r[1]+r[1]),g:Lr(r[2]+r[2]),b:Lr(r[3]+r[3]),a:Ib(r[4]+r[4]),format:t?"name":"hex8"}:(r=dn.hex3.exec(e),r?{r:Lr(r[1]+r[1]),g:Lr(r[2]+r[2]),b:Lr(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function ti(e){return Boolean(dn.CSS_UNIT.exec(String(e)))}var fM=function(){function e(t,r){t===void 0&&(t=""),r===void 0&&(r={});var n;if(t instanceof e)return t;typeof t=="number"&&(t=mH(t)),this.originalInput=t;var i=yH(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=(n=r.format)!==null&&n!==void 0?n:i.format,this.gradientType=r.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(),r,n,i,a=t.r/255,o=t.g/255,s=t.b/255;return a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),s<=.03928?i=s/12.92:i=Math.pow((s+.055)/1.055,2.4),.2126*r+.7152*n+.0722*i},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=uM(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=Lb(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=Lb(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),i=Math.round(t.v*100);return this.a===1?"hsv(".concat(r,", ").concat(n,"%, ").concat(i,"%)"):"hsva(".concat(r,", ").concat(n,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Pb(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=Pb(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),i=Math.round(t.l*100);return this.a===1?"hsl(".concat(r,", ").concat(n,"%, ").concat(i,"%)"):"hsla(".concat(r,", ").concat(n,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Db(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),pH(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.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),r=Math.round(this.g),n=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(r,", ").concat(n,")"):"rgba(".concat(t,", ").concat(r,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(r){return"".concat(Math.round(jt(r,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(r){return Math.round(jt(r,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="#"+Db(this.r,this.g,this.b,!1),r=0,n=Object.entries(Gp);r<n.length;r++){var i=n[r],a=i[0],o=i[1];if(t===o)return a}return!1},e.prototype.toString=function(t){var r=Boolean(t);t=t??this.format;var n=!1,i=this.a<1&&this.a>=0,a=!r&&i&&(t.startsWith("hex")||t==="name");return a?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||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 r=this.toHsl();return r.l+=t/100,r.l=ff(r.l),new e(r)},e.prototype.brighten=function(t){t===void 0&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),new e(r)},e.prototype.darken=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=ff(r.l),new e(r)},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 r=this.toHsl();return r.s-=t/100,r.s=ff(r.s),new e(r)},e.prototype.saturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=ff(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var r=this.toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,new e(r)},e.prototype.mix=function(t,r){r===void 0&&(r=50);var n=this.toRgb(),i=new e(t).toRgb(),a=r/100,o={r:(i.r-n.r)*a+n.r,g:(i.g-n.g)*a+n.g,b:(i.b-n.b)*a+n.b,a:(i.a-n.a)*a+n.a};return new e(o)},e.prototype.analogous=function(t,r){t===void 0&&(t=6),r===void 0&&(r=30);var n=this.toHsl(),i=360/r,a=[this];for(n.h=(n.h-(i*t>>1)+720)%360;--t;)n.h=(n.h+i)%360,a.push(new e(n));return a},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 r=this.toHsv(),n=r.h,i=r.s,a=r.v,o=[],s=1/t;t--;)o.push(new e({h:n,s:i,v:a})),a=(a+s)%1;return o},e.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return[this,new e({h:(r+72)%360,s:t.s,l:t.l}),new e({h:(r+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var r=this.toRgb(),n=new e(t).toRgb();return new e({r:n.r+(r.r-n.r)*r.a,g:n.g+(r.g-n.g)*r.a,b:n.b+(r.b-n.b)*r.a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var r=this.toHsl(),n=r.h,i=[this],a=360/t,o=1;o<t;o++)i.push(new e({h:(n+o*a)%360,s:r.s,l:r.l}));return i},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function Pi(e,t=20){return e.mix("#141414",t).toString()}function xH(e){const t=oy(),r=Ne("button");return $(()=>{let n={};const i=e.color;if(i){const a=new fM(i),o=e.dark?a.tint(20).toString():Pi(a,20);if(e.plain)n=r.cssVarBlock({"bg-color":e.dark?Pi(a,90):a.tint(90).toString(),"text-color":i,"border-color":e.dark?Pi(a,50):a.tint(50).toString(),"hover-text-color":`var(${r.cssVarName("color-white")})`,"hover-bg-color":i,"hover-border-color":i,"active-bg-color":o,"active-text-color":`var(${r.cssVarName("color-white")})`,"active-border-color":o}),t.value&&(n[r.cssVarBlockName("disabled-bg-color")]=e.dark?Pi(a,90):a.tint(90).toString(),n[r.cssVarBlockName("disabled-text-color")]=e.dark?Pi(a,50):a.tint(50).toString(),n[r.cssVarBlockName("disabled-border-color")]=e.dark?Pi(a,80):a.tint(80).toString());else{const s=e.dark?Pi(a,30):a.tint(30).toString(),l=a.isDark()?`var(${r.cssVarName("color-white")})`:`var(${r.cssVarName("color-black")})`;if(n=r.cssVarBlock({"bg-color":i,"text-color":l,"border-color":i,"hover-bg-color":s,"hover-text-color":l,"hover-border-color":s,"active-bg-color":o,"active-border-color":o}),t.value){const u=e.dark?Pi(a,50):a.tint(50).toString();n[r.cssVarBlockName("disabled-bg-color")]=u,n[r.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${r.cssVarName("color-white")})`,n[r.cssVarBlockName("disabled-border-color")]=u}}}return n})}const SH=["aria-disabled","disabled","autofocus","type"],CH=ue({name:"ElButton"}),TH=ue({...CH,props:Vp,emits:uH,setup(e,{expose:t,emit:r}){const n=e,i=xH(n),a=Ne("button"),{_ref:o,_size:s,_type:l,_disabled:u,shouldAddSpace:f,handleClick:c}=oH(n,r);return t({ref:o,size:s,type:l,disabled:u,shouldAddSpace:f}),(d,h)=>(K(),Se("button",{ref_key:"_ref",ref:o,class:de([L(a).b(),L(a).m(L(l)),L(a).m(L(s)),L(a).is("disabled",L(u)),L(a).is("loading",d.loading),L(a).is("plain",d.plain),L(a).is("round",d.round),L(a).is("circle",d.circle),L(a).is("text",d.text),L(a).is("link",d.link),L(a).is("has-bg",d.bg)]),"aria-disabled":L(u)||d.loading,disabled:L(u)||d.loading,autofocus:d.autofocus,type:d.nativeType,style:At(L(i)),onClick:h[0]||(h[0]=(...v)=>L(c)&&L(c)(...v))},[d.loading?(K(),Se(yt,{key:0},[d.$slots.loading?Be(d.$slots,"loading",{key:0}):(K(),xe(L(Cn),{key:1,class:de(L(a).is("loading"))},{default:Z(()=>[(K(),xe(hi(d.loadingIcon)))]),_:1},8,["class"]))],64)):d.icon||d.$slots.icon?(K(),xe(L(Cn),{key:1},{default:Z(()=>[d.icon?(K(),xe(hi(d.icon),{key:0})):Be(d.$slots,"icon",{key:1})]),_:3})):Ye("v-if",!0),d.$slots.default?(K(),Se("span",{key:2,class:de({[L(a).em("text","expand")]:L(f)})},[Be(d.$slots,"default")],2)):Ye("v-if",!0)],14,SH))}});var MH=Je(TH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const AH={size:Vp.size,type:Vp.type},EH=ue({name:"ElButtonGroup"}),PH=ue({...EH,props:AH,setup(e){const t=e;Ct(IT,ln({size:wn(t,"size"),type:wn(t,"type")}));const r=Ne("button");return(n,i)=>(K(),Se("div",{class:de(`${L(r).b("group")}`)},[Be(n.$slots,"default")],2))}});var cM=Je(PH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const LH=Er(MH,{ButtonGroup:cM});aa(cM);var DH=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};const Bi=new Map;let Rb;Rt&&(document.addEventListener("mousedown",e=>Rb=e),document.addEventListener("mouseup",e=>{for(const t of Bi.values())for(const{documentHandler:r}of t)r(e,Rb)}));function Ob(e,t){let r=[];return Array.isArray(t.arg)?r=t.arg:hs(t.arg)&&r.push(t.arg),function(n,i){const a=t.instance.popperRef,o=n.target,s=i==null?void 0:i.target,l=!t||!t.instance,u=!o||!s,f=e.contains(o)||e.contains(s),c=e===o,d=r.length&&r.some(v=>v==null?void 0:v.contains(o))||r.length&&r.includes(s),h=a&&(a.contains(o)||a.contains(s));l||u||f||c||d||h||t.value(n,i)}}const IH={beforeMount(e,t){Bi.has(e)||Bi.set(e,[]),Bi.get(e).push({documentHandler:Ob(e,t),bindingFn:t.value})},updated(e,t){Bi.has(e)||Bi.set(e,[]);const r=Bi.get(e),n=r.findIndex(a=>a.bindingFn===t.oldValue),i={documentHandler:Ob(e,t),bindingFn:t.value};n>=0?r.splice(n,1,i):r.push(i)},unmounted(e){Bi.delete(e)}};var kb=!1,Ga,Up,Yp,hc,vc,dM,pc,qp,jp,Kp,hM,Xp,Zp,vM,pM;function cr(){if(!kb){kb=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),r=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(Xp=/\b(iPhone|iP[ao]d)/.exec(e),Zp=/\b(iP[ao]d)/.exec(e),Kp=/Android/i.exec(e),vM=/FBAN\/\w+;/i.exec(e),pM=/Mobile/i.exec(e),hM=!!/Win64/.exec(e),t){Ga=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,Ga&&document&&document.documentMode&&(Ga=document.documentMode);var n=/(?:Trident\/(\d+.\d+))/.exec(e);dM=n?parseFloat(n[1])+4:Ga,Up=t[2]?parseFloat(t[2]):NaN,Yp=t[3]?parseFloat(t[3]):NaN,hc=t[4]?parseFloat(t[4]):NaN,hc?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),vc=t&&t[1]?parseFloat(t[1]):NaN):vc=NaN}else Ga=Up=Yp=vc=hc=NaN;if(r){if(r[1]){var i=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);pc=i?parseFloat(i[1].replace("_",".")):!0}else pc=!1;qp=!!r[2],jp=!!r[3]}else pc=qp=jp=!1}}var Qp={ie:function(){return cr()||Ga},ieCompatibilityMode:function(){return cr()||dM>Ga},ie64:function(){return Qp.ie()&&hM},firefox:function(){return cr()||Up},opera:function(){return cr()||Yp},webkit:function(){return cr()||hc},safari:function(){return Qp.webkit()},chrome:function(){return cr()||vc},windows:function(){return cr()||qp},osx:function(){return cr()||pc},linux:function(){return cr()||jp},iphone:function(){return cr()||Xp},mobile:function(){return cr()||Xp||Zp||Kp||pM},nativeApp:function(){return cr()||vM},android:function(){return cr()||Kp},ipad:function(){return cr()||Zp}},RH=Qp,df=!!(typeof window<"u"&&window.document&&window.document.createElement),OH={canUseDOM:df,canUseWorkers:typeof Worker<"u",canUseEventListeners:df&&!!(window.addEventListener||window.attachEvent),canUseViewport:df&&!!window.screen,isInWorker:!df},gM=OH,mM;gM.canUseDOM&&(mM=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function kH(e,t){if(!gM.canUseDOM||t&&!("addEventListener"in document))return!1;var r="on"+e,n=r in document;if(!n){var i=document.createElement("div");i.setAttribute(r,"return;"),n=typeof i[r]=="function"}return!n&&mM&&e==="wheel"&&(n=document.implementation.hasFeature("Events.wheel","3.0")),n}var NH=kH,Nb=10,Bb=40,Fb=800;function yM(e){var t=0,r=0,n=0,i=0;return"detail"in e&&(r=e.detail),"wheelDelta"in e&&(r=-e.wheelDelta/120),"wheelDeltaY"in e&&(r=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=r,r=0),n=t*Nb,i=r*Nb,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(n=e.deltaX),(n||i)&&e.deltaMode&&(e.deltaMode==1?(n*=Bb,i*=Bb):(n*=Fb,i*=Fb)),n&&!t&&(t=n<1?-1:1),i&&!r&&(r=i<1?-1:1),{spinX:t,spinY:r,pixelX:n,pixelY:i}}yM.getEventType=function(){return RH.firefox()?"DOMMouseScroll":NH("wheel")?"wheel":"mousewheel"};var BH=yM;/**
 * Checks if an event is supported in the current execution environment.
 *
 * NOTE: This will not work correctly for non-generic events such as `change`,
@@ -11,7 +11,7 @@ var TL=Object.defineProperty;var ML=(e,t,r)=>t in e?TL(e,t,{enumerable:!0,config
 * @return {boolean} True if the event is supported.
 * @internal
 * @license Modernizr 3.0.0pre (Custom Build) | MIT
-*/const BH=function(e,t){if(e&&e.addEventListener){const r=function(n){const i=NH(n);t&&Reflect.apply(t,this,[n,i])};e.addEventListener("wheel",r,{passive:!0})}},FH={beforeMount(e,t){BH(e,t.value)}},yM={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object]},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},controls:{type:String,default:void 0},border:Boolean,size:Vd,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},_M={[zd]:e=>Ue(e)||_r(e)||pi(e),change:e=>Ue(e)||_r(e)||pi(e)},$H=({model:e,isChecked:t})=>{const r=De(Os,void 0),n=$(()=>{var a,o;const s=(a=r==null?void 0:r.max)==null?void 0:a.value,l=(o=r==null?void 0:r.min)==null?void 0:o.value;return!Wc(s)&&e.value.length>=s&&!t.value||!Wc(l)&&e.value.length<=l&&t.value});return{isDisabled:oy($(()=>(r==null?void 0:r.disabled.value)||n.value)),isLimitDisabled:n}},HH=(e,{model:t,isLimitExceeded:r,hasOwnLabel:n,isDisabled:i,isLabeledByFormItem:a})=>{const o=De(Os,void 0),{formItem:s}=Gd(),{emit:l}=dt();function u(v){var p,g;return v===e.trueLabel||v===!0?(p=e.trueLabel)!=null?p:!0:(g=e.falseLabel)!=null?g:!1}function f(v,p){l("change",u(v),p)}function c(v){if(r.value)return;const p=v.target;l("change",u(p.checked),v)}async function d(v){r.value||!n.value&&!i.value&&a.value&&(v.composedPath().some(m=>m.tagName==="LABEL")||(t.value=u([!1,e.falseLabel].includes(t.value)),await Ht(),f(t.value,v)))}const h=$(()=>(o==null?void 0:o.validateEvent)||e.validateEvent);return Me(()=>e.modelValue,()=>{h.value&&(s==null||s.validate("change").catch(v=>void 0))}),{handleChange:c,onClickRoot:d}},zH=e=>{const t=H(!1),{emit:r}=dt(),n=De(Os,void 0),i=$(()=>Wc(n)===!1),a=H(!1);return{model:$({get(){var s,l;return i.value?(s=n==null?void 0:n.modelValue)==null?void 0:s.value:(l=e.modelValue)!=null?l:t.value},set(s){var l,u;i.value&&ye(s)?(a.value=((l=n==null?void 0:n.max)==null?void 0:l.value)!==void 0&&s.length>(n==null?void 0:n.max.value),a.value===!1&&((u=n==null?void 0:n.changeEvent)==null||u.call(n,s))):(r(zd,s),t.value=s)}}),isGroup:i,isLimitExceeded:a}},WH=(e,t,{model:r})=>{const n=De(Os,void 0),i=H(!1),a=$(()=>{const u=r.value;return pi(u)?u:ye(u)?je(e.label)?u.map(Ze).some(f=>zF(f,e.label)):u.map(Ze).includes(e.label):u!=null?u===e.trueLabel:!!u}),o=fo($(()=>{var u;return(u=n==null?void 0:n.size)==null?void 0:u.value}),{prop:!0}),s=fo($(()=>{var u;return(u=n==null?void 0:n.size)==null?void 0:u.value})),l=$(()=>!!(t.default||e.label));return{checkboxButtonSize:o,isChecked:a,isFocused:i,checkboxSize:s,hasOwnLabel:l}},VH=(e,{model:t})=>{function r(){ye(t.value)&&!t.value.includes(e.label)?t.value.push(e.label):t.value=e.trueLabel||!0}e.checked&&r()},bM=(e,t)=>{const{formItem:r}=Gd(),{model:n,isGroup:i,isLimitExceeded:a}=zH(e),{isFocused:o,isChecked:s,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:f}=WH(e,t,{model:n}),{isDisabled:c}=$H({model:n,isChecked:s}),{inputId:d,isLabeledByFormItem:h}=FT(e,{formItemContext:r,disableIdGeneration:f,disableIdManagement:i}),{handleChange:v,onClickRoot:p}=HH(e,{model:n,isLimitExceeded:a,hasOwnLabel:f,isDisabled:c,isLabeledByFormItem:h});return VH(e,{model:n}),{inputId:d,isLabeledByFormItem:h,isChecked:s,isDisabled:c,isFocused:o,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:f,model:n,handleChange:v,onClickRoot:p}},GH=["tabindex","role","aria-checked"],UH=["id","aria-hidden","name","tabindex","disabled","true-value","false-value"],YH=["id","aria-hidden","disabled","value","name","tabindex"],qH=ue({name:"ElCheckbox"}),jH=ue({...qH,props:yM,emits:_M,setup(e){const t=e,r=Id(),{inputId:n,isLabeledByFormItem:i,isChecked:a,isDisabled:o,isFocused:s,checkboxSize:l,hasOwnLabel:u,model:f,handleChange:c,onClickRoot:d}=bM(t,r),h=Ne("checkbox"),v=$(()=>[h.b(),h.m(l.value),h.is("disabled",o.value),h.is("bordered",t.border),h.is("checked",a.value)]),p=$(()=>[h.e("input"),h.is("disabled",o.value),h.is("checked",a.value),h.is("indeterminate",t.indeterminate),h.is("focus",s.value)]);return(g,m)=>(X(),Ie(hi(!L(u)&&L(i)?"span":"label"),{class:de(L(v)),"aria-controls":g.indeterminate?g.controls:null,onClick:L(d)},{default:ee(()=>[le("span",{class:de(L(p)),tabindex:g.indeterminate?0:void 0,role:g.indeterminate?"checkbox":void 0,"aria-checked":g.indeterminate?"mixed":void 0},[g.trueLabel||g.falseLabel?sr((X(),Se("input",{key:0,id:L(n),"onUpdate:modelValue":m[0]||(m[0]=y=>St(f)?f.value=y:null),class:de(L(h).e("original")),type:"checkbox","aria-hidden":g.indeterminate?"true":"false",name:g.name,tabindex:g.tabindex,disabled:L(o),"true-value":g.trueLabel,"false-value":g.falseLabel,onChange:m[1]||(m[1]=(...y)=>L(c)&&L(c)(...y)),onFocus:m[2]||(m[2]=y=>s.value=!0),onBlur:m[3]||(m[3]=y=>s.value=!1)},null,42,UH)),[[Nc,L(f)]]):sr((X(),Se("input",{key:1,id:L(n),"onUpdate:modelValue":m[4]||(m[4]=y=>St(f)?f.value=y:null),class:de(L(h).e("original")),type:"checkbox","aria-hidden":g.indeterminate?"true":"false",disabled:L(o),value:g.label,name:g.name,tabindex:g.tabindex,onChange:m[5]||(m[5]=(...y)=>L(c)&&L(c)(...y)),onFocus:m[6]||(m[6]=y=>s.value=!0),onBlur:m[7]||(m[7]=y=>s.value=!1)},null,42,YH)),[[Nc,L(f)]]),le("span",{class:de(L(h).e("inner"))},null,2)],10,GH),L(u)?(X(),Se("span",{key:0,class:de(L(h).e("label"))},[Be(g.$slots,"default"),g.$slots.default?ct("v-if",!0):(X(),Se(wt,{key:0},[kt(Re(g.label),1)],64))],2)):ct("v-if",!0)]),_:3},8,["class","aria-controls","onClick"]))}});var KH=Qe(jH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox.vue"]]);const XH=["name","tabindex","disabled","true-value","false-value"],ZH=["name","tabindex","disabled","value"],QH=ue({name:"ElCheckboxButton"}),JH=ue({...QH,props:yM,emits:_M,setup(e){const t=e,r=Id(),{isFocused:n,isChecked:i,isDisabled:a,checkboxButtonSize:o,model:s,handleChange:l}=bM(t,r),u=De(Os,void 0),f=Ne("checkbox"),c=$(()=>{var h,v,p,g;const m=(v=(h=u==null?void 0:u.fill)==null?void 0:h.value)!=null?v:"";return{backgroundColor:m,borderColor:m,color:(g=(p=u==null?void 0:u.textColor)==null?void 0:p.value)!=null?g:"",boxShadow:m?`-1px 0 0 0 ${m}`:void 0}}),d=$(()=>[f.b("button"),f.bm("button",o.value),f.is("disabled",a.value),f.is("checked",i.value),f.is("focus",n.value)]);return(h,v)=>(X(),Se("label",{class:de(L(d))},[h.trueLabel||h.falseLabel?sr((X(),Se("input",{key:0,"onUpdate:modelValue":v[0]||(v[0]=p=>St(s)?s.value=p:null),class:de(L(f).be("button","original")),type:"checkbox",name:h.name,tabindex:h.tabindex,disabled:L(a),"true-value":h.trueLabel,"false-value":h.falseLabel,onChange:v[1]||(v[1]=(...p)=>L(l)&&L(l)(...p)),onFocus:v[2]||(v[2]=p=>n.value=!0),onBlur:v[3]||(v[3]=p=>n.value=!1)},null,42,XH)),[[Nc,L(s)]]):sr((X(),Se("input",{key:1,"onUpdate:modelValue":v[4]||(v[4]=p=>St(s)?s.value=p:null),class:de(L(f).be("button","original")),type:"checkbox",name:h.name,tabindex:h.tabindex,disabled:L(a),value:h.label,onChange:v[5]||(v[5]=(...p)=>L(l)&&L(l)(...p)),onFocus:v[6]||(v[6]=p=>n.value=!0),onBlur:v[7]||(v[7]=p=>n.value=!1)},null,42,ZH)),[[Nc,L(s)]]),h.$slots.default||h.label?(X(),Se("span",{key:2,class:de(L(f).be("button","inner")),style:At(L(i)?L(c):void 0)},[Be(h.$slots,"default",{},()=>[kt(Re(h.label),1)])],6)):ct("v-if",!0)],2))}});var wM=Qe(JH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-button.vue"]]);const ez=at({modelValue:{type:Ae(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:Vd,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0}}),tz={[zd]:e=>ye(e),change:e=>ye(e)},rz=ue({name:"ElCheckboxGroup"}),nz=ue({...rz,props:ez,emits:tz,setup(e,{emit:t}){const r=e,n=Ne("checkbox"),{formItem:i}=Gd(),{inputId:a,isLabeledByFormItem:o}=FT(r,{formItemContext:i}),s=async u=>{t(zd,u),await Ht(),t("change",u)},l=$({get(){return r.modelValue},set(u){s(u)}});return Ct(Os,{...YF(Sd(r),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:l,changeEvent:s}),Me(()=>r.modelValue,()=>{r.validateEvent&&(i==null||i.validate("change").catch(u=>void 0))}),(u,f)=>{var c;return X(),Ie(hi(u.tag),{id:L(a),class:de(L(n).b("group")),role:"group","aria-label":L(o)?void 0:u.label||"checkbox-group","aria-labelledby":L(o)?(c=L(i))==null?void 0:c.labelId:void 0},{default:ee(()=>[Be(u.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var xM=Qe(nz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-group.vue"]]);const bs=Er(KH,{CheckboxButton:wM,CheckboxGroup:xM});ia(wM);ia(xM);const iz=at({closable:Boolean,type:{type:String,values:["success","info","warning","danger",""],default:""},hit:Boolean,disableTransitions:Boolean,color:{type:String,default:""},size:{type:String,values:Wd,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),az={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},oz=ue({name:"ElTag"}),sz=ue({...oz,props:iz,emits:az,setup(e,{emit:t}){const r=e,n=fo(),i=Ne("tag"),a=$(()=>{const{type:l,hit:u,effect:f,closable:c,round:d}=r;return[i.b(),i.is("closable",c),i.m(l),i.m(n.value),i.m(f),i.is("hit",u),i.is("round",d)]}),o=l=>{t("close",l)},s=l=>{t("click",l)};return(l,u)=>l.disableTransitions?(X(),Se("span",{key:0,class:de(L(a)),style:At({backgroundColor:l.color}),onClick:s},[le("span",{class:de(L(i).e("content"))},[Be(l.$slots,"default")],2),l.closable?(X(),Ie(L(Cn),{key:0,class:de(L(i).e("close")),onClick:Ep(o,["stop"])},{default:ee(()=>[J(L(zp))]),_:1},8,["class","onClick"])):ct("v-if",!0)],6)):(X(),Ie(Kn,{key:1,name:`${L(i).namespace.value}-zoom-in-center`,appear:""},{default:ee(()=>[le("span",{class:de(L(a)),style:At({backgroundColor:l.color}),onClick:s},[le("span",{class:de(L(i).e("content"))},[Be(l.$slots,"default")],2),l.closable?(X(),Ie(L(Cn),{key:0,class:de(L(i).e("close")),onClick:Ep(o,["stop"])},{default:ee(()=>[J(L(zp))]),_:1},8,["class","onClick"])):ct("v-if",!0)],6)]),_:3},8,["name"]))}});var lz=Qe(sz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);const uz=Er(lz),fz=at({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:Ae([Number,Object]),default:()=>Wa({})},sm:{type:Ae([Number,Object]),default:()=>Wa({})},md:{type:Ae([Number,Object]),default:()=>Wa({})},lg:{type:Ae([Number,Object]),default:()=>Wa({})},xl:{type:Ae([Number,Object]),default:()=>Wa({})}}),cz=ue({name:"ElCol"}),dz=ue({...cz,props:fz,setup(e){const t=e,{gutter:r}=De(RT,{gutter:$(()=>0)}),n=Ne("col"),i=$(()=>{const o={};return r.value&&(o.paddingLeft=o.paddingRight=`${r.value/2}px`),o}),a=$(()=>{const o=[];return["span","offset","pull","push"].forEach(u=>{const f=t[u];_r(f)&&(u==="span"?o.push(n.b(`${t[u]}`)):f>0&&o.push(n.b(`${u}-${t[u]}`)))}),["xs","sm","md","lg","xl"].forEach(u=>{_r(t[u])?o.push(n.b(`${u}-${t[u]}`)):je(t[u])&&Object.entries(t[u]).forEach(([f,c])=>{o.push(f!=="span"?n.b(`${u}-${f}-${c}`):n.b(`${u}-${c}`))})}),r.value&&o.push(n.is("guttered")),[n.b(),o]});return(o,s)=>(X(),Ie(hi(o.tag),{class:de(L(a)),style:At(L(i))},{default:ee(()=>[Be(o.$slots,"default")]),_:3},8,["class","style"]))}});var hz=Qe(dz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/col/src/col.vue"]]);const SM=Er(hz),vz=ue({name:"ElCollapseTransition"}),pz=ue({...vz,setup(e){const t=Ne("collapse-transition"),r={beforeEnter(n){n.dataset||(n.dataset={}),n.dataset.oldPaddingTop=n.style.paddingTop,n.dataset.oldPaddingBottom=n.style.paddingBottom,n.style.maxHeight=0,n.style.paddingTop=0,n.style.paddingBottom=0},enter(n){n.dataset.oldOverflow=n.style.overflow,n.scrollHeight!==0?(n.style.maxHeight=`${n.scrollHeight}px`,n.style.paddingTop=n.dataset.oldPaddingTop,n.style.paddingBottom=n.dataset.oldPaddingBottom):(n.style.maxHeight=0,n.style.paddingTop=n.dataset.oldPaddingTop,n.style.paddingBottom=n.dataset.oldPaddingBottom),n.style.overflow="hidden"},afterEnter(n){n.style.maxHeight="",n.style.overflow=n.dataset.oldOverflow},beforeLeave(n){n.dataset||(n.dataset={}),n.dataset.oldPaddingTop=n.style.paddingTop,n.dataset.oldPaddingBottom=n.style.paddingBottom,n.dataset.oldOverflow=n.style.overflow,n.style.maxHeight=`${n.scrollHeight}px`,n.style.overflow="hidden"},leave(n){n.scrollHeight!==0&&(n.style.maxHeight=0,n.style.paddingTop=0,n.style.paddingBottom=0)},afterLeave(n){n.style.maxHeight="",n.style.overflow=n.dataset.oldOverflow,n.style.paddingTop=n.dataset.oldPaddingTop,n.style.paddingBottom=n.dataset.oldPaddingBottom}};return(n,i)=>(X(),Ie(Kn,go({name:L(t).b()},qD(r)),{default:ee(()=>[Be(n.$slots,"default")]),_:3},16,["name"]))}});var pc=Qe(pz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse-transition/src/collapse-transition.vue"]]);pc.install=e=>{e.component(pc.name,pc)};const gz=pc,Jp={},mz=at({a11y:{type:Boolean,default:!0},locale:{type:Ae(Object)},size:Vd,button:{type:Ae(Object)},experimentalFeatures:{type:Ae(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:Ae(Object)},zIndex:Number,namespace:{type:String,default:"el"}});ue({name:"ElConfigProvider",props:mz,setup(e,{slots:t}){Me(()=>e.message,n=>{Object.assign(Jp,n??{})},{immediate:!0,deep:!0});const r=p5(e);return()=>Be(t,"default",{config:r==null?void 0:r.value})}});const yz=ue({inheritAttrs:!1});function _z(e,t,r,n,i,a){return Be(e.$slots,"default")}var bz=Qe(yz,[["render",_z],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);const wz=ue({name:"ElCollectionItem",inheritAttrs:!1});function xz(e,t,r,n,i,a){return Be(e.$slots,"default")}var Sz=Qe(wz,[["render",xz],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);const Cz="data-el-collection-item",Tz=e=>{const t=`El${e}Collection`,r=`${t}Item`,n=Symbol(t),i=Symbol(r),a={...bz,name:t,setup(){const s=H(null),l=new Map;Ct(n,{itemMap:l,getItems:()=>{const f=L(s);if(!f)return[];const c=Array.from(f.querySelectorAll(`[${Cz}]`));return[...l.values()].sort((h,v)=>c.indexOf(h.ref)-c.indexOf(v.ref))},collectionRef:s})}},o={...Sz,name:r,setup(s,{attrs:l}){const u=H(null),f=De(n,void 0);Ct(i,{collectionItemRef:u}),Et(()=>{const c=L(u);c&&f.itemMap.set(c,{ref:c,...l})}),tr(()=>{const c=L(u);f.itemMap.delete(c)})}};return{COLLECTION_INJECTION_KEY:n,COLLECTION_ITEM_INJECTION_KEY:i,ElCollection:a,ElCollectionItem:o}},Fh=at({trigger:du.trigger,effect:{...qr.effect,default:"light"},type:{type:Ae(String)},placement:{type:Ae(String),default:"bottom"},popperOptions:{type:Ae(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:Ae([Number,String]),default:0},maxHeight:{type:Ae([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:Ae(Object)},teleported:qr.teleported});at({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:Wi}});at({onKeydown:{type:Ae(Function)}});Lt.down,Lt.pageDown,Lt.home;Lt.up,Lt.pageUp,Lt.end;Tz("Dropdown");const Mz=at({model:Object,rules:{type:Ae(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:Wd},disabled:Boolean,validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:{type:Boolean,default:!1},scrollToError:Boolean}),Az={validate:(e,t,r)=>(ye(e)||Ue(e))&&pi(t)&&Ue(r)};function Ez(){const e=H([]),t=$(()=>{if(!e.value.length)return"0";const a=Math.max(...e.value);return a?`${a}px`:""});function r(a){const o=e.value.indexOf(a);return o===-1&&t.value,o}function n(a,o){if(a&&o){const s=r(o);e.value.splice(s,1,a)}else a&&e.value.push(a)}function i(a){const o=r(a);o>-1&&e.value.splice(o,1)}return{autoLabelWidth:t,registerLabelWidth:n,deregisterLabelWidth:i}}const df=(e,t)=>{const r=Lp(t);return r.length>0?e.filter(n=>n.prop&&r.includes(n.prop)):e},Pz="ElForm",Lz=ue({name:Pz}),Dz=ue({...Lz,props:Mz,emits:Az,setup(e,{expose:t,emit:r}){const n=e,i=[],a=fo(),o=Ne("form"),s=$(()=>{const{labelPosition:y,inline:_}=n;return[o.b(),o.m(a.value||"default"),{[o.m(`label-${y}`)]:y,[o.m("inline")]:_}]}),l=y=>{i.push(y)},u=y=>{y.prop&&i.splice(i.indexOf(y),1)},f=(y=[])=>{n.model&&df(i,y).forEach(_=>_.resetField())},c=(y=[])=>{df(i,y).forEach(_=>_.clearValidate())},d=$(()=>!!n.model),h=y=>{if(i.length===0)return[];const _=df(i,y);return _.length?_:[]},v=async y=>g(void 0,y),p=async(y=[])=>{if(!d.value)return!1;const _=h(y);if(_.length===0)return!0;let b={};for(const x of _)try{await x.validate("")}catch(w){b={...b,...w}}return Object.keys(b).length===0?!0:Promise.reject(b)},g=async(y=[],_)=>{const b=!Ee(_);try{const x=await p(y);return x===!0&&(_==null||_(x)),x}catch(x){if(x instanceof Error)throw x;const w=x;return n.scrollToError&&m(Object.keys(w)[0]),_==null||_(!1,w),b&&Promise.reject(w)}},m=y=>{var _;const b=df(i,y)[0];b&&((_=b.$el)==null||_.scrollIntoView())};return Me(()=>n.rules,()=>{n.validateOnRuleChange&&v().catch(y=>void 0)},{deep:!0}),Ct(ks,ln({...Sd(n),emit:r,resetFields:f,clearValidate:c,validateField:g,addField:l,removeField:u,...Ez()})),t({validate:v,validateField:g,resetFields:f,clearValidate:c,scrollToField:m}),(y,_)=>(X(),Se("form",{class:de(L(s))},[Be(y.$slots,"default")],2))}});var Iz=Qe(Dz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]);function qa(){return qa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qa.apply(this,arguments)}function Rz(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,hu(e,t)}function eg(e){return eg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},eg(e)}function hu(e,t){return hu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},hu(e,t)}function Oz(){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 gc(e,t,r){return Oz()?gc=Reflect.construct.bind():gc=function(i,a,o){var s=[null];s.push.apply(s,a);var l=Function.bind.apply(i,s),u=new l;return o&&hu(u,o.prototype),u},gc.apply(null,arguments)}function kz(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function tg(e){var t=typeof Map=="function"?new Map:void 0;return tg=function(n){if(n===null||!kz(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(n))return t.get(n);t.set(n,i)}function i(){return gc(n,arguments,eg(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),hu(i,n)},tg(e)}var Nz=/%[sdj%]/g,Bz=function(){};typeof process<"u"&&process.env;function rg(e){if(!e||!e.length)return null;var t={};return e.forEach(function(r){var n=r.field;t[n]=t[n]||[],t[n].push(r)}),t}function Rr(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=0,a=r.length;if(typeof e=="function")return e.apply(null,r);if(typeof e=="string"){var o=e.replace(Nz,function(s){if(s==="%%")return"%";if(i>=a)return s;switch(s){case"%s":return String(r[i++]);case"%d":return Number(r[i++]);case"%j":try{return JSON.stringify(r[i++])}catch{return"[Circular]"}break;default:return s}});return o}return e}function Fz(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Bt(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||Fz(t)&&typeof e=="string"&&!e)}function $z(e,t,r){var n=[],i=0,a=e.length;function o(s){n.push.apply(n,s||[]),i++,i===a&&r(n)}e.forEach(function(s){t(s,o)})}function $b(e,t,r){var n=0,i=e.length;function a(o){if(o&&o.length){r(o);return}var s=n;n=n+1,s<i?t(e[s],a):r([])}a([])}function Hz(e){var t=[];return Object.keys(e).forEach(function(r){t.push.apply(t,e[r]||[])}),t}var Hb=function(e){Rz(t,e);function t(r,n){var i;return i=e.call(this,"Async Validation Error")||this,i.errors=r,i.fields=n,i}return t}(tg(Error));function zz(e,t,r,n,i){if(t.first){var a=new Promise(function(d,h){var v=function(m){return n(m),m.length?h(new Hb(m,rg(m))):d(i)},p=Hz(e);$b(p,r,v)});return a.catch(function(d){return d}),a}var o=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,u=0,f=[],c=new Promise(function(d,h){var v=function(g){if(f.push.apply(f,g),u++,u===l)return n(f),f.length?h(new Hb(f,rg(f))):d(i)};s.length||(n(f),d(i)),s.forEach(function(p){var g=e[p];o.indexOf(p)!==-1?$b(g,r,v):$z(g,r,v)})});return c.catch(function(d){return d}),c}function Wz(e){return!!(e&&e.message!==void 0)}function Vz(e,t){for(var r=e,n=0;n<t.length;n++){if(r==null)return r;r=r[t[n]]}return r}function zb(e,t){return function(r){var n;return e.fullFields?n=Vz(t,e.fullFields):n=t[r.field||e.fullField],Wz(r)?(r.field=r.field||e.fullField,r.fieldValue=n,r):{message:typeof r=="function"?r():r,fieldValue:n,field:r.field||e.fullField}}}function Wb(e,t){if(t){for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];typeof n=="object"&&typeof e[r]=="object"?e[r]=qa({},e[r],n):e[r]=n}}return e}var CM=function(t,r,n,i,a,o){t.required&&(!n.hasOwnProperty(t.field)||Bt(r,o||t.type))&&i.push(Rr(a.messages.required,t.fullField))},Gz=function(t,r,n,i,a){(/^\s+$/.test(r)||r==="")&&i.push(Rr(a.messages.whitespace,t.fullField))},hf,Uz=function(){if(hf)return hf;var e="[a-fA-F\\d:]",t=function(b){return b&&b.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},r="(?: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}",n="[a-fA-F\\d]{1,4}",i=(`
+*/const FH=function(e,t){if(e&&e.addEventListener){const r=function(n){const i=BH(n);t&&Reflect.apply(t,this,[n,i])};e.addEventListener("wheel",r,{passive:!0})}},$H={beforeMount(e,t){FH(e,t.value)}},_M={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object]},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},controls:{type:String,default:void 0},border:Boolean,size:Gd,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},bM={[Wd]:e=>Ue(e)||_r(e)||gi(e),change:e=>Ue(e)||_r(e)||gi(e)},HH=({model:e,isChecked:t})=>{const r=Re(Os,void 0),n=$(()=>{var a,o;const s=(a=r==null?void 0:r.max)==null?void 0:a.value,l=(o=r==null?void 0:r.min)==null?void 0:o.value;return!Vc(s)&&e.value.length>=s&&!t.value||!Vc(l)&&e.value.length<=l&&t.value});return{isDisabled:oy($(()=>(r==null?void 0:r.disabled.value)||n.value)),isLimitDisabled:n}},zH=(e,{model:t,isLimitExceeded:r,hasOwnLabel:n,isDisabled:i,isLabeledByFormItem:a})=>{const o=Re(Os,void 0),{formItem:s}=Ud(),{emit:l}=dt();function u(v){var p,g;return v===e.trueLabel||v===!0?(p=e.trueLabel)!=null?p:!0:(g=e.falseLabel)!=null?g:!1}function f(v,p){l("change",u(v),p)}function c(v){if(r.value)return;const p=v.target;l("change",u(p.checked),v)}async function d(v){r.value||!n.value&&!i.value&&a.value&&(v.composedPath().some(m=>m.tagName==="LABEL")||(t.value=u([!1,e.falseLabel].includes(t.value)),await zt(),f(t.value,v)))}const h=$(()=>(o==null?void 0:o.validateEvent)||e.validateEvent);return Ee(()=>e.modelValue,()=>{h.value&&(s==null||s.validate("change").catch(v=>void 0))}),{handleChange:c,onClickRoot:d}},WH=e=>{const t=H(!1),{emit:r}=dt(),n=Re(Os,void 0),i=$(()=>Vc(n)===!1),a=H(!1);return{model:$({get(){var s,l;return i.value?(s=n==null?void 0:n.modelValue)==null?void 0:s.value:(l=e.modelValue)!=null?l:t.value},set(s){var l,u;i.value&&ye(s)?(a.value=((l=n==null?void 0:n.max)==null?void 0:l.value)!==void 0&&s.length>(n==null?void 0:n.max.value),a.value===!1&&((u=n==null?void 0:n.changeEvent)==null||u.call(n,s))):(r(Wd,s),t.value=s)}}),isGroup:i,isLimitExceeded:a}},VH=(e,t,{model:r})=>{const n=Re(Os,void 0),i=H(!1),a=$(()=>{const u=r.value;return gi(u)?u:ye(u)?Ke(e.label)?u.map(Qe).some(f=>WF(f,e.label)):u.map(Qe).includes(e.label):u!=null?u===e.trueLabel:!!u}),o=fo($(()=>{var u;return(u=n==null?void 0:n.size)==null?void 0:u.value}),{prop:!0}),s=fo($(()=>{var u;return(u=n==null?void 0:n.size)==null?void 0:u.value})),l=$(()=>!!(t.default||e.label));return{checkboxButtonSize:o,isChecked:a,isFocused:i,checkboxSize:s,hasOwnLabel:l}},GH=(e,{model:t})=>{function r(){ye(t.value)&&!t.value.includes(e.label)?t.value.push(e.label):t.value=e.trueLabel||!0}e.checked&&r()},wM=(e,t)=>{const{formItem:r}=Ud(),{model:n,isGroup:i,isLimitExceeded:a}=WH(e),{isFocused:o,isChecked:s,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:f}=VH(e,t,{model:n}),{isDisabled:c}=HH({model:n,isChecked:s}),{inputId:d,isLabeledByFormItem:h}=$T(e,{formItemContext:r,disableIdGeneration:f,disableIdManagement:i}),{handleChange:v,onClickRoot:p}=zH(e,{model:n,isLimitExceeded:a,hasOwnLabel:f,isDisabled:c,isLabeledByFormItem:h});return GH(e,{model:n}),{inputId:d,isLabeledByFormItem:h,isChecked:s,isDisabled:c,isFocused:o,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:f,model:n,handleChange:v,onClickRoot:p}},UH=["tabindex","role","aria-checked"],YH=["id","aria-hidden","name","tabindex","disabled","true-value","false-value"],qH=["id","aria-hidden","disabled","value","name","tabindex"],jH=ue({name:"ElCheckbox"}),KH=ue({...jH,props:_M,emits:bM,setup(e){const t=e,r=Rd(),{inputId:n,isLabeledByFormItem:i,isChecked:a,isDisabled:o,isFocused:s,checkboxSize:l,hasOwnLabel:u,model:f,handleChange:c,onClickRoot:d}=wM(t,r),h=Ne("checkbox"),v=$(()=>[h.b(),h.m(l.value),h.is("disabled",o.value),h.is("bordered",t.border),h.is("checked",a.value)]),p=$(()=>[h.e("input"),h.is("disabled",o.value),h.is("checked",a.value),h.is("indeterminate",t.indeterminate),h.is("focus",s.value)]);return(g,m)=>(K(),xe(hi(!L(u)&&L(i)?"span":"label"),{class:de(L(v)),"aria-controls":g.indeterminate?g.controls:null,onClick:L(d)},{default:Z(()=>[se("span",{class:de(L(p)),tabindex:g.indeterminate?0:void 0,role:g.indeterminate?"checkbox":void 0,"aria-checked":g.indeterminate?"mixed":void 0},[g.trueLabel||g.falseLabel?qt((K(),Se("input",{key:0,id:L(n),"onUpdate:modelValue":m[0]||(m[0]=y=>St(f)?f.value=y:null),class:de(L(h).e("original")),type:"checkbox","aria-hidden":g.indeterminate?"true":"false",name:g.name,tabindex:g.tabindex,disabled:L(o),"true-value":g.trueLabel,"false-value":g.falseLabel,onChange:m[1]||(m[1]=(...y)=>L(c)&&L(c)(...y)),onFocus:m[2]||(m[2]=y=>s.value=!0),onBlur:m[3]||(m[3]=y=>s.value=!1)},null,42,YH)),[[Bc,L(f)]]):qt((K(),Se("input",{key:1,id:L(n),"onUpdate:modelValue":m[4]||(m[4]=y=>St(f)?f.value=y:null),class:de(L(h).e("original")),type:"checkbox","aria-hidden":g.indeterminate?"true":"false",disabled:L(o),value:g.label,name:g.name,tabindex:g.tabindex,onChange:m[5]||(m[5]=(...y)=>L(c)&&L(c)(...y)),onFocus:m[6]||(m[6]=y=>s.value=!0),onBlur:m[7]||(m[7]=y=>s.value=!1)},null,42,qH)),[[Bc,L(f)]]),se("span",{class:de(L(h).e("inner"))},null,2)],10,UH),L(u)?(K(),Se("span",{key:0,class:de(L(h).e("label"))},[Be(g.$slots,"default"),g.$slots.default?Ye("v-if",!0):(K(),Se(yt,{key:0},[kt(Ae(g.label),1)],64))],2)):Ye("v-if",!0)]),_:3},8,["class","aria-controls","onClick"]))}});var XH=Je(KH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox.vue"]]);const ZH=["name","tabindex","disabled","true-value","false-value"],QH=["name","tabindex","disabled","value"],JH=ue({name:"ElCheckboxButton"}),ez=ue({...JH,props:_M,emits:bM,setup(e){const t=e,r=Rd(),{isFocused:n,isChecked:i,isDisabled:a,checkboxButtonSize:o,model:s,handleChange:l}=wM(t,r),u=Re(Os,void 0),f=Ne("checkbox"),c=$(()=>{var h,v,p,g;const m=(v=(h=u==null?void 0:u.fill)==null?void 0:h.value)!=null?v:"";return{backgroundColor:m,borderColor:m,color:(g=(p=u==null?void 0:u.textColor)==null?void 0:p.value)!=null?g:"",boxShadow:m?`-1px 0 0 0 ${m}`:void 0}}),d=$(()=>[f.b("button"),f.bm("button",o.value),f.is("disabled",a.value),f.is("checked",i.value),f.is("focus",n.value)]);return(h,v)=>(K(),Se("label",{class:de(L(d))},[h.trueLabel||h.falseLabel?qt((K(),Se("input",{key:0,"onUpdate:modelValue":v[0]||(v[0]=p=>St(s)?s.value=p:null),class:de(L(f).be("button","original")),type:"checkbox",name:h.name,tabindex:h.tabindex,disabled:L(a),"true-value":h.trueLabel,"false-value":h.falseLabel,onChange:v[1]||(v[1]=(...p)=>L(l)&&L(l)(...p)),onFocus:v[2]||(v[2]=p=>n.value=!0),onBlur:v[3]||(v[3]=p=>n.value=!1)},null,42,ZH)),[[Bc,L(s)]]):qt((K(),Se("input",{key:1,"onUpdate:modelValue":v[4]||(v[4]=p=>St(s)?s.value=p:null),class:de(L(f).be("button","original")),type:"checkbox",name:h.name,tabindex:h.tabindex,disabled:L(a),value:h.label,onChange:v[5]||(v[5]=(...p)=>L(l)&&L(l)(...p)),onFocus:v[6]||(v[6]=p=>n.value=!0),onBlur:v[7]||(v[7]=p=>n.value=!1)},null,42,QH)),[[Bc,L(s)]]),h.$slots.default||h.label?(K(),Se("span",{key:2,class:de(L(f).be("button","inner")),style:At(L(i)?L(c):void 0)},[Be(h.$slots,"default",{},()=>[kt(Ae(h.label),1)])],6)):Ye("v-if",!0)],2))}});var xM=Je(ez,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-button.vue"]]);const tz=ot({modelValue:{type:Pe(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:Gd,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0}}),rz={[Wd]:e=>ye(e),change:e=>ye(e)},nz=ue({name:"ElCheckboxGroup"}),iz=ue({...nz,props:tz,emits:rz,setup(e,{emit:t}){const r=e,n=Ne("checkbox"),{formItem:i}=Ud(),{inputId:a,isLabeledByFormItem:o}=$T(r,{formItemContext:i}),s=async u=>{t(Wd,u),await zt(),t("change",u)},l=$({get(){return r.modelValue},set(u){s(u)}});return Ct(Os,{...qF(Cd(r),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:l,changeEvent:s}),Ee(()=>r.modelValue,()=>{r.validateEvent&&(i==null||i.validate("change").catch(u=>void 0))}),(u,f)=>{var c;return K(),xe(hi(u.tag),{id:L(a),class:de(L(n).b("group")),role:"group","aria-label":L(o)?void 0:u.label||"checkbox-group","aria-labelledby":L(o)?(c=L(i))==null?void 0:c.labelId:void 0},{default:Z(()=>[Be(u.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var SM=Je(iz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-group.vue"]]);const bs=Er(XH,{CheckboxButton:xM,CheckboxGroup:SM});aa(xM);aa(SM);const az=ot({closable:Boolean,type:{type:String,values:["success","info","warning","danger",""],default:""},hit:Boolean,disableTransitions:Boolean,color:{type:String,default:""},size:{type:String,values:Vd,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),oz={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},sz=ue({name:"ElTag"}),lz=ue({...sz,props:az,emits:oz,setup(e,{emit:t}){const r=e,n=fo(),i=Ne("tag"),a=$(()=>{const{type:l,hit:u,effect:f,closable:c,round:d}=r;return[i.b(),i.is("closable",c),i.m(l),i.m(n.value),i.m(f),i.is("hit",u),i.is("round",d)]}),o=l=>{t("close",l)},s=l=>{t("click",l)};return(l,u)=>l.disableTransitions?(K(),Se("span",{key:0,class:de(L(a)),style:At({backgroundColor:l.color}),onClick:s},[se("span",{class:de(L(i).e("content"))},[Be(l.$slots,"default")],2),l.closable?(K(),xe(L(Cn),{key:0,class:de(L(i).e("close")),onClick:Ep(o,["stop"])},{default:Z(()=>[ee(L(zp))]),_:1},8,["class","onClick"])):Ye("v-if",!0)],6)):(K(),xe(Kn,{key:1,name:`${L(i).namespace.value}-zoom-in-center`,appear:""},{default:Z(()=>[se("span",{class:de(L(a)),style:At({backgroundColor:l.color}),onClick:s},[se("span",{class:de(L(i).e("content"))},[Be(l.$slots,"default")],2),l.closable?(K(),xe(L(Cn),{key:0,class:de(L(i).e("close")),onClick:Ep(o,["stop"])},{default:Z(()=>[ee(L(zp))]),_:1},8,["class","onClick"])):Ye("v-if",!0)],6)]),_:3},8,["name"]))}});var uz=Je(lz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);const fz=Er(uz),cz=ot({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:Pe([Number,Object]),default:()=>Va({})},sm:{type:Pe([Number,Object]),default:()=>Va({})},md:{type:Pe([Number,Object]),default:()=>Va({})},lg:{type:Pe([Number,Object]),default:()=>Va({})},xl:{type:Pe([Number,Object]),default:()=>Va({})}}),dz=ue({name:"ElCol"}),hz=ue({...dz,props:cz,setup(e){const t=e,{gutter:r}=Re(OT,{gutter:$(()=>0)}),n=Ne("col"),i=$(()=>{const o={};return r.value&&(o.paddingLeft=o.paddingRight=`${r.value/2}px`),o}),a=$(()=>{const o=[];return["span","offset","pull","push"].forEach(u=>{const f=t[u];_r(f)&&(u==="span"?o.push(n.b(`${t[u]}`)):f>0&&o.push(n.b(`${u}-${t[u]}`)))}),["xs","sm","md","lg","xl"].forEach(u=>{_r(t[u])?o.push(n.b(`${u}-${t[u]}`)):Ke(t[u])&&Object.entries(t[u]).forEach(([f,c])=>{o.push(f!=="span"?n.b(`${u}-${f}-${c}`):n.b(`${u}-${c}`))})}),r.value&&o.push(n.is("guttered")),[n.b(),o]});return(o,s)=>(K(),xe(hi(o.tag),{class:de(L(a)),style:At(L(i))},{default:Z(()=>[Be(o.$slots,"default")]),_:3},8,["class","style"]))}});var vz=Je(hz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/col/src/col.vue"]]);const CM=Er(vz),pz=ue({name:"ElCollapseTransition"}),gz=ue({...pz,setup(e){const t=Ne("collapse-transition"),r={beforeEnter(n){n.dataset||(n.dataset={}),n.dataset.oldPaddingTop=n.style.paddingTop,n.dataset.oldPaddingBottom=n.style.paddingBottom,n.style.maxHeight=0,n.style.paddingTop=0,n.style.paddingBottom=0},enter(n){n.dataset.oldOverflow=n.style.overflow,n.scrollHeight!==0?(n.style.maxHeight=`${n.scrollHeight}px`,n.style.paddingTop=n.dataset.oldPaddingTop,n.style.paddingBottom=n.dataset.oldPaddingBottom):(n.style.maxHeight=0,n.style.paddingTop=n.dataset.oldPaddingTop,n.style.paddingBottom=n.dataset.oldPaddingBottom),n.style.overflow="hidden"},afterEnter(n){n.style.maxHeight="",n.style.overflow=n.dataset.oldOverflow},beforeLeave(n){n.dataset||(n.dataset={}),n.dataset.oldPaddingTop=n.style.paddingTop,n.dataset.oldPaddingBottom=n.style.paddingBottom,n.dataset.oldOverflow=n.style.overflow,n.style.maxHeight=`${n.scrollHeight}px`,n.style.overflow="hidden"},leave(n){n.scrollHeight!==0&&(n.style.maxHeight=0,n.style.paddingTop=0,n.style.paddingBottom=0)},afterLeave(n){n.style.maxHeight="",n.style.overflow=n.dataset.oldOverflow,n.style.paddingTop=n.dataset.oldPaddingTop,n.style.paddingBottom=n.dataset.oldPaddingBottom}};return(n,i)=>(K(),xe(Kn,go({name:L(t).b()},jD(r)),{default:Z(()=>[Be(n.$slots,"default")]),_:3},16,["name"]))}});var gc=Je(gz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse-transition/src/collapse-transition.vue"]]);gc.install=e=>{e.component(gc.name,gc)};const mz=gc,Jp={},yz=ot({a11y:{type:Boolean,default:!0},locale:{type:Pe(Object)},size:Gd,button:{type:Pe(Object)},experimentalFeatures:{type:Pe(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:Pe(Object)},zIndex:Number,namespace:{type:String,default:"el"}});ue({name:"ElConfigProvider",props:yz,setup(e,{slots:t}){Ee(()=>e.message,n=>{Object.assign(Jp,n??{})},{immediate:!0,deep:!0});const r=g5(e);return()=>Be(t,"default",{config:r==null?void 0:r.value})}});const _z=ue({inheritAttrs:!1});function bz(e,t,r,n,i,a){return Be(e.$slots,"default")}var wz=Je(_z,[["render",bz],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);const xz=ue({name:"ElCollectionItem",inheritAttrs:!1});function Sz(e,t,r,n,i,a){return Be(e.$slots,"default")}var Cz=Je(xz,[["render",Sz],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);const Tz="data-el-collection-item",Mz=e=>{const t=`El${e}Collection`,r=`${t}Item`,n=Symbol(t),i=Symbol(r),a={...wz,name:t,setup(){const s=H(null),l=new Map;Ct(n,{itemMap:l,getItems:()=>{const f=L(s);if(!f)return[];const c=Array.from(f.querySelectorAll(`[${Tz}]`));return[...l.values()].sort((h,v)=>c.indexOf(h.ref)-c.indexOf(v.ref))},collectionRef:s})}},o={...Cz,name:r,setup(s,{attrs:l}){const u=H(null),f=Re(n,void 0);Ct(i,{collectionItemRef:u}),Et(()=>{const c=L(u);c&&f.itemMap.set(c,{ref:c,...l})}),rr(()=>{const c=L(u);f.itemMap.delete(c)})}};return{COLLECTION_INJECTION_KEY:n,COLLECTION_ITEM_INJECTION_KEY:i,ElCollection:a,ElCollectionItem:o}},Fh=ot({trigger:du.trigger,effect:{...qr.effect,default:"light"},type:{type:Pe(String)},placement:{type:Pe(String),default:"bottom"},popperOptions:{type:Pe(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:Pe([Number,String]),default:0},maxHeight:{type:Pe([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:Pe(Object)},teleported:qr.teleported});ot({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:Vi}});ot({onKeydown:{type:Pe(Function)}});Lt.down,Lt.pageDown,Lt.home;Lt.up,Lt.pageUp,Lt.end;Mz("Dropdown");const Az=ot({model:Object,rules:{type:Pe(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:Vd},disabled:Boolean,validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:{type:Boolean,default:!1},scrollToError:Boolean}),Ez={validate:(e,t,r)=>(ye(e)||Ue(e))&&gi(t)&&Ue(r)};function Pz(){const e=H([]),t=$(()=>{if(!e.value.length)return"0";const a=Math.max(...e.value);return a?`${a}px`:""});function r(a){const o=e.value.indexOf(a);return o===-1&&t.value,o}function n(a,o){if(a&&o){const s=r(o);e.value.splice(s,1,a)}else a&&e.value.push(a)}function i(a){const o=r(a);o>-1&&e.value.splice(o,1)}return{autoLabelWidth:t,registerLabelWidth:n,deregisterLabelWidth:i}}const hf=(e,t)=>{const r=Lp(t);return r.length>0?e.filter(n=>n.prop&&r.includes(n.prop)):e},Lz="ElForm",Dz=ue({name:Lz}),Iz=ue({...Dz,props:Az,emits:Ez,setup(e,{expose:t,emit:r}){const n=e,i=[],a=fo(),o=Ne("form"),s=$(()=>{const{labelPosition:y,inline:_}=n;return[o.b(),o.m(a.value||"default"),{[o.m(`label-${y}`)]:y,[o.m("inline")]:_}]}),l=y=>{i.push(y)},u=y=>{y.prop&&i.splice(i.indexOf(y),1)},f=(y=[])=>{n.model&&hf(i,y).forEach(_=>_.resetField())},c=(y=[])=>{hf(i,y).forEach(_=>_.clearValidate())},d=$(()=>!!n.model),h=y=>{if(i.length===0)return[];const _=hf(i,y);return _.length?_:[]},v=async y=>g(void 0,y),p=async(y=[])=>{if(!d.value)return!1;const _=h(y);if(_.length===0)return!0;let b={};for(const x of _)try{await x.validate("")}catch(w){b={...b,...w}}return Object.keys(b).length===0?!0:Promise.reject(b)},g=async(y=[],_)=>{const b=!Le(_);try{const x=await p(y);return x===!0&&(_==null||_(x)),x}catch(x){if(x instanceof Error)throw x;const w=x;return n.scrollToError&&m(Object.keys(w)[0]),_==null||_(!1,w),b&&Promise.reject(w)}},m=y=>{var _;const b=hf(i,y)[0];b&&((_=b.$el)==null||_.scrollIntoView())};return Ee(()=>n.rules,()=>{n.validateOnRuleChange&&v().catch(y=>void 0)},{deep:!0}),Ct(ks,ln({...Cd(n),emit:r,resetFields:f,clearValidate:c,validateField:g,addField:l,removeField:u,...Pz()})),t({validate:v,validateField:g,resetFields:f,clearValidate:c,scrollToField:m}),(y,_)=>(K(),Se("form",{class:de(L(s))},[Be(y.$slots,"default")],2))}});var Rz=Je(Iz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]);function ja(){return ja=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ja.apply(this,arguments)}function Oz(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,hu(e,t)}function eg(e){return eg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},eg(e)}function hu(e,t){return hu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},hu(e,t)}function kz(){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 mc(e,t,r){return kz()?mc=Reflect.construct.bind():mc=function(i,a,o){var s=[null];s.push.apply(s,a);var l=Function.bind.apply(i,s),u=new l;return o&&hu(u,o.prototype),u},mc.apply(null,arguments)}function Nz(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function tg(e){var t=typeof Map=="function"?new Map:void 0;return tg=function(n){if(n===null||!Nz(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(n))return t.get(n);t.set(n,i)}function i(){return mc(n,arguments,eg(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),hu(i,n)},tg(e)}var Bz=/%[sdj%]/g,Fz=function(){};typeof process<"u"&&process.env;function rg(e){if(!e||!e.length)return null;var t={};return e.forEach(function(r){var n=r.field;t[n]=t[n]||[],t[n].push(r)}),t}function Rr(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=0,a=r.length;if(typeof e=="function")return e.apply(null,r);if(typeof e=="string"){var o=e.replace(Bz,function(s){if(s==="%%")return"%";if(i>=a)return s;switch(s){case"%s":return String(r[i++]);case"%d":return Number(r[i++]);case"%j":try{return JSON.stringify(r[i++])}catch{return"[Circular]"}break;default:return s}});return o}return e}function $z(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Bt(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||$z(t)&&typeof e=="string"&&!e)}function Hz(e,t,r){var n=[],i=0,a=e.length;function o(s){n.push.apply(n,s||[]),i++,i===a&&r(n)}e.forEach(function(s){t(s,o)})}function $b(e,t,r){var n=0,i=e.length;function a(o){if(o&&o.length){r(o);return}var s=n;n=n+1,s<i?t(e[s],a):r([])}a([])}function zz(e){var t=[];return Object.keys(e).forEach(function(r){t.push.apply(t,e[r]||[])}),t}var Hb=function(e){Oz(t,e);function t(r,n){var i;return i=e.call(this,"Async Validation Error")||this,i.errors=r,i.fields=n,i}return t}(tg(Error));function Wz(e,t,r,n,i){if(t.first){var a=new Promise(function(d,h){var v=function(m){return n(m),m.length?h(new Hb(m,rg(m))):d(i)},p=zz(e);$b(p,r,v)});return a.catch(function(d){return d}),a}var o=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,u=0,f=[],c=new Promise(function(d,h){var v=function(g){if(f.push.apply(f,g),u++,u===l)return n(f),f.length?h(new Hb(f,rg(f))):d(i)};s.length||(n(f),d(i)),s.forEach(function(p){var g=e[p];o.indexOf(p)!==-1?$b(g,r,v):Hz(g,r,v)})});return c.catch(function(d){return d}),c}function Vz(e){return!!(e&&e.message!==void 0)}function Gz(e,t){for(var r=e,n=0;n<t.length;n++){if(r==null)return r;r=r[t[n]]}return r}function zb(e,t){return function(r){var n;return e.fullFields?n=Gz(t,e.fullFields):n=t[r.field||e.fullField],Vz(r)?(r.field=r.field||e.fullField,r.fieldValue=n,r):{message:typeof r=="function"?r():r,fieldValue:n,field:r.field||e.fullField}}}function Wb(e,t){if(t){for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];typeof n=="object"&&typeof e[r]=="object"?e[r]=ja({},e[r],n):e[r]=n}}return e}var TM=function(t,r,n,i,a,o){t.required&&(!n.hasOwnProperty(t.field)||Bt(r,o||t.type))&&i.push(Rr(a.messages.required,t.fullField))},Uz=function(t,r,n,i,a){(/^\s+$/.test(r)||r==="")&&i.push(Rr(a.messages.whitespace,t.fullField))},vf,Yz=function(){if(vf)return vf;var e="[a-fA-F\\d:]",t=function(b){return b&&b.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},r="(?: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}",n="[a-fA-F\\d]{1,4}",i=(`
 (?:
 (?:`+n+":){7}(?:"+n+`|:)|                                    // 1:2:3:4:5:6:7::  1:2:3:4:5:6:7:8
 (?:`+n+":){6}(?:"+r+"|:"+n+`|:)|                             // 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
@@ -22,18 +22,18 @@ var TL=Object.defineProperty;var ML=(e,t,r)=>t in e?TL(e,t,{enumerable:!0,config
 (?:`+n+":){1}(?:(?::"+n+"){0,4}:"+r+"|(?::"+n+`){1,6}|:)| // 1::              1::3:4:5:6:7:8   1::8            1::3:4:5:6:7:1.2.3.4
 (?::(?:(?::`+n+"){0,5}:"+r+"|(?::"+n+`){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(),a=new RegExp("(?:^"+r+"$)|(?:^"+i+"$)"),o=new RegExp("^"+r+"$"),s=new RegExp("^"+i+"$"),l=function(b){return b&&b.exact?a:new RegExp("(?:"+t(b)+r+t(b)+")|(?:"+t(b)+i+t(b)+")","g")};l.v4=function(_){return _&&_.exact?o:new RegExp(""+t(_)+r+t(_),"g")},l.v6=function(_){return _&&_.exact?s:new RegExp(""+t(_)+i+t(_),"g")};var u="(?:(?:[a-z]+:)?//)",f="(?:\\S+(?::\\S*)?@)?",c=l.v4().source,d=l.v6().source,h="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",v="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",p="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",g="(?::\\d{2,5})?",m='(?:[/?#][^\\s"]*)?',y="(?:"+u+"|www\\.)"+f+"(?:localhost|"+c+"|"+d+"|"+h+v+p+")"+g+m;return hf=new RegExp("(?:^"+y+"$)","i"),hf},Vb={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},gl={integer:function(t){return gl.number(t)&&parseInt(t,10)===t},float:function(t){return gl.number(t)&&!gl.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"&&!gl.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Vb.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(Uz())},hex:function(t){return typeof t=="string"&&!!t.match(Vb.hex)}},Yz=function(t,r,n,i,a){if(t.required&&r===void 0){CM(t,r,n,i,a);return}var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;o.indexOf(s)>-1?gl[s](r)||i.push(Rr(a.messages.types[s],t.fullField,t.type)):s&&typeof r!==t.type&&i.push(Rr(a.messages.types[s],t.fullField,t.type))},qz=function(t,r,n,i,a){var o=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,f=r,c=null,d=typeof r=="number",h=typeof r=="string",v=Array.isArray(r);if(d?c="number":h?c="string":v&&(c="array"),!c)return!1;v&&(f=r.length),h&&(f=r.replace(u,"_").length),o?f!==t.len&&i.push(Rr(a.messages[c].len,t.fullField,t.len)):s&&!l&&f<t.min?i.push(Rr(a.messages[c].min,t.fullField,t.min)):l&&!s&&f>t.max?i.push(Rr(a.messages[c].max,t.fullField,t.max)):s&&l&&(f<t.min||f>t.max)&&i.push(Rr(a.messages[c].range,t.fullField,t.min,t.max))},To="enum",jz=function(t,r,n,i,a){t[To]=Array.isArray(t[To])?t[To]:[],t[To].indexOf(r)===-1&&i.push(Rr(a.messages[To],t.fullField,t[To].join(", ")))},Kz=function(t,r,n,i,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||i.push(Rr(a.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var o=new RegExp(t.pattern);o.test(r)||i.push(Rr(a.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},Ye={required:CM,whitespace:Gz,type:Yz,range:qz,enum:jz,pattern:Kz},Xz=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Bt(r,"string")&&!t.required)return n();Ye.required(t,r,i,o,a,"string"),Bt(r,"string")||(Ye.type(t,r,i,o,a),Ye.range(t,r,i,o,a),Ye.pattern(t,r,i,o,a),t.whitespace===!0&&Ye.whitespace(t,r,i,o,a))}n(o)},Zz=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Bt(r)&&!t.required)return n();Ye.required(t,r,i,o,a),r!==void 0&&Ye.type(t,r,i,o,a)}n(o)},Qz=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(r===""&&(r=void 0),Bt(r)&&!t.required)return n();Ye.required(t,r,i,o,a),r!==void 0&&(Ye.type(t,r,i,o,a),Ye.range(t,r,i,o,a))}n(o)},Jz=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Bt(r)&&!t.required)return n();Ye.required(t,r,i,o,a),r!==void 0&&Ye.type(t,r,i,o,a)}n(o)},e6=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Bt(r)&&!t.required)return n();Ye.required(t,r,i,o,a),Bt(r)||Ye.type(t,r,i,o,a)}n(o)},t6=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Bt(r)&&!t.required)return n();Ye.required(t,r,i,o,a),r!==void 0&&(Ye.type(t,r,i,o,a),Ye.range(t,r,i,o,a))}n(o)},r6=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Bt(r)&&!t.required)return n();Ye.required(t,r,i,o,a),r!==void 0&&(Ye.type(t,r,i,o,a),Ye.range(t,r,i,o,a))}n(o)},n6=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(r==null&&!t.required)return n();Ye.required(t,r,i,o,a,"array"),r!=null&&(Ye.type(t,r,i,o,a),Ye.range(t,r,i,o,a))}n(o)},i6=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Bt(r)&&!t.required)return n();Ye.required(t,r,i,o,a),r!==void 0&&Ye.type(t,r,i,o,a)}n(o)},a6="enum",o6=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Bt(r)&&!t.required)return n();Ye.required(t,r,i,o,a),r!==void 0&&Ye[a6](t,r,i,o,a)}n(o)},s6=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Bt(r,"string")&&!t.required)return n();Ye.required(t,r,i,o,a),Bt(r,"string")||Ye.pattern(t,r,i,o,a)}n(o)},l6=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Bt(r,"date")&&!t.required)return n();if(Ye.required(t,r,i,o,a),!Bt(r,"date")){var l;r instanceof Date?l=r:l=new Date(r),Ye.type(t,l,i,o,a),l&&Ye.range(t,l.getTime(),i,o,a)}}n(o)},u6=function(t,r,n,i,a){var o=[],s=Array.isArray(r)?"array":typeof r;Ye.required(t,r,i,o,a,s),n(o)},$h=function(t,r,n,i,a){var o=t.type,s=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(Bt(r,o)&&!t.required)return n();Ye.required(t,r,i,s,a,o),Bt(r,o)||Ye.type(t,r,i,s,a)}n(s)},f6=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Bt(r)&&!t.required)return n();Ye.required(t,r,i,o,a)}n(o)},Il={string:Xz,method:Zz,number:Qz,boolean:Jz,regexp:e6,integer:t6,float:r6,array:n6,object:i6,enum:o6,pattern:s6,date:l6,url:$h,hex:$h,email:$h,required:u6,any:f6};function ng(){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 ig=ng(),Hu=function(){function e(r){this.rules=null,this._messages=ig,this.define(r)}var t=e.prototype;return t.define=function(n){var i=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(typeof n!="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(a){var o=n[a];i.rules[a]=Array.isArray(o)?o:[o]})},t.messages=function(n){return n&&(this._messages=Wb(ng(),n)),this._messages},t.validate=function(n,i,a){var o=this;i===void 0&&(i={}),a===void 0&&(a=function(){});var s=n,l=i,u=a;if(typeof l=="function"&&(u=l,l={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,s),Promise.resolve(s);function f(p){var g=[],m={};function y(b){if(Array.isArray(b)){var x;g=(x=g).concat.apply(x,b)}else g.push(b)}for(var _=0;_<p.length;_++)y(p[_]);g.length?(m=rg(g),u(g,m)):u(null,s)}if(l.messages){var c=this.messages();c===ig&&(c=ng()),Wb(c,l.messages),l.messages=c}else l.messages=this.messages();var d={},h=l.keys||Object.keys(this.rules);h.forEach(function(p){var g=o.rules[p],m=s[p];g.forEach(function(y){var _=y;typeof _.transform=="function"&&(s===n&&(s=qa({},s)),m=s[p]=_.transform(m)),typeof _=="function"?_={validator:_}:_=qa({},_),_.validator=o.getValidationMethod(_),_.validator&&(_.field=p,_.fullField=_.fullField||p,_.type=o.getType(_),d[p]=d[p]||[],d[p].push({rule:_,value:m,source:s,field:p}))})});var v={};return zz(d,l,function(p,g){var m=p.rule,y=(m.type==="object"||m.type==="array")&&(typeof m.fields=="object"||typeof m.defaultField=="object");y=y&&(m.required||!m.required&&p.value),m.field=p.field;function _(w,S){return qa({},S,{fullField:m.fullField+"."+w,fullFields:m.fullFields?[].concat(m.fullFields,[w]):[w]})}function b(w){w===void 0&&(w=[]);var S=Array.isArray(w)?w:[w];!l.suppressWarning&&S.length&&e.warning("async-validator:",S),S.length&&m.message!==void 0&&(S=[].concat(m.message));var C=S.map(zb(m,s));if(l.first&&C.length)return v[m.field]=1,g(C);if(!y)g(C);else{if(m.required&&!p.value)return m.message!==void 0?C=[].concat(m.message).map(zb(m,s)):l.error&&(C=[l.error(m,Rr(l.messages.required,m.field))]),g(C);var T={};m.defaultField&&Object.keys(p.value).map(function(M){T[M]=m.defaultField}),T=qa({},T,p.rule.fields);var E={};Object.keys(T).forEach(function(M){var D=T[M],O=Array.isArray(D)?D:[D];E[M]=O.map(_.bind(null,M))});var A=new e(E);A.messages(l.messages),p.rule.options&&(p.rule.options.messages=l.messages,p.rule.options.error=l.error),A.validate(p.value,p.rule.options||l,function(M){var D=[];C&&C.length&&D.push.apply(D,C),M&&M.length&&D.push.apply(D,M),g(D.length?D:null)})}}var x;if(m.asyncValidator)x=m.asyncValidator(m,p.value,b,p.source,l);else if(m.validator){try{x=m.validator(m,p.value,b,p.source,l)}catch(w){console.error==null||console.error(w),l.suppressValidatorError||setTimeout(function(){throw w},0),b(w.message)}x===!0?b():x===!1?b(typeof m.message=="function"?m.message(m.fullField||m.field):m.message||(m.fullField||m.field)+" fails"):x instanceof Array?b(x):x instanceof Error&&b(x.message)}x&&x.then&&x.then(function(){return b()},function(w){return b(w)})},function(p){f(p)},s)},t.getType=function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!Il.hasOwnProperty(n.type))throw new Error(Rr("Unknown rule type %s",n.type));return n.type||"string"},t.getValidationMethod=function(n){if(typeof n.validator=="function")return n.validator;var i=Object.keys(n),a=i.indexOf("message");return a!==-1&&i.splice(a,1),i.length===1&&i[0]==="required"?Il.required:Il[this.getType(n)]||void 0},e}();Hu.register=function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");Il[t]=r};Hu.warning=Bz;Hu.messages=ig;Hu.validators=Il;const c6=["","error","validating","success"],d6=at({label:String,labelWidth:{type:[String,Number],default:""},prop:{type:Ae([String,Array])},required:{type:Boolean,default:void 0},rules:{type:Ae([Object,Array])},error:String,validateStatus:{type:String,values:c6},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:Wd}}),Gb="ElLabelWrap";var h6=ue({name:Gb,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const r=De(ks,void 0),n=De(uo);n||lo(Gb,"usage: <el-form-item><label-wrap /></el-form-item>");const i=Ne("form"),a=H(),o=H(0),s=()=>{var f;if((f=a.value)!=null&&f.firstElementChild){const c=window.getComputedStyle(a.value.firstElementChild).width;return Math.ceil(Number.parseFloat(c))}else return 0},l=(f="update")=>{Ht(()=>{t.default&&e.isAutoWidth&&(f==="update"?o.value=s():f==="remove"&&(r==null||r.deregisterLabelWidth(o.value)))})},u=()=>l("update");return Et(()=>{u()}),tr(()=>{l("remove")}),Pd(()=>u()),Me(o,(f,c)=>{e.updateAll&&(r==null||r.registerLabelWidth(f,c))}),ds($(()=>{var f,c;return(c=(f=a.value)==null?void 0:f.firstElementChild)!=null?c:null}),u),()=>{var f,c;if(!t)return null;const{isAutoWidth:d}=e;if(d){const h=r==null?void 0:r.autoLabelWidth,v=n==null?void 0:n.hasLabel,p={};if(v&&h&&h!=="auto"){const g=Math.max(0,Number.parseInt(h,10)-o.value),m=r.labelPosition==="left"?"marginRight":"marginLeft";g&&(p[m]=`${g}px`)}return J("div",{ref:a,class:[i.be("item","label-wrap")],style:p},[(f=t.default)==null?void 0:f.call(t)])}else return J(wt,{ref:a},[(c=t.default)==null?void 0:c.call(t)])}}});const v6=["role","aria-labelledby"],p6=ue({name:"ElFormItem"}),g6=ue({...p6,props:d6,setup(e,{expose:t}){const r=e,n=Id(),i=De(ks,void 0),a=De(uo,void 0),o=fo(void 0,{formItem:!1}),s=Ne("form-item"),l=ly().value,u=H([]),f=H(""),c=JF(f,100),d=H(""),h=H();let v,p=!1;const g=$(()=>{if((i==null?void 0:i.labelPosition)==="top")return{};const W=vs(r.labelWidth||(i==null?void 0:i.labelWidth)||"");return W?{width:W}:{}}),m=$(()=>{if((i==null?void 0:i.labelPosition)==="top"||i!=null&&i.inline)return{};if(!r.label&&!r.labelWidth&&T)return{};const W=vs(r.labelWidth||(i==null?void 0:i.labelWidth)||"");return!r.label&&!n.label?{marginLeft:W}:{}}),y=$(()=>[s.b(),s.m(o.value),s.is("error",f.value==="error"),s.is("validating",f.value==="validating"),s.is("success",f.value==="success"),s.is("required",O.value||r.required),s.is("no-asterisk",i==null?void 0:i.hideRequiredAsterisk),(i==null?void 0:i.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[s.m("feedback")]:i==null?void 0:i.statusIcon}]),_=$(()=>pi(r.inlineMessage)?r.inlineMessage:(i==null?void 0:i.inlineMessage)||!1),b=$(()=>[s.e("error"),{[s.em("error","inline")]:_.value}]),x=$(()=>r.prop?Ue(r.prop)?r.prop:r.prop.join("."):""),w=$(()=>!!(r.label||n.label)),S=$(()=>r.for||u.value.length===1?u.value[0]:void 0),C=$(()=>!S.value&&w.value),T=!!a,E=$(()=>{const W=i==null?void 0:i.model;if(!(!W||!r.prop))return uc(W,r.prop).value}),A=$(()=>{const{required:W}=r,Y=[];r.rules&&Y.push(...Lp(r.rules));const se=i==null?void 0:i.rules;if(se&&r.prop){const he=uc(se,r.prop).value;he&&Y.push(...Lp(he))}if(W!==void 0){const he=Y.map((Z,P)=>[Z,P]).filter(([Z])=>Object.keys(Z).includes("required"));if(he.length>0)for(const[Z,P]of he)Z.required!==W&&(Y[P]={...Z,required:W});else Y.push({required:W})}return Y}),M=$(()=>A.value.length>0),D=W=>A.value.filter(se=>!se.trigger||!W?!0:Array.isArray(se.trigger)?se.trigger.includes(W):se.trigger===W).map(({trigger:se,...he})=>he),O=$(()=>A.value.some(W=>W.required)),k=$(()=>{var W;return c.value==="error"&&r.showMessage&&((W=i==null?void 0:i.showMessage)!=null?W:!0)}),F=$(()=>`${r.label||""}${(i==null?void 0:i.labelSuffix)||""}`),j=W=>{f.value=W},B=W=>{var Y,se;const{errors:he,fields:Z}=W;(!he||!Z)&&console.error(W),j("error"),d.value=he?(se=(Y=he==null?void 0:he[0])==null?void 0:Y.message)!=null?se:`${r.prop} is required`:"",i==null||i.emit("validate",r.prop,!1,d.value)},N=()=>{j("success"),i==null||i.emit("validate",r.prop,!0,"")},U=async W=>{const Y=x.value;return new Hu({[Y]:W}).validate({[Y]:E.value},{firstFields:!0}).then(()=>(N(),!0)).catch(he=>(B(he),Promise.reject(he)))},re=async(W,Y)=>{if(p||!r.prop)return!1;const se=Ee(Y);if(!M.value)return Y==null||Y(!1),!1;const he=D(W);return he.length===0?(Y==null||Y(!0),!0):(j("validating"),U(he).then(()=>(Y==null||Y(!0),!0)).catch(Z=>{const{fields:P}=Z;return Y==null||Y(!1,P),se?!1:Promise.reject(P)}))},ae=()=>{j(""),d.value="",p=!1},me=async()=>{const W=i==null?void 0:i.model;if(!W||!r.prop)return;const Y=uc(W,r.prop);p=!0,Y.value=q_(v),await Ht(),ae(),p=!1},Te=W=>{u.value.includes(W)||u.value.push(W)},V=W=>{u.value=u.value.filter(Y=>Y!==W)};Me(()=>r.error,W=>{d.value=W||"",j(W?"error":"")},{immediate:!0}),Me(()=>r.validateStatus,W=>j(W||""));const Q=ln({...Sd(r),$el:h,size:o,validateState:f,labelId:l,inputIds:u,isGroup:C,hasLabel:w,addInputId:Te,removeInputId:V,resetField:me,clearValidate:ae,validate:re});return Ct(uo,Q),Et(()=>{r.prop&&(i==null||i.addField(Q),v=q_(E.value))}),tr(()=>{i==null||i.removeField(Q)}),t({size:o,validateMessage:d,validateState:f,validate:re,clearValidate:ae,resetField:me}),(W,Y)=>{var se;return X(),Se("div",{ref_key:"formItemRef",ref:h,class:de(L(y)),role:L(C)?"group":void 0,"aria-labelledby":L(C)?L(l):void 0},[J(L(h6),{"is-auto-width":L(g).width==="auto","update-all":((se=L(i))==null?void 0:se.labelWidth)==="auto"},{default:ee(()=>[L(w)?(X(),Ie(hi(L(S)?"label":"div"),{key:0,id:L(l),for:L(S),class:de(L(s).e("label")),style:At(L(g))},{default:ee(()=>[Be(W.$slots,"label",{label:L(F)},()=>[kt(Re(L(F)),1)])]),_:3},8,["id","for","class","style"])):ct("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),le("div",{class:de(L(s).e("content")),style:At(L(m))},[Be(W.$slots,"default"),J(Kn,{name:`${L(s).namespace.value}-zoom-in-top`},{default:ee(()=>[L(k)?Be(W.$slots,"error",{key:0,error:d.value},()=>[le("div",{class:de(L(b))},Re(d.value),3)]):ct("v-if",!0)]),_:3},8,["name"])],6)],10,v6)}}});var TM=Qe(g6,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);const MM=Er(Iz,{FormItem:TM}),AM=ia(TM);let m6=class{constructor(t,r){this.parent=t,this.domNode=r,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,r=>{r.addEventListener("keydown",n=>{let i=!1;switch(n.code){case Lt.down:{this.gotoSubIndex(this.subIndex+1),i=!0;break}case Lt.up:{this.gotoSubIndex(this.subIndex-1),i=!0;break}case Lt.tab:{lc(t,"mouseleave");break}case Lt.enter:case Lt.space:{i=!0,n.currentTarget.click();break}}return i&&(n.preventDefault(),n.stopPropagation()),!1})})}},y6=class{constructor(t,r){this.domNode=t,this.submenu=null,this.submenu=null,this.init(r)}init(t){this.domNode.setAttribute("tabindex","0");const r=this.domNode.querySelector(`.${t}-menu`);r&&(this.submenu=new m6(this,r)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{let r=!1;switch(t.code){case Lt.down:{lc(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),r=!0;break}case Lt.up:{lc(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),r=!0;break}case Lt.tab:{lc(t.currentTarget,"mouseleave");break}case Lt.enter:case Lt.space:{r=!0,t.currentTarget.click();break}}r&&t.preventDefault()})}},_6=class{constructor(t,r){this.domNode=t,this.init(r)}init(t){const r=this.domNode.childNodes;Array.from(r).forEach(n=>{n.nodeType===1&&new y6(n,t)})}};const b6=ue({name:"ElMenuCollapseTransition",setup(){const e=Ne("menu");return{listeners:{onBeforeEnter:r=>r.style.opacity="0.2",onEnter(r,n){Uo(r,`${e.namespace.value}-opacity-transition`),r.style.opacity="1",n()},onAfterEnter(r){rs(r,`${e.namespace.value}-opacity-transition`),r.style.opacity=""},onBeforeLeave(r){r.dataset||(r.dataset={}),Pl(r,e.m("collapse"))?(rs(r,e.m("collapse")),r.dataset.oldOverflow=r.style.overflow,r.dataset.scrollWidth=r.clientWidth.toString(),Uo(r,e.m("collapse"))):(Uo(r,e.m("collapse")),r.dataset.oldOverflow=r.style.overflow,r.dataset.scrollWidth=r.clientWidth.toString(),rs(r,e.m("collapse"))),r.style.width=`${r.scrollWidth}px`,r.style.overflow="hidden"},onLeave(r){Uo(r,"horizontal-collapse-transition"),r.style.width=`${r.dataset.scrollWidth}px`}}}}});function w6(e,t,r,n,i,a){return X(),Ie(Kn,go({mode:"out-in"},e.listeners),{default:ee(()=>[Be(e.$slots,"default")]),_:3},16)}var x6=Qe(b6,[["render",w6],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-collapse-transition.vue"]]);function EM(e,t){const r=$(()=>{let i=e.parent;const a=[t.value];for(;i.type.name!=="ElMenu";)i.props.index&&a.unshift(i.props.index),i=i.parent;return a});return{parentMenu:$(()=>{let i=e.parent;for(;i&&!["ElMenu","ElSubMenu"].includes(i.type.name);)i=i.parent;return i}),indexPath:r}}function S6(e){return $(()=>{const r=e.backgroundColor;return r?new uM(r).shade(20).toString():""})}const PM=(e,t)=>{const r=Ne("menu");return $(()=>r.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":S6(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},C6=at({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:Wi},expandOpenIcon:{type:Wi},collapseCloseIcon:{type:Wi},collapseOpenIcon:{type:Wi}}),Hh="ElSubMenu";var wy=ue({name:Hh,props:C6,setup(e,{slots:t,expose:r}){const n=dt(),{indexPath:i,parentMenu:a}=EM(n,$(()=>e.index)),o=Ne("menu"),s=Ne("sub-menu"),l=De("rootMenu");l||lo(Hh,"can not inject root menu");const u=De(`subMenu:${a.value.uid}`);u||lo(Hh,"can not inject sub menu");const f=H({}),c=H({});let d;const h=H(!1),v=H(),p=H(null),g=$(()=>A.value==="horizontal"&&y.value?"bottom-start":"right-start"),m=$(()=>A.value==="horizontal"&&y.value||A.value==="vertical"&&!l.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?w.value?e.expandOpenIcon:e.expandCloseIcon:CT:e.collapseCloseIcon&&e.collapseOpenIcon?w.value?e.collapseOpenIcon:e.collapseCloseIcon:ny),y=$(()=>u.level===0),_=$(()=>e.popperAppendToBody===void 0?y.value:Boolean(e.popperAppendToBody)),b=$(()=>l.props.collapse?`${o.namespace.value}-zoom-in-left`:`${o.namespace.value}-zoom-in-top`),x=$(()=>A.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"]),w=$(()=>l.openedMenus.includes(e.index)),S=$(()=>{let N=!1;return Object.values(f.value).forEach(U=>{U.active&&(N=!0)}),Object.values(c.value).forEach(U=>{U.active&&(N=!0)}),N}),C=$(()=>l.props.backgroundColor||""),T=$(()=>l.props.activeTextColor||""),E=$(()=>l.props.textColor||""),A=$(()=>l.props.mode),M=ln({index:e.index,indexPath:i,active:S}),D=$(()=>A.value!=="horizontal"?{color:E.value}:{borderBottomColor:S.value?l.props.activeTextColor?T.value:"":"transparent",color:S.value?T.value:E.value}),O=()=>{var N,U,re;return(re=(U=(N=p.value)==null?void 0:N.popperRef)==null?void 0:U.popperInstanceRef)==null?void 0:re.destroy()},k=N=>{N||O()},F=()=>{l.props.menuTrigger==="hover"&&l.props.mode==="horizontal"||l.props.collapse&&l.props.mode==="vertical"||e.disabled||l.handleSubMenuClick({index:e.index,indexPath:i.value,active:S.value})},j=(N,U=e.showTimeout)=>{var re;N.type!=="focus"&&(l.props.menuTrigger==="click"&&l.props.mode==="horizontal"||!l.props.collapse&&l.props.mode==="vertical"||e.disabled||(u.mouseInChild.value=!0,d==null||d(),{stop:d}=Fp(()=>{l.openMenu(e.index,i.value)},U),_.value&&((re=a.value.vnode.el)==null||re.dispatchEvent(new MouseEvent("mouseenter")))))},B=(N=!1)=>{var U,re;l.props.menuTrigger==="click"&&l.props.mode==="horizontal"||!l.props.collapse&&l.props.mode==="vertical"||(d==null||d(),u.mouseInChild.value=!1,{stop:d}=Fp(()=>!h.value&&l.closeMenu(e.index,i.value),e.hideTimeout),_.value&&N&&((U=n.parent)==null?void 0:U.type.name)==="ElSubMenu"&&((re=u.handleMouseleave)==null||re.call(u,!0)))};Me(()=>l.props.collapse,N=>k(Boolean(N)));{const N=re=>{c.value[re.index]=re},U=re=>{delete c.value[re.index]};Ct(`subMenu:${n.uid}`,{addSubMenu:N,removeSubMenu:U,handleMouseleave:B,mouseInChild:h,level:u.level+1})}return r({opened:w}),Et(()=>{l.addSubMenu(M),u.addSubMenu(M)}),tr(()=>{u.removeSubMenu(M),l.removeSubMenu(M)}),()=>{var N;const U=[(N=t.title)==null?void 0:N.call(t),we(Cn,{class:s.e("icon-arrow"),style:{transform:w.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&l.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>Ue(m.value)?we(n.appContext.components[m.value]):we(m.value)})],re=PM(l.props,u.level+1),ae=l.isMenuPopup?we(qd,{ref:p,visible:w.value,effect:"light",pure:!0,offset:e.popperOffset,showArrow:!1,persistent:!0,popperClass:e.popperClass,placement:g.value,teleported:_.value,fallbackPlacements:x.value,transition:b.value,gpuAcceleration:!1},{content:()=>{var me;return we("div",{class:[o.m(A.value),o.m("popup-container"),e.popperClass],onMouseenter:Te=>j(Te,100),onMouseleave:()=>B(!0),onFocus:Te=>j(Te,100)},[we("ul",{class:[o.b(),o.m("popup"),o.m(`popup-${g.value}`)],style:re.value},[(me=t.default)==null?void 0:me.call(t)])])},default:()=>we("div",{class:s.e("title"),style:[D.value,{backgroundColor:C.value}],onClick:F},U)}):we(wt,{},[we("div",{class:s.e("title"),style:[D.value,{backgroundColor:C.value}],ref:v,onClick:F},U),we(gz,{},{default:()=>{var me;return sr(we("ul",{role:"menu",class:[o.b(),o.m("inline")],style:re.value},[(me=t.default)==null?void 0:me.call(t)]),[[oo,w.value]])}})]);return we("li",{class:[s.b(),s.is("active",S.value),s.is("opened",w.value),s.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:w.value,onMouseenter:j,onMouseleave:()=>B(!0),onFocus:j},[ae])}}});const T6=at({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:Ae(Array),default:()=>Wa([])},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},popperEffect:{type:String,values:["dark","light"],default:"dark"}}),zh=e=>Array.isArray(e)&&e.every(t=>Ue(t)),M6={close:(e,t)=>Ue(e)&&zh(t),open:(e,t)=>Ue(e)&&zh(t),select:(e,t,r,n)=>Ue(e)&&zh(t)&&je(r)&&(n===void 0||n instanceof Promise)};var A6=ue({name:"ElMenu",props:T6,emits:M6,setup(e,{emit:t,slots:r,expose:n}){const i=dt(),a=i.appContext.config.globalProperties.$router,o=H(),s=Ne("menu"),l=Ne("sub-menu"),u=H(-1),f=H(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),c=H(e.defaultActive),d=H({}),h=H({}),v=$(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),p=()=>{const E=c.value&&d.value[c.value];if(!E||e.mode==="horizontal"||e.collapse)return;E.indexPath.forEach(M=>{const D=h.value[M];D&&g(M,D.indexPath)})},g=(E,A)=>{f.value.includes(E)||(e.uniqueOpened&&(f.value=f.value.filter(M=>A.includes(M))),f.value.push(E),t("open",E,A))},m=(E,A)=>{const M=f.value.indexOf(E);M!==-1&&f.value.splice(M,1),t("close",E,A)},y=({index:E,indexPath:A})=>{f.value.includes(E)?m(E,A):g(E,A)},_=E=>{(e.mode==="horizontal"||e.collapse)&&(f.value=[]);const{index:A,indexPath:M}=E;if(!(A===void 0||M===void 0))if(e.router&&a){const D=E.route||A,O=a.push(D).then(k=>(k||(c.value=A),k));t("select",A,M,{index:A,indexPath:M,route:D},O)}else c.value=A,t("select",A,M,{index:A,indexPath:M})},b=E=>{const A=d.value,M=A[E]||c.value&&A[c.value]||A[e.defaultActive];M?c.value=M.index:c.value=E},x=()=>{var E,A;if(!o.value)return-1;const M=Array.from((A=(E=o.value)==null?void 0:E.childNodes)!=null?A:[]).filter(N=>N.nodeName!=="#text"||N.nodeValue),D=64,O=Number.parseInt(getComputedStyle(o.value).paddingLeft,10),k=Number.parseInt(getComputedStyle(o.value).paddingRight,10),F=o.value.clientWidth-O-k;let j=0,B=0;return M.forEach((N,U)=>{j+=N.offsetWidth||0,j<=F-D&&(B=U+1)}),B===M.length?-1:B},w=(E,A=33.34)=>{let M;return()=>{M&&clearTimeout(M),M=setTimeout(()=>{E()},A)}};let S=!0;const C=()=>{const E=()=>{u.value=-1,Ht(()=>{u.value=x()})};S?E():w(E)(),S=!1};Me(()=>e.defaultActive,E=>{d.value[E]||(c.value=""),b(E)}),Me(()=>e.collapse,E=>{E&&(f.value=[])}),Me(d.value,p);let T;ts(()=>{e.mode==="horizontal"&&e.ellipsis?T=ds(o,C).stop:T==null||T()});{const E=O=>{h.value[O.index]=O},A=O=>{delete h.value[O.index]};Ct("rootMenu",ln({props:e,openedMenus:f,items:d,subMenus:h,activeIndex:c,isMenuPopup:v,addMenuItem:O=>{d.value[O.index]=O},removeMenuItem:O=>{delete d.value[O.index]},addSubMenu:E,removeSubMenu:A,openMenu:g,closeMenu:m,handleMenuItemClick:_,handleSubMenuClick:y})),Ct(`subMenu:${i.uid}`,{addSubMenu:E,removeSubMenu:A,mouseInChild:H(!1),level:0})}return Et(()=>{e.mode==="horizontal"&&new _6(i.vnode.el,s.namespace.value)}),n({open:A=>{const{indexPath:M}=h.value[A];M.forEach(D=>g(D,M))},close:m,handleResize:C}),()=>{var E,A;let M=(A=(E=r.default)==null?void 0:E.call(r))!=null?A:[];const D=[];if(e.mode==="horizontal"&&o.value){const F=fc(M),j=u.value===-1?F:F.slice(0,u.value),B=u.value===-1?[]:F.slice(u.value);B!=null&&B.length&&e.ellipsis&&(M=j,D.push(we(wy,{index:"sub-menu-more",class:l.e("hide-arrow")},{title:()=>we(Cn,{class:l.e("icon-more")},{default:()=>we(e5)}),default:()=>B})))}const O=PM(e,0),k=we("ul",{key:String(e.collapse),role:"menubar",ref:o,style:O.value,class:{[s.b()]:!0,[s.m(e.mode)]:!0,[s.m("collapse")]:e.collapse}},[...M,...D]);return e.collapseTransition&&e.mode==="vertical"?we(x6,()=>k):k}}});const E6=at({index:{type:Ae([String,null]),default:null},route:{type:Ae([String,Object])},disabled:Boolean}),P6={click:e=>Ue(e.index)&&Array.isArray(e.indexPath)},Wh="ElMenuItem",L6=ue({name:Wh,components:{ElTooltip:qd},props:E6,emits:P6,setup(e,{emit:t}){const r=dt(),n=De("rootMenu"),i=Ne("menu"),a=Ne("menu-item");n||lo(Wh,"can not inject root menu");const{parentMenu:o,indexPath:s}=EM(r,wn(e,"index")),l=De(`subMenu:${o.value.uid}`);l||lo(Wh,"can not inject sub menu");const u=$(()=>e.index===n.activeIndex),f=ln({index:e.index,indexPath:s,active:u}),c=()=>{e.disabled||(n.handleMenuItemClick({index:e.index,indexPath:s.value,route:e.route}),t("click",f))};return Et(()=>{l.addSubMenu(f),n.addMenuItem(f)}),tr(()=>{l.removeSubMenu(f),n.removeMenuItem(f)}),{parentMenu:o,rootMenu:n,active:u,nsMenu:i,nsMenuItem:a,handleClick:c}}});function D6(e,t,r,n,i,a){const o=gr("el-tooltip");return X(),Se("li",{class:de([e.nsMenuItem.b(),e.nsMenuItem.is("active",e.active),e.nsMenuItem.is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",onClick:t[0]||(t[0]=(...s)=>e.handleClick&&e.handleClick(...s))},[e.parentMenu.type.name==="ElMenu"&&e.rootMenu.props.collapse&&e.$slots.title?(X(),Ie(o,{key:0,effect:e.rootMenu.props.popperEffect,placement:"right","fallback-placements":["left"],persistent:""},{content:ee(()=>[Be(e.$slots,"title")]),default:ee(()=>[le("div",{class:de(e.nsMenu.be("tooltip","trigger"))},[Be(e.$slots,"default")],2)]),_:3},8,["effect"])):(X(),Se(wt,{key:1},[Be(e.$slots,"default"),Be(e.$slots,"title")],64))],2)}var LM=Qe(L6,[["render",D6],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item.vue"]]);const I6={title:String},R6="ElMenuItemGroup",O6=ue({name:R6,props:I6,setup(){return{ns:Ne("menu-item-group")}}});function k6(e,t,r,n,i,a){return X(),Se("li",{class:de(e.ns.b())},[le("div",{class:de(e.ns.e("title"))},[e.$slots.title?Be(e.$slots,"title",{key:1}):(X(),Se(wt,{key:0},[kt(Re(e.title),1)],64))],2),le("ul",null,[Be(e.$slots,"default")])],2)}var DM=Qe(O6,[["render",k6],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item-group.vue"]]);const N6=Er(A6,{MenuItem:LM,MenuItemGroup:DM,SubMenu:wy}),B6=ia(LM);ia(DM);const F6=ia(wy),$6=at({trigger:du.trigger,placement:Fh.placement,disabled:du.disabled,visible:qr.visible,transition:qr.transition,popperOptions:Fh.popperOptions,tabindex:Fh.tabindex,content:qr.content,popperStyle:qr.popperStyle,popperClass:qr.popperClass,enterable:{...qr.enterable,default:!0},effect:{...qr.effect,default:"light"},teleported:qr.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}}),H6={"update:visible":e=>pi(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},z6="onUpdate:visible",W6=ue({name:"ElPopover"}),V6=ue({...W6,props:$6,emits:H6,setup(e,{expose:t,emit:r}){const n=e,i=$(()=>n[z6]),a=Ne("popover"),o=H(),s=$(()=>{var g;return(g=L(o))==null?void 0:g.popperRef}),l=$(()=>[{width:vs(n.width)},n.popperStyle]),u=$(()=>[a.b(),n.popperClass,{[a.m("plain")]:!!n.content}]),f=$(()=>n.transition===`${a.namespace.value}-fade-in-linear`),c=()=>{var g;(g=o.value)==null||g.hide()},d=()=>{r("before-enter")},h=()=>{r("before-leave")},v=()=>{r("after-enter")},p=()=>{r("update:visible",!1),r("after-leave")};return t({popperRef:s,hide:c}),(g,m)=>(X(),Ie(L(qd),go({ref_key:"tooltipRef",ref:o},g.$attrs,{trigger:g.trigger,placement:g.placement,disabled:g.disabled,visible:g.visible,transition:g.transition,"popper-options":g.popperOptions,tabindex:g.tabindex,content:g.content,offset:g.offset,"show-after":g.showAfter,"hide-after":g.hideAfter,"auto-close":g.autoClose,"show-arrow":g.showArrow,"aria-label":g.title,effect:g.effect,enterable:g.enterable,"popper-class":L(u),"popper-style":L(l),teleported:g.teleported,persistent:g.persistent,"gpu-acceleration":L(f),"onUpdate:visible":L(i),onBeforeShow:d,onBeforeHide:h,onShow:v,onHide:p}),{content:ee(()=>[g.title?(X(),Se("div",{key:0,class:de(L(a).e("title")),role:"title"},Re(g.title),3)):ct("v-if",!0),Be(g.$slots,"default",{},()=>[kt(Re(g.content),1)])]),default:ee(()=>[g.$slots.reference?Be(g.$slots,"reference",{key:0}):ct("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 G6=Qe(V6,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popover/src/popover.vue"]]);const Ub=(e,t)=>{const r=t.arg||t.value,n=r==null?void 0:r.popperRef;n&&(n.triggerRef=e)};var U6={mounted(e,t){Ub(e,t)},updated(e,t){Ub(e,t)}};const Y6="popover",q6=v5(U6,Y6),j6=Er(G6,{directive:q6}),K6=["start","center","end","space-around","space-between","space-evenly"],X6=["top","middle","bottom"],Z6=at({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:K6,default:"start"},align:{type:String,values:X6,default:"top"}}),Q6=ue({name:"ElRow"}),J6=ue({...Q6,props:Z6,setup(e){const t=e,r=Ne("row"),n=$(()=>t.gutter);Ct(RT,{gutter:n});const i=$(()=>{const o={};return t.gutter&&(o.marginRight=o.marginLeft=`-${t.gutter/2}px`),o}),a=$(()=>[r.b(),r.is(`justify-${t.justify}`,t.justify!=="start"),r.is(`align-${t.align}`,t.align!=="top")]);return(o,s)=>(X(),Ie(hi(o.tag),{class:de(L(a)),style:At(L(i))},{default:ee(()=>[Be(o.$slots,"default")]),_:3},8,["class","style"]))}});var e8=Qe(J6,[["__file","/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);const IM=Er(e8);/*!
+`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),a=new RegExp("(?:^"+r+"$)|(?:^"+i+"$)"),o=new RegExp("^"+r+"$"),s=new RegExp("^"+i+"$"),l=function(b){return b&&b.exact?a:new RegExp("(?:"+t(b)+r+t(b)+")|(?:"+t(b)+i+t(b)+")","g")};l.v4=function(_){return _&&_.exact?o:new RegExp(""+t(_)+r+t(_),"g")},l.v6=function(_){return _&&_.exact?s:new RegExp(""+t(_)+i+t(_),"g")};var u="(?:(?:[a-z]+:)?//)",f="(?:\\S+(?::\\S*)?@)?",c=l.v4().source,d=l.v6().source,h="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",v="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",p="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",g="(?::\\d{2,5})?",m='(?:[/?#][^\\s"]*)?',y="(?:"+u+"|www\\.)"+f+"(?:localhost|"+c+"|"+d+"|"+h+v+p+")"+g+m;return vf=new RegExp("(?:^"+y+"$)","i"),vf},Vb={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},gl={integer:function(t){return gl.number(t)&&parseInt(t,10)===t},float:function(t){return gl.number(t)&&!gl.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"&&!gl.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Vb.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(Yz())},hex:function(t){return typeof t=="string"&&!!t.match(Vb.hex)}},qz=function(t,r,n,i,a){if(t.required&&r===void 0){TM(t,r,n,i,a);return}var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;o.indexOf(s)>-1?gl[s](r)||i.push(Rr(a.messages.types[s],t.fullField,t.type)):s&&typeof r!==t.type&&i.push(Rr(a.messages.types[s],t.fullField,t.type))},jz=function(t,r,n,i,a){var o=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,f=r,c=null,d=typeof r=="number",h=typeof r=="string",v=Array.isArray(r);if(d?c="number":h?c="string":v&&(c="array"),!c)return!1;v&&(f=r.length),h&&(f=r.replace(u,"_").length),o?f!==t.len&&i.push(Rr(a.messages[c].len,t.fullField,t.len)):s&&!l&&f<t.min?i.push(Rr(a.messages[c].min,t.fullField,t.min)):l&&!s&&f>t.max?i.push(Rr(a.messages[c].max,t.fullField,t.max)):s&&l&&(f<t.min||f>t.max)&&i.push(Rr(a.messages[c].range,t.fullField,t.min,t.max))},To="enum",Kz=function(t,r,n,i,a){t[To]=Array.isArray(t[To])?t[To]:[],t[To].indexOf(r)===-1&&i.push(Rr(a.messages[To],t.fullField,t[To].join(", ")))},Xz=function(t,r,n,i,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||i.push(Rr(a.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var o=new RegExp(t.pattern);o.test(r)||i.push(Rr(a.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},qe={required:TM,whitespace:Uz,type:qz,range:jz,enum:Kz,pattern:Xz},Zz=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Bt(r,"string")&&!t.required)return n();qe.required(t,r,i,o,a,"string"),Bt(r,"string")||(qe.type(t,r,i,o,a),qe.range(t,r,i,o,a),qe.pattern(t,r,i,o,a),t.whitespace===!0&&qe.whitespace(t,r,i,o,a))}n(o)},Qz=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Bt(r)&&!t.required)return n();qe.required(t,r,i,o,a),r!==void 0&&qe.type(t,r,i,o,a)}n(o)},Jz=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(r===""&&(r=void 0),Bt(r)&&!t.required)return n();qe.required(t,r,i,o,a),r!==void 0&&(qe.type(t,r,i,o,a),qe.range(t,r,i,o,a))}n(o)},e6=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Bt(r)&&!t.required)return n();qe.required(t,r,i,o,a),r!==void 0&&qe.type(t,r,i,o,a)}n(o)},t6=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Bt(r)&&!t.required)return n();qe.required(t,r,i,o,a),Bt(r)||qe.type(t,r,i,o,a)}n(o)},r6=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Bt(r)&&!t.required)return n();qe.required(t,r,i,o,a),r!==void 0&&(qe.type(t,r,i,o,a),qe.range(t,r,i,o,a))}n(o)},n6=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Bt(r)&&!t.required)return n();qe.required(t,r,i,o,a),r!==void 0&&(qe.type(t,r,i,o,a),qe.range(t,r,i,o,a))}n(o)},i6=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(r==null&&!t.required)return n();qe.required(t,r,i,o,a,"array"),r!=null&&(qe.type(t,r,i,o,a),qe.range(t,r,i,o,a))}n(o)},a6=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Bt(r)&&!t.required)return n();qe.required(t,r,i,o,a),r!==void 0&&qe.type(t,r,i,o,a)}n(o)},o6="enum",s6=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Bt(r)&&!t.required)return n();qe.required(t,r,i,o,a),r!==void 0&&qe[o6](t,r,i,o,a)}n(o)},l6=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Bt(r,"string")&&!t.required)return n();qe.required(t,r,i,o,a),Bt(r,"string")||qe.pattern(t,r,i,o,a)}n(o)},u6=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Bt(r,"date")&&!t.required)return n();if(qe.required(t,r,i,o,a),!Bt(r,"date")){var l;r instanceof Date?l=r:l=new Date(r),qe.type(t,l,i,o,a),l&&qe.range(t,l.getTime(),i,o,a)}}n(o)},f6=function(t,r,n,i,a){var o=[],s=Array.isArray(r)?"array":typeof r;qe.required(t,r,i,o,a,s),n(o)},$h=function(t,r,n,i,a){var o=t.type,s=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(Bt(r,o)&&!t.required)return n();qe.required(t,r,i,s,a,o),Bt(r,o)||qe.type(t,r,i,s,a)}n(s)},c6=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Bt(r)&&!t.required)return n();qe.required(t,r,i,o,a)}n(o)},Il={string:Zz,method:Qz,number:Jz,boolean:e6,regexp:t6,integer:r6,float:n6,array:i6,object:a6,enum:s6,pattern:l6,date:u6,url:$h,hex:$h,email:$h,required:f6,any:c6};function ng(){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 ig=ng(),zu=function(){function e(r){this.rules=null,this._messages=ig,this.define(r)}var t=e.prototype;return t.define=function(n){var i=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(typeof n!="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(a){var o=n[a];i.rules[a]=Array.isArray(o)?o:[o]})},t.messages=function(n){return n&&(this._messages=Wb(ng(),n)),this._messages},t.validate=function(n,i,a){var o=this;i===void 0&&(i={}),a===void 0&&(a=function(){});var s=n,l=i,u=a;if(typeof l=="function"&&(u=l,l={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,s),Promise.resolve(s);function f(p){var g=[],m={};function y(b){if(Array.isArray(b)){var x;g=(x=g).concat.apply(x,b)}else g.push(b)}for(var _=0;_<p.length;_++)y(p[_]);g.length?(m=rg(g),u(g,m)):u(null,s)}if(l.messages){var c=this.messages();c===ig&&(c=ng()),Wb(c,l.messages),l.messages=c}else l.messages=this.messages();var d={},h=l.keys||Object.keys(this.rules);h.forEach(function(p){var g=o.rules[p],m=s[p];g.forEach(function(y){var _=y;typeof _.transform=="function"&&(s===n&&(s=ja({},s)),m=s[p]=_.transform(m)),typeof _=="function"?_={validator:_}:_=ja({},_),_.validator=o.getValidationMethod(_),_.validator&&(_.field=p,_.fullField=_.fullField||p,_.type=o.getType(_),d[p]=d[p]||[],d[p].push({rule:_,value:m,source:s,field:p}))})});var v={};return Wz(d,l,function(p,g){var m=p.rule,y=(m.type==="object"||m.type==="array")&&(typeof m.fields=="object"||typeof m.defaultField=="object");y=y&&(m.required||!m.required&&p.value),m.field=p.field;function _(w,S){return ja({},S,{fullField:m.fullField+"."+w,fullFields:m.fullFields?[].concat(m.fullFields,[w]):[w]})}function b(w){w===void 0&&(w=[]);var S=Array.isArray(w)?w:[w];!l.suppressWarning&&S.length&&e.warning("async-validator:",S),S.length&&m.message!==void 0&&(S=[].concat(m.message));var C=S.map(zb(m,s));if(l.first&&C.length)return v[m.field]=1,g(C);if(!y)g(C);else{if(m.required&&!p.value)return m.message!==void 0?C=[].concat(m.message).map(zb(m,s)):l.error&&(C=[l.error(m,Rr(l.messages.required,m.field))]),g(C);var T={};m.defaultField&&Object.keys(p.value).map(function(M){T[M]=m.defaultField}),T=ja({},T,p.rule.fields);var E={};Object.keys(T).forEach(function(M){var D=T[M],O=Array.isArray(D)?D:[D];E[M]=O.map(_.bind(null,M))});var A=new e(E);A.messages(l.messages),p.rule.options&&(p.rule.options.messages=l.messages,p.rule.options.error=l.error),A.validate(p.value,p.rule.options||l,function(M){var D=[];C&&C.length&&D.push.apply(D,C),M&&M.length&&D.push.apply(D,M),g(D.length?D:null)})}}var x;if(m.asyncValidator)x=m.asyncValidator(m,p.value,b,p.source,l);else if(m.validator){try{x=m.validator(m,p.value,b,p.source,l)}catch(w){console.error==null||console.error(w),l.suppressValidatorError||setTimeout(function(){throw w},0),b(w.message)}x===!0?b():x===!1?b(typeof m.message=="function"?m.message(m.fullField||m.field):m.message||(m.fullField||m.field)+" fails"):x instanceof Array?b(x):x instanceof Error&&b(x.message)}x&&x.then&&x.then(function(){return b()},function(w){return b(w)})},function(p){f(p)},s)},t.getType=function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!Il.hasOwnProperty(n.type))throw new Error(Rr("Unknown rule type %s",n.type));return n.type||"string"},t.getValidationMethod=function(n){if(typeof n.validator=="function")return n.validator;var i=Object.keys(n),a=i.indexOf("message");return a!==-1&&i.splice(a,1),i.length===1&&i[0]==="required"?Il.required:Il[this.getType(n)]||void 0},e}();zu.register=function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");Il[t]=r};zu.warning=Fz;zu.messages=ig;zu.validators=Il;const d6=["","error","validating","success"],h6=ot({label:String,labelWidth:{type:[String,Number],default:""},prop:{type:Pe([String,Array])},required:{type:Boolean,default:void 0},rules:{type:Pe([Object,Array])},error:String,validateStatus:{type:String,values:d6},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:Vd}}),Gb="ElLabelWrap";var v6=ue({name:Gb,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const r=Re(ks,void 0),n=Re(uo);n||lo(Gb,"usage: <el-form-item><label-wrap /></el-form-item>");const i=Ne("form"),a=H(),o=H(0),s=()=>{var f;if((f=a.value)!=null&&f.firstElementChild){const c=window.getComputedStyle(a.value.firstElementChild).width;return Math.ceil(Number.parseFloat(c))}else return 0},l=(f="update")=>{zt(()=>{t.default&&e.isAutoWidth&&(f==="update"?o.value=s():f==="remove"&&(r==null||r.deregisterLabelWidth(o.value)))})},u=()=>l("update");return Et(()=>{u()}),rr(()=>{l("remove")}),Ld(()=>u()),Ee(o,(f,c)=>{e.updateAll&&(r==null||r.registerLabelWidth(f,c))}),ds($(()=>{var f,c;return(c=(f=a.value)==null?void 0:f.firstElementChild)!=null?c:null}),u),()=>{var f,c;if(!t)return null;const{isAutoWidth:d}=e;if(d){const h=r==null?void 0:r.autoLabelWidth,v=n==null?void 0:n.hasLabel,p={};if(v&&h&&h!=="auto"){const g=Math.max(0,Number.parseInt(h,10)-o.value),m=r.labelPosition==="left"?"marginRight":"marginLeft";g&&(p[m]=`${g}px`)}return ee("div",{ref:a,class:[i.be("item","label-wrap")],style:p},[(f=t.default)==null?void 0:f.call(t)])}else return ee(yt,{ref:a},[(c=t.default)==null?void 0:c.call(t)])}}});const p6=["role","aria-labelledby"],g6=ue({name:"ElFormItem"}),m6=ue({...g6,props:h6,setup(e,{expose:t}){const r=e,n=Rd(),i=Re(ks,void 0),a=Re(uo,void 0),o=fo(void 0,{formItem:!1}),s=Ne("form-item"),l=ly().value,u=H([]),f=H(""),c=e$(f,100),d=H(""),h=H();let v,p=!1;const g=$(()=>{if((i==null?void 0:i.labelPosition)==="top")return{};const W=vs(r.labelWidth||(i==null?void 0:i.labelWidth)||"");return W?{width:W}:{}}),m=$(()=>{if((i==null?void 0:i.labelPosition)==="top"||i!=null&&i.inline)return{};if(!r.label&&!r.labelWidth&&T)return{};const W=vs(r.labelWidth||(i==null?void 0:i.labelWidth)||"");return!r.label&&!n.label?{marginLeft:W}:{}}),y=$(()=>[s.b(),s.m(o.value),s.is("error",f.value==="error"),s.is("validating",f.value==="validating"),s.is("success",f.value==="success"),s.is("required",O.value||r.required),s.is("no-asterisk",i==null?void 0:i.hideRequiredAsterisk),(i==null?void 0:i.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[s.m("feedback")]:i==null?void 0:i.statusIcon}]),_=$(()=>gi(r.inlineMessage)?r.inlineMessage:(i==null?void 0:i.inlineMessage)||!1),b=$(()=>[s.e("error"),{[s.em("error","inline")]:_.value}]),x=$(()=>r.prop?Ue(r.prop)?r.prop:r.prop.join("."):""),w=$(()=>!!(r.label||n.label)),S=$(()=>r.for||u.value.length===1?u.value[0]:void 0),C=$(()=>!S.value&&w.value),T=!!a,E=$(()=>{const W=i==null?void 0:i.model;if(!(!W||!r.prop))return fc(W,r.prop).value}),A=$(()=>{const{required:W}=r,Y=[];r.rules&&Y.push(...Lp(r.rules));const le=i==null?void 0:i.rules;if(le&&r.prop){const he=fc(le,r.prop).value;he&&Y.push(...Lp(he))}if(W!==void 0){const he=Y.map((Q,P)=>[Q,P]).filter(([Q])=>Object.keys(Q).includes("required"));if(he.length>0)for(const[Q,P]of he)Q.required!==W&&(Y[P]={...Q,required:W});else Y.push({required:W})}return Y}),M=$(()=>A.value.length>0),D=W=>A.value.filter(le=>!le.trigger||!W?!0:Array.isArray(le.trigger)?le.trigger.includes(W):le.trigger===W).map(({trigger:le,...he})=>he),O=$(()=>A.value.some(W=>W.required)),k=$(()=>{var W;return c.value==="error"&&r.showMessage&&((W=i==null?void 0:i.showMessage)!=null?W:!0)}),F=$(()=>`${r.label||""}${(i==null?void 0:i.labelSuffix)||""}`),j=W=>{f.value=W},B=W=>{var Y,le;const{errors:he,fields:Q}=W;(!he||!Q)&&console.error(W),j("error"),d.value=he?(le=(Y=he==null?void 0:he[0])==null?void 0:Y.message)!=null?le:`${r.prop} is required`:"",i==null||i.emit("validate",r.prop,!1,d.value)},N=()=>{j("success"),i==null||i.emit("validate",r.prop,!0,"")},U=async W=>{const Y=x.value;return new zu({[Y]:W}).validate({[Y]:E.value},{firstFields:!0}).then(()=>(N(),!0)).catch(he=>(B(he),Promise.reject(he)))},re=async(W,Y)=>{if(p||!r.prop)return!1;const le=Le(Y);if(!M.value)return Y==null||Y(!1),!1;const he=D(W);return he.length===0?(Y==null||Y(!0),!0):(j("validating"),U(he).then(()=>(Y==null||Y(!0),!0)).catch(Q=>{const{fields:P}=Q;return Y==null||Y(!1,P),le?!1:Promise.reject(P)}))},ae=()=>{j(""),d.value="",p=!1},me=async()=>{const W=i==null?void 0:i.model;if(!W||!r.prop)return;const Y=fc(W,r.prop);p=!0,Y.value=q_(v),await zt(),ae(),p=!1},Me=W=>{u.value.includes(W)||u.value.push(W)},V=W=>{u.value=u.value.filter(Y=>Y!==W)};Ee(()=>r.error,W=>{d.value=W||"",j(W?"error":"")},{immediate:!0}),Ee(()=>r.validateStatus,W=>j(W||""));const J=ln({...Cd(r),$el:h,size:o,validateState:f,labelId:l,inputIds:u,isGroup:C,hasLabel:w,addInputId:Me,removeInputId:V,resetField:me,clearValidate:ae,validate:re});return Ct(uo,J),Et(()=>{r.prop&&(i==null||i.addField(J),v=q_(E.value))}),rr(()=>{i==null||i.removeField(J)}),t({size:o,validateMessage:d,validateState:f,validate:re,clearValidate:ae,resetField:me}),(W,Y)=>{var le;return K(),Se("div",{ref_key:"formItemRef",ref:h,class:de(L(y)),role:L(C)?"group":void 0,"aria-labelledby":L(C)?L(l):void 0},[ee(L(v6),{"is-auto-width":L(g).width==="auto","update-all":((le=L(i))==null?void 0:le.labelWidth)==="auto"},{default:Z(()=>[L(w)?(K(),xe(hi(L(S)?"label":"div"),{key:0,id:L(l),for:L(S),class:de(L(s).e("label")),style:At(L(g))},{default:Z(()=>[Be(W.$slots,"label",{label:L(F)},()=>[kt(Ae(L(F)),1)])]),_:3},8,["id","for","class","style"])):Ye("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),se("div",{class:de(L(s).e("content")),style:At(L(m))},[Be(W.$slots,"default"),ee(Kn,{name:`${L(s).namespace.value}-zoom-in-top`},{default:Z(()=>[L(k)?Be(W.$slots,"error",{key:0,error:d.value},()=>[se("div",{class:de(L(b))},Ae(d.value),3)]):Ye("v-if",!0)]),_:3},8,["name"])],6)],10,p6)}}});var MM=Je(m6,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);const AM=Er(Rz,{FormItem:MM}),EM=aa(MM);let y6=class{constructor(t,r){this.parent=t,this.domNode=r,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,r=>{r.addEventListener("keydown",n=>{let i=!1;switch(n.code){case Lt.down:{this.gotoSubIndex(this.subIndex+1),i=!0;break}case Lt.up:{this.gotoSubIndex(this.subIndex-1),i=!0;break}case Lt.tab:{uc(t,"mouseleave");break}case Lt.enter:case Lt.space:{i=!0,n.currentTarget.click();break}}return i&&(n.preventDefault(),n.stopPropagation()),!1})})}},_6=class{constructor(t,r){this.domNode=t,this.submenu=null,this.submenu=null,this.init(r)}init(t){this.domNode.setAttribute("tabindex","0");const r=this.domNode.querySelector(`.${t}-menu`);r&&(this.submenu=new y6(this,r)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{let r=!1;switch(t.code){case Lt.down:{uc(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),r=!0;break}case Lt.up:{uc(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),r=!0;break}case Lt.tab:{uc(t.currentTarget,"mouseleave");break}case Lt.enter:case Lt.space:{r=!0,t.currentTarget.click();break}}r&&t.preventDefault()})}},b6=class{constructor(t,r){this.domNode=t,this.init(r)}init(t){const r=this.domNode.childNodes;Array.from(r).forEach(n=>{n.nodeType===1&&new _6(n,t)})}};const w6=ue({name:"ElMenuCollapseTransition",setup(){const e=Ne("menu");return{listeners:{onBeforeEnter:r=>r.style.opacity="0.2",onEnter(r,n){Uo(r,`${e.namespace.value}-opacity-transition`),r.style.opacity="1",n()},onAfterEnter(r){rs(r,`${e.namespace.value}-opacity-transition`),r.style.opacity=""},onBeforeLeave(r){r.dataset||(r.dataset={}),Pl(r,e.m("collapse"))?(rs(r,e.m("collapse")),r.dataset.oldOverflow=r.style.overflow,r.dataset.scrollWidth=r.clientWidth.toString(),Uo(r,e.m("collapse"))):(Uo(r,e.m("collapse")),r.dataset.oldOverflow=r.style.overflow,r.dataset.scrollWidth=r.clientWidth.toString(),rs(r,e.m("collapse"))),r.style.width=`${r.scrollWidth}px`,r.style.overflow="hidden"},onLeave(r){Uo(r,"horizontal-collapse-transition"),r.style.width=`${r.dataset.scrollWidth}px`}}}}});function x6(e,t,r,n,i,a){return K(),xe(Kn,go({mode:"out-in"},e.listeners),{default:Z(()=>[Be(e.$slots,"default")]),_:3},16)}var S6=Je(w6,[["render",x6],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-collapse-transition.vue"]]);function PM(e,t){const r=$(()=>{let i=e.parent;const a=[t.value];for(;i.type.name!=="ElMenu";)i.props.index&&a.unshift(i.props.index),i=i.parent;return a});return{parentMenu:$(()=>{let i=e.parent;for(;i&&!["ElMenu","ElSubMenu"].includes(i.type.name);)i=i.parent;return i}),indexPath:r}}function C6(e){return $(()=>{const r=e.backgroundColor;return r?new fM(r).shade(20).toString():""})}const LM=(e,t)=>{const r=Ne("menu");return $(()=>r.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":C6(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},T6=ot({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:Vi},expandOpenIcon:{type:Vi},collapseCloseIcon:{type:Vi},collapseOpenIcon:{type:Vi}}),Hh="ElSubMenu";var wy=ue({name:Hh,props:T6,setup(e,{slots:t,expose:r}){const n=dt(),{indexPath:i,parentMenu:a}=PM(n,$(()=>e.index)),o=Ne("menu"),s=Ne("sub-menu"),l=Re("rootMenu");l||lo(Hh,"can not inject root menu");const u=Re(`subMenu:${a.value.uid}`);u||lo(Hh,"can not inject sub menu");const f=H({}),c=H({});let d;const h=H(!1),v=H(),p=H(null),g=$(()=>A.value==="horizontal"&&y.value?"bottom-start":"right-start"),m=$(()=>A.value==="horizontal"&&y.value||A.value==="vertical"&&!l.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?w.value?e.expandOpenIcon:e.expandCloseIcon:TT:e.collapseCloseIcon&&e.collapseOpenIcon?w.value?e.collapseOpenIcon:e.collapseCloseIcon:ny),y=$(()=>u.level===0),_=$(()=>e.popperAppendToBody===void 0?y.value:Boolean(e.popperAppendToBody)),b=$(()=>l.props.collapse?`${o.namespace.value}-zoom-in-left`:`${o.namespace.value}-zoom-in-top`),x=$(()=>A.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"]),w=$(()=>l.openedMenus.includes(e.index)),S=$(()=>{let N=!1;return Object.values(f.value).forEach(U=>{U.active&&(N=!0)}),Object.values(c.value).forEach(U=>{U.active&&(N=!0)}),N}),C=$(()=>l.props.backgroundColor||""),T=$(()=>l.props.activeTextColor||""),E=$(()=>l.props.textColor||""),A=$(()=>l.props.mode),M=ln({index:e.index,indexPath:i,active:S}),D=$(()=>A.value!=="horizontal"?{color:E.value}:{borderBottomColor:S.value?l.props.activeTextColor?T.value:"":"transparent",color:S.value?T.value:E.value}),O=()=>{var N,U,re;return(re=(U=(N=p.value)==null?void 0:N.popperRef)==null?void 0:U.popperInstanceRef)==null?void 0:re.destroy()},k=N=>{N||O()},F=()=>{l.props.menuTrigger==="hover"&&l.props.mode==="horizontal"||l.props.collapse&&l.props.mode==="vertical"||e.disabled||l.handleSubMenuClick({index:e.index,indexPath:i.value,active:S.value})},j=(N,U=e.showTimeout)=>{var re;N.type!=="focus"&&(l.props.menuTrigger==="click"&&l.props.mode==="horizontal"||!l.props.collapse&&l.props.mode==="vertical"||e.disabled||(u.mouseInChild.value=!0,d==null||d(),{stop:d}=Fp(()=>{l.openMenu(e.index,i.value)},U),_.value&&((re=a.value.vnode.el)==null||re.dispatchEvent(new MouseEvent("mouseenter")))))},B=(N=!1)=>{var U,re;l.props.menuTrigger==="click"&&l.props.mode==="horizontal"||!l.props.collapse&&l.props.mode==="vertical"||(d==null||d(),u.mouseInChild.value=!1,{stop:d}=Fp(()=>!h.value&&l.closeMenu(e.index,i.value),e.hideTimeout),_.value&&N&&((U=n.parent)==null?void 0:U.type.name)==="ElSubMenu"&&((re=u.handleMouseleave)==null||re.call(u,!0)))};Ee(()=>l.props.collapse,N=>k(Boolean(N)));{const N=re=>{c.value[re.index]=re},U=re=>{delete c.value[re.index]};Ct(`subMenu:${n.uid}`,{addSubMenu:N,removeSubMenu:U,handleMouseleave:B,mouseInChild:h,level:u.level+1})}return r({opened:w}),Et(()=>{l.addSubMenu(M),u.addSubMenu(M)}),rr(()=>{u.removeSubMenu(M),l.removeSubMenu(M)}),()=>{var N;const U=[(N=t.title)==null?void 0:N.call(t),we(Cn,{class:s.e("icon-arrow"),style:{transform:w.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&l.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>Ue(m.value)?we(n.appContext.components[m.value]):we(m.value)})],re=LM(l.props,u.level+1),ae=l.isMenuPopup?we(Hu,{ref:p,visible:w.value,effect:"light",pure:!0,offset:e.popperOffset,showArrow:!1,persistent:!0,popperClass:e.popperClass,placement:g.value,teleported:_.value,fallbackPlacements:x.value,transition:b.value,gpuAcceleration:!1},{content:()=>{var me;return we("div",{class:[o.m(A.value),o.m("popup-container"),e.popperClass],onMouseenter:Me=>j(Me,100),onMouseleave:()=>B(!0),onFocus:Me=>j(Me,100)},[we("ul",{class:[o.b(),o.m("popup"),o.m(`popup-${g.value}`)],style:re.value},[(me=t.default)==null?void 0:me.call(t)])])},default:()=>we("div",{class:s.e("title"),style:[D.value,{backgroundColor:C.value}],onClick:F},U)}):we(yt,{},[we("div",{class:s.e("title"),style:[D.value,{backgroundColor:C.value}],ref:v,onClick:F},U),we(mz,{},{default:()=>{var me;return qt(we("ul",{role:"menu",class:[o.b(),o.m("inline")],style:re.value},[(me=t.default)==null?void 0:me.call(t)]),[[pi,w.value]])}})]);return we("li",{class:[s.b(),s.is("active",S.value),s.is("opened",w.value),s.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:w.value,onMouseenter:j,onMouseleave:()=>B(!0),onFocus:j},[ae])}}});const M6=ot({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:Pe(Array),default:()=>Va([])},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},popperEffect:{type:String,values:["dark","light"],default:"dark"}}),zh=e=>Array.isArray(e)&&e.every(t=>Ue(t)),A6={close:(e,t)=>Ue(e)&&zh(t),open:(e,t)=>Ue(e)&&zh(t),select:(e,t,r,n)=>Ue(e)&&zh(t)&&Ke(r)&&(n===void 0||n instanceof Promise)};var E6=ue({name:"ElMenu",props:M6,emits:A6,setup(e,{emit:t,slots:r,expose:n}){const i=dt(),a=i.appContext.config.globalProperties.$router,o=H(),s=Ne("menu"),l=Ne("sub-menu"),u=H(-1),f=H(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),c=H(e.defaultActive),d=H({}),h=H({}),v=$(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),p=()=>{const E=c.value&&d.value[c.value];if(!E||e.mode==="horizontal"||e.collapse)return;E.indexPath.forEach(M=>{const D=h.value[M];D&&g(M,D.indexPath)})},g=(E,A)=>{f.value.includes(E)||(e.uniqueOpened&&(f.value=f.value.filter(M=>A.includes(M))),f.value.push(E),t("open",E,A))},m=(E,A)=>{const M=f.value.indexOf(E);M!==-1&&f.value.splice(M,1),t("close",E,A)},y=({index:E,indexPath:A})=>{f.value.includes(E)?m(E,A):g(E,A)},_=E=>{(e.mode==="horizontal"||e.collapse)&&(f.value=[]);const{index:A,indexPath:M}=E;if(!(A===void 0||M===void 0))if(e.router&&a){const D=E.route||A,O=a.push(D).then(k=>(k||(c.value=A),k));t("select",A,M,{index:A,indexPath:M,route:D},O)}else c.value=A,t("select",A,M,{index:A,indexPath:M})},b=E=>{const A=d.value,M=A[E]||c.value&&A[c.value]||A[e.defaultActive];M?c.value=M.index:c.value=E},x=()=>{var E,A;if(!o.value)return-1;const M=Array.from((A=(E=o.value)==null?void 0:E.childNodes)!=null?A:[]).filter(N=>N.nodeName!=="#text"||N.nodeValue),D=64,O=Number.parseInt(getComputedStyle(o.value).paddingLeft,10),k=Number.parseInt(getComputedStyle(o.value).paddingRight,10),F=o.value.clientWidth-O-k;let j=0,B=0;return M.forEach((N,U)=>{j+=N.offsetWidth||0,j<=F-D&&(B=U+1)}),B===M.length?-1:B},w=(E,A=33.34)=>{let M;return()=>{M&&clearTimeout(M),M=setTimeout(()=>{E()},A)}};let S=!0;const C=()=>{const E=()=>{u.value=-1,zt(()=>{u.value=x()})};S?E():w(E)(),S=!1};Ee(()=>e.defaultActive,E=>{d.value[E]||(c.value=""),b(E)}),Ee(()=>e.collapse,E=>{E&&(f.value=[])}),Ee(d.value,p);let T;ts(()=>{e.mode==="horizontal"&&e.ellipsis?T=ds(o,C).stop:T==null||T()});{const E=O=>{h.value[O.index]=O},A=O=>{delete h.value[O.index]};Ct("rootMenu",ln({props:e,openedMenus:f,items:d,subMenus:h,activeIndex:c,isMenuPopup:v,addMenuItem:O=>{d.value[O.index]=O},removeMenuItem:O=>{delete d.value[O.index]},addSubMenu:E,removeSubMenu:A,openMenu:g,closeMenu:m,handleMenuItemClick:_,handleSubMenuClick:y})),Ct(`subMenu:${i.uid}`,{addSubMenu:E,removeSubMenu:A,mouseInChild:H(!1),level:0})}return Et(()=>{e.mode==="horizontal"&&new b6(i.vnode.el,s.namespace.value)}),n({open:A=>{const{indexPath:M}=h.value[A];M.forEach(D=>g(D,M))},close:m,handleResize:C}),()=>{var E,A;let M=(A=(E=r.default)==null?void 0:E.call(r))!=null?A:[];const D=[];if(e.mode==="horizontal"&&o.value){const F=cc(M),j=u.value===-1?F:F.slice(0,u.value),B=u.value===-1?[]:F.slice(u.value);B!=null&&B.length&&e.ellipsis&&(M=j,D.push(we(wy,{index:"sub-menu-more",class:l.e("hide-arrow")},{title:()=>we(Cn,{class:l.e("icon-more")},{default:()=>we(t5)}),default:()=>B})))}const O=LM(e,0),k=we("ul",{key:String(e.collapse),role:"menubar",ref:o,style:O.value,class:{[s.b()]:!0,[s.m(e.mode)]:!0,[s.m("collapse")]:e.collapse}},[...M,...D]);return e.collapseTransition&&e.mode==="vertical"?we(S6,()=>k):k}}});const P6=ot({index:{type:Pe([String,null]),default:null},route:{type:Pe([String,Object])},disabled:Boolean}),L6={click:e=>Ue(e.index)&&Array.isArray(e.indexPath)},Wh="ElMenuItem",D6=ue({name:Wh,components:{ElTooltip:Hu},props:P6,emits:L6,setup(e,{emit:t}){const r=dt(),n=Re("rootMenu"),i=Ne("menu"),a=Ne("menu-item");n||lo(Wh,"can not inject root menu");const{parentMenu:o,indexPath:s}=PM(r,wn(e,"index")),l=Re(`subMenu:${o.value.uid}`);l||lo(Wh,"can not inject sub menu");const u=$(()=>e.index===n.activeIndex),f=ln({index:e.index,indexPath:s,active:u}),c=()=>{e.disabled||(n.handleMenuItemClick({index:e.index,indexPath:s.value,route:e.route}),t("click",f))};return Et(()=>{l.addSubMenu(f),n.addMenuItem(f)}),rr(()=>{l.removeSubMenu(f),n.removeMenuItem(f)}),{parentMenu:o,rootMenu:n,active:u,nsMenu:i,nsMenuItem:a,handleClick:c}}});function I6(e,t,r,n,i,a){const o=gr("el-tooltip");return K(),Se("li",{class:de([e.nsMenuItem.b(),e.nsMenuItem.is("active",e.active),e.nsMenuItem.is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",onClick:t[0]||(t[0]=(...s)=>e.handleClick&&e.handleClick(...s))},[e.parentMenu.type.name==="ElMenu"&&e.rootMenu.props.collapse&&e.$slots.title?(K(),xe(o,{key:0,effect:e.rootMenu.props.popperEffect,placement:"right","fallback-placements":["left"],persistent:""},{content:Z(()=>[Be(e.$slots,"title")]),default:Z(()=>[se("div",{class:de(e.nsMenu.be("tooltip","trigger"))},[Be(e.$slots,"default")],2)]),_:3},8,["effect"])):(K(),Se(yt,{key:1},[Be(e.$slots,"default"),Be(e.$slots,"title")],64))],2)}var DM=Je(D6,[["render",I6],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item.vue"]]);const R6={title:String},O6="ElMenuItemGroup",k6=ue({name:O6,props:R6,setup(){return{ns:Ne("menu-item-group")}}});function N6(e,t,r,n,i,a){return K(),Se("li",{class:de(e.ns.b())},[se("div",{class:de(e.ns.e("title"))},[e.$slots.title?Be(e.$slots,"title",{key:1}):(K(),Se(yt,{key:0},[kt(Ae(e.title),1)],64))],2),se("ul",null,[Be(e.$slots,"default")])],2)}var IM=Je(k6,[["render",N6],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item-group.vue"]]);const B6=Er(E6,{MenuItem:DM,MenuItemGroup:IM,SubMenu:wy}),F6=aa(DM);aa(IM);const $6=aa(wy),H6=ot({trigger:du.trigger,placement:Fh.placement,disabled:du.disabled,visible:qr.visible,transition:qr.transition,popperOptions:Fh.popperOptions,tabindex:Fh.tabindex,content:qr.content,popperStyle:qr.popperStyle,popperClass:qr.popperClass,enterable:{...qr.enterable,default:!0},effect:{...qr.effect,default:"light"},teleported:qr.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}}),z6={"update:visible":e=>gi(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},W6="onUpdate:visible",V6=ue({name:"ElPopover"}),G6=ue({...V6,props:H6,emits:z6,setup(e,{expose:t,emit:r}){const n=e,i=$(()=>n[W6]),a=Ne("popover"),o=H(),s=$(()=>{var g;return(g=L(o))==null?void 0:g.popperRef}),l=$(()=>[{width:vs(n.width)},n.popperStyle]),u=$(()=>[a.b(),n.popperClass,{[a.m("plain")]:!!n.content}]),f=$(()=>n.transition===`${a.namespace.value}-fade-in-linear`),c=()=>{var g;(g=o.value)==null||g.hide()},d=()=>{r("before-enter")},h=()=>{r("before-leave")},v=()=>{r("after-enter")},p=()=>{r("update:visible",!1),r("after-leave")};return t({popperRef:s,hide:c}),(g,m)=>(K(),xe(L(Hu),go({ref_key:"tooltipRef",ref:o},g.$attrs,{trigger:g.trigger,placement:g.placement,disabled:g.disabled,visible:g.visible,transition:g.transition,"popper-options":g.popperOptions,tabindex:g.tabindex,content:g.content,offset:g.offset,"show-after":g.showAfter,"hide-after":g.hideAfter,"auto-close":g.autoClose,"show-arrow":g.showArrow,"aria-label":g.title,effect:g.effect,enterable:g.enterable,"popper-class":L(u),"popper-style":L(l),teleported:g.teleported,persistent:g.persistent,"gpu-acceleration":L(f),"onUpdate:visible":L(i),onBeforeShow:d,onBeforeHide:h,onShow:v,onHide:p}),{content:Z(()=>[g.title?(K(),Se("div",{key:0,class:de(L(a).e("title")),role:"title"},Ae(g.title),3)):Ye("v-if",!0),Be(g.$slots,"default",{},()=>[kt(Ae(g.content),1)])]),default:Z(()=>[g.$slots.reference?Be(g.$slots,"reference",{key:0}):Ye("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 U6=Je(G6,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popover/src/popover.vue"]]);const Ub=(e,t)=>{const r=t.arg||t.value,n=r==null?void 0:r.popperRef;n&&(n.triggerRef=e)};var Y6={mounted(e,t){Ub(e,t)},updated(e,t){Ub(e,t)}};const q6="popover",j6=p5(Y6,q6),K6=Er(U6,{directive:j6}),X6=["start","center","end","space-around","space-between","space-evenly"],Z6=["top","middle","bottom"],Q6=ot({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:X6,default:"start"},align:{type:String,values:Z6,default:"top"}}),J6=ue({name:"ElRow"}),e8=ue({...J6,props:Q6,setup(e){const t=e,r=Ne("row"),n=$(()=>t.gutter);Ct(OT,{gutter:n});const i=$(()=>{const o={};return t.gutter&&(o.marginRight=o.marginLeft=`-${t.gutter/2}px`),o}),a=$(()=>[r.b(),r.is(`justify-${t.justify}`,t.justify!=="start"),r.is(`align-${t.align}`,t.align!=="top")]);return(o,s)=>(K(),xe(hi(o.tag),{class:de(L(a)),style:At(L(i))},{default:Z(()=>[Be(o.$slots,"default")]),_:3},8,["class","style"]))}});var t8=Je(e8,[["__file","/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);const RM=Er(t8);/*!
  * escape-html
  * Copyright(c) 2012-2013 TJ Holowaychuk
  * Copyright(c) 2015 Andreas Lubbe
  * Copyright(c) 2015 Tiancheng "Timothy" Gu
  * MIT Licensed
- */var t8=/["'&<>]/,r8=n8;function n8(e){var t=""+e,r=t8.exec(t);if(!r)return t;var n,i="",a=0,o=0;for(a=r.index;a<t.length;a++){switch(t.charCodeAt(a)){case 34:n="&quot;";break;case 38:n="&amp;";break;case 39:n="&#39;";break;case 60:n="&lt;";break;case 62:n="&gt;";break;default:continue}o!==a&&(i+=t.substring(o,a)),o=a+1,i+=n}return o!==a?i+t.substring(o,a):i}const Vh=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},i8=function(e,t,r,n,i){if(!t&&!n&&(!i||Array.isArray(i)&&!i.length))return e;typeof r=="string"?r=r==="descending"?-1:1:r=r&&r<0?-1:1;const a=n?null:function(s,l){return i?(Array.isArray(i)||(i=[i]),i.map(u=>typeof u=="string"?lu(s,u):u(s,l,e))):(t!=="$key"&&je(s)&&"$value"in s&&(s=s.$value),[je(s)?lu(s,t):s])},o=function(s,l){if(n)return n(s.value,l.value);for(let u=0,f=s.key.length;u<f;u++){if(s.key[u]<l.key[u])return-1;if(s.key[u]>l.key[u])return 1}return 0};return e.map((s,l)=>({value:s,index:l,key:a?a(s,l):null})).sort((s,l)=>{let u=o(s,l);return u||(u=s.index-l.index),u*+r}).map(s=>s.value)},RM=function(e,t){let r=null;return e.columns.forEach(n=>{n.id===t&&(r=n)}),r},a8=function(e,t){let r=null;for(let n=0;n<e.columns.length;n++){const i=e.columns[n];if(i.columnKey===t){r=i;break}}return r||lo("ElTable",`No column matching with column-key: ${t}`),r},Yb=function(e,t,r){const n=(t.className||"").match(new RegExp(`${r}-table_[^\\s]+`,"gm"));return n?RM(e,n[0]):null},Ut=(e,t)=>{if(!e)throw new Error("Row is required when get row identity");if(typeof t=="string"){if(!t.includes("."))return`${e[t]}`;const r=t.split(".");let n=e;for(const i of r)n=n[i];return`${n}`}else if(typeof t=="function")return t.call(null,e)},ja=function(e,t){const r={};return(e||[]).forEach((n,i)=>{r[Ut(n,t)]={row:n,index:i}}),r};function o8(e,t){const r={};let n;for(n in e)r[n]=e[n];for(n in t)if(ze(t,n)){const i=t[n];typeof i<"u"&&(r[n]=i)}return r}function xy(e){return e===""||e!==void 0&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function OM(e){return e===""||e!==void 0&&(e=xy(e),Number.isNaN(e)&&(e=80)),e}function s8(e){return typeof e=="number"?e:typeof e=="string"?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function l8(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function Rl(e,t,r){let n=!1;const i=e.indexOf(t),a=i!==-1,o=s=>{s==="add"?e.push(t):e.splice(i,1),n=!0,ye(t.children)&&t.children.forEach(l=>{Rl(e,l,r??!a)})};return pi(r)?r&&!a?o("add"):!r&&a&&o("remove"):o(a?"remove":"add"),n}function u8(e,t,r="children",n="hasChildren"){const i=o=>!(Array.isArray(o)&&o.length);function a(o,s,l){t(o,s,l),s.forEach(u=>{if(u[n]){t(u,null,l+1);return}const f=u[r];i(f)||a(u,f,l+1)})}e.forEach(o=>{if(o[n]){t(o,null,0);return}const s=o[r];i(s)||a(o,s,0)})}let ai;function f8(e,t,r,n){n=wT({enterable:!0,showArrow:!0},n);const{nextZIndex:i}=yy(),a=e==null?void 0:e.dataset.prefix,o=e==null?void 0:e.querySelector(`.${a}-scrollbar__wrap`);function s(){const g=n.effect==="light",m=document.createElement("div");return m.className=[`${a}-popper`,g?"is-light":"is-dark",n.popperClass||""].join(" "),r=r8(r),m.innerHTML=r,m.style.zIndex=String(i()),e==null||e.appendChild(m),m}function l(){const g=document.createElement("div");return g.className=`${a}-popper__arrow`,g}function u(){f&&f.update()}ai==null||ai(),ai=()=>{try{f&&f.destroy(),h&&(e==null||e.removeChild(h)),t.removeEventListener("mouseenter",c),t.removeEventListener("mouseleave",d),o==null||o.removeEventListener("scroll",ai),ai=void 0}catch{}};let f=null,c=u,d=ai;n.enterable&&({onOpen:c,onClose:d}=JT({showAfter:n.showAfter,hideAfter:n.hideAfter,open:u,close:ai}));const h=s();h.onmouseenter=c,h.onmouseleave=d;const v=[];if(n.offset&&v.push({name:"offset",options:{offset:[0,n.offset]}}),n.showArrow){const g=h.appendChild(l());v.push({name:"arrow",options:{element:g,padding:10}})}const p=n.popperOptions||{};return f=ZT(t,h,{placement:n.placement||"top",strategy:"fixed",...p,modifiers:p.modifiers?v.concat(p.modifiers):v}),t.addEventListener("mouseenter",c),t.addEventListener("mouseleave",d),o==null||o.addEventListener("scroll",ai),f}function kM(e){return e.children?$F(e.children,kM):[e]}function qb(e,t){return e+t.colSpan}const NM=(e,t,r,n)=>{let i=0,a=e;const o=r.states.columns.value;if(n){const l=kM(n[e]);i=o.slice(0,o.indexOf(l[0])).reduce(qb,0),a=i+l.reduce(qb,0)-1}else i=e;let s;switch(t){case"left":a<r.states.fixedLeafColumnsLength.value&&(s="left");break;case"right":i>=o.length-r.states.rightFixedLeafColumnsLength.value&&(s="right");break;default:a<r.states.fixedLeafColumnsLength.value?s="left":i>=o.length-r.states.rightFixedLeafColumnsLength.value&&(s="right")}return s?{direction:s,start:i,after:a}:{}},Sy=(e,t,r,n,i,a=0)=>{const o=[],{direction:s,start:l,after:u}=NM(t,r,n,i);if(s){const f=s==="left";o.push(`${e}-fixed-column--${s}`),f&&u+a===n.states.fixedLeafColumnsLength.value-1?o.push("is-last-column"):!f&&l-a===n.states.columns.value.length-n.states.rightFixedLeafColumnsLength.value&&o.push("is-first-column")}return o};function jb(e,t){return e+(t.realWidth===null||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const Cy=(e,t,r,n)=>{const{direction:i,start:a=0,after:o=0}=NM(e,t,r,n);if(!i)return;const s={},l=i==="left",u=r.states.columns.value;return l?s.left=u.slice(0,a).reduce(jb,0):s.right=u.slice(o+1).reverse().reduce(jb,0),s},ws=(e,t)=>{e&&(Number.isNaN(e[t])||(e[t]=`${e[t]}px`))};function c8(e){const t=dt(),r=H(!1),n=H([]);return{updateExpandRows:()=>{const l=e.data.value||[],u=e.rowKey.value;if(r.value)n.value=l.slice();else if(u){const f=ja(n.value,u);n.value=l.reduce((c,d)=>{const h=Ut(d,u);return f[h]&&c.push(d),c},[])}else n.value=[]},toggleRowExpansion:(l,u)=>{Rl(n.value,l,u)&&t.emit("expand-change",l,n.value.slice())},setExpandRowKeys:l=>{t.store.assertRowKey();const u=e.data.value||[],f=e.rowKey.value,c=ja(u,f);n.value=l.reduce((d,h)=>{const v=c[h];return v&&d.push(v.row),d},[])},isRowExpanded:l=>{const u=e.rowKey.value;return u?!!ja(n.value,u)[Ut(l,u)]:n.value.includes(l)},states:{expandRows:n,defaultExpandAll:r}}}function d8(e){const t=dt(),r=H(null),n=H(null),i=u=>{t.store.assertRowKey(),r.value=u,o(u)},a=()=>{r.value=null},o=u=>{const{data:f,rowKey:c}=e;let d=null;c.value&&(d=(L(f)||[]).find(h=>Ut(h,c.value)===u)),n.value=d,t.emit("current-change",n.value,null)};return{setCurrentRowKey:i,restoreCurrentRowKey:a,setCurrentRowByKey:o,updateCurrentRow:u=>{const f=n.value;if(u&&u!==f){n.value=u,t.emit("current-change",n.value,f);return}!u&&f&&(n.value=null,t.emit("current-change",null,f))},updateCurrentRowData:()=>{const u=e.rowKey.value,f=e.data.value||[],c=n.value;if(!f.includes(c)&&c){if(u){const d=Ut(c,u);o(d)}else n.value=null;n.value===null&&t.emit("current-change",null,c)}else r.value&&(o(r.value),a())},states:{_currentRowKey:r,currentRow:n}}}function h8(e){const t=H([]),r=H({}),n=H(16),i=H(!1),a=H({}),o=H("hasChildren"),s=H("children"),l=dt(),u=$(()=>{if(!e.rowKey.value)return{};const m=e.data.value||[];return c(m)}),f=$(()=>{const m=e.rowKey.value,y=Object.keys(a.value),_={};return y.length&&y.forEach(b=>{if(a.value[b].length){const x={children:[]};a.value[b].forEach(w=>{const S=Ut(w,m);x.children.push(S),w[o.value]&&!_[S]&&(_[S]={children:[]})}),_[b]=x}}),_}),c=m=>{const y=e.rowKey.value,_={};return u8(m,(b,x,w)=>{const S=Ut(b,y);Array.isArray(x)?_[S]={children:x.map(C=>Ut(C,y)),level:w}:i.value&&(_[S]={children:[],lazy:!0,level:w})},s.value,o.value),_},d=(m=!1,y=(_=>(_=l.store)==null?void 0:_.states.defaultExpandAll.value)())=>{var _;const b=u.value,x=f.value,w=Object.keys(b),S={};if(w.length){const C=L(r),T=[],E=(M,D)=>{if(m)return t.value?y||t.value.includes(D):!!(y||M!=null&&M.expanded);{const O=y||t.value&&t.value.includes(D);return!!(M!=null&&M.expanded||O)}};w.forEach(M=>{const D=C[M],O={...b[M]};if(O.expanded=E(D,M),O.lazy){const{loaded:k=!1,loading:F=!1}=D||{};O.loaded=!!k,O.loading=!!F,T.push(M)}S[M]=O});const A=Object.keys(x);i.value&&A.length&&T.length&&A.forEach(M=>{const D=C[M],O=x[M].children;if(T.includes(M)){if(S[M].children.length!==0)throw new Error("[ElTable]children must be an empty array.");S[M].children=O}else{const{loaded:k=!1,loading:F=!1}=D||{};S[M]={lazy:!0,loaded:!!k,loading:!!F,expanded:E(D,M),children:O,level:""}}})}r.value=S,(_=l.store)==null||_.updateTableScrollY()};Me(()=>t.value,()=>{d(!0)}),Me(()=>u.value,()=>{d()}),Me(()=>f.value,()=>{d()});const h=m=>{t.value=m,d()},v=(m,y)=>{l.store.assertRowKey();const _=e.rowKey.value,b=Ut(m,_),x=b&&r.value[b];if(b&&x&&"expanded"in x){const w=x.expanded;y=typeof y>"u"?!x.expanded:y,r.value[b].expanded=y,w!==y&&l.emit("expand-change",m,y),l.store.updateTableScrollY()}},p=m=>{l.store.assertRowKey();const y=e.rowKey.value,_=Ut(m,y),b=r.value[_];i.value&&b&&"loaded"in b&&!b.loaded?g(m,_,b):v(m,void 0)},g=(m,y,_)=>{const{load:b}=l.props;b&&!r.value[y].loaded&&(r.value[y].loading=!0,b(m,_,x=>{if(!Array.isArray(x))throw new TypeError("[ElTable] data must be an array");r.value[y].loading=!1,r.value[y].loaded=!0,r.value[y].expanded=!0,x.length&&(a.value[y]=x),l.emit("expand-change",m,!0)}))};return{loadData:g,loadOrToggle:p,toggleTreeExpansion:v,updateTreeExpandKeys:h,updateTreeData:d,normalize:c,states:{expandRowKeys:t,treeData:r,indent:n,lazy:i,lazyTreeNodeMap:a,lazyColumnIdentifier:o,childrenColumnName:s}}}const v8=(e,t)=>{const r=t.sortingColumn;return!r||typeof r.sortable=="string"?e:i8(e,t.sortProp,t.sortOrder,r.sortMethod,r.sortBy)},mc=e=>{const t=[];return e.forEach(r=>{r.children?t.push.apply(t,mc(r.children)):t.push(r)}),t};function p8(){var e;const t=dt(),{size:r}=Sd((e=t.proxy)==null?void 0:e.$props),n=H(null),i=H([]),a=H([]),o=H(!1),s=H([]),l=H([]),u=H([]),f=H([]),c=H([]),d=H([]),h=H([]),v=H([]),p=H(0),g=H(0),m=H(0),y=H(!1),_=H([]),b=H(!1),x=H(!1),w=H(null),S=H({}),C=H(null),T=H(null),E=H(null),A=H(null),M=H(null);Me(i,()=>t.state&&F(!1),{deep:!0});const D=()=>{if(!n.value)throw new Error("[ElTable] prop row-key is required")},O=fe=>{var xe;(xe=fe.children)==null||xe.forEach($e=>{$e.fixed=fe.fixed,O($e)})},k=()=>{s.value.forEach(Ke=>{O(Ke)}),f.value=s.value.filter(Ke=>Ke.fixed===!0||Ke.fixed==="left"),c.value=s.value.filter(Ke=>Ke.fixed==="right"),f.value.length>0&&s.value[0]&&s.value[0].type==="selection"&&!s.value[0].fixed&&(s.value[0].fixed=!0,f.value.unshift(s.value[0]));const fe=s.value.filter(Ke=>!Ke.fixed);l.value=[].concat(f.value).concat(fe).concat(c.value);const xe=mc(fe),$e=mc(f.value),He=mc(c.value);p.value=xe.length,g.value=$e.length,m.value=He.length,u.value=[].concat($e).concat(xe).concat(He),o.value=f.value.length>0||c.value.length>0},F=(fe,xe=!1)=>{fe&&k(),xe?t.state.doLayout():t.state.debouncedUpdateLayout()},j=fe=>_.value.includes(fe),B=()=>{y.value=!1,_.value.length&&(_.value=[],t.emit("selection-change",[]))},N=()=>{let fe;if(n.value){fe=[];const xe=ja(_.value,n.value),$e=ja(i.value,n.value);for(const He in xe)ze(xe,He)&&!$e[He]&&fe.push(xe[He].row)}else fe=_.value.filter(xe=>!i.value.includes(xe));if(fe.length){const xe=_.value.filter($e=>!fe.includes($e));_.value=xe,t.emit("selection-change",xe.slice())}},U=()=>(_.value||[]).slice(),re=(fe,xe=void 0,$e=!0)=>{if(Rl(_.value,fe,xe)){const Ke=(_.value||[]).slice();$e&&t.emit("select",Ke,fe),t.emit("selection-change",Ke)}},ae=()=>{var fe,xe;const $e=x.value?!y.value:!(y.value||_.value.length);y.value=$e;let He=!1,Ke=0;const Ot=(xe=(fe=t==null?void 0:t.store)==null?void 0:fe.states)==null?void 0:xe.rowKey.value;i.value.forEach((ht,zt)=>{const Hr=zt+Ke;w.value?w.value.call(null,ht,Hr)&&Rl(_.value,ht,$e)&&(He=!0):Rl(_.value,ht,$e)&&(He=!0),Ke+=V(Ut(ht,Ot))}),He&&t.emit("selection-change",_.value?_.value.slice():[]),t.emit("select-all",_.value)},me=()=>{const fe=ja(_.value,n.value);i.value.forEach(xe=>{const $e=Ut(xe,n.value),He=fe[$e];He&&(_.value[He.index]=xe)})},Te=()=>{var fe,xe,$e;if(((fe=i.value)==null?void 0:fe.length)===0){y.value=!1;return}let He;n.value&&(He=ja(_.value,n.value));const Ke=function(Hr){return He?!!He[Ut(Hr,n.value)]:_.value.includes(Hr)};let Ot=!0,ht=0,zt=0;for(let Hr=0,wL=(i.value||[]).length;Hr<wL;Hr++){const xL=($e=(xe=t==null?void 0:t.store)==null?void 0:xe.states)==null?void 0:$e.rowKey.value,SL=Hr+zt,wh=i.value[Hr],CL=w.value&&w.value.call(null,wh,SL);if(Ke(wh))ht++;else if(!w.value||CL){Ot=!1;break}zt+=V(Ut(wh,xL))}ht===0&&(Ot=!1),y.value=Ot},V=fe=>{var xe;if(!t||!t.store)return 0;const{treeData:$e}=t.store.states;let He=0;const Ke=(xe=$e.value[fe])==null?void 0:xe.children;return Ke&&(He+=Ke.length,Ke.forEach(Ot=>{He+=V(Ot)})),He},Q=(fe,xe)=>{Array.isArray(fe)||(fe=[fe]);const $e={};return fe.forEach(He=>{S.value[He.id]=xe,$e[He.columnKey||He.id]=xe}),$e},W=(fe,xe,$e)=>{T.value&&T.value!==fe&&(T.value.order=null),T.value=fe,E.value=xe,A.value=$e},Y=()=>{let fe=L(a);Object.keys(S.value).forEach(xe=>{const $e=S.value[xe];if(!$e||$e.length===0)return;const He=RM({columns:u.value},xe);He&&He.filterMethod&&(fe=fe.filter(Ke=>$e.some(Ot=>He.filterMethod.call(null,Ot,Ke,He))))}),C.value=fe},se=()=>{i.value=v8(C.value,{sortingColumn:T.value,sortProp:E.value,sortOrder:A.value})},he=(fe=void 0)=>{fe&&fe.filter||Y(),se()},Z=fe=>{const{tableHeaderRef:xe}=t.refs;if(!xe)return;const $e=Object.assign({},xe.filterPanels),He=Object.keys($e);if(He.length)if(typeof fe=="string"&&(fe=[fe]),Array.isArray(fe)){const Ke=fe.map(Ot=>a8({columns:u.value},Ot));He.forEach(Ot=>{const ht=Ke.find(zt=>zt.id===Ot);ht&&(ht.filteredValue=[])}),t.store.commit("filterChange",{column:Ke,values:[],silent:!0,multi:!0})}else He.forEach(Ke=>{const Ot=u.value.find(ht=>ht.id===Ke);Ot&&(Ot.filteredValue=[])}),S.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},P=()=>{T.value&&(W(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:I,toggleRowExpansion:z,updateExpandRows:G,states:q,isRowExpanded:ne}=c8({data:i,rowKey:n}),{updateTreeExpandKeys:ce,toggleTreeExpansion:te,updateTreeData:ie,loadOrToggle:K,states:_e}=h8({data:i,rowKey:n}),{updateCurrentRowData:ve,updateCurrentRow:be,setCurrentRowKey:Le,states:Fe}=d8({data:i,rowKey:n});return{assertRowKey:D,updateColumns:k,scheduleLayout:F,isSelected:j,clearSelection:B,cleanSelection:N,getSelectionRows:U,toggleRowSelection:re,_toggleAllSelection:ae,toggleAllSelection:null,updateSelectionByRowKey:me,updateAllSelected:Te,updateFilters:Q,updateCurrentRow:be,updateSort:W,execFilter:Y,execSort:se,execQuery:he,clearFilter:Z,clearSort:P,toggleRowExpansion:z,setExpandRowKeysAdapter:fe=>{I(fe),ce(fe)},setCurrentRowKey:Le,toggleRowExpansionAdapter:(fe,xe)=>{u.value.some(({type:He})=>He==="expand")?z(fe,xe):te(fe,xe)},isRowExpanded:ne,updateExpandRows:G,updateCurrentRowData:ve,loadOrToggle:K,updateTreeData:ie,states:{tableSize:r,rowKey:n,data:i,_data:a,isComplex:o,_columns:s,originColumns:l,columns:u,fixedColumns:f,rightFixedColumns:c,leafColumns:d,fixedLeafColumns:h,rightFixedLeafColumns:v,leafColumnsLength:p,fixedLeafColumnsLength:g,rightFixedLeafColumnsLength:m,isAllSelected:y,selection:_,reserveSelection:b,selectOnIndeterminate:x,selectable:w,filters:S,filteredData:C,sortingColumn:T,sortProp:E,sortOrder:A,hoverRow:M,...q,..._e,...Fe}}}function ag(e,t){return e.map(r=>{var n;return r.id===t.id?t:((n=r.children)!=null&&n.length&&(r.children=ag(r.children,t)),r)})}function BM(e){e.forEach(t=>{var r,n;t.no=(r=t.getColumnIndex)==null?void 0:r.call(t),(n=t.children)!=null&&n.length&&BM(t.children)}),e.sort((t,r)=>t.no-r.no)}function g8(){const e=dt(),t=p8();return{ns:Ne("table"),...t,mutations:{setData(o,s){const l=L(o._data)!==s;o.data.value=s,o._data.value=s,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),L(o.reserveSelection)?(e.store.assertRowKey(),e.store.updateSelectionByRowKey()):l?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(o,s,l){const u=L(o._columns);let f=[];l?(l&&!l.children&&(l.children=[]),l.children.push(s),f=ag(u,l)):(u.push(s),f=u),BM(f),o._columns.value=f,s.type==="selection"&&(o.selectable.value=s.selectable,o.reserveSelection.value=s.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},removeColumn(o,s,l){const u=L(o._columns)||[];if(l)l.children.splice(l.children.findIndex(f=>f.id===s.id),1),Ht(()=>{var f;((f=l.children)==null?void 0:f.length)===0&&delete l.children}),o._columns.value=ag(u,l);else{const f=u.indexOf(s);f>-1&&(u.splice(f,1),o._columns.value=u)}e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(o,s){const{prop:l,order:u,init:f}=s;if(l){const c=L(o.columns).find(d=>d.property===l);c&&(c.order=u,e.store.updateSort(c,l,u),e.store.commit("changeSortCondition",{init:f}))}},changeSortCondition(o,s){const{sortingColumn:l,sortProp:u,sortOrder:f}=o,c=L(l),d=L(u),h=L(f);h===null&&(o.sortingColumn.value=null,o.sortProp.value=null);const v={filter:!0};e.store.execQuery(v),(!s||!(s.silent||s.init))&&e.emit("sort-change",{column:c,prop:d,order:h}),e.store.updateTableScrollY()},filterChange(o,s){const{column:l,values:u,silent:f}=s,c=e.store.updateFilters(l,u);e.store.execQuery(),f||e.emit("filter-change",c),e.store.updateTableScrollY()},toggleAllSelection(){e.store.toggleAllSelection()},rowSelectedChanged(o,s){e.store.toggleRowSelection(s),e.store.updateAllSelected()},setHoverRow(o,s){o.hoverRow.value=s},setCurrentRow(o,s){e.store.updateCurrentRow(s)}},commit:function(o,...s){const l=e.store.mutations;if(l[o])l[o].apply(e,[e.store.states].concat(s));else throw new Error(`Action not found: ${o}`)},updateTableScrollY:function(){Ht(()=>e.layout.updateScrollY.apply(e.layout))}}}const Ol={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",data:"data",["treeProps.hasChildren"]:{key:"lazyColumnIdentifier",default:"hasChildren"},["treeProps.children"]:{key:"childrenColumnName",default:"children"}};function m8(e,t){if(!e)throw new Error("Table is required.");const r=g8();return r.toggleAllSelection=Hc(r._toggleAllSelection,10),Object.keys(Ol).forEach(n=>{FM($M(t,n),n,r)}),y8(r,t),r}function y8(e,t){Object.keys(Ol).forEach(r=>{Me(()=>$M(t,r),n=>{FM(n,r,e)})})}function FM(e,t,r){let n=e,i=Ol[t];typeof Ol[t]=="object"&&(i=i.key,n=n||Ol[t].default),r.states[i].value=n}function $M(e,t){if(t.includes(".")){const r=t.split(".");let n=e;return r.forEach(i=>{n=n[i]}),n}else return e[t]}class _8{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=H(null),this.scrollX=H(!1),this.scrollY=H(!1),this.bodyWidth=H(null),this.fixedWidth=H(null),this.rightFixedWidth=H(null),this.gutterWidth=0;for(const r in t)ze(t,r)&&(St(this[r])?this[r].value=t[r]:this[r]=t[r]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){if(this.height.value===null)return!1;const r=this.table.refs.scrollBarRef;if(this.table.vnode.el&&r){let n=!0;const i=this.scrollY.value;return n=r.wrapRef.scrollHeight>r.wrapRef.clientHeight,this.scrollY.value=n,i!==n}return!1}setHeight(t,r="height"){if(!Rt)return;const n=this.table.vnode.el;if(t=s8(t),this.height.value=Number(t),!n&&(t||t===0))return Ht(()=>this.setHeight(t,r));typeof t=="number"?(n.style[r]=`${t}px`,this.updateElsHeight()):typeof t=="string"&&(n.style[r]=t,this.updateElsHeight())}setMaxHeight(t){this.setHeight(t,"max-height")}getFlattenColumns(){const t=[];return this.table.store.states.columns.value.forEach(n=>{n.isColumnGroup?t.push.apply(t,n.columns):t.push(n)}),t}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(t){if(!t)return!0;let r=t;for(;r.tagName!=="DIV";){if(getComputedStyle(r).display==="none")return!0;r=r.parentElement}return!1}updateColumnsWidth(){if(!Rt)return;const t=this.fit,r=this.table.vnode.el.clientWidth;let n=0;const i=this.getFlattenColumns(),a=i.filter(l=>typeof l.width!="number");if(i.forEach(l=>{typeof l.width=="number"&&l.realWidth&&(l.realWidth=null)}),a.length>0&&t){if(i.forEach(l=>{n+=Number(l.width||l.minWidth||80)}),n<=r){this.scrollX.value=!1;const l=r-n;if(a.length===1)a[0].realWidth=Number(a[0].minWidth||80)+l;else{const u=a.reduce((d,h)=>d+Number(h.minWidth||80),0),f=l/u;let c=0;a.forEach((d,h)=>{if(h===0)return;const v=Math.floor(Number(d.minWidth||80)*f);c+=v,d.realWidth=Number(d.minWidth||80)+v}),a[0].realWidth=Number(a[0].minWidth||80)+l-c}}else this.scrollX.value=!0,a.forEach(l=>{l.realWidth=Number(l.minWidth)});this.bodyWidth.value=Math.max(n,r),this.table.state.resizeState.value.width=this.bodyWidth.value}else i.forEach(l=>{!l.width&&!l.minWidth?l.realWidth=80:l.realWidth=Number(l.width||l.minWidth),n+=l.realWidth}),this.scrollX.value=n>r,this.bodyWidth.value=n;const o=this.store.states.fixedColumns.value;if(o.length>0){let l=0;o.forEach(u=>{l+=Number(u.realWidth||u.width)}),this.fixedWidth.value=l}const s=this.store.states.rightFixedColumns.value;if(s.length>0){let l=0;s.forEach(u=>{l+=Number(u.realWidth||u.width)}),this.rightFixedWidth.value=l}this.notifyObservers("columns")}addObserver(t){this.observers.push(t)}removeObserver(t){const r=this.observers.indexOf(t);r!==-1&&this.observers.splice(r,1)}notifyObservers(t){this.observers.forEach(n=>{var i,a;switch(t){case"columns":(i=n.state)==null||i.onColumnsChange(this);break;case"scrollable":(a=n.state)==null||a.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${t}.`)}})}}const{CheckboxGroup:b8}=bs,w8=ue({name:"ElTableFilterPanel",components:{ElCheckbox:bs,ElCheckboxGroup:b8,ElScrollbar:tM,ElTooltip:qd,ElIcon:Cn,ArrowDown:CT,ArrowUp:E$},directives:{ClickOutside:DH},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup(e){const t=dt(),{t:r}=$T(),n=Ne("table-filter"),i=t==null?void 0:t.parent;i.filterPanels.value[e.column.id]||(i.filterPanels.value[e.column.id]=t);const a=H(!1),o=H(null),s=$(()=>e.column&&e.column.filters),l=$({get:()=>{var b;return(((b=e.column)==null?void 0:b.filteredValue)||[])[0]},set:b=>{u.value&&(typeof b<"u"&&b!==null?u.value.splice(0,1,b):u.value.splice(0,1))}}),u=$({get(){return e.column?e.column.filteredValue||[]:[]},set(b){e.column&&e.upDataColumn("filteredValue",b)}}),f=$(()=>e.column?e.column.filterMultiple:!0),c=b=>b.value===l.value,d=()=>{a.value=!1},h=b=>{b.stopPropagation(),a.value=!a.value},v=()=>{a.value=!1},p=()=>{y(u.value),d()},g=()=>{u.value=[],y(u.value),d()},m=b=>{l.value=b,y(typeof b<"u"&&b!==null?u.value:[]),d()},y=b=>{e.store.commit("filterChange",{column:e.column,values:b}),e.store.updateAllSelected()};Me(a,b=>{e.column&&e.upDataColumn("filterOpened",b)},{immediate:!0});const _=$(()=>{var b,x;return(x=(b=o.value)==null?void 0:b.popperRef)==null?void 0:x.contentRef});return{tooltipVisible:a,multiple:f,filteredValue:u,filterValue:l,filters:s,handleConfirm:p,handleReset:g,handleSelect:m,isActive:c,t:r,ns:n,showFilterPanel:h,hideFilterPanel:v,popperPaneRef:_,tooltip:o}}}),x8={key:0},S8=["disabled"],C8=["label","onClick"];function T8(e,t,r,n,i,a){const o=gr("el-checkbox"),s=gr("el-checkbox-group"),l=gr("el-scrollbar"),u=gr("arrow-up"),f=gr("arrow-down"),c=gr("el-icon"),d=gr("el-tooltip"),h=Rm("click-outside");return X(),Ie(d,{ref:"tooltip",visible:e.tooltipVisible,offset:0,placement:e.placement,"show-arrow":!1,"stop-popper-mouse-event":!1,teleported:"",effect:"light",pure:"","popper-class":e.ns.b(),persistent:""},{content:ee(()=>[e.multiple?(X(),Se("div",x8,[le("div",{class:de(e.ns.e("content"))},[J(l,{"wrap-class":e.ns.e("wrap")},{default:ee(()=>[J(s,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=v=>e.filteredValue=v),class:de(e.ns.e("checkbox-group"))},{default:ee(()=>[(X(!0),Se(wt,null,K0(e.filters,v=>(X(),Ie(o,{key:v.value,label:v.value},{default:ee(()=>[kt(Re(v.text),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),le("div",{class:de(e.ns.e("bottom"))},[le("button",{class:de({[e.ns.is("disabled")]:e.filteredValue.length===0}),disabled:e.filteredValue.length===0,type:"button",onClick:t[1]||(t[1]=(...v)=>e.handleConfirm&&e.handleConfirm(...v))},Re(e.t("el.table.confirmFilter")),11,S8),le("button",{type:"button",onClick:t[2]||(t[2]=(...v)=>e.handleReset&&e.handleReset(...v))},Re(e.t("el.table.resetFilter")),1)],2)])):(X(),Se("ul",{key:1,class:de(e.ns.e("list"))},[le("li",{class:de([e.ns.e("list-item"),{[e.ns.is("active")]:e.filterValue===void 0||e.filterValue===null}]),onClick:t[3]||(t[3]=v=>e.handleSelect(null))},Re(e.t("el.table.clearFilter")),3),(X(!0),Se(wt,null,K0(e.filters,v=>(X(),Se("li",{key:v.value,class:de([e.ns.e("list-item"),e.ns.is("active",e.isActive(v))]),label:v.value,onClick:p=>e.handleSelect(v.value)},Re(v.text),11,C8))),128))],2))]),default:ee(()=>[sr((X(),Se("span",{class:de([`${e.ns.namespace.value}-table__column-filter-trigger`,`${e.ns.namespace.value}-none-outline`]),onClick:t[4]||(t[4]=(...v)=>e.showFilterPanel&&e.showFilterPanel(...v))},[J(c,null,{default:ee(()=>[e.column.filterOpened?(X(),Ie(u,{key:0})):(X(),Ie(f,{key:1}))]),_:1})],2)),[[h,e.hideFilterPanel,e.popperPaneRef]])]),_:1},8,["visible","placement","popper-class"])}var M8=Qe(w8,[["render",T8],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/filter-panel.vue"]]);function HM(e){const t=dt();Ed(()=>{r.value.addObserver(t)}),Et(()=>{n(r.value),i(r.value)}),Pd(()=>{n(r.value),i(r.value)}),Iu(()=>{r.value.removeObserver(t)});const r=$(()=>{const a=e.layout;if(!a)throw new Error("Can not find table layout.");return a}),n=a=>{var o;const s=((o=e.vnode.el)==null?void 0:o.querySelectorAll("colgroup > col"))||[];if(!s.length)return;const l=a.getFlattenColumns(),u={};l.forEach(f=>{u[f.id]=f});for(let f=0,c=s.length;f<c;f++){const d=s[f],h=d.getAttribute("name"),v=u[h];v&&d.setAttribute("width",v.realWidth||v.width)}},i=a=>{var o,s;const l=((o=e.vnode.el)==null?void 0:o.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let f=0,c=l.length;f<c;f++)l[f].setAttribute("width",a.scrollY.value?a.gutterWidth:"0");const u=((s=e.vnode.el)==null?void 0:s.querySelectorAll("th.gutter"))||[];for(let f=0,c=u.length;f<c;f++){const d=u[f];d.style.width=a.scrollY.value?`${a.gutterWidth}px`:"0",d.style.display=a.scrollY.value?"":"none"}};return{tableLayout:r.value,onColumnsChange:n,onScrollableChange:i}}const Zn=Symbol("ElTable");function A8(e,t){const r=dt(),n=De(Zn),i=p=>{p.stopPropagation()},a=(p,g)=>{!g.filters&&g.sortable?v(p,g,!1):g.filterable&&!g.sortable&&i(p),n==null||n.emit("header-click",g,p)},o=(p,g)=>{n==null||n.emit("header-contextmenu",g,p)},s=H(null),l=H(!1),u=H({}),f=(p,g)=>{if(Rt&&!(g.children&&g.children.length>0)&&s.value&&e.border){l.value=!0;const m=n;t("set-drag-visible",!0);const _=(m==null?void 0:m.vnode.el).getBoundingClientRect().left,b=r.vnode.el.querySelector(`th.${g.id}`),x=b.getBoundingClientRect(),w=x.left-_+30;Uo(b,"noclick"),u.value={startMouseLeft:p.clientX,startLeft:x.right-_,startColumnLeft:x.left-_,tableLeft:_};const S=m==null?void 0:m.refs.resizeProxy;S.style.left=`${u.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const C=E=>{const A=E.clientX-u.value.startMouseLeft,M=u.value.startLeft+A;S.style.left=`${Math.max(w,M)}px`},T=()=>{if(l.value){const{startColumnLeft:E,startLeft:A}=u.value,D=Number.parseInt(S.style.left,10)-E;g.width=g.realWidth=D,m==null||m.emit("header-dragend",g.width,A-E,g,p),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",l.value=!1,s.value=null,u.value={},t("set-drag-visible",!1)}document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",T),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{rs(b,"noclick")},0)};document.addEventListener("mousemove",C),document.addEventListener("mouseup",T)}},c=(p,g)=>{var m;if(g.children&&g.children.length>0)return;const y=(m=p.target)==null?void 0:m.closest("th");if(!(!g||!g.resizable)&&!l.value&&e.border){const _=y.getBoundingClientRect(),b=document.body.style;_.width>12&&_.right-p.pageX<8?(b.cursor="col-resize",Pl(y,"is-sortable")&&(y.style.cursor="col-resize"),s.value=g):l.value||(b.cursor="",Pl(y,"is-sortable")&&(y.style.cursor="pointer"),s.value=null)}},d=()=>{Rt&&(document.body.style.cursor="")},h=({order:p,sortOrders:g})=>{if(p==="")return g[0];const m=g.indexOf(p||null);return g[m>g.length-2?0:m+1]},v=(p,g,m)=>{var y;p.stopPropagation();const _=g.order===m?null:m||h(g),b=(y=p.target)==null?void 0:y.closest("th");if(b&&Pl(b,"noclick")){rs(b,"noclick");return}if(!g.sortable)return;const x=e.store.states;let w=x.sortProp.value,S;const C=x.sortingColumn.value;(C!==g||C===g&&C.order===null)&&(C&&(C.order=null),x.sortingColumn.value=g,w=g.property),_?S=g.order=_:S=g.order=null,x.sortProp.value=w,x.sortOrder.value=S,n==null||n.store.commit("changeSortCondition")};return{handleHeaderClick:a,handleHeaderContextMenu:o,handleMouseDown:f,handleMouseMove:c,handleMouseOut:d,handleSortClick:v,handleFilterClick:i}}function E8(e){const t=De(Zn),r=Ne("table");return{getHeaderRowStyle:s=>{const l=t==null?void 0:t.props.headerRowStyle;return typeof l=="function"?l.call(null,{rowIndex:s}):l},getHeaderRowClass:s=>{const l=[],u=t==null?void 0:t.props.headerRowClassName;return typeof u=="string"?l.push(u):typeof u=="function"&&l.push(u.call(null,{rowIndex:s})),l.join(" ")},getHeaderCellStyle:(s,l,u,f)=>{var c;let d=(c=t==null?void 0:t.props.headerCellStyle)!=null?c:{};typeof d=="function"&&(d=d.call(null,{rowIndex:s,columnIndex:l,row:u,column:f}));const h=Cy(l,f.fixed,e.store,u);return ws(h,"left"),ws(h,"right"),Object.assign({},d,h)},getHeaderCellClass:(s,l,u,f)=>{const c=Sy(r.b(),l,f.fixed,e.store,u),d=[f.id,f.order,f.headerAlign,f.className,f.labelClassName,...c];f.children||d.push("is-leaf"),f.sortable&&d.push("is-sortable");const h=t==null?void 0:t.props.headerCellClassName;return typeof h=="string"?d.push(h):typeof h=="function"&&d.push(h.call(null,{rowIndex:s,columnIndex:l,row:u,column:f})),d.push(r.e("cell")),d.filter(v=>Boolean(v)).join(" ")}}}const zM=e=>{const t=[];return e.forEach(r=>{r.children?(t.push(r),t.push.apply(t,zM(r.children))):t.push(r)}),t},P8=e=>{let t=1;const r=(a,o)=>{if(o&&(a.level=o.level+1,t<a.level&&(t=a.level)),a.children){let s=0;a.children.forEach(l=>{r(l,a),s+=l.colSpan}),a.colSpan=s}else a.colSpan=1};e.forEach(a=>{a.level=1,r(a,void 0)});const n=[];for(let a=0;a<t;a++)n.push([]);return zM(e).forEach(a=>{a.children?(a.rowSpan=1,a.children.forEach(o=>o.isSubColumn=!0)):a.rowSpan=t-a.level+1,n[a.level-1].push(a)}),n};function L8(e){const t=De(Zn),r=$(()=>P8(e.store.states.originColumns.value));return{isGroup:$(()=>{const a=r.value.length>1;return a&&t&&(t.state.isGroup.value=!0),a}),toggleAllSelection:a=>{a.stopPropagation(),t==null||t.store.commit("toggleAllSelection")},columnRows:r}}var D8=ue({name:"ElTableHeader",components:{ElCheckbox:bs},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e,{emit:t}){const r=dt(),n=De(Zn),i=Ne("table"),a=H({}),{onColumnsChange:o,onScrollableChange:s}=HM(n);Et(async()=>{await Ht(),await Ht();const{prop:w,order:S}=e.defaultSort;n==null||n.store.commit("sort",{prop:w,order:S,init:!0})});const{handleHeaderClick:l,handleHeaderContextMenu:u,handleMouseDown:f,handleMouseMove:c,handleMouseOut:d,handleSortClick:h,handleFilterClick:v}=A8(e,t),{getHeaderRowStyle:p,getHeaderRowClass:g,getHeaderCellStyle:m,getHeaderCellClass:y}=E8(e),{isGroup:_,toggleAllSelection:b,columnRows:x}=L8(e);return r.state={onColumnsChange:o,onScrollableChange:s},r.filterPanels=a,{ns:i,filterPanels:a,onColumnsChange:o,onScrollableChange:s,columnRows:x,getHeaderRowClass:g,getHeaderRowStyle:p,getHeaderCellClass:y,getHeaderCellStyle:m,handleHeaderClick:l,handleHeaderContextMenu:u,handleMouseDown:f,handleMouseMove:c,handleMouseOut:d,handleSortClick:h,handleFilterClick:v,isGroup:_,toggleAllSelection:b}},render(){const{ns:e,isGroup:t,columnRows:r,getHeaderCellStyle:n,getHeaderCellClass:i,getHeaderRowClass:a,getHeaderRowStyle:o,handleHeaderClick:s,handleHeaderContextMenu:l,handleMouseDown:u,handleMouseMove:f,handleSortClick:c,handleMouseOut:d,store:h,$parent:v}=this;let p=1;return we("thead",{class:{[e.is("group")]:t}},r.map((g,m)=>we("tr",{class:a(m),key:m,style:o(m)},g.map((y,_)=>(y.rowSpan>p&&(p=y.rowSpan),we("th",{class:i(m,_,g,y),colspan:y.colSpan,key:`${y.id}-thead`,rowspan:y.rowSpan,style:n(m,_,g,y),onClick:b=>s(b,y),onContextmenu:b=>l(b,y),onMousedown:b=>u(b,y),onMousemove:b=>f(b,y),onMouseout:d},[we("div",{class:["cell",y.filteredValue&&y.filteredValue.length>0?"highlight":""]},[y.renderHeader?y.renderHeader({column:y,$index:_,store:h,_self:v}):y.label,y.sortable&&we("span",{onClick:b=>c(b,y),class:"caret-wrapper"},[we("i",{onClick:b=>c(b,y,"ascending"),class:"sort-caret ascending"}),we("i",{onClick:b=>c(b,y,"descending"),class:"sort-caret descending"})]),y.filterable&&we(M8,{store:h,placement:y.filterPlacement||"bottom-start",column:y,upDataColumn:(b,x)=>{y[b]=x}})])]))))))}});function I8(e){const t=De(Zn),r=H(""),n=H(we("div")),i=(d,h,v)=>{var p;const g=t,m=Vh(d);let y;const _=(p=g==null?void 0:g.vnode.el)==null?void 0:p.dataset.prefix;m&&(y=Yb({columns:e.store.states.columns.value},m,_),y&&(g==null||g.emit(`cell-${v}`,h,y,m,d))),g==null||g.emit(`row-${v}`,h,y,d)},a=(d,h)=>{i(d,h,"dblclick")},o=(d,h)=>{e.store.commit("setCurrentRow",h),i(d,h,"click")},s=(d,h)=>{i(d,h,"contextmenu")},l=Hc(d=>{e.store.commit("setHoverRow",d)},30),u=Hc(()=>{e.store.commit("setHoverRow",null)},30);return{handleDoubleClick:a,handleClick:o,handleContextMenu:s,handleMouseEnter:l,handleMouseLeave:u,handleCellMouseEnter:(d,h,v)=>{var p;const g=t,m=Vh(d),y=(p=g==null?void 0:g.vnode.el)==null?void 0:p.dataset.prefix;if(m){const S=Yb({columns:e.store.states.columns.value},m,y),C=g.hoverState={cell:m,column:S,row:h};g==null||g.emit("cell-mouse-enter",C.row,C.column,C.cell,d)}if(!v)return;const _=d.target.querySelector(".cell");if(!(Pl(_,`${y}-tooltip`)&&_.childNodes.length))return;const b=document.createRange();b.setStart(_,0),b.setEnd(_,_.childNodes.length);const x=Math.round(b.getBoundingClientRect().width),w=(Number.parseInt(ib(_,"paddingLeft"),10)||0)+(Number.parseInt(ib(_,"paddingRight"),10)||0);(x+w>_.offsetWidth||_.scrollWidth>_.offsetWidth)&&f8(t==null?void 0:t.refs.tableWrapper,m,m.innerText||m.textContent,v)},handleCellMouseLeave:d=>{if(!Vh(d))return;const v=t==null?void 0:t.hoverState;t==null||t.emit("cell-mouse-leave",v==null?void 0:v.row,v==null?void 0:v.column,v==null?void 0:v.cell,d)},tooltipContent:r,tooltipTrigger:n}}function R8(e){const t=De(Zn),r=Ne("table");return{getRowStyle:(u,f)=>{const c=t==null?void 0:t.props.rowStyle;return typeof c=="function"?c.call(null,{row:u,rowIndex:f}):c||null},getRowClass:(u,f)=>{const c=[r.e("row")];t!=null&&t.props.highlightCurrentRow&&u===e.store.states.currentRow.value&&c.push("current-row"),e.stripe&&f%2===1&&c.push(r.em("row","striped"));const d=t==null?void 0:t.props.rowClassName;return typeof d=="string"?c.push(d):typeof d=="function"&&c.push(d.call(null,{row:u,rowIndex:f})),c},getCellStyle:(u,f,c,d)=>{const h=t==null?void 0:t.props.cellStyle;let v=h??{};typeof h=="function"&&(v=h.call(null,{rowIndex:u,columnIndex:f,row:c,column:d}));const p=Cy(f,e==null?void 0:e.fixed,e.store);return ws(p,"left"),ws(p,"right"),Object.assign({},v,p)},getCellClass:(u,f,c,d,h)=>{const v=Sy(r.b(),f,e==null?void 0:e.fixed,e.store,void 0,h),p=[d.id,d.align,d.className,...v],g=t==null?void 0:t.props.cellClassName;return typeof g=="string"?p.push(g):typeof g=="function"&&p.push(g.call(null,{rowIndex:u,columnIndex:f,row:c,column:d})),p.push(r.e("cell")),p.filter(m=>Boolean(m)).join(" ")},getSpan:(u,f,c,d)=>{let h=1,v=1;const p=t==null?void 0:t.props.spanMethod;if(typeof p=="function"){const g=p({row:u,column:f,rowIndex:c,columnIndex:d});Array.isArray(g)?(h=g[0],v=g[1]):typeof g=="object"&&(h=g.rowspan,v=g.colspan)}return{rowspan:h,colspan:v}},getColspanRealWidth:(u,f,c)=>{if(f<1)return u[c].realWidth;const d=u.map(({realWidth:h,width:v})=>h||v).slice(c,c+f);return Number(d.reduce((h,v)=>Number(h)+Number(v),-1))}}}function O8(e){const t=De(Zn),r=Ne("table"),{handleDoubleClick:n,handleClick:i,handleContextMenu:a,handleMouseEnter:o,handleMouseLeave:s,handleCellMouseEnter:l,handleCellMouseLeave:u,tooltipContent:f,tooltipTrigger:c}=I8(e),{getRowStyle:d,getRowClass:h,getCellStyle:v,getCellClass:p,getSpan:g,getColspanRealWidth:m}=R8(e),y=$(()=>e.store.states.columns.value.findIndex(({type:S})=>S==="default")),_=(S,C)=>{const T=t.props.rowKey;return T?Ut(S,T):C},b=(S,C,T,E=!1)=>{const{tooltipEffect:A,tooltipOptions:M,store:D}=e,{indent:O,columns:k}=D.states,F=h(S,C);let j=!0;return T&&(F.push(r.em("row",`level-${T.level}`)),j=T.display),we("tr",{style:[j?null:{display:"none"},d(S,C)],class:F,key:_(S,C),onDblclick:N=>n(N,S),onClick:N=>i(N,S),onContextmenu:N=>a(N,S),onMouseenter:()=>o(C),onMouseleave:s},k.value.map((N,U)=>{const{rowspan:re,colspan:ae}=g(S,N,C,U);if(!re||!ae)return null;const me={...N};me.realWidth=m(k.value,ae,U);const Te={store:e.store,_self:e.context||t,column:me,row:S,$index:C,cellIndex:U,expanded:E};U===y.value&&T&&(Te.treeNode={indent:T.level*O.value,level:T.level},typeof T.expanded=="boolean"&&(Te.treeNode.expanded=T.expanded,"loading"in T&&(Te.treeNode.loading=T.loading),"noLazyChildren"in T&&(Te.treeNode.noLazyChildren=T.noLazyChildren)));const V=`${C},${U}`,Q=me.columnKey||me.rawColumnKey||"",W=x(U,N,Te),Y=N.showOverflowTooltip&&wT({effect:A},M,N.showOverflowTooltip);return we("td",{style:v(C,U,S,N),class:p(C,U,S,N,ae-1),key:`${Q}${V}`,rowspan:re,colspan:ae,onMouseenter:se=>l(se,S,Y),onMouseleave:u},[W])}))},x=(S,C,T)=>C.renderCell(T);return{wrappedRowRender:(S,C)=>{const T=e.store,{isRowExpanded:E,assertRowKey:A}=T,{treeData:M,lazyTreeNodeMap:D,childrenColumnName:O,rowKey:k}=T.states,F=T.states.columns.value;if(F.some(({type:B})=>B==="expand")){const B=E(S),N=b(S,C,void 0,B),U=t.renderExpanded;return B?U?[[N,we("tr",{key:`expanded-row__${N.key}`},[we("td",{colspan:F.length,class:`${r.e("cell")} ${r.e("expanded-cell")}`},[U({row:S,$index:C,store:T,expanded:B})])])]]:(console.error("[Element Error]renderExpanded is required."),N):[[N]]}else if(Object.keys(M.value).length){A();const B=Ut(S,k.value);let N=M.value[B],U=null;N&&(U={expanded:N.expanded,level:N.level,display:!0},typeof N.lazy=="boolean"&&(typeof N.loaded=="boolean"&&N.loaded&&(U.noLazyChildren=!(N.children&&N.children.length)),U.loading=N.loading));const re=[b(S,C,U)];if(N){let ae=0;const me=(V,Q)=>{V&&V.length&&Q&&V.forEach(W=>{const Y={display:Q.display&&Q.expanded,level:Q.level+1,expanded:!1,noLazyChildren:!1,loading:!1},se=Ut(W,k.value);if(se==null)throw new Error("For nested data item, row-key is required.");if(N={...M.value[se]},N&&(Y.expanded=N.expanded,N.level=N.level||Y.level,N.display=!!(N.expanded&&Y.display),typeof N.lazy=="boolean"&&(typeof N.loaded=="boolean"&&N.loaded&&(Y.noLazyChildren=!(N.children&&N.children.length)),Y.loading=N.loading)),ae++,re.push(b(W,C+ae,Y)),N){const he=D.value[se]||W[O.value];me(he,N)}})};N.display=!0;const Te=D.value[B]||S[O.value];me(Te,N)}return re}else return b(S,C,void 0)},tooltipContent:f,tooltipTrigger:c}}const k8={store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,tooltipOptions:{type:Object},context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean};var N8=ue({name:"ElTableBody",props:k8,setup(e){const t=dt(),r=De(Zn),n=Ne("table"),{wrappedRowRender:i,tooltipContent:a,tooltipTrigger:o}=O8(e),{onColumnsChange:s,onScrollableChange:l}=HM(r);return Me(e.store.states.hoverRow,(u,f)=>{if(!e.store.states.isComplex.value||!Rt)return;let c=window.requestAnimationFrame;c||(c=d=>window.setTimeout(d,16)),c(()=>{const d=t==null?void 0:t.vnode.el,h=Array.from((d==null?void 0:d.children)||[]).filter(g=>g==null?void 0:g.classList.contains(`${n.e("row")}`)),v=h[f],p=h[u];v&&rs(v,"hover-row"),p&&Uo(p,"hover-row")})}),Iu(()=>{var u;(u=ai)==null||u()}),{ns:n,onColumnsChange:s,onScrollableChange:l,wrappedRowRender:i,tooltipContent:a,tooltipTrigger:o}},render(){const{wrappedRowRender:e,store:t}=this,r=t.states.data.value||[];return we("tbody",{},[r.reduce((n,i)=>n.concat(e(i,n.length)),[])])}});function Ty(e){const t=e.tableLayout==="auto";let r=e.columns||[];t&&r.every(i=>i.width===void 0)&&(r=[]);const n=i=>{const a={key:`${e.tableLayout}_${i.id}`,style:{},name:void 0};return t?a.style={width:`${i.width}px`}:a.name=i.id,a};return we("colgroup",{},r.map(i=>we("col",n(i))))}Ty.props=["columns","tableLayout"];function B8(){const e=De(Zn),t=e==null?void 0:e.store,r=$(()=>t.states.fixedLeafColumnsLength.value),n=$(()=>t.states.rightFixedColumns.value.length),i=$(()=>t.states.columns.value.length),a=$(()=>t.states.fixedColumns.value.length),o=$(()=>t.states.rightFixedColumns.value.length);return{leftFixedLeafCount:r,rightFixedLeafCount:n,columnsCount:i,leftFixedCount:a,rightFixedCount:o,columns:t.states.columns}}function F8(e){const{columns:t}=B8(),r=Ne("table");return{getCellClasses:(a,o)=>{const s=a[o],l=[r.e("cell"),s.id,s.align,s.labelClassName,...Sy(r.b(),o,s.fixed,e.store)];return s.className&&l.push(s.className),s.children||l.push(r.is("leaf")),l},getCellStyles:(a,o)=>{const s=Cy(o,a.fixed,e.store);return ws(s,"left"),ws(s,"right"),s},columns:t}}var $8=ue({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e){const{getCellClasses:t,getCellStyles:r,columns:n}=F8(e);return{ns:Ne("table"),getCellClasses:t,getCellStyles:r,columns:n}},render(){const{columns:e,getCellStyles:t,getCellClasses:r,summaryMethod:n,sumText:i,ns:a}=this,o=this.store.states.data.value;let s=[];return n?s=n({columns:e,data:o}):e.forEach((l,u)=>{if(u===0){s[u]=i;return}const f=o.map(v=>Number(v[l.property])),c=[];let d=!0;f.forEach(v=>{if(!Number.isNaN(+v)){d=!1;const p=`${v}`.split(".")[1];c.push(p?p.length:0)}});const h=Math.max.apply(null,c);d?s[u]="":s[u]=f.reduce((v,p)=>{const g=Number(p);return Number.isNaN(+g)?v:Number.parseFloat((v+p).toFixed(Math.min(h,20)))},0)}),we("table",{class:a.e("footer"),cellspacing:"0",cellpadding:"0",border:"0"},[Ty({columns:e}),we("tbody",[we("tr",{},[...e.map((l,u)=>we("td",{key:u,colspan:l.colSpan,rowspan:l.rowSpan,class:r(e,u),style:t(l,u)},[we("div",{class:["cell",l.labelClassName]},[s[u]])]))])])])}});function H8(e){return{setCurrentRow:f=>{e.commit("setCurrentRow",f)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(f,c)=>{e.toggleRowSelection(f,c,!1),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:f=>{e.clearFilter(f)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(f,c)=>{e.toggleRowExpansionAdapter(f,c)},clearSort:()=>{e.clearSort()},sort:(f,c)=>{e.commit("sort",{prop:f,order:c})}}}function z8(e,t,r,n){const i=H(!1),a=H(null),o=H(!1),s=B=>{o.value=B},l=H({width:null,height:null,headerHeight:null}),u=H(!1),f={display:"inline-block",verticalAlign:"middle"},c=H(),d=H(0),h=H(0),v=H(0),p=H(0);ts(()=>{t.setHeight(e.height)}),ts(()=>{t.setMaxHeight(e.maxHeight)}),Me(()=>[e.currentRowKey,r.states.rowKey],([B,N])=>{!L(N)||!L(B)||r.setCurrentRowKey(`${B}`)},{immediate:!0}),Me(()=>e.data,B=>{n.store.commit("setData",B)},{immediate:!0,deep:!0}),ts(()=>{e.expandRowKeys&&r.setExpandRowKeysAdapter(e.expandRowKeys)});const g=()=>{n.store.commit("setHoverRow",null),n.hoverState&&(n.hoverState=null)},m=(B,N)=>{const{pixelX:U,pixelY:re}=N;Math.abs(U)>=Math.abs(re)&&(n.refs.bodyWrapper.scrollLeft+=N.pixelX/5)},y=$(()=>e.height||e.maxHeight||r.states.fixedColumns.value.length>0||r.states.rightFixedColumns.value.length>0),_=$(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),b=()=>{y.value&&t.updateElsHeight(),t.updateColumnsWidth(),requestAnimationFrame(C)};Et(async()=>{await Ht(),r.updateColumns(),T(),requestAnimationFrame(b);const B=n.vnode.el,N=n.refs.headerWrapper;e.flexible&&B&&B.parentElement&&(B.parentElement.style.minWidth="0"),l.value={width:c.value=B.offsetWidth,height:B.offsetHeight,headerHeight:e.showHeader&&N?N.offsetHeight:null},r.states.columns.value.forEach(U=>{U.filteredValue&&U.filteredValue.length&&n.store.commit("filterChange",{column:U,values:U.filteredValue,silent:!0})}),n.$ready=!0});const x=(B,N)=>{if(!B)return;const U=Array.from(B.classList).filter(re=>!re.startsWith("is-scrolling-"));U.push(t.scrollX.value?N:"is-scrolling-none"),B.className=U.join(" ")},w=B=>{const{tableWrapper:N}=n.refs;x(N,B)},S=B=>{const{tableWrapper:N}=n.refs;return!!(N&&N.classList.contains(B))},C=function(){if(!n.refs.scrollBarRef)return;if(!t.scrollX.value){const V="is-scrolling-none";S(V)||w(V);return}const B=n.refs.scrollBarRef.wrapRef;if(!B)return;const{scrollLeft:N,offsetWidth:U,scrollWidth:re}=B,{headerWrapper:ae,footerWrapper:me}=n.refs;ae&&(ae.scrollLeft=N),me&&(me.scrollLeft=N);const Te=re-U-1;N>=Te?w("is-scrolling-right"):w(N===0?"is-scrolling-left":"is-scrolling-middle")},T=()=>{n.refs.scrollBarRef&&(n.refs.scrollBarRef.wrapRef&&$n(n.refs.scrollBarRef.wrapRef,"scroll",C,{passive:!0}),e.fit?ds(n.vnode.el,E):$n(window,"resize",E),ds(n.refs.bodyWrapper,()=>{var B,N;E(),(N=(B=n.refs)==null?void 0:B.scrollBarRef)==null||N.update()}))},E=()=>{var B,N,U;const re=n.vnode.el;if(!n.$ready||!re)return;let ae=!1;const{width:me,height:Te,headerHeight:V}=l.value,Q=c.value=re.offsetWidth;me!==Q&&(ae=!0);const W=re.offsetHeight;(e.height||y.value)&&Te!==W&&(ae=!0);const Y=e.tableLayout==="fixed"?n.refs.headerWrapper:(B=n.refs.tableHeaderRef)==null?void 0:B.$el;e.showHeader&&(Y==null?void 0:Y.offsetHeight)!==V&&(ae=!0),d.value=((N=n.refs.tableWrapper)==null?void 0:N.scrollHeight)||0,v.value=(Y==null?void 0:Y.scrollHeight)||0,p.value=((U=n.refs.footerWrapper)==null?void 0:U.offsetHeight)||0,h.value=d.value-v.value-p.value,ae&&(l.value={width:Q,height:W,headerHeight:e.showHeader&&(Y==null?void 0:Y.offsetHeight)||0},b())},A=fo(),M=$(()=>{const{bodyWidth:B,scrollY:N,gutterWidth:U}=t;return B.value?`${B.value-(N.value?U:0)}px`:""}),D=$(()=>e.maxHeight?"fixed":e.tableLayout),O=$(()=>{if(e.data&&e.data.length)return null;let B="100%";e.height&&h.value&&(B=`${h.value}px`);const N=c.value;return{width:N?`${N}px`:"",height:B}}),k=$(()=>e.height?{height:Number.isNaN(Number(e.height))?e.height:`${e.height}px`}:e.maxHeight?{maxHeight:Number.isNaN(Number(e.maxHeight))?e.maxHeight:`${e.maxHeight}px`}:{}),F=$(()=>{if(e.height)return{height:"100%"};if(e.maxHeight){if(Number.isNaN(Number(e.maxHeight)))return{maxHeight:`calc(${e.maxHeight} - ${v.value+p.value}px)`};{const B=e.maxHeight;if(d.value>=Number(B))return{maxHeight:`${d.value-v.value-p.value}px`}}}return{}});return{isHidden:i,renderExpanded:a,setDragVisible:s,isGroup:u,handleMouseLeave:g,handleHeaderFooterMousewheel:m,tableSize:A,emptyBlockStyle:O,handleFixedMousewheel:(B,N)=>{const U=n.refs.bodyWrapper;if(Math.abs(N.spinY)>0){const re=U.scrollTop;N.pixelY<0&&re!==0&&B.preventDefault(),N.pixelY>0&&U.scrollHeight-U.clientHeight>re&&B.preventDefault(),U.scrollTop+=Math.ceil(N.pixelY/5)}else U.scrollLeft+=Math.ceil(N.pixelX/5)},resizeProxyVisible:o,bodyWidth:M,resizeState:l,doLayout:b,tableBodyStyles:_,tableLayout:D,scrollbarViewStyle:f,tableInnerStyle:k,scrollbarStyle:F}}var W8={data:{type:Array,default:()=>[]},size:String,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children"})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:{type:Boolean,default:!1},flexible:Boolean};const V8=()=>{const e=H(),t=(a,o)=>{const s=e.value;s&&s.scrollTo(a,o)},r=(a,o)=>{const s=e.value;s&&_r(o)&&["Top","Left"].includes(a)&&s[`setScroll${a}`](o)};return{scrollBarRef:e,scrollTo:t,setScrollTop:a=>r("Top",a),setScrollLeft:a=>r("Left",a)}};let G8=1;const U8=ue({name:"ElTable",directives:{Mousewheel:FH},components:{TableHeader:D8,TableBody:N8,TableFooter:$8,ElScrollbar:tM,hColgroup:Ty},props:W8,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change"],setup(e){const{t}=$T(),r=Ne("table"),n=dt();Ct(Zn,n);const i=m8(n,e);n.store=i;const a=new _8({store:n.store,table:n,fit:e.fit,showHeader:e.showHeader});n.layout=a;const o=$(()=>(i.states.data.value||[]).length===0),{setCurrentRow:s,getSelectionRows:l,toggleRowSelection:u,clearSelection:f,clearFilter:c,toggleAllSelection:d,toggleRowExpansion:h,clearSort:v,sort:p}=H8(i),{isHidden:g,renderExpanded:m,setDragVisible:y,isGroup:_,handleMouseLeave:b,handleHeaderFooterMousewheel:x,tableSize:w,emptyBlockStyle:S,handleFixedMousewheel:C,resizeProxyVisible:T,bodyWidth:E,resizeState:A,doLayout:M,tableBodyStyles:D,tableLayout:O,scrollbarViewStyle:k,tableInnerStyle:F,scrollbarStyle:j}=z8(e,a,i,n),{scrollBarRef:B,scrollTo:N,setScrollLeft:U,setScrollTop:re}=V8(),ae=Hc(M,50),me=`${r.namespace.value}-table_${G8++}`;n.tableId=me,n.state={isGroup:_,resizeState:A,doLayout:M,debouncedUpdateLayout:ae};const Te=$(()=>e.sumText||t("el.table.sumText")),V=$(()=>e.emptyText||t("el.table.emptyText"));return{ns:r,layout:a,store:i,handleHeaderFooterMousewheel:x,handleMouseLeave:b,tableId:me,tableSize:w,isHidden:g,isEmpty:o,renderExpanded:m,resizeProxyVisible:T,resizeState:A,isGroup:_,bodyWidth:E,tableBodyStyles:D,emptyBlockStyle:S,debouncedUpdateLayout:ae,handleFixedMousewheel:C,setCurrentRow:s,getSelectionRows:l,toggleRowSelection:u,clearSelection:f,clearFilter:c,toggleAllSelection:d,toggleRowExpansion:h,clearSort:v,doLayout:M,sort:p,t,setDragVisible:y,context:n,computedSumText:Te,computedEmptyText:V,tableLayout:O,scrollbarViewStyle:k,tableInnerStyle:F,scrollbarStyle:j,scrollBarRef:B,scrollTo:N,setScrollLeft:U,setScrollTop:re}}}),Y8=["data-prefix"],q8={ref:"hiddenColumns",class:"hidden-columns"};function j8(e,t,r,n,i,a){const o=gr("hColgroup"),s=gr("table-header"),l=gr("table-body"),u=gr("el-scrollbar"),f=gr("table-footer"),c=Rm("mousewheel");return X(),Se("div",{ref:"tableWrapper",class:de([{[e.ns.m("fit")]:e.fit,[e.ns.m("striped")]:e.stripe,[e.ns.m("border")]:e.border||e.isGroup,[e.ns.m("hidden")]:e.isHidden,[e.ns.m("group")]:e.isGroup,[e.ns.m("fluid-height")]:e.maxHeight,[e.ns.m("scrollable-x")]:e.layout.scrollX.value,[e.ns.m("scrollable-y")]:e.layout.scrollY.value,[e.ns.m("enable-row-hover")]:!e.store.states.isComplex.value,[e.ns.m("enable-row-transition")]:(e.store.states.data.value||[]).length!==0&&(e.store.states.data.value||[]).length<100,"has-footer":e.showSummary},e.ns.m(e.tableSize),e.className,e.ns.b(),e.ns.m(`layout-${e.tableLayout}`)]),style:At(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[0]||(t[0]=d=>e.handleMouseLeave())},[le("div",{class:de(e.ns.e("inner-wrapper")),style:At(e.tableInnerStyle)},[le("div",q8,[Be(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?sr((X(),Se("div",{key:0,ref:"headerWrapper",class:de(e.ns.e("header-wrapper"))},[le("table",{ref:"tableHeader",class:de(e.ns.e("header")),style:At(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[J(o,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),J(s,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])],6)],2)),[[c,e.handleHeaderFooterMousewheel]]):ct("v-if",!0),le("div",{ref:"bodyWrapper",class:de(e.ns.e("body-wrapper"))},[J(u,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn},{default:ee(()=>[le("table",{ref:"tableBody",class:de(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:At({width:e.bodyWidth,tableLayout:e.tableLayout})},[J(o,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(X(),Ie(s,{key:0,ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])):ct("v-if",!0),J(l,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.tooltipEffect,"tooltip-options":e.tooltipOptions,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"])],6),e.isEmpty?(X(),Se("div",{key:0,ref:"emptyBlock",style:At(e.emptyBlockStyle),class:de(e.ns.e("empty-block"))},[le("span",{class:de(e.ns.e("empty-text"))},[Be(e.$slots,"empty",{},()=>[kt(Re(e.computedEmptyText),1)])],2)],6)):ct("v-if",!0),e.$slots.append?(X(),Se("div",{key:1,ref:"appendWrapper",class:de(e.ns.e("append-wrapper"))},[Be(e.$slots,"append")],2)):ct("v-if",!0)]),_:3},8,["view-style","wrap-style","always"])],2),e.showSummary?sr((X(),Se("div",{key:1,ref:"footerWrapper",class:de(e.ns.e("footer-wrapper"))},[J(f,{border:e.border,"default-sort":e.defaultSort,store:e.store,style:At(e.tableBodyStyles),"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","style","sum-text","summary-method"])],2)),[[oo,!e.isEmpty],[c,e.handleHeaderFooterMousewheel]]):ct("v-if",!0),e.border||e.isGroup?(X(),Se("div",{key:2,class:de(e.ns.e("border-left-patch"))},null,2)):ct("v-if",!0)],6),sr(le("div",{ref:"resizeProxy",class:de(e.ns.e("column-resize-proxy"))},null,2),[[oo,e.resizeProxyVisible]])],46,Y8)}var K8=Qe(U8,[["render",j8],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/table.vue"]]);const X8={selection:"table-column--selection",expand:"table__expand-column"},Z8={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:""},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},Q8=e=>X8[e]||"",J8={selection:{renderHeader({store:e}){function t(){return e.states.data.value&&e.states.data.value.length===0}return we(bs,{disabled:t(),size:e.states.tableSize.value,indeterminate:e.states.selection.value.length>0&&!e.states.isAllSelected.value,"onUpdate:modelValue":e.toggleAllSelection,modelValue:e.states.isAllSelected.value})},renderCell({row:e,column:t,store:r,$index:n}){return we(bs,{disabled:t.selectable?!t.selectable.call(null,e,n):!1,size:r.states.tableSize.value,onChange:()=>{r.commit("rowSelectedChanged",e)},onClick:i=>i.stopPropagation(),modelValue:r.isSelected(e)})},sortable:!1,resizable:!1},index:{renderHeader({column:e}){return e.label||"#"},renderCell({column:e,$index:t}){let r=t+1;const n=e.index;return typeof n=="number"?r=t+n:typeof n=="function"&&(r=n(t)),we("div",{},[r])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({row:e,store:t,expanded:r}){const{ns:n}=t,i=[n.e("expand-icon")];return r&&i.push(n.em("expand-icon","expanded")),we("div",{class:i,onClick:function(o){o.stopPropagation(),t.toggleRowExpansion(e)}},{default:()=>[we(Cn,null,{default:()=>[we(ny)]})]})},sortable:!1,resizable:!1}};function eW({row:e,column:t,$index:r}){var n;const i=t.property,a=i&&uc(e,i).value;return t&&t.formatter?t.formatter(e,t,a,r):((n=a==null?void 0:a.toString)==null?void 0:n.call(a))||""}function tW({row:e,treeNode:t,store:r},n=!1){const{ns:i}=r;if(!t)return n?[we("span",{class:i.e("placeholder")})]:null;const a=[],o=function(s){s.stopPropagation(),!t.loading&&r.loadOrToggle(e)};if(t.indent&&a.push(we("span",{class:i.e("indent"),style:{"padding-left":`${t.indent}px`}})),typeof t.expanded=="boolean"&&!t.noLazyChildren){const s=[i.e("expand-icon"),t.expanded?i.em("expand-icon","expanded"):""];let l=ny;t.loading&&(l=AT),a.push(we("div",{class:s,onClick:o},{default:()=>[we(Cn,{class:{[i.is("loading")]:t.loading}},{default:()=>[we(l)]})]}))}else a.push(we("span",{class:i.e("placeholder")}));return a}function Kb(e,t){return e.reduce((r,n)=>(r[n]=n,r),t)}function rW(e,t){const r=dt();return{registerComplexWatchers:()=>{const a=["fixed"],o={realWidth:"width",realMinWidth:"minWidth"},s=Kb(a,o);Object.keys(s).forEach(l=>{const u=o[l];ze(t,u)&&Me(()=>t[u],f=>{let c=f;u==="width"&&l==="realWidth"&&(c=xy(f)),u==="minWidth"&&l==="realMinWidth"&&(c=OM(f)),r.columnConfig.value[u]=c,r.columnConfig.value[l]=c;const d=u==="fixed";e.value.store.scheduleLayout(d)})})},registerNormalWatchers:()=>{const a=["label","filters","filterMultiple","sortable","index","formatter","className","labelClassName","showOverflowTooltip"],o={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},s=Kb(a,o);Object.keys(s).forEach(l=>{const u=o[l];ze(t,u)&&Me(()=>t[u],f=>{r.columnConfig.value[l]=f})})}}}function nW(e,t,r){const n=dt(),i=H(""),a=H(!1),o=H(),s=H(),l=Ne("table");ts(()=>{o.value=e.align?`is-${e.align}`:null,o.value}),ts(()=>{s.value=e.headerAlign?`is-${e.headerAlign}`:o.value,s.value});const u=$(()=>{let _=n.vnode.vParent||n.parent;for(;_&&!_.tableId&&!_.columnId;)_=_.vnode.vParent||_.parent;return _}),f=$(()=>{const{store:_}=n.parent;if(!_)return!1;const{treeData:b}=_.states,x=b.value;return x&&Object.keys(x).length>0}),c=H(xy(e.width)),d=H(OM(e.minWidth)),h=_=>(c.value&&(_.width=c.value),d.value&&(_.minWidth=d.value),!c.value&&d.value&&(_.width=void 0),_.minWidth||(_.minWidth=80),_.realWidth=Number(_.width===void 0?_.minWidth:_.width),_),v=_=>{const b=_.type,x=J8[b]||{};Object.keys(x).forEach(S=>{const C=x[S];S!=="className"&&C!==void 0&&(_[S]=C)});const w=Q8(b);if(w){const S=`${L(l.namespace)}-${w}`;_.className=_.className?`${_.className} ${S}`:S}return _},p=_=>{Array.isArray(_)?_.forEach(x=>b(x)):b(_);function b(x){var w;((w=x==null?void 0:x.type)==null?void 0:w.name)==="ElTableColumn"&&(x.vParent=n)}};return{columnId:i,realAlign:o,isSubColumn:a,realHeaderAlign:s,columnOrTableParent:u,setColumnWidth:h,setColumnForcedProps:v,setColumnRenders:_=>{e.renderHeader||_.type!=="selection"&&(_.renderHeader=x=>{n.columnConfig.value.label;const w=t.header;return w?w(x):_.label});let b=_.renderCell;return _.type==="expand"?(_.renderCell=x=>we("div",{class:"cell"},[b(x)]),r.value.renderExpanded=x=>t.default?t.default(x):t.default):(b=b||eW,_.renderCell=x=>{let w=null;if(t.default){const E=t.default(x);w=E.some(A=>A.type!==br)?E:b(x)}else w=b(x);const S=f.value&&x.cellIndex===0&&x.column.type!=="selection",C=tW(x,S),T={class:"cell",style:{}};return _.showOverflowTooltip&&(T.class=`${T.class} ${L(l.namespace)}-tooltip`,T.style={width:`${(x.column.realWidth||Number(x.column.width))-1}px`}),p(w),we("div",T,[C,w])}),_},getPropsData:(..._)=>_.reduce((b,x)=>(Array.isArray(x)&&x.forEach(w=>{b[w]=e[w]}),b),{}),getColumnElIndex:(_,b)=>Array.prototype.indexOf.call(_,b)}}var iW={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showOverflowTooltip:[Boolean,Object],fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every(t=>["ascending","descending",null].includes(t))}};let aW=1;var WM=ue({name:"ElTableColumn",components:{ElCheckbox:bs},props:iW,setup(e,{slots:t}){const r=dt(),n=H({}),i=$(()=>{let y=r.parent;for(;y&&!y.tableId;)y=y.parent;return y}),{registerNormalWatchers:a,registerComplexWatchers:o}=rW(i,e),{columnId:s,isSubColumn:l,realHeaderAlign:u,columnOrTableParent:f,setColumnWidth:c,setColumnForcedProps:d,setColumnRenders:h,getPropsData:v,getColumnElIndex:p,realAlign:g}=nW(e,t,i),m=f.value;s.value=`${m.tableId||m.columnId}_column_${aW++}`,Ed(()=>{l.value=i.value!==m;const y=e.type||"default",_=e.sortable===""?!0:e.sortable,b={...Z8[y],id:s.value,type:y,property:e.prop||e.property,align:g,headerAlign:u,showOverflowTooltip:e.showOverflowTooltip,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:_,index:e.index,rawColumnKey:r.vnode.key};let T=v(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement"]);T=o8(b,T),T=l8(h,c,d)(T),n.value=T,a(),o()}),Et(()=>{var y;const _=f.value,b=l.value?_.vnode.el.children:(y=_.refs.hiddenColumns)==null?void 0:y.children,x=()=>p(b||[],r.vnode.el);n.value.getColumnIndex=x,x()>-1&&i.value.store.commit("insertColumn",n.value,l.value?_.columnConfig.value:null)}),tr(()=>{i.value.store.commit("removeColumn",n.value,l.value?m.columnConfig.value:null)}),r.columnId=s.value,r.columnConfig=n},render(){var e,t,r;try{const n=(t=(e=this.$slots).default)==null?void 0:t.call(e,{row:{},column:{},$index:-1}),i=[];if(Array.isArray(n))for(const o of n)((r=o.type)==null?void 0:r.name)==="ElTableColumn"||o.shapeFlag&2?i.push(o):o.type===wt&&Array.isArray(o.children)&&o.children.forEach(s=>{(s==null?void 0:s.patchFlag)!==1024&&!Ue(s==null?void 0:s.children)&&i.push(s)});return we("div",i)}catch{return we("div",[])}}});const oW=Er(K8,{TableColumn:WM}),sW=ia(WM),VM=["success","info","warning","error"],vr=Wa({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:Rt?document.body:void 0}),lW=at({customClass:{type:String,default:vr.customClass},center:{type:Boolean,default:vr.center},dangerouslyUseHTMLString:{type:Boolean,default:vr.dangerouslyUseHTMLString},duration:{type:Number,default:vr.duration},icon:{type:Wi,default:vr.icon},id:{type:String,default:vr.id},message:{type:Ae([String,Object,Function]),default:vr.message},onClose:{type:Ae(Function),required:!1},showClose:{type:Boolean,default:vr.showClose},type:{type:String,values:VM,default:vr.type},offset:{type:Number,default:vr.offset},zIndex:{type:Number,default:vr.zIndex},grouping:{type:Boolean,default:vr.grouping},repeatNum:{type:Number,default:vr.repeatNum}}),uW={destroy:()=>!0},Hn=sC([]),fW=e=>{const t=Hn.findIndex(i=>i.id===e),r=Hn[t];let n;return t>0&&(n=Hn[t-1]),{current:r,prev:n}},cW=e=>{const{prev:t}=fW(e);return t?t.vm.exposed.bottom.value:0},dW=["id"],hW=["innerHTML"],vW=ue({name:"ElMessage"}),pW=ue({...vW,props:lW,emits:uW,setup(e,{expose:t}){const r=e,{Close:n}=d5,i=Ne("message"),a=H(),o=H(!1),s=H(0);let l;const u=$(()=>r.type?r.type==="error"?"danger":r.type:"info"),f=$(()=>{const b=r.type;return{[i.bm("icon",b)]:b&&ab[b]}}),c=$(()=>r.icon||ab[r.type]||""),d=$(()=>cW(r.id)),h=$(()=>r.offset+d.value),v=$(()=>s.value+h.value),p=$(()=>({top:`${h.value}px`,zIndex:r.zIndex}));function g(){r.duration!==0&&({stop:l}=Fp(()=>{y()},r.duration))}function m(){l==null||l()}function y(){o.value=!1}function _({code:b}){b===Lt.esc&&y()}return Et(()=>{g(),o.value=!0}),Me(()=>r.repeatNum,()=>{m(),g()}),$n(document,"keydown",_),ds(a,()=>{s.value=a.value.getBoundingClientRect().height}),t({visible:o,bottom:v,close:y}),(b,x)=>(X(),Ie(Kn,{name:L(i).b("fade"),onBeforeLeave:b.onClose,onAfterLeave:x[0]||(x[0]=w=>b.$emit("destroy")),persisted:""},{default:ee(()=>[sr(le("div",{id:b.id,ref_key:"messageRef",ref:a,class:de([L(i).b(),{[L(i).m(b.type)]:b.type&&!b.icon},L(i).is("center",b.center),L(i).is("closable",b.showClose),b.customClass]),style:At(L(p)),role:"alert",onMouseenter:m,onMouseleave:g},[b.repeatNum>1?(X(),Ie(L(iH),{key:0,value:b.repeatNum,type:L(u),class:de(L(i).e("badge"))},null,8,["value","type","class"])):ct("v-if",!0),L(c)?(X(),Ie(L(Cn),{key:1,class:de([L(i).e("icon"),L(f)])},{default:ee(()=>[(X(),Ie(hi(L(c))))]),_:1},8,["class"])):ct("v-if",!0),Be(b.$slots,"default",{},()=>[b.dangerouslyUseHTMLString?(X(),Se(wt,{key:1},[ct(" Caution here, message could've been compromised, never use user's input as message "),le("p",{class:de(L(i).e("content")),innerHTML:b.message},null,10,hW)],2112)):(X(),Se("p",{key:0,class:de(L(i).e("content"))},Re(b.message),3))]),b.showClose?(X(),Ie(L(Cn),{key:2,class:de(L(i).e("closeBtn")),onClick:Ep(y,["stop"])},{default:ee(()=>[J(L(n))]),_:1},8,["class","onClick"])):ct("v-if",!0)],46,dW),[[oo,o.value]])]),_:3},8,["name","onBeforeLeave"]))}});var gW=Qe(pW,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let mW=1;const GM=e=>{const t=!e||Ue(e)||Qi(e)||Ee(e)?{message:e}:e,r={...vr,...t};if(!r.appendTo)r.appendTo=document.body;else if(Ue(r.appendTo)){let n=document.querySelector(r.appendTo);hs(n)||(n=document.body),r.appendTo=n}return r},yW=e=>{const t=Hn.indexOf(e);if(t===-1)return;Hn.splice(t,1);const{handler:r}=e;r.close()},_W=({appendTo:e,...t},r)=>{const{nextZIndex:n}=yy(),i=`message_${mW++}`,a=t.onClose,o=document.createElement("div"),s={...t,zIndex:n()+t.zIndex,id:i,onClose:()=>{a==null||a(),yW(c)},onDestroy:()=>{b_(null,o)}},l=J(gW,s,Ee(s.message)||Qi(s.message)?{default:Ee(s.message)?s.message:()=>s.message}:null);l.appContext=r||xs._context,b_(l,o),e.appendChild(o.firstElementChild);const u=l.component,c={id:i,vnode:l,vm:u,handler:{close:()=>{u.exposed.visible.value=!1}},props:l.component.props};return c},xs=(e={},t)=>{if(!Rt)return{close:()=>{}};if(_r(Jp.max)&&Hn.length>=Jp.max)return{close:()=>{}};const r=GM(e);if(r.grouping&&Hn.length){const i=Hn.find(({vnode:a})=>{var o;return((o=a.props)==null?void 0:o.message)===r.message});if(i)return i.props.repeatNum+=1,i.props.type=r.type,i.handler}const n=_W(r,t);return Hn.push(n),n.handler};VM.forEach(e=>{xs[e]=(t={},r)=>{const n=GM(t);return xs({...n,type:e},r)}});function bW(e){for(const t of Hn)(!e||e===t.props.type)&&t.handler.close()}xs.closeAll=bW;xs._context=null;const UM=h5(xs,"$message"),wW={id:"app"},xW={class:"grid-content header-color"},SW=le("a",{class:"brand",href:"#"},"frp",-1),CW=le("span",null,"Proxies",-1),TW={id:"content"},MW=le("footer",null,null,-1),AW=ue({__name:"App",setup(e){const t=r=>{r==""&&window.open("https://github.com/fatedier/frp")};return(r,n)=>{const i=IM,a=B6,o=F6,s=N6,l=SM,u=gr("router-view");return X(),Se("div",wW,[le("header",xW,[J(i,null,{default:ee(()=>[SW]),_:1})]),le("section",null,[J(i,null,{default:ee(()=>[J(l,{id:"side-nav",xs:24,md:4},{default:ee(()=>[J(s,{"default-active":"/",mode:"vertical",theme:"light",router:"false",onSelect:t},{default:ee(()=>[J(a,{index:"/"},{default:ee(()=>[kt("Overview")]),_:1}),J(o,{index:"/proxies"},{title:ee(()=>[CW]),default:ee(()=>[J(a,{index:"/proxies/tcp"},{default:ee(()=>[kt("TCP")]),_:1}),J(a,{index:"/proxies/udp"},{default:ee(()=>[kt("UDP")]),_:1}),J(a,{index:"/proxies/http"},{default:ee(()=>[kt("HTTP")]),_:1}),J(a,{index:"/proxies/https"},{default:ee(()=>[kt("HTTPS")]),_:1}),J(a,{index:"/proxies/stcp"},{default:ee(()=>[kt("STCP")]),_:1}),J(a,{index:"/proxies/sudp"},{default:ee(()=>[kt("SUDP")]),_:1})]),_:1}),J(a,{index:""},{default:ee(()=>[kt("Help")]),_:1})]),_:1})]),_:1}),J(l,{xs:24,md:20},{default:ee(()=>[le("div",TW,[J(u)])]),_:1})]),_:1})]),MW])}}});/*!
+ */var r8=/["'&<>]/,n8=i8;function i8(e){var t=""+e,r=r8.exec(t);if(!r)return t;var n,i="",a=0,o=0;for(a=r.index;a<t.length;a++){switch(t.charCodeAt(a)){case 34:n="&quot;";break;case 38:n="&amp;";break;case 39:n="&#39;";break;case 60:n="&lt;";break;case 62:n="&gt;";break;default:continue}o!==a&&(i+=t.substring(o,a)),o=a+1,i+=n}return o!==a?i+t.substring(o,a):i}const Vh=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},a8=function(e,t,r,n,i){if(!t&&!n&&(!i||Array.isArray(i)&&!i.length))return e;typeof r=="string"?r=r==="descending"?-1:1:r=r&&r<0?-1:1;const a=n?null:function(s,l){return i?(Array.isArray(i)||(i=[i]),i.map(u=>typeof u=="string"?lu(s,u):u(s,l,e))):(t!=="$key"&&Ke(s)&&"$value"in s&&(s=s.$value),[Ke(s)?lu(s,t):s])},o=function(s,l){if(n)return n(s.value,l.value);for(let u=0,f=s.key.length;u<f;u++){if(s.key[u]<l.key[u])return-1;if(s.key[u]>l.key[u])return 1}return 0};return e.map((s,l)=>({value:s,index:l,key:a?a(s,l):null})).sort((s,l)=>{let u=o(s,l);return u||(u=s.index-l.index),u*+r}).map(s=>s.value)},OM=function(e,t){let r=null;return e.columns.forEach(n=>{n.id===t&&(r=n)}),r},o8=function(e,t){let r=null;for(let n=0;n<e.columns.length;n++){const i=e.columns[n];if(i.columnKey===t){r=i;break}}return r||lo("ElTable",`No column matching with column-key: ${t}`),r},Yb=function(e,t,r){const n=(t.className||"").match(new RegExp(`${r}-table_[^\\s]+`,"gm"));return n?OM(e,n[0]):null},Ut=(e,t)=>{if(!e)throw new Error("Row is required when get row identity");if(typeof t=="string"){if(!t.includes("."))return`${e[t]}`;const r=t.split(".");let n=e;for(const i of r)n=n[i];return`${n}`}else if(typeof t=="function")return t.call(null,e)},Ka=function(e,t){const r={};return(e||[]).forEach((n,i)=>{r[Ut(n,t)]={row:n,index:i}}),r};function s8(e,t){const r={};let n;for(n in e)r[n]=e[n];for(n in t)if(ze(t,n)){const i=t[n];typeof i<"u"&&(r[n]=i)}return r}function xy(e){return e===""||e!==void 0&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function kM(e){return e===""||e!==void 0&&(e=xy(e),Number.isNaN(e)&&(e=80)),e}function l8(e){return typeof e=="number"?e:typeof e=="string"?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function u8(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function Rl(e,t,r){let n=!1;const i=e.indexOf(t),a=i!==-1,o=s=>{s==="add"?e.push(t):e.splice(i,1),n=!0,ye(t.children)&&t.children.forEach(l=>{Rl(e,l,r??!a)})};return gi(r)?r&&!a?o("add"):!r&&a&&o("remove"):o(a?"remove":"add"),n}function f8(e,t,r="children",n="hasChildren"){const i=o=>!(Array.isArray(o)&&o.length);function a(o,s,l){t(o,s,l),s.forEach(u=>{if(u[n]){t(u,null,l+1);return}const f=u[r];i(f)||a(u,f,l+1)})}e.forEach(o=>{if(o[n]){t(o,null,0);return}const s=o[r];i(s)||a(o,s,0)})}let ai;function c8(e,t,r,n){n=xT({enterable:!0,showArrow:!0},n);const{nextZIndex:i}=yy(),a=e==null?void 0:e.dataset.prefix,o=e==null?void 0:e.querySelector(`.${a}-scrollbar__wrap`);function s(){const g=n.effect==="light",m=document.createElement("div");return m.className=[`${a}-popper`,g?"is-light":"is-dark",n.popperClass||""].join(" "),r=n8(r),m.innerHTML=r,m.style.zIndex=String(i()),e==null||e.appendChild(m),m}function l(){const g=document.createElement("div");return g.className=`${a}-popper__arrow`,g}function u(){f&&f.update()}ai==null||ai(),ai=()=>{try{f&&f.destroy(),h&&(e==null||e.removeChild(h)),t.removeEventListener("mouseenter",c),t.removeEventListener("mouseleave",d),o==null||o.removeEventListener("scroll",ai),ai=void 0}catch{}};let f=null,c=u,d=ai;n.enterable&&({onOpen:c,onClose:d}=eM({showAfter:n.showAfter,hideAfter:n.hideAfter,open:u,close:ai}));const h=s();h.onmouseenter=c,h.onmouseleave=d;const v=[];if(n.offset&&v.push({name:"offset",options:{offset:[0,n.offset]}}),n.showArrow){const g=h.appendChild(l());v.push({name:"arrow",options:{element:g,padding:10}})}const p=n.popperOptions||{};return f=QT(t,h,{placement:n.placement||"top",strategy:"fixed",...p,modifiers:p.modifiers?v.concat(p.modifiers):v}),t.addEventListener("mouseenter",c),t.addEventListener("mouseleave",d),o==null||o.addEventListener("scroll",ai),f}function NM(e){return e.children?HF(e.children,NM):[e]}function qb(e,t){return e+t.colSpan}const BM=(e,t,r,n)=>{let i=0,a=e;const o=r.states.columns.value;if(n){const l=NM(n[e]);i=o.slice(0,o.indexOf(l[0])).reduce(qb,0),a=i+l.reduce(qb,0)-1}else i=e;let s;switch(t){case"left":a<r.states.fixedLeafColumnsLength.value&&(s="left");break;case"right":i>=o.length-r.states.rightFixedLeafColumnsLength.value&&(s="right");break;default:a<r.states.fixedLeafColumnsLength.value?s="left":i>=o.length-r.states.rightFixedLeafColumnsLength.value&&(s="right")}return s?{direction:s,start:i,after:a}:{}},Sy=(e,t,r,n,i,a=0)=>{const o=[],{direction:s,start:l,after:u}=BM(t,r,n,i);if(s){const f=s==="left";o.push(`${e}-fixed-column--${s}`),f&&u+a===n.states.fixedLeafColumnsLength.value-1?o.push("is-last-column"):!f&&l-a===n.states.columns.value.length-n.states.rightFixedLeafColumnsLength.value&&o.push("is-first-column")}return o};function jb(e,t){return e+(t.realWidth===null||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const Cy=(e,t,r,n)=>{const{direction:i,start:a=0,after:o=0}=BM(e,t,r,n);if(!i)return;const s={},l=i==="left",u=r.states.columns.value;return l?s.left=u.slice(0,a).reduce(jb,0):s.right=u.slice(o+1).reverse().reduce(jb,0),s},ws=(e,t)=>{e&&(Number.isNaN(e[t])||(e[t]=`${e[t]}px`))};function d8(e){const t=dt(),r=H(!1),n=H([]);return{updateExpandRows:()=>{const l=e.data.value||[],u=e.rowKey.value;if(r.value)n.value=l.slice();else if(u){const f=Ka(n.value,u);n.value=l.reduce((c,d)=>{const h=Ut(d,u);return f[h]&&c.push(d),c},[])}else n.value=[]},toggleRowExpansion:(l,u)=>{Rl(n.value,l,u)&&t.emit("expand-change",l,n.value.slice())},setExpandRowKeys:l=>{t.store.assertRowKey();const u=e.data.value||[],f=e.rowKey.value,c=Ka(u,f);n.value=l.reduce((d,h)=>{const v=c[h];return v&&d.push(v.row),d},[])},isRowExpanded:l=>{const u=e.rowKey.value;return u?!!Ka(n.value,u)[Ut(l,u)]:n.value.includes(l)},states:{expandRows:n,defaultExpandAll:r}}}function h8(e){const t=dt(),r=H(null),n=H(null),i=u=>{t.store.assertRowKey(),r.value=u,o(u)},a=()=>{r.value=null},o=u=>{const{data:f,rowKey:c}=e;let d=null;c.value&&(d=(L(f)||[]).find(h=>Ut(h,c.value)===u)),n.value=d,t.emit("current-change",n.value,null)};return{setCurrentRowKey:i,restoreCurrentRowKey:a,setCurrentRowByKey:o,updateCurrentRow:u=>{const f=n.value;if(u&&u!==f){n.value=u,t.emit("current-change",n.value,f);return}!u&&f&&(n.value=null,t.emit("current-change",null,f))},updateCurrentRowData:()=>{const u=e.rowKey.value,f=e.data.value||[],c=n.value;if(!f.includes(c)&&c){if(u){const d=Ut(c,u);o(d)}else n.value=null;n.value===null&&t.emit("current-change",null,c)}else r.value&&(o(r.value),a())},states:{_currentRowKey:r,currentRow:n}}}function v8(e){const t=H([]),r=H({}),n=H(16),i=H(!1),a=H({}),o=H("hasChildren"),s=H("children"),l=dt(),u=$(()=>{if(!e.rowKey.value)return{};const m=e.data.value||[];return c(m)}),f=$(()=>{const m=e.rowKey.value,y=Object.keys(a.value),_={};return y.length&&y.forEach(b=>{if(a.value[b].length){const x={children:[]};a.value[b].forEach(w=>{const S=Ut(w,m);x.children.push(S),w[o.value]&&!_[S]&&(_[S]={children:[]})}),_[b]=x}}),_}),c=m=>{const y=e.rowKey.value,_={};return f8(m,(b,x,w)=>{const S=Ut(b,y);Array.isArray(x)?_[S]={children:x.map(C=>Ut(C,y)),level:w}:i.value&&(_[S]={children:[],lazy:!0,level:w})},s.value,o.value),_},d=(m=!1,y=(_=>(_=l.store)==null?void 0:_.states.defaultExpandAll.value)())=>{var _;const b=u.value,x=f.value,w=Object.keys(b),S={};if(w.length){const C=L(r),T=[],E=(M,D)=>{if(m)return t.value?y||t.value.includes(D):!!(y||M!=null&&M.expanded);{const O=y||t.value&&t.value.includes(D);return!!(M!=null&&M.expanded||O)}};w.forEach(M=>{const D=C[M],O={...b[M]};if(O.expanded=E(D,M),O.lazy){const{loaded:k=!1,loading:F=!1}=D||{};O.loaded=!!k,O.loading=!!F,T.push(M)}S[M]=O});const A=Object.keys(x);i.value&&A.length&&T.length&&A.forEach(M=>{const D=C[M],O=x[M].children;if(T.includes(M)){if(S[M].children.length!==0)throw new Error("[ElTable]children must be an empty array.");S[M].children=O}else{const{loaded:k=!1,loading:F=!1}=D||{};S[M]={lazy:!0,loaded:!!k,loading:!!F,expanded:E(D,M),children:O,level:""}}})}r.value=S,(_=l.store)==null||_.updateTableScrollY()};Ee(()=>t.value,()=>{d(!0)}),Ee(()=>u.value,()=>{d()}),Ee(()=>f.value,()=>{d()});const h=m=>{t.value=m,d()},v=(m,y)=>{l.store.assertRowKey();const _=e.rowKey.value,b=Ut(m,_),x=b&&r.value[b];if(b&&x&&"expanded"in x){const w=x.expanded;y=typeof y>"u"?!x.expanded:y,r.value[b].expanded=y,w!==y&&l.emit("expand-change",m,y),l.store.updateTableScrollY()}},p=m=>{l.store.assertRowKey();const y=e.rowKey.value,_=Ut(m,y),b=r.value[_];i.value&&b&&"loaded"in b&&!b.loaded?g(m,_,b):v(m,void 0)},g=(m,y,_)=>{const{load:b}=l.props;b&&!r.value[y].loaded&&(r.value[y].loading=!0,b(m,_,x=>{if(!Array.isArray(x))throw new TypeError("[ElTable] data must be an array");r.value[y].loading=!1,r.value[y].loaded=!0,r.value[y].expanded=!0,x.length&&(a.value[y]=x),l.emit("expand-change",m,!0)}))};return{loadData:g,loadOrToggle:p,toggleTreeExpansion:v,updateTreeExpandKeys:h,updateTreeData:d,normalize:c,states:{expandRowKeys:t,treeData:r,indent:n,lazy:i,lazyTreeNodeMap:a,lazyColumnIdentifier:o,childrenColumnName:s}}}const p8=(e,t)=>{const r=t.sortingColumn;return!r||typeof r.sortable=="string"?e:a8(e,t.sortProp,t.sortOrder,r.sortMethod,r.sortBy)},yc=e=>{const t=[];return e.forEach(r=>{r.children?t.push.apply(t,yc(r.children)):t.push(r)}),t};function g8(){var e;const t=dt(),{size:r}=Cd((e=t.proxy)==null?void 0:e.$props),n=H(null),i=H([]),a=H([]),o=H(!1),s=H([]),l=H([]),u=H([]),f=H([]),c=H([]),d=H([]),h=H([]),v=H([]),p=H(0),g=H(0),m=H(0),y=H(!1),_=H([]),b=H(!1),x=H(!1),w=H(null),S=H({}),C=H(null),T=H(null),E=H(null),A=H(null),M=H(null);Ee(i,()=>t.state&&F(!1),{deep:!0});const D=()=>{if(!n.value)throw new Error("[ElTable] prop row-key is required")},O=fe=>{var Ce;(Ce=fe.children)==null||Ce.forEach($e=>{$e.fixed=fe.fixed,O($e)})},k=()=>{s.value.forEach(Xe=>{O(Xe)}),f.value=s.value.filter(Xe=>Xe.fixed===!0||Xe.fixed==="left"),c.value=s.value.filter(Xe=>Xe.fixed==="right"),f.value.length>0&&s.value[0]&&s.value[0].type==="selection"&&!s.value[0].fixed&&(s.value[0].fixed=!0,f.value.unshift(s.value[0]));const fe=s.value.filter(Xe=>!Xe.fixed);l.value=[].concat(f.value).concat(fe).concat(c.value);const Ce=yc(fe),$e=yc(f.value),He=yc(c.value);p.value=Ce.length,g.value=$e.length,m.value=He.length,u.value=[].concat($e).concat(Ce).concat(He),o.value=f.value.length>0||c.value.length>0},F=(fe,Ce=!1)=>{fe&&k(),Ce?t.state.doLayout():t.state.debouncedUpdateLayout()},j=fe=>_.value.includes(fe),B=()=>{y.value=!1,_.value.length&&(_.value=[],t.emit("selection-change",[]))},N=()=>{let fe;if(n.value){fe=[];const Ce=Ka(_.value,n.value),$e=Ka(i.value,n.value);for(const He in Ce)ze(Ce,He)&&!$e[He]&&fe.push(Ce[He].row)}else fe=_.value.filter(Ce=>!i.value.includes(Ce));if(fe.length){const Ce=_.value.filter($e=>!fe.includes($e));_.value=Ce,t.emit("selection-change",Ce.slice())}},U=()=>(_.value||[]).slice(),re=(fe,Ce=void 0,$e=!0)=>{if(Rl(_.value,fe,Ce)){const Xe=(_.value||[]).slice();$e&&t.emit("select",Xe,fe),t.emit("selection-change",Xe)}},ae=()=>{var fe,Ce;const $e=x.value?!y.value:!(y.value||_.value.length);y.value=$e;let He=!1,Xe=0;const Ot=(Ce=(fe=t==null?void 0:t.store)==null?void 0:fe.states)==null?void 0:Ce.rowKey.value;i.value.forEach((ht,Wt)=>{const Hr=Wt+Xe;w.value?w.value.call(null,ht,Hr)&&Rl(_.value,ht,$e)&&(He=!0):Rl(_.value,ht,$e)&&(He=!0),Xe+=V(Ut(ht,Ot))}),He&&t.emit("selection-change",_.value?_.value.slice():[]),t.emit("select-all",_.value)},me=()=>{const fe=Ka(_.value,n.value);i.value.forEach(Ce=>{const $e=Ut(Ce,n.value),He=fe[$e];He&&(_.value[He.index]=Ce)})},Me=()=>{var fe,Ce,$e;if(((fe=i.value)==null?void 0:fe.length)===0){y.value=!1;return}let He;n.value&&(He=Ka(_.value,n.value));const Xe=function(Hr){return He?!!He[Ut(Hr,n.value)]:_.value.includes(Hr)};let Ot=!0,ht=0,Wt=0;for(let Hr=0,xL=(i.value||[]).length;Hr<xL;Hr++){const SL=($e=(Ce=t==null?void 0:t.store)==null?void 0:Ce.states)==null?void 0:$e.rowKey.value,CL=Hr+Wt,wh=i.value[Hr],TL=w.value&&w.value.call(null,wh,CL);if(Xe(wh))ht++;else if(!w.value||TL){Ot=!1;break}Wt+=V(Ut(wh,SL))}ht===0&&(Ot=!1),y.value=Ot},V=fe=>{var Ce;if(!t||!t.store)return 0;const{treeData:$e}=t.store.states;let He=0;const Xe=(Ce=$e.value[fe])==null?void 0:Ce.children;return Xe&&(He+=Xe.length,Xe.forEach(Ot=>{He+=V(Ot)})),He},J=(fe,Ce)=>{Array.isArray(fe)||(fe=[fe]);const $e={};return fe.forEach(He=>{S.value[He.id]=Ce,$e[He.columnKey||He.id]=Ce}),$e},W=(fe,Ce,$e)=>{T.value&&T.value!==fe&&(T.value.order=null),T.value=fe,E.value=Ce,A.value=$e},Y=()=>{let fe=L(a);Object.keys(S.value).forEach(Ce=>{const $e=S.value[Ce];if(!$e||$e.length===0)return;const He=OM({columns:u.value},Ce);He&&He.filterMethod&&(fe=fe.filter(Xe=>$e.some(Ot=>He.filterMethod.call(null,Ot,Xe,He))))}),C.value=fe},le=()=>{i.value=p8(C.value,{sortingColumn:T.value,sortProp:E.value,sortOrder:A.value})},he=(fe=void 0)=>{fe&&fe.filter||Y(),le()},Q=fe=>{const{tableHeaderRef:Ce}=t.refs;if(!Ce)return;const $e=Object.assign({},Ce.filterPanels),He=Object.keys($e);if(He.length)if(typeof fe=="string"&&(fe=[fe]),Array.isArray(fe)){const Xe=fe.map(Ot=>o8({columns:u.value},Ot));He.forEach(Ot=>{const ht=Xe.find(Wt=>Wt.id===Ot);ht&&(ht.filteredValue=[])}),t.store.commit("filterChange",{column:Xe,values:[],silent:!0,multi:!0})}else He.forEach(Xe=>{const Ot=u.value.find(ht=>ht.id===Xe);Ot&&(Ot.filteredValue=[])}),S.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},P=()=>{T.value&&(W(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:I,toggleRowExpansion:z,updateExpandRows:G,states:q,isRowExpanded:ne}=d8({data:i,rowKey:n}),{updateTreeExpandKeys:ce,toggleTreeExpansion:te,updateTreeData:ie,loadOrToggle:X,states:_e}=v8({data:i,rowKey:n}),{updateCurrentRowData:ve,updateCurrentRow:be,setCurrentRowKey:Ie,states:Fe}=h8({data:i,rowKey:n});return{assertRowKey:D,updateColumns:k,scheduleLayout:F,isSelected:j,clearSelection:B,cleanSelection:N,getSelectionRows:U,toggleRowSelection:re,_toggleAllSelection:ae,toggleAllSelection:null,updateSelectionByRowKey:me,updateAllSelected:Me,updateFilters:J,updateCurrentRow:be,updateSort:W,execFilter:Y,execSort:le,execQuery:he,clearFilter:Q,clearSort:P,toggleRowExpansion:z,setExpandRowKeysAdapter:fe=>{I(fe),ce(fe)},setCurrentRowKey:Ie,toggleRowExpansionAdapter:(fe,Ce)=>{u.value.some(({type:He})=>He==="expand")?z(fe,Ce):te(fe,Ce)},isRowExpanded:ne,updateExpandRows:G,updateCurrentRowData:ve,loadOrToggle:X,updateTreeData:ie,states:{tableSize:r,rowKey:n,data:i,_data:a,isComplex:o,_columns:s,originColumns:l,columns:u,fixedColumns:f,rightFixedColumns:c,leafColumns:d,fixedLeafColumns:h,rightFixedLeafColumns:v,leafColumnsLength:p,fixedLeafColumnsLength:g,rightFixedLeafColumnsLength:m,isAllSelected:y,selection:_,reserveSelection:b,selectOnIndeterminate:x,selectable:w,filters:S,filteredData:C,sortingColumn:T,sortProp:E,sortOrder:A,hoverRow:M,...q,..._e,...Fe}}}function ag(e,t){return e.map(r=>{var n;return r.id===t.id?t:((n=r.children)!=null&&n.length&&(r.children=ag(r.children,t)),r)})}function FM(e){e.forEach(t=>{var r,n;t.no=(r=t.getColumnIndex)==null?void 0:r.call(t),(n=t.children)!=null&&n.length&&FM(t.children)}),e.sort((t,r)=>t.no-r.no)}function m8(){const e=dt(),t=g8();return{ns:Ne("table"),...t,mutations:{setData(o,s){const l=L(o._data)!==s;o.data.value=s,o._data.value=s,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),L(o.reserveSelection)?(e.store.assertRowKey(),e.store.updateSelectionByRowKey()):l?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(o,s,l){const u=L(o._columns);let f=[];l?(l&&!l.children&&(l.children=[]),l.children.push(s),f=ag(u,l)):(u.push(s),f=u),FM(f),o._columns.value=f,s.type==="selection"&&(o.selectable.value=s.selectable,o.reserveSelection.value=s.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},removeColumn(o,s,l){const u=L(o._columns)||[];if(l)l.children.splice(l.children.findIndex(f=>f.id===s.id),1),zt(()=>{var f;((f=l.children)==null?void 0:f.length)===0&&delete l.children}),o._columns.value=ag(u,l);else{const f=u.indexOf(s);f>-1&&(u.splice(f,1),o._columns.value=u)}e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(o,s){const{prop:l,order:u,init:f}=s;if(l){const c=L(o.columns).find(d=>d.property===l);c&&(c.order=u,e.store.updateSort(c,l,u),e.store.commit("changeSortCondition",{init:f}))}},changeSortCondition(o,s){const{sortingColumn:l,sortProp:u,sortOrder:f}=o,c=L(l),d=L(u),h=L(f);h===null&&(o.sortingColumn.value=null,o.sortProp.value=null);const v={filter:!0};e.store.execQuery(v),(!s||!(s.silent||s.init))&&e.emit("sort-change",{column:c,prop:d,order:h}),e.store.updateTableScrollY()},filterChange(o,s){const{column:l,values:u,silent:f}=s,c=e.store.updateFilters(l,u);e.store.execQuery(),f||e.emit("filter-change",c),e.store.updateTableScrollY()},toggleAllSelection(){e.store.toggleAllSelection()},rowSelectedChanged(o,s){e.store.toggleRowSelection(s),e.store.updateAllSelected()},setHoverRow(o,s){o.hoverRow.value=s},setCurrentRow(o,s){e.store.updateCurrentRow(s)}},commit:function(o,...s){const l=e.store.mutations;if(l[o])l[o].apply(e,[e.store.states].concat(s));else throw new Error(`Action not found: ${o}`)},updateTableScrollY:function(){zt(()=>e.layout.updateScrollY.apply(e.layout))}}}const Ol={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",data:"data",["treeProps.hasChildren"]:{key:"lazyColumnIdentifier",default:"hasChildren"},["treeProps.children"]:{key:"childrenColumnName",default:"children"}};function y8(e,t){if(!e)throw new Error("Table is required.");const r=m8();return r.toggleAllSelection=zc(r._toggleAllSelection,10),Object.keys(Ol).forEach(n=>{$M(HM(t,n),n,r)}),_8(r,t),r}function _8(e,t){Object.keys(Ol).forEach(r=>{Ee(()=>HM(t,r),n=>{$M(n,r,e)})})}function $M(e,t,r){let n=e,i=Ol[t];typeof Ol[t]=="object"&&(i=i.key,n=n||Ol[t].default),r.states[i].value=n}function HM(e,t){if(t.includes(".")){const r=t.split(".");let n=e;return r.forEach(i=>{n=n[i]}),n}else return e[t]}class b8{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=H(null),this.scrollX=H(!1),this.scrollY=H(!1),this.bodyWidth=H(null),this.fixedWidth=H(null),this.rightFixedWidth=H(null),this.gutterWidth=0;for(const r in t)ze(t,r)&&(St(this[r])?this[r].value=t[r]:this[r]=t[r]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){if(this.height.value===null)return!1;const r=this.table.refs.scrollBarRef;if(this.table.vnode.el&&r){let n=!0;const i=this.scrollY.value;return n=r.wrapRef.scrollHeight>r.wrapRef.clientHeight,this.scrollY.value=n,i!==n}return!1}setHeight(t,r="height"){if(!Rt)return;const n=this.table.vnode.el;if(t=l8(t),this.height.value=Number(t),!n&&(t||t===0))return zt(()=>this.setHeight(t,r));typeof t=="number"?(n.style[r]=`${t}px`,this.updateElsHeight()):typeof t=="string"&&(n.style[r]=t,this.updateElsHeight())}setMaxHeight(t){this.setHeight(t,"max-height")}getFlattenColumns(){const t=[];return this.table.store.states.columns.value.forEach(n=>{n.isColumnGroup?t.push.apply(t,n.columns):t.push(n)}),t}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(t){if(!t)return!0;let r=t;for(;r.tagName!=="DIV";){if(getComputedStyle(r).display==="none")return!0;r=r.parentElement}return!1}updateColumnsWidth(){if(!Rt)return;const t=this.fit,r=this.table.vnode.el.clientWidth;let n=0;const i=this.getFlattenColumns(),a=i.filter(l=>typeof l.width!="number");if(i.forEach(l=>{typeof l.width=="number"&&l.realWidth&&(l.realWidth=null)}),a.length>0&&t){if(i.forEach(l=>{n+=Number(l.width||l.minWidth||80)}),n<=r){this.scrollX.value=!1;const l=r-n;if(a.length===1)a[0].realWidth=Number(a[0].minWidth||80)+l;else{const u=a.reduce((d,h)=>d+Number(h.minWidth||80),0),f=l/u;let c=0;a.forEach((d,h)=>{if(h===0)return;const v=Math.floor(Number(d.minWidth||80)*f);c+=v,d.realWidth=Number(d.minWidth||80)+v}),a[0].realWidth=Number(a[0].minWidth||80)+l-c}}else this.scrollX.value=!0,a.forEach(l=>{l.realWidth=Number(l.minWidth)});this.bodyWidth.value=Math.max(n,r),this.table.state.resizeState.value.width=this.bodyWidth.value}else i.forEach(l=>{!l.width&&!l.minWidth?l.realWidth=80:l.realWidth=Number(l.width||l.minWidth),n+=l.realWidth}),this.scrollX.value=n>r,this.bodyWidth.value=n;const o=this.store.states.fixedColumns.value;if(o.length>0){let l=0;o.forEach(u=>{l+=Number(u.realWidth||u.width)}),this.fixedWidth.value=l}const s=this.store.states.rightFixedColumns.value;if(s.length>0){let l=0;s.forEach(u=>{l+=Number(u.realWidth||u.width)}),this.rightFixedWidth.value=l}this.notifyObservers("columns")}addObserver(t){this.observers.push(t)}removeObserver(t){const r=this.observers.indexOf(t);r!==-1&&this.observers.splice(r,1)}notifyObservers(t){this.observers.forEach(n=>{var i,a;switch(t){case"columns":(i=n.state)==null||i.onColumnsChange(this);break;case"scrollable":(a=n.state)==null||a.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${t}.`)}})}}const{CheckboxGroup:w8}=bs,x8=ue({name:"ElTableFilterPanel",components:{ElCheckbox:bs,ElCheckboxGroup:w8,ElScrollbar:rM,ElTooltip:Hu,ElIcon:Cn,ArrowDown:TT,ArrowUp:P$},directives:{ClickOutside:IH},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup(e){const t=dt(),{t:r}=HT(),n=Ne("table-filter"),i=t==null?void 0:t.parent;i.filterPanels.value[e.column.id]||(i.filterPanels.value[e.column.id]=t);const a=H(!1),o=H(null),s=$(()=>e.column&&e.column.filters),l=$({get:()=>{var b;return(((b=e.column)==null?void 0:b.filteredValue)||[])[0]},set:b=>{u.value&&(typeof b<"u"&&b!==null?u.value.splice(0,1,b):u.value.splice(0,1))}}),u=$({get(){return e.column?e.column.filteredValue||[]:[]},set(b){e.column&&e.upDataColumn("filteredValue",b)}}),f=$(()=>e.column?e.column.filterMultiple:!0),c=b=>b.value===l.value,d=()=>{a.value=!1},h=b=>{b.stopPropagation(),a.value=!a.value},v=()=>{a.value=!1},p=()=>{y(u.value),d()},g=()=>{u.value=[],y(u.value),d()},m=b=>{l.value=b,y(typeof b<"u"&&b!==null?u.value:[]),d()},y=b=>{e.store.commit("filterChange",{column:e.column,values:b}),e.store.updateAllSelected()};Ee(a,b=>{e.column&&e.upDataColumn("filterOpened",b)},{immediate:!0});const _=$(()=>{var b,x;return(x=(b=o.value)==null?void 0:b.popperRef)==null?void 0:x.contentRef});return{tooltipVisible:a,multiple:f,filteredValue:u,filterValue:l,filters:s,handleConfirm:p,handleReset:g,handleSelect:m,isActive:c,t:r,ns:n,showFilterPanel:h,hideFilterPanel:v,popperPaneRef:_,tooltip:o}}}),S8={key:0},C8=["disabled"],T8=["label","onClick"];function M8(e,t,r,n,i,a){const o=gr("el-checkbox"),s=gr("el-checkbox-group"),l=gr("el-scrollbar"),u=gr("arrow-up"),f=gr("arrow-down"),c=gr("el-icon"),d=gr("el-tooltip"),h=Rm("click-outside");return K(),xe(d,{ref:"tooltip",visible:e.tooltipVisible,offset:0,placement:e.placement,"show-arrow":!1,"stop-popper-mouse-event":!1,teleported:"",effect:"light",pure:"","popper-class":e.ns.b(),persistent:""},{content:Z(()=>[e.multiple?(K(),Se("div",S8,[se("div",{class:de(e.ns.e("content"))},[ee(l,{"wrap-class":e.ns.e("wrap")},{default:Z(()=>[ee(s,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=v=>e.filteredValue=v),class:de(e.ns.e("checkbox-group"))},{default:Z(()=>[(K(!0),Se(yt,null,K0(e.filters,v=>(K(),xe(o,{key:v.value,label:v.value},{default:Z(()=>[kt(Ae(v.text),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),se("div",{class:de(e.ns.e("bottom"))},[se("button",{class:de({[e.ns.is("disabled")]:e.filteredValue.length===0}),disabled:e.filteredValue.length===0,type:"button",onClick:t[1]||(t[1]=(...v)=>e.handleConfirm&&e.handleConfirm(...v))},Ae(e.t("el.table.confirmFilter")),11,C8),se("button",{type:"button",onClick:t[2]||(t[2]=(...v)=>e.handleReset&&e.handleReset(...v))},Ae(e.t("el.table.resetFilter")),1)],2)])):(K(),Se("ul",{key:1,class:de(e.ns.e("list"))},[se("li",{class:de([e.ns.e("list-item"),{[e.ns.is("active")]:e.filterValue===void 0||e.filterValue===null}]),onClick:t[3]||(t[3]=v=>e.handleSelect(null))},Ae(e.t("el.table.clearFilter")),3),(K(!0),Se(yt,null,K0(e.filters,v=>(K(),Se("li",{key:v.value,class:de([e.ns.e("list-item"),e.ns.is("active",e.isActive(v))]),label:v.value,onClick:p=>e.handleSelect(v.value)},Ae(v.text),11,T8))),128))],2))]),default:Z(()=>[qt((K(),Se("span",{class:de([`${e.ns.namespace.value}-table__column-filter-trigger`,`${e.ns.namespace.value}-none-outline`]),onClick:t[4]||(t[4]=(...v)=>e.showFilterPanel&&e.showFilterPanel(...v))},[ee(c,null,{default:Z(()=>[e.column.filterOpened?(K(),xe(u,{key:0})):(K(),xe(f,{key:1}))]),_:1})],2)),[[h,e.hideFilterPanel,e.popperPaneRef]])]),_:1},8,["visible","placement","popper-class"])}var A8=Je(x8,[["render",M8],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/filter-panel.vue"]]);function zM(e){const t=dt();Pd(()=>{r.value.addObserver(t)}),Et(()=>{n(r.value),i(r.value)}),Ld(()=>{n(r.value),i(r.value)}),Iu(()=>{r.value.removeObserver(t)});const r=$(()=>{const a=e.layout;if(!a)throw new Error("Can not find table layout.");return a}),n=a=>{var o;const s=((o=e.vnode.el)==null?void 0:o.querySelectorAll("colgroup > col"))||[];if(!s.length)return;const l=a.getFlattenColumns(),u={};l.forEach(f=>{u[f.id]=f});for(let f=0,c=s.length;f<c;f++){const d=s[f],h=d.getAttribute("name"),v=u[h];v&&d.setAttribute("width",v.realWidth||v.width)}},i=a=>{var o,s;const l=((o=e.vnode.el)==null?void 0:o.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let f=0,c=l.length;f<c;f++)l[f].setAttribute("width",a.scrollY.value?a.gutterWidth:"0");const u=((s=e.vnode.el)==null?void 0:s.querySelectorAll("th.gutter"))||[];for(let f=0,c=u.length;f<c;f++){const d=u[f];d.style.width=a.scrollY.value?`${a.gutterWidth}px`:"0",d.style.display=a.scrollY.value?"":"none"}};return{tableLayout:r.value,onColumnsChange:n,onScrollableChange:i}}const Zn=Symbol("ElTable");function E8(e,t){const r=dt(),n=Re(Zn),i=p=>{p.stopPropagation()},a=(p,g)=>{!g.filters&&g.sortable?v(p,g,!1):g.filterable&&!g.sortable&&i(p),n==null||n.emit("header-click",g,p)},o=(p,g)=>{n==null||n.emit("header-contextmenu",g,p)},s=H(null),l=H(!1),u=H({}),f=(p,g)=>{if(Rt&&!(g.children&&g.children.length>0)&&s.value&&e.border){l.value=!0;const m=n;t("set-drag-visible",!0);const _=(m==null?void 0:m.vnode.el).getBoundingClientRect().left,b=r.vnode.el.querySelector(`th.${g.id}`),x=b.getBoundingClientRect(),w=x.left-_+30;Uo(b,"noclick"),u.value={startMouseLeft:p.clientX,startLeft:x.right-_,startColumnLeft:x.left-_,tableLeft:_};const S=m==null?void 0:m.refs.resizeProxy;S.style.left=`${u.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const C=E=>{const A=E.clientX-u.value.startMouseLeft,M=u.value.startLeft+A;S.style.left=`${Math.max(w,M)}px`},T=()=>{if(l.value){const{startColumnLeft:E,startLeft:A}=u.value,D=Number.parseInt(S.style.left,10)-E;g.width=g.realWidth=D,m==null||m.emit("header-dragend",g.width,A-E,g,p),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",l.value=!1,s.value=null,u.value={},t("set-drag-visible",!1)}document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",T),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{rs(b,"noclick")},0)};document.addEventListener("mousemove",C),document.addEventListener("mouseup",T)}},c=(p,g)=>{var m;if(g.children&&g.children.length>0)return;const y=(m=p.target)==null?void 0:m.closest("th");if(!(!g||!g.resizable)&&!l.value&&e.border){const _=y.getBoundingClientRect(),b=document.body.style;_.width>12&&_.right-p.pageX<8?(b.cursor="col-resize",Pl(y,"is-sortable")&&(y.style.cursor="col-resize"),s.value=g):l.value||(b.cursor="",Pl(y,"is-sortable")&&(y.style.cursor="pointer"),s.value=null)}},d=()=>{Rt&&(document.body.style.cursor="")},h=({order:p,sortOrders:g})=>{if(p==="")return g[0];const m=g.indexOf(p||null);return g[m>g.length-2?0:m+1]},v=(p,g,m)=>{var y;p.stopPropagation();const _=g.order===m?null:m||h(g),b=(y=p.target)==null?void 0:y.closest("th");if(b&&Pl(b,"noclick")){rs(b,"noclick");return}if(!g.sortable)return;const x=e.store.states;let w=x.sortProp.value,S;const C=x.sortingColumn.value;(C!==g||C===g&&C.order===null)&&(C&&(C.order=null),x.sortingColumn.value=g,w=g.property),_?S=g.order=_:S=g.order=null,x.sortProp.value=w,x.sortOrder.value=S,n==null||n.store.commit("changeSortCondition")};return{handleHeaderClick:a,handleHeaderContextMenu:o,handleMouseDown:f,handleMouseMove:c,handleMouseOut:d,handleSortClick:v,handleFilterClick:i}}function P8(e){const t=Re(Zn),r=Ne("table");return{getHeaderRowStyle:s=>{const l=t==null?void 0:t.props.headerRowStyle;return typeof l=="function"?l.call(null,{rowIndex:s}):l},getHeaderRowClass:s=>{const l=[],u=t==null?void 0:t.props.headerRowClassName;return typeof u=="string"?l.push(u):typeof u=="function"&&l.push(u.call(null,{rowIndex:s})),l.join(" ")},getHeaderCellStyle:(s,l,u,f)=>{var c;let d=(c=t==null?void 0:t.props.headerCellStyle)!=null?c:{};typeof d=="function"&&(d=d.call(null,{rowIndex:s,columnIndex:l,row:u,column:f}));const h=Cy(l,f.fixed,e.store,u);return ws(h,"left"),ws(h,"right"),Object.assign({},d,h)},getHeaderCellClass:(s,l,u,f)=>{const c=Sy(r.b(),l,f.fixed,e.store,u),d=[f.id,f.order,f.headerAlign,f.className,f.labelClassName,...c];f.children||d.push("is-leaf"),f.sortable&&d.push("is-sortable");const h=t==null?void 0:t.props.headerCellClassName;return typeof h=="string"?d.push(h):typeof h=="function"&&d.push(h.call(null,{rowIndex:s,columnIndex:l,row:u,column:f})),d.push(r.e("cell")),d.filter(v=>Boolean(v)).join(" ")}}}const WM=e=>{const t=[];return e.forEach(r=>{r.children?(t.push(r),t.push.apply(t,WM(r.children))):t.push(r)}),t},L8=e=>{let t=1;const r=(a,o)=>{if(o&&(a.level=o.level+1,t<a.level&&(t=a.level)),a.children){let s=0;a.children.forEach(l=>{r(l,a),s+=l.colSpan}),a.colSpan=s}else a.colSpan=1};e.forEach(a=>{a.level=1,r(a,void 0)});const n=[];for(let a=0;a<t;a++)n.push([]);return WM(e).forEach(a=>{a.children?(a.rowSpan=1,a.children.forEach(o=>o.isSubColumn=!0)):a.rowSpan=t-a.level+1,n[a.level-1].push(a)}),n};function D8(e){const t=Re(Zn),r=$(()=>L8(e.store.states.originColumns.value));return{isGroup:$(()=>{const a=r.value.length>1;return a&&t&&(t.state.isGroup.value=!0),a}),toggleAllSelection:a=>{a.stopPropagation(),t==null||t.store.commit("toggleAllSelection")},columnRows:r}}var I8=ue({name:"ElTableHeader",components:{ElCheckbox:bs},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e,{emit:t}){const r=dt(),n=Re(Zn),i=Ne("table"),a=H({}),{onColumnsChange:o,onScrollableChange:s}=zM(n);Et(async()=>{await zt(),await zt();const{prop:w,order:S}=e.defaultSort;n==null||n.store.commit("sort",{prop:w,order:S,init:!0})});const{handleHeaderClick:l,handleHeaderContextMenu:u,handleMouseDown:f,handleMouseMove:c,handleMouseOut:d,handleSortClick:h,handleFilterClick:v}=E8(e,t),{getHeaderRowStyle:p,getHeaderRowClass:g,getHeaderCellStyle:m,getHeaderCellClass:y}=P8(e),{isGroup:_,toggleAllSelection:b,columnRows:x}=D8(e);return r.state={onColumnsChange:o,onScrollableChange:s},r.filterPanels=a,{ns:i,filterPanels:a,onColumnsChange:o,onScrollableChange:s,columnRows:x,getHeaderRowClass:g,getHeaderRowStyle:p,getHeaderCellClass:y,getHeaderCellStyle:m,handleHeaderClick:l,handleHeaderContextMenu:u,handleMouseDown:f,handleMouseMove:c,handleMouseOut:d,handleSortClick:h,handleFilterClick:v,isGroup:_,toggleAllSelection:b}},render(){const{ns:e,isGroup:t,columnRows:r,getHeaderCellStyle:n,getHeaderCellClass:i,getHeaderRowClass:a,getHeaderRowStyle:o,handleHeaderClick:s,handleHeaderContextMenu:l,handleMouseDown:u,handleMouseMove:f,handleSortClick:c,handleMouseOut:d,store:h,$parent:v}=this;let p=1;return we("thead",{class:{[e.is("group")]:t}},r.map((g,m)=>we("tr",{class:a(m),key:m,style:o(m)},g.map((y,_)=>(y.rowSpan>p&&(p=y.rowSpan),we("th",{class:i(m,_,g,y),colspan:y.colSpan,key:`${y.id}-thead`,rowspan:y.rowSpan,style:n(m,_,g,y),onClick:b=>s(b,y),onContextmenu:b=>l(b,y),onMousedown:b=>u(b,y),onMousemove:b=>f(b,y),onMouseout:d},[we("div",{class:["cell",y.filteredValue&&y.filteredValue.length>0?"highlight":""]},[y.renderHeader?y.renderHeader({column:y,$index:_,store:h,_self:v}):y.label,y.sortable&&we("span",{onClick:b=>c(b,y),class:"caret-wrapper"},[we("i",{onClick:b=>c(b,y,"ascending"),class:"sort-caret ascending"}),we("i",{onClick:b=>c(b,y,"descending"),class:"sort-caret descending"})]),y.filterable&&we(A8,{store:h,placement:y.filterPlacement||"bottom-start",column:y,upDataColumn:(b,x)=>{y[b]=x}})])]))))))}});function R8(e){const t=Re(Zn),r=H(""),n=H(we("div")),i=(d,h,v)=>{var p;const g=t,m=Vh(d);let y;const _=(p=g==null?void 0:g.vnode.el)==null?void 0:p.dataset.prefix;m&&(y=Yb({columns:e.store.states.columns.value},m,_),y&&(g==null||g.emit(`cell-${v}`,h,y,m,d))),g==null||g.emit(`row-${v}`,h,y,d)},a=(d,h)=>{i(d,h,"dblclick")},o=(d,h)=>{e.store.commit("setCurrentRow",h),i(d,h,"click")},s=(d,h)=>{i(d,h,"contextmenu")},l=zc(d=>{e.store.commit("setHoverRow",d)},30),u=zc(()=>{e.store.commit("setHoverRow",null)},30);return{handleDoubleClick:a,handleClick:o,handleContextMenu:s,handleMouseEnter:l,handleMouseLeave:u,handleCellMouseEnter:(d,h,v)=>{var p;const g=t,m=Vh(d),y=(p=g==null?void 0:g.vnode.el)==null?void 0:p.dataset.prefix;if(m){const S=Yb({columns:e.store.states.columns.value},m,y),C=g.hoverState={cell:m,column:S,row:h};g==null||g.emit("cell-mouse-enter",C.row,C.column,C.cell,d)}if(!v)return;const _=d.target.querySelector(".cell");if(!(Pl(_,`${y}-tooltip`)&&_.childNodes.length))return;const b=document.createRange();b.setStart(_,0),b.setEnd(_,_.childNodes.length);const x=Math.round(b.getBoundingClientRect().width),w=(Number.parseInt(ib(_,"paddingLeft"),10)||0)+(Number.parseInt(ib(_,"paddingRight"),10)||0);(x+w>_.offsetWidth||_.scrollWidth>_.offsetWidth)&&c8(t==null?void 0:t.refs.tableWrapper,m,m.innerText||m.textContent,v)},handleCellMouseLeave:d=>{if(!Vh(d))return;const v=t==null?void 0:t.hoverState;t==null||t.emit("cell-mouse-leave",v==null?void 0:v.row,v==null?void 0:v.column,v==null?void 0:v.cell,d)},tooltipContent:r,tooltipTrigger:n}}function O8(e){const t=Re(Zn),r=Ne("table");return{getRowStyle:(u,f)=>{const c=t==null?void 0:t.props.rowStyle;return typeof c=="function"?c.call(null,{row:u,rowIndex:f}):c||null},getRowClass:(u,f)=>{const c=[r.e("row")];t!=null&&t.props.highlightCurrentRow&&u===e.store.states.currentRow.value&&c.push("current-row"),e.stripe&&f%2===1&&c.push(r.em("row","striped"));const d=t==null?void 0:t.props.rowClassName;return typeof d=="string"?c.push(d):typeof d=="function"&&c.push(d.call(null,{row:u,rowIndex:f})),c},getCellStyle:(u,f,c,d)=>{const h=t==null?void 0:t.props.cellStyle;let v=h??{};typeof h=="function"&&(v=h.call(null,{rowIndex:u,columnIndex:f,row:c,column:d}));const p=Cy(f,e==null?void 0:e.fixed,e.store);return ws(p,"left"),ws(p,"right"),Object.assign({},v,p)},getCellClass:(u,f,c,d,h)=>{const v=Sy(r.b(),f,e==null?void 0:e.fixed,e.store,void 0,h),p=[d.id,d.align,d.className,...v],g=t==null?void 0:t.props.cellClassName;return typeof g=="string"?p.push(g):typeof g=="function"&&p.push(g.call(null,{rowIndex:u,columnIndex:f,row:c,column:d})),p.push(r.e("cell")),p.filter(m=>Boolean(m)).join(" ")},getSpan:(u,f,c,d)=>{let h=1,v=1;const p=t==null?void 0:t.props.spanMethod;if(typeof p=="function"){const g=p({row:u,column:f,rowIndex:c,columnIndex:d});Array.isArray(g)?(h=g[0],v=g[1]):typeof g=="object"&&(h=g.rowspan,v=g.colspan)}return{rowspan:h,colspan:v}},getColspanRealWidth:(u,f,c)=>{if(f<1)return u[c].realWidth;const d=u.map(({realWidth:h,width:v})=>h||v).slice(c,c+f);return Number(d.reduce((h,v)=>Number(h)+Number(v),-1))}}}function k8(e){const t=Re(Zn),r=Ne("table"),{handleDoubleClick:n,handleClick:i,handleContextMenu:a,handleMouseEnter:o,handleMouseLeave:s,handleCellMouseEnter:l,handleCellMouseLeave:u,tooltipContent:f,tooltipTrigger:c}=R8(e),{getRowStyle:d,getRowClass:h,getCellStyle:v,getCellClass:p,getSpan:g,getColspanRealWidth:m}=O8(e),y=$(()=>e.store.states.columns.value.findIndex(({type:S})=>S==="default")),_=(S,C)=>{const T=t.props.rowKey;return T?Ut(S,T):C},b=(S,C,T,E=!1)=>{const{tooltipEffect:A,tooltipOptions:M,store:D}=e,{indent:O,columns:k}=D.states,F=h(S,C);let j=!0;return T&&(F.push(r.em("row",`level-${T.level}`)),j=T.display),we("tr",{style:[j?null:{display:"none"},d(S,C)],class:F,key:_(S,C),onDblclick:N=>n(N,S),onClick:N=>i(N,S),onContextmenu:N=>a(N,S),onMouseenter:()=>o(C),onMouseleave:s},k.value.map((N,U)=>{const{rowspan:re,colspan:ae}=g(S,N,C,U);if(!re||!ae)return null;const me={...N};me.realWidth=m(k.value,ae,U);const Me={store:e.store,_self:e.context||t,column:me,row:S,$index:C,cellIndex:U,expanded:E};U===y.value&&T&&(Me.treeNode={indent:T.level*O.value,level:T.level},typeof T.expanded=="boolean"&&(Me.treeNode.expanded=T.expanded,"loading"in T&&(Me.treeNode.loading=T.loading),"noLazyChildren"in T&&(Me.treeNode.noLazyChildren=T.noLazyChildren)));const V=`${C},${U}`,J=me.columnKey||me.rawColumnKey||"",W=x(U,N,Me),Y=N.showOverflowTooltip&&xT({effect:A},M,N.showOverflowTooltip);return we("td",{style:v(C,U,S,N),class:p(C,U,S,N,ae-1),key:`${J}${V}`,rowspan:re,colspan:ae,onMouseenter:le=>l(le,S,Y),onMouseleave:u},[W])}))},x=(S,C,T)=>C.renderCell(T);return{wrappedRowRender:(S,C)=>{const T=e.store,{isRowExpanded:E,assertRowKey:A}=T,{treeData:M,lazyTreeNodeMap:D,childrenColumnName:O,rowKey:k}=T.states,F=T.states.columns.value;if(F.some(({type:B})=>B==="expand")){const B=E(S),N=b(S,C,void 0,B),U=t.renderExpanded;return B?U?[[N,we("tr",{key:`expanded-row__${N.key}`},[we("td",{colspan:F.length,class:`${r.e("cell")} ${r.e("expanded-cell")}`},[U({row:S,$index:C,store:T,expanded:B})])])]]:(console.error("[Element Error]renderExpanded is required."),N):[[N]]}else if(Object.keys(M.value).length){A();const B=Ut(S,k.value);let N=M.value[B],U=null;N&&(U={expanded:N.expanded,level:N.level,display:!0},typeof N.lazy=="boolean"&&(typeof N.loaded=="boolean"&&N.loaded&&(U.noLazyChildren=!(N.children&&N.children.length)),U.loading=N.loading));const re=[b(S,C,U)];if(N){let ae=0;const me=(V,J)=>{V&&V.length&&J&&V.forEach(W=>{const Y={display:J.display&&J.expanded,level:J.level+1,expanded:!1,noLazyChildren:!1,loading:!1},le=Ut(W,k.value);if(le==null)throw new Error("For nested data item, row-key is required.");if(N={...M.value[le]},N&&(Y.expanded=N.expanded,N.level=N.level||Y.level,N.display=!!(N.expanded&&Y.display),typeof N.lazy=="boolean"&&(typeof N.loaded=="boolean"&&N.loaded&&(Y.noLazyChildren=!(N.children&&N.children.length)),Y.loading=N.loading)),ae++,re.push(b(W,C+ae,Y)),N){const he=D.value[le]||W[O.value];me(he,N)}})};N.display=!0;const Me=D.value[B]||S[O.value];me(Me,N)}return re}else return b(S,C,void 0)},tooltipContent:f,tooltipTrigger:c}}const N8={store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,tooltipOptions:{type:Object},context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean};var B8=ue({name:"ElTableBody",props:N8,setup(e){const t=dt(),r=Re(Zn),n=Ne("table"),{wrappedRowRender:i,tooltipContent:a,tooltipTrigger:o}=k8(e),{onColumnsChange:s,onScrollableChange:l}=zM(r);return Ee(e.store.states.hoverRow,(u,f)=>{if(!e.store.states.isComplex.value||!Rt)return;let c=window.requestAnimationFrame;c||(c=d=>window.setTimeout(d,16)),c(()=>{const d=t==null?void 0:t.vnode.el,h=Array.from((d==null?void 0:d.children)||[]).filter(g=>g==null?void 0:g.classList.contains(`${n.e("row")}`)),v=h[f],p=h[u];v&&rs(v,"hover-row"),p&&Uo(p,"hover-row")})}),Iu(()=>{var u;(u=ai)==null||u()}),{ns:n,onColumnsChange:s,onScrollableChange:l,wrappedRowRender:i,tooltipContent:a,tooltipTrigger:o}},render(){const{wrappedRowRender:e,store:t}=this,r=t.states.data.value||[];return we("tbody",{},[r.reduce((n,i)=>n.concat(e(i,n.length)),[])])}});function Ty(e){const t=e.tableLayout==="auto";let r=e.columns||[];t&&r.every(i=>i.width===void 0)&&(r=[]);const n=i=>{const a={key:`${e.tableLayout}_${i.id}`,style:{},name:void 0};return t?a.style={width:`${i.width}px`}:a.name=i.id,a};return we("colgroup",{},r.map(i=>we("col",n(i))))}Ty.props=["columns","tableLayout"];function F8(){const e=Re(Zn),t=e==null?void 0:e.store,r=$(()=>t.states.fixedLeafColumnsLength.value),n=$(()=>t.states.rightFixedColumns.value.length),i=$(()=>t.states.columns.value.length),a=$(()=>t.states.fixedColumns.value.length),o=$(()=>t.states.rightFixedColumns.value.length);return{leftFixedLeafCount:r,rightFixedLeafCount:n,columnsCount:i,leftFixedCount:a,rightFixedCount:o,columns:t.states.columns}}function $8(e){const{columns:t}=F8(),r=Ne("table");return{getCellClasses:(a,o)=>{const s=a[o],l=[r.e("cell"),s.id,s.align,s.labelClassName,...Sy(r.b(),o,s.fixed,e.store)];return s.className&&l.push(s.className),s.children||l.push(r.is("leaf")),l},getCellStyles:(a,o)=>{const s=Cy(o,a.fixed,e.store);return ws(s,"left"),ws(s,"right"),s},columns:t}}var H8=ue({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e){const{getCellClasses:t,getCellStyles:r,columns:n}=$8(e);return{ns:Ne("table"),getCellClasses:t,getCellStyles:r,columns:n}},render(){const{columns:e,getCellStyles:t,getCellClasses:r,summaryMethod:n,sumText:i,ns:a}=this,o=this.store.states.data.value;let s=[];return n?s=n({columns:e,data:o}):e.forEach((l,u)=>{if(u===0){s[u]=i;return}const f=o.map(v=>Number(v[l.property])),c=[];let d=!0;f.forEach(v=>{if(!Number.isNaN(+v)){d=!1;const p=`${v}`.split(".")[1];c.push(p?p.length:0)}});const h=Math.max.apply(null,c);d?s[u]="":s[u]=f.reduce((v,p)=>{const g=Number(p);return Number.isNaN(+g)?v:Number.parseFloat((v+p).toFixed(Math.min(h,20)))},0)}),we("table",{class:a.e("footer"),cellspacing:"0",cellpadding:"0",border:"0"},[Ty({columns:e}),we("tbody",[we("tr",{},[...e.map((l,u)=>we("td",{key:u,colspan:l.colSpan,rowspan:l.rowSpan,class:r(e,u),style:t(l,u)},[we("div",{class:["cell",l.labelClassName]},[s[u]])]))])])])}});function z8(e){return{setCurrentRow:f=>{e.commit("setCurrentRow",f)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(f,c)=>{e.toggleRowSelection(f,c,!1),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:f=>{e.clearFilter(f)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(f,c)=>{e.toggleRowExpansionAdapter(f,c)},clearSort:()=>{e.clearSort()},sort:(f,c)=>{e.commit("sort",{prop:f,order:c})}}}function W8(e,t,r,n){const i=H(!1),a=H(null),o=H(!1),s=B=>{o.value=B},l=H({width:null,height:null,headerHeight:null}),u=H(!1),f={display:"inline-block",verticalAlign:"middle"},c=H(),d=H(0),h=H(0),v=H(0),p=H(0);ts(()=>{t.setHeight(e.height)}),ts(()=>{t.setMaxHeight(e.maxHeight)}),Ee(()=>[e.currentRowKey,r.states.rowKey],([B,N])=>{!L(N)||!L(B)||r.setCurrentRowKey(`${B}`)},{immediate:!0}),Ee(()=>e.data,B=>{n.store.commit("setData",B)},{immediate:!0,deep:!0}),ts(()=>{e.expandRowKeys&&r.setExpandRowKeysAdapter(e.expandRowKeys)});const g=()=>{n.store.commit("setHoverRow",null),n.hoverState&&(n.hoverState=null)},m=(B,N)=>{const{pixelX:U,pixelY:re}=N;Math.abs(U)>=Math.abs(re)&&(n.refs.bodyWrapper.scrollLeft+=N.pixelX/5)},y=$(()=>e.height||e.maxHeight||r.states.fixedColumns.value.length>0||r.states.rightFixedColumns.value.length>0),_=$(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),b=()=>{y.value&&t.updateElsHeight(),t.updateColumnsWidth(),requestAnimationFrame(C)};Et(async()=>{await zt(),r.updateColumns(),T(),requestAnimationFrame(b);const B=n.vnode.el,N=n.refs.headerWrapper;e.flexible&&B&&B.parentElement&&(B.parentElement.style.minWidth="0"),l.value={width:c.value=B.offsetWidth,height:B.offsetHeight,headerHeight:e.showHeader&&N?N.offsetHeight:null},r.states.columns.value.forEach(U=>{U.filteredValue&&U.filteredValue.length&&n.store.commit("filterChange",{column:U,values:U.filteredValue,silent:!0})}),n.$ready=!0});const x=(B,N)=>{if(!B)return;const U=Array.from(B.classList).filter(re=>!re.startsWith("is-scrolling-"));U.push(t.scrollX.value?N:"is-scrolling-none"),B.className=U.join(" ")},w=B=>{const{tableWrapper:N}=n.refs;x(N,B)},S=B=>{const{tableWrapper:N}=n.refs;return!!(N&&N.classList.contains(B))},C=function(){if(!n.refs.scrollBarRef)return;if(!t.scrollX.value){const V="is-scrolling-none";S(V)||w(V);return}const B=n.refs.scrollBarRef.wrapRef;if(!B)return;const{scrollLeft:N,offsetWidth:U,scrollWidth:re}=B,{headerWrapper:ae,footerWrapper:me}=n.refs;ae&&(ae.scrollLeft=N),me&&(me.scrollLeft=N);const Me=re-U-1;N>=Me?w("is-scrolling-right"):w(N===0?"is-scrolling-left":"is-scrolling-middle")},T=()=>{n.refs.scrollBarRef&&(n.refs.scrollBarRef.wrapRef&&$n(n.refs.scrollBarRef.wrapRef,"scroll",C,{passive:!0}),e.fit?ds(n.vnode.el,E):$n(window,"resize",E),ds(n.refs.bodyWrapper,()=>{var B,N;E(),(N=(B=n.refs)==null?void 0:B.scrollBarRef)==null||N.update()}))},E=()=>{var B,N,U;const re=n.vnode.el;if(!n.$ready||!re)return;let ae=!1;const{width:me,height:Me,headerHeight:V}=l.value,J=c.value=re.offsetWidth;me!==J&&(ae=!0);const W=re.offsetHeight;(e.height||y.value)&&Me!==W&&(ae=!0);const Y=e.tableLayout==="fixed"?n.refs.headerWrapper:(B=n.refs.tableHeaderRef)==null?void 0:B.$el;e.showHeader&&(Y==null?void 0:Y.offsetHeight)!==V&&(ae=!0),d.value=((N=n.refs.tableWrapper)==null?void 0:N.scrollHeight)||0,v.value=(Y==null?void 0:Y.scrollHeight)||0,p.value=((U=n.refs.footerWrapper)==null?void 0:U.offsetHeight)||0,h.value=d.value-v.value-p.value,ae&&(l.value={width:J,height:W,headerHeight:e.showHeader&&(Y==null?void 0:Y.offsetHeight)||0},b())},A=fo(),M=$(()=>{const{bodyWidth:B,scrollY:N,gutterWidth:U}=t;return B.value?`${B.value-(N.value?U:0)}px`:""}),D=$(()=>e.maxHeight?"fixed":e.tableLayout),O=$(()=>{if(e.data&&e.data.length)return null;let B="100%";e.height&&h.value&&(B=`${h.value}px`);const N=c.value;return{width:N?`${N}px`:"",height:B}}),k=$(()=>e.height?{height:Number.isNaN(Number(e.height))?e.height:`${e.height}px`}:e.maxHeight?{maxHeight:Number.isNaN(Number(e.maxHeight))?e.maxHeight:`${e.maxHeight}px`}:{}),F=$(()=>{if(e.height)return{height:"100%"};if(e.maxHeight){if(Number.isNaN(Number(e.maxHeight)))return{maxHeight:`calc(${e.maxHeight} - ${v.value+p.value}px)`};{const B=e.maxHeight;if(d.value>=Number(B))return{maxHeight:`${d.value-v.value-p.value}px`}}}return{}});return{isHidden:i,renderExpanded:a,setDragVisible:s,isGroup:u,handleMouseLeave:g,handleHeaderFooterMousewheel:m,tableSize:A,emptyBlockStyle:O,handleFixedMousewheel:(B,N)=>{const U=n.refs.bodyWrapper;if(Math.abs(N.spinY)>0){const re=U.scrollTop;N.pixelY<0&&re!==0&&B.preventDefault(),N.pixelY>0&&U.scrollHeight-U.clientHeight>re&&B.preventDefault(),U.scrollTop+=Math.ceil(N.pixelY/5)}else U.scrollLeft+=Math.ceil(N.pixelX/5)},resizeProxyVisible:o,bodyWidth:M,resizeState:l,doLayout:b,tableBodyStyles:_,tableLayout:D,scrollbarViewStyle:f,tableInnerStyle:k,scrollbarStyle:F}}var V8={data:{type:Array,default:()=>[]},size:String,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children"})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:{type:Boolean,default:!1},flexible:Boolean};const G8=()=>{const e=H(),t=(a,o)=>{const s=e.value;s&&s.scrollTo(a,o)},r=(a,o)=>{const s=e.value;s&&_r(o)&&["Top","Left"].includes(a)&&s[`setScroll${a}`](o)};return{scrollBarRef:e,scrollTo:t,setScrollTop:a=>r("Top",a),setScrollLeft:a=>r("Left",a)}};let U8=1;const Y8=ue({name:"ElTable",directives:{Mousewheel:$H},components:{TableHeader:I8,TableBody:B8,TableFooter:H8,ElScrollbar:rM,hColgroup:Ty},props:V8,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change"],setup(e){const{t}=HT(),r=Ne("table"),n=dt();Ct(Zn,n);const i=y8(n,e);n.store=i;const a=new b8({store:n.store,table:n,fit:e.fit,showHeader:e.showHeader});n.layout=a;const o=$(()=>(i.states.data.value||[]).length===0),{setCurrentRow:s,getSelectionRows:l,toggleRowSelection:u,clearSelection:f,clearFilter:c,toggleAllSelection:d,toggleRowExpansion:h,clearSort:v,sort:p}=z8(i),{isHidden:g,renderExpanded:m,setDragVisible:y,isGroup:_,handleMouseLeave:b,handleHeaderFooterMousewheel:x,tableSize:w,emptyBlockStyle:S,handleFixedMousewheel:C,resizeProxyVisible:T,bodyWidth:E,resizeState:A,doLayout:M,tableBodyStyles:D,tableLayout:O,scrollbarViewStyle:k,tableInnerStyle:F,scrollbarStyle:j}=W8(e,a,i,n),{scrollBarRef:B,scrollTo:N,setScrollLeft:U,setScrollTop:re}=G8(),ae=zc(M,50),me=`${r.namespace.value}-table_${U8++}`;n.tableId=me,n.state={isGroup:_,resizeState:A,doLayout:M,debouncedUpdateLayout:ae};const Me=$(()=>e.sumText||t("el.table.sumText")),V=$(()=>e.emptyText||t("el.table.emptyText"));return{ns:r,layout:a,store:i,handleHeaderFooterMousewheel:x,handleMouseLeave:b,tableId:me,tableSize:w,isHidden:g,isEmpty:o,renderExpanded:m,resizeProxyVisible:T,resizeState:A,isGroup:_,bodyWidth:E,tableBodyStyles:D,emptyBlockStyle:S,debouncedUpdateLayout:ae,handleFixedMousewheel:C,setCurrentRow:s,getSelectionRows:l,toggleRowSelection:u,clearSelection:f,clearFilter:c,toggleAllSelection:d,toggleRowExpansion:h,clearSort:v,doLayout:M,sort:p,t,setDragVisible:y,context:n,computedSumText:Me,computedEmptyText:V,tableLayout:O,scrollbarViewStyle:k,tableInnerStyle:F,scrollbarStyle:j,scrollBarRef:B,scrollTo:N,setScrollLeft:U,setScrollTop:re}}}),q8=["data-prefix"],j8={ref:"hiddenColumns",class:"hidden-columns"};function K8(e,t,r,n,i,a){const o=gr("hColgroup"),s=gr("table-header"),l=gr("table-body"),u=gr("el-scrollbar"),f=gr("table-footer"),c=Rm("mousewheel");return K(),Se("div",{ref:"tableWrapper",class:de([{[e.ns.m("fit")]:e.fit,[e.ns.m("striped")]:e.stripe,[e.ns.m("border")]:e.border||e.isGroup,[e.ns.m("hidden")]:e.isHidden,[e.ns.m("group")]:e.isGroup,[e.ns.m("fluid-height")]:e.maxHeight,[e.ns.m("scrollable-x")]:e.layout.scrollX.value,[e.ns.m("scrollable-y")]:e.layout.scrollY.value,[e.ns.m("enable-row-hover")]:!e.store.states.isComplex.value,[e.ns.m("enable-row-transition")]:(e.store.states.data.value||[]).length!==0&&(e.store.states.data.value||[]).length<100,"has-footer":e.showSummary},e.ns.m(e.tableSize),e.className,e.ns.b(),e.ns.m(`layout-${e.tableLayout}`)]),style:At(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[0]||(t[0]=d=>e.handleMouseLeave())},[se("div",{class:de(e.ns.e("inner-wrapper")),style:At(e.tableInnerStyle)},[se("div",j8,[Be(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?qt((K(),Se("div",{key:0,ref:"headerWrapper",class:de(e.ns.e("header-wrapper"))},[se("table",{ref:"tableHeader",class:de(e.ns.e("header")),style:At(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[ee(o,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),ee(s,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])],6)],2)),[[c,e.handleHeaderFooterMousewheel]]):Ye("v-if",!0),se("div",{ref:"bodyWrapper",class:de(e.ns.e("body-wrapper"))},[ee(u,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn},{default:Z(()=>[se("table",{ref:"tableBody",class:de(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:At({width:e.bodyWidth,tableLayout:e.tableLayout})},[ee(o,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(K(),xe(s,{key:0,ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])):Ye("v-if",!0),ee(l,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.tooltipEffect,"tooltip-options":e.tooltipOptions,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"])],6),e.isEmpty?(K(),Se("div",{key:0,ref:"emptyBlock",style:At(e.emptyBlockStyle),class:de(e.ns.e("empty-block"))},[se("span",{class:de(e.ns.e("empty-text"))},[Be(e.$slots,"empty",{},()=>[kt(Ae(e.computedEmptyText),1)])],2)],6)):Ye("v-if",!0),e.$slots.append?(K(),Se("div",{key:1,ref:"appendWrapper",class:de(e.ns.e("append-wrapper"))},[Be(e.$slots,"append")],2)):Ye("v-if",!0)]),_:3},8,["view-style","wrap-style","always"])],2),e.showSummary?qt((K(),Se("div",{key:1,ref:"footerWrapper",class:de(e.ns.e("footer-wrapper"))},[ee(f,{border:e.border,"default-sort":e.defaultSort,store:e.store,style:At(e.tableBodyStyles),"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","style","sum-text","summary-method"])],2)),[[pi,!e.isEmpty],[c,e.handleHeaderFooterMousewheel]]):Ye("v-if",!0),e.border||e.isGroup?(K(),Se("div",{key:2,class:de(e.ns.e("border-left-patch"))},null,2)):Ye("v-if",!0)],6),qt(se("div",{ref:"resizeProxy",class:de(e.ns.e("column-resize-proxy"))},null,2),[[pi,e.resizeProxyVisible]])],46,q8)}var X8=Je(Y8,[["render",K8],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/table.vue"]]);const Z8={selection:"table-column--selection",expand:"table__expand-column"},Q8={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:""},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},J8=e=>Z8[e]||"",eW={selection:{renderHeader({store:e}){function t(){return e.states.data.value&&e.states.data.value.length===0}return we(bs,{disabled:t(),size:e.states.tableSize.value,indeterminate:e.states.selection.value.length>0&&!e.states.isAllSelected.value,"onUpdate:modelValue":e.toggleAllSelection,modelValue:e.states.isAllSelected.value})},renderCell({row:e,column:t,store:r,$index:n}){return we(bs,{disabled:t.selectable?!t.selectable.call(null,e,n):!1,size:r.states.tableSize.value,onChange:()=>{r.commit("rowSelectedChanged",e)},onClick:i=>i.stopPropagation(),modelValue:r.isSelected(e)})},sortable:!1,resizable:!1},index:{renderHeader({column:e}){return e.label||"#"},renderCell({column:e,$index:t}){let r=t+1;const n=e.index;return typeof n=="number"?r=t+n:typeof n=="function"&&(r=n(t)),we("div",{},[r])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({row:e,store:t,expanded:r}){const{ns:n}=t,i=[n.e("expand-icon")];return r&&i.push(n.em("expand-icon","expanded")),we("div",{class:i,onClick:function(o){o.stopPropagation(),t.toggleRowExpansion(e)}},{default:()=>[we(Cn,null,{default:()=>[we(ny)]})]})},sortable:!1,resizable:!1}};function tW({row:e,column:t,$index:r}){var n;const i=t.property,a=i&&fc(e,i).value;return t&&t.formatter?t.formatter(e,t,a,r):((n=a==null?void 0:a.toString)==null?void 0:n.call(a))||""}function rW({row:e,treeNode:t,store:r},n=!1){const{ns:i}=r;if(!t)return n?[we("span",{class:i.e("placeholder")})]:null;const a=[],o=function(s){s.stopPropagation(),!t.loading&&r.loadOrToggle(e)};if(t.indent&&a.push(we("span",{class:i.e("indent"),style:{"padding-left":`${t.indent}px`}})),typeof t.expanded=="boolean"&&!t.noLazyChildren){const s=[i.e("expand-icon"),t.expanded?i.em("expand-icon","expanded"):""];let l=ny;t.loading&&(l=ET),a.push(we("div",{class:s,onClick:o},{default:()=>[we(Cn,{class:{[i.is("loading")]:t.loading}},{default:()=>[we(l)]})]}))}else a.push(we("span",{class:i.e("placeholder")}));return a}function Kb(e,t){return e.reduce((r,n)=>(r[n]=n,r),t)}function nW(e,t){const r=dt();return{registerComplexWatchers:()=>{const a=["fixed"],o={realWidth:"width",realMinWidth:"minWidth"},s=Kb(a,o);Object.keys(s).forEach(l=>{const u=o[l];ze(t,u)&&Ee(()=>t[u],f=>{let c=f;u==="width"&&l==="realWidth"&&(c=xy(f)),u==="minWidth"&&l==="realMinWidth"&&(c=kM(f)),r.columnConfig.value[u]=c,r.columnConfig.value[l]=c;const d=u==="fixed";e.value.store.scheduleLayout(d)})})},registerNormalWatchers:()=>{const a=["label","filters","filterMultiple","sortable","index","formatter","className","labelClassName","showOverflowTooltip"],o={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},s=Kb(a,o);Object.keys(s).forEach(l=>{const u=o[l];ze(t,u)&&Ee(()=>t[u],f=>{r.columnConfig.value[l]=f})})}}}function iW(e,t,r){const n=dt(),i=H(""),a=H(!1),o=H(),s=H(),l=Ne("table");ts(()=>{o.value=e.align?`is-${e.align}`:null,o.value}),ts(()=>{s.value=e.headerAlign?`is-${e.headerAlign}`:o.value,s.value});const u=$(()=>{let _=n.vnode.vParent||n.parent;for(;_&&!_.tableId&&!_.columnId;)_=_.vnode.vParent||_.parent;return _}),f=$(()=>{const{store:_}=n.parent;if(!_)return!1;const{treeData:b}=_.states,x=b.value;return x&&Object.keys(x).length>0}),c=H(xy(e.width)),d=H(kM(e.minWidth)),h=_=>(c.value&&(_.width=c.value),d.value&&(_.minWidth=d.value),!c.value&&d.value&&(_.width=void 0),_.minWidth||(_.minWidth=80),_.realWidth=Number(_.width===void 0?_.minWidth:_.width),_),v=_=>{const b=_.type,x=eW[b]||{};Object.keys(x).forEach(S=>{const C=x[S];S!=="className"&&C!==void 0&&(_[S]=C)});const w=J8(b);if(w){const S=`${L(l.namespace)}-${w}`;_.className=_.className?`${_.className} ${S}`:S}return _},p=_=>{Array.isArray(_)?_.forEach(x=>b(x)):b(_);function b(x){var w;((w=x==null?void 0:x.type)==null?void 0:w.name)==="ElTableColumn"&&(x.vParent=n)}};return{columnId:i,realAlign:o,isSubColumn:a,realHeaderAlign:s,columnOrTableParent:u,setColumnWidth:h,setColumnForcedProps:v,setColumnRenders:_=>{e.renderHeader||_.type!=="selection"&&(_.renderHeader=x=>{n.columnConfig.value.label;const w=t.header;return w?w(x):_.label});let b=_.renderCell;return _.type==="expand"?(_.renderCell=x=>we("div",{class:"cell"},[b(x)]),r.value.renderExpanded=x=>t.default?t.default(x):t.default):(b=b||tW,_.renderCell=x=>{let w=null;if(t.default){const E=t.default(x);w=E.some(A=>A.type!==br)?E:b(x)}else w=b(x);const S=f.value&&x.cellIndex===0&&x.column.type!=="selection",C=rW(x,S),T={class:"cell",style:{}};return _.showOverflowTooltip&&(T.class=`${T.class} ${L(l.namespace)}-tooltip`,T.style={width:`${(x.column.realWidth||Number(x.column.width))-1}px`}),p(w),we("div",T,[C,w])}),_},getPropsData:(..._)=>_.reduce((b,x)=>(Array.isArray(x)&&x.forEach(w=>{b[w]=e[w]}),b),{}),getColumnElIndex:(_,b)=>Array.prototype.indexOf.call(_,b)}}var aW={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showOverflowTooltip:[Boolean,Object],fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every(t=>["ascending","descending",null].includes(t))}};let oW=1;var VM=ue({name:"ElTableColumn",components:{ElCheckbox:bs},props:aW,setup(e,{slots:t}){const r=dt(),n=H({}),i=$(()=>{let y=r.parent;for(;y&&!y.tableId;)y=y.parent;return y}),{registerNormalWatchers:a,registerComplexWatchers:o}=nW(i,e),{columnId:s,isSubColumn:l,realHeaderAlign:u,columnOrTableParent:f,setColumnWidth:c,setColumnForcedProps:d,setColumnRenders:h,getPropsData:v,getColumnElIndex:p,realAlign:g}=iW(e,t,i),m=f.value;s.value=`${m.tableId||m.columnId}_column_${oW++}`,Pd(()=>{l.value=i.value!==m;const y=e.type||"default",_=e.sortable===""?!0:e.sortable,b={...Q8[y],id:s.value,type:y,property:e.prop||e.property,align:g,headerAlign:u,showOverflowTooltip:e.showOverflowTooltip,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:_,index:e.index,rawColumnKey:r.vnode.key};let T=v(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement"]);T=s8(b,T),T=u8(h,c,d)(T),n.value=T,a(),o()}),Et(()=>{var y;const _=f.value,b=l.value?_.vnode.el.children:(y=_.refs.hiddenColumns)==null?void 0:y.children,x=()=>p(b||[],r.vnode.el);n.value.getColumnIndex=x,x()>-1&&i.value.store.commit("insertColumn",n.value,l.value?_.columnConfig.value:null)}),rr(()=>{i.value.store.commit("removeColumn",n.value,l.value?m.columnConfig.value:null)}),r.columnId=s.value,r.columnConfig=n},render(){var e,t,r;try{const n=(t=(e=this.$slots).default)==null?void 0:t.call(e,{row:{},column:{},$index:-1}),i=[];if(Array.isArray(n))for(const o of n)((r=o.type)==null?void 0:r.name)==="ElTableColumn"||o.shapeFlag&2?i.push(o):o.type===yt&&Array.isArray(o.children)&&o.children.forEach(s=>{(s==null?void 0:s.patchFlag)!==1024&&!Ue(s==null?void 0:s.children)&&i.push(s)});return we("div",i)}catch{return we("div",[])}}});const sW=Er(X8,{TableColumn:VM}),lW=aa(VM),GM=["success","info","warning","error"],vr=Va({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:Rt?document.body:void 0}),uW=ot({customClass:{type:String,default:vr.customClass},center:{type:Boolean,default:vr.center},dangerouslyUseHTMLString:{type:Boolean,default:vr.dangerouslyUseHTMLString},duration:{type:Number,default:vr.duration},icon:{type:Vi,default:vr.icon},id:{type:String,default:vr.id},message:{type:Pe([String,Object,Function]),default:vr.message},onClose:{type:Pe(Function),required:!1},showClose:{type:Boolean,default:vr.showClose},type:{type:String,values:GM,default:vr.type},offset:{type:Number,default:vr.offset},zIndex:{type:Number,default:vr.zIndex},grouping:{type:Boolean,default:vr.grouping},repeatNum:{type:Number,default:vr.repeatNum}}),fW={destroy:()=>!0},Hn=lC([]),cW=e=>{const t=Hn.findIndex(i=>i.id===e),r=Hn[t];let n;return t>0&&(n=Hn[t-1]),{current:r,prev:n}},dW=e=>{const{prev:t}=cW(e);return t?t.vm.exposed.bottom.value:0},hW=["id"],vW=["innerHTML"],pW=ue({name:"ElMessage"}),gW=ue({...pW,props:uW,emits:fW,setup(e,{expose:t}){const r=e,{Close:n}=h5,i=Ne("message"),a=H(),o=H(!1),s=H(0);let l;const u=$(()=>r.type?r.type==="error"?"danger":r.type:"info"),f=$(()=>{const b=r.type;return{[i.bm("icon",b)]:b&&ab[b]}}),c=$(()=>r.icon||ab[r.type]||""),d=$(()=>dW(r.id)),h=$(()=>r.offset+d.value),v=$(()=>s.value+h.value),p=$(()=>({top:`${h.value}px`,zIndex:r.zIndex}));function g(){r.duration!==0&&({stop:l}=Fp(()=>{y()},r.duration))}function m(){l==null||l()}function y(){o.value=!1}function _({code:b}){b===Lt.esc&&y()}return Et(()=>{g(),o.value=!0}),Ee(()=>r.repeatNum,()=>{m(),g()}),$n(document,"keydown",_),ds(a,()=>{s.value=a.value.getBoundingClientRect().height}),t({visible:o,bottom:v,close:y}),(b,x)=>(K(),xe(Kn,{name:L(i).b("fade"),onBeforeLeave:b.onClose,onAfterLeave:x[0]||(x[0]=w=>b.$emit("destroy")),persisted:""},{default:Z(()=>[qt(se("div",{id:b.id,ref_key:"messageRef",ref:a,class:de([L(i).b(),{[L(i).m(b.type)]:b.type&&!b.icon},L(i).is("center",b.center),L(i).is("closable",b.showClose),b.customClass]),style:At(L(p)),role:"alert",onMouseenter:m,onMouseleave:g},[b.repeatNum>1?(K(),xe(L(aH),{key:0,value:b.repeatNum,type:L(u),class:de(L(i).e("badge"))},null,8,["value","type","class"])):Ye("v-if",!0),L(c)?(K(),xe(L(Cn),{key:1,class:de([L(i).e("icon"),L(f)])},{default:Z(()=>[(K(),xe(hi(L(c))))]),_:1},8,["class"])):Ye("v-if",!0),Be(b.$slots,"default",{},()=>[b.dangerouslyUseHTMLString?(K(),Se(yt,{key:1},[Ye(" Caution here, message could've been compromised, never use user's input as message "),se("p",{class:de(L(i).e("content")),innerHTML:b.message},null,10,vW)],2112)):(K(),Se("p",{key:0,class:de(L(i).e("content"))},Ae(b.message),3))]),b.showClose?(K(),xe(L(Cn),{key:2,class:de(L(i).e("closeBtn")),onClick:Ep(y,["stop"])},{default:Z(()=>[ee(L(n))]),_:1},8,["class","onClick"])):Ye("v-if",!0)],46,hW),[[pi,o.value]])]),_:3},8,["name","onBeforeLeave"]))}});var mW=Je(gW,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let yW=1;const UM=e=>{const t=!e||Ue(e)||Ji(e)||Le(e)?{message:e}:e,r={...vr,...t};if(!r.appendTo)r.appendTo=document.body;else if(Ue(r.appendTo)){let n=document.querySelector(r.appendTo);hs(n)||(n=document.body),r.appendTo=n}return r},_W=e=>{const t=Hn.indexOf(e);if(t===-1)return;Hn.splice(t,1);const{handler:r}=e;r.close()},bW=({appendTo:e,...t},r)=>{const{nextZIndex:n}=yy(),i=`message_${yW++}`,a=t.onClose,o=document.createElement("div"),s={...t,zIndex:n()+t.zIndex,id:i,onClose:()=>{a==null||a(),_W(c)},onDestroy:()=>{b_(null,o)}},l=ee(mW,s,Le(s.message)||Ji(s.message)?{default:Le(s.message)?s.message:()=>s.message}:null);l.appContext=r||xs._context,b_(l,o),e.appendChild(o.firstElementChild);const u=l.component,c={id:i,vnode:l,vm:u,handler:{close:()=>{u.exposed.visible.value=!1}},props:l.component.props};return c},xs=(e={},t)=>{if(!Rt)return{close:()=>{}};if(_r(Jp.max)&&Hn.length>=Jp.max)return{close:()=>{}};const r=UM(e);if(r.grouping&&Hn.length){const i=Hn.find(({vnode:a})=>{var o;return((o=a.props)==null?void 0:o.message)===r.message});if(i)return i.props.repeatNum+=1,i.props.type=r.type,i.handler}const n=bW(r,t);return Hn.push(n),n.handler};GM.forEach(e=>{xs[e]=(t={},r)=>{const n=UM(t);return xs({...n,type:e},r)}});function wW(e){for(const t of Hn)(!e||e===t.props.type)&&t.handler.close()}xs.closeAll=wW;xs._context=null;const YM=v5(xs,"$message"),xW={id:"app"},SW={class:"grid-content header-color"},CW=se("a",{class:"brand",href:"#"},"frp",-1),TW=se("span",null,"Proxies",-1),MW={id:"content"},AW=se("footer",null,null,-1),EW=ue({__name:"App",setup(e){const t=r=>{r==""&&window.open("https://github.com/fatedier/frp")};return(r,n)=>{const i=RM,a=F6,o=$6,s=B6,l=CM,u=gr("router-view");return K(),Se("div",xW,[se("header",SW,[ee(i,null,{default:Z(()=>[CW]),_:1})]),se("section",null,[ee(i,null,{default:Z(()=>[ee(l,{id:"side-nav",xs:24,md:4},{default:Z(()=>[ee(s,{"default-active":"/",mode:"vertical",theme:"light",router:"false",onSelect:t},{default:Z(()=>[ee(a,{index:"/"},{default:Z(()=>[kt("Overview")]),_:1}),ee(o,{index:"/proxies"},{title:Z(()=>[TW]),default:Z(()=>[ee(a,{index:"/proxies/tcp"},{default:Z(()=>[kt("TCP")]),_:1}),ee(a,{index:"/proxies/udp"},{default:Z(()=>[kt("UDP")]),_:1}),ee(a,{index:"/proxies/http"},{default:Z(()=>[kt("HTTP")]),_:1}),ee(a,{index:"/proxies/https"},{default:Z(()=>[kt("HTTPS")]),_:1}),ee(a,{index:"/proxies/stcp"},{default:Z(()=>[kt("STCP")]),_:1}),ee(a,{index:"/proxies/sudp"},{default:Z(()=>[kt("SUDP")]),_:1})]),_:1}),ee(a,{index:""},{default:Z(()=>[kt("Help")]),_:1})]),_:1})]),_:1}),ee(l,{xs:24,md:20},{default:Z(()=>[se("div",MW,[ee(u)])]),_:1})]),_:1})]),AW])}}});/*!
   * vue-router v4.1.6
   * (c) 2022 Eduardo San Martin Morote
   * @license MIT
-  */const Wo=typeof window<"u";function EW(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const ot=Object.assign;function Gh(e,t){const r={};for(const n in t){const i=t[n];r[n]=Tn(i)?i.map(e):e(i)}return r}const kl=()=>{},Tn=Array.isArray,PW=/\/$/,LW=e=>e.replace(PW,"");function Uh(e,t,r="/"){let n,i={},a="",o="";const s=t.indexOf("#");let l=t.indexOf("?");return s<l&&s>=0&&(l=-1),l>-1&&(n=t.slice(0,l),a=t.slice(l+1,s>-1?s:t.length),i=e(a)),s>-1&&(n=n||t.slice(0,s),o=t.slice(s,t.length)),n=OW(n??t,r),{fullPath:n+(a&&"?")+a+o,path:n,query:i,hash:o}}function DW(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function Xb(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function IW(e,t,r){const n=t.matched.length-1,i=r.matched.length-1;return n>-1&&n===i&&Ss(t.matched[n],r.matched[i])&&YM(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function Ss(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function YM(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!RW(e[r],t[r]))return!1;return!0}function RW(e,t){return Tn(e)?Zb(e,t):Tn(t)?Zb(t,e):e===t}function Zb(e,t){return Tn(t)?e.length===t.length&&e.every((r,n)=>r===t[n]):e.length===1&&e[0]===t}function OW(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),n=e.split("/");let i=r.length-1,a,o;for(a=0;a<n.length;a++)if(o=n[a],o!==".")if(o==="..")i>1&&i--;else break;return r.slice(0,i).join("/")+"/"+n.slice(a-(a===n.length?1:0)).join("/")}var vu;(function(e){e.pop="pop",e.push="push"})(vu||(vu={}));var Nl;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Nl||(Nl={}));function kW(e){if(!e)if(Wo){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),LW(e)}const NW=/^[^#]+#/;function BW(e,t){return e.replace(NW,"#")+t}function FW(e,t){const r=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-r.left-(t.left||0),top:n.top-r.top-(t.top||0)}}const jd=()=>({left:window.pageXOffset,top:window.pageYOffset});function $W(e){let t;if("el"in e){const r=e.el,n=typeof r=="string"&&r.startsWith("#"),i=typeof r=="string"?n?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!i)return;t=FW(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function Qb(e,t){return(history.state?history.state.position-t:-1)+e}const og=new Map;function HW(e,t){og.set(e,t)}function zW(e){const t=og.get(e);return og.delete(e),t}let WW=()=>location.protocol+"//"+location.host;function qM(e,t){const{pathname:r,search:n,hash:i}=t,a=e.indexOf("#");if(a>-1){let s=i.includes(e.slice(a))?e.slice(a).length:1,l=i.slice(s);return l[0]!=="/"&&(l="/"+l),Xb(l,"")}return Xb(r,e)+n+i}function VW(e,t,r,n){let i=[],a=[],o=null;const s=({state:d})=>{const h=qM(e,location),v=r.value,p=t.value;let g=0;if(d){if(r.value=h,t.value=d,o&&o===v){o=null;return}g=p?d.position-p.position:0}else n(h);i.forEach(m=>{m(r.value,v,{delta:g,type:vu.pop,direction:g?g>0?Nl.forward:Nl.back:Nl.unknown})})};function l(){o=r.value}function u(d){i.push(d);const h=()=>{const v=i.indexOf(d);v>-1&&i.splice(v,1)};return a.push(h),h}function f(){const{history:d}=window;d.state&&d.replaceState(ot({},d.state,{scroll:jd()}),"")}function c(){for(const d of a)d();a=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",f)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",f),{pauseListeners:l,listen:u,destroy:c}}function Jb(e,t,r,n=!1,i=!1){return{back:e,current:t,forward:r,replaced:n,position:window.history.length,scroll:i?jd():null}}function GW(e){const{history:t,location:r}=window,n={value:qM(e,r)},i={value:t.state};i.value||a(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(l,u,f){const c=e.indexOf("#"),d=c>-1?(r.host&&document.querySelector("base")?e:e.slice(c))+l:WW()+e+l;try{t[f?"replaceState":"pushState"](u,"",d),i.value=u}catch(h){console.error(h),r[f?"replace":"assign"](d)}}function o(l,u){const f=ot({},t.state,Jb(i.value.back,l,i.value.forward,!0),u,{position:i.value.position});a(l,f,!0),n.value=l}function s(l,u){const f=ot({},i.value,t.state,{forward:l,scroll:jd()});a(f.current,f,!0);const c=ot({},Jb(n.value,l,null),{position:f.position+1},u);a(l,c,!1),n.value=l}return{location:n,state:i,push:s,replace:o}}function UW(e){e=kW(e);const t=GW(e),r=VW(e,t.state,t.location,t.replace);function n(a,o=!0){o||r.pauseListeners(),history.go(a)}const i=ot({location:"",base:e,go:n,createHref:BW.bind(null,e)},t,r);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function YW(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),UW(e)}function qW(e){return typeof e=="string"||e&&typeof e=="object"}function jM(e){return typeof e=="string"||typeof e=="symbol"}const Pi={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},KM=Symbol("");var e1;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(e1||(e1={}));function Cs(e,t){return ot(new Error,{type:e,[KM]:!0},t)}function ri(e,t){return e instanceof Error&&KM in e&&(t==null||!!(e.type&t))}const t1="[^/]+?",jW={sensitive:!1,strict:!1,start:!0,end:!0},KW=/[.+*?^${}()[\]/\\]/g;function XW(e,t){const r=ot({},jW,t),n=[];let i=r.start?"^":"";const a=[];for(const u of e){const f=u.length?[]:[90];r.strict&&!u.length&&(i+="/");for(let c=0;c<u.length;c++){const d=u[c];let h=40+(r.sensitive?.25:0);if(d.type===0)c||(i+="/"),i+=d.value.replace(KW,"\\$&"),h+=40;else if(d.type===1){const{value:v,repeatable:p,optional:g,regexp:m}=d;a.push({name:v,repeatable:p,optional:g});const y=m||t1;if(y!==t1){h+=10;try{new RegExp(`(${y})`)}catch(b){throw new Error(`Invalid custom RegExp for param "${v}" (${y}): `+b.message)}}let _=p?`((?:${y})(?:/(?:${y}))*)`:`(${y})`;c||(_=g&&u.length<2?`(?:/${_})`:"/"+_),g&&(_+="?"),i+=_,h+=20,g&&(h+=-8),p&&(h+=-20),y===".*"&&(h+=-50)}f.push(h)}n.push(f)}if(r.strict&&r.end){const u=n.length-1;n[u][n[u].length-1]+=.7000000000000001}r.strict||(i+="/?"),r.end?i+="$":r.strict&&(i+="(?:/|$)");const o=new RegExp(i,r.sensitive?"":"i");function s(u){const f=u.match(o),c={};if(!f)return null;for(let d=1;d<f.length;d++){const h=f[d]||"",v=a[d-1];c[v.name]=h&&v.repeatable?h.split("/"):h}return c}function l(u){let f="",c=!1;for(const d of e){(!c||!f.endsWith("/"))&&(f+="/"),c=!1;for(const h of d)if(h.type===0)f+=h.value;else if(h.type===1){const{value:v,repeatable:p,optional:g}=h,m=v in u?u[v]:"";if(Tn(m)&&!p)throw new Error(`Provided param "${v}" is an array but it is not repeatable (* or + modifiers)`);const y=Tn(m)?m.join("/"):m;if(!y)if(g)d.length<2&&(f.endsWith("/")?f=f.slice(0,-1):c=!0);else throw new Error(`Missing required param "${v}"`);f+=y}}return f||"/"}return{re:o,score:n,keys:a,parse:s,stringify:l}}function ZW(e,t){let r=0;for(;r<e.length&&r<t.length;){const n=t[r]-e[r];if(n)return n;r++}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 QW(e,t){let r=0;const n=e.score,i=t.score;for(;r<n.length&&r<i.length;){const a=ZW(n[r],i[r]);if(a)return a;r++}if(Math.abs(i.length-n.length)===1){if(r1(n))return 1;if(r1(i))return-1}return i.length-n.length}function r1(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const JW={type:0,value:""},eV=/[a-zA-Z0-9_]/;function tV(e){if(!e)return[[]];if(e==="/")return[[JW]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${r})/"${u}": ${h}`)}let r=0,n=r;const i=[];let a;function o(){a&&i.push(a),a=[]}let s=0,l,u="",f="";function c(){u&&(r===0?a.push({type:0,value:u}):r===1||r===2||r===3?(a.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:u,regexp:f,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function d(){u+=l}for(;s<e.length;){if(l=e[s++],l==="\\"&&r!==2){n=r,r=4;continue}switch(r){case 0:l==="/"?(u&&c(),o()):l===":"?(c(),r=1):d();break;case 4:d(),r=n;break;case 1:l==="("?r=2:eV.test(l)?d():(c(),r=0,l!=="*"&&l!=="?"&&l!=="+"&&s--);break;case 2:l===")"?f[f.length-1]=="\\"?f=f.slice(0,-1)+l:r=3:f+=l;break;case 3:c(),r=0,l!=="*"&&l!=="?"&&l!=="+"&&s--,f="";break;default:t("Unknown state");break}}return r===2&&t(`Unfinished custom RegExp for param "${u}"`),c(),o(),i}function rV(e,t,r){const n=XW(tV(e.path),r),i=ot(n,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function nV(e,t){const r=[],n=new Map;t=a1({strict:!1,end:!0,sensitive:!1},t);function i(f){return n.get(f)}function a(f,c,d){const h=!d,v=iV(f);v.aliasOf=d&&d.record;const p=a1(t,f),g=[v];if("alias"in f){const _=typeof f.alias=="string"?[f.alias]:f.alias;for(const b of _)g.push(ot({},v,{components:d?d.record.components:v.components,path:b,aliasOf:d?d.record:v}))}let m,y;for(const _ of g){const{path:b}=_;if(c&&b[0]!=="/"){const x=c.record.path,w=x[x.length-1]==="/"?"":"/";_.path=c.record.path+(b&&w+b)}if(m=rV(_,c,p),d?d.alias.push(m):(y=y||m,y!==m&&y.alias.push(m),h&&f.name&&!i1(m)&&o(f.name)),v.children){const x=v.children;for(let w=0;w<x.length;w++)a(x[w],m,d&&d.children[w])}d=d||m,(m.record.components&&Object.keys(m.record.components).length||m.record.name||m.record.redirect)&&l(m)}return y?()=>{o(y)}:kl}function o(f){if(jM(f)){const c=n.get(f);c&&(n.delete(f),r.splice(r.indexOf(c),1),c.children.forEach(o),c.alias.forEach(o))}else{const c=r.indexOf(f);c>-1&&(r.splice(c,1),f.record.name&&n.delete(f.record.name),f.children.forEach(o),f.alias.forEach(o))}}function s(){return r}function l(f){let c=0;for(;c<r.length&&QW(f,r[c])>=0&&(f.record.path!==r[c].record.path||!XM(f,r[c]));)c++;r.splice(c,0,f),f.record.name&&!i1(f)&&n.set(f.record.name,f)}function u(f,c){let d,h={},v,p;if("name"in f&&f.name){if(d=n.get(f.name),!d)throw Cs(1,{location:f});p=d.record.name,h=ot(n1(c.params,d.keys.filter(y=>!y.optional).map(y=>y.name)),f.params&&n1(f.params,d.keys.map(y=>y.name))),v=d.stringify(h)}else if("path"in f)v=f.path,d=r.find(y=>y.re.test(v)),d&&(h=d.parse(v),p=d.record.name);else{if(d=c.name?n.get(c.name):r.find(y=>y.re.test(c.path)),!d)throw Cs(1,{location:f,currentLocation:c});p=d.record.name,h=ot({},c.params,f.params),v=d.stringify(h)}const g=[];let m=d;for(;m;)g.unshift(m.record),m=m.parent;return{name:p,path:v,params:h,matched:g,meta:oV(g)}}return e.forEach(f=>a(f)),{addRoute:a,resolve:u,removeRoute:o,getRoutes:s,getRecordMatcher:i}}function n1(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function iV(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:aV(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function aV(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const n in e.components)t[n]=typeof r=="boolean"?r:r[n];return t}function i1(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function oV(e){return e.reduce((t,r)=>ot(t,r.meta),{})}function a1(e,t){const r={};for(const n in e)r[n]=n in t?t[n]:e[n];return r}function XM(e,t){return t.children.some(r=>r===e||XM(e,r))}const ZM=/#/g,sV=/&/g,lV=/\//g,uV=/=/g,fV=/\?/g,QM=/\+/g,cV=/%5B/g,dV=/%5D/g,JM=/%5E/g,hV=/%60/g,eA=/%7B/g,vV=/%7C/g,tA=/%7D/g,pV=/%20/g;function My(e){return encodeURI(""+e).replace(vV,"|").replace(cV,"[").replace(dV,"]")}function gV(e){return My(e).replace(eA,"{").replace(tA,"}").replace(JM,"^")}function sg(e){return My(e).replace(QM,"%2B").replace(pV,"+").replace(ZM,"%23").replace(sV,"%26").replace(hV,"`").replace(eA,"{").replace(tA,"}").replace(JM,"^")}function mV(e){return sg(e).replace(uV,"%3D")}function yV(e){return My(e).replace(ZM,"%23").replace(fV,"%3F")}function _V(e){return e==null?"":yV(e).replace(lV,"%2F")}function Uc(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function bV(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;i<n.length;++i){const a=n[i].replace(QM," "),o=a.indexOf("="),s=Uc(o<0?a:a.slice(0,o)),l=o<0?null:Uc(a.slice(o+1));if(s in t){let u=t[s];Tn(u)||(u=t[s]=[u]),u.push(l)}else t[s]=l}return t}function o1(e){let t="";for(let r in e){const n=e[r];if(r=mV(r),n==null){n!==void 0&&(t+=(t.length?"&":"")+r);continue}(Tn(n)?n.map(a=>a&&sg(a)):[n&&sg(n)]).forEach(a=>{a!==void 0&&(t+=(t.length?"&":"")+r,a!=null&&(t+="="+a))})}return t}function wV(e){const t={};for(const r in e){const n=e[r];n!==void 0&&(t[r]=Tn(n)?n.map(i=>i==null?null:""+i):n==null?n:""+n)}return t}const xV=Symbol(""),s1=Symbol(""),Ay=Symbol(""),rA=Symbol(""),lg=Symbol("");function qs(){let e=[];function t(n){return e.push(n),()=>{const i=e.indexOf(n);i>-1&&e.splice(i,1)}}function r(){e=[]}return{add:t,list:()=>e,reset:r}}function Hi(e,t,r,n,i){const a=n&&(n.enterCallbacks[i]=n.enterCallbacks[i]||[]);return()=>new Promise((o,s)=>{const l=c=>{c===!1?s(Cs(4,{from:r,to:t})):c instanceof Error?s(c):qW(c)?s(Cs(2,{from:t,to:c})):(a&&n.enterCallbacks[i]===a&&typeof c=="function"&&a.push(c),o())},u=e.call(n&&n.instances[i],t,r,l);let f=Promise.resolve(u);e.length<3&&(f=f.then(l)),f.catch(c=>s(c))})}function Yh(e,t,r,n){const i=[];for(const a of e)for(const o in a.components){let s=a.components[o];if(!(t!=="beforeRouteEnter"&&!a.instances[o]))if(SV(s)){const u=(s.__vccOpts||s)[t];u&&i.push(Hi(u,r,n,a,o))}else{let l=s();i.push(()=>l.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${a.path}"`));const f=EW(u)?u.default:u;a.components[o]=f;const d=(f.__vccOpts||f)[t];return d&&Hi(d,r,n,a,o)()}))}}return i}function SV(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function l1(e){const t=De(Ay),r=De(rA),n=$(()=>t.resolve(L(e.to))),i=$(()=>{const{matched:l}=n.value,{length:u}=l,f=l[u-1],c=r.matched;if(!f||!c.length)return-1;const d=c.findIndex(Ss.bind(null,f));if(d>-1)return d;const h=u1(l[u-2]);return u>1&&u1(f)===h&&c[c.length-1].path!==h?c.findIndex(Ss.bind(null,l[u-2])):d}),a=$(()=>i.value>-1&&AV(r.params,n.value.params)),o=$(()=>i.value>-1&&i.value===r.matched.length-1&&YM(r.params,n.value.params));function s(l={}){return MV(l)?t[L(e.replace)?"replace":"push"](L(e.to)).catch(kl):Promise.resolve()}return{route:n,href:$(()=>n.value.href),isActive:a,isExactActive:o,navigate:s}}const CV=ue({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"}},useLink:l1,setup(e,{slots:t}){const r=ln(l1(e)),{options:n}=De(Ay),i=$(()=>({[f1(e.activeClass,n.linkActiveClass,"router-link-active")]:r.isActive,[f1(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const a=t.default&&t.default(r);return e.custom?a:we("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:i.value},a)}}}),TV=CV;function MV(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 AV(e,t){for(const r in t){const n=t[r],i=e[r];if(typeof n=="string"){if(n!==i)return!1}else if(!Tn(i)||i.length!==n.length||n.some((a,o)=>a!==i[o]))return!1}return!0}function u1(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const f1=(e,t,r)=>e??t??r,EV=ue({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const n=De(lg),i=$(()=>e.route||n.value),a=De(s1,0),o=$(()=>{let u=L(a);const{matched:f}=i.value;let c;for(;(c=f[u])&&!c.components;)u++;return u}),s=$(()=>i.value.matched[o.value]);Ct(s1,$(()=>o.value+1)),Ct(xV,s),Ct(lg,i);const l=H();return Me(()=>[l.value,s.value,e.name],([u,f,c],[d,h,v])=>{f&&(f.instances[c]=u,h&&h!==f&&u&&u===d&&(f.leaveGuards.size||(f.leaveGuards=h.leaveGuards),f.updateGuards.size||(f.updateGuards=h.updateGuards))),u&&f&&(!h||!Ss(f,h)||!d)&&(f.enterCallbacks[c]||[]).forEach(p=>p(u))},{flush:"post"}),()=>{const u=i.value,f=e.name,c=s.value,d=c&&c.components[f];if(!d)return c1(r.default,{Component:d,route:u});const h=c.props[f],v=h?h===!0?u.params:typeof h=="function"?h(u):h:null,g=we(d,ot({},v,t,{onVnodeUnmounted:m=>{m.component.isUnmounted&&(c.instances[f]=null)},ref:l}));return c1(r.default,{Component:g,route:u})||g}}});function c1(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const PV=EV;function LV(e){const t=nV(e.routes,e),r=e.parseQuery||bV,n=e.stringifyQuery||o1,i=e.history,a=qs(),o=qs(),s=qs(),l=mD(Pi);let u=Pi;Wo&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=Gh.bind(null,V=>""+V),c=Gh.bind(null,_V),d=Gh.bind(null,Uc);function h(V,Q){let W,Y;return jM(V)?(W=t.getRecordMatcher(V),Y=Q):Y=V,t.addRoute(Y,W)}function v(V){const Q=t.getRecordMatcher(V);Q&&t.removeRoute(Q)}function p(){return t.getRoutes().map(V=>V.record)}function g(V){return!!t.getRecordMatcher(V)}function m(V,Q){if(Q=ot({},Q||l.value),typeof V=="string"){const P=Uh(r,V,Q.path),I=t.resolve({path:P.path},Q),z=i.createHref(P.fullPath);return ot(P,I,{params:d(I.params),hash:Uc(P.hash),redirectedFrom:void 0,href:z})}let W;if("path"in V)W=ot({},V,{path:Uh(r,V.path,Q.path).path});else{const P=ot({},V.params);for(const I in P)P[I]==null&&delete P[I];W=ot({},V,{params:c(V.params)}),Q.params=c(Q.params)}const Y=t.resolve(W,Q),se=V.hash||"";Y.params=f(d(Y.params));const he=DW(n,ot({},V,{hash:gV(se),path:Y.path})),Z=i.createHref(he);return ot({fullPath:he,hash:se,query:n===o1?wV(V.query):V.query||{}},Y,{redirectedFrom:void 0,href:Z})}function y(V){return typeof V=="string"?Uh(r,V,l.value.path):ot({},V)}function _(V,Q){if(u!==V)return Cs(8,{from:Q,to:V})}function b(V){return S(V)}function x(V){return b(ot(y(V),{replace:!0}))}function w(V){const Q=V.matched[V.matched.length-1];if(Q&&Q.redirect){const{redirect:W}=Q;let Y=typeof W=="function"?W(V):W;return typeof Y=="string"&&(Y=Y.includes("?")||Y.includes("#")?Y=y(Y):{path:Y},Y.params={}),ot({query:V.query,hash:V.hash,params:"path"in Y?{}:V.params},Y)}}function S(V,Q){const W=u=m(V),Y=l.value,se=V.state,he=V.force,Z=V.replace===!0,P=w(W);if(P)return S(ot(y(P),{state:typeof P=="object"?ot({},se,P.state):se,force:he,replace:Z}),Q||W);const I=W;I.redirectedFrom=Q;let z;return!he&&IW(n,Y,W)&&(z=Cs(16,{to:I,from:Y}),U(Y,Y,!0,!1)),(z?Promise.resolve(z):T(I,Y)).catch(G=>ri(G)?ri(G,2)?G:N(G):j(G,I,Y)).then(G=>{if(G){if(ri(G,2))return S(ot({replace:Z},y(G.to),{state:typeof G.to=="object"?ot({},se,G.to.state):se,force:he}),Q||I)}else G=A(I,Y,!0,Z,se);return E(I,Y,G),G})}function C(V,Q){const W=_(V,Q);return W?Promise.reject(W):Promise.resolve()}function T(V,Q){let W;const[Y,se,he]=DV(V,Q);W=Yh(Y.reverse(),"beforeRouteLeave",V,Q);for(const P of Y)P.leaveGuards.forEach(I=>{W.push(Hi(I,V,Q))});const Z=C.bind(null,V,Q);return W.push(Z),Mo(W).then(()=>{W=[];for(const P of a.list())W.push(Hi(P,V,Q));return W.push(Z),Mo(W)}).then(()=>{W=Yh(se,"beforeRouteUpdate",V,Q);for(const P of se)P.updateGuards.forEach(I=>{W.push(Hi(I,V,Q))});return W.push(Z),Mo(W)}).then(()=>{W=[];for(const P of V.matched)if(P.beforeEnter&&!Q.matched.includes(P))if(Tn(P.beforeEnter))for(const I of P.beforeEnter)W.push(Hi(I,V,Q));else W.push(Hi(P.beforeEnter,V,Q));return W.push(Z),Mo(W)}).then(()=>(V.matched.forEach(P=>P.enterCallbacks={}),W=Yh(he,"beforeRouteEnter",V,Q),W.push(Z),Mo(W))).then(()=>{W=[];for(const P of o.list())W.push(Hi(P,V,Q));return W.push(Z),Mo(W)}).catch(P=>ri(P,8)?P:Promise.reject(P))}function E(V,Q,W){for(const Y of s.list())Y(V,Q,W)}function A(V,Q,W,Y,se){const he=_(V,Q);if(he)return he;const Z=Q===Pi,P=Wo?history.state:{};W&&(Y||Z?i.replace(V.fullPath,ot({scroll:Z&&P&&P.scroll},se)):i.push(V.fullPath,se)),l.value=V,U(V,Q,W,Z),N()}let M;function D(){M||(M=i.listen((V,Q,W)=>{if(!Te.listening)return;const Y=m(V),se=w(Y);if(se){S(ot(se,{replace:!0}),Y).catch(kl);return}u=Y;const he=l.value;Wo&&HW(Qb(he.fullPath,W.delta),jd()),T(Y,he).catch(Z=>ri(Z,12)?Z:ri(Z,2)?(S(Z.to,Y).then(P=>{ri(P,20)&&!W.delta&&W.type===vu.pop&&i.go(-1,!1)}).catch(kl),Promise.reject()):(W.delta&&i.go(-W.delta,!1),j(Z,Y,he))).then(Z=>{Z=Z||A(Y,he,!1),Z&&(W.delta&&!ri(Z,8)?i.go(-W.delta,!1):W.type===vu.pop&&ri(Z,20)&&i.go(-1,!1)),E(Y,he,Z)}).catch(kl)}))}let O=qs(),k=qs(),F;function j(V,Q,W){N(V);const Y=k.list();return Y.length?Y.forEach(se=>se(V,Q,W)):console.error(V),Promise.reject(V)}function B(){return F&&l.value!==Pi?Promise.resolve():new Promise((V,Q)=>{O.add([V,Q])})}function N(V){return F||(F=!V,D(),O.list().forEach(([Q,W])=>V?W(V):Q()),O.reset()),V}function U(V,Q,W,Y){const{scrollBehavior:se}=e;if(!Wo||!se)return Promise.resolve();const he=!W&&zW(Qb(V.fullPath,0))||(Y||!W)&&history.state&&history.state.scroll||null;return Ht().then(()=>se(V,Q,he)).then(Z=>Z&&$W(Z)).catch(Z=>j(Z,V,Q))}const re=V=>i.go(V);let ae;const me=new Set,Te={currentRoute:l,listening:!0,addRoute:h,removeRoute:v,hasRoute:g,getRoutes:p,resolve:m,options:e,push:b,replace:x,go:re,back:()=>re(-1),forward:()=>re(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:k.add,isReady:B,install(V){const Q=this;V.component("RouterLink",TV),V.component("RouterView",PV),V.config.globalProperties.$router=Q,Object.defineProperty(V.config.globalProperties,"$route",{enumerable:!0,get:()=>L(l)}),Wo&&!ae&&l.value===Pi&&(ae=!0,b(i.location).catch(se=>{}));const W={};for(const se in Pi)W[se]=$(()=>l.value[se]);V.provide(Ay,Q),V.provide(rA,ln(W)),V.provide(lg,l);const Y=V.unmount;me.add(V),V.unmount=function(){me.delete(V),me.size<1&&(u=Pi,M&&M(),M=null,l.value=Pi,ae=!1,F=!1),Y()}}};return Te}function Mo(e){return e.reduce((t,r)=>t.then(()=>r()),Promise.resolve())}function DV(e,t){const r=[],n=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;o<a;o++){const s=t.matched[o];s&&(e.matched.find(u=>Ss(u,s))?n.push(s):r.push(s));const l=e.matched[o];l&&(t.matched.find(u=>Ss(u,l))||i.push(l))}return[r,n,i]}var Ji={},IV={get exports(){return Ji},set exports(e){Ji=e}};(function(e,t){var r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol?"symbol":typeof n};(function(n,i){r(t)==="object"?e.exports=i():n.Humanize=i()})(LH,function(){var n=[{name:"second",value:1e3},{name:"minute",value:6e4},{name:"hour",value:36e5},{name:"day",value:864e5},{name:"week",value:6048e5}],i={P:Math.pow(2,50),T:Math.pow(2,40),G:Math.pow(2,30),M:Math.pow(2,20)},a=function(c){return typeof c<"u"&&c!==null},o=function(c){return c!==c},s=function(c){return isFinite(c)&&!o(parseFloat(c))},l=function(c){var d=Object.prototype.toString.call(c);return d==="[object Array]"},u={intword:function(c,d){var h=arguments.length<=2||arguments[2]===void 0?2:arguments[2];return u.compactInteger(c,h)},compactInteger:function(c){var d=arguments.length<=1||arguments[1]===void 0?0:arguments[1];d=Math.max(d,0);var h=parseInt(c,10),v=h<0?"-":"",p=Math.abs(h),g=String(p),m=g.length,y=[13,10,7,4],_=["T","B","M","k"];if(p<1e3)return""+v+g;if(m>y[0]+3)return h.toExponential(d).replace("e+","x10^");for(var b=void 0,x=0;x<y.length;x++){var w=y[x];if(m>=w){b=w;break}}var S=m-b+1,C=g.split(""),T=C.slice(0,S),E=C.slice(S,S+d+1),A=T.join(""),M=E.join("");M.length<d&&(M+=""+Array(d-M.length+1).join("0"));var D=void 0;if(d===0)D=""+v+A+_[y.indexOf(b)];else{var O=Number(A+"."+M).toFixed(d);D=""+v+O+_[y.indexOf(b)]}return D},intComma:function(c){var d=arguments.length<=1||arguments[1]===void 0?0:arguments[1];return u.formatNumber(c,d)},intcomma:function(){return u.intComma.apply(u,arguments)},fileSize:function(c){var d=arguments.length<=1||arguments[1]===void 0?2:arguments[1];for(var h in i)if(i.hasOwnProperty(h)){var v=i[h];if(c>=v)return u.formatNumber(c/v,d,"")+" "+h+"B"}return c>=1024?u.formatNumber(c/1024,0)+" KB":u.formatNumber(c,0)+u.pluralize(c," byte")},filesize:function(){return u.fileSize.apply(u,arguments)},formatNumber:function(c){var d=arguments.length<=1||arguments[1]===void 0?0:arguments[1],h=arguments.length<=2||arguments[2]===void 0?",":arguments[2],v=arguments.length<=3||arguments[3]===void 0?".":arguments[3],p=function(S,C,T){return T?S.substr(0,T)+C:""},g=function(S,C,T){return S.substr(T).replace(/(\d{3})(?=\d)/g,"$1"+C)},m=function(S,C,T){return T?C+u.toFixed(Math.abs(S),T).split(".")[1]:""},y=u.normalizePrecision(d),_=c<0&&"-"||"",b=String(parseInt(u.toFixed(Math.abs(c||0),y),10)),x=b.length>3?b.length%3:0;return _+p(b,h,x)+g(b,h,x)+m(c,v,y)},toFixed:function(c,d){d=a(d)?d:u.normalizePrecision(d,0);var h=Math.pow(10,d);return(Math.round(c*h)/h).toFixed(d)},normalizePrecision:function(c,d){return c=Math.round(Math.abs(c)),o(c)?d:c},ordinal:function(c){var d=parseInt(c,10);if(d===0)return c;var h=d%100;if([11,12,13].indexOf(h)>=0)return d+"th";var v=d%10,p=void 0;switch(v){case 1:p="st";break;case 2:p="nd";break;case 3:p="rd";break;default:p="th"}return""+d+p},times:function(c){var d=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];if(s(c)&&c>=0){var h=parseFloat(c),v=["never","once","twice"];if(a(d[h]))return String(d[h]);var p=a(v[h])&&v[h].toString();return p||h.toString()+" times"}return null},pluralize:function(c,d,h){return a(c)&&a(d)?(h=a(h)?h:d+"s",parseInt(c,10)===1?d:h):null},truncate:function(c){var d=arguments.length<=1||arguments[1]===void 0?100:arguments[1],h=arguments.length<=2||arguments[2]===void 0?"...":arguments[2];return c.length>d?c.substring(0,d-h.length)+h:c},truncateWords:function(c,d){for(var h=c.split(" "),v="",p=0;p<d;)a(h[p])&&(v+=h[p]+" "),p++;return h.length>d?v+"...":null},truncatewords:function(){return u.truncateWords.apply(u,arguments)},boundedNumber:function(c){var d=arguments.length<=1||arguments[1]===void 0?100:arguments[1],h=arguments.length<=2||arguments[2]===void 0?"+":arguments[2],v=void 0;return s(c)&&s(d)&&c>d&&(v=d+h),(v||c).toString()},truncatenumber:function(){return u.boundedNumber.apply(u,arguments)},oxford:function(c,d,h){var v=c.length,p=void 0;if(v<2)return String(c);if(v===2)return c.join(" and ");if(a(d)&&v>d){var g=v-d;p=d,h=a(h)?h:", and "+g+" "+u.pluralize(g,"other")}else p=-1,h=", and "+c[v-1];return c.slice(0,p).join(", ")+h},dictionary:function(c){var d=arguments.length<=1||arguments[1]===void 0?" is ":arguments[1],h=arguments.length<=2||arguments[2]===void 0?", ":arguments[2],v="";if(a(c)&&(typeof c>"u"?"undefined":r(c))==="object"&&!l(c)){var p=[];for(var g in c)if(c.hasOwnProperty(g)){var m=c[g];p.push(""+g+d+m)}return p.join(h)}return v},frequency:function(c,d){if(!l(c))return null;var h=c.length,v=u.times(h);return h===0?v+" "+d:d+" "+v},pace:function(c,d){var h=arguments.length<=2||arguments[2]===void 0?"time":arguments[2];if(c===0||d===0)return"No "+u.pluralize(0,h);for(var v="Approximately",p=void 0,g=void 0,m=c/d,y=0;y<n.length;++y){var _=n[y];if(g=m*_.value,g>1){p=_.name;break}}p||(v="Less than",g=1,p=n[n.length-1].name);var b=Math.round(g);return h=u.pluralize(b,h),v+" "+b+" "+h+" per "+p},nl2br:function(c){var d=arguments.length<=1||arguments[1]===void 0?"<br/>":arguments[1];return c.replace(/\n/g,d)},br2nl:function(c){var d=arguments.length<=1||arguments[1]===void 0?`\r
-`:arguments[1];return c.replace(/\<br\s*\/?\>/g,d)},capitalize:function(c){var d=arguments.length<=1||arguments[1]===void 0?!1:arguments[1];return""+c.charAt(0).toUpperCase()+(d?c.slice(1).toLowerCase():c.slice(1))},capitalizeAll:function(c){return c.replace(/(?:^|\s)\S/g,function(d){return d.toUpperCase()})},titleCase:function(c){var d=/\b(a|an|and|at|but|by|de|en|for|if|in|of|on|or|the|to|via|vs?\.?)\b/i,h=/\S+[A-Z]+\S*/,v=/\s+/,p=/-/,g=void 0;return g=function(y){for(var _=arguments.length<=1||arguments[1]===void 0?!1:arguments[1],b=arguments.length<=2||arguments[2]===void 0?!0:arguments[2],x=[],w=y.split(_?p:v),S=0;S<w.length;++S){var C=w[S];if(C.indexOf("-")!==-1){x.push(g(C,!0,S===0||S===w.length-1));continue}if(b&&(S===0||S===w.length-1)){x.push(h.test(C)?C:u.capitalize(C));continue}h.test(C)?x.push(C):d.test(C)?x.push(C.toLowerCase()):x.push(u.capitalize(C))}return x.join(_?"-":" ")},g(c)},titlecase:function(){return u.titleCase.apply(u,arguments)}};return u})})(IV,Ji);/*! *****************************************************************************
+  */const Wo=typeof window<"u";function PW(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const st=Object.assign;function Gh(e,t){const r={};for(const n in t){const i=t[n];r[n]=Tn(i)?i.map(e):e(i)}return r}const kl=()=>{},Tn=Array.isArray,LW=/\/$/,DW=e=>e.replace(LW,"");function Uh(e,t,r="/"){let n,i={},a="",o="";const s=t.indexOf("#");let l=t.indexOf("?");return s<l&&s>=0&&(l=-1),l>-1&&(n=t.slice(0,l),a=t.slice(l+1,s>-1?s:t.length),i=e(a)),s>-1&&(n=n||t.slice(0,s),o=t.slice(s,t.length)),n=kW(n??t,r),{fullPath:n+(a&&"?")+a+o,path:n,query:i,hash:o}}function IW(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function Xb(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function RW(e,t,r){const n=t.matched.length-1,i=r.matched.length-1;return n>-1&&n===i&&Ss(t.matched[n],r.matched[i])&&qM(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function Ss(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function qM(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!OW(e[r],t[r]))return!1;return!0}function OW(e,t){return Tn(e)?Zb(e,t):Tn(t)?Zb(t,e):e===t}function Zb(e,t){return Tn(t)?e.length===t.length&&e.every((r,n)=>r===t[n]):e.length===1&&e[0]===t}function kW(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),n=e.split("/");let i=r.length-1,a,o;for(a=0;a<n.length;a++)if(o=n[a],o!==".")if(o==="..")i>1&&i--;else break;return r.slice(0,i).join("/")+"/"+n.slice(a-(a===n.length?1:0)).join("/")}var vu;(function(e){e.pop="pop",e.push="push"})(vu||(vu={}));var Nl;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Nl||(Nl={}));function NW(e){if(!e)if(Wo){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),DW(e)}const BW=/^[^#]+#/;function FW(e,t){return e.replace(BW,"#")+t}function $W(e,t){const r=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-r.left-(t.left||0),top:n.top-r.top-(t.top||0)}}const jd=()=>({left:window.pageXOffset,top:window.pageYOffset});function HW(e){let t;if("el"in e){const r=e.el,n=typeof r=="string"&&r.startsWith("#"),i=typeof r=="string"?n?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!i)return;t=$W(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function Qb(e,t){return(history.state?history.state.position-t:-1)+e}const og=new Map;function zW(e,t){og.set(e,t)}function WW(e){const t=og.get(e);return og.delete(e),t}let VW=()=>location.protocol+"//"+location.host;function jM(e,t){const{pathname:r,search:n,hash:i}=t,a=e.indexOf("#");if(a>-1){let s=i.includes(e.slice(a))?e.slice(a).length:1,l=i.slice(s);return l[0]!=="/"&&(l="/"+l),Xb(l,"")}return Xb(r,e)+n+i}function GW(e,t,r,n){let i=[],a=[],o=null;const s=({state:d})=>{const h=jM(e,location),v=r.value,p=t.value;let g=0;if(d){if(r.value=h,t.value=d,o&&o===v){o=null;return}g=p?d.position-p.position:0}else n(h);i.forEach(m=>{m(r.value,v,{delta:g,type:vu.pop,direction:g?g>0?Nl.forward:Nl.back:Nl.unknown})})};function l(){o=r.value}function u(d){i.push(d);const h=()=>{const v=i.indexOf(d);v>-1&&i.splice(v,1)};return a.push(h),h}function f(){const{history:d}=window;d.state&&d.replaceState(st({},d.state,{scroll:jd()}),"")}function c(){for(const d of a)d();a=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",f)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",f),{pauseListeners:l,listen:u,destroy:c}}function Jb(e,t,r,n=!1,i=!1){return{back:e,current:t,forward:r,replaced:n,position:window.history.length,scroll:i?jd():null}}function UW(e){const{history:t,location:r}=window,n={value:jM(e,r)},i={value:t.state};i.value||a(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(l,u,f){const c=e.indexOf("#"),d=c>-1?(r.host&&document.querySelector("base")?e:e.slice(c))+l:VW()+e+l;try{t[f?"replaceState":"pushState"](u,"",d),i.value=u}catch(h){console.error(h),r[f?"replace":"assign"](d)}}function o(l,u){const f=st({},t.state,Jb(i.value.back,l,i.value.forward,!0),u,{position:i.value.position});a(l,f,!0),n.value=l}function s(l,u){const f=st({},i.value,t.state,{forward:l,scroll:jd()});a(f.current,f,!0);const c=st({},Jb(n.value,l,null),{position:f.position+1},u);a(l,c,!1),n.value=l}return{location:n,state:i,push:s,replace:o}}function YW(e){e=NW(e);const t=UW(e),r=GW(e,t.state,t.location,t.replace);function n(a,o=!0){o||r.pauseListeners(),history.go(a)}const i=st({location:"",base:e,go:n,createHref:FW.bind(null,e)},t,r);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function qW(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),YW(e)}function jW(e){return typeof e=="string"||e&&typeof e=="object"}function KM(e){return typeof e=="string"||typeof e=="symbol"}const Li={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},XM=Symbol("");var e1;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(e1||(e1={}));function Cs(e,t){return st(new Error,{type:e,[XM]:!0},t)}function ri(e,t){return e instanceof Error&&XM in e&&(t==null||!!(e.type&t))}const t1="[^/]+?",KW={sensitive:!1,strict:!1,start:!0,end:!0},XW=/[.+*?^${}()[\]/\\]/g;function ZW(e,t){const r=st({},KW,t),n=[];let i=r.start?"^":"";const a=[];for(const u of e){const f=u.length?[]:[90];r.strict&&!u.length&&(i+="/");for(let c=0;c<u.length;c++){const d=u[c];let h=40+(r.sensitive?.25:0);if(d.type===0)c||(i+="/"),i+=d.value.replace(XW,"\\$&"),h+=40;else if(d.type===1){const{value:v,repeatable:p,optional:g,regexp:m}=d;a.push({name:v,repeatable:p,optional:g});const y=m||t1;if(y!==t1){h+=10;try{new RegExp(`(${y})`)}catch(b){throw new Error(`Invalid custom RegExp for param "${v}" (${y}): `+b.message)}}let _=p?`((?:${y})(?:/(?:${y}))*)`:`(${y})`;c||(_=g&&u.length<2?`(?:/${_})`:"/"+_),g&&(_+="?"),i+=_,h+=20,g&&(h+=-8),p&&(h+=-20),y===".*"&&(h+=-50)}f.push(h)}n.push(f)}if(r.strict&&r.end){const u=n.length-1;n[u][n[u].length-1]+=.7000000000000001}r.strict||(i+="/?"),r.end?i+="$":r.strict&&(i+="(?:/|$)");const o=new RegExp(i,r.sensitive?"":"i");function s(u){const f=u.match(o),c={};if(!f)return null;for(let d=1;d<f.length;d++){const h=f[d]||"",v=a[d-1];c[v.name]=h&&v.repeatable?h.split("/"):h}return c}function l(u){let f="",c=!1;for(const d of e){(!c||!f.endsWith("/"))&&(f+="/"),c=!1;for(const h of d)if(h.type===0)f+=h.value;else if(h.type===1){const{value:v,repeatable:p,optional:g}=h,m=v in u?u[v]:"";if(Tn(m)&&!p)throw new Error(`Provided param "${v}" is an array but it is not repeatable (* or + modifiers)`);const y=Tn(m)?m.join("/"):m;if(!y)if(g)d.length<2&&(f.endsWith("/")?f=f.slice(0,-1):c=!0);else throw new Error(`Missing required param "${v}"`);f+=y}}return f||"/"}return{re:o,score:n,keys:a,parse:s,stringify:l}}function QW(e,t){let r=0;for(;r<e.length&&r<t.length;){const n=t[r]-e[r];if(n)return n;r++}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 JW(e,t){let r=0;const n=e.score,i=t.score;for(;r<n.length&&r<i.length;){const a=QW(n[r],i[r]);if(a)return a;r++}if(Math.abs(i.length-n.length)===1){if(r1(n))return 1;if(r1(i))return-1}return i.length-n.length}function r1(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const eV={type:0,value:""},tV=/[a-zA-Z0-9_]/;function rV(e){if(!e)return[[]];if(e==="/")return[[eV]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${r})/"${u}": ${h}`)}let r=0,n=r;const i=[];let a;function o(){a&&i.push(a),a=[]}let s=0,l,u="",f="";function c(){u&&(r===0?a.push({type:0,value:u}):r===1||r===2||r===3?(a.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:u,regexp:f,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function d(){u+=l}for(;s<e.length;){if(l=e[s++],l==="\\"&&r!==2){n=r,r=4;continue}switch(r){case 0:l==="/"?(u&&c(),o()):l===":"?(c(),r=1):d();break;case 4:d(),r=n;break;case 1:l==="("?r=2:tV.test(l)?d():(c(),r=0,l!=="*"&&l!=="?"&&l!=="+"&&s--);break;case 2:l===")"?f[f.length-1]=="\\"?f=f.slice(0,-1)+l:r=3:f+=l;break;case 3:c(),r=0,l!=="*"&&l!=="?"&&l!=="+"&&s--,f="";break;default:t("Unknown state");break}}return r===2&&t(`Unfinished custom RegExp for param "${u}"`),c(),o(),i}function nV(e,t,r){const n=ZW(rV(e.path),r),i=st(n,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function iV(e,t){const r=[],n=new Map;t=a1({strict:!1,end:!0,sensitive:!1},t);function i(f){return n.get(f)}function a(f,c,d){const h=!d,v=aV(f);v.aliasOf=d&&d.record;const p=a1(t,f),g=[v];if("alias"in f){const _=typeof f.alias=="string"?[f.alias]:f.alias;for(const b of _)g.push(st({},v,{components:d?d.record.components:v.components,path:b,aliasOf:d?d.record:v}))}let m,y;for(const _ of g){const{path:b}=_;if(c&&b[0]!=="/"){const x=c.record.path,w=x[x.length-1]==="/"?"":"/";_.path=c.record.path+(b&&w+b)}if(m=nV(_,c,p),d?d.alias.push(m):(y=y||m,y!==m&&y.alias.push(m),h&&f.name&&!i1(m)&&o(f.name)),v.children){const x=v.children;for(let w=0;w<x.length;w++)a(x[w],m,d&&d.children[w])}d=d||m,(m.record.components&&Object.keys(m.record.components).length||m.record.name||m.record.redirect)&&l(m)}return y?()=>{o(y)}:kl}function o(f){if(KM(f)){const c=n.get(f);c&&(n.delete(f),r.splice(r.indexOf(c),1),c.children.forEach(o),c.alias.forEach(o))}else{const c=r.indexOf(f);c>-1&&(r.splice(c,1),f.record.name&&n.delete(f.record.name),f.children.forEach(o),f.alias.forEach(o))}}function s(){return r}function l(f){let c=0;for(;c<r.length&&JW(f,r[c])>=0&&(f.record.path!==r[c].record.path||!ZM(f,r[c]));)c++;r.splice(c,0,f),f.record.name&&!i1(f)&&n.set(f.record.name,f)}function u(f,c){let d,h={},v,p;if("name"in f&&f.name){if(d=n.get(f.name),!d)throw Cs(1,{location:f});p=d.record.name,h=st(n1(c.params,d.keys.filter(y=>!y.optional).map(y=>y.name)),f.params&&n1(f.params,d.keys.map(y=>y.name))),v=d.stringify(h)}else if("path"in f)v=f.path,d=r.find(y=>y.re.test(v)),d&&(h=d.parse(v),p=d.record.name);else{if(d=c.name?n.get(c.name):r.find(y=>y.re.test(c.path)),!d)throw Cs(1,{location:f,currentLocation:c});p=d.record.name,h=st({},c.params,f.params),v=d.stringify(h)}const g=[];let m=d;for(;m;)g.unshift(m.record),m=m.parent;return{name:p,path:v,params:h,matched:g,meta:sV(g)}}return e.forEach(f=>a(f)),{addRoute:a,resolve:u,removeRoute:o,getRoutes:s,getRecordMatcher:i}}function n1(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function aV(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:oV(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function oV(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const n in e.components)t[n]=typeof r=="boolean"?r:r[n];return t}function i1(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function sV(e){return e.reduce((t,r)=>st(t,r.meta),{})}function a1(e,t){const r={};for(const n in e)r[n]=n in t?t[n]:e[n];return r}function ZM(e,t){return t.children.some(r=>r===e||ZM(e,r))}const QM=/#/g,lV=/&/g,uV=/\//g,fV=/=/g,cV=/\?/g,JM=/\+/g,dV=/%5B/g,hV=/%5D/g,eA=/%5E/g,vV=/%60/g,tA=/%7B/g,pV=/%7C/g,rA=/%7D/g,gV=/%20/g;function My(e){return encodeURI(""+e).replace(pV,"|").replace(dV,"[").replace(hV,"]")}function mV(e){return My(e).replace(tA,"{").replace(rA,"}").replace(eA,"^")}function sg(e){return My(e).replace(JM,"%2B").replace(gV,"+").replace(QM,"%23").replace(lV,"%26").replace(vV,"`").replace(tA,"{").replace(rA,"}").replace(eA,"^")}function yV(e){return sg(e).replace(fV,"%3D")}function _V(e){return My(e).replace(QM,"%23").replace(cV,"%3F")}function bV(e){return e==null?"":_V(e).replace(uV,"%2F")}function Yc(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function wV(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;i<n.length;++i){const a=n[i].replace(JM," "),o=a.indexOf("="),s=Yc(o<0?a:a.slice(0,o)),l=o<0?null:Yc(a.slice(o+1));if(s in t){let u=t[s];Tn(u)||(u=t[s]=[u]),u.push(l)}else t[s]=l}return t}function o1(e){let t="";for(let r in e){const n=e[r];if(r=yV(r),n==null){n!==void 0&&(t+=(t.length?"&":"")+r);continue}(Tn(n)?n.map(a=>a&&sg(a)):[n&&sg(n)]).forEach(a=>{a!==void 0&&(t+=(t.length?"&":"")+r,a!=null&&(t+="="+a))})}return t}function xV(e){const t={};for(const r in e){const n=e[r];n!==void 0&&(t[r]=Tn(n)?n.map(i=>i==null?null:""+i):n==null?n:""+n)}return t}const SV=Symbol(""),s1=Symbol(""),Ay=Symbol(""),nA=Symbol(""),lg=Symbol("");function qs(){let e=[];function t(n){return e.push(n),()=>{const i=e.indexOf(n);i>-1&&e.splice(i,1)}}function r(){e=[]}return{add:t,list:()=>e,reset:r}}function zi(e,t,r,n,i){const a=n&&(n.enterCallbacks[i]=n.enterCallbacks[i]||[]);return()=>new Promise((o,s)=>{const l=c=>{c===!1?s(Cs(4,{from:r,to:t})):c instanceof Error?s(c):jW(c)?s(Cs(2,{from:t,to:c})):(a&&n.enterCallbacks[i]===a&&typeof c=="function"&&a.push(c),o())},u=e.call(n&&n.instances[i],t,r,l);let f=Promise.resolve(u);e.length<3&&(f=f.then(l)),f.catch(c=>s(c))})}function Yh(e,t,r,n){const i=[];for(const a of e)for(const o in a.components){let s=a.components[o];if(!(t!=="beforeRouteEnter"&&!a.instances[o]))if(CV(s)){const u=(s.__vccOpts||s)[t];u&&i.push(zi(u,r,n,a,o))}else{let l=s();i.push(()=>l.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${a.path}"`));const f=PW(u)?u.default:u;a.components[o]=f;const d=(f.__vccOpts||f)[t];return d&&zi(d,r,n,a,o)()}))}}return i}function CV(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function l1(e){const t=Re(Ay),r=Re(nA),n=$(()=>t.resolve(L(e.to))),i=$(()=>{const{matched:l}=n.value,{length:u}=l,f=l[u-1],c=r.matched;if(!f||!c.length)return-1;const d=c.findIndex(Ss.bind(null,f));if(d>-1)return d;const h=u1(l[u-2]);return u>1&&u1(f)===h&&c[c.length-1].path!==h?c.findIndex(Ss.bind(null,l[u-2])):d}),a=$(()=>i.value>-1&&EV(r.params,n.value.params)),o=$(()=>i.value>-1&&i.value===r.matched.length-1&&qM(r.params,n.value.params));function s(l={}){return AV(l)?t[L(e.replace)?"replace":"push"](L(e.to)).catch(kl):Promise.resolve()}return{route:n,href:$(()=>n.value.href),isActive:a,isExactActive:o,navigate:s}}const TV=ue({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"}},useLink:l1,setup(e,{slots:t}){const r=ln(l1(e)),{options:n}=Re(Ay),i=$(()=>({[f1(e.activeClass,n.linkActiveClass,"router-link-active")]:r.isActive,[f1(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const a=t.default&&t.default(r);return e.custom?a:we("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:i.value},a)}}}),MV=TV;function AV(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 EV(e,t){for(const r in t){const n=t[r],i=e[r];if(typeof n=="string"){if(n!==i)return!1}else if(!Tn(i)||i.length!==n.length||n.some((a,o)=>a!==i[o]))return!1}return!0}function u1(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const f1=(e,t,r)=>e??t??r,PV=ue({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const n=Re(lg),i=$(()=>e.route||n.value),a=Re(s1,0),o=$(()=>{let u=L(a);const{matched:f}=i.value;let c;for(;(c=f[u])&&!c.components;)u++;return u}),s=$(()=>i.value.matched[o.value]);Ct(s1,$(()=>o.value+1)),Ct(SV,s),Ct(lg,i);const l=H();return Ee(()=>[l.value,s.value,e.name],([u,f,c],[d,h,v])=>{f&&(f.instances[c]=u,h&&h!==f&&u&&u===d&&(f.leaveGuards.size||(f.leaveGuards=h.leaveGuards),f.updateGuards.size||(f.updateGuards=h.updateGuards))),u&&f&&(!h||!Ss(f,h)||!d)&&(f.enterCallbacks[c]||[]).forEach(p=>p(u))},{flush:"post"}),()=>{const u=i.value,f=e.name,c=s.value,d=c&&c.components[f];if(!d)return c1(r.default,{Component:d,route:u});const h=c.props[f],v=h?h===!0?u.params:typeof h=="function"?h(u):h:null,g=we(d,st({},v,t,{onVnodeUnmounted:m=>{m.component.isUnmounted&&(c.instances[f]=null)},ref:l}));return c1(r.default,{Component:g,route:u})||g}}});function c1(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const LV=PV;function DV(e){const t=iV(e.routes,e),r=e.parseQuery||wV,n=e.stringifyQuery||o1,i=e.history,a=qs(),o=qs(),s=qs(),l=yD(Li);let u=Li;Wo&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=Gh.bind(null,V=>""+V),c=Gh.bind(null,bV),d=Gh.bind(null,Yc);function h(V,J){let W,Y;return KM(V)?(W=t.getRecordMatcher(V),Y=J):Y=V,t.addRoute(Y,W)}function v(V){const J=t.getRecordMatcher(V);J&&t.removeRoute(J)}function p(){return t.getRoutes().map(V=>V.record)}function g(V){return!!t.getRecordMatcher(V)}function m(V,J){if(J=st({},J||l.value),typeof V=="string"){const P=Uh(r,V,J.path),I=t.resolve({path:P.path},J),z=i.createHref(P.fullPath);return st(P,I,{params:d(I.params),hash:Yc(P.hash),redirectedFrom:void 0,href:z})}let W;if("path"in V)W=st({},V,{path:Uh(r,V.path,J.path).path});else{const P=st({},V.params);for(const I in P)P[I]==null&&delete P[I];W=st({},V,{params:c(V.params)}),J.params=c(J.params)}const Y=t.resolve(W,J),le=V.hash||"";Y.params=f(d(Y.params));const he=IW(n,st({},V,{hash:mV(le),path:Y.path})),Q=i.createHref(he);return st({fullPath:he,hash:le,query:n===o1?xV(V.query):V.query||{}},Y,{redirectedFrom:void 0,href:Q})}function y(V){return typeof V=="string"?Uh(r,V,l.value.path):st({},V)}function _(V,J){if(u!==V)return Cs(8,{from:J,to:V})}function b(V){return S(V)}function x(V){return b(st(y(V),{replace:!0}))}function w(V){const J=V.matched[V.matched.length-1];if(J&&J.redirect){const{redirect:W}=J;let Y=typeof W=="function"?W(V):W;return typeof Y=="string"&&(Y=Y.includes("?")||Y.includes("#")?Y=y(Y):{path:Y},Y.params={}),st({query:V.query,hash:V.hash,params:"path"in Y?{}:V.params},Y)}}function S(V,J){const W=u=m(V),Y=l.value,le=V.state,he=V.force,Q=V.replace===!0,P=w(W);if(P)return S(st(y(P),{state:typeof P=="object"?st({},le,P.state):le,force:he,replace:Q}),J||W);const I=W;I.redirectedFrom=J;let z;return!he&&RW(n,Y,W)&&(z=Cs(16,{to:I,from:Y}),U(Y,Y,!0,!1)),(z?Promise.resolve(z):T(I,Y)).catch(G=>ri(G)?ri(G,2)?G:N(G):j(G,I,Y)).then(G=>{if(G){if(ri(G,2))return S(st({replace:Q},y(G.to),{state:typeof G.to=="object"?st({},le,G.to.state):le,force:he}),J||I)}else G=A(I,Y,!0,Q,le);return E(I,Y,G),G})}function C(V,J){const W=_(V,J);return W?Promise.reject(W):Promise.resolve()}function T(V,J){let W;const[Y,le,he]=IV(V,J);W=Yh(Y.reverse(),"beforeRouteLeave",V,J);for(const P of Y)P.leaveGuards.forEach(I=>{W.push(zi(I,V,J))});const Q=C.bind(null,V,J);return W.push(Q),Mo(W).then(()=>{W=[];for(const P of a.list())W.push(zi(P,V,J));return W.push(Q),Mo(W)}).then(()=>{W=Yh(le,"beforeRouteUpdate",V,J);for(const P of le)P.updateGuards.forEach(I=>{W.push(zi(I,V,J))});return W.push(Q),Mo(W)}).then(()=>{W=[];for(const P of V.matched)if(P.beforeEnter&&!J.matched.includes(P))if(Tn(P.beforeEnter))for(const I of P.beforeEnter)W.push(zi(I,V,J));else W.push(zi(P.beforeEnter,V,J));return W.push(Q),Mo(W)}).then(()=>(V.matched.forEach(P=>P.enterCallbacks={}),W=Yh(he,"beforeRouteEnter",V,J),W.push(Q),Mo(W))).then(()=>{W=[];for(const P of o.list())W.push(zi(P,V,J));return W.push(Q),Mo(W)}).catch(P=>ri(P,8)?P:Promise.reject(P))}function E(V,J,W){for(const Y of s.list())Y(V,J,W)}function A(V,J,W,Y,le){const he=_(V,J);if(he)return he;const Q=J===Li,P=Wo?history.state:{};W&&(Y||Q?i.replace(V.fullPath,st({scroll:Q&&P&&P.scroll},le)):i.push(V.fullPath,le)),l.value=V,U(V,J,W,Q),N()}let M;function D(){M||(M=i.listen((V,J,W)=>{if(!Me.listening)return;const Y=m(V),le=w(Y);if(le){S(st(le,{replace:!0}),Y).catch(kl);return}u=Y;const he=l.value;Wo&&zW(Qb(he.fullPath,W.delta),jd()),T(Y,he).catch(Q=>ri(Q,12)?Q:ri(Q,2)?(S(Q.to,Y).then(P=>{ri(P,20)&&!W.delta&&W.type===vu.pop&&i.go(-1,!1)}).catch(kl),Promise.reject()):(W.delta&&i.go(-W.delta,!1),j(Q,Y,he))).then(Q=>{Q=Q||A(Y,he,!1),Q&&(W.delta&&!ri(Q,8)?i.go(-W.delta,!1):W.type===vu.pop&&ri(Q,20)&&i.go(-1,!1)),E(Y,he,Q)}).catch(kl)}))}let O=qs(),k=qs(),F;function j(V,J,W){N(V);const Y=k.list();return Y.length?Y.forEach(le=>le(V,J,W)):console.error(V),Promise.reject(V)}function B(){return F&&l.value!==Li?Promise.resolve():new Promise((V,J)=>{O.add([V,J])})}function N(V){return F||(F=!V,D(),O.list().forEach(([J,W])=>V?W(V):J()),O.reset()),V}function U(V,J,W,Y){const{scrollBehavior:le}=e;if(!Wo||!le)return Promise.resolve();const he=!W&&WW(Qb(V.fullPath,0))||(Y||!W)&&history.state&&history.state.scroll||null;return zt().then(()=>le(V,J,he)).then(Q=>Q&&HW(Q)).catch(Q=>j(Q,V,J))}const re=V=>i.go(V);let ae;const me=new Set,Me={currentRoute:l,listening:!0,addRoute:h,removeRoute:v,hasRoute:g,getRoutes:p,resolve:m,options:e,push:b,replace:x,go:re,back:()=>re(-1),forward:()=>re(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:k.add,isReady:B,install(V){const J=this;V.component("RouterLink",MV),V.component("RouterView",LV),V.config.globalProperties.$router=J,Object.defineProperty(V.config.globalProperties,"$route",{enumerable:!0,get:()=>L(l)}),Wo&&!ae&&l.value===Li&&(ae=!0,b(i.location).catch(le=>{}));const W={};for(const le in Li)W[le]=$(()=>l.value[le]);V.provide(Ay,J),V.provide(nA,ln(W)),V.provide(lg,l);const Y=V.unmount;me.add(V),V.unmount=function(){me.delete(V),me.size<1&&(u=Li,M&&M(),M=null,l.value=Li,ae=!1,F=!1),Y()}}};return Me}function Mo(e){return e.reduce((t,r)=>t.then(()=>r()),Promise.resolve())}function IV(e,t){const r=[],n=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;o<a;o++){const s=t.matched[o];s&&(e.matched.find(u=>Ss(u,s))?n.push(s):r.push(s));const l=e.matched[o];l&&(t.matched.find(u=>Ss(u,l))||i.push(l))}return[r,n,i]}var ea={},RV={get exports(){return ea},set exports(e){ea=e}};(function(e,t){var r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol?"symbol":typeof n};(function(n,i){r(t)==="object"?e.exports=i():n.Humanize=i()})(DH,function(){var n=[{name:"second",value:1e3},{name:"minute",value:6e4},{name:"hour",value:36e5},{name:"day",value:864e5},{name:"week",value:6048e5}],i={P:Math.pow(2,50),T:Math.pow(2,40),G:Math.pow(2,30),M:Math.pow(2,20)},a=function(c){return typeof c<"u"&&c!==null},o=function(c){return c!==c},s=function(c){return isFinite(c)&&!o(parseFloat(c))},l=function(c){var d=Object.prototype.toString.call(c);return d==="[object Array]"},u={intword:function(c,d){var h=arguments.length<=2||arguments[2]===void 0?2:arguments[2];return u.compactInteger(c,h)},compactInteger:function(c){var d=arguments.length<=1||arguments[1]===void 0?0:arguments[1];d=Math.max(d,0);var h=parseInt(c,10),v=h<0?"-":"",p=Math.abs(h),g=String(p),m=g.length,y=[13,10,7,4],_=["T","B","M","k"];if(p<1e3)return""+v+g;if(m>y[0]+3)return h.toExponential(d).replace("e+","x10^");for(var b=void 0,x=0;x<y.length;x++){var w=y[x];if(m>=w){b=w;break}}var S=m-b+1,C=g.split(""),T=C.slice(0,S),E=C.slice(S,S+d+1),A=T.join(""),M=E.join("");M.length<d&&(M+=""+Array(d-M.length+1).join("0"));var D=void 0;if(d===0)D=""+v+A+_[y.indexOf(b)];else{var O=Number(A+"."+M).toFixed(d);D=""+v+O+_[y.indexOf(b)]}return D},intComma:function(c){var d=arguments.length<=1||arguments[1]===void 0?0:arguments[1];return u.formatNumber(c,d)},intcomma:function(){return u.intComma.apply(u,arguments)},fileSize:function(c){var d=arguments.length<=1||arguments[1]===void 0?2:arguments[1];for(var h in i)if(i.hasOwnProperty(h)){var v=i[h];if(c>=v)return u.formatNumber(c/v,d,"")+" "+h+"B"}return c>=1024?u.formatNumber(c/1024,0)+" KB":u.formatNumber(c,0)+u.pluralize(c," byte")},filesize:function(){return u.fileSize.apply(u,arguments)},formatNumber:function(c){var d=arguments.length<=1||arguments[1]===void 0?0:arguments[1],h=arguments.length<=2||arguments[2]===void 0?",":arguments[2],v=arguments.length<=3||arguments[3]===void 0?".":arguments[3],p=function(S,C,T){return T?S.substr(0,T)+C:""},g=function(S,C,T){return S.substr(T).replace(/(\d{3})(?=\d)/g,"$1"+C)},m=function(S,C,T){return T?C+u.toFixed(Math.abs(S),T).split(".")[1]:""},y=u.normalizePrecision(d),_=c<0&&"-"||"",b=String(parseInt(u.toFixed(Math.abs(c||0),y),10)),x=b.length>3?b.length%3:0;return _+p(b,h,x)+g(b,h,x)+m(c,v,y)},toFixed:function(c,d){d=a(d)?d:u.normalizePrecision(d,0);var h=Math.pow(10,d);return(Math.round(c*h)/h).toFixed(d)},normalizePrecision:function(c,d){return c=Math.round(Math.abs(c)),o(c)?d:c},ordinal:function(c){var d=parseInt(c,10);if(d===0)return c;var h=d%100;if([11,12,13].indexOf(h)>=0)return d+"th";var v=d%10,p=void 0;switch(v){case 1:p="st";break;case 2:p="nd";break;case 3:p="rd";break;default:p="th"}return""+d+p},times:function(c){var d=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];if(s(c)&&c>=0){var h=parseFloat(c),v=["never","once","twice"];if(a(d[h]))return String(d[h]);var p=a(v[h])&&v[h].toString();return p||h.toString()+" times"}return null},pluralize:function(c,d,h){return a(c)&&a(d)?(h=a(h)?h:d+"s",parseInt(c,10)===1?d:h):null},truncate:function(c){var d=arguments.length<=1||arguments[1]===void 0?100:arguments[1],h=arguments.length<=2||arguments[2]===void 0?"...":arguments[2];return c.length>d?c.substring(0,d-h.length)+h:c},truncateWords:function(c,d){for(var h=c.split(" "),v="",p=0;p<d;)a(h[p])&&(v+=h[p]+" "),p++;return h.length>d?v+"...":null},truncatewords:function(){return u.truncateWords.apply(u,arguments)},boundedNumber:function(c){var d=arguments.length<=1||arguments[1]===void 0?100:arguments[1],h=arguments.length<=2||arguments[2]===void 0?"+":arguments[2],v=void 0;return s(c)&&s(d)&&c>d&&(v=d+h),(v||c).toString()},truncatenumber:function(){return u.boundedNumber.apply(u,arguments)},oxford:function(c,d,h){var v=c.length,p=void 0;if(v<2)return String(c);if(v===2)return c.join(" and ");if(a(d)&&v>d){var g=v-d;p=d,h=a(h)?h:", and "+g+" "+u.pluralize(g,"other")}else p=-1,h=", and "+c[v-1];return c.slice(0,p).join(", ")+h},dictionary:function(c){var d=arguments.length<=1||arguments[1]===void 0?" is ":arguments[1],h=arguments.length<=2||arguments[2]===void 0?", ":arguments[2],v="";if(a(c)&&(typeof c>"u"?"undefined":r(c))==="object"&&!l(c)){var p=[];for(var g in c)if(c.hasOwnProperty(g)){var m=c[g];p.push(""+g+d+m)}return p.join(h)}return v},frequency:function(c,d){if(!l(c))return null;var h=c.length,v=u.times(h);return h===0?v+" "+d:d+" "+v},pace:function(c,d){var h=arguments.length<=2||arguments[2]===void 0?"time":arguments[2];if(c===0||d===0)return"No "+u.pluralize(0,h);for(var v="Approximately",p=void 0,g=void 0,m=c/d,y=0;y<n.length;++y){var _=n[y];if(g=m*_.value,g>1){p=_.name;break}}p||(v="Less than",g=1,p=n[n.length-1].name);var b=Math.round(g);return h=u.pluralize(b,h),v+" "+b+" "+h+" per "+p},nl2br:function(c){var d=arguments.length<=1||arguments[1]===void 0?"<br/>":arguments[1];return c.replace(/\n/g,d)},br2nl:function(c){var d=arguments.length<=1||arguments[1]===void 0?`\r
+`:arguments[1];return c.replace(/\<br\s*\/?\>/g,d)},capitalize:function(c){var d=arguments.length<=1||arguments[1]===void 0?!1:arguments[1];return""+c.charAt(0).toUpperCase()+(d?c.slice(1).toLowerCase():c.slice(1))},capitalizeAll:function(c){return c.replace(/(?:^|\s)\S/g,function(d){return d.toUpperCase()})},titleCase:function(c){var d=/\b(a|an|and|at|but|by|de|en|for|if|in|of|on|or|the|to|via|vs?\.?)\b/i,h=/\S+[A-Z]+\S*/,v=/\s+/,p=/-/,g=void 0;return g=function(y){for(var _=arguments.length<=1||arguments[1]===void 0?!1:arguments[1],b=arguments.length<=2||arguments[2]===void 0?!0:arguments[2],x=[],w=y.split(_?p:v),S=0;S<w.length;++S){var C=w[S];if(C.indexOf("-")!==-1){x.push(g(C,!0,S===0||S===w.length-1));continue}if(b&&(S===0||S===w.length-1)){x.push(h.test(C)?C:u.capitalize(C));continue}h.test(C)?x.push(C):d.test(C)?x.push(C.toLowerCase()):x.push(u.capitalize(C))}return x.join(_?"-":" ")},g(c)},titlecase:function(){return u.titleCase.apply(u,arguments)}};return u})})(RV,ea);/*! *****************************************************************************
 Copyright (c) Microsoft Corporation.
 
 Permission to use, copy, modify, and/or distribute this software for any
@@ -46,8 +46,8 @@ 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 ug=function(e,t){return ug=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},ug(e,t)};function pe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ug(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var RV=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),OV=function(){function e(){this.browser=new RV,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return e}(),Fa=new OV;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Fa.wxa=!0,Fa.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Fa.worker=!0:typeof navigator>"u"?(Fa.node=!0,Fa.svgSupported=!0):kV(navigator.userAgent,Fa);function kV(e,t){var r=t.browser,n=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);n&&(r.firefox=!0,r.version=n[1]),i&&(r.ie=!0,r.version=i[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}const Ve=Fa;var Ey=12,NV="sans-serif",co=Ey+"px "+NV,BV=20,FV=100,$V="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function HV(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r<e.length;r++){var n=String.fromCharCode(r+32),i=(e.charCodeAt(r)-BV)/FV;t[n]=i}return t}var zV=HV($V),bo={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var e,t;return function(r,n){if(!e){var i=bo.createCanvas();e=i&&i.getContext("2d")}if(e)return t!==n&&(t=e.font=n||co),e.measureText(r);r=r||"",n=n||co;var a=/(\d+)px/.exec(n),o=a&&+a[1]||Ey,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=zV[r[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(e,t,r){var n=new Image;return n.onload=t,n.onerror=r,n.src=e,n}},nA=ea(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),iA=ea(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),zu=Object.prototype.toString,Kd=Array.prototype,WV=Kd.forEach,VV=Kd.filter,Py=Kd.slice,GV=Kd.map,d1=function(){}.constructor,vf=d1?d1.prototype:null,Ly="__proto__",UV=2311;function aA(){return UV++}function Dy(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function Xe(e){if(e==null||typeof e!="object")return e;var t=e,r=zu.call(e);if(r==="[object Array]"){if(!Fl(e)){t=[];for(var n=0,i=e.length;n<i;n++)t[n]=Xe(e[n])}}else if(iA[r]){if(!Fl(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var n=0,i=e.length;n<i;n++)t[n]=e[n]}}}else if(!nA[r]&&!Fl(e)&&!Yc(e)){t={};for(var o in e)e.hasOwnProperty(o)&&o!==Ly&&(t[o]=Xe(e[o]))}return t}function it(e,t,r){if(!Pe(t)||!Pe(e))return r?Xe(t):e;for(var n in t)if(t.hasOwnProperty(n)&&n!==Ly){var i=e[n],a=t[n];Pe(a)&&Pe(i)&&!ge(a)&&!ge(i)&&!Yc(a)&&!Yc(i)&&!h1(a)&&!h1(i)&&!Fl(a)&&!Fl(i)?it(i,a,r):(r||!(n in e))&&(e[n]=Xe(t[n]))}return e}function oe(e,t){if(Object.assign)Object.assign(e,t);else for(var r in t)t.hasOwnProperty(r)&&r!==Ly&&(e[r]=t[r]);return e}function ut(e,t,r){for(var n=xt(t),i=0;i<n.length;i++){var a=n[i];(r?t[a]!=null:e[a]==null)&&(e[a]=t[a])}return e}bo.createCanvas;function nt(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r}return-1}function YV(e,t){var r=e.prototype;function n(){}n.prototype=t.prototype,e.prototype=new n;for(var i in r)r.hasOwnProperty(i)&&(e.prototype[i]=r[i]);e.prototype.constructor=e,e.superClass=t}function Qn(e,t,r){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(t),i=0;i<n.length;i++){var a=n[i];a!=="constructor"&&(r?t[a]!=null:e[a]==null)&&(e[a]=t[a])}else ut(e,t,r)}function Tr(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function R(e,t,r){if(e&&t)if(e.forEach&&e.forEach===WV)e.forEach(t,r);else if(e.length===+e.length)for(var n=0,i=e.length;n<i;n++)t.call(r,e[n],n,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(r,e[a],a,e)}function Oe(e,t,r){if(!e)return[];if(!t)return Iy(e);if(e.map&&e.map===GV)return e.map(t,r);for(var n=[],i=0,a=e.length;i<a;i++)n.push(t.call(r,e[i],i,e));return n}function ea(e,t,r,n){if(e&&t){for(var i=0,a=e.length;i<a;i++)r=t.call(n,r,e[i],i,e);return r}}function Ft(e,t,r){if(!e)return[];if(!t)return Iy(e);if(e.filter&&e.filter===VV)return e.filter(t,r);for(var n=[],i=0,a=e.length;i<a;i++)t.call(r,e[i],i,e)&&n.push(e[i]);return n}function xt(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t}function qV(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return e.apply(t,r.concat(Py.call(arguments)))}}var yt=vf&&We(vf.bind)?vf.call.bind(vf.bind):qV;function Dt(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){return e.apply(this,t.concat(Py.call(arguments)))}}function ge(e){return Array.isArray?Array.isArray(e):zu.call(e)==="[object Array]"}function We(e){return typeof e=="function"}function Ce(e){return typeof e=="string"}function fg(e){return zu.call(e)==="[object String]"}function _t(e){return typeof e=="number"}function Pe(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function h1(e){return!!nA[zu.call(e)]}function $r(e){return!!iA[zu.call(e)]}function Yc(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function Xd(e){return e.colorStops!=null}function jV(e){return e.image!=null}function qc(e){return e!==e}function pu(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,n=e.length;r<n;r++)if(e[r]!=null)return e[r]}function qe(e,t){return e??t}function Bl(e,t,r){return e??t??r}function Iy(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return Py.apply(e,t)}function oA(e){if(typeof e=="number")return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function mi(e,t){if(!e)throw new Error(t)}function zn(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var sA="__ec_primitive__";function cg(e){e[sA]=!0}function Fl(e){return e[sA]}var KV=function(){function e(){this.data={}}return e.prototype.delete=function(t){var r=this.has(t);return r&&delete this.data[t],r},e.prototype.has=function(t){return this.data.hasOwnProperty(t)},e.prototype.get=function(t){return this.data[t]},e.prototype.set=function(t,r){return this.data[t]=r,this},e.prototype.keys=function(){return xt(this.data)},e.prototype.forEach=function(t){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&t(r[n],n)},e}(),lA=typeof Map=="function";function XV(){return lA?new Map:new KV}var ZV=function(){function e(t){var r=ge(t);this.data=XV();var n=this;t instanceof e?t.each(i):t&&R(t,i);function i(a,o){r?n.set(a,o):n.set(o,a)}}return e.prototype.hasKey=function(t){return this.data.has(t)},e.prototype.get=function(t){return this.data.get(t)},e.prototype.set=function(t,r){return this.data.set(t,r),r},e.prototype.each=function(t,r){this.data.forEach(function(n,i){t.call(r,n,i)})},e.prototype.keys=function(){var t=this.data.keys();return lA?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e}();function Ge(e){return new ZV(e)}function QV(e,t){for(var r=new e.constructor(e.length+t.length),n=0;n<e.length;n++)r[n]=e[n];for(var i=e.length,n=0;n<t.length;n++)r[n+i]=t[n];return r}function Zd(e,t){var r;if(Object.create)r=Object.create(e);else{var n=function(){};n.prototype=e,r=new n}return t&&oe(r,t),r}function uA(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function Ts(e,t){return e.hasOwnProperty(t)}function Sr(){}var JV=180/Math.PI;function Ns(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function eG(e){return[e[0],e[1]]}function v1(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function tG(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function rG(e){return Math.sqrt(nG(e))}function nG(e){return e[0]*e[0]+e[1]*e[1]}function qh(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function iG(e,t){var r=rG(t);return r===0?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}function dg(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var hg=dg;function aG(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var ns=aG;function jh(e,t,r,n){return e[0]=t[0]+n*(r[0]-t[0]),e[1]=t[1]+n*(r[1]-t[1]),e}function rn(e,t,r){var n=t[0],i=t[1];return e[0]=r[0]*n+r[2]*i+r[4],e[1]=r[1]*n+r[3]*i+r[5],e}function qo(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function jo(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}var Ao=function(){function e(t,r){this.target=t,this.topTarget=r&&r.topTarget}return e}(),oG=function(){function e(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(t){for(var r=t.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Ao(r,t),"dragstart",t.event))},e.prototype._drag=function(t){var r=this._draggingTarget;if(r){var n=t.offsetX,i=t.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,r.drift(a,o,t),this.handler.dispatchToElement(new Ao(r,t),"drag",t.event);var s=this.handler.findHover(n,i,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Ao(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new Ao(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new Ao(r,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Ao(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e}();const sG=oG;var lG=function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,r,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r=="function"&&(i=n,n=r,r=null),!n||!t)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),a[t]||(a[t]=[]);for(var s=0;s<a[t].length;s++)if(a[t][s].h===n)return this;var l={h:n,query:r,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},u=a[t].length-1,f=a[t][u];return f&&f.callAtLast?a[t].splice(u,0,l):a[t].push(l),this},e.prototype.isSilent=function(t){var r=this._$handlers;return!r||!r[t]||!r[t].length},e.prototype.off=function(t,r){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(r){if(n[t]){for(var i=[],a=0,o=n[t].length;a<o;a++)n[t][a].h!==r&&i.push(n[t][a]);n[t]=i}n[t]&&n[t].length===0&&delete n[t]}else delete n[t];return this},e.prototype.trigger=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=r.length,s=i.length,l=0;l<s;l++){var u=i[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(t,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,r[0]);break;case 2:u.h.call(u.ctx,r[0],r[1]);break;default:u.h.apply(u.ctx,r);break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e.prototype.triggerWithContext=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=r.length,s=r[o-1],l=i.length,u=0;u<l;u++){var f=i[u];if(!(a&&a.filter&&f.query!=null&&!a.filter(t,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,r[0]);break;case 2:f.h.call(s,r[0],r[1]);break;default:f.h.apply(s,r.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e}();const Jn=lG;var uG=Math.log(2);function vg(e,t,r,n,i,a){var o=n+"-"+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~i)/uG);return e[r][l]}for(var u=n|1<<r,f=r+1;n&1<<f;)f++;for(var c=0,d=0,h=0;d<s;d++){var v=1<<d;v&i||(c+=(h%2?-1:1)*e[r][d]*vg(e,t-1,f,u,i|v,a),h++)}return a[o]=c,c}function p1(e,t){var r=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],n={},i=vg(r,8,0,0,0,n);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*vg(r,7,o===0?1:0,1<<o,1<<s,n)/i*t[o];return function(l,u,f){var c=u*a[6]+f*a[7]+1;l[0]=(u*a[0]+f*a[1]+a[2])/c,l[1]=(u*a[3]+f*a[4]+a[5])/c}}}var g1="___zrEVENTSAVED",Kh=[];function fG(e,t,r,n,i){return pg(Kh,t,n,i,!0)&&pg(e,r,Kh[0],Kh[1])}function pg(e,t,r,n,i){if(t.getBoundingClientRect&&Ve.domSupported&&!fA(t)){var a=t[g1]||(t[g1]={}),o=cG(t,a),s=dG(o,a,i);if(s)return s(e,r,n),!0}return!1}function cG(e,t){var r=t.markers;if(r)return r;r=t.markers=[];for(var n=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return r}function dG(e,t,r){for(var n=r?"invTrans":"trans",i=t[n],a=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=e[u].getBoundingClientRect(),c=2*u,d=f.left,h=f.top;o.push(d,h),l=l&&a&&d===a[c]&&h===a[c+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&i?i:(t.srcCoords=o,t[n]=r?p1(s,o):p1(o,s))}function fA(e){return e.nodeName.toUpperCase()==="CANVAS"}var hG=/([&<>"'])/g,vG={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Kr(e){return e==null?"":(e+"").replace(hG,function(t,r){return vG[r]})}var pG=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Xh=[],gG=Ve.browser.firefox&&+Ve.browser.version.split(".")[0]<39;function gg(e,t,r,n){return r=r||{},n?m1(e,t,r):gG&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):m1(e,t,r),r}function m1(e,t,r){if(Ve.domSupported&&e.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(fA(e)){var a=e.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(pg(Xh,e,n,i)){r.zrX=Xh[0],r.zrY=Xh[1];return}}r.zrX=r.zrY=0}function Ry(e){return e||window.event}function Ur(e,t,r){if(t=Ry(t),t.zrX!=null)return t;var n=t.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&gg(e,o,t,r)}else{gg(e,t,t,r);var a=mG(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&pG.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function mG(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,n=e.deltaY;if(r==null||n==null)return t;var i=Math.abs(n!==0?n:r),a=n>0?-1:n<0?1:r>0?-1:1;return 3*i*a}function yG(e,t,r,n){e.addEventListener(t,r,n)}function _G(e,t,r,n){e.removeEventListener(t,r,n)}var cA=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},bG=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,n){return this._doTrack(t,r,n),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,n){var i=t.touches;if(i){for(var a={points:[],touches:[],target:r,event:t},o=0,s=i.length;o<s;o++){var l=i[o],u=gg(n,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},e.prototype._recognize=function(t){for(var r in Zh)if(Zh.hasOwnProperty(r)){var n=Zh[r](this._track,t);if(n)return n}},e}();function y1(e){var t=e[1][0]-e[0][0],r=e[1][1]-e[0][1];return Math.sqrt(t*t+r*r)}function wG(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var Zh={pinch:function(e,t){var r=e.length;if(r){var n=(e[r-1]||{}).points,i=(e[r-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=y1(n)/y1(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=wG(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function gu(){return[1,0,0,1,0,0]}function Oy(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function xG(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function is(e,t,r){var n=t[0]*r[0]+t[2]*r[1],i=t[1]*r[0]+t[3]*r[1],a=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],l=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=n,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=l,e}function mg(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function ky(e,t,r){var n=t[0],i=t[2],a=t[4],o=t[1],s=t[3],l=t[5],u=Math.sin(r),f=Math.cos(r);return e[0]=n*f+o*u,e[1]=-n*u+o*f,e[2]=i*f+s*u,e[3]=-i*u+f*s,e[4]=f*a+u*l,e[5]=f*l-u*a,e}function SG(e,t,r){var n=r[0],i=r[1];return e[0]=t[0]*n,e[1]=t[1]*i,e[2]=t[2]*n,e[3]=t[3]*i,e[4]=t[4]*n,e[5]=t[5]*i,e}function Qd(e,t){var r=t[0],n=t[2],i=t[4],a=t[1],o=t[3],s=t[5],l=r*o-a*n;return l?(l=1/l,e[0]=o*l,e[1]=-a*l,e[2]=-n*l,e[3]=r*l,e[4]=(n*s-o*i)*l,e[5]=(a*i-r*s)*l,e):null}var CG=function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,n=this.y-t.y;return Math.sqrt(r*r+n*n)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,n=this.y-t.y;return r*r+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var r=this.x,n=this.y;return this.x=t[0]*r+t[2]*n+t[4],this.y=t[1]*r+t[3]*n+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,n){t.x=r,t.y=n},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,n){t.x=r.x+n.x,t.y=r.y+n.y},e.sub=function(t,r,n){t.x=r.x-n.x,t.y=r.y-n.y},e.scale=function(t,r,n){t.x=r.x*n,t.y=r.y*n},e.scaleAndAdd=function(t,r,n,i){t.x=r.x+n.x*i,t.y=r.y+n.y*i},e.lerp=function(t,r,n,i){var a=1-i;t.x=a*r.x+i*n.x,t.y=a*r.y+i*n.y},e}();const ke=CG;var pf=Math.min,gf=Math.max,da=new ke,ha=new ke,va=new ke,pa=new ke,js=new ke,Ks=new ke,TG=function(){function e(t,r,n,i){n<0&&(t=t+n,n=-n),i<0&&(r=r+i,i=-i),this.x=t,this.y=r,this.width=n,this.height=i}return e.prototype.union=function(t){var r=pf(t.x,this.x),n=pf(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=gf(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=gf(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=r,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,n=t.width/r.width,i=t.height/r.height,a=gu();return mg(a,a,[-r.x,-r.y]),SG(a,a,[n,i]),mg(a,a,[t.x,t.y]),a},e.prototype.intersect=function(t,r){if(!t)return!1;t instanceof e||(t=e.create(t));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,l=t.x,u=t.x+t.width,f=t.y,c=t.y+t.height,d=!(a<l||u<i||s<f||c<o);if(r){var h=1/0,v=0,p=Math.abs(a-l),g=Math.abs(u-i),m=Math.abs(s-f),y=Math.abs(c-o),_=Math.min(p,g),b=Math.min(m,y);a<l||u<i?_>v&&(v=_,p<g?ke.set(Ks,-p,0):ke.set(Ks,g,0)):_<h&&(h=_,p<g?ke.set(js,p,0):ke.set(js,-g,0)),s<f||c<o?b>v&&(v=b,m<y?ke.set(Ks,0,-m):ke.set(Ks,0,y)):_<h&&(h=_,m<y?ke.set(js,0,m):ke.set(js,0,-y))}return r&&ke.copy(r,d?js:Ks),d},e.prototype.contain=function(t,r){var n=this;return t>=n.x&&t<=n.x+n.width&&r>=n.y&&r<=n.y+n.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,r){t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height},e.applyTransform=function(t,r,n){if(!n){t!==r&&e.copy(t,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];t.x=r.x*i+o,t.y=r.y*a+s,t.width=r.width*i,t.height=r.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}da.x=va.x=r.x,da.y=pa.y=r.y,ha.x=pa.x=r.x+r.width,ha.y=va.y=r.y+r.height,da.transform(n),pa.transform(n),ha.transform(n),va.transform(n),t.x=pf(da.x,ha.x,va.x,pa.x),t.y=pf(da.y,ha.y,va.y,pa.y);var l=gf(da.x,ha.x,va.x,pa.x),u=gf(da.y,ha.y,va.y,pa.y);t.width=l-t.x,t.height=u-t.y},e}();const et=TG;var dA="silent";function MG(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:AG}}function AG(){cA(this.event)}var EG=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Jn),Xs=function(){function e(t,r){this.x=t,this.y=r}return e}(),PG=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Qh=new et(0,0,0,0),hA=function(e){pe(t,e);function t(r,n,i,a,o){var s=e.call(this)||this;return s._hovered=new Xs(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new EG,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new sG(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(R(PG,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var n=r.zrX,i=r.zrY,a=vA(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new Xs(n,i):this.findHover(n,i),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},t.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new Xs(0,0)},t.prototype.dispatch=function(r,n){var i=this[r];i&&i.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},t.prototype.dispatchToElement=function(r,n,i){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+n,s=MG(n,r,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},t.prototype.findHover=function(r,n,i){var a=this.storage.getDisplayList(),o=new Xs(r,n);if(_1(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new et(r-u,n-u,l,l),c=a.length-1;c>=0;c--){var d=a[c];d!==i&&!d.ignore&&!d.ignoreCoarsePointer&&(!d.parent||!d.parent.ignoreCoarsePointer)&&(Qh.copy(d.getBoundingRect()),d.transform&&Qh.applyTransform(d.transform),Qh.intersect(f)&&s.push(d))}if(s.length)for(var h=4,v=Math.PI/12,p=Math.PI*2,g=0;g<u;g+=h)for(var m=0;m<p;m+=v){var y=r+g*Math.cos(m),_=n+g*Math.sin(m);if(_1(s,o,y,_,i),o.target)return o}}return o},t.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new bG);var i=this._gestureMgr;n==="start"&&i.clear();var a=i.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),a){var o=a.type;r.gestureEvent=o;var s=new Xs;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t}(Jn);R(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){hA.prototype[e]=function(t){var r=t.zrX,n=t.zrY,i=vA(this,r,n),a,o;if((e!=="mouseup"||!i)&&(a=this.findHover(r,n),o=a.target),e==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e==="mouseup")this._upEl=o;else if(e==="click"){if(this._downEl!==this._upEl||!this._downPoint||hg(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function LG(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var n=e,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(t,r))return!1;n.silent&&(i=!0)}var s=n.__hostTarget;n=s||n.parent}return i?dA:!0}return!1}function _1(e,t,r,n,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=LG(o,r,n))&&(!t.topTarget&&(t.topTarget=o),s!==dA)){t.target=o;break}}}function vA(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}const DG=hA;var pA=32,Zs=7;function IG(e){for(var t=0;e>=pA;)t|=e&1,e>>=1;return e+t}function b1(e,t,r,n){var i=t+1;if(i===r)return 1;if(n(e[i++],e[t])<0){for(;i<r&&n(e[i],e[i-1])<0;)i++;RG(e,t,i)}else for(;i<r&&n(e[i],e[i-1])>=0;)i++;return i-t}function RG(e,t,r){for(r--;t<r;){var n=e[t];e[t++]=e[r],e[r--]=n}}function w1(e,t,r,n,i){for(n===t&&n++;n<r;n++){for(var a=e[n],o=t,s=n,l;o<s;)l=o+s>>>1,i(a,e[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;u>0;)e[o+u]=e[o+u-1],u--}e[o]=a}}function Jh(e,t,r,n,i,a){var o=0,s=0,l=1;if(a(e,t[r+i])>0){for(s=n-i;l<s&&a(e,t[r+i+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;l<s&&a(e,t[r+i-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o<l;){var f=o+(l-o>>>1);a(e,t[r+f])>0?o=f+1:l=f}return l}function ev(e,t,r,n,i,a){var o=0,s=0,l=1;if(a(e,t[r+i])<0){for(s=i+1;l<s&&a(e,t[r+i-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l<s&&a(e,t[r+i+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o<l;){var f=o+(l-o>>>1);a(e,t[r+f])<0?l=f:o=f+1}return l}function OG(e,t){var r=Zs,n,i,a=0;e.length;var o=[];n=[],i=[];function s(h,v){n[a]=h,i[a]=v,a+=1}function l(){for(;a>1;){var h=a-2;if(h>=1&&i[h-1]<=i[h]+i[h+1]||h>=2&&i[h-2]<=i[h]+i[h-1])i[h-1]<i[h+1]&&h--;else if(i[h]>i[h+1])break;f(h)}}function u(){for(;a>1;){var h=a-2;h>0&&i[h-1]<i[h+1]&&h--,f(h)}}function f(h){var v=n[h],p=i[h],g=n[h+1],m=i[h+1];i[h]=p+m,h===a-3&&(n[h+1]=n[h+2],i[h+1]=i[h+2]),a--;var y=ev(e[g],e,v,p,0,t);v+=y,p-=y,p!==0&&(m=Jh(e[v+p-1],e,g,m,m-1,t),m!==0&&(p<=m?c(v,p,g,m):d(v,p,g,m)))}function c(h,v,p,g){var m=0;for(m=0;m<v;m++)o[m]=e[h+m];var y=0,_=p,b=h;if(e[b++]=e[_++],--g===0){for(m=0;m<v;m++)e[b+m]=o[y+m];return}if(v===1){for(m=0;m<g;m++)e[b+m]=e[_+m];e[b+g]=o[y];return}for(var x=r,w,S,C;;){w=0,S=0,C=!1;do if(t(e[_],o[y])<0){if(e[b++]=e[_++],S++,w=0,--g===0){C=!0;break}}else if(e[b++]=o[y++],w++,S=0,--v===1){C=!0;break}while((w|S)<x);if(C)break;do{if(w=ev(e[_],o,y,v,0,t),w!==0){for(m=0;m<w;m++)e[b+m]=o[y+m];if(b+=w,y+=w,v-=w,v<=1){C=!0;break}}if(e[b++]=e[_++],--g===0){C=!0;break}if(S=Jh(o[y],e,_,g,0,t),S!==0){for(m=0;m<S;m++)e[b+m]=e[_+m];if(b+=S,_+=S,g-=S,g===0){C=!0;break}}if(e[b++]=o[y++],--v===1){C=!0;break}x--}while(w>=Zs||S>=Zs);if(C)break;x<0&&(x=0),x+=2}if(r=x,r<1&&(r=1),v===1){for(m=0;m<g;m++)e[b+m]=e[_+m];e[b+g]=o[y]}else{if(v===0)throw new Error;for(m=0;m<v;m++)e[b+m]=o[y+m]}}function d(h,v,p,g){var m=0;for(m=0;m<g;m++)o[m]=e[p+m];var y=h+v-1,_=g-1,b=p+g-1,x=0,w=0;if(e[b--]=e[y--],--v===0){for(x=b-(g-1),m=0;m<g;m++)e[x+m]=o[m];return}if(g===1){for(b-=v,y-=v,w=b+1,x=y+1,m=v-1;m>=0;m--)e[w+m]=e[x+m];e[b]=o[_];return}for(var S=r;;){var C=0,T=0,E=!1;do if(t(o[_],e[y])<0){if(e[b--]=e[y--],C++,T=0,--v===0){E=!0;break}}else if(e[b--]=o[_--],T++,C=0,--g===1){E=!0;break}while((C|T)<S);if(E)break;do{if(C=v-ev(o[_],e,h,v,v-1,t),C!==0){for(b-=C,y-=C,v-=C,w=b+1,x=y+1,m=C-1;m>=0;m--)e[w+m]=e[x+m];if(v===0){E=!0;break}}if(e[b--]=o[_--],--g===1){E=!0;break}if(T=g-Jh(e[y],o,0,g,g-1,t),T!==0){for(b-=T,_-=T,g-=T,w=b+1,x=_+1,m=0;m<T;m++)e[w+m]=o[x+m];if(g<=1){E=!0;break}}if(e[b--]=e[y--],--v===0){E=!0;break}S--}while(C>=Zs||T>=Zs);if(E)break;S<0&&(S=0),S+=2}if(r=S,r<1&&(r=1),g===1){for(b-=v,y-=v,w=b+1,x=y+1,m=v-1;m>=0;m--)e[w+m]=e[x+m];e[b]=o[_]}else{if(g===0)throw new Error;for(x=b-(g-1),m=0;m<g;m++)e[x+m]=o[m]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function yc(e,t,r,n){r||(r=0),n||(n=e.length);var i=n-r;if(!(i<2)){var a=0;if(i<pA){a=b1(e,r,n,t),w1(e,r,n,r+a,t);return}var o=OG(e,t),s=IG(i);do{if(a=b1(e,r,n,t),a<s){var l=i;l>s&&(l=s),w1(e,r,r+l,r+a,t),a=l}o.pushRun(r,a),o.mergeRuns(),i-=a,r+=a}while(i!==0);o.forceMergeRuns()}}var Ir=1,ml=2,Vo=4,x1=!1;function tv(){x1||(x1=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function S1(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var kG=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=S1}return e.prototype.traverse=function(t,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,r)},e.prototype.getDisplayList=function(t,r){r=r||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(r),n},e.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var r=this._roots,n=this._displayList,i=0,a=r.length;i<a;i++)this._updateAndAddDisplayable(r[i],null,t);n.length=this._displayListLen,yc(n,S1)},e.prototype._updateAndAddDisplayable=function(t,r,n){if(!(t.ignore&&!n)){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)r=null;else if(i){r?r=r.slice():r=[];for(var a=i,o=t;a;)a.parent=o,a.updateTransform(),r.push(a),o=a,a=a.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),l=0;l<s.length;l++){var u=s[l];t.__dirty&&(u.__dirty|=Ir),this._updateAndAddDisplayable(u,r,n)}t.__dirty=0}else{var f=t;r&&r.length?f.__clipPaths=r:f.__clipPaths&&f.__clipPaths.length>0&&(f.__clipPaths=[]),isNaN(f.z)&&(tv(),f.z=0),isNaN(f.z2)&&(tv(),f.z2=0),isNaN(f.zlevel)&&(tv(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var c=t.getDecalElement&&t.getDecalElement();c&&this._updateAndAddDisplayable(c,r,n);var d=t.getTextGuideLine();d&&this._updateAndAddDisplayable(d,r,n);var h=t.getTextContent();h&&this._updateAndAddDisplayable(h,r,n)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,n=t.length;r<n;r++)this.delRoot(t[r]);return}var i=nt(this._roots,t);i>=0&&this._roots.splice(i,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}();const NG=kG;var gA;gA=Ve.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};const yg=gA;var _c={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)))},elasticOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},elasticInOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-_c.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?_c.bounceIn(e*2)*.5:_c.bounceOut(e*2-1)*.5+.5}};const mA=_c;var mf=Math.pow,Ki=Math.sqrt,jc=1e-8,yA=1e-4,C1=Ki(3),yf=1/3,Bn=Ns(),Xr=Ns(),as=Ns();function Gi(e){return e>-jc&&e<jc}function _A(e){return e>jc||e<-jc}function Gt(e,t,r,n,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*n+3*a*r)}function T1(e,t,r,n,i){var a=1-i;return 3*(((t-e)*a+2*(r-t)*i)*a+(n-r)*i*i)}function bA(e,t,r,n,i,a){var o=n+3*(t-r)-e,s=3*(r-t*2+e),l=3*(t-e),u=e-i,f=s*s-3*o*l,c=s*l-9*o*u,d=l*l-3*s*u,h=0;if(Gi(f)&&Gi(c))if(Gi(s))a[0]=0;else{var v=-l/s;v>=0&&v<=1&&(a[h++]=v)}else{var p=c*c-4*f*d;if(Gi(p)){var g=c/f,v=-s/o+g,m=-g/2;v>=0&&v<=1&&(a[h++]=v),m>=0&&m<=1&&(a[h++]=m)}else if(p>0){var y=Ki(p),_=f*s+1.5*o*(-c+y),b=f*s+1.5*o*(-c-y);_<0?_=-mf(-_,yf):_=mf(_,yf),b<0?b=-mf(-b,yf):b=mf(b,yf);var v=(-s-(_+b))/(3*o);v>=0&&v<=1&&(a[h++]=v)}else{var x=(2*f*s-3*o*c)/(2*Ki(f*f*f)),w=Math.acos(x)/3,S=Ki(f),C=Math.cos(w),v=(-s-2*S*C)/(3*o),m=(-s+S*(C+C1*Math.sin(w)))/(3*o),T=(-s+S*(C-C1*Math.sin(w)))/(3*o);v>=0&&v<=1&&(a[h++]=v),m>=0&&m<=1&&(a[h++]=m),T>=0&&T<=1&&(a[h++]=T)}}return h}function wA(e,t,r,n,i){var a=6*r-12*t+6*e,o=9*t+3*n-3*e-9*r,s=3*t-3*e,l=0;if(Gi(o)){if(_A(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var f=a*a-4*o*s;if(Gi(f))i[0]=-a/(2*o);else if(f>0){var c=Ki(f),u=(-a+c)/(2*o),d=(-a-c)/(2*o);u>=0&&u<=1&&(i[l++]=u),d>=0&&d<=1&&(i[l++]=d)}}return l}function Kc(e,t,r,n,i,a){var o=(t-e)*i+e,s=(r-t)*i+t,l=(n-r)*i+r,u=(s-o)*i+o,f=(l-s)*i+s,c=(f-u)*i+u;a[0]=e,a[1]=o,a[2]=u,a[3]=c,a[4]=c,a[5]=f,a[6]=l,a[7]=n}function xA(e,t,r,n,i,a,o,s,l,u,f){var c,d=.005,h=1/0,v,p,g,m;Bn[0]=l,Bn[1]=u;for(var y=0;y<1;y+=.05)Xr[0]=Gt(e,r,i,o,y),Xr[1]=Gt(t,n,a,s,y),g=ns(Bn,Xr),g<h&&(c=y,h=g);h=1/0;for(var _=0;_<32&&!(d<yA);_++)v=c-d,p=c+d,Xr[0]=Gt(e,r,i,o,v),Xr[1]=Gt(t,n,a,s,v),g=ns(Xr,Bn),v>=0&&g<h?(c=v,h=g):(as[0]=Gt(e,r,i,o,p),as[1]=Gt(t,n,a,s,p),m=ns(as,Bn),p<=1&&m<h?(c=p,h=m):d*=.5);return f&&(f[0]=Gt(e,r,i,o,c),f[1]=Gt(t,n,a,s,c)),Ki(h)}function BG(e,t,r,n,i,a,o,s,l){for(var u=e,f=t,c=0,d=1/l,h=1;h<=l;h++){var v=h*d,p=Gt(e,r,i,o,v),g=Gt(t,n,a,s,v),m=p-u,y=g-f;c+=Math.sqrt(m*m+y*y),u=p,f=g}return c}function Zt(e,t,r,n){var i=1-n;return i*(i*e+2*n*t)+n*n*r}function M1(e,t,r,n){return 2*((1-n)*(t-e)+n*(r-t))}function FG(e,t,r,n,i){var a=e-2*t+r,o=2*(t-e),s=e-n,l=0;if(Gi(a)){if(_A(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var f=o*o-4*a*s;if(Gi(f)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(f>0){var c=Ki(f),u=(-o+c)/(2*a),d=(-o-c)/(2*a);u>=0&&u<=1&&(i[l++]=u),d>=0&&d<=1&&(i[l++]=d)}}return l}function SA(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function Xc(e,t,r,n,i){var a=(t-e)*n+e,o=(r-t)*n+t,s=(o-a)*n+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function CA(e,t,r,n,i,a,o,s,l){var u,f=.005,c=1/0;Bn[0]=o,Bn[1]=s;for(var d=0;d<1;d+=.05){Xr[0]=Zt(e,r,i,d),Xr[1]=Zt(t,n,a,d);var h=ns(Bn,Xr);h<c&&(u=d,c=h)}c=1/0;for(var v=0;v<32&&!(f<yA);v++){var p=u-f,g=u+f;Xr[0]=Zt(e,r,i,p),Xr[1]=Zt(t,n,a,p);var h=ns(Xr,Bn);if(p>=0&&h<c)u=p,c=h;else{as[0]=Zt(e,r,i,g),as[1]=Zt(t,n,a,g);var m=ns(as,Bn);g<=1&&m<c?(u=g,c=m):f*=.5}}return l&&(l[0]=Zt(e,r,i,u),l[1]=Zt(t,n,a,u)),Ki(c)}function $G(e,t,r,n,i,a,o){for(var s=e,l=t,u=0,f=1/o,c=1;c<=o;c++){var d=c*f,h=Zt(e,r,i,d),v=Zt(t,n,a,d),p=h-s,g=v-l;u+=Math.sqrt(p*p+g*g),s=h,l=v}return u}var HG=/cubic-bezier\(([0-9,\.e ]+)\)/;function TA(e){var t=e&&HG.exec(e);if(t){var r=t[1].split(","),n=+zn(r[0]),i=+zn(r[1]),a=+zn(r[2]),o=+zn(r[3]);if(isNaN(n+i+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:bA(0,n,a,1,l,s)&&Gt(0,i,o,1,s[0])}}}var zG=function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Sr,this.ondestroy=t.ondestroy||Sr,this.onrestart=t.onrestart||Sr,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,i=t-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=i%n;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=We(t)?t:mA[t]||TA(t)},e}();const WG=zG;var MA=function(){function e(t){this.value=t}return e}(),VG=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new MA(t);return this.insertEntry(r),r},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var r=t.prev,n=t.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),GG=function(){function e(t){this._list=new VG,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var n=this._list,i=this._map,a=null;if(i[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new MA(r),s.key=t,n.insertEntry(s),i[t]=s}return a},e.prototype.get=function(t){var r=this._map[t],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}();const Wu=GG;var A1={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function $l(e){return e=Math.round(e),e<0?0:e>255?255:e}function E1(e){return e<0?0:e>1?1:e}function rv(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?$l(parseFloat(t)/100*255):$l(parseInt(t,10))}function Hl(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?E1(parseFloat(t)/100):E1(parseFloat(t))}function nv(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function Gr(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function _g(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var AA=new Wu(20),_f=null;function Eo(e,t){_f&&_g(_f,t),_f=AA.put(e,_f||t.slice())}function to(e,t){if(e){t=t||[];var r=AA.get(e);if(r)return _g(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in A1)return _g(t,A1[n]),Eo(e,t),t;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){Gr(t,0,0,0,1);return}return Gr(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),Eo(e,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){Gr(t,0,0,0,1);return}return Gr(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Eo(e,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Gr(t,+u[0],+u[1],+u[2],1):Gr(t,0,0,0,1);f=Hl(u.pop());case"rgb":if(u.length>=3)return Gr(t,rv(u[0]),rv(u[1]),rv(u[2]),u.length===3?f:Hl(u[3])),Eo(e,t),t;Gr(t,0,0,0,1);return;case"hsla":if(u.length!==4){Gr(t,0,0,0,1);return}return u[3]=Hl(u[3]),P1(u,t),Eo(e,t),t;case"hsl":if(u.length!==3){Gr(t,0,0,0,1);return}return P1(u,t),Eo(e,t),t;default:return}}Gr(t,0,0,0,1)}}function P1(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=Hl(e[1]),i=Hl(e[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],Gr(t,$l(nv(o,a,r+1/3)*255),$l(nv(o,a,r)*255),$l(nv(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function L1(e,t){var r=to(e);if(r){for(var n=0;n<3;n++)t<0?r[n]=r[n]*(1-t)|0:r[n]=(255-r[n])*t+r[n]|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return Ny(r,r.length===4?"rgba":"rgb")}}function Ny(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}}function Zc(e,t){var r=to(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}function UG(e){return e.type==="linear"}function YG(e){return e.type==="radial"}(function(){return Ve.hasGlobalWindow&&We(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}})();var bg=Array.prototype.slice;function li(e,t,r){return(t-e)*r+e}function iv(e,t,r,n){for(var i=t.length,a=0;a<i;a++)e[a]=li(t[a],r[a],n);return e}function qG(e,t,r,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=li(t[o][s],r[o][s],n)}return e}function bf(e,t,r,n){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+r[a]*n;return e}function D1(e,t,r,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+r[o][s]*n}return e}function jG(e,t){for(var r=e.length,n=t.length,i=r>n?t:e,a=Math.min(r,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,n);s++)i.push({offset:o.offset,color:o.color.slice()})}function KG(e,t,r){var n=e,i=t;if(!(!n.push||!i.push)){var a=n.length,o=i.length;if(a!==o){var s=a>o;if(s)n.length=o;else for(var l=a;l<o;l++)n.push(r===1?i[l]:bg.call(i[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(r===1)isNaN(n[l])&&(n[l]=i[l]);else for(var f=0;f<u;f++)isNaN(n[l][f])&&(n[l][f]=i[l][f])}}function bc(e){if(Tr(e)){var t=e.length;if(Tr(e[0])){for(var r=[],n=0;n<t;n++)r.push(bg.call(e[n]));return r}return bg.call(e)}return e}function wc(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],"rgba("+e.join(",")+")"}function XG(e){return Tr(e&&e[0])?2:1}var wf=0,xc=1,EA=2,yl=3,wg=4,xg=5,I1=6;function R1(e){return e===wg||e===xg}function xf(e){return e===xc||e===EA}var Qs=[0,0,0,0],ZG=function(){function e(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,r,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=I1,l=r;if(Tr(r)){var u=XG(r);s=u,(u===1&&!_t(r[0])||u===2&&!_t(r[0][0]))&&(o=!0)}else if(_t(r)&&!qc(r))s=wf;else if(Ce(r))if(!isNaN(+r))s=wf;else{var f=to(r);f&&(l=f,s=yl)}else if(Xd(r)){var c=oe({},l);c.colorStops=Oe(r.colorStops,function(h){return{offset:h.offset,color:to(h.color)}}),UG(r)?s=wg:YG(r)&&(s=xg),l=c}a===0?this.valType=s:(s!==this.valType||s===I1)&&(o=!0),this.discrete=this.discrete||o;var d={time:t,value:l,rawValue:r,percent:0};return n&&(d.easing=n,d.easingFunc=We(n)?n:mA[n]||TA(n)),i.push(d),d},e.prototype.prepare=function(t,r){var n=this.keyframes;this._needsSort&&n.sort(function(p,g){return p.time-g.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=xf(i),u=R1(i),f=0;f<a;f++){var c=n[f],d=c.value,h=o.value;c.percent=c.time/t,s||(l&&f!==a-1?KG(d,h,i):u&&jG(d.colorStops,h.colorStops))}if(!s&&i!==xg&&r&&this.needsAnimate()&&r.needsAnimate()&&i===r.valType&&!r._finished){this._additiveTrack=r;for(var v=n[0].value,f=0;f<a;f++)i===wf?n[f].additiveValue=n[f].value-v:i===yl?n[f].additiveValue=bf([],n[f].value,v,-1):xf(i)&&(n[f].additiveValue=i===xc?bf([],n[f].value,v,-1):D1([],n[f].value,v,-1))}},e.prototype.step=function(t,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,i=n?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===yl,f,c=this._lastFr,d=Math.min,h,v;if(s===1)h=v=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){var p=d(c+1,s-1);for(f=p;f>=0&&!(o[f].percent<=r);f--);f=d(f,s-2)}else{for(f=c;f<s&&!(o[f].percent>r);f++);f=d(f-1,s-2)}v=o[f+1],h=o[f]}if(h&&v){this._lastFr=f,this._lastFrP=r;var g=v.percent-h.percent,m=g===0?1:d((r-h.percent)/g,1);v.easingFunc&&(m=v.easingFunc(m));var y=n?this._additiveValue:u?Qs:t[l];if((xf(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)t[l]=m<1?h.rawValue:v.rawValue;else if(xf(a))a===xc?iv(y,h[i],v[i],m):qG(y,h[i],v[i],m);else if(R1(a)){var _=h[i],b=v[i],x=a===wg;t[l]={type:x?"linear":"radial",x:li(_.x,b.x,m),y:li(_.y,b.y,m),colorStops:Oe(_.colorStops,function(S,C){var T=b.colorStops[C];return{offset:li(S.offset,T.offset,m),color:wc(iv([],S.color,T.color,m))}}),global:b.global},x?(t[l].x2=li(_.x2,b.x2,m),t[l].y2=li(_.y2,b.y2,m)):t[l].r=li(_.r,b.r,m)}else if(u)iv(y,h[i],v[i],m),n||(t[l]=wc(y));else{var w=li(h[i],v[i],m);n?this._additiveValue=w:t[l]=w}n&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,n=this.propName,i=this._additiveValue;r===wf?t[n]=t[n]+i:r===yl?(to(t[n],Qs),bf(Qs,Qs,i,1),t[n]=wc(Qs)):r===xc?bf(t[n],t[n],i,1):r===EA&&D1(t[n],t[n],i,1)},e}(),QG=function(){function e(t,r,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&i){Dy("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,r,n){return this.whenWithKeys(t,r,xt(r),n)},e.prototype.whenWithKeys=function(t,r,n,i){for(var a=this._tracks,o=0;o<n.length;o++){var s=n[o],l=a[s];if(!l){l=a[s]=new ZG(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var c=f.keyframes,d=c[c.length-1];u=d&&d.value,f.valType===yl&&u&&(u=wc(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,bc(u),i),this._trackKeys.push(s)}l.addKeyframe(t,bc(r[s]),i)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,n=0;n<r;n++)t[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,r=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},e.prototype._setTracksFinished=function(){for(var t=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)t[r[n]].setFinished()},e.prototype._getAdditiveTrack=function(t){var r,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var a=n[i].getTrack(t);a&&(r=a)}return r},e.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var r=this,n=[],i=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var c=u[f-1];c&&(r._target[s.propName]=c.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var d=new WG({life:i,loop:this._loop,delay:this._delay||0,onframe:function(h){r._started=2;var v=r._additiveAnimators;if(v){for(var p=!1,g=0;g<v.length;g++)if(v[g]._clip){p=!0;break}p||(r._additiveAnimators=null)}for(var g=0;g<n.length;g++)n[g].step(r._target,h);var m=r._onframeCbs;if(m)for(var g=0;g<m.length;g++)m[g](r._target,h)},ondestroy:function(){r._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),t&&d.setEasing(t)}else this._doneCallback();return this}},e.prototype.stop=function(t){if(this._clip){var r=this._clip;t&&r.onframe(1),this._abortedCallback()}},e.prototype.delay=function(t){return this._delay=t,this},e.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},e.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},e.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(t){return this._tracks[t]},e.prototype.getTracks=function(){var t=this;return Oe(this._trackKeys,function(r){return t._tracks[r]})},e.prototype.stopTracks=function(t,r){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,a=0;a<t.length;a++){var o=n[t[a]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<i.length;a++)if(!n[i[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},e.prototype.saveTo=function(t,r,n){if(t){r=r||this._trackKeys;for(var i=0;i<r.length;i++){var a=r[i],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(t[a]=bc(l.rawValue))}}}},e.prototype.__changeFinalValue=function(t,r){r=r||xt(t);for(var n=0;n<r.length;n++){var i=r[n],a=this._tracks[i];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,t[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},e}();const By=QG;function Ko(){return new Date().getTime()}var JG=function(e){pe(t,e);function t(r){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(r){if(r.animation){var n=r.prev,i=r.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},t.prototype.update=function(r){for(var n=Ko()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,r||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(yg(n),!r._paused&&r.update())}yg(n)},t.prototype.start=function(){this._running||(this._time=Ko(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Ko(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Ko()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,n){n=n||{},this.start();var i=new By(r,n.loop);return this.addAnimator(i),i},t}(Jn);const eU=JG;var tU=300,av=Ve.domSupported,ov=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=Oe(e,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:e,touch:t,pointer:n}}(),O1={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},k1=!1;function Sg(e){var t=e.pointerType;return t==="pen"||t==="touch"}function rU(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function sv(e){e&&(e.zrByTouch=!0)}function nU(e,t){return Ur(e.dom,new iU(e,t),!0)}function PA(e,t){for(var r=t,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return n}var iU=function(){function e(t,r){this.stopPropagation=Sr,this.stopImmediatePropagation=Sr,this.preventDefault=Sr,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),vn={mousedown:function(e){e=Ur(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Ur(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=Ur(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=Ur(this.dom,e);var t=e.toElement||e.relatedTarget;PA(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){k1=!0,e=Ur(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){k1||(e=Ur(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=Ur(this.dom,e),sv(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),vn.mousemove.call(this,e),vn.mousedown.call(this,e)},touchmove:function(e){e=Ur(this.dom,e),sv(e),this.handler.processGesture(e,"change"),vn.mousemove.call(this,e)},touchend:function(e){e=Ur(this.dom,e),sv(e),this.handler.processGesture(e,"end"),vn.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<tU&&vn.click.call(this,e)},pointerdown:function(e){vn.mousedown.call(this,e)},pointermove:function(e){Sg(e)||vn.mousemove.call(this,e)},pointerup:function(e){vn.mouseup.call(this,e)},pointerout:function(e){Sg(e)||vn.mouseout.call(this,e)}};R(["click","dblclick","contextmenu"],function(e){vn[e]=function(t){t=Ur(this.dom,t),this.trigger(e,t)}});var Cg={pointermove:function(e){Sg(e)||Cg.mousemove.call(this,e)},pointerup:function(e){Cg.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function aU(e,t){var r=t.domHandlers;Ve.pointerEventsSupported?R(ov.pointer,function(n){Sc(t,n,function(i){r[n].call(e,i)})}):(Ve.touchEventsSupported&&R(ov.touch,function(n){Sc(t,n,function(i){r[n].call(e,i),rU(t)})}),R(ov.mouse,function(n){Sc(t,n,function(i){i=Ry(i),t.touching||r[n].call(e,i)})}))}function oU(e,t){Ve.pointerEventsSupported?R(O1.pointer,r):Ve.touchEventsSupported||R(O1.mouse,r);function r(n){function i(a){a=Ry(a),PA(e,a.target)||(a=nU(e,a),t.domHandlers[n].call(e,a))}Sc(t,n,i,{capture:!0})}}function Sc(e,t,r,n){e.mounted[t]=r,e.listenerOpts[t]=n,yG(e.domTarget,t,r,n)}function lv(e){var t=e.mounted;for(var r in t)t.hasOwnProperty(r)&&_G(e.domTarget,r,t[r],e.listenerOpts[r]);e.mounted={}}var N1=function(){function e(t,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=r}return e}(),sU=function(e){pe(t,e);function t(r,n){var i=e.call(this)||this;return i.__pointerCapturing=!1,i.dom=r,i.painterRoot=n,i._localHandlerScope=new N1(r,vn),av&&(i._globalHandlerScope=new N1(document,Cg)),aU(i,i._localHandlerScope),i}return t.prototype.dispose=function(){lv(this._localHandlerScope),av&&lv(this._globalHandlerScope)},t.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},t.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,av&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?oU(this,n):lv(n)}},t}(Jn);const lU=sU;var LA=1;Ve.hasGlobalWindow&&(LA=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Qc=LA,Tg=.4,Mg="#333",Ag="#ccc",uU="#eee",B1=Oy,F1=5e-5;function ga(e){return e>F1||e<-F1}var ma=[],Po=[],uv=gu(),fv=Math.abs,fU=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return ga(this.rotation)||ga(this.x)||ga(this.y)||ga(this.scaleX-1)||ga(this.scaleY-1)||ga(this.skewX)||ga(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&B1(n);return}n=n||gu(),r?this.getLocalTransform(n):B1(n),t&&(r?is(n,t,n):xG(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(ma);var n=ma[0]<0?-1:1,i=ma[1]<0?-1:1,a=((ma[0]-n)*r+n)/ma[0]||0,o=((ma[1]-i)*r+i)/ma[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||gu(),Qd(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var r=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),a=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(is(Po,t.invTransform,r),r=Po);var n=this.originX,i=this.originY;(n||i)&&(uv[4]=n,uv[5]=i,is(Po,r,uv),Po[4]-=n,Po[5]-=i,r=Po),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var n=[t,r],i=this.invTransform;return i&&rn(n,n,i),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],i=this.transform;return i&&rn(n,n,i),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&fv(t[0]-1)>1e-10&&fv(t[3]-1)>1e-10?Math.sqrt(fv(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){cU(this,t)},e.getLocalTransform=function(t,r){r=r||[];var n=t.originX||0,i=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,f=t.x,c=t.y,d=t.skewX?Math.tan(t.skewX):0,h=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||l){var v=n+s,p=i+l;r[4]=-v*a-d*p*o,r[5]=-p*o-h*v*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=h*a,r[2]=d*o,u&&ky(r,r,u),r[4]+=n+f,r[5]+=i+c,r},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),mu=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function cU(e,t){for(var r=0;r<mu.length;r++){var n=mu[r];e[n]=t[n]}}const Jd=fU;var $1={};function Nr(e,t){t=t||co;var r=$1[t];r||(r=$1[t]=new Wu(500));var n=r.get(e);return n==null&&(n=bo.measureText(e,t).width,r.put(e,n)),n}function H1(e,t,r,n){var i=Nr(e,t),a=$y(t),o=_l(0,i,r),s=Go(0,a,n),l=new et(o,s,i,a);return l}function Fy(e,t,r,n){var i=((e||"")+"").split(`
-`),a=i.length;if(a===1)return H1(i[0],t,r,n);for(var o=new et(0,0,0,0),s=0;s<i.length;s++){var l=H1(i[s],t,r,n);s===0?o.copy(l):o.union(l)}return o}function _l(e,t,r){return r==="right"?e-=t:r==="center"&&(e-=t/2),e}function Go(e,t,r){return r==="middle"?e-=t/2:r==="bottom"&&(e-=t),e}function $y(e){return Nr("国",e)}function ta(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function Jc(e,t,r){var n=t.position||"inside",i=t.distance!=null?t.distance:5,a=r.height,o=r.width,s=a/2,l=r.x,u=r.y,f="left",c="top";if(n instanceof Array)l+=ta(n[0],r.width),u+=ta(n[1],r.height),f=null,c=null;else switch(n){case"left":l-=i,u+=s,f="right",c="middle";break;case"right":l+=i+o,u+=s,c="middle";break;case"top":l+=o/2,u-=i,f="center",c="bottom";break;case"bottom":l+=o/2,u+=a+i,f="center";break;case"inside":l+=o/2,u+=s,f="center",c="middle";break;case"insideLeft":l+=i,u+=s,c="middle";break;case"insideRight":l+=o-i,u+=s,f="right",c="middle";break;case"insideTop":l+=o/2,u+=i,f="center";break;case"insideBottom":l+=o/2,u+=a-i,f="center",c="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,f="right";break;case"insideBottomLeft":l+=i,u+=a-i,c="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,f="right",c="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=f,e.verticalAlign=c,e}var cv="__zr_normal__",dv=mu.concat(["ignore"]),dU=ea(mu,function(e,t){return e[t]=!0,e},{ignore:!1}),Lo={},hU=new et(0,0,0,0),Hy=function(){function e(t){this.id=aA(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=r,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=r.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;if(a.copyTransform(r),n.position!=null){var f=hU;n.layoutRect?f.copy(n.layoutRect):f.copy(this.getBoundingRect()),i||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Lo,n,f):Jc(Lo,n,f),a.x=Lo.x,a.y=Lo.y,o=Lo.align,s=Lo.verticalAlign;var c=n.origin;if(c&&n.rotation!=null){var d=void 0,h=void 0;c==="center"?(d=f.width*.5,h=f.height*.5):(d=ta(c[0],f.width),h=ta(c[1],f.height)),u=!0,a.originX=-a.x+d+(i?0:f.x),a.originY=-a.y+h+(i?0:f.y)}}n.rotation!=null&&(a.rotation=n.rotation);var v=n.offset;v&&(a.x+=v[0],a.y+=v[1],u||(a.originX=-v[0],a.originY=-v[1]));var p=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,y=void 0,_=void 0;p&&this.canBeInsideText()?(m=n.insideFill,y=n.insideStroke,(m==null||m==="auto")&&(m=this.getInsideTextFill()),(y==null||y==="auto")&&(y=this.getInsideTextStroke(m),_=!0)):(m=n.outsideFill,y=n.outsideStroke,(m==null||m==="auto")&&(m=this.getOutsideFill()),(y==null||y==="auto")&&(y=this.getOutsideStroke(m),_=!0)),m=m||"#000",(m!==g.fill||y!==g.stroke||_!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=m,g.stroke=y,g.autoStroke=_,g.align=o,g.verticalAlign=s,r.setDefaultTextStyle(g)),r.__dirty|=Ir,l&&r.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Ag:Mg},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&to(r);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,Ny(n,"rgba")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},oe(this.extra,r)):this[t]=r},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(Pe(t))for(var n=t,i=xt(n),a=0;a<i.length;a++){var o=i[a];this.attrKV(o,t[o])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var r=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],a=i.__fromStateTransition;if(!(i.getLoop()||a&&a!==cv)){var o=i.targetName,s=o?r[o]:r;i.saveTo(s)}}},e.prototype._innerSaveToNormal=function(t){var r=this._normalState;r||(r=this._normalState={}),t.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(t,r,dv)},e.prototype._savePrimaryToNormal=function(t,r,n){for(var i=0;i<n.length;i++){var a=n[i];t[a]!=null&&!(a in r)&&(r[a]=this[a])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var r=this.states;return r[t]||(r[t]={}),r[t]},e.prototype.clearStates=function(t){this.useState(cv,!1,t)},e.prototype.useState=function(t,r,n,i){var a=t===cv,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(nt(s,t)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!a){Dy("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||i);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var c=this._textContent,d=this._textGuide;return c&&c.useState(t,r,n,f),d&&d.useState(t,r,n,f),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ir),u}}},e.prototype.useStates=function(t,r,n){if(!t.length)this.clearStates();else{var i=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(t[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=t[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,t)),f||(f=this.states[u]),f&&i.push(f)}var c=i[o-1],d=!!(c&&c.hoverLayer||n);d&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(i),v=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(t.join(","),h,this._normalState,!1,!r&&!this.__inHover&&v&&v.duration>0,v);var p=this._textContent,g=this._textGuide;p&&p.useStates(t,r,d),g&&g.useStates(t,r,d),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ir)}},e.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var r=this.animators[t];r.targetName&&r.changeTarget(this[r.targetName])}},e.prototype.removeState=function(t){var r=nt(this.currentStates,t);if(r>=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},e.prototype.replaceState=function(t,r,n){var i=this.currentStates.slice(),a=nt(i,t),o=nt(i,r)>=0;a>=0?o?i.splice(a,1):i[a]=r:n&&!o&&i.push(r),this.useStates(i)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},n,i=0;i<t.length;i++){var a=t[i];oe(r,a),a.textConfig&&(n=n||{},oe(n,a.textConfig))}return n&&(r.textConfig=n),r},e.prototype._applyStateObj=function(t,r,n,i,a,o){var s=!(r&&i);r&&r.textConfig?(this.textConfig=oe({},i?this.textConfig:n.textConfig),oe(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,f=0;f<dv.length;f++){var c=dv[f],d=a&&dU[c];r&&r[c]!=null?d?(u=!0,l[c]=r[c]):this[c]=r[c]:s&&n[c]!=null&&(d?(u=!0,l[c]=n[c]):this[c]=n[c])}if(!a)for(var f=0;f<this.animators.length;f++){var h=this.animators[f],v=h.targetName;h.getLoop()||h.__changeFinalValue(v?(r||n)[v]:r||n)}u&&this._transitionState(t,l,o)},e.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var r=this.__zr;r&&t.addSelfToZr(r),t.__zr=r,t.__hostTarget=this}},e.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},e.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(t){var r=this._textContent;r!==t&&(r&&r!==t&&this.removeTextContent(),t.innerTransformable=new Jd,this._attachComponent(t),this._textContent=t,this.markRedraw())},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),oe(this.textConfig,t),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=Ir;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var r=this._textContent,n=this._textGuide;r&&(r.__inHover=t),n&&(n.__inHover=t)},e.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.addAnimator(r[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.removeAnimator(r[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},e.prototype.animate=function(t,r,n){var i=t?this[t]:this,a=new By(i,r,n);return t&&(a.targetName=t),this.addAnimator(a,t),a},e.prototype.addAnimator=function(t,r){var n=this.__zr,i=this;t.during(function(){i.updateDuringAnimation(r)}).done(function(){var a=i.animators,o=nt(a,t);o>=0&&a.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var n=this.animators,i=n.length,a=[],o=0;o<i;o++){var s=n[o];!t||t===s.scope?s.stop(r):a.push(s)}return this.animators=a,this},e.prototype.animateTo=function(t,r,n){hv(this,t,r,n)},e.prototype.animateFrom=function(t,r,n){hv(this,t,r,n,!0)},e.prototype._transitionState=function(t,r,n,i){for(var a=hv(this,r,n,i),o=0;o<a.length;o++)a[o].__fromStateTransition=t},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=Ir;function r(n,i,a,o){Object.defineProperty(t,n,{get:function(){if(!this[i]){var l=this[i]=[];s(this,l)}return this[i]},set:function(l){this[a]=l[0],this[o]=l[1],this[i]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[a]},set:function(f){l[a]=f}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(f){l[o]=f}})}}Object.defineProperty&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))}(),e}();Qn(Hy,Jn);Qn(Hy,Jd);function hv(e,t,r,n,i){r=r||{};var a=[];DA(e,"",e,t,r,n,a,i);var o=a.length,s=!1,l=r.done,u=r.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},c=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&r.during&&a[0].during(function(v,p){r.during(p)});for(var d=0;d<a.length;d++){var h=a[d];f&&h.done(f),c&&h.aborted(c),r.force&&h.duration(r.duration),h.start(r.easing)}return a}function vv(e,t,r){for(var n=0;n<r;n++)e[n]=t[n]}function vU(e){return Tr(e[0])}function pU(e,t,r){if(Tr(t[r]))if(Tr(e[r])||(e[r]=[]),$r(t[r])){var n=t[r].length;e[r].length!==n&&(e[r]=new t[r].constructor(n),vv(e[r],t[r],n))}else{var i=t[r],a=e[r],o=i.length;if(vU(i))for(var s=i[0].length,l=0;l<o;l++)a[l]?vv(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else vv(a,i,o);a.length=i.length}else e[r]=t[r]}function gU(e,t){return e===t||Tr(e)&&Tr(t)&&mU(e,t)}function mU(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}function DA(e,t,r,n,i,a,o,s){for(var l=xt(n),u=i.duration,f=i.delay,c=i.additive,d=i.setToFinal,h=!Pe(a),v=e.animators,p=[],g=0;g<l.length;g++){var m=l[g],y=n[m];if(y!=null&&r[m]!=null&&(h||a[m]))if(Pe(y)&&!Tr(y)&&!Xd(y)){if(t){s||(r[m]=y,e.updateDuringAnimation(t));continue}DA(e,m,r[m],y,i,a&&a[m],o,s)}else p.push(m);else s||(r[m]=y,e.updateDuringAnimation(t),p.push(m))}var _=p.length;if(!c&&_)for(var b=0;b<v.length;b++){var x=v[b];if(x.targetName===t){var w=x.stopTracks(p);if(w){var S=nt(v,x);v.splice(S,1)}}}if(i.force||(p=Ft(p,function(A){return!gU(n[A],r[A])}),_=p.length),_>0||i.force&&!o.length){var C=void 0,T=void 0,E=void 0;if(s){T={},d&&(C={});for(var b=0;b<_;b++){var m=p[b];T[m]=r[m],d?C[m]=n[m]:r[m]=n[m]}}else if(d){E={};for(var b=0;b<_;b++){var m=p[b];E[m]=bc(r[m]),pU(r,n,m)}}var x=new By(r,!1,!1,c?Ft(v,function(M){return M.targetName===t}):null);x.targetName=t,i.scope&&(x.scope=i.scope),d&&C&&x.whenWithKeys(0,C,p),E&&x.whenWithKeys(0,E,p),x.whenWithKeys(u??500,s?T:n,p).delay(f||0),e.addAnimator(x,t),o.push(x)}}const IA=Hy;var RA=function(e){pe(t,e);function t(r){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(r){return this._children[r]},t.prototype.childOfName=function(r){for(var n=this._children,i=0;i<n.length;i++)if(n[i].name===r)return n[i]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},t.prototype.addBefore=function(r,n){if(r&&r!==this&&r.parent!==this&&n&&n.parent===this){var i=this._children,a=i.indexOf(n);a>=0&&(i.splice(a,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,n){var i=nt(this._children,r);return i>=0&&this.replaceAt(n,i),this},t.prototype.replaceAt=function(r,n){var i=this._children,a=i[n];if(r&&r!==this&&r.parent!==this&&r!==a){i[n]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},t.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(r){var n=this.__zr,i=this._children,a=nt(i,r);return a<0?this:(i.splice(a,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,i=0;i<r.length;i++){var a=r[i];n&&a.removeSelfFromZr(n),a.parent=null}return r.length=0,this},t.prototype.eachChild=function(r,n){for(var i=this._children,a=0;a<i.length;a++){var o=i[a];r.call(n,o,a)}return this},t.prototype.traverse=function(r,n){for(var i=0;i<this._children.length;i++){var a=this._children[i],o=r.call(n,a);a.isGroup&&!o&&a.traverse(r,n)}return this},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.addSelfToZr(r)}},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(r)}},t.prototype.getBoundingRect=function(r){for(var n=new et(0,0,0,0),i=r||this._children,a=[],o=null,s=0;s<i.length;s++){var l=i[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(a);f?(et.applyTransform(n,u,f),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},t}(IA);RA.prototype.type="group";const sn=RA;/*!
+***************************************************************************** */var ug=function(e,t){return ug=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},ug(e,t)};function pe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ug(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var OV=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),kV=function(){function e(){this.browser=new OV,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return e}(),$a=new kV;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?($a.wxa=!0,$a.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?$a.worker=!0:typeof navigator>"u"?($a.node=!0,$a.svgSupported=!0):NV(navigator.userAgent,$a);function NV(e,t){var r=t.browser,n=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);n&&(r.firefox=!0,r.version=n[1]),i&&(r.ie=!0,r.version=i[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}const Ve=$a;var Ey=12,BV="sans-serif",co=Ey+"px "+BV,FV=20,$V=100,HV="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function zV(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r<e.length;r++){var n=String.fromCharCode(r+32),i=(e.charCodeAt(r)-FV)/$V;t[n]=i}return t}var WV=zV(HV),bo={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var e,t;return function(r,n){if(!e){var i=bo.createCanvas();e=i&&i.getContext("2d")}if(e)return t!==n&&(t=e.font=n||co),e.measureText(r);r=r||"",n=n||co;var a=/(\d+)px/.exec(n),o=a&&+a[1]||Ey,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=WV[r[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(e,t,r){var n=new Image;return n.onload=t,n.onerror=r,n.src=e,n}},iA=ta(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),aA=ta(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),Wu=Object.prototype.toString,Kd=Array.prototype,VV=Kd.forEach,GV=Kd.filter,Py=Kd.slice,UV=Kd.map,d1=function(){}.constructor,pf=d1?d1.prototype:null,Ly="__proto__",YV=2311;function oA(){return YV++}function Dy(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function Ze(e){if(e==null||typeof e!="object")return e;var t=e,r=Wu.call(e);if(r==="[object Array]"){if(!Fl(e)){t=[];for(var n=0,i=e.length;n<i;n++)t[n]=Ze(e[n])}}else if(aA[r]){if(!Fl(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var n=0,i=e.length;n<i;n++)t[n]=e[n]}}}else if(!iA[r]&&!Fl(e)&&!qc(e)){t={};for(var o in e)e.hasOwnProperty(o)&&o!==Ly&&(t[o]=Ze(e[o]))}return t}function at(e,t,r){if(!De(t)||!De(e))return r?Ze(t):e;for(var n in t)if(t.hasOwnProperty(n)&&n!==Ly){var i=e[n],a=t[n];De(a)&&De(i)&&!ge(a)&&!ge(i)&&!qc(a)&&!qc(i)&&!h1(a)&&!h1(i)&&!Fl(a)&&!Fl(i)?at(i,a,r):(r||!(n in e))&&(e[n]=Ze(t[n]))}return e}function oe(e,t){if(Object.assign)Object.assign(e,t);else for(var r in t)t.hasOwnProperty(r)&&r!==Ly&&(e[r]=t[r]);return e}function ft(e,t,r){for(var n=xt(t),i=0;i<n.length;i++){var a=n[i];(r?t[a]!=null:e[a]==null)&&(e[a]=t[a])}return e}bo.createCanvas;function it(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r}return-1}function qV(e,t){var r=e.prototype;function n(){}n.prototype=t.prototype,e.prototype=new n;for(var i in r)r.hasOwnProperty(i)&&(e.prototype[i]=r[i]);e.prototype.constructor=e,e.superClass=t}function Qn(e,t,r){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(t),i=0;i<n.length;i++){var a=n[i];a!=="constructor"&&(r?t[a]!=null:e[a]==null)&&(e[a]=t[a])}else ft(e,t,r)}function Tr(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function R(e,t,r){if(e&&t)if(e.forEach&&e.forEach===VV)e.forEach(t,r);else if(e.length===+e.length)for(var n=0,i=e.length;n<i;n++)t.call(r,e[n],n,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(r,e[a],a,e)}function Oe(e,t,r){if(!e)return[];if(!t)return Iy(e);if(e.map&&e.map===UV)return e.map(t,r);for(var n=[],i=0,a=e.length;i<a;i++)n.push(t.call(r,e[i],i,e));return n}function ta(e,t,r,n){if(e&&t){for(var i=0,a=e.length;i<a;i++)r=t.call(n,r,e[i],i,e);return r}}function $t(e,t,r){if(!e)return[];if(!t)return Iy(e);if(e.filter&&e.filter===GV)return e.filter(t,r);for(var n=[],i=0,a=e.length;i<a;i++)t.call(r,e[i],i,e)&&n.push(e[i]);return n}function xt(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t}function jV(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return e.apply(t,r.concat(Py.call(arguments)))}}var _t=pf&&We(pf.bind)?pf.call.bind(pf.bind):jV;function Dt(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){return e.apply(this,t.concat(Py.call(arguments)))}}function ge(e){return Array.isArray?Array.isArray(e):Wu.call(e)==="[object Array]"}function We(e){return typeof e=="function"}function Te(e){return typeof e=="string"}function fg(e){return Wu.call(e)==="[object String]"}function bt(e){return typeof e=="number"}function De(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function h1(e){return!!iA[Wu.call(e)]}function $r(e){return!!aA[Wu.call(e)]}function qc(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function Xd(e){return e.colorStops!=null}function KV(e){return e.image!=null}function jc(e){return e!==e}function pu(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,n=e.length;r<n;r++)if(e[r]!=null)return e[r]}function je(e,t){return e??t}function Bl(e,t,r){return e??t??r}function Iy(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return Py.apply(e,t)}function sA(e){if(typeof e=="number")return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function yi(e,t){if(!e)throw new Error(t)}function zn(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var lA="__ec_primitive__";function cg(e){e[lA]=!0}function Fl(e){return e[lA]}var XV=function(){function e(){this.data={}}return e.prototype.delete=function(t){var r=this.has(t);return r&&delete this.data[t],r},e.prototype.has=function(t){return this.data.hasOwnProperty(t)},e.prototype.get=function(t){return this.data[t]},e.prototype.set=function(t,r){return this.data[t]=r,this},e.prototype.keys=function(){return xt(this.data)},e.prototype.forEach=function(t){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&t(r[n],n)},e}(),uA=typeof Map=="function";function ZV(){return uA?new Map:new XV}var QV=function(){function e(t){var r=ge(t);this.data=ZV();var n=this;t instanceof e?t.each(i):t&&R(t,i);function i(a,o){r?n.set(a,o):n.set(o,a)}}return e.prototype.hasKey=function(t){return this.data.has(t)},e.prototype.get=function(t){return this.data.get(t)},e.prototype.set=function(t,r){return this.data.set(t,r),r},e.prototype.each=function(t,r){this.data.forEach(function(n,i){t.call(r,n,i)})},e.prototype.keys=function(){var t=this.data.keys();return uA?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e}();function Ge(e){return new QV(e)}function JV(e,t){for(var r=new e.constructor(e.length+t.length),n=0;n<e.length;n++)r[n]=e[n];for(var i=e.length,n=0;n<t.length;n++)r[n+i]=t[n];return r}function Zd(e,t){var r;if(Object.create)r=Object.create(e);else{var n=function(){};n.prototype=e,r=new n}return t&&oe(r,t),r}function fA(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function Ts(e,t){return e.hasOwnProperty(t)}function Sr(){}var eG=180/Math.PI;function Ns(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function tG(e){return[e[0],e[1]]}function v1(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function rG(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function nG(e){return Math.sqrt(iG(e))}function iG(e){return e[0]*e[0]+e[1]*e[1]}function qh(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function aG(e,t){var r=nG(t);return r===0?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}function dg(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var hg=dg;function oG(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var ns=oG;function jh(e,t,r,n){return e[0]=t[0]+n*(r[0]-t[0]),e[1]=t[1]+n*(r[1]-t[1]),e}function rn(e,t,r){var n=t[0],i=t[1];return e[0]=r[0]*n+r[2]*i+r[4],e[1]=r[1]*n+r[3]*i+r[5],e}function qo(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function jo(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}var Ao=function(){function e(t,r){this.target=t,this.topTarget=r&&r.topTarget}return e}(),sG=function(){function e(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(t){for(var r=t.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Ao(r,t),"dragstart",t.event))},e.prototype._drag=function(t){var r=this._draggingTarget;if(r){var n=t.offsetX,i=t.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,r.drift(a,o,t),this.handler.dispatchToElement(new Ao(r,t),"drag",t.event);var s=this.handler.findHover(n,i,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Ao(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new Ao(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new Ao(r,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Ao(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e}();const lG=sG;var uG=function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,r,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r=="function"&&(i=n,n=r,r=null),!n||!t)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),a[t]||(a[t]=[]);for(var s=0;s<a[t].length;s++)if(a[t][s].h===n)return this;var l={h:n,query:r,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},u=a[t].length-1,f=a[t][u];return f&&f.callAtLast?a[t].splice(u,0,l):a[t].push(l),this},e.prototype.isSilent=function(t){var r=this._$handlers;return!r||!r[t]||!r[t].length},e.prototype.off=function(t,r){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(r){if(n[t]){for(var i=[],a=0,o=n[t].length;a<o;a++)n[t][a].h!==r&&i.push(n[t][a]);n[t]=i}n[t]&&n[t].length===0&&delete n[t]}else delete n[t];return this},e.prototype.trigger=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=r.length,s=i.length,l=0;l<s;l++){var u=i[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(t,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,r[0]);break;case 2:u.h.call(u.ctx,r[0],r[1]);break;default:u.h.apply(u.ctx,r);break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e.prototype.triggerWithContext=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=r.length,s=r[o-1],l=i.length,u=0;u<l;u++){var f=i[u];if(!(a&&a.filter&&f.query!=null&&!a.filter(t,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,r[0]);break;case 2:f.h.call(s,r[0],r[1]);break;default:f.h.apply(s,r.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e}();const Jn=uG;var fG=Math.log(2);function vg(e,t,r,n,i,a){var o=n+"-"+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~i)/fG);return e[r][l]}for(var u=n|1<<r,f=r+1;n&1<<f;)f++;for(var c=0,d=0,h=0;d<s;d++){var v=1<<d;v&i||(c+=(h%2?-1:1)*e[r][d]*vg(e,t-1,f,u,i|v,a),h++)}return a[o]=c,c}function p1(e,t){var r=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],n={},i=vg(r,8,0,0,0,n);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*vg(r,7,o===0?1:0,1<<o,1<<s,n)/i*t[o];return function(l,u,f){var c=u*a[6]+f*a[7]+1;l[0]=(u*a[0]+f*a[1]+a[2])/c,l[1]=(u*a[3]+f*a[4]+a[5])/c}}}var g1="___zrEVENTSAVED",Kh=[];function cG(e,t,r,n,i){return pg(Kh,t,n,i,!0)&&pg(e,r,Kh[0],Kh[1])}function pg(e,t,r,n,i){if(t.getBoundingClientRect&&Ve.domSupported&&!cA(t)){var a=t[g1]||(t[g1]={}),o=dG(t,a),s=hG(o,a,i);if(s)return s(e,r,n),!0}return!1}function dG(e,t){var r=t.markers;if(r)return r;r=t.markers=[];for(var n=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return r}function hG(e,t,r){for(var n=r?"invTrans":"trans",i=t[n],a=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=e[u].getBoundingClientRect(),c=2*u,d=f.left,h=f.top;o.push(d,h),l=l&&a&&d===a[c]&&h===a[c+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&i?i:(t.srcCoords=o,t[n]=r?p1(s,o):p1(o,s))}function cA(e){return e.nodeName.toUpperCase()==="CANVAS"}var vG=/([&<>"'])/g,pG={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Kr(e){return e==null?"":(e+"").replace(vG,function(t,r){return pG[r]})}var gG=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Xh=[],mG=Ve.browser.firefox&&+Ve.browser.version.split(".")[0]<39;function gg(e,t,r,n){return r=r||{},n?m1(e,t,r):mG&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):m1(e,t,r),r}function m1(e,t,r){if(Ve.domSupported&&e.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(cA(e)){var a=e.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(pg(Xh,e,n,i)){r.zrX=Xh[0],r.zrY=Xh[1];return}}r.zrX=r.zrY=0}function Ry(e){return e||window.event}function Ur(e,t,r){if(t=Ry(t),t.zrX!=null)return t;var n=t.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&gg(e,o,t,r)}else{gg(e,t,t,r);var a=yG(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&gG.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function yG(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,n=e.deltaY;if(r==null||n==null)return t;var i=Math.abs(n!==0?n:r),a=n>0?-1:n<0?1:r>0?-1:1;return 3*i*a}function _G(e,t,r,n){e.addEventListener(t,r,n)}function bG(e,t,r,n){e.removeEventListener(t,r,n)}var dA=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},wG=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,n){return this._doTrack(t,r,n),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,n){var i=t.touches;if(i){for(var a={points:[],touches:[],target:r,event:t},o=0,s=i.length;o<s;o++){var l=i[o],u=gg(n,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},e.prototype._recognize=function(t){for(var r in Zh)if(Zh.hasOwnProperty(r)){var n=Zh[r](this._track,t);if(n)return n}},e}();function y1(e){var t=e[1][0]-e[0][0],r=e[1][1]-e[0][1];return Math.sqrt(t*t+r*r)}function xG(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var Zh={pinch:function(e,t){var r=e.length;if(r){var n=(e[r-1]||{}).points,i=(e[r-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=y1(n)/y1(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=xG(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function gu(){return[1,0,0,1,0,0]}function Oy(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function SG(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function is(e,t,r){var n=t[0]*r[0]+t[2]*r[1],i=t[1]*r[0]+t[3]*r[1],a=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],l=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=n,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=l,e}function mg(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function ky(e,t,r){var n=t[0],i=t[2],a=t[4],o=t[1],s=t[3],l=t[5],u=Math.sin(r),f=Math.cos(r);return e[0]=n*f+o*u,e[1]=-n*u+o*f,e[2]=i*f+s*u,e[3]=-i*u+f*s,e[4]=f*a+u*l,e[5]=f*l-u*a,e}function CG(e,t,r){var n=r[0],i=r[1];return e[0]=t[0]*n,e[1]=t[1]*i,e[2]=t[2]*n,e[3]=t[3]*i,e[4]=t[4]*n,e[5]=t[5]*i,e}function Qd(e,t){var r=t[0],n=t[2],i=t[4],a=t[1],o=t[3],s=t[5],l=r*o-a*n;return l?(l=1/l,e[0]=o*l,e[1]=-a*l,e[2]=-n*l,e[3]=r*l,e[4]=(n*s-o*i)*l,e[5]=(a*i-r*s)*l,e):null}var TG=function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,n=this.y-t.y;return Math.sqrt(r*r+n*n)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,n=this.y-t.y;return r*r+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var r=this.x,n=this.y;return this.x=t[0]*r+t[2]*n+t[4],this.y=t[1]*r+t[3]*n+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,n){t.x=r,t.y=n},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,n){t.x=r.x+n.x,t.y=r.y+n.y},e.sub=function(t,r,n){t.x=r.x-n.x,t.y=r.y-n.y},e.scale=function(t,r,n){t.x=r.x*n,t.y=r.y*n},e.scaleAndAdd=function(t,r,n,i){t.x=r.x+n.x*i,t.y=r.y+n.y*i},e.lerp=function(t,r,n,i){var a=1-i;t.x=a*r.x+i*n.x,t.y=a*r.y+i*n.y},e}();const ke=TG;var gf=Math.min,mf=Math.max,ha=new ke,va=new ke,pa=new ke,ga=new ke,js=new ke,Ks=new ke,MG=function(){function e(t,r,n,i){n<0&&(t=t+n,n=-n),i<0&&(r=r+i,i=-i),this.x=t,this.y=r,this.width=n,this.height=i}return e.prototype.union=function(t){var r=gf(t.x,this.x),n=gf(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=mf(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=mf(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=r,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,n=t.width/r.width,i=t.height/r.height,a=gu();return mg(a,a,[-r.x,-r.y]),CG(a,a,[n,i]),mg(a,a,[t.x,t.y]),a},e.prototype.intersect=function(t,r){if(!t)return!1;t instanceof e||(t=e.create(t));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,l=t.x,u=t.x+t.width,f=t.y,c=t.y+t.height,d=!(a<l||u<i||s<f||c<o);if(r){var h=1/0,v=0,p=Math.abs(a-l),g=Math.abs(u-i),m=Math.abs(s-f),y=Math.abs(c-o),_=Math.min(p,g),b=Math.min(m,y);a<l||u<i?_>v&&(v=_,p<g?ke.set(Ks,-p,0):ke.set(Ks,g,0)):_<h&&(h=_,p<g?ke.set(js,p,0):ke.set(js,-g,0)),s<f||c<o?b>v&&(v=b,m<y?ke.set(Ks,0,-m):ke.set(Ks,0,y)):_<h&&(h=_,m<y?ke.set(js,0,m):ke.set(js,0,-y))}return r&&ke.copy(r,d?js:Ks),d},e.prototype.contain=function(t,r){var n=this;return t>=n.x&&t<=n.x+n.width&&r>=n.y&&r<=n.y+n.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,r){t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height},e.applyTransform=function(t,r,n){if(!n){t!==r&&e.copy(t,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];t.x=r.x*i+o,t.y=r.y*a+s,t.width=r.width*i,t.height=r.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}ha.x=pa.x=r.x,ha.y=ga.y=r.y,va.x=ga.x=r.x+r.width,va.y=pa.y=r.y+r.height,ha.transform(n),ga.transform(n),va.transform(n),pa.transform(n),t.x=gf(ha.x,va.x,pa.x,ga.x),t.y=gf(ha.y,va.y,pa.y,ga.y);var l=mf(ha.x,va.x,pa.x,ga.x),u=mf(ha.y,va.y,pa.y,ga.y);t.width=l-t.x,t.height=u-t.y},e}();const tt=MG;var hA="silent";function AG(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:EG}}function EG(){dA(this.event)}var PG=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Jn),Xs=function(){function e(t,r){this.x=t,this.y=r}return e}(),LG=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Qh=new tt(0,0,0,0),vA=function(e){pe(t,e);function t(r,n,i,a,o){var s=e.call(this)||this;return s._hovered=new Xs(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new PG,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new lG(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(R(LG,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var n=r.zrX,i=r.zrY,a=pA(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new Xs(n,i):this.findHover(n,i),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},t.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new Xs(0,0)},t.prototype.dispatch=function(r,n){var i=this[r];i&&i.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},t.prototype.dispatchToElement=function(r,n,i){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+n,s=AG(n,r,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},t.prototype.findHover=function(r,n,i){var a=this.storage.getDisplayList(),o=new Xs(r,n);if(_1(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new tt(r-u,n-u,l,l),c=a.length-1;c>=0;c--){var d=a[c];d!==i&&!d.ignore&&!d.ignoreCoarsePointer&&(!d.parent||!d.parent.ignoreCoarsePointer)&&(Qh.copy(d.getBoundingRect()),d.transform&&Qh.applyTransform(d.transform),Qh.intersect(f)&&s.push(d))}if(s.length)for(var h=4,v=Math.PI/12,p=Math.PI*2,g=0;g<u;g+=h)for(var m=0;m<p;m+=v){var y=r+g*Math.cos(m),_=n+g*Math.sin(m);if(_1(s,o,y,_,i),o.target)return o}}return o},t.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new wG);var i=this._gestureMgr;n==="start"&&i.clear();var a=i.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),a){var o=a.type;r.gestureEvent=o;var s=new Xs;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t}(Jn);R(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){vA.prototype[e]=function(t){var r=t.zrX,n=t.zrY,i=pA(this,r,n),a,o;if((e!=="mouseup"||!i)&&(a=this.findHover(r,n),o=a.target),e==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e==="mouseup")this._upEl=o;else if(e==="click"){if(this._downEl!==this._upEl||!this._downPoint||hg(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function DG(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var n=e,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(t,r))return!1;n.silent&&(i=!0)}var s=n.__hostTarget;n=s||n.parent}return i?hA:!0}return!1}function _1(e,t,r,n,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=DG(o,r,n))&&(!t.topTarget&&(t.topTarget=o),s!==hA)){t.target=o;break}}}function pA(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}const IG=vA;var gA=32,Zs=7;function RG(e){for(var t=0;e>=gA;)t|=e&1,e>>=1;return e+t}function b1(e,t,r,n){var i=t+1;if(i===r)return 1;if(n(e[i++],e[t])<0){for(;i<r&&n(e[i],e[i-1])<0;)i++;OG(e,t,i)}else for(;i<r&&n(e[i],e[i-1])>=0;)i++;return i-t}function OG(e,t,r){for(r--;t<r;){var n=e[t];e[t++]=e[r],e[r--]=n}}function w1(e,t,r,n,i){for(n===t&&n++;n<r;n++){for(var a=e[n],o=t,s=n,l;o<s;)l=o+s>>>1,i(a,e[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;u>0;)e[o+u]=e[o+u-1],u--}e[o]=a}}function Jh(e,t,r,n,i,a){var o=0,s=0,l=1;if(a(e,t[r+i])>0){for(s=n-i;l<s&&a(e,t[r+i+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;l<s&&a(e,t[r+i-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o<l;){var f=o+(l-o>>>1);a(e,t[r+f])>0?o=f+1:l=f}return l}function ev(e,t,r,n,i,a){var o=0,s=0,l=1;if(a(e,t[r+i])<0){for(s=i+1;l<s&&a(e,t[r+i-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l<s&&a(e,t[r+i+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o<l;){var f=o+(l-o>>>1);a(e,t[r+f])<0?l=f:o=f+1}return l}function kG(e,t){var r=Zs,n,i,a=0;e.length;var o=[];n=[],i=[];function s(h,v){n[a]=h,i[a]=v,a+=1}function l(){for(;a>1;){var h=a-2;if(h>=1&&i[h-1]<=i[h]+i[h+1]||h>=2&&i[h-2]<=i[h]+i[h-1])i[h-1]<i[h+1]&&h--;else if(i[h]>i[h+1])break;f(h)}}function u(){for(;a>1;){var h=a-2;h>0&&i[h-1]<i[h+1]&&h--,f(h)}}function f(h){var v=n[h],p=i[h],g=n[h+1],m=i[h+1];i[h]=p+m,h===a-3&&(n[h+1]=n[h+2],i[h+1]=i[h+2]),a--;var y=ev(e[g],e,v,p,0,t);v+=y,p-=y,p!==0&&(m=Jh(e[v+p-1],e,g,m,m-1,t),m!==0&&(p<=m?c(v,p,g,m):d(v,p,g,m)))}function c(h,v,p,g){var m=0;for(m=0;m<v;m++)o[m]=e[h+m];var y=0,_=p,b=h;if(e[b++]=e[_++],--g===0){for(m=0;m<v;m++)e[b+m]=o[y+m];return}if(v===1){for(m=0;m<g;m++)e[b+m]=e[_+m];e[b+g]=o[y];return}for(var x=r,w,S,C;;){w=0,S=0,C=!1;do if(t(e[_],o[y])<0){if(e[b++]=e[_++],S++,w=0,--g===0){C=!0;break}}else if(e[b++]=o[y++],w++,S=0,--v===1){C=!0;break}while((w|S)<x);if(C)break;do{if(w=ev(e[_],o,y,v,0,t),w!==0){for(m=0;m<w;m++)e[b+m]=o[y+m];if(b+=w,y+=w,v-=w,v<=1){C=!0;break}}if(e[b++]=e[_++],--g===0){C=!0;break}if(S=Jh(o[y],e,_,g,0,t),S!==0){for(m=0;m<S;m++)e[b+m]=e[_+m];if(b+=S,_+=S,g-=S,g===0){C=!0;break}}if(e[b++]=o[y++],--v===1){C=!0;break}x--}while(w>=Zs||S>=Zs);if(C)break;x<0&&(x=0),x+=2}if(r=x,r<1&&(r=1),v===1){for(m=0;m<g;m++)e[b+m]=e[_+m];e[b+g]=o[y]}else{if(v===0)throw new Error;for(m=0;m<v;m++)e[b+m]=o[y+m]}}function d(h,v,p,g){var m=0;for(m=0;m<g;m++)o[m]=e[p+m];var y=h+v-1,_=g-1,b=p+g-1,x=0,w=0;if(e[b--]=e[y--],--v===0){for(x=b-(g-1),m=0;m<g;m++)e[x+m]=o[m];return}if(g===1){for(b-=v,y-=v,w=b+1,x=y+1,m=v-1;m>=0;m--)e[w+m]=e[x+m];e[b]=o[_];return}for(var S=r;;){var C=0,T=0,E=!1;do if(t(o[_],e[y])<0){if(e[b--]=e[y--],C++,T=0,--v===0){E=!0;break}}else if(e[b--]=o[_--],T++,C=0,--g===1){E=!0;break}while((C|T)<S);if(E)break;do{if(C=v-ev(o[_],e,h,v,v-1,t),C!==0){for(b-=C,y-=C,v-=C,w=b+1,x=y+1,m=C-1;m>=0;m--)e[w+m]=e[x+m];if(v===0){E=!0;break}}if(e[b--]=o[_--],--g===1){E=!0;break}if(T=g-Jh(e[y],o,0,g,g-1,t),T!==0){for(b-=T,_-=T,g-=T,w=b+1,x=_+1,m=0;m<T;m++)e[w+m]=o[x+m];if(g<=1){E=!0;break}}if(e[b--]=e[y--],--v===0){E=!0;break}S--}while(C>=Zs||T>=Zs);if(E)break;S<0&&(S=0),S+=2}if(r=S,r<1&&(r=1),g===1){for(b-=v,y-=v,w=b+1,x=y+1,m=v-1;m>=0;m--)e[w+m]=e[x+m];e[b]=o[_]}else{if(g===0)throw new Error;for(x=b-(g-1),m=0;m<g;m++)e[x+m]=o[m]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function _c(e,t,r,n){r||(r=0),n||(n=e.length);var i=n-r;if(!(i<2)){var a=0;if(i<gA){a=b1(e,r,n,t),w1(e,r,n,r+a,t);return}var o=kG(e,t),s=RG(i);do{if(a=b1(e,r,n,t),a<s){var l=i;l>s&&(l=s),w1(e,r,r+l,r+a,t),a=l}o.pushRun(r,a),o.mergeRuns(),i-=a,r+=a}while(i!==0);o.forceMergeRuns()}}var Ir=1,ml=2,Vo=4,x1=!1;function tv(){x1||(x1=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function S1(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var NG=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=S1}return e.prototype.traverse=function(t,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,r)},e.prototype.getDisplayList=function(t,r){r=r||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(r),n},e.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var r=this._roots,n=this._displayList,i=0,a=r.length;i<a;i++)this._updateAndAddDisplayable(r[i],null,t);n.length=this._displayListLen,_c(n,S1)},e.prototype._updateAndAddDisplayable=function(t,r,n){if(!(t.ignore&&!n)){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)r=null;else if(i){r?r=r.slice():r=[];for(var a=i,o=t;a;)a.parent=o,a.updateTransform(),r.push(a),o=a,a=a.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),l=0;l<s.length;l++){var u=s[l];t.__dirty&&(u.__dirty|=Ir),this._updateAndAddDisplayable(u,r,n)}t.__dirty=0}else{var f=t;r&&r.length?f.__clipPaths=r:f.__clipPaths&&f.__clipPaths.length>0&&(f.__clipPaths=[]),isNaN(f.z)&&(tv(),f.z=0),isNaN(f.z2)&&(tv(),f.z2=0),isNaN(f.zlevel)&&(tv(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var c=t.getDecalElement&&t.getDecalElement();c&&this._updateAndAddDisplayable(c,r,n);var d=t.getTextGuideLine();d&&this._updateAndAddDisplayable(d,r,n);var h=t.getTextContent();h&&this._updateAndAddDisplayable(h,r,n)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,n=t.length;r<n;r++)this.delRoot(t[r]);return}var i=it(this._roots,t);i>=0&&this._roots.splice(i,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}();const BG=NG;var mA;mA=Ve.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};const yg=mA;var bc={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)))},elasticOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},elasticInOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-bc.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?bc.bounceIn(e*2)*.5:bc.bounceOut(e*2-1)*.5+.5}};const yA=bc;var yf=Math.pow,Xi=Math.sqrt,Kc=1e-8,_A=1e-4,C1=Xi(3),_f=1/3,Bn=Ns(),Xr=Ns(),as=Ns();function Ui(e){return e>-Kc&&e<Kc}function bA(e){return e>Kc||e<-Kc}function Gt(e,t,r,n,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*n+3*a*r)}function T1(e,t,r,n,i){var a=1-i;return 3*(((t-e)*a+2*(r-t)*i)*a+(n-r)*i*i)}function wA(e,t,r,n,i,a){var o=n+3*(t-r)-e,s=3*(r-t*2+e),l=3*(t-e),u=e-i,f=s*s-3*o*l,c=s*l-9*o*u,d=l*l-3*s*u,h=0;if(Ui(f)&&Ui(c))if(Ui(s))a[0]=0;else{var v=-l/s;v>=0&&v<=1&&(a[h++]=v)}else{var p=c*c-4*f*d;if(Ui(p)){var g=c/f,v=-s/o+g,m=-g/2;v>=0&&v<=1&&(a[h++]=v),m>=0&&m<=1&&(a[h++]=m)}else if(p>0){var y=Xi(p),_=f*s+1.5*o*(-c+y),b=f*s+1.5*o*(-c-y);_<0?_=-yf(-_,_f):_=yf(_,_f),b<0?b=-yf(-b,_f):b=yf(b,_f);var v=(-s-(_+b))/(3*o);v>=0&&v<=1&&(a[h++]=v)}else{var x=(2*f*s-3*o*c)/(2*Xi(f*f*f)),w=Math.acos(x)/3,S=Xi(f),C=Math.cos(w),v=(-s-2*S*C)/(3*o),m=(-s+S*(C+C1*Math.sin(w)))/(3*o),T=(-s+S*(C-C1*Math.sin(w)))/(3*o);v>=0&&v<=1&&(a[h++]=v),m>=0&&m<=1&&(a[h++]=m),T>=0&&T<=1&&(a[h++]=T)}}return h}function xA(e,t,r,n,i){var a=6*r-12*t+6*e,o=9*t+3*n-3*e-9*r,s=3*t-3*e,l=0;if(Ui(o)){if(bA(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var f=a*a-4*o*s;if(Ui(f))i[0]=-a/(2*o);else if(f>0){var c=Xi(f),u=(-a+c)/(2*o),d=(-a-c)/(2*o);u>=0&&u<=1&&(i[l++]=u),d>=0&&d<=1&&(i[l++]=d)}}return l}function Xc(e,t,r,n,i,a){var o=(t-e)*i+e,s=(r-t)*i+t,l=(n-r)*i+r,u=(s-o)*i+o,f=(l-s)*i+s,c=(f-u)*i+u;a[0]=e,a[1]=o,a[2]=u,a[3]=c,a[4]=c,a[5]=f,a[6]=l,a[7]=n}function SA(e,t,r,n,i,a,o,s,l,u,f){var c,d=.005,h=1/0,v,p,g,m;Bn[0]=l,Bn[1]=u;for(var y=0;y<1;y+=.05)Xr[0]=Gt(e,r,i,o,y),Xr[1]=Gt(t,n,a,s,y),g=ns(Bn,Xr),g<h&&(c=y,h=g);h=1/0;for(var _=0;_<32&&!(d<_A);_++)v=c-d,p=c+d,Xr[0]=Gt(e,r,i,o,v),Xr[1]=Gt(t,n,a,s,v),g=ns(Xr,Bn),v>=0&&g<h?(c=v,h=g):(as[0]=Gt(e,r,i,o,p),as[1]=Gt(t,n,a,s,p),m=ns(as,Bn),p<=1&&m<h?(c=p,h=m):d*=.5);return f&&(f[0]=Gt(e,r,i,o,c),f[1]=Gt(t,n,a,s,c)),Xi(h)}function FG(e,t,r,n,i,a,o,s,l){for(var u=e,f=t,c=0,d=1/l,h=1;h<=l;h++){var v=h*d,p=Gt(e,r,i,o,v),g=Gt(t,n,a,s,v),m=p-u,y=g-f;c+=Math.sqrt(m*m+y*y),u=p,f=g}return c}function Qt(e,t,r,n){var i=1-n;return i*(i*e+2*n*t)+n*n*r}function M1(e,t,r,n){return 2*((1-n)*(t-e)+n*(r-t))}function $G(e,t,r,n,i){var a=e-2*t+r,o=2*(t-e),s=e-n,l=0;if(Ui(a)){if(bA(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var f=o*o-4*a*s;if(Ui(f)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(f>0){var c=Xi(f),u=(-o+c)/(2*a),d=(-o-c)/(2*a);u>=0&&u<=1&&(i[l++]=u),d>=0&&d<=1&&(i[l++]=d)}}return l}function CA(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function Zc(e,t,r,n,i){var a=(t-e)*n+e,o=(r-t)*n+t,s=(o-a)*n+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function TA(e,t,r,n,i,a,o,s,l){var u,f=.005,c=1/0;Bn[0]=o,Bn[1]=s;for(var d=0;d<1;d+=.05){Xr[0]=Qt(e,r,i,d),Xr[1]=Qt(t,n,a,d);var h=ns(Bn,Xr);h<c&&(u=d,c=h)}c=1/0;for(var v=0;v<32&&!(f<_A);v++){var p=u-f,g=u+f;Xr[0]=Qt(e,r,i,p),Xr[1]=Qt(t,n,a,p);var h=ns(Xr,Bn);if(p>=0&&h<c)u=p,c=h;else{as[0]=Qt(e,r,i,g),as[1]=Qt(t,n,a,g);var m=ns(as,Bn);g<=1&&m<c?(u=g,c=m):f*=.5}}return l&&(l[0]=Qt(e,r,i,u),l[1]=Qt(t,n,a,u)),Xi(c)}function HG(e,t,r,n,i,a,o){for(var s=e,l=t,u=0,f=1/o,c=1;c<=o;c++){var d=c*f,h=Qt(e,r,i,d),v=Qt(t,n,a,d),p=h-s,g=v-l;u+=Math.sqrt(p*p+g*g),s=h,l=v}return u}var zG=/cubic-bezier\(([0-9,\.e ]+)\)/;function MA(e){var t=e&&zG.exec(e);if(t){var r=t[1].split(","),n=+zn(r[0]),i=+zn(r[1]),a=+zn(r[2]),o=+zn(r[3]);if(isNaN(n+i+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:wA(0,n,a,1,l,s)&&Gt(0,i,o,1,s[0])}}}var WG=function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Sr,this.ondestroy=t.ondestroy||Sr,this.onrestart=t.onrestart||Sr,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,i=t-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=i%n;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=We(t)?t:yA[t]||MA(t)},e}();const VG=WG;var AA=function(){function e(t){this.value=t}return e}(),GG=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new AA(t);return this.insertEntry(r),r},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var r=t.prev,n=t.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),UG=function(){function e(t){this._list=new GG,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var n=this._list,i=this._map,a=null;if(i[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new AA(r),s.key=t,n.insertEntry(s),i[t]=s}return a},e.prototype.get=function(t){var r=this._map[t],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}();const Vu=UG;var A1={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function $l(e){return e=Math.round(e),e<0?0:e>255?255:e}function E1(e){return e<0?0:e>1?1:e}function rv(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?$l(parseFloat(t)/100*255):$l(parseInt(t,10))}function Hl(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?E1(parseFloat(t)/100):E1(parseFloat(t))}function nv(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function Gr(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function _g(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var EA=new Vu(20),bf=null;function Eo(e,t){bf&&_g(bf,t),bf=EA.put(e,bf||t.slice())}function ro(e,t){if(e){t=t||[];var r=EA.get(e);if(r)return _g(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in A1)return _g(t,A1[n]),Eo(e,t),t;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){Gr(t,0,0,0,1);return}return Gr(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),Eo(e,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){Gr(t,0,0,0,1);return}return Gr(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Eo(e,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Gr(t,+u[0],+u[1],+u[2],1):Gr(t,0,0,0,1);f=Hl(u.pop());case"rgb":if(u.length>=3)return Gr(t,rv(u[0]),rv(u[1]),rv(u[2]),u.length===3?f:Hl(u[3])),Eo(e,t),t;Gr(t,0,0,0,1);return;case"hsla":if(u.length!==4){Gr(t,0,0,0,1);return}return u[3]=Hl(u[3]),P1(u,t),Eo(e,t),t;case"hsl":if(u.length!==3){Gr(t,0,0,0,1);return}return P1(u,t),Eo(e,t),t;default:return}}Gr(t,0,0,0,1)}}function P1(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=Hl(e[1]),i=Hl(e[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],Gr(t,$l(nv(o,a,r+1/3)*255),$l(nv(o,a,r)*255),$l(nv(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function L1(e,t){var r=ro(e);if(r){for(var n=0;n<3;n++)t<0?r[n]=r[n]*(1-t)|0:r[n]=(255-r[n])*t+r[n]|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return Ny(r,r.length===4?"rgba":"rgb")}}function Ny(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}}function Qc(e,t){var r=ro(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}function YG(e){return e.type==="linear"}function qG(e){return e.type==="radial"}(function(){return Ve.hasGlobalWindow&&We(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}})();var bg=Array.prototype.slice;function li(e,t,r){return(t-e)*r+e}function iv(e,t,r,n){for(var i=t.length,a=0;a<i;a++)e[a]=li(t[a],r[a],n);return e}function jG(e,t,r,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=li(t[o][s],r[o][s],n)}return e}function wf(e,t,r,n){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+r[a]*n;return e}function D1(e,t,r,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+r[o][s]*n}return e}function KG(e,t){for(var r=e.length,n=t.length,i=r>n?t:e,a=Math.min(r,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,n);s++)i.push({offset:o.offset,color:o.color.slice()})}function XG(e,t,r){var n=e,i=t;if(!(!n.push||!i.push)){var a=n.length,o=i.length;if(a!==o){var s=a>o;if(s)n.length=o;else for(var l=a;l<o;l++)n.push(r===1?i[l]:bg.call(i[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(r===1)isNaN(n[l])&&(n[l]=i[l]);else for(var f=0;f<u;f++)isNaN(n[l][f])&&(n[l][f]=i[l][f])}}function wc(e){if(Tr(e)){var t=e.length;if(Tr(e[0])){for(var r=[],n=0;n<t;n++)r.push(bg.call(e[n]));return r}return bg.call(e)}return e}function xc(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],"rgba("+e.join(",")+")"}function ZG(e){return Tr(e&&e[0])?2:1}var xf=0,Sc=1,PA=2,yl=3,wg=4,xg=5,I1=6;function R1(e){return e===wg||e===xg}function Sf(e){return e===Sc||e===PA}var Qs=[0,0,0,0],QG=function(){function e(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,r,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=I1,l=r;if(Tr(r)){var u=ZG(r);s=u,(u===1&&!bt(r[0])||u===2&&!bt(r[0][0]))&&(o=!0)}else if(bt(r)&&!jc(r))s=xf;else if(Te(r))if(!isNaN(+r))s=xf;else{var f=ro(r);f&&(l=f,s=yl)}else if(Xd(r)){var c=oe({},l);c.colorStops=Oe(r.colorStops,function(h){return{offset:h.offset,color:ro(h.color)}}),YG(r)?s=wg:qG(r)&&(s=xg),l=c}a===0?this.valType=s:(s!==this.valType||s===I1)&&(o=!0),this.discrete=this.discrete||o;var d={time:t,value:l,rawValue:r,percent:0};return n&&(d.easing=n,d.easingFunc=We(n)?n:yA[n]||MA(n)),i.push(d),d},e.prototype.prepare=function(t,r){var n=this.keyframes;this._needsSort&&n.sort(function(p,g){return p.time-g.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=Sf(i),u=R1(i),f=0;f<a;f++){var c=n[f],d=c.value,h=o.value;c.percent=c.time/t,s||(l&&f!==a-1?XG(d,h,i):u&&KG(d.colorStops,h.colorStops))}if(!s&&i!==xg&&r&&this.needsAnimate()&&r.needsAnimate()&&i===r.valType&&!r._finished){this._additiveTrack=r;for(var v=n[0].value,f=0;f<a;f++)i===xf?n[f].additiveValue=n[f].value-v:i===yl?n[f].additiveValue=wf([],n[f].value,v,-1):Sf(i)&&(n[f].additiveValue=i===Sc?wf([],n[f].value,v,-1):D1([],n[f].value,v,-1))}},e.prototype.step=function(t,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,i=n?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===yl,f,c=this._lastFr,d=Math.min,h,v;if(s===1)h=v=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){var p=d(c+1,s-1);for(f=p;f>=0&&!(o[f].percent<=r);f--);f=d(f,s-2)}else{for(f=c;f<s&&!(o[f].percent>r);f++);f=d(f-1,s-2)}v=o[f+1],h=o[f]}if(h&&v){this._lastFr=f,this._lastFrP=r;var g=v.percent-h.percent,m=g===0?1:d((r-h.percent)/g,1);v.easingFunc&&(m=v.easingFunc(m));var y=n?this._additiveValue:u?Qs:t[l];if((Sf(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)t[l]=m<1?h.rawValue:v.rawValue;else if(Sf(a))a===Sc?iv(y,h[i],v[i],m):jG(y,h[i],v[i],m);else if(R1(a)){var _=h[i],b=v[i],x=a===wg;t[l]={type:x?"linear":"radial",x:li(_.x,b.x,m),y:li(_.y,b.y,m),colorStops:Oe(_.colorStops,function(S,C){var T=b.colorStops[C];return{offset:li(S.offset,T.offset,m),color:xc(iv([],S.color,T.color,m))}}),global:b.global},x?(t[l].x2=li(_.x2,b.x2,m),t[l].y2=li(_.y2,b.y2,m)):t[l].r=li(_.r,b.r,m)}else if(u)iv(y,h[i],v[i],m),n||(t[l]=xc(y));else{var w=li(h[i],v[i],m);n?this._additiveValue=w:t[l]=w}n&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,n=this.propName,i=this._additiveValue;r===xf?t[n]=t[n]+i:r===yl?(ro(t[n],Qs),wf(Qs,Qs,i,1),t[n]=xc(Qs)):r===Sc?wf(t[n],t[n],i,1):r===PA&&D1(t[n],t[n],i,1)},e}(),JG=function(){function e(t,r,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&i){Dy("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,r,n){return this.whenWithKeys(t,r,xt(r),n)},e.prototype.whenWithKeys=function(t,r,n,i){for(var a=this._tracks,o=0;o<n.length;o++){var s=n[o],l=a[s];if(!l){l=a[s]=new QG(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var c=f.keyframes,d=c[c.length-1];u=d&&d.value,f.valType===yl&&u&&(u=xc(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,wc(u),i),this._trackKeys.push(s)}l.addKeyframe(t,wc(r[s]),i)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,n=0;n<r;n++)t[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,r=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},e.prototype._setTracksFinished=function(){for(var t=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)t[r[n]].setFinished()},e.prototype._getAdditiveTrack=function(t){var r,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var a=n[i].getTrack(t);a&&(r=a)}return r},e.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var r=this,n=[],i=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var c=u[f-1];c&&(r._target[s.propName]=c.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var d=new VG({life:i,loop:this._loop,delay:this._delay||0,onframe:function(h){r._started=2;var v=r._additiveAnimators;if(v){for(var p=!1,g=0;g<v.length;g++)if(v[g]._clip){p=!0;break}p||(r._additiveAnimators=null)}for(var g=0;g<n.length;g++)n[g].step(r._target,h);var m=r._onframeCbs;if(m)for(var g=0;g<m.length;g++)m[g](r._target,h)},ondestroy:function(){r._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),t&&d.setEasing(t)}else this._doneCallback();return this}},e.prototype.stop=function(t){if(this._clip){var r=this._clip;t&&r.onframe(1),this._abortedCallback()}},e.prototype.delay=function(t){return this._delay=t,this},e.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},e.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},e.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(t){return this._tracks[t]},e.prototype.getTracks=function(){var t=this;return Oe(this._trackKeys,function(r){return t._tracks[r]})},e.prototype.stopTracks=function(t,r){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,a=0;a<t.length;a++){var o=n[t[a]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<i.length;a++)if(!n[i[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},e.prototype.saveTo=function(t,r,n){if(t){r=r||this._trackKeys;for(var i=0;i<r.length;i++){var a=r[i],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(t[a]=wc(l.rawValue))}}}},e.prototype.__changeFinalValue=function(t,r){r=r||xt(t);for(var n=0;n<r.length;n++){var i=r[n],a=this._tracks[i];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,t[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},e}();const By=JG;function Ko(){return new Date().getTime()}var eU=function(e){pe(t,e);function t(r){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(r){if(r.animation){var n=r.prev,i=r.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},t.prototype.update=function(r){for(var n=Ko()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,r||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(yg(n),!r._paused&&r.update())}yg(n)},t.prototype.start=function(){this._running||(this._time=Ko(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Ko(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Ko()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,n){n=n||{},this.start();var i=new By(r,n.loop);return this.addAnimator(i),i},t}(Jn);const tU=eU;var rU=300,av=Ve.domSupported,ov=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=Oe(e,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:e,touch:t,pointer:n}}(),O1={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},k1=!1;function Sg(e){var t=e.pointerType;return t==="pen"||t==="touch"}function nU(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function sv(e){e&&(e.zrByTouch=!0)}function iU(e,t){return Ur(e.dom,new aU(e,t),!0)}function LA(e,t){for(var r=t,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return n}var aU=function(){function e(t,r){this.stopPropagation=Sr,this.stopImmediatePropagation=Sr,this.preventDefault=Sr,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),vn={mousedown:function(e){e=Ur(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Ur(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=Ur(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=Ur(this.dom,e);var t=e.toElement||e.relatedTarget;LA(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){k1=!0,e=Ur(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){k1||(e=Ur(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=Ur(this.dom,e),sv(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),vn.mousemove.call(this,e),vn.mousedown.call(this,e)},touchmove:function(e){e=Ur(this.dom,e),sv(e),this.handler.processGesture(e,"change"),vn.mousemove.call(this,e)},touchend:function(e){e=Ur(this.dom,e),sv(e),this.handler.processGesture(e,"end"),vn.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<rU&&vn.click.call(this,e)},pointerdown:function(e){vn.mousedown.call(this,e)},pointermove:function(e){Sg(e)||vn.mousemove.call(this,e)},pointerup:function(e){vn.mouseup.call(this,e)},pointerout:function(e){Sg(e)||vn.mouseout.call(this,e)}};R(["click","dblclick","contextmenu"],function(e){vn[e]=function(t){t=Ur(this.dom,t),this.trigger(e,t)}});var Cg={pointermove:function(e){Sg(e)||Cg.mousemove.call(this,e)},pointerup:function(e){Cg.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function oU(e,t){var r=t.domHandlers;Ve.pointerEventsSupported?R(ov.pointer,function(n){Cc(t,n,function(i){r[n].call(e,i)})}):(Ve.touchEventsSupported&&R(ov.touch,function(n){Cc(t,n,function(i){r[n].call(e,i),nU(t)})}),R(ov.mouse,function(n){Cc(t,n,function(i){i=Ry(i),t.touching||r[n].call(e,i)})}))}function sU(e,t){Ve.pointerEventsSupported?R(O1.pointer,r):Ve.touchEventsSupported||R(O1.mouse,r);function r(n){function i(a){a=Ry(a),LA(e,a.target)||(a=iU(e,a),t.domHandlers[n].call(e,a))}Cc(t,n,i,{capture:!0})}}function Cc(e,t,r,n){e.mounted[t]=r,e.listenerOpts[t]=n,_G(e.domTarget,t,r,n)}function lv(e){var t=e.mounted;for(var r in t)t.hasOwnProperty(r)&&bG(e.domTarget,r,t[r],e.listenerOpts[r]);e.mounted={}}var N1=function(){function e(t,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=r}return e}(),lU=function(e){pe(t,e);function t(r,n){var i=e.call(this)||this;return i.__pointerCapturing=!1,i.dom=r,i.painterRoot=n,i._localHandlerScope=new N1(r,vn),av&&(i._globalHandlerScope=new N1(document,Cg)),oU(i,i._localHandlerScope),i}return t.prototype.dispose=function(){lv(this._localHandlerScope),av&&lv(this._globalHandlerScope)},t.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},t.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,av&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?sU(this,n):lv(n)}},t}(Jn);const uU=lU;var DA=1;Ve.hasGlobalWindow&&(DA=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Jc=DA,Tg=.4,Mg="#333",Ag="#ccc",fU="#eee",B1=Oy,F1=5e-5;function ma(e){return e>F1||e<-F1}var ya=[],Po=[],uv=gu(),fv=Math.abs,cU=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return ma(this.rotation)||ma(this.x)||ma(this.y)||ma(this.scaleX-1)||ma(this.scaleY-1)||ma(this.skewX)||ma(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&B1(n);return}n=n||gu(),r?this.getLocalTransform(n):B1(n),t&&(r?is(n,t,n):SG(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(ya);var n=ya[0]<0?-1:1,i=ya[1]<0?-1:1,a=((ya[0]-n)*r+n)/ya[0]||0,o=((ya[1]-i)*r+i)/ya[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||gu(),Qd(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var r=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),a=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(is(Po,t.invTransform,r),r=Po);var n=this.originX,i=this.originY;(n||i)&&(uv[4]=n,uv[5]=i,is(Po,r,uv),Po[4]-=n,Po[5]-=i,r=Po),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var n=[t,r],i=this.invTransform;return i&&rn(n,n,i),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],i=this.transform;return i&&rn(n,n,i),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&fv(t[0]-1)>1e-10&&fv(t[3]-1)>1e-10?Math.sqrt(fv(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){dU(this,t)},e.getLocalTransform=function(t,r){r=r||[];var n=t.originX||0,i=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,f=t.x,c=t.y,d=t.skewX?Math.tan(t.skewX):0,h=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||l){var v=n+s,p=i+l;r[4]=-v*a-d*p*o,r[5]=-p*o-h*v*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=h*a,r[2]=d*o,u&&ky(r,r,u),r[4]+=n+f,r[5]+=i+c,r},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),mu=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function dU(e,t){for(var r=0;r<mu.length;r++){var n=mu[r];e[n]=t[n]}}const Jd=cU;var $1={};function Nr(e,t){t=t||co;var r=$1[t];r||(r=$1[t]=new Vu(500));var n=r.get(e);return n==null&&(n=bo.measureText(e,t).width,r.put(e,n)),n}function H1(e,t,r,n){var i=Nr(e,t),a=$y(t),o=_l(0,i,r),s=Go(0,a,n),l=new tt(o,s,i,a);return l}function Fy(e,t,r,n){var i=((e||"")+"").split(`
+`),a=i.length;if(a===1)return H1(i[0],t,r,n);for(var o=new tt(0,0,0,0),s=0;s<i.length;s++){var l=H1(i[s],t,r,n);s===0?o.copy(l):o.union(l)}return o}function _l(e,t,r){return r==="right"?e-=t:r==="center"&&(e-=t/2),e}function Go(e,t,r){return r==="middle"?e-=t/2:r==="bottom"&&(e-=t),e}function $y(e){return Nr("国",e)}function ra(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function ed(e,t,r){var n=t.position||"inside",i=t.distance!=null?t.distance:5,a=r.height,o=r.width,s=a/2,l=r.x,u=r.y,f="left",c="top";if(n instanceof Array)l+=ra(n[0],r.width),u+=ra(n[1],r.height),f=null,c=null;else switch(n){case"left":l-=i,u+=s,f="right",c="middle";break;case"right":l+=i+o,u+=s,c="middle";break;case"top":l+=o/2,u-=i,f="center",c="bottom";break;case"bottom":l+=o/2,u+=a+i,f="center";break;case"inside":l+=o/2,u+=s,f="center",c="middle";break;case"insideLeft":l+=i,u+=s,c="middle";break;case"insideRight":l+=o-i,u+=s,f="right",c="middle";break;case"insideTop":l+=o/2,u+=i,f="center";break;case"insideBottom":l+=o/2,u+=a-i,f="center",c="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,f="right";break;case"insideBottomLeft":l+=i,u+=a-i,c="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,f="right",c="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=f,e.verticalAlign=c,e}var cv="__zr_normal__",dv=mu.concat(["ignore"]),hU=ta(mu,function(e,t){return e[t]=!0,e},{ignore:!1}),Lo={},vU=new tt(0,0,0,0),Hy=function(){function e(t){this.id=oA(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=r,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=r.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;if(a.copyTransform(r),n.position!=null){var f=vU;n.layoutRect?f.copy(n.layoutRect):f.copy(this.getBoundingRect()),i||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Lo,n,f):ed(Lo,n,f),a.x=Lo.x,a.y=Lo.y,o=Lo.align,s=Lo.verticalAlign;var c=n.origin;if(c&&n.rotation!=null){var d=void 0,h=void 0;c==="center"?(d=f.width*.5,h=f.height*.5):(d=ra(c[0],f.width),h=ra(c[1],f.height)),u=!0,a.originX=-a.x+d+(i?0:f.x),a.originY=-a.y+h+(i?0:f.y)}}n.rotation!=null&&(a.rotation=n.rotation);var v=n.offset;v&&(a.x+=v[0],a.y+=v[1],u||(a.originX=-v[0],a.originY=-v[1]));var p=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,y=void 0,_=void 0;p&&this.canBeInsideText()?(m=n.insideFill,y=n.insideStroke,(m==null||m==="auto")&&(m=this.getInsideTextFill()),(y==null||y==="auto")&&(y=this.getInsideTextStroke(m),_=!0)):(m=n.outsideFill,y=n.outsideStroke,(m==null||m==="auto")&&(m=this.getOutsideFill()),(y==null||y==="auto")&&(y=this.getOutsideStroke(m),_=!0)),m=m||"#000",(m!==g.fill||y!==g.stroke||_!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=m,g.stroke=y,g.autoStroke=_,g.align=o,g.verticalAlign=s,r.setDefaultTextStyle(g)),r.__dirty|=Ir,l&&r.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Ag:Mg},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&ro(r);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,Ny(n,"rgba")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},oe(this.extra,r)):this[t]=r},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(De(t))for(var n=t,i=xt(n),a=0;a<i.length;a++){var o=i[a];this.attrKV(o,t[o])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var r=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],a=i.__fromStateTransition;if(!(i.getLoop()||a&&a!==cv)){var o=i.targetName,s=o?r[o]:r;i.saveTo(s)}}},e.prototype._innerSaveToNormal=function(t){var r=this._normalState;r||(r=this._normalState={}),t.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(t,r,dv)},e.prototype._savePrimaryToNormal=function(t,r,n){for(var i=0;i<n.length;i++){var a=n[i];t[a]!=null&&!(a in r)&&(r[a]=this[a])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var r=this.states;return r[t]||(r[t]={}),r[t]},e.prototype.clearStates=function(t){this.useState(cv,!1,t)},e.prototype.useState=function(t,r,n,i){var a=t===cv,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(it(s,t)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!a){Dy("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||i);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var c=this._textContent,d=this._textGuide;return c&&c.useState(t,r,n,f),d&&d.useState(t,r,n,f),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ir),u}}},e.prototype.useStates=function(t,r,n){if(!t.length)this.clearStates();else{var i=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(t[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=t[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,t)),f||(f=this.states[u]),f&&i.push(f)}var c=i[o-1],d=!!(c&&c.hoverLayer||n);d&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(i),v=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(t.join(","),h,this._normalState,!1,!r&&!this.__inHover&&v&&v.duration>0,v);var p=this._textContent,g=this._textGuide;p&&p.useStates(t,r,d),g&&g.useStates(t,r,d),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ir)}},e.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var r=this.animators[t];r.targetName&&r.changeTarget(this[r.targetName])}},e.prototype.removeState=function(t){var r=it(this.currentStates,t);if(r>=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},e.prototype.replaceState=function(t,r,n){var i=this.currentStates.slice(),a=it(i,t),o=it(i,r)>=0;a>=0?o?i.splice(a,1):i[a]=r:n&&!o&&i.push(r),this.useStates(i)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},n,i=0;i<t.length;i++){var a=t[i];oe(r,a),a.textConfig&&(n=n||{},oe(n,a.textConfig))}return n&&(r.textConfig=n),r},e.prototype._applyStateObj=function(t,r,n,i,a,o){var s=!(r&&i);r&&r.textConfig?(this.textConfig=oe({},i?this.textConfig:n.textConfig),oe(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,f=0;f<dv.length;f++){var c=dv[f],d=a&&hU[c];r&&r[c]!=null?d?(u=!0,l[c]=r[c]):this[c]=r[c]:s&&n[c]!=null&&(d?(u=!0,l[c]=n[c]):this[c]=n[c])}if(!a)for(var f=0;f<this.animators.length;f++){var h=this.animators[f],v=h.targetName;h.getLoop()||h.__changeFinalValue(v?(r||n)[v]:r||n)}u&&this._transitionState(t,l,o)},e.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var r=this.__zr;r&&t.addSelfToZr(r),t.__zr=r,t.__hostTarget=this}},e.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},e.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(t){var r=this._textContent;r!==t&&(r&&r!==t&&this.removeTextContent(),t.innerTransformable=new Jd,this._attachComponent(t),this._textContent=t,this.markRedraw())},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),oe(this.textConfig,t),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=Ir;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var r=this._textContent,n=this._textGuide;r&&(r.__inHover=t),n&&(n.__inHover=t)},e.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.addAnimator(r[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.removeAnimator(r[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},e.prototype.animate=function(t,r,n){var i=t?this[t]:this,a=new By(i,r,n);return t&&(a.targetName=t),this.addAnimator(a,t),a},e.prototype.addAnimator=function(t,r){var n=this.__zr,i=this;t.during(function(){i.updateDuringAnimation(r)}).done(function(){var a=i.animators,o=it(a,t);o>=0&&a.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var n=this.animators,i=n.length,a=[],o=0;o<i;o++){var s=n[o];!t||t===s.scope?s.stop(r):a.push(s)}return this.animators=a,this},e.prototype.animateTo=function(t,r,n){hv(this,t,r,n)},e.prototype.animateFrom=function(t,r,n){hv(this,t,r,n,!0)},e.prototype._transitionState=function(t,r,n,i){for(var a=hv(this,r,n,i),o=0;o<a.length;o++)a[o].__fromStateTransition=t},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=Ir;function r(n,i,a,o){Object.defineProperty(t,n,{get:function(){if(!this[i]){var l=this[i]=[];s(this,l)}return this[i]},set:function(l){this[a]=l[0],this[o]=l[1],this[i]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[a]},set:function(f){l[a]=f}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(f){l[o]=f}})}}Object.defineProperty&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))}(),e}();Qn(Hy,Jn);Qn(Hy,Jd);function hv(e,t,r,n,i){r=r||{};var a=[];IA(e,"",e,t,r,n,a,i);var o=a.length,s=!1,l=r.done,u=r.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},c=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&r.during&&a[0].during(function(v,p){r.during(p)});for(var d=0;d<a.length;d++){var h=a[d];f&&h.done(f),c&&h.aborted(c),r.force&&h.duration(r.duration),h.start(r.easing)}return a}function vv(e,t,r){for(var n=0;n<r;n++)e[n]=t[n]}function pU(e){return Tr(e[0])}function gU(e,t,r){if(Tr(t[r]))if(Tr(e[r])||(e[r]=[]),$r(t[r])){var n=t[r].length;e[r].length!==n&&(e[r]=new t[r].constructor(n),vv(e[r],t[r],n))}else{var i=t[r],a=e[r],o=i.length;if(pU(i))for(var s=i[0].length,l=0;l<o;l++)a[l]?vv(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else vv(a,i,o);a.length=i.length}else e[r]=t[r]}function mU(e,t){return e===t||Tr(e)&&Tr(t)&&yU(e,t)}function yU(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}function IA(e,t,r,n,i,a,o,s){for(var l=xt(n),u=i.duration,f=i.delay,c=i.additive,d=i.setToFinal,h=!De(a),v=e.animators,p=[],g=0;g<l.length;g++){var m=l[g],y=n[m];if(y!=null&&r[m]!=null&&(h||a[m]))if(De(y)&&!Tr(y)&&!Xd(y)){if(t){s||(r[m]=y,e.updateDuringAnimation(t));continue}IA(e,m,r[m],y,i,a&&a[m],o,s)}else p.push(m);else s||(r[m]=y,e.updateDuringAnimation(t),p.push(m))}var _=p.length;if(!c&&_)for(var b=0;b<v.length;b++){var x=v[b];if(x.targetName===t){var w=x.stopTracks(p);if(w){var S=it(v,x);v.splice(S,1)}}}if(i.force||(p=$t(p,function(A){return!mU(n[A],r[A])}),_=p.length),_>0||i.force&&!o.length){var C=void 0,T=void 0,E=void 0;if(s){T={},d&&(C={});for(var b=0;b<_;b++){var m=p[b];T[m]=r[m],d?C[m]=n[m]:r[m]=n[m]}}else if(d){E={};for(var b=0;b<_;b++){var m=p[b];E[m]=wc(r[m]),gU(r,n,m)}}var x=new By(r,!1,!1,c?$t(v,function(M){return M.targetName===t}):null);x.targetName=t,i.scope&&(x.scope=i.scope),d&&C&&x.whenWithKeys(0,C,p),E&&x.whenWithKeys(0,E,p),x.whenWithKeys(u??500,s?T:n,p).delay(f||0),e.addAnimator(x,t),o.push(x)}}const RA=Hy;var OA=function(e){pe(t,e);function t(r){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(r){return this._children[r]},t.prototype.childOfName=function(r){for(var n=this._children,i=0;i<n.length;i++)if(n[i].name===r)return n[i]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},t.prototype.addBefore=function(r,n){if(r&&r!==this&&r.parent!==this&&n&&n.parent===this){var i=this._children,a=i.indexOf(n);a>=0&&(i.splice(a,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,n){var i=it(this._children,r);return i>=0&&this.replaceAt(n,i),this},t.prototype.replaceAt=function(r,n){var i=this._children,a=i[n];if(r&&r!==this&&r.parent!==this&&r!==a){i[n]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},t.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(r){var n=this.__zr,i=this._children,a=it(i,r);return a<0?this:(i.splice(a,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,i=0;i<r.length;i++){var a=r[i];n&&a.removeSelfFromZr(n),a.parent=null}return r.length=0,this},t.prototype.eachChild=function(r,n){for(var i=this._children,a=0;a<i.length;a++){var o=i[a];r.call(n,o,a)}return this},t.prototype.traverse=function(r,n){for(var i=0;i<this._children.length;i++){var a=this._children[i],o=r.call(n,a);a.isGroup&&!o&&a.traverse(r,n)}return this},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.addSelfToZr(r)}},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(r)}},t.prototype.getBoundingRect=function(r){for(var n=new tt(0,0,0,0),i=r||this._children,a=[],o=null,s=0;s<i.length;s++){var l=i[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(a);f?(tt.applyTransform(n,u,f),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},t}(RA);OA.prototype.type="group";const sn=OA;/*!
 * ZRender, a high performance 2d drawing library.
 *
 * Copyright (c) 2013, Baidu Inc.
@@ -55,20 +55,20 @@ PERFORMANCE OF THIS SOFTWARE.
 *
 * LICENSE
 * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
-*/var Cc={},OA={};function yU(e){delete OA[e]}function _U(e){if(!e)return!1;if(typeof e=="string")return Zc(e,1)<Tg;if(e.colorStops){for(var t=e.colorStops,r=0,n=t.length,i=0;i<n;i++)r+=Zc(t[i].color,1);return r/=n,r<Tg}return!1}var bU=function(){function e(t,r,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=r,this.id=t;var a=new NG,o=n.renderer||"canvas";Cc[o]||(o=xt(Cc)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new Cc[o](r,a,n,t),l=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!Ve.node&&!Ve.worker&&!l?new lU(s.getViewportRoot(),s.root):null,f=n.useCoarsePointer,c=f==null||f==="auto"?Ve.touchEventsSupported:!!f,d=44,h;c&&(h=qe(n.pointerSize,d)),this.handler=new DG(a,s,u,s.root,h),this.animation=new eU({stage:{update:l?null:function(){return i._flush(!0)}}}),l||this.animation.start()}return e.prototype.add=function(t){t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},e.prototype.remove=function(t){t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(t,r){this.painter.configLayer&&this.painter.configLayer(t,r),this.refresh()},e.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=_U(t)},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(t){this._darkMode=t},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(t){t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},e.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},e.prototype.flush=function(){this._flush(!1)},e.prototype._flush=function(t){var r,n=Ko();this._needsRefresh&&(r=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var i=Ko();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},e.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},e.prototype.clearAnimation=function(){this.animation.clear()},e.prototype.getWidth=function(){return this.painter.getWidth()},e.prototype.getHeight=function(){return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,r){return this.handler.findHover(t,r)},e.prototype.on=function(t,r,n){return this.handler.on(t,r,n),this},e.prototype.off=function(t,r){this.handler.off(t,r)},e.prototype.trigger=function(t,r){this.handler.trigger(t,r)},e.prototype.clear=function(){for(var t=this.storage.getRoots(),r=0;r<t.length;r++)t[r]instanceof sn&&t[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},e.prototype.dispose=function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,yU(this.id)},e}();function z1(e,t){var r=new bU(aA(),e,t);return OA[r.id]=r,r}function wU(e,t){Cc[e]=t}var W1=1e-4,kA=20;function xU(e){return e.replace(/^\s+|\s+$/g,"")}function Eg(e,t,r,n){var i=t[0],a=t[1],o=r[0],s=r[1],l=a-i,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(e<=i)return o;if(e>=a)return s}else{if(e>=i)return o;if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/l*u+o}function pt(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return Ce(e)?xU(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function It(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),kA),e=(+e).toFixed(t),r?e:+e}function ui(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,r=0;r<15;r++,t*=10)if(Math.round(e*t)/t===e)return r}return SU(e)}function SU(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),n=r>0?+t.slice(r+1):0,i=r>0?r:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function CU(e,t){var r=Math.log,n=Math.LN10,i=Math.floor(r(e[1]-e[0])/n),a=Math.round(r(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function TU(e,t){var r=ea(e,function(h,v){return h+(isNaN(v)?0:v)},0);if(r===0)return[];for(var n=Math.pow(10,t),i=Oe(e,function(h){return(isNaN(h)?0:h)/r*n*100}),a=n*100,o=Oe(i,function(h){return Math.floor(h)}),s=ea(o,function(h,v){return h+v},0),l=Oe(i,function(h,v){return h-o[v]});s<a;){for(var u=Number.NEGATIVE_INFINITY,f=null,c=0,d=l.length;c<d;++c)l[c]>u&&(u=l[c],f=c);++o[f],l[f]=0,++s}return Oe(o,function(h){return h/n})}function MU(e,t){var r=Math.max(ui(e),ui(t)),n=e+t;return r>kA?n:It(n,r)}function NA(e){var t=Math.PI*2;return(e%t+t)%t}function ed(e){return e>-W1&&e<W1}var AU=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function yi(e){if(e instanceof Date)return e;if(Ce(e)){var t=AU.exec(e);if(!t)return new Date(NaN);if(t[8]){var r=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(r-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,r,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(e==null)return new Date(NaN);return new Date(Math.round(e))}function EU(e){return Math.pow(10,zy(e))}function zy(e){if(e===0)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function BA(e,t){var r=zy(e),n=Math.pow(10,r),i=e/n,a;return t?i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10:i<1?a=1:i<2?a=2:i<3?a=3:i<5?a=5:a=10,e=a*n,r>=-20?+e.toFixed(r<0?-r:0):e}function td(e){var t=parseFloat(e);return t==e&&(t!==0||!Ce(e)||e.indexOf("x")<=0)?t:NaN}function PU(e){return!isNaN(td(e))}function FA(){return Math.round(Math.random()*9)}function $A(e,t){return t===0?e:$A(t,e%t)}function V1(e,t){return e==null?t:t==null?e:e*t/$A(e,t)}function mr(e){throw new Error(e)}function G1(e,t,r){return(t-e)*r+e}var HA="series\0",LU="\0_ec_\0";function lr(e){return e instanceof Array?e:e==null?[]:[e]}function Pg(e,t,r){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var n=0,i=r.length;n<i;n++){var a=r[n];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}var U1=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function Vu(e){return Pe(e)&&!ge(e)&&!(e instanceof Date)?e.value:e}function DU(e){return Pe(e)&&!(e instanceof Array)}function IU(e,t,r){var n=r==="normalMerge",i=r==="replaceMerge",a=r==="replaceAll";e=e||[],t=(t||[]).slice();var o=Ge();R(t,function(l,u){if(!Pe(l)){t[u]=null;return}});var s=RU(e,o,r);return(n||i)&&OU(s,e,o,t),n&&kU(s,t),n||i?NU(s,t,i):a&&BU(s,t),FU(s),s}function RU(e,t,r){var n=[];if(r==="replaceAll")return n;for(var i=0;i<e.length;i++){var a=e[i];a&&a.id!=null&&t.set(a.id,i),n.push({existing:r==="replaceMerge"||yu(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function OU(e,t,r,n){R(n,function(i,a){if(!(!i||i.id==null)){var o=zl(i.id),s=r.get(o);if(s!=null){var l=e[s];mi(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=i,l.existing=t[s],n[a]=null}}})}function kU(e,t){R(t,function(r,n){if(!(!r||r.name==null))for(var i=0;i<e.length;i++){var a=e[i].existing;if(!e[i].newOption&&a&&(a.id==null||r.id==null)&&!yu(r)&&!yu(a)&&zA("name",a,r)){e[i].newOption=r,t[n]=null;return}}})}function NU(e,t,r){R(t,function(n){if(n){for(var i,a=0;(i=e[a])&&(i.newOption||yu(i.existing)||i.existing&&n.id!=null&&!zA("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=r):e.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),a++}})}function BU(e,t){R(t,function(r){e.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function FU(e){var t=Ge();R(e,function(r){var n=r.existing;n&&t.set(n.id,r)}),R(e,function(r){var n=r.newOption;mi(!n||n.id==null||!t.get(n.id)||t.get(n.id)===r,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&t.set(n.id,r),!r.keyInfo&&(r.keyInfo={})}),R(e,function(r,n){var i=r.existing,a=r.newOption,o=r.keyInfo;if(Pe(a)){if(o.name=a.name!=null?zl(a.name):i?i.name:HA+n,i)o.id=zl(i.id);else if(a.id!=null)o.id=zl(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,r)}})}function zA(e,t,r){var n=Un(t[e],null),i=Un(r[e],null);return n!=null&&i!=null&&n===i}function zl(e){return Un(e,"")}function Un(e,t){return e==null?t:Ce(e)?e:_t(e)||fg(e)?e+"":t}function Wy(e){var t=e.name;return!!(t&&t.indexOf(HA))}function yu(e){return e&&e.id!=null&&zl(e.id).indexOf(LU)===0}function $U(e,t,r){R(e,function(n){var i=n.newOption;Pe(i)&&(n.keyInfo.mainType=t,n.keyInfo.subType=HU(t,i,n.existing,r))})}function HU(e,t,r,n){var i=t.type?t.type:r?r.subType:n.determineSubType(e,t);return i}function Gu(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return ge(t.dataIndex)?Oe(t.dataIndex,function(r){return e.indexOfRawIndex(r)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return ge(t.name)?Oe(t.name,function(r){return e.indexOfName(r)}):e.indexOfName(t.name)}function Tt(){var e="__ec_inner_"+zU++;return function(t){return t[e]||(t[e]={})}}var zU=FA();function pv(e,t,r){var n=Vy(t,r),i=n.mainTypeSpecified,a=n.queryOptionMap,o=n.others,s=o,l=r?r.defaultMainType:null;return!i&&l&&a.set(l,{}),a.each(function(u,f){var c=Uu(e,f,u,{useDefault:l===f,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[f+"Models"]=c.models,s[f+"Model"]=c.models[0]}),s}function Vy(e,t){var r;if(Ce(e)){var n={};n[e+"Index"]=0,r=n}else r=e;var i=Ge(),a={},o=!1;return R(r,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],c=(u[2]||"").toLowerCase();if(!(!f||!c||t&&t.includeMainTypes&&nt(t.includeMainTypes,f)<0)){o=o||!!f;var d=i.get(f)||i.set(f,{});d[c]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var _n={useDefault:!0,enableAll:!1,enableNone:!1};function Uu(e,t,r,n){n=n||_n;var i=r.index,a=r.id,o=r.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=e.getComponent(t))?[l]:[],s}return i==="none"||i===!1?(mi(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(i==="all"&&(mi(n.enableAll,'`"all"` is not a valid value on index option.'),i=a=o=null),s.models=e.queryComponents({mainType:t,index:i,id:a,name:o}),s)}function WA(e,t,r){e.setAttribute?e.setAttribute(t,r):e[t]=r}function WU(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function VU(e){return e==="auto"?Ve.domSupported?"html":"richText":e||"html"}function GU(e,t,r,n,i){var a=t==null||t==="auto";if(n==null)return n;if(_t(n)){var o=G1(r||0,n,i);return It(o,a?Math.max(ui(r||0),ui(n)):t)}else{if(Ce(n))return i<1?r:n;for(var s=[],l=r,u=n,f=Math.max(l?l.length:0,u.length),c=0;c<f;++c){var d=e.getDimensionInfo(c);if(d&&d.type==="ordinal")s[c]=(i<1&&l?l:u)[c];else{var h=l&&l[c]?l[c]:0,v=u[c],o=G1(h,v,i);s[c]=It(o,a?Math.max(ui(h),ui(v)):t)}}return s}}var UU=".",ya="___EC__COMPONENT__CONTAINER___",VA="___EC__EXTENDED_CLASS___";function Wn(e){var t={main:"",sub:""};if(e){var r=e.split(UU);t.main=r[0]||"",t.sub=r[1]||""}return t}function YU(e){mi(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function qU(e){return!!(e&&e[VA])}function Gy(e,t){e.$constructor=e,e.extend=function(r){var n=this,i;return jU(n)?i=function(a){pe(o,a);function o(){return a.apply(this,arguments)||this}return o}(n):(i=function(){(r.$constructor||n).apply(this,arguments)},YV(i,this)),oe(i.prototype,r),i[VA]=!0,i.extend=this.extend,i.superCall=ZU,i.superApply=QU,i.superClass=n,i}}function jU(e){return We(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function GA(e,t){e.extend=t.extend}var KU=Math.round(Math.random()*10);function XU(e){var t=["__\0is_clz",KU++].join("_");e.prototype[t]=!0,e.isInstance=function(r){return!!(r&&r[t])}}function ZU(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this.superClass.prototype[t].apply(e,r)}function QU(e,t,r){return this.superClass.prototype[t].apply(e,r)}function eh(e){var t={};e.registerClass=function(n){var i=n.type||n.prototype.type;if(i){YU(i),n.prototype.type=i;var a=Wn(i);if(!a.sub)t[a.main]=n;else if(a.sub!==ya){var o=r(a);o[a.sub]=n}}return n},e.getClass=function(n,i,a){var o=t[n];if(o&&o[ya]&&(o=i?o[i]:null),a&&!o)throw new Error(i?"Component "+n+"."+(i||"")+" is used but not imported.":n+".type should be specified.");return o},e.getClassesByMainType=function(n){var i=Wn(n),a=[],o=t[i.main];return o&&o[ya]?R(o,function(s,l){l!==ya&&a.push(s)}):a.push(o),a},e.hasClass=function(n){var i=Wn(n);return!!t[i.main]},e.getAllClassMainTypes=function(){var n=[];return R(t,function(i,a){n.push(a)}),n},e.hasSubTypes=function(n){var i=Wn(n),a=t[i.main];return a&&a[ya]};function r(n){var i=t[n.main];return(!i||!i[ya])&&(i=t[n.main]={},i[ya]=!0),i}}function _u(e,t){for(var r=0;r<e.length;r++)e[r][1]||(e[r][1]=e[r][0]);return t=t||!1,function(n,i,a){for(var o={},s=0;s<e.length;s++){var l=e[s][1];if(!(i&&nt(i,l)>=0||a&&nt(a,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[e[s][0]]=u)}}return o}}var JU=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],e9=_u(JU),t9=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return e9(this,t,r)},e}(),Lg=new Wu(50);function r9(e){if(typeof e=="string"){var t=Lg.get(e);return t&&t.image}else return e}function UA(e,t,r,n,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var a=Lg.get(e),o={hostEl:r,cb:n,cbPayload:i};return a?(t=a.image,!th(t)&&a.pending.push(o)):(t=bo.loadImage(e,Y1,Y1),t.__zrImageSrc=e,Lg.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function Y1(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var r=e.pending[t],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}e.pending.length=0}function th(e){return e&&e.width&&e.height}var gv=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function n9(e,t,r,n,i){if(!t)return"";var a=(e+"").split(`
-`);i=YA(t,r,n,i);for(var o=0,s=a.length;o<s;o++)a[o]=qA(a[o],i);return a.join(`
-`)}function YA(e,t,r,n){n=n||{};var i=oe({},n);i.font=t,r=qe(r,"..."),i.maxIterations=qe(n.maxIterations,2);var a=i.minChar=qe(n.minChar,0);i.cnCharWidth=Nr("国",t);var o=i.ascCharWidth=Nr("a",t);i.placeholder=qe(n.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<a&&s>=o;l++)s-=o;var u=Nr(r,t);return u>s&&(r="",u=0),s=e-u,i.ellipsis=r,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=e,i}function qA(e,t){var r=t.containerWidth,n=t.font,i=t.contentWidth;if(!r)return"";var a=Nr(e,n);if(a<=r)return e;for(var o=0;;o++){if(a<=i||o>=t.maxIterations){e+=t.ellipsis;break}var s=o===0?i9(e,i,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(e.length*i/a):0;e=e.substr(0,s),a=Nr(e,n)}return e===""&&(e=t.placeholder),e}function i9(e,t,r,n){for(var i=0,a=0,o=e.length;a<o&&i<t;a++){var s=e.charCodeAt(a);i+=0<=s&&s<=127?r:n}return a}function a9(e,t){e!=null&&(e+="");var r=t.overflow,n=t.padding,i=t.font,a=r==="truncate",o=$y(i),s=qe(t.lineHeight,o),l=!!t.backgroundColor,u=t.lineOverflow==="truncate",f=t.width,c;f!=null&&(r==="break"||r==="breakAll")?c=e?jA(e,t.font,f,r==="breakAll",0).lines:[]:c=e?e.split(`
-`):[];var d=c.length*s,h=qe(t.height,d);if(d>h&&u){var v=Math.floor(h/s);c=c.slice(0,v)}if(e&&a&&f!=null)for(var p=YA(f,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),g=0;g<c.length;g++)c[g]=qA(c[g],p);for(var m=h,y=0,g=0;g<c.length;g++)y=Math.max(Nr(c[g],i),y);f==null&&(f=y);var _=y;return n&&(m+=n[0]+n[2],_+=n[1]+n[3],f+=n[1]+n[3]),l&&(_=f),{lines:c,height:h,outerWidth:_,outerHeight:m,lineHeight:s,calculatedLineHeight:o,contentWidth:y,contentHeight:d,width:f}}var o9=function(){function e(){}return e}(),q1=function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e}(),s9=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return e}();function l9(e,t){var r=new s9;if(e!=null&&(e+=""),!e)return r;for(var n=t.width,i=t.height,a=t.overflow,o=(a==="break"||a==="breakAll")&&n!=null?{width:n,accumWidth:0,breakAll:a==="breakAll"}:null,s=gv.lastIndex=0,l;(l=gv.exec(e))!=null;){var u=l.index;u>s&&mv(r,e.substring(s,u),t,o),mv(r,l[2],t,o,l[1]),s=gv.lastIndex}s<e.length&&mv(r,e.substring(s,e.length),t,o);var f=[],c=0,d=0,h=t.padding,v=a==="truncate",p=t.lineOverflow==="truncate";function g(B,N,U){B.width=N,B.lineHeight=U,c+=U,d=Math.max(d,N)}e:for(var m=0;m<r.lines.length;m++){for(var y=r.lines[m],_=0,b=0,x=0;x<y.tokens.length;x++){var w=y.tokens[x],S=w.styleName&&t.rich[w.styleName]||{},C=w.textPadding=S.padding,T=C?C[1]+C[3]:0,E=w.font=S.font||t.font;w.contentHeight=$y(E);var A=qe(S.height,w.contentHeight);if(w.innerHeight=A,C&&(A+=C[0]+C[2]),w.height=A,w.lineHeight=Bl(S.lineHeight,t.lineHeight,A),w.align=S&&S.align||t.align,w.verticalAlign=S&&S.verticalAlign||"middle",p&&i!=null&&c+w.lineHeight>i){x>0?(y.tokens=y.tokens.slice(0,x),g(y,b,_),r.lines=r.lines.slice(0,m+1)):r.lines=r.lines.slice(0,m);break e}var M=S.width,D=M==null||M==="auto";if(typeof M=="string"&&M.charAt(M.length-1)==="%")w.percentWidth=M,f.push(w),w.contentWidth=Nr(w.text,E);else{if(D){var O=S.backgroundColor,k=O&&O.image;k&&(k=r9(k),th(k)&&(w.width=Math.max(w.width,k.width*A/k.height)))}var F=v&&n!=null?n-b:null;F!=null&&F<w.width?!D||F<T?(w.text="",w.width=w.contentWidth=0):(w.text=n9(w.text,F-T,E,t.ellipsis,{minChar:t.truncateMinChar}),w.width=w.contentWidth=Nr(w.text,E)):w.contentWidth=Nr(w.text,E)}w.width+=T,b+=w.width,S&&(_=Math.max(_,w.lineHeight))}g(y,b,_)}r.outerWidth=r.width=qe(n,d),r.outerHeight=r.height=qe(i,c),r.contentHeight=c,r.contentWidth=d,h&&(r.outerWidth+=h[1]+h[3],r.outerHeight+=h[0]+h[2]);for(var m=0;m<f.length;m++){var w=f[m],j=w.percentWidth;w.width=parseInt(j,10)/100*r.width}return r}function mv(e,t,r,n,i){var a=t==="",o=i&&r.rich[i]||{},s=e.lines,l=o.font||r.font,u=!1,f,c;if(n){var d=o.padding,h=d?d[1]+d[3]:0;if(o.width!=null&&o.width!=="auto"){var v=ta(o.width,n.width)+h;s.length>0&&v+n.accumWidth>n.width&&(f=t.split(`
-`),u=!0),n.accumWidth=v}else{var p=jA(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=p.accumWidth+h,c=p.linesWidths,f=p.lines}}else f=t.split(`
-`);for(var g=0;g<f.length;g++){var m=f[g],y=new o9;if(y.styleName=i,y.text=m,y.isLineHolder=!m&&!a,typeof o.width=="number"?y.width=o.width:y.width=c?c[g]:Nr(m,l),!g&&!u){var _=(s[s.length-1]||(s[0]=new q1)).tokens,b=_.length;b===1&&_[0].isLineHolder?_[0]=y:(m||!b||a)&&_.push(y)}else s.push(new q1([y]))}}function u9(e){var t=e.charCodeAt(0);return t>=33&&t<=383}var f9=ea(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function c9(e){return u9(e)?!!f9[e]:!0}function jA(e,t,r,n,i){for(var a=[],o=[],s="",l="",u=0,f=0,c=0;c<e.length;c++){var d=e.charAt(c);if(d===`
-`){l&&(s+=l,f+=u),a.push(s),o.push(f),s="",l="",u=0,f=0;continue}var h=Nr(d,t),v=n?!1:!c9(d);if(a.length?f+h>r:i+f+h>r){f?(s||l)&&(v?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=d,u+=h,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=d,f=h)):v?(a.push(l),o.push(u),l=d,u=h):(a.push(d),o.push(h));continue}f+=h,v?(l+=d,u+=h):(l&&(s+=l,l="",u=0),s+=d)}return!a.length&&!s&&(s=e,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=i),{accumWidth:f,lines:a,linesWidths:o}}var Dg="__zr_style_"+Math.round(Math.random()*10),ro={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},rh={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};ro[Dg]=!0;var j1=["z","z2","invisible"],d9=["invisible"],h9=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=xt(r),i=0;i<n.length;i++){var a=n[i];a==="style"?this.useStyle(r[a]):e.prototype.attrKV.call(this,a,r[a])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(r,n,i,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&v9(this,r,n)||o&&!o[0]&&!o[3])return!1;if(i&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(r,n){return this.rectContain(r,n)},t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.rectContain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();return a.contain(i[0],i[1])},t.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,i=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new et(0,0,0,0)),n?et.applyTransform(r,i,n):r.copy(i),(o||s||l)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(l),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+l-o));var u=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-u),r.y=Math.floor(r.y-u),r.width=Math.ceil(r.width+1+u*2),r.height=Math.ceil(r.height+1+u*2))}return r},t.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new et(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(r){return this.animate("style",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(r,n){r!=="style"?e.prototype.attrKV.call(this,r,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(r,n){return typeof r=="string"?this.style[r]=n:oe(this.style,r),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=ml,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&ml)},t.prototype.styleUpdated=function(){this.__dirty&=~ml},t.prototype.createStyle=function(r){return Zd(ro,r)},t.prototype.useStyle=function(r){r[Dg]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},t.prototype.isStyleObject=function(r){return r[Dg]},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,n,j1)},t.prototype._applyStateObj=function(r,n,i,a,o,s){e.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.style?o?a?u=n.style:(u=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(u,n.style)):(u=this._mergeStyle(this.createStyle(),a?this.style:i.style),this._mergeStyle(u,n.style)):l&&(u=i.style),u)if(o){var f=this.style;if(this.style=this.createStyle(l?{}:f),l)for(var c=xt(f),d=0;d<c.length;d++){var h=c[d];h in u&&(u[h]=u[h],this.style[h]=f[h])}for(var v=xt(u),d=0;d<v.length;d++){var h=v[d];this.style[h]=this.style[h]}this._transitionState(r,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var p=this.__inHover?d9:j1,d=0;d<p.length;d++){var h=p[d];n&&n[h]!=null?this[h]=n[h]:l&&i[h]!=null&&(this[h]=i[h])}},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(n.style=i),n},t.prototype._mergeStyle=function(r,n){return oe(r,n),r},t.prototype.getAnimationStyleProps=function(){return rh},t.initDefaultProps=function(){var r=t.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=!1,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=Ir|ml}(),t}(IA),yv=new et(0,0,0,0),_v=new et(0,0,0,0);function v9(e,t,r){return yv.copy(e.getBoundingRect()),e.transform&&yv.applyTransform(e.transform),_v.width=t,_v.height=r,!yv.intersect(_v)}const Yu=h9;var Zr=Math.min,Qr=Math.max,bv=Math.sin,wv=Math.cos,_a=Math.PI*2,Sf=Ns(),Cf=Ns(),Tf=Ns();function K1(e,t,r,n,i,a){i[0]=Zr(e,r),i[1]=Zr(t,n),a[0]=Qr(e,r),a[1]=Qr(t,n)}var X1=[],Z1=[];function p9(e,t,r,n,i,a,o,s,l,u){var f=wA,c=Gt,d=f(e,r,i,o,X1);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<d;h++){var v=c(e,r,i,o,X1[h]);l[0]=Zr(v,l[0]),u[0]=Qr(v,u[0])}d=f(t,n,a,s,Z1);for(var h=0;h<d;h++){var p=c(t,n,a,s,Z1[h]);l[1]=Zr(p,l[1]),u[1]=Qr(p,u[1])}l[0]=Zr(e,l[0]),u[0]=Qr(e,u[0]),l[0]=Zr(o,l[0]),u[0]=Qr(o,u[0]),l[1]=Zr(t,l[1]),u[1]=Qr(t,u[1]),l[1]=Zr(s,l[1]),u[1]=Qr(s,u[1])}function g9(e,t,r,n,i,a,o,s){var l=SA,u=Zt,f=Qr(Zr(l(e,r,i),1),0),c=Qr(Zr(l(t,n,a),1),0),d=u(e,r,i,f),h=u(t,n,a,c);o[0]=Zr(e,i,d),o[1]=Zr(t,a,h),s[0]=Qr(e,i,d),s[1]=Qr(t,a,h)}function m9(e,t,r,n,i,a,o,s,l){var u=qo,f=jo,c=Math.abs(i-a);if(c%_a<1e-4&&c>1e-4){s[0]=e-r,s[1]=t-n,l[0]=e+r,l[1]=t+n;return}if(Sf[0]=wv(i)*r+e,Sf[1]=bv(i)*n+t,Cf[0]=wv(a)*r+e,Cf[1]=bv(a)*n+t,u(s,Sf,Cf),f(l,Sf,Cf),i=i%_a,i<0&&(i=i+_a),a=a%_a,a<0&&(a=a+_a),i>a&&!o?a+=_a:i<a&&o&&(i+=_a),o){var d=a;a=i,i=d}for(var h=0;h<a;h+=Math.PI/2)h>i&&(Tf[0]=wv(h)*r+e,Tf[1]=bv(h)*n+t,u(s,Tf,s),f(l,Tf,l))}var rt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},ba=[],wa=[],Dn=[],Li=[],In=[],Rn=[],xv=Math.min,Sv=Math.max,xa=Math.cos,Sa=Math.sin,ni=Math.abs,Ig=Math.PI,Bi=Ig*2,Cv=typeof Float32Array<"u",Js=[];function Tv(e){var t=Math.round(e/Ig*1e8)/1e8;return t%2*Ig}function y9(e,t){var r=Tv(e[0]);r<0&&(r+=Bi);var n=r-e[0],i=e[1];i+=n,!t&&i-r>=Bi?i=r+Bi:t&&r-i>=Bi?i=r-Bi:!t&&r>i?i=r+(Bi-Tv(r-i)):t&&r<i&&(i=r-(Bi-Tv(i-r))),e[0]=r,e[1]=i}var _9=function(){function e(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(t,r,n){n=n||0,n>0&&(this._ux=ni(n/Qc/t)||0,this._uy=ni(n/Qc/r)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,r){return this._drawPendingPt(),this.addData(rt.M,t,r),this._ctx&&this._ctx.moveTo(t,r),this._x0=t,this._y0=r,this._xi=t,this._yi=r,this},e.prototype.lineTo=function(t,r){var n=ni(t-this._xi),i=ni(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(rt.L,t,r),this._ctx&&a&&this._ctx.lineTo(t,r),a)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,r,n,i,a,o){return this._drawPendingPt(),this.addData(rt.C,t,r,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(t,r,n,i,a,o),this._xi=a,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,r,n,i){return this._drawPendingPt(),this.addData(rt.Q,t,r,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,r,n,i),this._xi=n,this._yi=i,this},e.prototype.arc=function(t,r,n,i,a,o){this._drawPendingPt(),Js[0]=i,Js[1]=a,y9(Js,o),i=Js[0],a=Js[1];var s=a-i;return this.addData(rt.A,t,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,n,i,a,o),this._xi=xa(a)*n+t,this._yi=Sa(a)*n+r,this},e.prototype.arcTo=function(t,r,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,n,i,a),this},e.prototype.rect=function(t,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,n,i),this.addData(rt.R,t,r,n,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(rt.Z);var t=this._ctx,r=this._x0,n=this._y0;return t&&t.closePath(),this._xi=r,this._yi=n,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){var r=t.length;!(this.data&&this.data.length===r)&&Cv&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=t[n];this._len=r},e.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var r=t.length,n=0,i=this._len,a=0;a<r;a++)n+=t[a].len();Cv&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(var a=0;a<r;a++)for(var o=t[a].data,s=0;s<o.length;s++)this.data[i++]=o[s];this._len=i},e.prototype.addData=function(t,r,n,i,a,o,s,l,u){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var c=0;c<arguments.length;c++)f[this._len++]=arguments[c]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],r=0;r<this._len;r++)t[r]=this.data[r];this.data=t}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,Cv&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){Dn[0]=Dn[1]=In[0]=In[1]=Number.MAX_VALUE,Li[0]=Li[1]=Rn[0]=Rn[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,i=0,a=0,o;for(o=0;o<this._len;){var s=t[o++],l=o===1;switch(l&&(r=t[o],n=t[o+1],i=r,a=n),s){case rt.M:r=i=t[o++],n=a=t[o++],In[0]=i,In[1]=a,Rn[0]=i,Rn[1]=a;break;case rt.L:K1(r,n,t[o],t[o+1],In,Rn),r=t[o++],n=t[o++];break;case rt.C:p9(r,n,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],In,Rn),r=t[o++],n=t[o++];break;case rt.Q:g9(r,n,t[o++],t[o++],t[o],t[o+1],In,Rn),r=t[o++],n=t[o++];break;case rt.A:var u=t[o++],f=t[o++],c=t[o++],d=t[o++],h=t[o++],v=t[o++]+h;o+=1;var p=!t[o++];l&&(i=xa(h)*c+u,a=Sa(h)*d+f),m9(u,f,c,d,h,v,p,In,Rn),r=xa(v)*c+u,n=Sa(v)*d+f;break;case rt.R:i=r=t[o++],a=n=t[o++];var g=t[o++],m=t[o++];K1(i,a,i+g,a+m,In,Rn);break;case rt.Z:r=i,n=a;break}qo(Dn,Dn,In),jo(Li,Li,Rn)}return o===0&&(Dn[0]=Dn[1]=Li[0]=Li[1]=0),new et(Dn[0],Dn[1],Li[0]-Dn[0],Li[1]-Dn[1])},e.prototype._calculateLength=function(){var t=this.data,r=this._len,n=this._ux,i=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,c=0,d=0;d<r;){var h=t[d++],v=d===1;v&&(a=t[d],o=t[d+1],s=a,l=o);var p=-1;switch(h){case rt.M:a=s=t[d++],o=l=t[d++];break;case rt.L:{var g=t[d++],m=t[d++],y=g-a,_=m-o;(ni(y)>n||ni(_)>i||d===r-1)&&(p=Math.sqrt(y*y+_*_),a=g,o=m);break}case rt.C:{var b=t[d++],x=t[d++],g=t[d++],m=t[d++],w=t[d++],S=t[d++];p=BG(a,o,b,x,g,m,w,S,10),a=w,o=S;break}case rt.Q:{var b=t[d++],x=t[d++],g=t[d++],m=t[d++];p=$G(a,o,b,x,g,m,10),a=g,o=m;break}case rt.A:var C=t[d++],T=t[d++],E=t[d++],A=t[d++],M=t[d++],D=t[d++],O=D+M;d+=1,t[d++],v&&(s=xa(M)*E+C,l=Sa(M)*A+T),p=Sv(E,A)*xv(Bi,Math.abs(D)),a=xa(O)*E+C,o=Sa(O)*A+T;break;case rt.R:{s=a=t[d++],l=o=t[d++];var k=t[d++],F=t[d++];p=k*2+F*2;break}case rt.Z:{var y=s-a,_=l-o;p=Math.sqrt(y*y+_*_),a=s,o=l;break}}p>=0&&(u[c++]=p,f+=p)}return this._pathLen=f,f},e.prototype.rebuildPath=function(t,r){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,f,c,d,h=r<1,v,p,g=0,m=0,y,_=0,b,x;if(h&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,p=this._pathLen,y=r*p,!y))return;e:for(var w=0;w<o;){var S=n[w++],C=w===1;switch(C&&(u=n[w],f=n[w+1],s=u,l=f),S!==rt.L&&_>0&&(t.lineTo(b,x),_=0),S){case rt.M:s=u=n[w++],l=f=n[w++],t.moveTo(u,f);break;case rt.L:{c=n[w++],d=n[w++];var T=ni(c-u),E=ni(d-f);if(T>i||E>a){if(h){var A=v[m++];if(g+A>y){var M=(y-g)/A;t.lineTo(u*(1-M)+c*M,f*(1-M)+d*M);break e}g+=A}t.lineTo(c,d),u=c,f=d,_=0}else{var D=T*T+E*E;D>_&&(b=c,x=d,_=D)}break}case rt.C:{var O=n[w++],k=n[w++],F=n[w++],j=n[w++],B=n[w++],N=n[w++];if(h){var A=v[m++];if(g+A>y){var M=(y-g)/A;Kc(u,O,F,B,M,ba),Kc(f,k,j,N,M,wa),t.bezierCurveTo(ba[1],wa[1],ba[2],wa[2],ba[3],wa[3]);break e}g+=A}t.bezierCurveTo(O,k,F,j,B,N),u=B,f=N;break}case rt.Q:{var O=n[w++],k=n[w++],F=n[w++],j=n[w++];if(h){var A=v[m++];if(g+A>y){var M=(y-g)/A;Xc(u,O,F,M,ba),Xc(f,k,j,M,wa),t.quadraticCurveTo(ba[1],wa[1],ba[2],wa[2]);break e}g+=A}t.quadraticCurveTo(O,k,F,j),u=F,f=j;break}case rt.A:var U=n[w++],re=n[w++],ae=n[w++],me=n[w++],Te=n[w++],V=n[w++],Q=n[w++],W=!n[w++],Y=ae>me?ae:me,se=ni(ae-me)>.001,he=Te+V,Z=!1;if(h){var A=v[m++];g+A>y&&(he=Te+V*(y-g)/A,Z=!0),g+=A}if(se&&t.ellipse?t.ellipse(U,re,ae,me,Q,Te,he,W):t.arc(U,re,Y,Te,he,W),Z)break e;C&&(s=xa(Te)*ae+U,l=Sa(Te)*me+re),u=xa(he)*ae+U,f=Sa(he)*me+re;break;case rt.R:s=u=n[w],l=f=n[w+1],c=n[w++],d=n[w++];var P=n[w++],I=n[w++];if(h){var A=v[m++];if(g+A>y){var z=y-g;t.moveTo(c,d),t.lineTo(c+xv(z,P),d),z-=P,z>0&&t.lineTo(c+P,d+xv(z,I)),z-=I,z>0&&t.lineTo(c+Sv(P-z,0),d+I),z-=P,z>0&&t.lineTo(c,d+Sv(I-z,0));break e}g+=A}t.rect(c,d,P,I);break;case rt.Z:if(h){var A=v[m++];if(g+A>y){var M=(y-g)/A;t.lineTo(u*(1-M)+s*M,f*(1-M)+l*M);break e}g+=A}t.closePath(),u=s,f=l}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.CMD=rt,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();const ho=_9;function Do(e,t,r,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=e;if(o>t+s&&o>n+s||o<t-s&&o<n-s||a>e+s&&a>r+s||a<e-s&&a<r-s)return!1;if(e!==r)l=(t-n)/(e-r),u=(e*n-r*t)/(e-r);else return Math.abs(a-e)<=s/2;var f=l*a-o+u,c=f*f/(l*l+1);return c<=s/2*s/2}function b9(e,t,r,n,i,a,o,s,l,u,f){if(l===0)return!1;var c=l;if(f>t+c&&f>n+c&&f>a+c&&f>s+c||f<t-c&&f<n-c&&f<a-c&&f<s-c||u>e+c&&u>r+c&&u>i+c&&u>o+c||u<e-c&&u<r-c&&u<i-c&&u<o-c)return!1;var d=xA(e,t,r,n,i,a,o,s,u,f,null);return d<=c/2}function w9(e,t,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;if(l>t+u&&l>n+u&&l>a+u||l<t-u&&l<n-u&&l<a-u||s>e+u&&s>r+u&&s>i+u||s<e-u&&s<r-u&&s<i-u)return!1;var f=CA(e,t,r,n,i,a,s,l,null);return f<=u/2}var Q1=Math.PI*2;function Ui(e){return e%=Q1,e<0&&(e+=Q1),e}var el=Math.PI*2;function x9(e,t,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;s-=e,l-=t;var f=Math.sqrt(s*s+l*l);if(f-u>r||f+u<r)return!1;if(Math.abs(n-i)%el<1e-4)return!0;if(a){var c=n;n=Ui(i),i=Ui(c)}else n=Ui(n),i=Ui(i);n>i&&(i+=el);var d=Math.atan2(l,s);return d<0&&(d+=el),d>=n&&d<=i||d+el>=n&&d+el<=i}function Ca(e,t,r,n,i,a){if(a>t&&a>n||a<t&&a<n||n===t)return 0;var o=(a-t)/(n-t),s=n<t?1:-1;(o===1||o===0)&&(s=n<t?.5:-.5);var l=o*(r-e)+e;return l===i?1/0:l>i?s:0}var Di=ho.CMD,Ta=Math.PI*2,S9=1e-4;function C9(e,t){return Math.abs(e-t)<S9}var ir=[-1,-1,-1],jr=[-1,-1];function T9(){var e=jr[0];jr[0]=jr[1],jr[1]=e}function M9(e,t,r,n,i,a,o,s,l,u){if(u>t&&u>n&&u>a&&u>s||u<t&&u<n&&u<a&&u<s)return 0;var f=bA(t,n,a,s,u,ir);if(f===0)return 0;for(var c=0,d=-1,h=void 0,v=void 0,p=0;p<f;p++){var g=ir[p],m=g===0||g===1?.5:1,y=Gt(e,r,i,o,g);y<l||(d<0&&(d=wA(t,n,a,s,jr),jr[1]<jr[0]&&d>1&&T9(),h=Gt(t,n,a,s,jr[0]),d>1&&(v=Gt(t,n,a,s,jr[1]))),d===2?g<jr[0]?c+=h<t?m:-m:g<jr[1]?c+=v<h?m:-m:c+=s<v?m:-m:g<jr[0]?c+=h<t?m:-m:c+=s<h?m:-m)}return c}function A9(e,t,r,n,i,a,o,s){if(s>t&&s>n&&s>a||s<t&&s<n&&s<a)return 0;var l=FG(t,n,a,s,ir);if(l===0)return 0;var u=SA(t,n,a);if(u>=0&&u<=1){for(var f=0,c=Zt(t,n,a,u),d=0;d<l;d++){var h=ir[d]===0||ir[d]===1?.5:1,v=Zt(e,r,i,ir[d]);v<o||(ir[d]<u?f+=c<t?h:-h:f+=a<c?h:-h)}return f}else{var h=ir[0]===0||ir[0]===1?.5:1,v=Zt(e,r,i,ir[0]);return v<o?0:a<t?h:-h}}function E9(e,t,r,n,i,a,o,s){if(s-=t,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);ir[0]=-l,ir[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=Ta-1e-4){n=0,i=Ta;var f=a?1:-1;return o>=ir[0]+e&&o<=ir[1]+e?f:0}if(n>i){var c=n;n=i,i=c}n<0&&(n+=Ta,i+=Ta);for(var d=0,h=0;h<2;h++){var v=ir[h];if(v+e>o){var p=Math.atan2(s,v),f=a?1:-1;p<0&&(p=Ta+p),(p>=n&&p<=i||p+Ta>=n&&p+Ta<=i)&&(p>Math.PI/2&&p<Math.PI*1.5&&(f=-f),d+=f)}}return d}function KA(e,t,r,n,i){for(var a=e.data,o=e.len(),s=0,l=0,u=0,f=0,c=0,d,h,v=0;v<o;){var p=a[v++],g=v===1;switch(p===Di.M&&v>1&&(r||(s+=Ca(l,u,f,c,n,i))),g&&(l=a[v],u=a[v+1],f=l,c=u),p){case Di.M:f=a[v++],c=a[v++],l=f,u=c;break;case Di.L:if(r){if(Do(l,u,a[v],a[v+1],t,n,i))return!0}else s+=Ca(l,u,a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case Di.C:if(r){if(b9(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],t,n,i))return!0}else s+=M9(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case Di.Q:if(r){if(w9(l,u,a[v++],a[v++],a[v],a[v+1],t,n,i))return!0}else s+=A9(l,u,a[v++],a[v++],a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case Di.A:var m=a[v++],y=a[v++],_=a[v++],b=a[v++],x=a[v++],w=a[v++];v+=1;var S=!!(1-a[v++]);d=Math.cos(x)*_+m,h=Math.sin(x)*b+y,g?(f=d,c=h):s+=Ca(l,u,d,h,n,i);var C=(n-m)*b/_+m;if(r){if(x9(m,y,b,x,x+w,S,t,C,i))return!0}else s+=E9(m,y,b,x,x+w,S,C,i);l=Math.cos(x+w)*_+m,u=Math.sin(x+w)*b+y;break;case Di.R:f=l=a[v++],c=u=a[v++];var T=a[v++],E=a[v++];if(d=f+T,h=c+E,r){if(Do(f,c,d,c,t,n,i)||Do(d,c,d,h,t,n,i)||Do(d,h,f,h,t,n,i)||Do(f,h,f,c,t,n,i))return!0}else s+=Ca(d,c,d,h,n,i),s+=Ca(f,h,f,c,n,i);break;case Di.Z:if(r){if(Do(l,u,f,c,t,n,i))return!0}else s+=Ca(l,u,f,c,n,i);l=f,u=c;break}}return!r&&!C9(u,c)&&(s+=Ca(l,u,f,c,n,i)||0),s!==0}function P9(e,t,r){return KA(e,0,!1,t,r)}function L9(e,t,r,n){return KA(e,t,!0,r,n)}var XA=ut({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},ro),D9={style:ut({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},rh.style)},Mv=mu.concat(["invisible","culling","z","z2","zlevel","parent"]),I9=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.update=function(){var r=this;e.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(l){r.buildPath(l,r.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s<Mv.length;++s)i[Mv[s]]=this[Mv[s]];i.__dirty|=Ir}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(r){var n=xt(r);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var a=0;a<n.length;a++){var o=n[a],s=r[o];o==="style"?this.style?oe(this.style,s):this.useStyle(s):o==="shape"?oe(this.shape,s):e.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!=="none"){if(Ce(r)){var n=Zc(r,0);return n>.5?Mg:n>.2?uU:Ag}else if(r)return Ag}return Mg},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(Ce(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Zc(r,0)<Tg;if(a===o)return n}},t.prototype.buildPath=function(r,n,i){},t.prototype.pathUpdated=function(){this.__dirty&=~Vo},t.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},t.prototype.createPathProxy=function(){this.path=new ho(!1)},t.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(n==null||n==="none"||!(r.lineWidth>0))},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,i=!r;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Vo)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||i){s.copy(r);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return r},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect(),o=this.style;if(r=i[0],n=i[1],a.contain(r,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),L9(s,l/u,r,n)))return!0}if(this.hasFill())return P9(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Vo,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate("shape",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):e.prototype.attrKV.call(this,r,n)},t.prototype.setShape=function(r,n){var i=this.shape;return i||(i=this.shape={}),typeof r=="string"?i[r]=n:oe(i,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Vo)},t.prototype.createStyle=function(r){return Zd(XA,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=oe({},this.shape))},t.prototype._applyStateObj=function(r,n,i,a,o,s){e.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=oe({},i.shape),oe(u,n.shape)):(u=oe({},a?this.shape:i.shape),oe(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=oe({},this.shape);for(var f={},c=xt(u),d=0;d<c.length;d++){var h=c[d];typeof u[h]=="object"?this.shape[h]=u[h]:f[h]=u[h]}this._transitionState(r,{shape:f},s)}else this.shape=u,this.dirtyShape()},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(n.shape=i),n},t.prototype.getAnimationStyleProps=function(){return D9},t.prototype.isZeroArea=function(){return!1},t.extend=function(r){var n=function(a){pe(o,a);function o(s){var l=a.call(this,s)||this;return r.init&&r.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return Xe(r.style)},o.prototype.getDefaultShape=function(){return Xe(r.shape)},o}(t);for(var i in r)typeof r[i]=="function"&&(n.prototype[i]=r[i]);return n},t.initDefaultProps=function(){var r=t.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=Ir|ml|Vo}(),t}(Yu);const ft=I9;var R9=ut({strokeFirst:!0,font:co,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},XA),ZA=function(e){pe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return n!=null&&n!=="none"&&r.lineWidth>0},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(r){return Zd(R9,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var n=r.text;n!=null?n+="":n="";var i=Fy(n,r.font,r.textAlign,r.textBaseline);if(i.x+=r.x||0,i.y+=r.y||0,this.hasStroke()){var a=r.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},t.initDefaultProps=function(){var r=t.prototype;r.dirtyRectTolerance=10}(),t}(Yu);ZA.prototype.type="tspan";const Rg=ZA;var O9=ut({x:0,y:0},ro),k9={style:ut({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},rh.style)};function N9(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var QA=function(e){pe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return Zd(O9,r)},t.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=N9(n.image)?n.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?a[r]:a[r]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return k9},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new et(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(Yu);QA.prototype.type="image";const Bs=QA;function B9(e,t){var r=t.x,n=t.y,i=t.width,a=t.height,o=t.r,s,l,u,f;i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var c;s+l>i&&(c=s+l,s*=i/c,l*=i/c),u+f>i&&(c=u+f,u*=i/c,f*=i/c),l+u>a&&(c=l+u,l*=a/c,u*=a/c),s+f>a&&(c=s+f,s*=a/c,f*=a/c),e.moveTo(r+s,n),e.lineTo(r+i-l,n),l!==0&&e.arc(r+i-l,n+l,l,-Math.PI/2,0),e.lineTo(r+i,n+a-u),u!==0&&e.arc(r+i-u,n+a-u,u,0,Math.PI/2),e.lineTo(r+f,n+a),f!==0&&e.arc(r+f,n+a-f,f,Math.PI/2,Math.PI),e.lineTo(r,n+s),s!==0&&e.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var Xo=Math.round;function JA(e,t,r){if(t){var n=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=n,e.x2=i,e.y1=a,e.y2=o;var s=r&&r.lineWidth;return s&&(Xo(n*2)===Xo(i*2)&&(e.x1=e.x2=Ka(n,s,!0)),Xo(a*2)===Xo(o*2)&&(e.y1=e.y2=Ka(a,s,!0))),e}}function e2(e,t,r){if(t){var n=t.x,i=t.y,a=t.width,o=t.height;e.x=n,e.y=i,e.width=a,e.height=o;var s=r&&r.lineWidth;return s&&(e.x=Ka(n,s,!0),e.y=Ka(i,s,!0),e.width=Math.max(Ka(n+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Ka(i+o,s,!1)-e.y,o===0?0:1)),e}}function Ka(e,t,r){if(!t)return e;var n=Xo(e*2);return(n+Xo(t))%2===0?n/2:(n+(r?1:-1))/2}var F9=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),$9={},t2=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new F9},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=e2($9,n,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?B9(r,n):r.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(ft);t2.prototype.type="rect";const Nt=t2;var J1={fill:"#000"},ew=2,H9={style:ut({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},rh.style)},r2=function(e){pe(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=J1,n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var n=this._children[r];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(r){var n=this.innerTransformable;return n?n.getLocalTransform(r):e.prototype.getLocalTransform.call(this,r)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,U9(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=r},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new et(0,0,0,0),n=this._children,i=[],a=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(i);u?(r.copy(l),r.applyTransform(u),a=a||r.clone(),a.union(r)):(a=a||l.clone(),a.union(l))}this._rect=a||r}return this._rect},t.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||J1},t.prototype.setTextContent=function(r){},t.prototype._mergeStyle=function(r,n){if(!n)return r;var i=n.rich,a=r.rich||i&&{};return oe(r,n),i&&a?(this._mergeRich(a,i),r.rich=a):a&&(r.rich=a),r},t.prototype._mergeRich=function(r,n){for(var i=xt(n),a=0;a<i.length;a++){var o=i[a];r[o]=r[o]||{},oe(r[o],n[o])}},t.prototype.getAnimationStyleProps=function(){return H9},t.prototype._getOrCreateChild=function(r){var n=this._children[this._childCursor];return(!n||!(n instanceof r))&&(n=new r),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},t.prototype._updatePlainTexts=function(){var r=this.style,n=r.font||co,i=r.padding,a=sw(r),o=a9(a,r),s=Av(r),l=!!r.backgroundColor,u=o.outerHeight,f=o.outerWidth,c=o.contentWidth,d=o.lines,h=o.lineHeight,v=this._defaultStyle,p=r.x||0,g=r.y||0,m=r.align||v.align||"left",y=r.verticalAlign||v.verticalAlign||"top",_=p,b=Go(g,o.contentHeight,y);if(s||i){var x=_l(p,f,m),w=Go(g,u,y);s&&this._renderBackground(r,r,x,w,f,u)}b+=h/2,i&&(_=ow(p,m,i),y==="top"?b+=i[0]:y==="bottom"&&(b-=i[2]));for(var S=0,C=!1,T=aw("fill"in r?r.fill:(C=!0,v.fill)),E=iw("stroke"in r?r.stroke:!l&&(!v.autoStroke||C)?(S=ew,v.stroke):null),A=r.textShadowBlur>0,M=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),D=o.calculatedLineHeight,O=0;O<d.length;O++){var k=this._getOrCreateChild(Rg),F=k.createStyle();k.useStyle(F),F.text=d[O],F.x=_,F.y=b,m&&(F.textAlign=m),F.textBaseline="middle",F.opacity=r.opacity,F.strokeFirst=!0,A&&(F.shadowBlur=r.textShadowBlur||0,F.shadowColor=r.textShadowColor||"transparent",F.shadowOffsetX=r.textShadowOffsetX||0,F.shadowOffsetY=r.textShadowOffsetY||0),F.stroke=E,F.fill=T,E&&(F.lineWidth=r.lineWidth||S,F.lineDash=r.lineDash,F.lineDashOffset=r.lineDashOffset||0),F.font=n,rw(F,r),b+=h,M&&k.setBoundingRect(new et(_l(F.x,r.width,F.textAlign),Go(F.y,D,F.textBaseline),c,D))}},t.prototype._updateRichTexts=function(){var r=this.style,n=sw(r),i=l9(n,r),a=i.width,o=i.outerWidth,s=i.outerHeight,l=r.padding,u=r.x||0,f=r.y||0,c=this._defaultStyle,d=r.align||c.align,h=r.verticalAlign||c.verticalAlign,v=_l(u,o,d),p=Go(f,s,h),g=v,m=p;l&&(g+=l[3],m+=l[0]);var y=g+a;Av(r)&&this._renderBackground(r,r,v,p,o,s);for(var _=!!r.backgroundColor,b=0;b<i.lines.length;b++){for(var x=i.lines[b],w=x.tokens,S=w.length,C=x.lineHeight,T=x.width,E=0,A=g,M=y,D=S-1,O=void 0;E<S&&(O=w[E],!O.align||O.align==="left");)this._placeToken(O,r,C,m,A,"left",_),T-=O.width,A+=O.width,E++;for(;D>=0&&(O=w[D],O.align==="right");)this._placeToken(O,r,C,m,M,"right",_),T-=O.width,M-=O.width,D--;for(A+=(a-(A-g)-(y-M)-T)/2;E<=D;)O=w[E],this._placeToken(O,r,C,m,A+O.width/2,"center",_),A+=O.width,E++;m+=C}},t.prototype._placeToken=function(r,n,i,a,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var f=r.verticalAlign,c=a+i/2;f==="top"?c=a+r.height/2:f==="bottom"&&(c=a+i-r.height/2);var d=!r.isLineHolder&&Av(u);d&&this._renderBackground(u,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,c-r.height/2,r.width,r.height);var h=!!u.backgroundColor,v=r.textPadding;v&&(o=ow(o,s,v),c-=r.height/2-v[0]-r.innerHeight/2);var p=this._getOrCreateChild(Rg),g=p.createStyle();p.useStyle(g);var m=this._defaultStyle,y=!1,_=0,b=aw("fill"in u?u.fill:"fill"in n?n.fill:(y=!0,m.fill)),x=iw("stroke"in u?u.stroke:"stroke"in n?n.stroke:!h&&!l&&(!m.autoStroke||y)?(_=ew,m.stroke):null),w=u.textShadowBlur>0||n.textShadowBlur>0;g.text=r.text,g.x=o,g.y=c,w&&(g.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,g.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=r.font||co,g.opacity=Bl(u.opacity,n.opacity,1),rw(g,u),x&&(g.lineWidth=Bl(u.lineWidth,n.lineWidth,_),g.lineDash=qe(u.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=x),b&&(g.fill=b);var S=r.contentWidth,C=r.contentHeight;p.setBoundingRect(new et(_l(g.x,S,g.textAlign),Go(g.y,C,g.textBaseline),S,C))},t.prototype._renderBackground=function(r,n,i,a,o,s){var l=r.backgroundColor,u=r.borderWidth,f=r.borderColor,c=l&&l.image,d=l&&!c,h=r.borderRadius,v=this,p,g;if(d||r.lineHeight||u&&f){p=this._getOrCreateChild(Nt),p.useStyle(p.createStyle()),p.style.fill=null;var m=p.shape;m.x=i,m.y=a,m.width=o,m.height=s,m.r=h,p.dirtyShape()}if(d){var y=p.style;y.fill=l||null,y.fillOpacity=qe(r.fillOpacity,1)}else if(c){g=this._getOrCreateChild(Bs),g.onload=function(){v.dirtyStyle()};var _=g.style;_.image=l.image,_.x=i,_.y=a,_.width=o,_.height=s}if(u&&f){var y=p.style;y.lineWidth=u,y.stroke=f,y.strokeOpacity=qe(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var b=(p||g).style;b.shadowBlur=r.shadowBlur||0,b.shadowColor=r.shadowColor||"transparent",b.shadowOffsetX=r.shadowOffsetX||0,b.shadowOffsetY=r.shadowOffsetY||0,b.opacity=Bl(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return G9(r)&&(n=[r.fontStyle,r.fontWeight,V9(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&zn(n)||r.textFont||r.font},t}(Yu),z9={left:!0,right:1,center:1},W9={top:1,bottom:1,middle:1},tw=["fontStyle","fontWeight","fontSize","fontFamily"];function V9(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?Ey+"px":e+"px"}function rw(e,t){for(var r=0;r<tw.length;r++){var n=tw[r],i=t[n];i!=null&&(e[n]=i)}}function G9(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function U9(e){return nw(e),R(e.rich,nw),e}function nw(e){if(e){e.font=r2.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||z9[t]?t:"left";var r=e.verticalAlign;r==="center"&&(r="middle"),e.verticalAlign=r==null||W9[r]?r:"top";var n=e.padding;n&&(e.padding=oA(e.padding))}}function iw(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function aw(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function ow(e,t,r){return t==="right"?e-r[1]:t==="center"?e+r[3]/2-r[1]/2:e+r[3]}function sw(e){var t=e.text;return t!=null&&(t+=""),t}function Av(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}const fr=r2;var lt=Tt(),Y9=function(e,t,r,n){if(n){var i=lt(n);i.dataIndex=r,i.dataType=t,i.seriesIndex=e,n.type==="group"&&n.traverse(function(a){var o=lt(a);o.seriesIndex=e,o.dataIndex=r,o.dataType=t})}},lw=1,uw={},n2=Tt(),Uy=Tt(),i2=0,Yy=1,qy=2,jn=["emphasis","blur","select"],rd=["normal","emphasis","blur","select"],q9=10,j9=9,no="highlight",Tc="downplay",Wl="select",Mc="unselect",Vl="toggleSelect";function Io(e){return e!=null&&e!=="none"}var fw=new Wu(100);function cw(e){if(Ce(e)){var t=fw.get(e);return t||(t=L1(e,-.1),fw.put(e,t)),t}else if(Xd(e)){var r=oe({},e);return r.colorStops=Oe(e.colorStops,function(n){return{offset:n.offset,color:L1(n.color,-.1)}}),r}return e}function nh(e,t,r){e.onHoverStateChange&&(e.hoverState||0)!==r&&e.onHoverStateChange(t),e.hoverState=r}function a2(e){nh(e,"emphasis",qy)}function o2(e){e.hoverState===qy&&nh(e,"normal",i2)}function jy(e){nh(e,"blur",Yy)}function s2(e){e.hoverState===Yy&&nh(e,"normal",i2)}function K9(e){e.selected=!0}function X9(e){e.selected=!1}function dw(e,t,r){t(e,r)}function Si(e,t,r){dw(e,t,r),e.isGroup&&e.traverse(function(n){dw(n,t,r)})}function Z9(e,t,r,n){for(var i=e.style,a={},o=0;o<t.length;o++){var s=t[o],l=i[s];a[s]=l??(n&&n[s])}for(var o=0;o<e.animators.length;o++){var u=e.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(r)<0&&u.targetName==="style"&&u.saveTo(a,t)}return a}function Q9(e,t,r,n){var i=r&&nt(r,"select")>=0,a=!1;if(e instanceof ft){var o=n2(e),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(Io(s)||Io(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=oe({},n),u=oe({},u),u.fill=s):!Io(u.fill)&&Io(s)?(a=!0,n=oe({},n),u=oe({},u),u.fill=cw(s)):!Io(u.stroke)&&Io(l)&&(a||(n=oe({},n),u=oe({},u)),u.stroke=cw(l)),n.style=u}}if(n&&n.z2==null){a||(n=oe({},n));var f=e.z2EmphasisLift;n.z2=e.z2+(f??q9)}return n}function J9(e,t,r){if(r&&r.z2==null){r=oe({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??j9)}return r}function eY(e,t,r){var n=nt(e.currentStates,t)>=0,i=e.style.opacity,a=n?null:Z9(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=oe({},r),o=oe({opacity:n?i:a.opacity*.1},o),r.style=o),r}function Ev(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return Q9(this,e,t,r);if(e==="blur")return eY(this,e,r);if(e==="select")return J9(this,e,r)}return r}function tY(e){e.stateProxy=Ev;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=Ev),r&&(r.stateProxy=Ev)}function hw(e,t){!c2(e,t)&&!e.__highByOuter&&Si(e,a2)}function vw(e,t){!c2(e,t)&&!e.__highByOuter&&Si(e,o2)}function Og(e,t){e.__highByOuter|=1<<(t||0),Si(e,a2)}function kg(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Si(e,o2)}function rY(e){Si(e,jy)}function l2(e){Si(e,s2)}function u2(e){Si(e,K9)}function f2(e){Si(e,X9)}function c2(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function d2(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(i,a){var o=Uy(a),s=i==="series",l=s?e.getViewOfSeriesModel(a):e.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){s2(u)}),s&&r.push(a)),o.isBlured=!1}),R(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,t)})}function Ng(e,t,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(u,f){for(var c=0;c<f.length;c++){var d=u.getItemGraphicEl(f[c]);d&&l2(d)}}if(e!=null&&!(!t||t==="none")){var o=i.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(u){var f=o===u,c=u.coordinateSystem;c&&c.master&&(c=c.master);var d=c&&s?c===s:f;if(!(r==="series"&&!f||r==="coordinateSystem"&&!d||t==="series"&&f)){var h=n.getViewOfSeriesModel(u);if(h.group.traverse(function(g){jy(g)}),Tr(t))a(u.getData(),t);else if(Pe(t))for(var v=xt(t),p=0;p<v.length;p++)a(u.getData(v[p]),t[v[p]]);l.push(u),Uy(u).isBlured=!0}}),i.eachComponent(function(u,f){if(u!=="series"){var c=n.getViewOfComponentModel(f);c&&c.toggleBlurSeries&&c.toggleBlurSeries(l,!0,i)}})}}function Bg(e,t,r){if(!(e==null||t==null)){var n=r.getModel().getComponent(e,t);if(n){Uy(n).isBlured=!0;var i=r.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){jy(a)})}}}function nY(e,t,r){var n=e.seriesIndex,i=e.getData(t.dataType);if(i){var a=Gu(i,t);a=(ge(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),l=0;!o&&l<s;)o=i.getItemGraphicEl(l++);if(o){var u=lt(o);Ng(n,u.focus,u.blurScope,r)}else{var f=e.get(["emphasis","focus"]),c=e.get(["emphasis","blurScope"]);f!=null&&Ng(n,f,c,r)}}}function Ky(e,t,r,n){var i={focusSelf:!1,dispatchers:null};if(e==null||e==="series"||t==null||r==null)return i;var a=n.getModel().getComponent(e,t);if(!a)return i;var o=n.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(r),l,u=0;u<s.length;u++)if(lt(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function iY(e,t,r){var n=lt(e),i=Ky(n.componentMainType,n.componentIndex,n.componentHighDownName,r),a=i.dispatchers,o=i.focusSelf;a?(o&&Bg(n.componentMainType,n.componentIndex,r),R(a,function(s){return hw(s,t)})):(Ng(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&Bg(n.componentMainType,n.componentIndex,r),hw(e,t))}function aY(e,t,r){d2(r);var n=lt(e),i=Ky(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;i?R(i,function(a){return vw(a,t)}):vw(e,t)}function oY(e,t,r){if(Hg(t)){var n=t.dataType,i=e.getData(n),a=Gu(i,t);ge(a)||(a=[a]),e[t.type===Vl?"toggleSelect":t.type===Wl?"select":"unselect"](a,n)}}function pw(e){var t=e.getAllData();R(t,function(r){var n=r.data,i=r.type;n.eachItemGraphicEl(function(a,o){e.isSelected(o,i)?u2(a):f2(a)})})}function sY(e){var t=[];return e.eachSeries(function(r){var n=r.getAllData();R(n,function(i){i.data;var a=i.type,o=r.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:r.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function Fg(e,t,r){p2(e,!0),Si(e,tY),uY(e,t,r)}function lY(e){p2(e,!1)}function h2(e,t,r,n){n?lY(e):Fg(e,t,r)}function uY(e,t,r){var n=lt(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var gw=["emphasis","blur","select"],fY={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function v2(e,t,r,n){r=r||"itemStyle";for(var i=0;i<gw.length;i++){var a=gw[i],o=t.getModel([a,r]),s=e.ensureState(a);s.style=n?n(o):o[fY[r]]()}}function p2(e,t){var r=t===!1,n=e;e.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function $g(e){return!!(e&&e.__highDownDispatcher)}function cY(e){var t=uw[e];return t==null&&lw<=32&&(t=uw[e]=lw++),t}function Hg(e){var t=e.type;return t===Wl||t===Mc||t===Vl}function mw(e){var t=e.type;return t===no||t===Tc}function dY(e){var t=n2(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var r=e.states.select||{};t.selectFill=r.style&&r.style.fill||null,t.selectStroke=r.style&&r.style.stroke||null}var Ro=ho.CMD,hY=[[],[],[]],yw=Math.sqrt,vY=Math.atan2;function pY(e,t){if(t){var r=e.data,n=e.len(),i,a,o,s,l,u,f=Ro.M,c=Ro.C,d=Ro.L,h=Ro.R,v=Ro.A,p=Ro.Q;for(o=0,s=0;o<n;){switch(i=r[o++],s=o,a=0,i){case f:a=1;break;case d:a=1;break;case c:a=3;break;case p:a=2;break;case v:var g=t[4],m=t[5],y=yw(t[0]*t[0]+t[1]*t[1]),_=yw(t[2]*t[2]+t[3]*t[3]),b=vY(-t[1]/_,t[0]/y);r[o]*=y,r[o++]+=g,r[o]*=_,r[o++]+=m,r[o++]*=y,r[o++]*=_,r[o++]+=b,r[o++]+=b,o+=2,s=o;break;case h:u[0]=r[o++],u[1]=r[o++],rn(u,u,t),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],rn(u,u,t),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<a;l++){var x=hY[l];x[0]=r[o++],x[1]=r[o++],rn(x,x,t),r[s++]=x[0],r[s++]=x[1]}}e.increaseVersion()}}var Pv=Math.sqrt,Mf=Math.sin,Af=Math.cos,tl=Math.PI;function _w(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function zg(e,t){return(e[0]*t[0]+e[1]*t[1])/(_w(e)*_w(t))}function bw(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(zg(e,t))}function ww(e,t,r,n,i,a,o,s,l,u,f){var c=l*(tl/180),d=Af(c)*(e-r)/2+Mf(c)*(t-n)/2,h=-1*Mf(c)*(e-r)/2+Af(c)*(t-n)/2,v=d*d/(o*o)+h*h/(s*s);v>1&&(o*=Pv(v),s*=Pv(v));var p=(i===a?-1:1)*Pv((o*o*(s*s)-o*o*(h*h)-s*s*(d*d))/(o*o*(h*h)+s*s*(d*d)))||0,g=p*o*h/s,m=p*-s*d/o,y=(e+r)/2+Af(c)*g-Mf(c)*m,_=(t+n)/2+Mf(c)*g+Af(c)*m,b=bw([1,0],[(d-g)/o,(h-m)/s]),x=[(d-g)/o,(h-m)/s],w=[(-1*d-g)/o,(-1*h-m)/s],S=bw(x,w);if(zg(x,w)<=-1&&(S=tl),zg(x,w)>=1&&(S=0),S<0){var C=Math.round(S/tl*1e6)/1e6;S=tl*2+C%2*tl}f.addData(u,y,_,o,s,b,S,c,a)}var gY=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,mY=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function yY(e){var t=new ho;if(!e)return t;var r=0,n=0,i=r,a=n,o,s=ho.CMD,l=e.match(gY);if(!l)return t;for(var u=0;u<l.length;u++){for(var f=l[u],c=f.charAt(0),d=void 0,h=f.match(mY)||[],v=h.length,p=0;p<v;p++)h[p]=parseFloat(h[p]);for(var g=0;g<v;){var m=void 0,y=void 0,_=void 0,b=void 0,x=void 0,w=void 0,S=void 0,C=r,T=n,E=void 0,A=void 0;switch(c){case"l":r+=h[g++],n+=h[g++],d=s.L,t.addData(d,r,n);break;case"L":r=h[g++],n=h[g++],d=s.L,t.addData(d,r,n);break;case"m":r+=h[g++],n+=h[g++],d=s.M,t.addData(d,r,n),i=r,a=n,c="l";break;case"M":r=h[g++],n=h[g++],d=s.M,t.addData(d,r,n),i=r,a=n,c="L";break;case"h":r+=h[g++],d=s.L,t.addData(d,r,n);break;case"H":r=h[g++],d=s.L,t.addData(d,r,n);break;case"v":n+=h[g++],d=s.L,t.addData(d,r,n);break;case"V":n=h[g++],d=s.L,t.addData(d,r,n);break;case"C":d=s.C,t.addData(d,h[g++],h[g++],h[g++],h[g++],h[g++],h[g++]),r=h[g-2],n=h[g-1];break;case"c":d=s.C,t.addData(d,h[g++]+r,h[g++]+n,h[g++]+r,h[g++]+n,h[g++]+r,h[g++]+n),r+=h[g-2],n+=h[g-1];break;case"S":m=r,y=n,E=t.len(),A=t.data,o===s.C&&(m+=r-A[E-4],y+=n-A[E-3]),d=s.C,C=h[g++],T=h[g++],r=h[g++],n=h[g++],t.addData(d,m,y,C,T,r,n);break;case"s":m=r,y=n,E=t.len(),A=t.data,o===s.C&&(m+=r-A[E-4],y+=n-A[E-3]),d=s.C,C=r+h[g++],T=n+h[g++],r+=h[g++],n+=h[g++],t.addData(d,m,y,C,T,r,n);break;case"Q":C=h[g++],T=h[g++],r=h[g++],n=h[g++],d=s.Q,t.addData(d,C,T,r,n);break;case"q":C=h[g++]+r,T=h[g++]+n,r+=h[g++],n+=h[g++],d=s.Q,t.addData(d,C,T,r,n);break;case"T":m=r,y=n,E=t.len(),A=t.data,o===s.Q&&(m+=r-A[E-4],y+=n-A[E-3]),r=h[g++],n=h[g++],d=s.Q,t.addData(d,m,y,r,n);break;case"t":m=r,y=n,E=t.len(),A=t.data,o===s.Q&&(m+=r-A[E-4],y+=n-A[E-3]),r+=h[g++],n+=h[g++],d=s.Q,t.addData(d,m,y,r,n);break;case"A":_=h[g++],b=h[g++],x=h[g++],w=h[g++],S=h[g++],C=r,T=n,r=h[g++],n=h[g++],d=s.A,ww(C,T,r,n,w,S,_,b,x,d,t);break;case"a":_=h[g++],b=h[g++],x=h[g++],w=h[g++],S=h[g++],C=r,T=n,r+=h[g++],n+=h[g++],d=s.A,ww(C,T,r,n,w,S,_,b,x,d,t);break}}(c==="z"||c==="Z")&&(d=s.Z,t.addData(d),r=i,n=a),o=d}return t.toStatic(),t}var g2=function(e){pe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(r){},t}(ft);function m2(e){return e.setData!=null}function y2(e,t){var r=yY(e),n=oe({},t);return n.buildPath=function(i){if(m2(i)){i.setData(r.data);var a=i.getContext();a&&i.rebuildPath(a,1)}else{var a=i;r.rebuildPath(a,1)}},n.applyTransform=function(i){pY(r,i),this.dirtyShape()},n}function _Y(e,t){return new g2(y2(e,t))}function bY(e,t){var r=y2(e,t),n=function(i){pe(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a}(g2);return n}function wY(e,t){for(var r=[],n=e.length,i=0;i<n;i++){var a=e[i];r.push(a.getUpdatedPathProxy(!0))}var o=new ft(t);return o.createPathProxy(),o.buildPath=function(s){if(m2(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var xY=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),_2=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new xY},t.prototype.buildPath=function(r,n){r.moveTo(n.cx+n.r,n.cy),r.arc(n.cx,n.cy,n.r,0,Math.PI*2)},t}(ft);_2.prototype.type="circle";const Xy=_2;var SY=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),b2=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new SY},t.prototype.buildPath=function(r,n){var i=.5522848,a=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*i,f=l*i;r.moveTo(a-s,o),r.bezierCurveTo(a-s,o-f,a-u,o-l,a,o-l),r.bezierCurveTo(a+u,o-l,a+s,o-f,a+s,o),r.bezierCurveTo(a+s,o+f,a+u,o+l,a,o+l),r.bezierCurveTo(a-u,o+l,a-s,o+f,a-s,o),r.closePath()},t}(ft);b2.prototype.type="ellipse";const w2=b2;var x2=Math.PI,Lv=x2*2,Ma=Math.sin,Oo=Math.cos,CY=Math.acos,Kt=Math.atan2,xw=Math.abs,Gl=Math.sqrt,bl=Math.max,On=Math.min,hn=1e-4;function TY(e,t,r,n,i,a,o,s){var l=r-e,u=n-t,f=o-i,c=s-a,d=c*l-f*u;if(!(d*d<hn))return d=(f*(t-a)-c*(e-i))/d,[e+d*l,t+d*u]}function Ef(e,t,r,n,i,a,o){var s=e-r,l=t-n,u=(o?a:-a)/Gl(s*s+l*l),f=u*l,c=-u*s,d=e+f,h=t+c,v=r+f,p=n+c,g=(d+v)/2,m=(h+p)/2,y=v-d,_=p-h,b=y*y+_*_,x=i-a,w=d*p-v*h,S=(_<0?-1:1)*Gl(bl(0,x*x*b-w*w)),C=(w*_-y*S)/b,T=(-w*y-_*S)/b,E=(w*_+y*S)/b,A=(-w*y+_*S)/b,M=C-g,D=T-m,O=E-g,k=A-m;return M*M+D*D>O*O+k*k&&(C=E,T=A),{cx:C,cy:T,x0:-f,y0:-c,x1:C*(i/x-1),y1:T*(i/x-1)}}function MY(e){var t;if(ge(e)){var r=e.length;if(!r)return e;r===1?t=[e[0],e[0],0,0]:r===2?t=[e[0],e[0],e[1],e[1]]:r===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function AY(e,t){var r,n=bl(t.r,0),i=bl(t.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var f=t.cx,c=t.cy,d=!!t.clockwise,h=xw(u-l),v=h>Lv&&h%Lv;if(v>hn&&(h=v),!(n>hn))e.moveTo(f,c);else if(h>Lv-hn)e.moveTo(f+n*Oo(l),c+n*Ma(l)),e.arc(f,c,n,l,u,!d),i>hn&&(e.moveTo(f+i*Oo(u),c+i*Ma(u)),e.arc(f,c,i,u,l,d));else{var p=void 0,g=void 0,m=void 0,y=void 0,_=void 0,b=void 0,x=void 0,w=void 0,S=void 0,C=void 0,T=void 0,E=void 0,A=void 0,M=void 0,D=void 0,O=void 0,k=n*Oo(l),F=n*Ma(l),j=i*Oo(u),B=i*Ma(u),N=h>hn;if(N){var U=t.cornerRadius;U&&(r=MY(U),p=r[0],g=r[1],m=r[2],y=r[3]);var re=xw(n-i)/2;if(_=On(re,m),b=On(re,y),x=On(re,p),w=On(re,g),T=S=bl(_,b),E=C=bl(x,w),(S>hn||C>hn)&&(A=n*Oo(u),M=n*Ma(u),D=i*Oo(l),O=i*Ma(l),h<x2)){var ae=TY(k,F,D,O,A,M,j,B);if(ae){var me=k-ae[0],Te=F-ae[1],V=A-ae[0],Q=M-ae[1],W=1/Ma(CY((me*V+Te*Q)/(Gl(me*me+Te*Te)*Gl(V*V+Q*Q)))/2),Y=Gl(ae[0]*ae[0]+ae[1]*ae[1]);T=On(S,(n-Y)/(W+1)),E=On(C,(i-Y)/(W-1))}}}if(!N)e.moveTo(f+k,c+F);else if(T>hn){var se=On(m,T),he=On(y,T),Z=Ef(D,O,k,F,n,se,d),P=Ef(A,M,j,B,n,he,d);e.moveTo(f+Z.cx+Z.x0,c+Z.cy+Z.y0),T<S&&se===he?e.arc(f+Z.cx,c+Z.cy,T,Kt(Z.y0,Z.x0),Kt(P.y0,P.x0),!d):(se>0&&e.arc(f+Z.cx,c+Z.cy,se,Kt(Z.y0,Z.x0),Kt(Z.y1,Z.x1),!d),e.arc(f,c,n,Kt(Z.cy+Z.y1,Z.cx+Z.x1),Kt(P.cy+P.y1,P.cx+P.x1),!d),he>0&&e.arc(f+P.cx,c+P.cy,he,Kt(P.y1,P.x1),Kt(P.y0,P.x0),!d))}else e.moveTo(f+k,c+F),e.arc(f,c,n,l,u,!d);if(!(i>hn)||!N)e.lineTo(f+j,c+B);else if(E>hn){var se=On(p,E),he=On(g,E),Z=Ef(j,B,A,M,i,-he,d),P=Ef(k,F,D,O,i,-se,d);e.lineTo(f+Z.cx+Z.x0,c+Z.cy+Z.y0),E<C&&se===he?e.arc(f+Z.cx,c+Z.cy,E,Kt(Z.y0,Z.x0),Kt(P.y0,P.x0),!d):(he>0&&e.arc(f+Z.cx,c+Z.cy,he,Kt(Z.y0,Z.x0),Kt(Z.y1,Z.x1),!d),e.arc(f,c,i,Kt(Z.cy+Z.y1,Z.cx+Z.x1),Kt(P.cy+P.y1,P.cx+P.x1),d),se>0&&e.arc(f+P.cx,c+P.cy,se,Kt(P.y1,P.x1),Kt(P.y0,P.x0),!d))}else e.lineTo(f+j,c+B),e.arc(f,c,i,u,l,d)}e.closePath()}}}var EY=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e}(),S2=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new EY},t.prototype.buildPath=function(r,n){AY(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(ft);S2.prototype.type="sector";const wo=S2;var PY=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),C2=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new PY},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.PI*2;r.moveTo(i+n.r,a),r.arc(i,a,n.r,0,o,!1),r.moveTo(i+n.r0,a),r.arc(i,a,n.r0,0,o,!0)},t}(ft);C2.prototype.type="ring";const T2=C2;function LY(e,t,r,n){var i=[],a=[],o=[],s=[],l,u,f,c;if(n){f=[1/0,1/0],c=[-1/0,-1/0];for(var d=0,h=e.length;d<h;d++)qo(f,f,e[d]),jo(c,c,e[d]);qo(f,f,n[0]),jo(c,c,n[1])}for(var d=0,h=e.length;d<h;d++){var v=e[d];if(r)l=e[d?d-1:h-1],u=e[(d+1)%h];else if(d===0||d===h-1){i.push(eG(e[d]));continue}else l=e[d-1],u=e[d+1];tG(a,u,l),qh(a,a,t);var p=dg(v,l),g=dg(v,u),m=p+g;m!==0&&(p/=m,g/=m),qh(o,a,-p),qh(s,a,g);var y=v1([],v,o),_=v1([],v,s);n&&(jo(y,y,f),qo(y,y,c),jo(_,_,f),qo(_,_,c)),i.push(y),i.push(_)}return r&&i.push(i.shift()),i}function M2(e,t,r){var n=t.smooth,i=t.points;if(i&&i.length>=2){if(n){var a=LY(i,n,r,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(r?o:o-1);s++){var l=a[s*2],u=a[s*2+1],f=i[(s+1)%o];e.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,c=i.length;s<c;s++)e.lineTo(i[s][0],i[s][1])}r&&e.closePath()}}var DY=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),A2=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new DY},t.prototype.buildPath=function(r,n){M2(r,n,!0)},t}(ft);A2.prototype.type="polygon";const E2=A2;var IY=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),P2=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new IY},t.prototype.buildPath=function(r,n){M2(r,n,!1)},t}(ft);P2.prototype.type="polyline";const ih=P2;var RY={},OY=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),L2=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new OY},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=JA(RY,n,this.style);i=l.x1,a=l.y1,o=l.x2,s=l.y2}else i=n.x1,a=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(r.moveTo(i,a),u<1&&(o=i*(1-u)+o*u,s=a*(1-u)+s*u),r.lineTo(o,s))},t.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},t}(ft);L2.prototype.type="line";const vo=L2;var dr=[],kY=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e}();function Sw(e,t,r){var n=e.cpx2,i=e.cpy2;return n!=null||i!=null?[(r?T1:Gt)(e.x1,e.cpx1,e.cpx2,e.x2,t),(r?T1:Gt)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(r?M1:Zt)(e.x1,e.cpx1,e.x2,t),(r?M1:Zt)(e.y1,e.cpy1,e.y2,t)]}var D2=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new kY},t.prototype.buildPath=function(r,n){var i=n.x1,a=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,f=n.cpx2,c=n.cpy2,d=n.percent;d!==0&&(r.moveTo(i,a),f==null||c==null?(d<1&&(Xc(i,l,o,d,dr),l=dr[1],o=dr[2],Xc(a,u,s,d,dr),u=dr[1],s=dr[2]),r.quadraticCurveTo(l,u,o,s)):(d<1&&(Kc(i,l,f,o,d,dr),l=dr[1],f=dr[2],o=dr[3],Kc(a,u,c,s,d,dr),u=dr[1],c=dr[2],s=dr[3]),r.bezierCurveTo(l,u,f,c,o,s)))},t.prototype.pointAt=function(r){return Sw(this.shape,r,!1)},t.prototype.tangentAt=function(r){var n=Sw(this.shape,r,!0);return iG(n,n)},t}(ft);D2.prototype.type="bezier-curve";const I2=D2;var NY=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),R2=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new NY},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,f=Math.cos(s),c=Math.sin(s);r.moveTo(f*o+i,c*o+a),r.arc(i,a,o,s,l,!u)},t}(ft);R2.prototype.type="arc";const Zy=R2;var BY=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="compound",r}return t.prototype._updatePathDirty=function(){for(var r=this.shape.paths,n=this.shapeChanged(),i=0;i<r.length;i++)n=n||r[i].shapeChanged();n&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],n=this.getGlobalScale(),i=0;i<r.length;i++)r[i].path||r[i].createPathProxy(),r[i].path.setScale(n[0],n[1],r[i].segmentIgnoreThreshold)},t.prototype.buildPath=function(r,n){for(var i=n.paths||[],a=0;a<i.length;a++)i[a].buildPath(r,i[a].shape,!0)},t.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),ft.prototype.getBoundingRect.call(this)},t}(ft);const FY=BY;var $Y=function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,r){this.colorStops.push({offset:t,color:r})},e}();const O2=$Y;var HY=function(e){pe(t,e);function t(r,n,i,a,o,s){var l=e.call(this,o)||this;return l.x=r??0,l.y=n??0,l.x2=i??1,l.y2=a??0,l.type="linear",l.global=s||!1,l}return t}(O2);const zY=HY;var WY=function(e){pe(t,e);function t(r,n,i,a,o){var s=e.call(this,a)||this;return s.x=r??.5,s.y=n??.5,s.r=i??.5,s.type="radial",s.global=o||!1,s}return t}(O2);const VY=WY;var Aa=[0,0],Ea=[0,0],Pf=new ke,Lf=new ke,GY=function(){function e(t,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new ke;for(var n=0;n<2;n++)this._axes[n]=new ke;t&&this.fromBoundingRect(t,r)}return e.prototype.fromBoundingRect=function(t,r){var n=this._corners,i=this._axes,a=t.x,o=t.y,s=a+t.width,l=o+t.height;if(n[0].set(a,o),n[1].set(s,o),n[2].set(s,l),n[3].set(a,l),r)for(var u=0;u<4;u++)n[u].transform(r);ke.sub(i[0],n[1],n[0]),ke.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(var u=0;u<2;u++)this._origin[u]=i[u].dot(n[0])},e.prototype.intersect=function(t,r){var n=!0,i=!r;return Pf.set(1/0,1/0),Lf.set(0,0),!this._intersectCheckOneSide(this,t,Pf,Lf,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(t,this,Pf,Lf,i,-1)&&(n=!1,i)||i||ke.copy(r,n?Pf:Lf),n},e.prototype._intersectCheckOneSide=function(t,r,n,i,a,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,t._corners,Aa),this._getProjMinMaxOnAxis(l,r._corners,Ea),Aa[1]<Ea[0]||Aa[0]>Ea[1]){if(s=!1,a)return s;var f=Math.abs(Ea[0]-Aa[1]),c=Math.abs(Aa[0]-Ea[1]);Math.min(f,c)>i.len()&&(f<c?ke.scale(i,u,-f*o):ke.scale(i,u,c*o))}else if(n){var f=Math.abs(Ea[0]-Aa[1]),c=Math.abs(Aa[0]-Ea[1]);Math.min(f,c)<n.len()&&(f<c?ke.scale(n,u,f*o):ke.scale(n,u,-c*o))}}return s},e.prototype._getProjMinMaxOnAxis=function(t,r,n){for(var i=this._axes[t],a=this._origin,o=r[0].dot(i)+a[t],s=o,l=o,u=1;u<r.length;u++){var f=r[u].dot(i)+a[t];s=Math.min(f,s),l=Math.max(f,l)}n[0]=s,n[1]=l},e}();const nd=GY;var UY=[],YY=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.notClear=!0,r.incremental=!0,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},t.prototype.addDisplayables=function(r,n){n=n||!1;for(var i=0;i<r.length;i++)this.addDisplayable(r[i],n)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(r){for(var n=this._cursor;n<this._displayables.length;n++)r&&r(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)r&&r(this._temporaryDisplayables[n])},t.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var n=this._displayables[r];n.parent=this,n.update(),n.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var n=this._temporaryDisplayables[r];n.parent=this,n.update(),n.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new et(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var i=this._displayables[n],a=i.getBoundingRect().clone();i.needLocalTransform()&&a.applyTransform(i.getLocalTransform(UY)),r.union(a)}this._rect=r}return this._rect},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(a.contain(i[0],i[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,n))return!0}return!1},t}(Yu);const qY=YY;var jY=Tt();function KY(e,t,r,n,i){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),l=e==="update";if(s){var u=void 0,f=void 0,c=void 0;n?(u=qe(n.duration,200),f=qe(n.easing,"cubicOut"),c=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),f=t.getShallow(l?"animationEasingUpdate":"animationEasing"),c=t.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(c=a.delay)),We(c)&&(c=c(r,i)),We(u)&&(u=u(r));var d={duration:u||0,delay:c,easing:f};return d}else return null}function Qy(e,t,r,n,i,a,o){var s=!1,l;We(i)?(o=a,a=i,i=null):Pe(i)&&(a=i.cb,o=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var u=e==="leave";u||t.stopAnimation("leave");var f=KY(e,n,i,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(t,i):null);if(f&&f.duration>0){var c=f.duration,d=f.delay,h=f.easing,v={duration:c,delay:d||0,easing:h,done:a,force:!!a||!!o,setToFinal:!u,scope:e,during:o};s?t.animateFrom(r,v):t.animateTo(r,v)}else t.stopAnimation(),!s&&t.attr(r),o&&o(1),a&&a()}function Mr(e,t,r,n,i,a){Qy("update",e,t,r,n,i,a)}function Br(e,t,r,n,i,a){Qy("enter",e,t,r,n,i,a)}function os(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){var r=e.animators[t];if(r.scope==="leave")return!0}return!1}function k2(e,t,r,n,i,a){os(e)||Qy("leave",e,t,r,n,i,a)}function Cw(e,t,r,n){e.removeTextContent(),e.removeTextGuideLine(),k2(e,{style:{opacity:0}},t,r,n)}function id(e,t,r){function n(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(i){i.isGroup||Cw(i,t,r,n)}):Cw(e,t,r,n)}function N2(e){jY(e).oldStyle=e.style}var ad=Math.max,od=Math.min,Wg={};function XY(e){return ft.extend(e)}var ZY=bY;function QY(e,t){return ZY(e,t)}function En(e,t){Wg[e]=t}function JY(e){if(Wg.hasOwnProperty(e))return Wg[e]}function Jy(e,t,r,n){var i=_Y(e,t);return r&&(n==="center"&&(r=F2(r,i.getBoundingRect())),$2(i,r)),i}function B2(e,t,r){var n=new Bs({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(i){if(r==="center"){var a={width:i.width,height:i.height};n.setStyle(F2(t,a))}}});return n}function F2(e,t){var r=t.width/t.height,n=e.height*r,i;n<=e.width?i=e.height:(n=e.width,i=n/r);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-n/2,y:o-i/2,width:n,height:i}}var e7=wY;function $2(e,t){if(e.applyTransform){var r=e.getBoundingRect(),n=r.calculateTransform(t);e.applyTransform(n)}}function bu(e,t){return JA(e,e,{lineWidth:t}),e}function t7(e){return e2(e.shape,e.shape,e.style),e}var r7=Ka;function n7(e,t){for(var r=Oy([]);e&&e!==t;)is(r,e.getLocalTransform(),r),e=e.parent;return r}function e0(e,t,r){return t&&!Tr(t)&&(t=Jd.getLocalTransform(t)),r&&(t=Qd([],t)),rn([],e,t)}function i7(e,t,r){var n=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),a=[e==="left"?-n:e==="right"?n:0,e==="top"?-i:e==="bottom"?i:0];return a=e0(a,t,r),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function Tw(e){return!e.isGroup}function a7(e){return e.shape!=null}function H2(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(l){Tw(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return a7(o)&&(s.shape=oe({},o.shape)),s}var a=n(e);t.traverse(function(o){if(Tw(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),Mr(o,l,r,lt(o).dataIndex)}}})}function o7(e,t){return Oe(e,function(r){var n=r[0];n=ad(n,t.x),n=od(n,t.x+t.width);var i=r[1];return i=ad(i,t.y),i=od(i,t.y+t.height),[n,i]})}function s7(e,t){var r=ad(e.x,t.x),n=od(e.x+e.width,t.x+t.width),i=ad(e.y,t.y),a=od(e.y+e.height,t.y+t.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}function t0(e,t,r){var n=oe({rectHover:!0},t),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(i.image=e.slice(8),ut(i,r),new Bs(n)):Jy(e.replace("path://",""),n,r,"center")}function l7(e,t,r,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(z2(e,t,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function z2(e,t,r,n,i,a,o,s){var l=r-e,u=n-t,f=o-i,c=s-a,d=Dv(f,c,l,u);if(u7(d))return!1;var h=e-i,v=t-a,p=Dv(h,v,l,u)/d;if(p<0||p>1)return!1;var g=Dv(h,v,f,c)/d;return!(g<0||g>1)}function Dv(e,t,r,n){return e*n-r*t}function u7(e){return e<=1e-6&&e>=-1e-6}function r0(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,i=Ce(t)?{formatter:t}:t,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=e.formatterParamsExtra;l&&R(xt(l),function(f){Ts(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=lt(e.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:ut({content:n,formatterParams:s},i)}}function Mw(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function n0(e,t){if(e)if(ge(e))for(var r=0;r<e.length;r++)Mw(e[r],t);else Mw(e,t)}En("circle",Xy);En("ellipse",w2);En("sector",wo);En("ring",T2);En("polygon",E2);En("polyline",ih);En("rect",Nt);En("line",vo);En("bezierCurve",I2);En("arc",Zy);const f7=Object.freeze(Object.defineProperty({__proto__:null,Arc:Zy,BezierCurve:I2,BoundingRect:et,Circle:Xy,CompoundPath:FY,Ellipse:w2,Group:sn,Image:Bs,IncrementalDisplayable:qY,Line:vo,LinearGradient:zY,OrientedBoundingRect:nd,Path:ft,Point:ke,Polygon:E2,Polyline:ih,RadialGradient:VY,Rect:Nt,Ring:T2,Sector:wo,Text:fr,applyTransform:e0,clipPointsByRect:o7,clipRectByRect:s7,createIcon:t0,extendPath:QY,extendShape:XY,getShapeClass:JY,getTransform:n7,groupTransition:H2,initProps:Br,isElementRemoved:os,lineLineIntersect:z2,linePolygonIntersect:l7,makeImage:B2,makePath:Jy,mergePath:e7,registerShape:En,removeElement:k2,removeElementWithFadeOut:id,resizePath:$2,setTooltipConfig:r0,subPixelOptimize:r7,subPixelOptimizeLine:bu,subPixelOptimizeRect:t7,transformDirection:i7,traverseElements:n0,updateProps:Mr},Symbol.toStringTag,{value:"Module"}));var ah={};function W2(e,t){for(var r=0;r<jn.length;r++){var n=jn[r],i=t[n],a=e.ensureState(n);a.style=a.style||{},a.style.text=i}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function Vg(e,t,r){var n=e.labelFetcher,i=e.labelDataIndex,a=e.labelDimIndex,o=t.normal,s;n&&(s=n.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=We(e.defaultText)?e.defaultText(i,e,r):e.defaultText);for(var l={normal:s},u=0;u<jn.length;u++){var f=jn[u],c=t[f];l[f]=qe(n?n.getFormattedLabel(i,f,null,a,c&&c.get("formatter")):null,s)}return l}function i0(e,t,r,n){r=r||ah;for(var i=e instanceof fr,a=!1,o=0;o<rd.length;o++){var s=t[rd[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=i?e:e.getTextContent();if(a){i||(l||(l=new fr,e.setTextContent(l)),e.stateProxy&&(l.stateProxy=e.stateProxy));var u=Vg(r,t),f=t.normal,c=!!f.getShallow("show"),d=ra(f,n&&n.normal,r,!1,!i);d.text=u.normal,i||e.setTextConfig(Aw(f,r,!1));for(var o=0;o<jn.length;o++){var h=jn[o],s=t[h];if(s){var v=l.ensureState(h),p=!!qe(s.getShallow("show"),c);if(p!==c&&(v.ignore=!p),v.style=ra(s,n&&n[h],r,!0,!i),v.style.text=u[h],!i){var g=e.ensureState(h);g.textConfig=Aw(s,r,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(d.x=l.style.x),l.style.y!=null&&(d.y=l.style.y),l.ignore=!c,l.useStyle(d),l.dirty(),r.enableTextSetter&&(qu(l).setLabelText=function(m){var y=Vg(r,t,m);W2(l,y)})}else l&&(l.ignore=!0);e.dirty()}function V2(e,t){t=t||"label";for(var r={normal:e.getModel(t)},n=0;n<jn.length;n++){var i=jn[n];r[i]=e.getModel([i,t])}return r}function ra(e,t,r,n,i){var a={};return c7(a,e,r,n,i),t&&oe(a,t),a}function Aw(e,t,r){t=t||{};var n={},i,a=e.getShallow("rotate"),o=qe(e.getShallow("distance"),r?null:5),s=e.getShallow("offset");return i=e.getShallow("position")||(r?null:"inside"),i==="outside"&&(i=t.defaultOutsidePosition||"top"),i!=null&&(n.position=i),s!=null&&(n.offset=s),a!=null&&(a*=Math.PI/180,n.rotation=a),o!=null&&(n.distance=o),n.outsideFill=e.get("color")==="inherit"?t.inheritColor||null:"auto",n}function c7(e,t,r,n,i){r=r||ah;var a=t.ecModel,o=a&&a.option.textStyle,s=d7(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var f=t.getModel(["rich",u]);Dw(l[u]={},f,o,r,n,i,!1,!0)}}l&&(e.rich=l);var c=t.get("overflow");c&&(e.overflow=c);var d=t.get("minMargin");d!=null&&(e.margin=d),Dw(e,t,o,r,n,i,!0,!1)}function d7(e){for(var t;e&&e!==e.ecModel;){var r=(e.option||ah).rich;if(r){t=t||{};for(var n=xt(r),i=0;i<n.length;i++){var a=n[i];t[a]=1}}e=e.parentModel}return t}var Ew=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Pw=["align","lineHeight","width","height","tag","verticalAlign"],Lw=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Dw(e,t,r,n,i,a,o,s){r=!i&&r||ah;var l=n&&n.inheritColor,u=t.getShallow("color"),f=t.getShallow("textBorderColor"),c=qe(t.getShallow("opacity"),r.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(f==="inherit"||f==="auto")&&(l?f=l:f=null),a||(u=u||r.color,f=f||r.textBorderColor),u!=null&&(e.fill=u),f!=null&&(e.stroke=f);var d=qe(t.getShallow("textBorderWidth"),r.textBorderWidth);d!=null&&(e.lineWidth=d);var h=qe(t.getShallow("textBorderType"),r.textBorderType);h!=null&&(e.lineDash=h);var v=qe(t.getShallow("textBorderDashOffset"),r.textBorderDashOffset);v!=null&&(e.lineDashOffset=v),!i&&c==null&&!s&&(c=n&&n.defaultOpacity),c!=null&&(e.opacity=c),!i&&!a&&e.fill==null&&n.inheritColor&&(e.fill=n.inheritColor);for(var p=0;p<Ew.length;p++){var g=Ew[p],m=qe(t.getShallow(g),r[g]);m!=null&&(e[g]=m)}for(var p=0;p<Pw.length;p++){var g=Pw[p],m=t.getShallow(g);m!=null&&(e[g]=m)}if(e.verticalAlign==null){var y=t.getShallow("baseline");y!=null&&(e.verticalAlign=y)}if(!o||!n.disableBox){for(var p=0;p<Lw.length;p++){var g=Lw[p],m=t.getShallow(g);m!=null&&(e[g]=m)}var _=t.getShallow("borderType");_!=null&&(e.borderDash=_),(e.backgroundColor==="auto"||e.backgroundColor==="inherit")&&l&&(e.backgroundColor=l),(e.borderColor==="auto"||e.borderColor==="inherit")&&l&&(e.borderColor=l)}}function h7(e,t){var r=t&&t.getModel("textStyle");return zn([e.fontStyle||r&&r.getShallow("fontStyle")||"",e.fontWeight||r&&r.getShallow("fontWeight")||"",(e.fontSize||r&&r.getShallow("fontSize")||12)+"px",e.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var qu=Tt();function v7(e,t,r,n){if(e){var i=qu(e);i.prevValue=i.value,i.value=r;var a=t.normal;i.valueAnimation=a.get("valueAnimation"),i.valueAnimation&&(i.precision=a.get("precision"),i.defaultInterpolatedText=n,i.statesModels=t)}}function p7(e,t,r,n,i){var a=qu(e);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=qe(a.interpolatedValue,a.prevValue),l=a.value;function u(f){var c=GU(r,a.precision,s,l,f);a.interpolatedValue=f===1?null:c;var d=Vg({labelDataIndex:t,labelFetcher:i,defaultText:o?o(c):c+""},a.statesModels,c);W2(e,d)}e.percent=0,(a.prevValue==null?Br:Mr)(e,{percent:1},n,t,null,u)}var g7=["textStyle","color"],Iv=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Rv=new fr,m7=function(){function e(){}return e.prototype.getTextColor=function(t){var r=this.ecModel;return this.getShallow("color")||(!t&&r?r.get(g7):null)},e.prototype.getFont=function(){return h7({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(t){for(var r={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Iv.length;n++)r[Iv[n]]=this.getShallow(Iv[n]);return Rv.useStyle(r),Rv.update(),Rv.getBoundingRect()},e}();const y7=m7;var G2=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],_7=_u(G2),b7=function(){function e(){}return e.prototype.getLineStyle=function(t){return _7(this,t)},e}(),U2=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],w7=_u(U2),x7=function(){function e(){}return e.prototype.getItemStyle=function(t,r){return w7(this,t,r)},e}(),xo=function(){function e(t,r,n){this.parentModel=r,this.ecModel=n,this.option=t}return e.prototype.init=function(t,r,n){},e.prototype.mergeOption=function(t,r){it(this.option,t,!0)},e.prototype.get=function(t,r){return t==null?this.option:this._doGet(this.parsePath(t),!r&&this.parentModel)},e.prototype.getShallow=function(t,r){var n=this.option,i=n==null?n:n[t];if(i==null&&!r){var a=this.parentModel;a&&(i=a.getShallow(t))}return i},e.prototype.getModel=function(t,r){var n=t!=null,i=n?this.parsePath(t):null,a=n?this._doGet(i):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new e(a,r,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var t=this.constructor;return new t(Xe(this.option))},e.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},e.prototype.resolveParentPath=function(t){return t},e.prototype.isAnimationEnabled=function(){if(!Ve.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(t,r){var n=this.option;if(!t)return n;for(var i=0;i<t.length&&!(t[i]&&(n=n&&typeof n=="object"?n[t[i]]:null,n==null));i++);return n==null&&r&&(n=r._doGet(this.resolveParentPath(t),r.parentModel)),n},e}();Gy(xo);XU(xo);Qn(xo,b7);Qn(xo,x7);Qn(xo,t9);Qn(xo,y7);const er=xo;var S7=Math.round(Math.random()*10);function oh(e){return[e||"",S7++].join("_")}function C7(e){var t={};e.registerSubTypeDefaulter=function(r,n){var i=Wn(r);t[i.main]=n},e.determineSubType=function(r,n){var i=n.type;if(!i){var a=Wn(r).main;e.hasSubTypes(r)&&t[a]&&(i=t[a](n))}return i}}function T7(e,t){e.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=r(o),f=u.graph,c=u.noEntryList,d={};for(R(a,function(y){d[y]=!0});c.length;){var h=c.pop(),v=f[h],p=!!d[h];p&&(s.call(l,h,v.originalDeps.slice()),delete d[h]),R(v.successor,p?m:g)}R(d,function(){var y="";throw new Error(y)});function g(y){f[y].entryCount--,f[y].entryCount===0&&c.push(y)}function m(y){d[y]=!0,g(y)}};function r(a){var o={},s=[];return R(a,function(l){var u=n(o,l),f=u.originalDeps=t(l),c=i(f,a);u.entryCount=c.length,u.entryCount===0&&s.push(l),R(c,function(d){nt(u.predecessor,d)<0&&u.predecessor.push(d);var h=n(o,d);nt(h.successor,d)<0&&h.successor.push(l)})}),{graph:o,noEntryList:s}}function n(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function i(a,o){var s=[];return R(a,function(l){nt(o,l)>=0&&s.push(l)}),s}}function Y2(e,t){return it(it({},e,!0),t,!0)}const M7={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},A7={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表，"},series:{single:{prefix:"",withName:"图表类型是{seriesType}，表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType}，",withoutName:"第{seriesId}个系列是一个{seriesType}，",separator:{middle:"；",end:"。"}}},data:{allData:"其数据是——",partialData:"其中，前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:"，",end:""}}}};var sd="ZH",a0="EN",wu=a0,Ac={},o0={},q2=Ve.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return e.indexOf(sd)>-1?sd:wu}():wu;function j2(e,t){e=e.toUpperCase(),o0[e]=new er(t),Ac[e]=t}function E7(e){if(Ce(e)){var t=Ac[e.toUpperCase()]||{};return e===sd||e===a0?Xe(t):it(Xe(t),Xe(Ac[wu]),!1)}else return it(Xe(e),Xe(Ac[wu]),!1)}function P7(e){return o0[e]}function L7(){return o0[wu]}j2(a0,M7);j2(sd,A7);var s0=1e3,l0=s0*60,Ul=l0*60,Jr=Ul*24,Iw=Jr*365,wl={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Df="{yyyy}-{MM}-{dd}",Rw={year:"{yyyy}",month:"{yyyy}-{MM}",day:Df,hour:Df+" "+wl.hour,minute:Df+" "+wl.minute,second:Df+" "+wl.second,millisecond:wl.none},Ov=["year","month","day","hour","minute","second","millisecond"],K2=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Pa(e,t){return e+="","0000".substr(0,t-e.length)+e}function ss(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function D7(e){return e===ss(e)}function I7(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function sh(e,t,r,n){var i=yi(e),a=i[u0(r)](),o=i[ls(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[lh(r)](),u=i["get"+(r?"UTC":"")+"Day"](),f=i[xu(r)](),c=(f-1)%12+1,d=i[uh(r)](),h=i[fh(r)](),v=i[ch(r)](),p=n instanceof er?n:P7(n||q2)||L7(),g=p.getModel("time"),m=g.get("month"),y=g.get("monthAbbr"),_=g.get("dayOfWeek"),b=g.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,a%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,m[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,Pa(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Pa(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Pa(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Pa(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Pa(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,Pa(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Pa(v,3)).replace(/{S}/g,v+"")}function R7(e,t,r,n,i){var a=null;if(Ce(r))a=r;else if(We(r))a=r(e.value,t,{level:e.level});else{var o=oe({},wl);if(e.level>0)for(var s=0;s<Ov.length;++s)o[Ov[s]]="{primary|"+o[Ov[s]]+"}";var l=r?r.inherit===!1?r:ut(r,o):o,u=X2(e.value,i);if(l[u])a=l[u];else if(l.inherit){for(var f=K2.indexOf(u),s=f-1;s>=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(ge(a)){var c=e.level==null?0:e.level>=0?e.level:a.length+e.level;c=Math.min(c,a.length-1),a=a[c]}}return sh(new Date(e.value),a,i,n)}function X2(e,t){var r=yi(e),n=r[ls(t)]()+1,i=r[lh(t)](),a=r[xu(t)](),o=r[uh(t)](),s=r[fh(t)](),l=r[ch(t)](),u=l===0,f=u&&s===0,c=f&&o===0,d=c&&a===0,h=d&&i===1,v=h&&n===1;return v?"year":h?"month":d?"day":c?"hour":f?"minute":u?"second":"millisecond"}function Ow(e,t,r){var n=_t(e)?yi(e):e;switch(t=t||X2(e,r),t){case"year":return n[u0(r)]();case"half-year":return n[ls(r)]()>=6?1:0;case"quarter":return Math.floor((n[ls(r)]()+1)/4);case"month":return n[ls(r)]();case"day":return n[lh(r)]();case"half-day":return n[xu(r)]()/24;case"hour":return n[xu(r)]();case"minute":return n[uh(r)]();case"second":return n[fh(r)]();case"millisecond":return n[ch(r)]()}}function u0(e){return e?"getUTCFullYear":"getFullYear"}function ls(e){return e?"getUTCMonth":"getMonth"}function lh(e){return e?"getUTCDate":"getDate"}function xu(e){return e?"getUTCHours":"getHours"}function uh(e){return e?"getUTCMinutes":"getMinutes"}function fh(e){return e?"getUTCSeconds":"getSeconds"}function ch(e){return e?"getUTCMilliseconds":"getMilliseconds"}function O7(e){return e?"setUTCFullYear":"setFullYear"}function Z2(e){return e?"setUTCMonth":"setMonth"}function Q2(e){return e?"setUTCDate":"setDate"}function J2(e){return e?"setUTCHours":"setHours"}function eE(e){return e?"setUTCMinutes":"setMinutes"}function tE(e){return e?"setUTCSeconds":"setSeconds"}function rE(e){return e?"setUTCMilliseconds":"setMilliseconds"}function nE(e){if(!PU(e))return Ce(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function iE(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var dh=oA;function Gg(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&zn(f)?f:"-"}function a(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=e instanceof Date;if(o||s){var l=o?yi(e):e;if(isNaN(+l)){if(s)return"-"}else return sh(l,n,r)}if(t==="ordinal")return fg(e)?i(e):_t(e)&&a(e)?e+"":"-";var u=td(e);return a(u)?nE(u):fg(e)?i(e):typeof e=="boolean"?e+"":"-"}var kw=["a","b","c","d","e","f","g"],kv=function(e,t){return"{"+e+(t??"")+"}"};function aE(e,t,r){ge(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=kw[a];e=e.replace(kv(o),kv(o,0))}for(var s=0;s<n;s++)for(var l=0;l<i.length;l++){var u=t[s][i[l]];e=e.replace(kv(kw[l],s),r?Kr(u):u)}return e}function k7(e,t){var r=Ce(e)?{color:e,extraCssText:t}:e||{},n=r.color,i=r.type;t=r.extraCssText;var a=r.renderMode||"html";if(!n)return"";if(a==="html")return i==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Kr(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Kr(n)+";"+(t||"")+'"></span>';var o=r.markerId||"markerX";return{renderMode:a,content:"{"+o+"|}  ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function Su(e,t){return t=t||"transparent",Ce(e)?e:Pe(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function Nw(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var Ec=R,N7=["left","right","top","bottom","width","height"],If=[["width","left","right"],["height","top","bottom"]];function f0(e,t,r,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(l,u){var f=l.getBoundingRect(),c=t.childAt(u+1),d=c&&c.getBoundingRect(),h,v;if(e==="horizontal"){var p=f.width+(d?-d.x+f.x:0);h=a+p,h>n||l.newline?(a=0,h=p,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(d?-d.y+f.y:0);v=o+g,v>i||l.newline?(a+=s+r,o=0,v=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),e==="horizontal"?a=h+r:o=v+r)})}var Yl=f0;Dt(f0,"vertical");Dt(f0,"horizontal");function Ms(e,t,r){r=dh(r||0);var n=t.width,i=t.height,a=pt(e.left,n),o=pt(e.top,i),s=pt(e.right,n),l=pt(e.bottom,i),u=pt(e.width,n),f=pt(e.height,i),c=r[2]+r[0],d=r[1]+r[3],h=e.aspect;switch(isNaN(u)&&(u=n-s-d-a),isNaN(f)&&(f=i-l-c-o),h!=null&&(isNaN(u)&&isNaN(f)&&(h>n/i?u=n*.8:f=i*.8),isNaN(u)&&(u=h*f),isNaN(f)&&(f=u/h)),isNaN(a)&&(a=n-s-u-d),isNaN(o)&&(o=i-l-f-c),e.left||e.right){case"center":a=n/2-u/2-r[3];break;case"right":a=n-u-d;break}switch(e.top||e.bottom){case"middle":case"center":o=i/2-f/2-r[0];break;case"bottom":o=i-f-c;break}a=a||0,o=o||0,isNaN(u)&&(u=n-d-a-(s||0)),isNaN(f)&&(f=i-c-o-(l||0));var v=new et(a+r[3],o+r[0],u,f);return v.margin=r,v}function Cu(e){var t=e.layoutMode||e.constructor.layoutMode;return Pe(t)?t:t?{type:t}:null}function As(e,t,r){var n=r&&r.ignoreSize;!ge(n)&&(n=[n,n]);var i=o(If[0],0),a=o(If[1],1);u(If[0],e,i),u(If[1],e,a);function o(f,c){var d={},h=0,v={},p=0,g=2;if(Ec(f,function(_){v[_]=e[_]}),Ec(f,function(_){s(t,_)&&(d[_]=v[_]=t[_]),l(d,_)&&h++,l(v,_)&&p++}),n[c])return l(t,f[1])?v[f[2]]=null:l(t,f[2])&&(v[f[1]]=null),v;if(p===g||!h)return v;if(h>=g)return d;for(var m=0;m<f.length;m++){var y=f[m];if(!s(d,y)&&s(e,y)){d[y]=e[y];break}}return d}function s(f,c){return f.hasOwnProperty(c)}function l(f,c){return f[c]!=null&&f[c]!=="auto"}function u(f,c,d){Ec(f,function(h){c[h]=d[h]})}}function hh(e){return B7({},e)}function B7(e,t){return t&&e&&Ec(N7,function(r){t.hasOwnProperty(r)&&(e[r]=t[r])}),e}var F7=Tt(),Fs=function(e){pe(t,e);function t(r,n,i){var a=e.call(this,r,n,i)||this;return a.uid=oh("ec_cpt_model"),a}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=Cu(this),a=i?hh(r):{},o=n.getTheme();it(r,o.get(this.mainType)),it(r,this.getDefaultOption()),i&&As(r,a,i)},t.prototype.mergeOption=function(r,n){it(this.option,r,!0);var i=Cu(this);i&&As(this.option,r,i)},t.prototype.optionUpdated=function(r,n){},t.prototype.getDefaultOption=function(){var r=this.constructor;if(!qU(r))return r.defaultOption;var n=F7(this);if(!n.defaultOption){for(var i=[],a=r;a;){var o=a.prototype.defaultOption;o&&i.push(o),a=a.superClass}for(var s={},l=i.length-1;l>=0;l--)s=it(s,i[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return Uu(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!0)},n)},t.prototype.getBoxLayoutParams=function(){var r=this;return{left:r.get("left"),top:r.get("top"),right:r.get("right"),bottom:r.get("bottom"),width:r.get("width"),height:r.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(r){this.option.zlevel=r},t.protoInitialize=function(){var r=t.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),t}(er);GA(Fs,er);eh(Fs);C7(Fs);T7(Fs,$7);function $7(e){var t=[];return R(Fs.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=Oe(t,function(r){return Wn(r).main}),e!=="dataset"&&nt(t,"dataset")<=0&&t.unshift("dataset"),t}const bt=Fs;var oE="";typeof navigator<"u"&&(oE=navigator.platform||"");var ko="rgba(0, 0, 0, 0.2)";const H7={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:ko,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:ko,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:ko,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:ko,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:ko,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:ko,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:oE.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var sE=Ge(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),un="original",Ar="arrayRows",Pn="objectRows",ei="keyedColumns",Xi="typedArray",lE="unknown",ci="column",$s="row",Vt={Must:1,Might:2,Not:3},uE=Tt();function z7(e){uE(e).datasetMap=Ge()}function W7(e,t,r){var n={},i=c0(t);if(!i||!e)return n;var a=[],o=[],s=t.ecModel,l=uE(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,f,c;e=e.slice(),R(e,function(p,g){var m=Pe(p)?p:e[g]={name:p};m.type==="ordinal"&&f==null&&(f=g,c=v(m)),n[m.name]=[]});var d=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});R(e,function(p,g){var m=p.name,y=v(p);if(f==null){var _=d.valueWayDim;h(n[m],_,y),h(o,_,y),d.valueWayDim+=y}else if(f===g)h(n[m],0,y),h(a,0,y);else{var _=d.categoryWayDim;h(n[m],_,y),h(o,_,y),d.categoryWayDim+=y}});function h(p,g,m){for(var y=0;y<m;y++)p.push(g+y)}function v(p){var g=p.dimsDef;return g?g.length:1}return a.length&&(n.itemName=a),o.length&&(n.seriesName=o),n}function V7(e,t,r){var n={},i=c0(e);if(!i)return n;var a=t.sourceFormat,o=t.dimensionsDefine,s;(a===Pn||a===ei)&&R(o,function(f,c){(Pe(f)?f.name:f)==="name"&&(s=c)});var l=function(){for(var f={},c={},d=[],h=0,v=Math.min(5,r);h<v;h++){var p=cE(t.data,a,t.seriesLayoutBy,o,t.startIndex,h);d.push(p);var g=p===Vt.Not;if(g&&f.v==null&&h!==s&&(f.v=h),(f.n==null||f.n===f.v||!g&&d[f.n]===Vt.Not)&&(f.n=h),m(f)&&d[f.n]!==Vt.Not)return f;g||(p===Vt.Might&&c.v==null&&h!==s&&(c.v=h),(c.n==null||c.n===c.v)&&(c.n=h))}function m(y){return y.v!=null&&y.n!=null}return m(f)?f:m(c)?c:null}();if(l){n.value=[l.v];var u=s??l.n;n.itemName=[u],n.seriesName=[u]}return n}function c0(e){var t=e.get("data",!0);if(!t)return Uu(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},_n).models[0]}function G7(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:Uu(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},_n).models}function fE(e,t){return cE(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function cE(e,t,r,n,i,a){var o,s=5;if($r(e))return Vt.Not;var l,u;if(n){var f=n[a];Pe(f)?(l=f.name,u=f.type):Ce(f)&&(l=f)}if(u!=null)return u==="ordinal"?Vt.Must:Vt.Not;if(t===Ar){var c=e;if(r===$s){for(var d=c[a],h=0;h<(d||[]).length&&h<s;h++)if((o=b(d[i+h]))!=null)return o}else for(var h=0;h<c.length&&h<s;h++){var v=c[i+h];if(v&&(o=b(v[a]))!=null)return o}}else if(t===Pn){var p=e;if(!l)return Vt.Not;for(var h=0;h<p.length&&h<s;h++){var g=p[h];if(g&&(o=b(g[l]))!=null)return o}}else if(t===ei){var m=e;if(!l)return Vt.Not;var d=m[l];if(!d||$r(d))return Vt.Not;for(var h=0;h<d.length&&h<s;h++)if((o=b(d[h]))!=null)return o}else if(t===un)for(var y=e,h=0;h<y.length&&h<s;h++){var g=y[h],_=Vu(g);if(!ge(_))return Vt.Not;if((o=b(_[a]))!=null)return o}function b(x){var w=Ce(x);if(x!=null&&isFinite(x)&&x!=="")return w?Vt.Might:Vt.Not;if(w&&x!=="-")return Vt.Must}return Vt.Not}var U7=Ge();function Y7(e,t,r){var n=U7.get(t);if(!n)return r;var i=n(e);return i?r.concat(i):r}var Bw=Tt();Tt();var d0=function(){function e(){}return e.prototype.getColorFromPalette=function(t,r,n){var i=lr(this.get("color",!0)),a=this.get("colorLayer",!0);return j7(this,Bw,i,a,t,r,n)},e.prototype.clearColorPalette=function(){K7(this,Bw)},e}();function q7(e,t){for(var r=e.length,n=0;n<r;n++)if(e[n].length>t)return e[n];return e[r-1]}function j7(e,t,r,n,i,a,o){a=a||e;var s=t(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var f=o==null||!n?r:q7(n,o);if(f=f||r,!(!f||!f.length)){var c=f[l];return i&&(u[i]=c),s.paletteIdx=(l+1)%f.length,c}}function K7(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Rf,rl,Fw,$w="\0_ec_inner",X7=1,dE=function(e){pe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new er(a),this._locale=new er(o),this._optionManager=s},t.prototype.setOption=function(r,n,i){var a=Ww(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(r,n){return this._resetOption(r,Ww(n))},t.prototype._resetOption=function(r,n){var i=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");!this.option||r==="recreate"?Fw(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=a.getMediaOption(this);l.length&&R(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=Ge(),u=n&&n.replaceMergeMainTypeMap;z7(this),R(r,function(c,d){c!=null&&(bt.hasClass(d)?d&&(s.push(d),l.set(d,!0)):i[d]=i[d]==null?Xe(c):it(i[d],c,!0))}),u&&u.each(function(c,d){bt.hasClass(d)&&!l.get(d)&&(s.push(d),l.set(d,!0))}),bt.topologicalTravel(s,bt.getAllClassMainTypes(),f,this);function f(c){var d=Y7(this,c,lr(r[c])),h=a.get(c),v=h?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",p=IU(h,d,v);$U(p,c,bt),i[c]=null,a.set(c,null),o.set(c,0);var g=[],m=[],y=0,_;R(p,function(b,x){var w=b.existing,S=b.newOption;if(!S)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var C=c==="series",T=bt.getClass(c,b.keyInfo.subType,!C);if(!T)return;if(c==="tooltip"){if(_)return;_=!0}if(w&&w.constructor===T)w.name=b.keyInfo.name,w.mergeOption(S,this),w.optionUpdated(S,!1);else{var E=oe({componentIndex:x},b.keyInfo);w=new T(S,this,this,E),oe(w,E),b.brandNew&&(w.__requireNewView=!0),w.init(S,this,this),w.optionUpdated(null,!0)}}w?(g.push(w.option),m.push(w),y++):(g.push(void 0),m.push(void 0))},this),i[c]=g,a.set(c,m),o.set(c,y),c==="series"&&Rf(this)}this._seriesIndices||Rf(this)},t.prototype.getOption=function(){var r=Xe(this.option);return R(r,function(n,i){if(bt.hasClass(i)){for(var a=lr(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!yu(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[$w],r},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(r){this._payload=r},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(r,n){var i=this._componentsMap.get(r);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o<i.length;o++)if(i[o])return i[o]}}},t.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var i=r.index,a=r.id,o=r.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return i!=null?(l=[],R(lr(i),function(u){s[u]&&l.push(s[u])})):a!=null?l=Hw("id",a,s):o!=null?l=Hw("name",o,s):l=Ft(s,function(u){return!!u}),zw(l,r)},t.prototype.findComponents=function(r){var n=r.query,i=r.mainType,a=s(n),o=a?this.queryComponents(a):Ft(this._componentsMap.get(i),function(u){return!!u});return l(zw(o,r));function s(u){var f=i+"Index",c=i+"Id",d=i+"Name";return u&&(u[f]!=null||u[c]!=null||u[d]!=null)?{mainType:i,index:u[f],id:u[c],name:u[d]}:null}function l(u){return r.filter?Ft(u,r.filter):u}},t.prototype.eachComponent=function(r,n,i){var a=this._componentsMap;if(We(r)){var o=n,s=r;a.each(function(c,d){for(var h=0;c&&h<c.length;h++){var v=c[h];v&&s.call(o,d,v,v.componentIndex)}})}else for(var l=Ce(r)?a.get(r):Pe(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var f=l[u];f&&n.call(i,f,f.componentIndex)}},t.prototype.getSeriesByName=function(r){var n=Un(r,null);return Ft(this._componentsMap.get("series"),function(i){return!!i&&n!=null&&i.name===n})},t.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},t.prototype.getSeriesByType=function(r){return Ft(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},t.prototype.getSeries=function(){return Ft(this._componentsMap.get("series"),function(r){return!!r})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(r,n){rl(this),R(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];r.call(n,a,i)},this)},t.prototype.eachRawSeries=function(r,n){R(this._componentsMap.get("series"),function(i){i&&r.call(n,i,i.componentIndex)})},t.prototype.eachSeriesByType=function(r,n,i){rl(this),R(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===r&&n.call(i,o,a)},this)},t.prototype.eachRawSeriesByType=function(r,n,i){return R(this.getSeriesByType(r),n,i)},t.prototype.isSeriesFiltered=function(r){return rl(this),this._seriesIndicesMap.get(r.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(r,n){rl(this);var i=[];R(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];r.call(n,o,a)&&i.push(a)},this),this._seriesIndices=i,this._seriesIndicesMap=Ge(i)},t.prototype.restoreData=function(r){Rf(this);var n=this._componentsMap,i=[];n.each(function(a,o){bt.hasClass(o)&&i.push(o)}),bt.topologicalTravel(i,bt.getAllClassMainTypes(),function(a){R(n.get(a),function(o){o&&(a!=="series"||!Z7(o,r))&&o.restoreData()})})},t.internalField=function(){Rf=function(r){var n=r._seriesIndices=[];R(r._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),r._seriesIndicesMap=Ge(n)},rl=function(r){},Fw=function(r,n){r.option={},r.option[$w]=X7,r._componentsMap=Ge({series:[]}),r._componentsCount=Ge();var i=n.aria;Pe(i)&&i.enabled==null&&(i.enabled=!0),Q7(n,r._theme.option),it(n,H7,!1),r._mergeOption(n,null)}}(),t}(er);function Z7(e,t){if(t){var r=t.seriesIndex,n=t.seriesId,i=t.seriesName;return r!=null&&e.componentIndex!==r||n!=null&&e.id!==n||i!=null&&e.name!==i}}function Q7(e,t){var r=e.color&&!e.colorLayer;R(t,function(n,i){i==="colorLayer"&&r||bt.hasClass(i)||(typeof n=="object"?e[i]=e[i]?it(e[i],n,!1):Xe(n):e[i]==null&&(e[i]=n))})}function Hw(e,t,r){if(ge(t)){var n=Ge();return R(t,function(a){if(a!=null){var o=Un(a,null);o!=null&&n.set(a,!0)}}),Ft(r,function(a){return a&&n.get(a[e])})}else{var i=Un(t,null);return Ft(r,function(a){return a&&i!=null&&a[e]===i})}}function zw(e,t){return t.hasOwnProperty("subType")?Ft(e,function(r){return r&&r.subType===t.subType}):e}function Ww(e){var t=Ge();return e&&R(lr(e.replaceMerge),function(r){t.set(r,!0)}),{replaceMergeMainTypeMap:t}}Qn(dE,d0);const hE=dE;var J7=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],eq=function(){function e(t){R(J7,function(r){this[r]=yt(t[r],t)},this)}return e}();const vE=eq;var Nv={},tq=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(t,r){var n=[];R(Nv,function(i,a){var o=i.create(t,r);n=n.concat(o||[])}),this._coordinateSystems=n},e.prototype.update=function(t,r){R(this._coordinateSystems,function(n){n.update&&n.update(t,r)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(t,r){Nv[t]=r},e.get=function(t){return Nv[t]},e}();const h0=tq;var rq=/^(min|max)?(.+)$/,nq=function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,r,n){t&&(R(lr(t.series),function(o){o&&o.data&&$r(o.data)&&cg(o.data)}),R(lr(t.dataset),function(o){o&&o.source&&$r(o.source)&&cg(o.source)})),t=Xe(t);var i=this._optionBackup,a=iq(t,r,!i);this._newBaseOption=a.baseOption,i?(a.timelineOptions.length&&(i.timelineOptions=a.timelineOptions),a.mediaList.length&&(i.mediaList=a.mediaList),a.mediaDefault&&(i.mediaDefault=a.mediaDefault)):this._optionBackup=a},e.prototype.mountOption=function(t){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],Xe(t?r.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(t){var r,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(r=Xe(n[i.getCurrentIndex()]))}return r},e.prototype.getMediaOption=function(t){var r=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!i.length&&!a)return s;for(var l=0,u=i.length;l<u;l++)aq(i[l].query,r,n)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!sq(o,this._currentMediaIndices)&&(s=Oe(o,function(f){return Xe(f===-1?a.option:i[f].option)})),this._currentMediaIndices=o,s},e}();function iq(e,t,r){var n=[],i,a,o=e.baseOption,s=e.timeline,l=e.options,u=e.media,f=!!e.media,c=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((c||f)&&(e.options=e.media=null),a=e),f&&ge(u)&&R(u,function(h){h&&h.option&&(h.query?n.push(h):i||(i=h))}),d(a),R(l,function(h){return d(h)}),R(n,function(h){return d(h.option)});function d(h){R(t,function(v){v(h,r)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:i,mediaList:n}}function aq(e,t,r){var n={width:t,height:r,aspectratio:t/r},i=!0;return R(e,function(a,o){var s=o.match(rq);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();oq(n[u],a,l)||(i=!1)}}),i}function oq(e,t,r){return r==="min"?e>=t:r==="max"?e<=t:e===t}function sq(e,t){return e.join(",")===t.join(",")}const lq=nq;var fn=R,Tu=Pe,Vw=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Bv(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=Vw.length;r<n;r++){var i=Vw[r],a=t.normal,o=t.emphasis;a&&a[i]&&(e[i]=e[i]||{},e[i].normal?it(e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),o&&o[i]&&(e[i]=e[i]||{},e[i].emphasis?it(e[i].emphasis,o[i]):e[i].emphasis=o[i],o[i]=null)}}function Qt(e,t,r){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var n=e[t].normal,i=e[t].emphasis;n&&(r?(e[t].normal=e[t].emphasis=null,ut(e[t],n)):e[t]=n),i&&(e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function xl(e){Qt(e,"itemStyle"),Qt(e,"lineStyle"),Qt(e,"areaStyle"),Qt(e,"label"),Qt(e,"labelLine"),Qt(e,"upperLabel"),Qt(e,"edgeLabel")}function Pt(e,t){var r=Tu(e)&&e[t],n=Tu(r)&&r.textStyle;if(n)for(var i=0,a=U1.length;i<a;i++){var o=U1[i];n.hasOwnProperty(o)&&(r[o]=n[o])}}function Yr(e){e&&(xl(e),Pt(e,"label"),e.emphasis&&Pt(e.emphasis,"label"))}function uq(e){if(Tu(e)){Bv(e),xl(e),Pt(e,"label"),Pt(e,"upperLabel"),Pt(e,"edgeLabel"),e.emphasis&&(Pt(e.emphasis,"label"),Pt(e.emphasis,"upperLabel"),Pt(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(Bv(t),Yr(t));var r=e.markLine;r&&(Bv(r),Yr(r));var n=e.markArea;n&&Yr(n);var i=e.data;if(e.type==="graph"){i=i||e.nodes;var a=e.links||e.edges;if(a&&!$r(a))for(var o=0;o<a.length;o++)Yr(a[o]);R(e.categories,function(u){xl(u)})}if(i&&!$r(i))for(var o=0;o<i.length;o++)Yr(i[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)Yr(s[o]);if(r=e.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)ge(l[o])?(Yr(l[o][0]),Yr(l[o][1])):Yr(l[o]);e.type==="gauge"?(Pt(e,"axisLabel"),Pt(e,"title"),Pt(e,"detail")):e.type==="treemap"?(Qt(e.breadcrumb,"itemStyle"),R(e.levels,function(u){xl(u)})):e.type==="tree"&&xl(e.leaves)}}function ii(e){return ge(e)?e:e?[e]:[]}function Gw(e){return(ge(e)?e[0]:e)||{}}function fq(e,t){fn(ii(e.series),function(n){Tu(n)&&uq(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),fn(r,function(n){fn(ii(e[n]),function(i){i&&(Pt(i,"axisLabel"),Pt(i.axisPointer,"label"))})}),fn(ii(e.parallel),function(n){var i=n&&n.parallelAxisDefault;Pt(i,"axisLabel"),Pt(i&&i.axisPointer,"label")}),fn(ii(e.calendar),function(n){Qt(n,"itemStyle"),Pt(n,"dayLabel"),Pt(n,"monthLabel"),Pt(n,"yearLabel")}),fn(ii(e.radar),function(n){Pt(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap)}),fn(ii(e.geo),function(n){Tu(n)&&(Yr(n),fn(ii(n.regions),function(i){Yr(i)}))}),fn(ii(e.timeline),function(n){Yr(n),Qt(n,"label"),Qt(n,"itemStyle"),Qt(n,"controlStyle",!0);var i=n.data;ge(i)&&R(i,function(a){Pe(a)&&(Qt(a,"label"),Qt(a,"itemStyle"))})}),fn(ii(e.toolbox),function(n){Qt(n,"iconStyle"),fn(n.feature,function(i){Qt(i,"iconStyle")})}),Pt(Gw(e.axisPointer),"label"),Pt(Gw(e.tooltip).axisPointer,"label")}function cq(e,t){for(var r=t.split(","),n=e,i=0;i<r.length&&(n=n&&n[r[i]],n!=null);i++);return n}function dq(e,t,r,n){for(var i=t.split(","),a=e,o,s=0;s<i.length-1;s++)o=i[s],a[o]==null&&(a[o]={}),a=a[o];(n||a[i[s]]==null)&&(a[i[s]]=r)}function Uw(e){e&&R(hq,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var hq=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],vq=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Fv=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function nl(e){var t=e&&e.itemStyle;if(t)for(var r=0;r<Fv.length;r++){var n=Fv[r][1],i=Fv[r][0];t[n]!=null&&(t[i]=t[n])}}function Yw(e){e&&e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function qw(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function pq(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(e.emphasis.focus="adjacency"))}function pE(e,t){if(e)for(var r=0;r<e.length;r++)t(e[r]),e[r]&&pE(e[r].children,t)}function gE(e,t){fq(e,t),e.series=lr(e.series),R(e.series,function(r){if(Pe(r)){var n=r.type;if(n==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(n==="pie"||n==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),Yw(r.label);var i=r.data;if(i&&!$r(i))for(var a=0;a<i.length;a++)Yw(i[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=cq(r,"pointer.color");o!=null&&dq(r,"itemStyle.color",o)}else if(n==="bar"){nl(r),nl(r.backgroundStyle),nl(r.emphasis);var i=r.data;if(i&&!$r(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(nl(i[a]),nl(i[a]&&i[a].emphasis))}else if(n==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),qw(r),pE(r.data,qw)}else n==="graph"||n==="sankey"?pq(r):n==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&ut(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),Uw(r)}}),e.dataRange&&(e.visualMap=e.dataRange),R(vq,function(r){var n=e[r];n&&(ge(n)||(n=[n]),R(n,function(i){Uw(i)}))})}function gq(e){var t=Ge();e.eachSeries(function(r){var n=r.get("stack");if(n){var i=t.get(n)||t.set(n,[]),a=r.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;i.length&&a.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}}),t.each(mq)}function mq(e){R(e,function(t,r){var n=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,f,c){var d=o.get(t.stackedDimension,c);if(isNaN(d))return i;var h,v;s?v=o.getRawIndex(c):h=o.get(t.stackedByDimension,c);for(var p=NaN,g=r-1;g>=0;g--){var m=e[g];if(s||(v=m.data.rawIndexOf(m.stackedByDimension,h)),v>=0){var y=m.data.getByRawIndex(m.stackResultDimension,v);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&d>=0&&y>0||l==="samesign"&&d<=0&&y<0){d=MU(d,y),p=y;break}}}return n[0]=d,n[1]=p,n})})}var vh=function(){function e(t){this.data=t.data||(t.sourceFormat===ei?{}:[]),this.sourceFormat=t.sourceFormat||lE,this.seriesLayoutBy=t.seriesLayoutBy||ci,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var r=this.dimensionsDefine=t.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var i=r[n];i.type==null&&fE(this,n)===Vt.Must&&(i.type="ordinal")}}return e}();function v0(e){return e instanceof vh}function Ug(e,t,r){r=r||mE(e);var n=t.seriesLayoutBy,i=_q(e,r,n,t.sourceHeader,t.dimensions),a=new vh({data:e,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:Xe(t)});return a}function p0(e){return new vh({data:e,sourceFormat:$r(e)?Xi:un})}function yq(e){return new vh({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:Xe(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function mE(e){var t=lE;if($r(e))t=Xi;else if(ge(e)){e.length===0&&(t=Ar);for(var r=0,n=e.length;r<n;r++){var i=e[r];if(i!=null){if(ge(i)){t=Ar;break}else if(Pe(i)){t=Pn;break}}}}else if(Pe(e)){for(var a in e)if(Ts(e,a)&&Tr(e[a])){t=ei;break}}return t}function _q(e,t,r,n,i){var a,o;if(!e)return{dimensionsDefine:jw(i),startIndex:o,dimensionsDetectedCount:a};if(t===Ar){var s=e;n==="auto"||n==null?Kw(function(u){u!=null&&u!=="-"&&(Ce(u)?o==null&&(o=1):o=0)},r,s,10):o=_t(n)?n:n?1:0,!i&&o===1&&(i=[],Kw(function(u,f){i[f]=u!=null?u+"":""},r,s,1/0)),a=i?i.length:r===$s?s.length:s[0]?s[0].length:null}else if(t===Pn)i||(i=bq(e));else if(t===ei)i||(i=[],R(e,function(u,f){i.push(f)}));else if(t===un){var l=Vu(e[0]);a=ge(l)&&l.length||1}return{startIndex:o,dimensionsDefine:jw(i),dimensionsDetectedCount:a}}function bq(e){for(var t=0,r;t<e.length&&!(r=e[t++]););if(r){var n=[];return R(r,function(i,a){n.push(a)}),n}}function jw(e){if(e){var t=Ge();return Oe(e,function(r,n){r=Pe(r)?r:{name:r};var i={name:r.name,displayName:r.displayName,type:r.type};if(i.name==null)return i;i.name+="",i.displayName==null&&(i.displayName=i.name);var a=t.get(i.name);return a?i.name+="-"+a.count++:t.set(i.name,{count:1}),i})}}function Kw(e,t,r,n){if(t===$s)for(var i=0;i<r.length&&i<n;i++)e(r[i]?r[i][0]:null,i);else for(var a=r[0]||[],i=0;i<a.length&&i<n;i++)e(a[i],i)}function yE(e){var t=e.sourceFormat;return t===Pn||t===ei}var La,Da,Ia,Xw,Zw,_E=function(){function e(t,r){var n=v0(t)?t:p0(t);this._source=n;var i=this._data=n.data;n.sourceFormat===Xi&&(this._offset=0,this._dimSize=r,this._data=i),Zw(this,i,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(t,r){},e.prototype.appendData=function(t){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var t;Zw=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,c=l.startIndex,d=l.dimensionsDefine,h=Xw[g0(u,f)];if(oe(o,h),u===Xi)o.getItem=r,o.count=i,o.fillStorage=n;else{var v=bE(u,f);o.getItem=yt(v,null,s,c,d);var p=wE(u,f);o.count=yt(p,null,s,c,d)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,c=0;c<u;c++)s[c]=l[f+c];return s},n=function(o,s,l,u){for(var f=this._data,c=this._dimSize,d=0;d<c;d++){for(var h=u[d],v=h[0]==null?1/0:h[0],p=h[1]==null?-1/0:h[1],g=s-o,m=l[d],y=0;y<g;y++){var _=f[y*c+d];m[o+y]=_,_<v&&(v=_),_>p&&(p=_)}h[0]=v,h[1]=p}},i=function(){return this._data?this._data.length/this._dimSize:0};Xw=(t={},t[Ar+"_"+ci]={pure:!0,appendData:a},t[Ar+"_"+$s]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Pn]={pure:!0,appendData:a},t[ei]={pure:!0,appendData:function(o){var s=this._data;R(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},t[un]={appendData:a},t[Xi]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),e}(),Qw=function(e,t,r,n){return e[n]},wq=(La={},La[Ar+"_"+ci]=function(e,t,r,n){return e[n+t]},La[Ar+"_"+$s]=function(e,t,r,n,i){n+=t;for(var a=i||[],o=e,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[n]:null}return a},La[Pn]=Qw,La[ei]=function(e,t,r,n,i){for(var a=i||[],o=0;o<r.length;o++){var s=r[o].name,l=e[s];a[o]=l?l[n]:null}return a},La[un]=Qw,La);function bE(e,t){var r=wq[g0(e,t)];return r}var Jw=function(e,t,r){return e.length},xq=(Da={},Da[Ar+"_"+ci]=function(e,t,r){return Math.max(0,e.length-t)},Da[Ar+"_"+$s]=function(e,t,r){var n=e[0];return n?Math.max(0,n.length-t):0},Da[Pn]=Jw,Da[ei]=function(e,t,r){var n=r[0].name,i=e[n];return i?i.length:0},Da[un]=Jw,Da);function wE(e,t){var r=xq[g0(e,t)];return r}var $v=function(e,t,r){return e[t]},Sq=(Ia={},Ia[Ar]=$v,Ia[Pn]=function(e,t,r){return e[r]},Ia[ei]=$v,Ia[un]=function(e,t,r){var n=Vu(e);return n instanceof Array?n[t]:n},Ia[Xi]=$v,Ia);function xE(e){var t=Sq[e];return t}function g0(e,t){return e===Ar?e+"_"+t:e}function Es(e,t,r){if(e){var n=e.getRawDataItem(t);if(n!=null){var i=e.getStore(),a=i.getSource().sourceFormat;if(r!=null){var o=e.getDimensionIndex(r),s=i.getDimensionProperty(o);return xE(a)(n,o,s)}else{var l=n;return a===un&&(l=Vu(n)),l}}}}var Cq=/\{@(.+?)\}/g,Tq=function(){function e(){}return e.prototype.getDataParams=function(t,r){var n=this.getData(r),i=this.getRawValue(t,r),a=n.getRawIndex(t),o=n.getName(t),s=n.getRawDataItem(t),l=n.getItemVisual(t,"style"),u=l&&l[n.getItemVisual(t,"drawType")||"fill"],f=l&&l.stroke,c=this.mainType,d=c==="series",h=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:o,dataIndex:a,data:s,dataType:r,value:i,color:u,borderColor:f,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(t,r,n,i,a,o){r=r||"normal";var s=this.getData(n),l=this.getDataParams(t,n);if(o&&(l.value=o.interpolatedValue),i!=null&&ge(l.value)&&(l.value=l.value[i]),!a){var u=s.getItemModel(t);a=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(We(a))return l.status=r,l.dimensionIndex=i,a(l);if(Ce(a)){var f=aE(a,l);return f.replace(Cq,function(c,d){var h=d.length,v=d;v.charAt(0)==="["&&v.charAt(h-1)==="]"&&(v=+v.slice(1,h-1));var p=Es(s,t,v);if(o&&ge(o.interpolatedValue)){var g=s.getDimensionIndex(v);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},e.prototype.getRawValue=function(t,r){return Es(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function ex(e){var t,r;return Pe(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function ql(e){return new Mq(e)}var Mq=function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var r=this._upstream,n=t&&t.skip;if(this._dirty&&r){var i=this.context;i.data=i.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(a="reset");function f(y){return!(y>=1)&&(y=1),y}var c;(this._dirty||a==="reset")&&(this._dirty=!1,c=this._doReset(n)),this._modBy=l,this._modDataCount=u;var d=t&&t.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,v=Math.min(d!=null?this._dueIndex+d:1/0,this._dueEnd);if(!n&&(c||h<v)){var p=this._progress;if(ge(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],h,v,l,u);else this._doProgress(p,h,v,l,u)}this._dueIndex=v;var m=this._settedOutputEnd!=null?this._settedOutputEnd:v;this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(t,r,n,i,a){tx.reset(r,n,i,a),this._callingProgress=t,this._callingProgress({start:r,end:n,count:n-r,next:tx.next},this.context)},e.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,n;!t&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(n=r.forceFirstProgress,r=r.progress),ge(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},e}(),tx=function(){var e,t,r,n,i,a={reset:function(l,u,f,c){t=l,e=u,r=f,n=c,i=Math.ceil(n/r),a.next=r>1&&n>0?s:o}};return a;function o(){return t<e?t++:null}function s(){var l=t%i*r+Math.ceil(t/i),u=t>=e?null:l<n?l:t;return t++,u}}();function Pc(e,t){var r=t&&t.type;return r==="ordinal"?e:(r==="time"&&!_t(e)&&e!=null&&e!=="-"&&(e=+yi(e)),e==null||e===""?NaN:+e)}Ge({number:function(e){return parseFloat(e)},time:function(e){return+yi(e)},trim:function(e){return Ce(e)?zn(e):e}});var Aq=function(){function e(t,r){var n=t==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,r){var n=_t(t)?t:td(t),i=_t(r)?r:td(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=Ce(t),l=Ce(r);s&&(n=l?t:0),l&&(i=s?r:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},e}(),Eq=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,r){},e.prototype.retrieveValueFromItem=function(t,r){},e.prototype.convertValue=function(t,r){return Pc(t,r)},e}();function Pq(e,t){var r=new Eq,n=e.data,i=r.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==ci&&mr(o);var s=[],l={},u=e.dimensionsDefine;if(u)R(u,function(p,g){var m=p.name,y={index:g,name:m,displayName:p.displayName};if(s.push(y),m!=null){var _="";Ts(l,m)&&mr(_),l[m]=y}});else for(var f=0;f<e.dimensionsDetectedCount;f++)s.push({index:f});var c=bE(i,ci);t.__isBuiltIn&&(r.getRawDataItem=function(p){return c(n,a,s,p)},r.getRawData=yt(Lq,null,e)),r.cloneRawData=yt(Dq,null,e);var d=wE(i,ci);r.count=yt(d,null,n,a,s);var h=xE(i);r.retrieveValue=function(p,g){var m=c(n,a,s,p);return v(m,g)};var v=r.retrieveValueFromItem=function(p,g){if(p!=null){var m=s[g];if(m)return h(p,g,m.name)}};return r.getDimensionInfo=yt(Iq,null,s,l),r.cloneAllDimensionInfo=yt(Rq,null,s),r}function Lq(e){var t=e.sourceFormat;if(!m0(t)){var r="";mr(r)}return e.data}function Dq(e){var t=e.sourceFormat,r=e.data;if(!m0(t)){var n="";mr(n)}if(t===Ar){for(var i=[],a=0,o=r.length;a<o;a++)i.push(r[a].slice());return i}else if(t===Pn){for(var i=[],a=0,o=r.length;a<o;a++)i.push(oe({},r[a]));return i}}function Iq(e,t,r){if(r!=null){if(_t(r)||!isNaN(r)&&!Ts(t,r))return e[r];if(Ts(t,r))return t[r]}}function Rq(e){return Xe(e)}var SE=Ge();function Oq(e){e=Xe(e);var t=e.type,r="";t||mr(r);var n=t.split(":");n.length!==2&&mr(r);var i=!1;n[0]==="echarts"&&(t=n[1],i=!0),e.__isBuiltIn=i,SE.set(t,e)}function kq(e,t,r){var n=lr(e),i=n.length,a="";i||mr(a);for(var o=0,s=i;o<s;o++){var l=n[o];t=Nq(l,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function Nq(e,t,r,n){var i="";t.length||mr(i),Pe(e)||mr(i);var a=e.type,o=SE.get(a);o||mr(i);var s=Oe(t,function(u){return Pq(u,o)}),l=lr(o.transform({upstream:s[0],upstreamList:s,config:Xe(e.config)}));return Oe(l,function(u,f){var c="";Pe(u)||mr(c),u.data||mr(c);var d=mE(u.data);m0(d)||mr(c);var h,v=t[0];if(v&&f===0&&!u.dimensions){var p=v.startIndex;p&&(u.data=v.data.slice(0,p).concat(u.data)),h={seriesLayoutBy:ci,sourceHeader:p,dimensions:v.metaRawOption.dimensions}}else h={seriesLayoutBy:ci,sourceHeader:0,dimensions:u.dimensions};return Ug(u.data,h,null)})}function m0(e){return e===Ar||e===Pn}var ph="undefined",Bq=typeof Uint32Array===ph?Array:Uint32Array,Fq=typeof Uint16Array===ph?Array:Uint16Array,CE=typeof Int32Array===ph?Array:Int32Array,rx=typeof Float64Array===ph?Array:Float64Array,TE={float:rx,int:CE,ordinal:Array,number:Array,time:rx},Hv;function il(e){return e>65535?Bq:Fq}function No(){return[1/0,-1/0]}function $q(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function nx(e,t,r,n,i){var a=TE[r||"float"];if(i){var o=e[t],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;u<s;u++)l[u]=o[u];e[t]=l}}else e[t]=new a(n)}var Yg=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Ge()}return e.prototype.initData=function(t,r,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),a=this.defaultDimValueGetter=Hv[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[],yE(i),this._dimensions=Oe(r,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,t.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(t,r){var n=this._calcDimNameToIdx,i=this._dimensions,a=n.get(t);if(a!=null){if(i[a].type===r)return a}else a=i.length;return i[a]={type:r},n.set(t,a),this._chunks[a]=new TE[r||"float"](this._rawCount),this._rawExtent[a]=No(),a},e.prototype.collectOrdinalMeta=function(t,r){var n=this._chunks[t],i=this._dimensions[t],a=this._rawExtent,o=i.ordinalOffset||0,s=n.length;o===0&&(a[t]=No());for(var l=a[t],u=o;u<s;u++){var f=n[u]=r.parseAndCollect(n[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}i.ordinalMeta=r,i.ordinalOffset=s,i.type="ordinal"},e.prototype.getOrdinalMeta=function(t){var r=this._dimensions[t],n=r.ordinalMeta;return n},e.prototype.getDimensionProperty=function(t){var r=this._dimensions[t];return r&&r.property},e.prototype.appendData=function(t){var r=this._provider,n=this.count();r.appendData(t);var i=r.count();return r.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},e.prototype.appendValues=function(t,r){for(var n=this._chunks,i=this._dimensions,a=i.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,r||0),u=0;u<a;u++){var f=i[u];nx(n,u,f.type,l,!0)}for(var c=[],d=s;d<l;d++)for(var h=d-s,v=0;v<a;v++){var f=i[v],p=Hv.arrayRows.call(this,t[h]||c,f.property,h,v);n[v][d]=p;var g=o[v];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=Oe(o,function(y){return y.property}),f=0;f<s;f++){var c=o[f];l[f]||(l[f]=No()),nx(a,f,c.type,r,n)}if(i.fillStorage)i.fillStorage(t,r,a,l);else for(var d=[],h=t;h<r;h++){d=i.getItem(h,d);for(var v=0;v<s;v++){var p=a[v],g=this._dimValueGetter(d,u[v],h,v);p[h]=g;var m=l[v];g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,r){if(!(r>=0&&r<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(r)]:NaN},e.prototype.getValues=function(t,r){var n=[],i=[];if(r==null){r=t,t=[];for(var a=0;a<this._dimensions.length;a++)i.push(a)}else i=t;for(var a=0,o=i.length;a<o;a++)n.push(this.get(i[a],r));return n},e.prototype.getByRawIndex=function(t,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[t];return n?n[r]:NaN},e.prototype.getSum=function(t){var r=this._chunks[t],n=0;if(r)for(var i=0,a=this.count();i<a;i++){var o=this.get(t,i);isNaN(o)||(n+=o)}return n},e.prototype.getMedian=function(t){var r=[];this.each([t],function(a){isNaN(a)||r.push(a)});var n=r.sort(function(a,o){return a-o}),i=this.count();return i===0?0:i%2===1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},e.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,n=r[t];if(n!=null&&n<this._count&&n===t)return t;for(var i=0,a=this._count-1;i<=a;){var o=(i+a)/2|0;if(r[o]<t)i=o+1;else if(r[o]>t)a=o-1;else return o}return-1},e.prototype.indicesOfNearest=function(t,r,n){var i=this._chunks,a=i[t],o=[];if(!a)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,f=0,c=this.count();f<c;f++){var d=this.getRawIndex(f),h=r-a[d],v=Math.abs(h);v<=n&&((v<s||v===s&&h>=0&&l<0)&&(s=v,l=h,u=0),h===l&&(o[u++]=f))}return o.length=u,o},e.prototype.getIndices=function(){var t,r=this._indices;if(r){var n=r.constructor,i=this._count;if(n===Array){t=new n(i);for(var a=0;a<i;a++)t[a]=r[a]}else t=new n(r.buffer,0,i)}else{var n=il(this._rawCount);t=new n(this.count());for(var a=0;a<t.length;a++)t[a]=a}return t},e.prototype.filter=function(t,r){if(!this._count)return this;for(var n=this.clone(),i=n.count(),a=il(n._rawCount),o=new a(i),s=[],l=t.length,u=0,f=t[0],c=n._chunks,d=0;d<i;d++){var h=void 0,v=n.getRawIndex(d);if(l===0)h=r(d);else if(l===1){var p=c[f][v];h=r(p,d)}else{for(var g=0;g<l;g++)s[g]=c[t[g]][v];s[g]=d,h=r.apply(null,s)}h&&(o[u++]=v)}return u<i&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(t){var r=this.clone(),n=r._count;if(!n)return this;var i=xt(t),a=i.length;if(!a)return this;var o=r.count(),s=il(r._rawCount),l=new s(o),u=0,f=i[0],c=t[f][0],d=t[f][1],h=r._chunks,v=!1;if(!r._indices){var p=0;if(a===1){for(var g=h[i[0]],m=0;m<n;m++){var y=g[m];(y>=c&&y<=d||isNaN(y))&&(l[u++]=p),p++}v=!0}else if(a===2){for(var g=h[i[0]],_=h[i[1]],b=t[i[1]][0],x=t[i[1]][1],m=0;m<n;m++){var y=g[m],w=_[m];(y>=c&&y<=d||isNaN(y))&&(w>=b&&w<=x||isNaN(w))&&(l[u++]=p),p++}v=!0}}if(!v)if(a===1)for(var m=0;m<o;m++){var S=r.getRawIndex(m),y=h[i[0]][S];(y>=c&&y<=d||isNaN(y))&&(l[u++]=S)}else for(var m=0;m<o;m++){for(var C=!0,S=r.getRawIndex(m),T=0;T<a;T++){var E=i[T],y=h[E][S];(y<t[E][0]||y>t[E][1])&&(C=!1)}C&&(l[u++]=r.getRawIndex(m))}return u<o&&(r._indices=l),r._count=u,r._extent=[],r._updateGetRawIdx(),r},e.prototype.map=function(t,r){var n=this.clone(t);return this._updateDims(n,t,r),n},e.prototype.modify=function(t,r){this._updateDims(this,t,r)},e.prototype._updateDims=function(t,r,n){for(var i=t._chunks,a=[],o=r.length,s=t.count(),l=[],u=t._rawExtent,f=0;f<r.length;f++)u[r[f]]=No();for(var c=0;c<s;c++){for(var d=t.getRawIndex(c),h=0;h<o;h++)l[h]=i[r[h]][d];l[o]=c;var v=n&&n.apply(null,l);if(v!=null){typeof v!="object"&&(a[0]=v,v=a);for(var f=0;f<v.length;f++){var p=r[f],g=v[f],m=u[p],y=i[p];y&&(y[d]=g),g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}}},e.prototype.lttbDownSample=function(t,r){var n=this.clone([t],!0),i=n._chunks,a=i[t],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),f,c,d,h=new(il(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var v=1;v<o-1;v+=l){for(var p=Math.min(v+l,o-1),g=Math.min(v+l*2,o),m=(g+p)/2,y=0,_=p;_<g;_++){var b=this.getRawIndex(_),x=a[b];isNaN(x)||(y+=x)}y/=g-p;var w=v,S=Math.min(v+l,o),C=v-1,T=a[u];f=-1,d=w;for(var E=-1,A=0,_=w;_<S;_++){var b=this.getRawIndex(_),x=a[b];if(isNaN(x)){A++,E<0&&(E=b);continue}c=Math.abs((C-m)*(x-T)-(C-_)*(y-T)),c>f&&(f=c,d=b)}A>0&&A<S-w&&(h[s++]=Math.min(E,d),d=Math.max(E,d)),h[s++]=d,u=d}return h[s++]=this.getRawIndex(o-1),n._count=s,n._indices=h,n.getRawIndex=this._getRawIdx,n},e.prototype.downSample=function(t,r,n,i){for(var a=this.clone([t],!0),o=a._chunks,s=[],l=Math.floor(1/r),u=o[t],f=this.count(),c=a._rawExtent[t]=No(),d=new(il(this._rawCount))(Math.ceil(f/l)),h=0,v=0;v<f;v+=l){l>f-v&&(l=f-v,s.length=l);for(var p=0;p<l;p++){var g=this.getRawIndex(v+p);s[p]=u[g]}var m=n(s),y=this.getRawIndex(Math.min(v+i(s,m)||0,f-1));u[y]=m,m<c[0]&&(c[0]=m),m>c[1]&&(c[1]=m),d[h++]=y}return a._count=h,a._indices=d,a._updateGetRawIdx(),a},e.prototype.each=function(t,r){if(this._count)for(var n=t.length,i=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(n){case 0:r(a);break;case 1:r(i[t[0]][s],a);break;case 2:r(i[t[0]][s],i[t[1]][s],a);break;default:for(var l=0,u=[];l<n;l++)u[l]=i[t[l]][s];u[l]=a,r.apply(null,u)}}},e.prototype.getDataExtent=function(t){var r=this._chunks[t],n=No();if(!r)return n;var i=this.count(),a=!this._indices,o;if(a)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=n;for(var s=o[0],l=o[1],u=0;u<i;u++){var f=this.getRawIndex(u),c=r[f];c<s&&(s=c),c>l&&(l=c)}return o=[s,l],this._extent[t]=o,o},e.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],i=this._chunks,a=0;a<i.length;a++)n.push(i[a][r]);return n},e.prototype.clone=function(t,r){var n=new e,i=this._chunks,a=t&&ea(t,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?$q(i[o]):i[o];else n._chunks=i;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},e.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=Xe(this._extent),t._rawExtent=Xe(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,r=void 0;if(t===Array){var n=this._indices.length;r=new t(n);for(var i=0;i<n;i++)r[i]=this._indices[i]}else r=new t(this._indices);return r}return null},e.prototype._getRawIdxIdentity=function(t){return t},e.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function t(r,n,i,a){return Pc(r[a],this._dimensions[a])}Hv={arrayRows:t,objectRows:function(r,n,i,a){return Pc(r[n],this._dimensions[a])},keyedColumns:t,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return Pc(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),e}(),Hq=function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,r){this._sourceList=t,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,i,a;if(Of(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var f=r[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),l=$r(s)?Xi:un,a=[];var c=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},h=qe(c.seriesLayoutBy,d.seriesLayoutBy)||null,v=qe(c.sourceHeader,d.sourceHeader),p=qe(c.dimensions,d.dimensions),g=h!==d.seriesLayoutBy||!!v!=!!d.sourceHeader||p;i=g?[Ug(s,{seriesLayoutBy:h,sourceHeader:v,dimensions:p},l)]:[]}else{var m=t;if(n){var y=this._applyTransform(r);i=y.sourceList,a=y.upstreamSignList}else{var _=m.get("source",!0);i=[Ug(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},e.prototype._applyTransform=function(t){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(i!=null){var a="";t.length!==1&&ix(a)}var o,s=[],l=[];return R(t,function(u){u.prepareSource();var f=u.getSource(i||0),c="";i!=null&&!f&&ix(c),s.push(f),l.push(u._getVersionSign())}),n?o=kq(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[yq(s[0])]),{sourceList:o,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r<t.length;r++){var n=t[r];if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},e.prototype.getSource=function(t){t=t||0;var r=this._sourceList[t];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return r},e.prototype.getSharedDataStore=function(t){var r=t.makeStoreSchema();return this._innerGetDataStore(r.dimensions,t.source,r.hash)},e.prototype._innerGetDataStore=function(t,r,n){var i=0,a=this._storeList,o=a[i];o||(o=a[i]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];Of(this._sourceHost)&&l?s=l._innerGetDataStore(t,r,n):(s=new Yg,s.initData(new _E(r,t.length),t)),o[n]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(Of(t)){var r=c0(t);return r?[r.getSourceManager()]:[]}else return Oe(G7(t),function(n){return n.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,r,n,i;if(Of(t))r=t.get("seriesLayoutBy",!0),n=t.get("sourceHeader",!0),i=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=t;r=a.get("seriesLayoutBy",!0),n=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:i}},e}();function Of(e){return e.mainType==="series"}function ix(e){throw new Error(e)}var ME="line-height:1";function AE(e,t){var r=e.color||"#6e7079",n=e.fontSize||12,i=e.fontWeight||"400",a=e.color||"#464646",o=e.fontSize||14,s=e.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+Kr(n+"")+"px;color:"+Kr(r)+";font-weight:"+Kr(i+""),valueStyle:"font-size:"+Kr(o+"")+"px;color:"+Kr(a)+";font-weight:"+Kr(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var zq=[0,10,20,30],Wq=["",`
+*/var Tc={},kA={};function _U(e){delete kA[e]}function bU(e){if(!e)return!1;if(typeof e=="string")return Qc(e,1)<Tg;if(e.colorStops){for(var t=e.colorStops,r=0,n=t.length,i=0;i<n;i++)r+=Qc(t[i].color,1);return r/=n,r<Tg}return!1}var wU=function(){function e(t,r,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=r,this.id=t;var a=new BG,o=n.renderer||"canvas";Tc[o]||(o=xt(Tc)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new Tc[o](r,a,n,t),l=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!Ve.node&&!Ve.worker&&!l?new uU(s.getViewportRoot(),s.root):null,f=n.useCoarsePointer,c=f==null||f==="auto"?Ve.touchEventsSupported:!!f,d=44,h;c&&(h=je(n.pointerSize,d)),this.handler=new IG(a,s,u,s.root,h),this.animation=new tU({stage:{update:l?null:function(){return i._flush(!0)}}}),l||this.animation.start()}return e.prototype.add=function(t){t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},e.prototype.remove=function(t){t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(t,r){this.painter.configLayer&&this.painter.configLayer(t,r),this.refresh()},e.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=bU(t)},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(t){this._darkMode=t},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(t){t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},e.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},e.prototype.flush=function(){this._flush(!1)},e.prototype._flush=function(t){var r,n=Ko();this._needsRefresh&&(r=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var i=Ko();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},e.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},e.prototype.clearAnimation=function(){this.animation.clear()},e.prototype.getWidth=function(){return this.painter.getWidth()},e.prototype.getHeight=function(){return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,r){return this.handler.findHover(t,r)},e.prototype.on=function(t,r,n){return this.handler.on(t,r,n),this},e.prototype.off=function(t,r){this.handler.off(t,r)},e.prototype.trigger=function(t,r){this.handler.trigger(t,r)},e.prototype.clear=function(){for(var t=this.storage.getRoots(),r=0;r<t.length;r++)t[r]instanceof sn&&t[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},e.prototype.dispose=function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,_U(this.id)},e}();function z1(e,t){var r=new wU(oA(),e,t);return kA[r.id]=r,r}function xU(e,t){Tc[e]=t}var W1=1e-4,NA=20;function SU(e){return e.replace(/^\s+|\s+$/g,"")}function Eg(e,t,r,n){var i=t[0],a=t[1],o=r[0],s=r[1],l=a-i,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(e<=i)return o;if(e>=a)return s}else{if(e>=i)return o;if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/l*u+o}function pt(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return Te(e)?SU(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function It(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),NA),e=(+e).toFixed(t),r?e:+e}function ui(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,r=0;r<15;r++,t*=10)if(Math.round(e*t)/t===e)return r}return CU(e)}function CU(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),n=r>0?+t.slice(r+1):0,i=r>0?r:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function TU(e,t){var r=Math.log,n=Math.LN10,i=Math.floor(r(e[1]-e[0])/n),a=Math.round(r(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function MU(e,t){var r=ta(e,function(h,v){return h+(isNaN(v)?0:v)},0);if(r===0)return[];for(var n=Math.pow(10,t),i=Oe(e,function(h){return(isNaN(h)?0:h)/r*n*100}),a=n*100,o=Oe(i,function(h){return Math.floor(h)}),s=ta(o,function(h,v){return h+v},0),l=Oe(i,function(h,v){return h-o[v]});s<a;){for(var u=Number.NEGATIVE_INFINITY,f=null,c=0,d=l.length;c<d;++c)l[c]>u&&(u=l[c],f=c);++o[f],l[f]=0,++s}return Oe(o,function(h){return h/n})}function AU(e,t){var r=Math.max(ui(e),ui(t)),n=e+t;return r>NA?n:It(n,r)}function BA(e){var t=Math.PI*2;return(e%t+t)%t}function td(e){return e>-W1&&e<W1}var EU=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function _i(e){if(e instanceof Date)return e;if(Te(e)){var t=EU.exec(e);if(!t)return new Date(NaN);if(t[8]){var r=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(r-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,r,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(e==null)return new Date(NaN);return new Date(Math.round(e))}function PU(e){return Math.pow(10,zy(e))}function zy(e){if(e===0)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function FA(e,t){var r=zy(e),n=Math.pow(10,r),i=e/n,a;return t?i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10:i<1?a=1:i<2?a=2:i<3?a=3:i<5?a=5:a=10,e=a*n,r>=-20?+e.toFixed(r<0?-r:0):e}function rd(e){var t=parseFloat(e);return t==e&&(t!==0||!Te(e)||e.indexOf("x")<=0)?t:NaN}function LU(e){return!isNaN(rd(e))}function $A(){return Math.round(Math.random()*9)}function HA(e,t){return t===0?e:HA(t,e%t)}function V1(e,t){return e==null?t:t==null?e:e*t/HA(e,t)}function mr(e){throw new Error(e)}function G1(e,t,r){return(t-e)*r+e}var zA="series\0",DU="\0_ec_\0";function lr(e){return e instanceof Array?e:e==null?[]:[e]}function Pg(e,t,r){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var n=0,i=r.length;n<i;n++){var a=r[n];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}var U1=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function Gu(e){return De(e)&&!ge(e)&&!(e instanceof Date)?e.value:e}function IU(e){return De(e)&&!(e instanceof Array)}function RU(e,t,r){var n=r==="normalMerge",i=r==="replaceMerge",a=r==="replaceAll";e=e||[],t=(t||[]).slice();var o=Ge();R(t,function(l,u){if(!De(l)){t[u]=null;return}});var s=OU(e,o,r);return(n||i)&&kU(s,e,o,t),n&&NU(s,t),n||i?BU(s,t,i):a&&FU(s,t),$U(s),s}function OU(e,t,r){var n=[];if(r==="replaceAll")return n;for(var i=0;i<e.length;i++){var a=e[i];a&&a.id!=null&&t.set(a.id,i),n.push({existing:r==="replaceMerge"||yu(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function kU(e,t,r,n){R(n,function(i,a){if(!(!i||i.id==null)){var o=zl(i.id),s=r.get(o);if(s!=null){var l=e[s];yi(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=i,l.existing=t[s],n[a]=null}}})}function NU(e,t){R(t,function(r,n){if(!(!r||r.name==null))for(var i=0;i<e.length;i++){var a=e[i].existing;if(!e[i].newOption&&a&&(a.id==null||r.id==null)&&!yu(r)&&!yu(a)&&WA("name",a,r)){e[i].newOption=r,t[n]=null;return}}})}function BU(e,t,r){R(t,function(n){if(n){for(var i,a=0;(i=e[a])&&(i.newOption||yu(i.existing)||i.existing&&n.id!=null&&!WA("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=r):e.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),a++}})}function FU(e,t){R(t,function(r){e.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function $U(e){var t=Ge();R(e,function(r){var n=r.existing;n&&t.set(n.id,r)}),R(e,function(r){var n=r.newOption;yi(!n||n.id==null||!t.get(n.id)||t.get(n.id)===r,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&t.set(n.id,r),!r.keyInfo&&(r.keyInfo={})}),R(e,function(r,n){var i=r.existing,a=r.newOption,o=r.keyInfo;if(De(a)){if(o.name=a.name!=null?zl(a.name):i?i.name:zA+n,i)o.id=zl(i.id);else if(a.id!=null)o.id=zl(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,r)}})}function WA(e,t,r){var n=Un(t[e],null),i=Un(r[e],null);return n!=null&&i!=null&&n===i}function zl(e){return Un(e,"")}function Un(e,t){return e==null?t:Te(e)?e:bt(e)||fg(e)?e+"":t}function Wy(e){var t=e.name;return!!(t&&t.indexOf(zA))}function yu(e){return e&&e.id!=null&&zl(e.id).indexOf(DU)===0}function HU(e,t,r){R(e,function(n){var i=n.newOption;De(i)&&(n.keyInfo.mainType=t,n.keyInfo.subType=zU(t,i,n.existing,r))})}function zU(e,t,r,n){var i=t.type?t.type:r?r.subType:n.determineSubType(e,t);return i}function Uu(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return ge(t.dataIndex)?Oe(t.dataIndex,function(r){return e.indexOfRawIndex(r)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return ge(t.name)?Oe(t.name,function(r){return e.indexOfName(r)}):e.indexOfName(t.name)}function Tt(){var e="__ec_inner_"+WU++;return function(t){return t[e]||(t[e]={})}}var WU=$A();function pv(e,t,r){var n=Vy(t,r),i=n.mainTypeSpecified,a=n.queryOptionMap,o=n.others,s=o,l=r?r.defaultMainType:null;return!i&&l&&a.set(l,{}),a.each(function(u,f){var c=Yu(e,f,u,{useDefault:l===f,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[f+"Models"]=c.models,s[f+"Model"]=c.models[0]}),s}function Vy(e,t){var r;if(Te(e)){var n={};n[e+"Index"]=0,r=n}else r=e;var i=Ge(),a={},o=!1;return R(r,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],c=(u[2]||"").toLowerCase();if(!(!f||!c||t&&t.includeMainTypes&&it(t.includeMainTypes,f)<0)){o=o||!!f;var d=i.get(f)||i.set(f,{});d[c]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var _n={useDefault:!0,enableAll:!1,enableNone:!1};function Yu(e,t,r,n){n=n||_n;var i=r.index,a=r.id,o=r.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=e.getComponent(t))?[l]:[],s}return i==="none"||i===!1?(yi(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(i==="all"&&(yi(n.enableAll,'`"all"` is not a valid value on index option.'),i=a=o=null),s.models=e.queryComponents({mainType:t,index:i,id:a,name:o}),s)}function VA(e,t,r){e.setAttribute?e.setAttribute(t,r):e[t]=r}function VU(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function GU(e){return e==="auto"?Ve.domSupported?"html":"richText":e||"html"}function UU(e,t,r,n,i){var a=t==null||t==="auto";if(n==null)return n;if(bt(n)){var o=G1(r||0,n,i);return It(o,a?Math.max(ui(r||0),ui(n)):t)}else{if(Te(n))return i<1?r:n;for(var s=[],l=r,u=n,f=Math.max(l?l.length:0,u.length),c=0;c<f;++c){var d=e.getDimensionInfo(c);if(d&&d.type==="ordinal")s[c]=(i<1&&l?l:u)[c];else{var h=l&&l[c]?l[c]:0,v=u[c],o=G1(h,v,i);s[c]=It(o,a?Math.max(ui(h),ui(v)):t)}}return s}}var YU=".",_a="___EC__COMPONENT__CONTAINER___",GA="___EC__EXTENDED_CLASS___";function Wn(e){var t={main:"",sub:""};if(e){var r=e.split(YU);t.main=r[0]||"",t.sub=r[1]||""}return t}function qU(e){yi(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function jU(e){return!!(e&&e[GA])}function Gy(e,t){e.$constructor=e,e.extend=function(r){var n=this,i;return KU(n)?i=function(a){pe(o,a);function o(){return a.apply(this,arguments)||this}return o}(n):(i=function(){(r.$constructor||n).apply(this,arguments)},qV(i,this)),oe(i.prototype,r),i[GA]=!0,i.extend=this.extend,i.superCall=QU,i.superApply=JU,i.superClass=n,i}}function KU(e){return We(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function UA(e,t){e.extend=t.extend}var XU=Math.round(Math.random()*10);function ZU(e){var t=["__\0is_clz",XU++].join("_");e.prototype[t]=!0,e.isInstance=function(r){return!!(r&&r[t])}}function QU(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this.superClass.prototype[t].apply(e,r)}function JU(e,t,r){return this.superClass.prototype[t].apply(e,r)}function eh(e){var t={};e.registerClass=function(n){var i=n.type||n.prototype.type;if(i){qU(i),n.prototype.type=i;var a=Wn(i);if(!a.sub)t[a.main]=n;else if(a.sub!==_a){var o=r(a);o[a.sub]=n}}return n},e.getClass=function(n,i,a){var o=t[n];if(o&&o[_a]&&(o=i?o[i]:null),a&&!o)throw new Error(i?"Component "+n+"."+(i||"")+" is used but not imported.":n+".type should be specified.");return o},e.getClassesByMainType=function(n){var i=Wn(n),a=[],o=t[i.main];return o&&o[_a]?R(o,function(s,l){l!==_a&&a.push(s)}):a.push(o),a},e.hasClass=function(n){var i=Wn(n);return!!t[i.main]},e.getAllClassMainTypes=function(){var n=[];return R(t,function(i,a){n.push(a)}),n},e.hasSubTypes=function(n){var i=Wn(n),a=t[i.main];return a&&a[_a]};function r(n){var i=t[n.main];return(!i||!i[_a])&&(i=t[n.main]={},i[_a]=!0),i}}function _u(e,t){for(var r=0;r<e.length;r++)e[r][1]||(e[r][1]=e[r][0]);return t=t||!1,function(n,i,a){for(var o={},s=0;s<e.length;s++){var l=e[s][1];if(!(i&&it(i,l)>=0||a&&it(a,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[e[s][0]]=u)}}return o}}var e9=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],t9=_u(e9),r9=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return t9(this,t,r)},e}(),Lg=new Vu(50);function n9(e){if(typeof e=="string"){var t=Lg.get(e);return t&&t.image}else return e}function YA(e,t,r,n,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var a=Lg.get(e),o={hostEl:r,cb:n,cbPayload:i};return a?(t=a.image,!th(t)&&a.pending.push(o)):(t=bo.loadImage(e,Y1,Y1),t.__zrImageSrc=e,Lg.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function Y1(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var r=e.pending[t],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}e.pending.length=0}function th(e){return e&&e.width&&e.height}var gv=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function i9(e,t,r,n,i){if(!t)return"";var a=(e+"").split(`
+`);i=qA(t,r,n,i);for(var o=0,s=a.length;o<s;o++)a[o]=jA(a[o],i);return a.join(`
+`)}function qA(e,t,r,n){n=n||{};var i=oe({},n);i.font=t,r=je(r,"..."),i.maxIterations=je(n.maxIterations,2);var a=i.minChar=je(n.minChar,0);i.cnCharWidth=Nr("国",t);var o=i.ascCharWidth=Nr("a",t);i.placeholder=je(n.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<a&&s>=o;l++)s-=o;var u=Nr(r,t);return u>s&&(r="",u=0),s=e-u,i.ellipsis=r,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=e,i}function jA(e,t){var r=t.containerWidth,n=t.font,i=t.contentWidth;if(!r)return"";var a=Nr(e,n);if(a<=r)return e;for(var o=0;;o++){if(a<=i||o>=t.maxIterations){e+=t.ellipsis;break}var s=o===0?a9(e,i,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(e.length*i/a):0;e=e.substr(0,s),a=Nr(e,n)}return e===""&&(e=t.placeholder),e}function a9(e,t,r,n){for(var i=0,a=0,o=e.length;a<o&&i<t;a++){var s=e.charCodeAt(a);i+=0<=s&&s<=127?r:n}return a}function o9(e,t){e!=null&&(e+="");var r=t.overflow,n=t.padding,i=t.font,a=r==="truncate",o=$y(i),s=je(t.lineHeight,o),l=!!t.backgroundColor,u=t.lineOverflow==="truncate",f=t.width,c;f!=null&&(r==="break"||r==="breakAll")?c=e?KA(e,t.font,f,r==="breakAll",0).lines:[]:c=e?e.split(`
+`):[];var d=c.length*s,h=je(t.height,d);if(d>h&&u){var v=Math.floor(h/s);c=c.slice(0,v)}if(e&&a&&f!=null)for(var p=qA(f,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),g=0;g<c.length;g++)c[g]=jA(c[g],p);for(var m=h,y=0,g=0;g<c.length;g++)y=Math.max(Nr(c[g],i),y);f==null&&(f=y);var _=y;return n&&(m+=n[0]+n[2],_+=n[1]+n[3],f+=n[1]+n[3]),l&&(_=f),{lines:c,height:h,outerWidth:_,outerHeight:m,lineHeight:s,calculatedLineHeight:o,contentWidth:y,contentHeight:d,width:f}}var s9=function(){function e(){}return e}(),q1=function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e}(),l9=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return e}();function u9(e,t){var r=new l9;if(e!=null&&(e+=""),!e)return r;for(var n=t.width,i=t.height,a=t.overflow,o=(a==="break"||a==="breakAll")&&n!=null?{width:n,accumWidth:0,breakAll:a==="breakAll"}:null,s=gv.lastIndex=0,l;(l=gv.exec(e))!=null;){var u=l.index;u>s&&mv(r,e.substring(s,u),t,o),mv(r,l[2],t,o,l[1]),s=gv.lastIndex}s<e.length&&mv(r,e.substring(s,e.length),t,o);var f=[],c=0,d=0,h=t.padding,v=a==="truncate",p=t.lineOverflow==="truncate";function g(B,N,U){B.width=N,B.lineHeight=U,c+=U,d=Math.max(d,N)}e:for(var m=0;m<r.lines.length;m++){for(var y=r.lines[m],_=0,b=0,x=0;x<y.tokens.length;x++){var w=y.tokens[x],S=w.styleName&&t.rich[w.styleName]||{},C=w.textPadding=S.padding,T=C?C[1]+C[3]:0,E=w.font=S.font||t.font;w.contentHeight=$y(E);var A=je(S.height,w.contentHeight);if(w.innerHeight=A,C&&(A+=C[0]+C[2]),w.height=A,w.lineHeight=Bl(S.lineHeight,t.lineHeight,A),w.align=S&&S.align||t.align,w.verticalAlign=S&&S.verticalAlign||"middle",p&&i!=null&&c+w.lineHeight>i){x>0?(y.tokens=y.tokens.slice(0,x),g(y,b,_),r.lines=r.lines.slice(0,m+1)):r.lines=r.lines.slice(0,m);break e}var M=S.width,D=M==null||M==="auto";if(typeof M=="string"&&M.charAt(M.length-1)==="%")w.percentWidth=M,f.push(w),w.contentWidth=Nr(w.text,E);else{if(D){var O=S.backgroundColor,k=O&&O.image;k&&(k=n9(k),th(k)&&(w.width=Math.max(w.width,k.width*A/k.height)))}var F=v&&n!=null?n-b:null;F!=null&&F<w.width?!D||F<T?(w.text="",w.width=w.contentWidth=0):(w.text=i9(w.text,F-T,E,t.ellipsis,{minChar:t.truncateMinChar}),w.width=w.contentWidth=Nr(w.text,E)):w.contentWidth=Nr(w.text,E)}w.width+=T,b+=w.width,S&&(_=Math.max(_,w.lineHeight))}g(y,b,_)}r.outerWidth=r.width=je(n,d),r.outerHeight=r.height=je(i,c),r.contentHeight=c,r.contentWidth=d,h&&(r.outerWidth+=h[1]+h[3],r.outerHeight+=h[0]+h[2]);for(var m=0;m<f.length;m++){var w=f[m],j=w.percentWidth;w.width=parseInt(j,10)/100*r.width}return r}function mv(e,t,r,n,i){var a=t==="",o=i&&r.rich[i]||{},s=e.lines,l=o.font||r.font,u=!1,f,c;if(n){var d=o.padding,h=d?d[1]+d[3]:0;if(o.width!=null&&o.width!=="auto"){var v=ra(o.width,n.width)+h;s.length>0&&v+n.accumWidth>n.width&&(f=t.split(`
+`),u=!0),n.accumWidth=v}else{var p=KA(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=p.accumWidth+h,c=p.linesWidths,f=p.lines}}else f=t.split(`
+`);for(var g=0;g<f.length;g++){var m=f[g],y=new s9;if(y.styleName=i,y.text=m,y.isLineHolder=!m&&!a,typeof o.width=="number"?y.width=o.width:y.width=c?c[g]:Nr(m,l),!g&&!u){var _=(s[s.length-1]||(s[0]=new q1)).tokens,b=_.length;b===1&&_[0].isLineHolder?_[0]=y:(m||!b||a)&&_.push(y)}else s.push(new q1([y]))}}function f9(e){var t=e.charCodeAt(0);return t>=33&&t<=383}var c9=ta(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function d9(e){return f9(e)?!!c9[e]:!0}function KA(e,t,r,n,i){for(var a=[],o=[],s="",l="",u=0,f=0,c=0;c<e.length;c++){var d=e.charAt(c);if(d===`
+`){l&&(s+=l,f+=u),a.push(s),o.push(f),s="",l="",u=0,f=0;continue}var h=Nr(d,t),v=n?!1:!d9(d);if(a.length?f+h>r:i+f+h>r){f?(s||l)&&(v?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=d,u+=h,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=d,f=h)):v?(a.push(l),o.push(u),l=d,u=h):(a.push(d),o.push(h));continue}f+=h,v?(l+=d,u+=h):(l&&(s+=l,l="",u=0),s+=d)}return!a.length&&!s&&(s=e,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=i),{accumWidth:f,lines:a,linesWidths:o}}var Dg="__zr_style_"+Math.round(Math.random()*10),no={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},rh={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};no[Dg]=!0;var j1=["z","z2","invisible"],h9=["invisible"],v9=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=xt(r),i=0;i<n.length;i++){var a=n[i];a==="style"?this.useStyle(r[a]):e.prototype.attrKV.call(this,a,r[a])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(r,n,i,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&p9(this,r,n)||o&&!o[0]&&!o[3])return!1;if(i&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(r,n){return this.rectContain(r,n)},t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.rectContain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();return a.contain(i[0],i[1])},t.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,i=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new tt(0,0,0,0)),n?tt.applyTransform(r,i,n):r.copy(i),(o||s||l)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(l),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+l-o));var u=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-u),r.y=Math.floor(r.y-u),r.width=Math.ceil(r.width+1+u*2),r.height=Math.ceil(r.height+1+u*2))}return r},t.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new tt(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(r){return this.animate("style",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(r,n){r!=="style"?e.prototype.attrKV.call(this,r,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(r,n){return typeof r=="string"?this.style[r]=n:oe(this.style,r),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=ml,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&ml)},t.prototype.styleUpdated=function(){this.__dirty&=~ml},t.prototype.createStyle=function(r){return Zd(no,r)},t.prototype.useStyle=function(r){r[Dg]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},t.prototype.isStyleObject=function(r){return r[Dg]},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,n,j1)},t.prototype._applyStateObj=function(r,n,i,a,o,s){e.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.style?o?a?u=n.style:(u=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(u,n.style)):(u=this._mergeStyle(this.createStyle(),a?this.style:i.style),this._mergeStyle(u,n.style)):l&&(u=i.style),u)if(o){var f=this.style;if(this.style=this.createStyle(l?{}:f),l)for(var c=xt(f),d=0;d<c.length;d++){var h=c[d];h in u&&(u[h]=u[h],this.style[h]=f[h])}for(var v=xt(u),d=0;d<v.length;d++){var h=v[d];this.style[h]=this.style[h]}this._transitionState(r,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var p=this.__inHover?h9:j1,d=0;d<p.length;d++){var h=p[d];n&&n[h]!=null?this[h]=n[h]:l&&i[h]!=null&&(this[h]=i[h])}},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(n.style=i),n},t.prototype._mergeStyle=function(r,n){return oe(r,n),r},t.prototype.getAnimationStyleProps=function(){return rh},t.initDefaultProps=function(){var r=t.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=!1,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=Ir|ml}(),t}(RA),yv=new tt(0,0,0,0),_v=new tt(0,0,0,0);function p9(e,t,r){return yv.copy(e.getBoundingRect()),e.transform&&yv.applyTransform(e.transform),_v.width=t,_v.height=r,!yv.intersect(_v)}const qu=v9;var Zr=Math.min,Qr=Math.max,bv=Math.sin,wv=Math.cos,ba=Math.PI*2,Cf=Ns(),Tf=Ns(),Mf=Ns();function K1(e,t,r,n,i,a){i[0]=Zr(e,r),i[1]=Zr(t,n),a[0]=Qr(e,r),a[1]=Qr(t,n)}var X1=[],Z1=[];function g9(e,t,r,n,i,a,o,s,l,u){var f=xA,c=Gt,d=f(e,r,i,o,X1);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<d;h++){var v=c(e,r,i,o,X1[h]);l[0]=Zr(v,l[0]),u[0]=Qr(v,u[0])}d=f(t,n,a,s,Z1);for(var h=0;h<d;h++){var p=c(t,n,a,s,Z1[h]);l[1]=Zr(p,l[1]),u[1]=Qr(p,u[1])}l[0]=Zr(e,l[0]),u[0]=Qr(e,u[0]),l[0]=Zr(o,l[0]),u[0]=Qr(o,u[0]),l[1]=Zr(t,l[1]),u[1]=Qr(t,u[1]),l[1]=Zr(s,l[1]),u[1]=Qr(s,u[1])}function m9(e,t,r,n,i,a,o,s){var l=CA,u=Qt,f=Qr(Zr(l(e,r,i),1),0),c=Qr(Zr(l(t,n,a),1),0),d=u(e,r,i,f),h=u(t,n,a,c);o[0]=Zr(e,i,d),o[1]=Zr(t,a,h),s[0]=Qr(e,i,d),s[1]=Qr(t,a,h)}function y9(e,t,r,n,i,a,o,s,l){var u=qo,f=jo,c=Math.abs(i-a);if(c%ba<1e-4&&c>1e-4){s[0]=e-r,s[1]=t-n,l[0]=e+r,l[1]=t+n;return}if(Cf[0]=wv(i)*r+e,Cf[1]=bv(i)*n+t,Tf[0]=wv(a)*r+e,Tf[1]=bv(a)*n+t,u(s,Cf,Tf),f(l,Cf,Tf),i=i%ba,i<0&&(i=i+ba),a=a%ba,a<0&&(a=a+ba),i>a&&!o?a+=ba:i<a&&o&&(i+=ba),o){var d=a;a=i,i=d}for(var h=0;h<a;h+=Math.PI/2)h>i&&(Mf[0]=wv(h)*r+e,Mf[1]=bv(h)*n+t,u(s,Mf,s),f(l,Mf,l))}var nt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},wa=[],xa=[],Dn=[],Di=[],In=[],Rn=[],xv=Math.min,Sv=Math.max,Sa=Math.cos,Ca=Math.sin,ni=Math.abs,Ig=Math.PI,Fi=Ig*2,Cv=typeof Float32Array<"u",Js=[];function Tv(e){var t=Math.round(e/Ig*1e8)/1e8;return t%2*Ig}function _9(e,t){var r=Tv(e[0]);r<0&&(r+=Fi);var n=r-e[0],i=e[1];i+=n,!t&&i-r>=Fi?i=r+Fi:t&&r-i>=Fi?i=r-Fi:!t&&r>i?i=r+(Fi-Tv(r-i)):t&&r<i&&(i=r-(Fi-Tv(i-r))),e[0]=r,e[1]=i}var b9=function(){function e(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(t,r,n){n=n||0,n>0&&(this._ux=ni(n/Jc/t)||0,this._uy=ni(n/Jc/r)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,r){return this._drawPendingPt(),this.addData(nt.M,t,r),this._ctx&&this._ctx.moveTo(t,r),this._x0=t,this._y0=r,this._xi=t,this._yi=r,this},e.prototype.lineTo=function(t,r){var n=ni(t-this._xi),i=ni(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(nt.L,t,r),this._ctx&&a&&this._ctx.lineTo(t,r),a)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,r,n,i,a,o){return this._drawPendingPt(),this.addData(nt.C,t,r,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(t,r,n,i,a,o),this._xi=a,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,r,n,i){return this._drawPendingPt(),this.addData(nt.Q,t,r,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,r,n,i),this._xi=n,this._yi=i,this},e.prototype.arc=function(t,r,n,i,a,o){this._drawPendingPt(),Js[0]=i,Js[1]=a,_9(Js,o),i=Js[0],a=Js[1];var s=a-i;return this.addData(nt.A,t,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,n,i,a,o),this._xi=Sa(a)*n+t,this._yi=Ca(a)*n+r,this},e.prototype.arcTo=function(t,r,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,n,i,a),this},e.prototype.rect=function(t,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,n,i),this.addData(nt.R,t,r,n,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(nt.Z);var t=this._ctx,r=this._x0,n=this._y0;return t&&t.closePath(),this._xi=r,this._yi=n,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){var r=t.length;!(this.data&&this.data.length===r)&&Cv&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=t[n];this._len=r},e.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var r=t.length,n=0,i=this._len,a=0;a<r;a++)n+=t[a].len();Cv&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(var a=0;a<r;a++)for(var o=t[a].data,s=0;s<o.length;s++)this.data[i++]=o[s];this._len=i},e.prototype.addData=function(t,r,n,i,a,o,s,l,u){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var c=0;c<arguments.length;c++)f[this._len++]=arguments[c]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],r=0;r<this._len;r++)t[r]=this.data[r];this.data=t}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,Cv&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){Dn[0]=Dn[1]=In[0]=In[1]=Number.MAX_VALUE,Di[0]=Di[1]=Rn[0]=Rn[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,i=0,a=0,o;for(o=0;o<this._len;){var s=t[o++],l=o===1;switch(l&&(r=t[o],n=t[o+1],i=r,a=n),s){case nt.M:r=i=t[o++],n=a=t[o++],In[0]=i,In[1]=a,Rn[0]=i,Rn[1]=a;break;case nt.L:K1(r,n,t[o],t[o+1],In,Rn),r=t[o++],n=t[o++];break;case nt.C:g9(r,n,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],In,Rn),r=t[o++],n=t[o++];break;case nt.Q:m9(r,n,t[o++],t[o++],t[o],t[o+1],In,Rn),r=t[o++],n=t[o++];break;case nt.A:var u=t[o++],f=t[o++],c=t[o++],d=t[o++],h=t[o++],v=t[o++]+h;o+=1;var p=!t[o++];l&&(i=Sa(h)*c+u,a=Ca(h)*d+f),y9(u,f,c,d,h,v,p,In,Rn),r=Sa(v)*c+u,n=Ca(v)*d+f;break;case nt.R:i=r=t[o++],a=n=t[o++];var g=t[o++],m=t[o++];K1(i,a,i+g,a+m,In,Rn);break;case nt.Z:r=i,n=a;break}qo(Dn,Dn,In),jo(Di,Di,Rn)}return o===0&&(Dn[0]=Dn[1]=Di[0]=Di[1]=0),new tt(Dn[0],Dn[1],Di[0]-Dn[0],Di[1]-Dn[1])},e.prototype._calculateLength=function(){var t=this.data,r=this._len,n=this._ux,i=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,c=0,d=0;d<r;){var h=t[d++],v=d===1;v&&(a=t[d],o=t[d+1],s=a,l=o);var p=-1;switch(h){case nt.M:a=s=t[d++],o=l=t[d++];break;case nt.L:{var g=t[d++],m=t[d++],y=g-a,_=m-o;(ni(y)>n||ni(_)>i||d===r-1)&&(p=Math.sqrt(y*y+_*_),a=g,o=m);break}case nt.C:{var b=t[d++],x=t[d++],g=t[d++],m=t[d++],w=t[d++],S=t[d++];p=FG(a,o,b,x,g,m,w,S,10),a=w,o=S;break}case nt.Q:{var b=t[d++],x=t[d++],g=t[d++],m=t[d++];p=HG(a,o,b,x,g,m,10),a=g,o=m;break}case nt.A:var C=t[d++],T=t[d++],E=t[d++],A=t[d++],M=t[d++],D=t[d++],O=D+M;d+=1,t[d++],v&&(s=Sa(M)*E+C,l=Ca(M)*A+T),p=Sv(E,A)*xv(Fi,Math.abs(D)),a=Sa(O)*E+C,o=Ca(O)*A+T;break;case nt.R:{s=a=t[d++],l=o=t[d++];var k=t[d++],F=t[d++];p=k*2+F*2;break}case nt.Z:{var y=s-a,_=l-o;p=Math.sqrt(y*y+_*_),a=s,o=l;break}}p>=0&&(u[c++]=p,f+=p)}return this._pathLen=f,f},e.prototype.rebuildPath=function(t,r){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,f,c,d,h=r<1,v,p,g=0,m=0,y,_=0,b,x;if(h&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,p=this._pathLen,y=r*p,!y))return;e:for(var w=0;w<o;){var S=n[w++],C=w===1;switch(C&&(u=n[w],f=n[w+1],s=u,l=f),S!==nt.L&&_>0&&(t.lineTo(b,x),_=0),S){case nt.M:s=u=n[w++],l=f=n[w++],t.moveTo(u,f);break;case nt.L:{c=n[w++],d=n[w++];var T=ni(c-u),E=ni(d-f);if(T>i||E>a){if(h){var A=v[m++];if(g+A>y){var M=(y-g)/A;t.lineTo(u*(1-M)+c*M,f*(1-M)+d*M);break e}g+=A}t.lineTo(c,d),u=c,f=d,_=0}else{var D=T*T+E*E;D>_&&(b=c,x=d,_=D)}break}case nt.C:{var O=n[w++],k=n[w++],F=n[w++],j=n[w++],B=n[w++],N=n[w++];if(h){var A=v[m++];if(g+A>y){var M=(y-g)/A;Xc(u,O,F,B,M,wa),Xc(f,k,j,N,M,xa),t.bezierCurveTo(wa[1],xa[1],wa[2],xa[2],wa[3],xa[3]);break e}g+=A}t.bezierCurveTo(O,k,F,j,B,N),u=B,f=N;break}case nt.Q:{var O=n[w++],k=n[w++],F=n[w++],j=n[w++];if(h){var A=v[m++];if(g+A>y){var M=(y-g)/A;Zc(u,O,F,M,wa),Zc(f,k,j,M,xa),t.quadraticCurveTo(wa[1],xa[1],wa[2],xa[2]);break e}g+=A}t.quadraticCurveTo(O,k,F,j),u=F,f=j;break}case nt.A:var U=n[w++],re=n[w++],ae=n[w++],me=n[w++],Me=n[w++],V=n[w++],J=n[w++],W=!n[w++],Y=ae>me?ae:me,le=ni(ae-me)>.001,he=Me+V,Q=!1;if(h){var A=v[m++];g+A>y&&(he=Me+V*(y-g)/A,Q=!0),g+=A}if(le&&t.ellipse?t.ellipse(U,re,ae,me,J,Me,he,W):t.arc(U,re,Y,Me,he,W),Q)break e;C&&(s=Sa(Me)*ae+U,l=Ca(Me)*me+re),u=Sa(he)*ae+U,f=Ca(he)*me+re;break;case nt.R:s=u=n[w],l=f=n[w+1],c=n[w++],d=n[w++];var P=n[w++],I=n[w++];if(h){var A=v[m++];if(g+A>y){var z=y-g;t.moveTo(c,d),t.lineTo(c+xv(z,P),d),z-=P,z>0&&t.lineTo(c+P,d+xv(z,I)),z-=I,z>0&&t.lineTo(c+Sv(P-z,0),d+I),z-=P,z>0&&t.lineTo(c,d+Sv(I-z,0));break e}g+=A}t.rect(c,d,P,I);break;case nt.Z:if(h){var A=v[m++];if(g+A>y){var M=(y-g)/A;t.lineTo(u*(1-M)+s*M,f*(1-M)+l*M);break e}g+=A}t.closePath(),u=s,f=l}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.CMD=nt,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();const ho=b9;function Do(e,t,r,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=e;if(o>t+s&&o>n+s||o<t-s&&o<n-s||a>e+s&&a>r+s||a<e-s&&a<r-s)return!1;if(e!==r)l=(t-n)/(e-r),u=(e*n-r*t)/(e-r);else return Math.abs(a-e)<=s/2;var f=l*a-o+u,c=f*f/(l*l+1);return c<=s/2*s/2}function w9(e,t,r,n,i,a,o,s,l,u,f){if(l===0)return!1;var c=l;if(f>t+c&&f>n+c&&f>a+c&&f>s+c||f<t-c&&f<n-c&&f<a-c&&f<s-c||u>e+c&&u>r+c&&u>i+c&&u>o+c||u<e-c&&u<r-c&&u<i-c&&u<o-c)return!1;var d=SA(e,t,r,n,i,a,o,s,u,f,null);return d<=c/2}function x9(e,t,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;if(l>t+u&&l>n+u&&l>a+u||l<t-u&&l<n-u&&l<a-u||s>e+u&&s>r+u&&s>i+u||s<e-u&&s<r-u&&s<i-u)return!1;var f=TA(e,t,r,n,i,a,s,l,null);return f<=u/2}var Q1=Math.PI*2;function Yi(e){return e%=Q1,e<0&&(e+=Q1),e}var el=Math.PI*2;function S9(e,t,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;s-=e,l-=t;var f=Math.sqrt(s*s+l*l);if(f-u>r||f+u<r)return!1;if(Math.abs(n-i)%el<1e-4)return!0;if(a){var c=n;n=Yi(i),i=Yi(c)}else n=Yi(n),i=Yi(i);n>i&&(i+=el);var d=Math.atan2(l,s);return d<0&&(d+=el),d>=n&&d<=i||d+el>=n&&d+el<=i}function Ta(e,t,r,n,i,a){if(a>t&&a>n||a<t&&a<n||n===t)return 0;var o=(a-t)/(n-t),s=n<t?1:-1;(o===1||o===0)&&(s=n<t?.5:-.5);var l=o*(r-e)+e;return l===i?1/0:l>i?s:0}var Ii=ho.CMD,Ma=Math.PI*2,C9=1e-4;function T9(e,t){return Math.abs(e-t)<C9}var ar=[-1,-1,-1],jr=[-1,-1];function M9(){var e=jr[0];jr[0]=jr[1],jr[1]=e}function A9(e,t,r,n,i,a,o,s,l,u){if(u>t&&u>n&&u>a&&u>s||u<t&&u<n&&u<a&&u<s)return 0;var f=wA(t,n,a,s,u,ar);if(f===0)return 0;for(var c=0,d=-1,h=void 0,v=void 0,p=0;p<f;p++){var g=ar[p],m=g===0||g===1?.5:1,y=Gt(e,r,i,o,g);y<l||(d<0&&(d=xA(t,n,a,s,jr),jr[1]<jr[0]&&d>1&&M9(),h=Gt(t,n,a,s,jr[0]),d>1&&(v=Gt(t,n,a,s,jr[1]))),d===2?g<jr[0]?c+=h<t?m:-m:g<jr[1]?c+=v<h?m:-m:c+=s<v?m:-m:g<jr[0]?c+=h<t?m:-m:c+=s<h?m:-m)}return c}function E9(e,t,r,n,i,a,o,s){if(s>t&&s>n&&s>a||s<t&&s<n&&s<a)return 0;var l=$G(t,n,a,s,ar);if(l===0)return 0;var u=CA(t,n,a);if(u>=0&&u<=1){for(var f=0,c=Qt(t,n,a,u),d=0;d<l;d++){var h=ar[d]===0||ar[d]===1?.5:1,v=Qt(e,r,i,ar[d]);v<o||(ar[d]<u?f+=c<t?h:-h:f+=a<c?h:-h)}return f}else{var h=ar[0]===0||ar[0]===1?.5:1,v=Qt(e,r,i,ar[0]);return v<o?0:a<t?h:-h}}function P9(e,t,r,n,i,a,o,s){if(s-=t,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);ar[0]=-l,ar[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=Ma-1e-4){n=0,i=Ma;var f=a?1:-1;return o>=ar[0]+e&&o<=ar[1]+e?f:0}if(n>i){var c=n;n=i,i=c}n<0&&(n+=Ma,i+=Ma);for(var d=0,h=0;h<2;h++){var v=ar[h];if(v+e>o){var p=Math.atan2(s,v),f=a?1:-1;p<0&&(p=Ma+p),(p>=n&&p<=i||p+Ma>=n&&p+Ma<=i)&&(p>Math.PI/2&&p<Math.PI*1.5&&(f=-f),d+=f)}}return d}function XA(e,t,r,n,i){for(var a=e.data,o=e.len(),s=0,l=0,u=0,f=0,c=0,d,h,v=0;v<o;){var p=a[v++],g=v===1;switch(p===Ii.M&&v>1&&(r||(s+=Ta(l,u,f,c,n,i))),g&&(l=a[v],u=a[v+1],f=l,c=u),p){case Ii.M:f=a[v++],c=a[v++],l=f,u=c;break;case Ii.L:if(r){if(Do(l,u,a[v],a[v+1],t,n,i))return!0}else s+=Ta(l,u,a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case Ii.C:if(r){if(w9(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],t,n,i))return!0}else s+=A9(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case Ii.Q:if(r){if(x9(l,u,a[v++],a[v++],a[v],a[v+1],t,n,i))return!0}else s+=E9(l,u,a[v++],a[v++],a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case Ii.A:var m=a[v++],y=a[v++],_=a[v++],b=a[v++],x=a[v++],w=a[v++];v+=1;var S=!!(1-a[v++]);d=Math.cos(x)*_+m,h=Math.sin(x)*b+y,g?(f=d,c=h):s+=Ta(l,u,d,h,n,i);var C=(n-m)*b/_+m;if(r){if(S9(m,y,b,x,x+w,S,t,C,i))return!0}else s+=P9(m,y,b,x,x+w,S,C,i);l=Math.cos(x+w)*_+m,u=Math.sin(x+w)*b+y;break;case Ii.R:f=l=a[v++],c=u=a[v++];var T=a[v++],E=a[v++];if(d=f+T,h=c+E,r){if(Do(f,c,d,c,t,n,i)||Do(d,c,d,h,t,n,i)||Do(d,h,f,h,t,n,i)||Do(f,h,f,c,t,n,i))return!0}else s+=Ta(d,c,d,h,n,i),s+=Ta(f,h,f,c,n,i);break;case Ii.Z:if(r){if(Do(l,u,f,c,t,n,i))return!0}else s+=Ta(l,u,f,c,n,i);l=f,u=c;break}}return!r&&!T9(u,c)&&(s+=Ta(l,u,f,c,n,i)||0),s!==0}function L9(e,t,r){return XA(e,0,!1,t,r)}function D9(e,t,r,n){return XA(e,t,!0,r,n)}var ZA=ft({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},no),I9={style:ft({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},rh.style)},Mv=mu.concat(["invisible","culling","z","z2","zlevel","parent"]),R9=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.update=function(){var r=this;e.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(l){r.buildPath(l,r.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s<Mv.length;++s)i[Mv[s]]=this[Mv[s]];i.__dirty|=Ir}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(r){var n=xt(r);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var a=0;a<n.length;a++){var o=n[a],s=r[o];o==="style"?this.style?oe(this.style,s):this.useStyle(s):o==="shape"?oe(this.shape,s):e.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!=="none"){if(Te(r)){var n=Qc(r,0);return n>.5?Mg:n>.2?fU:Ag}else if(r)return Ag}return Mg},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(Te(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Qc(r,0)<Tg;if(a===o)return n}},t.prototype.buildPath=function(r,n,i){},t.prototype.pathUpdated=function(){this.__dirty&=~Vo},t.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},t.prototype.createPathProxy=function(){this.path=new ho(!1)},t.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(n==null||n==="none"||!(r.lineWidth>0))},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,i=!r;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Vo)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||i){s.copy(r);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return r},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect(),o=this.style;if(r=i[0],n=i[1],a.contain(r,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),D9(s,l/u,r,n)))return!0}if(this.hasFill())return L9(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Vo,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate("shape",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):e.prototype.attrKV.call(this,r,n)},t.prototype.setShape=function(r,n){var i=this.shape;return i||(i=this.shape={}),typeof r=="string"?i[r]=n:oe(i,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Vo)},t.prototype.createStyle=function(r){return Zd(ZA,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=oe({},this.shape))},t.prototype._applyStateObj=function(r,n,i,a,o,s){e.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=oe({},i.shape),oe(u,n.shape)):(u=oe({},a?this.shape:i.shape),oe(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=oe({},this.shape);for(var f={},c=xt(u),d=0;d<c.length;d++){var h=c[d];typeof u[h]=="object"?this.shape[h]=u[h]:f[h]=u[h]}this._transitionState(r,{shape:f},s)}else this.shape=u,this.dirtyShape()},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(n.shape=i),n},t.prototype.getAnimationStyleProps=function(){return I9},t.prototype.isZeroArea=function(){return!1},t.extend=function(r){var n=function(a){pe(o,a);function o(s){var l=a.call(this,s)||this;return r.init&&r.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return Ze(r.style)},o.prototype.getDefaultShape=function(){return Ze(r.shape)},o}(t);for(var i in r)typeof r[i]=="function"&&(n.prototype[i]=r[i]);return n},t.initDefaultProps=function(){var r=t.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=Ir|ml|Vo}(),t}(qu);const ct=R9;var O9=ft({strokeFirst:!0,font:co,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},ZA),QA=function(e){pe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return n!=null&&n!=="none"&&r.lineWidth>0},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(r){return Zd(O9,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var n=r.text;n!=null?n+="":n="";var i=Fy(n,r.font,r.textAlign,r.textBaseline);if(i.x+=r.x||0,i.y+=r.y||0,this.hasStroke()){var a=r.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},t.initDefaultProps=function(){var r=t.prototype;r.dirtyRectTolerance=10}(),t}(qu);QA.prototype.type="tspan";const Rg=QA;var k9=ft({x:0,y:0},no),N9={style:ft({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},rh.style)};function B9(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var JA=function(e){pe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return Zd(k9,r)},t.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=B9(n.image)?n.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?a[r]:a[r]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return N9},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new tt(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(qu);JA.prototype.type="image";const Bs=JA;function F9(e,t){var r=t.x,n=t.y,i=t.width,a=t.height,o=t.r,s,l,u,f;i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var c;s+l>i&&(c=s+l,s*=i/c,l*=i/c),u+f>i&&(c=u+f,u*=i/c,f*=i/c),l+u>a&&(c=l+u,l*=a/c,u*=a/c),s+f>a&&(c=s+f,s*=a/c,f*=a/c),e.moveTo(r+s,n),e.lineTo(r+i-l,n),l!==0&&e.arc(r+i-l,n+l,l,-Math.PI/2,0),e.lineTo(r+i,n+a-u),u!==0&&e.arc(r+i-u,n+a-u,u,0,Math.PI/2),e.lineTo(r+f,n+a),f!==0&&e.arc(r+f,n+a-f,f,Math.PI/2,Math.PI),e.lineTo(r,n+s),s!==0&&e.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var Xo=Math.round;function e2(e,t,r){if(t){var n=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=n,e.x2=i,e.y1=a,e.y2=o;var s=r&&r.lineWidth;return s&&(Xo(n*2)===Xo(i*2)&&(e.x1=e.x2=Xa(n,s,!0)),Xo(a*2)===Xo(o*2)&&(e.y1=e.y2=Xa(a,s,!0))),e}}function t2(e,t,r){if(t){var n=t.x,i=t.y,a=t.width,o=t.height;e.x=n,e.y=i,e.width=a,e.height=o;var s=r&&r.lineWidth;return s&&(e.x=Xa(n,s,!0),e.y=Xa(i,s,!0),e.width=Math.max(Xa(n+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Xa(i+o,s,!1)-e.y,o===0?0:1)),e}}function Xa(e,t,r){if(!t)return e;var n=Xo(e*2);return(n+Xo(t))%2===0?n/2:(n+(r?1:-1))/2}var $9=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),H9={},r2=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new $9},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=t2(H9,n,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?F9(r,n):r.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(ct);r2.prototype.type="rect";const Nt=r2;var J1={fill:"#000"},ew=2,z9={style:ft({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},rh.style)},n2=function(e){pe(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=J1,n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var n=this._children[r];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(r){var n=this.innerTransformable;return n?n.getLocalTransform(r):e.prototype.getLocalTransform.call(this,r)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,Y9(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=r},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new tt(0,0,0,0),n=this._children,i=[],a=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(i);u?(r.copy(l),r.applyTransform(u),a=a||r.clone(),a.union(r)):(a=a||l.clone(),a.union(l))}this._rect=a||r}return this._rect},t.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||J1},t.prototype.setTextContent=function(r){},t.prototype._mergeStyle=function(r,n){if(!n)return r;var i=n.rich,a=r.rich||i&&{};return oe(r,n),i&&a?(this._mergeRich(a,i),r.rich=a):a&&(r.rich=a),r},t.prototype._mergeRich=function(r,n){for(var i=xt(n),a=0;a<i.length;a++){var o=i[a];r[o]=r[o]||{},oe(r[o],n[o])}},t.prototype.getAnimationStyleProps=function(){return z9},t.prototype._getOrCreateChild=function(r){var n=this._children[this._childCursor];return(!n||!(n instanceof r))&&(n=new r),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},t.prototype._updatePlainTexts=function(){var r=this.style,n=r.font||co,i=r.padding,a=sw(r),o=o9(a,r),s=Av(r),l=!!r.backgroundColor,u=o.outerHeight,f=o.outerWidth,c=o.contentWidth,d=o.lines,h=o.lineHeight,v=this._defaultStyle,p=r.x||0,g=r.y||0,m=r.align||v.align||"left",y=r.verticalAlign||v.verticalAlign||"top",_=p,b=Go(g,o.contentHeight,y);if(s||i){var x=_l(p,f,m),w=Go(g,u,y);s&&this._renderBackground(r,r,x,w,f,u)}b+=h/2,i&&(_=ow(p,m,i),y==="top"?b+=i[0]:y==="bottom"&&(b-=i[2]));for(var S=0,C=!1,T=aw("fill"in r?r.fill:(C=!0,v.fill)),E=iw("stroke"in r?r.stroke:!l&&(!v.autoStroke||C)?(S=ew,v.stroke):null),A=r.textShadowBlur>0,M=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),D=o.calculatedLineHeight,O=0;O<d.length;O++){var k=this._getOrCreateChild(Rg),F=k.createStyle();k.useStyle(F),F.text=d[O],F.x=_,F.y=b,m&&(F.textAlign=m),F.textBaseline="middle",F.opacity=r.opacity,F.strokeFirst=!0,A&&(F.shadowBlur=r.textShadowBlur||0,F.shadowColor=r.textShadowColor||"transparent",F.shadowOffsetX=r.textShadowOffsetX||0,F.shadowOffsetY=r.textShadowOffsetY||0),F.stroke=E,F.fill=T,E&&(F.lineWidth=r.lineWidth||S,F.lineDash=r.lineDash,F.lineDashOffset=r.lineDashOffset||0),F.font=n,rw(F,r),b+=h,M&&k.setBoundingRect(new tt(_l(F.x,r.width,F.textAlign),Go(F.y,D,F.textBaseline),c,D))}},t.prototype._updateRichTexts=function(){var r=this.style,n=sw(r),i=u9(n,r),a=i.width,o=i.outerWidth,s=i.outerHeight,l=r.padding,u=r.x||0,f=r.y||0,c=this._defaultStyle,d=r.align||c.align,h=r.verticalAlign||c.verticalAlign,v=_l(u,o,d),p=Go(f,s,h),g=v,m=p;l&&(g+=l[3],m+=l[0]);var y=g+a;Av(r)&&this._renderBackground(r,r,v,p,o,s);for(var _=!!r.backgroundColor,b=0;b<i.lines.length;b++){for(var x=i.lines[b],w=x.tokens,S=w.length,C=x.lineHeight,T=x.width,E=0,A=g,M=y,D=S-1,O=void 0;E<S&&(O=w[E],!O.align||O.align==="left");)this._placeToken(O,r,C,m,A,"left",_),T-=O.width,A+=O.width,E++;for(;D>=0&&(O=w[D],O.align==="right");)this._placeToken(O,r,C,m,M,"right",_),T-=O.width,M-=O.width,D--;for(A+=(a-(A-g)-(y-M)-T)/2;E<=D;)O=w[E],this._placeToken(O,r,C,m,A+O.width/2,"center",_),A+=O.width,E++;m+=C}},t.prototype._placeToken=function(r,n,i,a,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var f=r.verticalAlign,c=a+i/2;f==="top"?c=a+r.height/2:f==="bottom"&&(c=a+i-r.height/2);var d=!r.isLineHolder&&Av(u);d&&this._renderBackground(u,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,c-r.height/2,r.width,r.height);var h=!!u.backgroundColor,v=r.textPadding;v&&(o=ow(o,s,v),c-=r.height/2-v[0]-r.innerHeight/2);var p=this._getOrCreateChild(Rg),g=p.createStyle();p.useStyle(g);var m=this._defaultStyle,y=!1,_=0,b=aw("fill"in u?u.fill:"fill"in n?n.fill:(y=!0,m.fill)),x=iw("stroke"in u?u.stroke:"stroke"in n?n.stroke:!h&&!l&&(!m.autoStroke||y)?(_=ew,m.stroke):null),w=u.textShadowBlur>0||n.textShadowBlur>0;g.text=r.text,g.x=o,g.y=c,w&&(g.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,g.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=r.font||co,g.opacity=Bl(u.opacity,n.opacity,1),rw(g,u),x&&(g.lineWidth=Bl(u.lineWidth,n.lineWidth,_),g.lineDash=je(u.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=x),b&&(g.fill=b);var S=r.contentWidth,C=r.contentHeight;p.setBoundingRect(new tt(_l(g.x,S,g.textAlign),Go(g.y,C,g.textBaseline),S,C))},t.prototype._renderBackground=function(r,n,i,a,o,s){var l=r.backgroundColor,u=r.borderWidth,f=r.borderColor,c=l&&l.image,d=l&&!c,h=r.borderRadius,v=this,p,g;if(d||r.lineHeight||u&&f){p=this._getOrCreateChild(Nt),p.useStyle(p.createStyle()),p.style.fill=null;var m=p.shape;m.x=i,m.y=a,m.width=o,m.height=s,m.r=h,p.dirtyShape()}if(d){var y=p.style;y.fill=l||null,y.fillOpacity=je(r.fillOpacity,1)}else if(c){g=this._getOrCreateChild(Bs),g.onload=function(){v.dirtyStyle()};var _=g.style;_.image=l.image,_.x=i,_.y=a,_.width=o,_.height=s}if(u&&f){var y=p.style;y.lineWidth=u,y.stroke=f,y.strokeOpacity=je(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var b=(p||g).style;b.shadowBlur=r.shadowBlur||0,b.shadowColor=r.shadowColor||"transparent",b.shadowOffsetX=r.shadowOffsetX||0,b.shadowOffsetY=r.shadowOffsetY||0,b.opacity=Bl(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return U9(r)&&(n=[r.fontStyle,r.fontWeight,G9(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&zn(n)||r.textFont||r.font},t}(qu),W9={left:!0,right:1,center:1},V9={top:1,bottom:1,middle:1},tw=["fontStyle","fontWeight","fontSize","fontFamily"];function G9(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?Ey+"px":e+"px"}function rw(e,t){for(var r=0;r<tw.length;r++){var n=tw[r],i=t[n];i!=null&&(e[n]=i)}}function U9(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function Y9(e){return nw(e),R(e.rich,nw),e}function nw(e){if(e){e.font=n2.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||W9[t]?t:"left";var r=e.verticalAlign;r==="center"&&(r="middle"),e.verticalAlign=r==null||V9[r]?r:"top";var n=e.padding;n&&(e.padding=sA(e.padding))}}function iw(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function aw(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function ow(e,t,r){return t==="right"?e-r[1]:t==="center"?e+r[3]/2-r[1]/2:e+r[3]}function sw(e){var t=e.text;return t!=null&&(t+=""),t}function Av(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}const fr=n2;var ut=Tt(),q9=function(e,t,r,n){if(n){var i=ut(n);i.dataIndex=r,i.dataType=t,i.seriesIndex=e,n.type==="group"&&n.traverse(function(a){var o=ut(a);o.seriesIndex=e,o.dataIndex=r,o.dataType=t})}},lw=1,uw={},i2=Tt(),Uy=Tt(),a2=0,Yy=1,qy=2,jn=["emphasis","blur","select"],nd=["normal","emphasis","blur","select"],j9=10,K9=9,io="highlight",Mc="downplay",Wl="select",Ac="unselect",Vl="toggleSelect";function Io(e){return e!=null&&e!=="none"}var fw=new Vu(100);function cw(e){if(Te(e)){var t=fw.get(e);return t||(t=L1(e,-.1),fw.put(e,t)),t}else if(Xd(e)){var r=oe({},e);return r.colorStops=Oe(e.colorStops,function(n){return{offset:n.offset,color:L1(n.color,-.1)}}),r}return e}function nh(e,t,r){e.onHoverStateChange&&(e.hoverState||0)!==r&&e.onHoverStateChange(t),e.hoverState=r}function o2(e){nh(e,"emphasis",qy)}function s2(e){e.hoverState===qy&&nh(e,"normal",a2)}function jy(e){nh(e,"blur",Yy)}function l2(e){e.hoverState===Yy&&nh(e,"normal",a2)}function X9(e){e.selected=!0}function Z9(e){e.selected=!1}function dw(e,t,r){t(e,r)}function Ci(e,t,r){dw(e,t,r),e.isGroup&&e.traverse(function(n){dw(n,t,r)})}function Q9(e,t,r,n){for(var i=e.style,a={},o=0;o<t.length;o++){var s=t[o],l=i[s];a[s]=l??(n&&n[s])}for(var o=0;o<e.animators.length;o++){var u=e.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(r)<0&&u.targetName==="style"&&u.saveTo(a,t)}return a}function J9(e,t,r,n){var i=r&&it(r,"select")>=0,a=!1;if(e instanceof ct){var o=i2(e),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(Io(s)||Io(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=oe({},n),u=oe({},u),u.fill=s):!Io(u.fill)&&Io(s)?(a=!0,n=oe({},n),u=oe({},u),u.fill=cw(s)):!Io(u.stroke)&&Io(l)&&(a||(n=oe({},n),u=oe({},u)),u.stroke=cw(l)),n.style=u}}if(n&&n.z2==null){a||(n=oe({},n));var f=e.z2EmphasisLift;n.z2=e.z2+(f??j9)}return n}function eY(e,t,r){if(r&&r.z2==null){r=oe({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??K9)}return r}function tY(e,t,r){var n=it(e.currentStates,t)>=0,i=e.style.opacity,a=n?null:Q9(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=oe({},r),o=oe({opacity:n?i:a.opacity*.1},o),r.style=o),r}function Ev(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return J9(this,e,t,r);if(e==="blur")return tY(this,e,r);if(e==="select")return eY(this,e,r)}return r}function rY(e){e.stateProxy=Ev;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=Ev),r&&(r.stateProxy=Ev)}function hw(e,t){!d2(e,t)&&!e.__highByOuter&&Ci(e,o2)}function vw(e,t){!d2(e,t)&&!e.__highByOuter&&Ci(e,s2)}function Og(e,t){e.__highByOuter|=1<<(t||0),Ci(e,o2)}function kg(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Ci(e,s2)}function nY(e){Ci(e,jy)}function u2(e){Ci(e,l2)}function f2(e){Ci(e,X9)}function c2(e){Ci(e,Z9)}function d2(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function h2(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(i,a){var o=Uy(a),s=i==="series",l=s?e.getViewOfSeriesModel(a):e.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){l2(u)}),s&&r.push(a)),o.isBlured=!1}),R(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,t)})}function Ng(e,t,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(u,f){for(var c=0;c<f.length;c++){var d=u.getItemGraphicEl(f[c]);d&&u2(d)}}if(e!=null&&!(!t||t==="none")){var o=i.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(u){var f=o===u,c=u.coordinateSystem;c&&c.master&&(c=c.master);var d=c&&s?c===s:f;if(!(r==="series"&&!f||r==="coordinateSystem"&&!d||t==="series"&&f)){var h=n.getViewOfSeriesModel(u);if(h.group.traverse(function(g){jy(g)}),Tr(t))a(u.getData(),t);else if(De(t))for(var v=xt(t),p=0;p<v.length;p++)a(u.getData(v[p]),t[v[p]]);l.push(u),Uy(u).isBlured=!0}}),i.eachComponent(function(u,f){if(u!=="series"){var c=n.getViewOfComponentModel(f);c&&c.toggleBlurSeries&&c.toggleBlurSeries(l,!0,i)}})}}function Bg(e,t,r){if(!(e==null||t==null)){var n=r.getModel().getComponent(e,t);if(n){Uy(n).isBlured=!0;var i=r.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){jy(a)})}}}function iY(e,t,r){var n=e.seriesIndex,i=e.getData(t.dataType);if(i){var a=Uu(i,t);a=(ge(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),l=0;!o&&l<s;)o=i.getItemGraphicEl(l++);if(o){var u=ut(o);Ng(n,u.focus,u.blurScope,r)}else{var f=e.get(["emphasis","focus"]),c=e.get(["emphasis","blurScope"]);f!=null&&Ng(n,f,c,r)}}}function Ky(e,t,r,n){var i={focusSelf:!1,dispatchers:null};if(e==null||e==="series"||t==null||r==null)return i;var a=n.getModel().getComponent(e,t);if(!a)return i;var o=n.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(r),l,u=0;u<s.length;u++)if(ut(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function aY(e,t,r){var n=ut(e),i=Ky(n.componentMainType,n.componentIndex,n.componentHighDownName,r),a=i.dispatchers,o=i.focusSelf;a?(o&&Bg(n.componentMainType,n.componentIndex,r),R(a,function(s){return hw(s,t)})):(Ng(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&Bg(n.componentMainType,n.componentIndex,r),hw(e,t))}function oY(e,t,r){h2(r);var n=ut(e),i=Ky(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;i?R(i,function(a){return vw(a,t)}):vw(e,t)}function sY(e,t,r){if(Hg(t)){var n=t.dataType,i=e.getData(n),a=Uu(i,t);ge(a)||(a=[a]),e[t.type===Vl?"toggleSelect":t.type===Wl?"select":"unselect"](a,n)}}function pw(e){var t=e.getAllData();R(t,function(r){var n=r.data,i=r.type;n.eachItemGraphicEl(function(a,o){e.isSelected(o,i)?f2(a):c2(a)})})}function lY(e){var t=[];return e.eachSeries(function(r){var n=r.getAllData();R(n,function(i){i.data;var a=i.type,o=r.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:r.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function Fg(e,t,r){g2(e,!0),Ci(e,rY),fY(e,t,r)}function uY(e){g2(e,!1)}function v2(e,t,r,n){n?uY(e):Fg(e,t,r)}function fY(e,t,r){var n=ut(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var gw=["emphasis","blur","select"],cY={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function p2(e,t,r,n){r=r||"itemStyle";for(var i=0;i<gw.length;i++){var a=gw[i],o=t.getModel([a,r]),s=e.ensureState(a);s.style=n?n(o):o[cY[r]]()}}function g2(e,t){var r=t===!1,n=e;e.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function $g(e){return!!(e&&e.__highDownDispatcher)}function dY(e){var t=uw[e];return t==null&&lw<=32&&(t=uw[e]=lw++),t}function Hg(e){var t=e.type;return t===Wl||t===Ac||t===Vl}function mw(e){var t=e.type;return t===io||t===Mc}function hY(e){var t=i2(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var r=e.states.select||{};t.selectFill=r.style&&r.style.fill||null,t.selectStroke=r.style&&r.style.stroke||null}var Ro=ho.CMD,vY=[[],[],[]],yw=Math.sqrt,pY=Math.atan2;function gY(e,t){if(t){var r=e.data,n=e.len(),i,a,o,s,l,u,f=Ro.M,c=Ro.C,d=Ro.L,h=Ro.R,v=Ro.A,p=Ro.Q;for(o=0,s=0;o<n;){switch(i=r[o++],s=o,a=0,i){case f:a=1;break;case d:a=1;break;case c:a=3;break;case p:a=2;break;case v:var g=t[4],m=t[5],y=yw(t[0]*t[0]+t[1]*t[1]),_=yw(t[2]*t[2]+t[3]*t[3]),b=pY(-t[1]/_,t[0]/y);r[o]*=y,r[o++]+=g,r[o]*=_,r[o++]+=m,r[o++]*=y,r[o++]*=_,r[o++]+=b,r[o++]+=b,o+=2,s=o;break;case h:u[0]=r[o++],u[1]=r[o++],rn(u,u,t),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],rn(u,u,t),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<a;l++){var x=vY[l];x[0]=r[o++],x[1]=r[o++],rn(x,x,t),r[s++]=x[0],r[s++]=x[1]}}e.increaseVersion()}}var Pv=Math.sqrt,Af=Math.sin,Ef=Math.cos,tl=Math.PI;function _w(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function zg(e,t){return(e[0]*t[0]+e[1]*t[1])/(_w(e)*_w(t))}function bw(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(zg(e,t))}function ww(e,t,r,n,i,a,o,s,l,u,f){var c=l*(tl/180),d=Ef(c)*(e-r)/2+Af(c)*(t-n)/2,h=-1*Af(c)*(e-r)/2+Ef(c)*(t-n)/2,v=d*d/(o*o)+h*h/(s*s);v>1&&(o*=Pv(v),s*=Pv(v));var p=(i===a?-1:1)*Pv((o*o*(s*s)-o*o*(h*h)-s*s*(d*d))/(o*o*(h*h)+s*s*(d*d)))||0,g=p*o*h/s,m=p*-s*d/o,y=(e+r)/2+Ef(c)*g-Af(c)*m,_=(t+n)/2+Af(c)*g+Ef(c)*m,b=bw([1,0],[(d-g)/o,(h-m)/s]),x=[(d-g)/o,(h-m)/s],w=[(-1*d-g)/o,(-1*h-m)/s],S=bw(x,w);if(zg(x,w)<=-1&&(S=tl),zg(x,w)>=1&&(S=0),S<0){var C=Math.round(S/tl*1e6)/1e6;S=tl*2+C%2*tl}f.addData(u,y,_,o,s,b,S,c,a)}var mY=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,yY=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function _Y(e){var t=new ho;if(!e)return t;var r=0,n=0,i=r,a=n,o,s=ho.CMD,l=e.match(mY);if(!l)return t;for(var u=0;u<l.length;u++){for(var f=l[u],c=f.charAt(0),d=void 0,h=f.match(yY)||[],v=h.length,p=0;p<v;p++)h[p]=parseFloat(h[p]);for(var g=0;g<v;){var m=void 0,y=void 0,_=void 0,b=void 0,x=void 0,w=void 0,S=void 0,C=r,T=n,E=void 0,A=void 0;switch(c){case"l":r+=h[g++],n+=h[g++],d=s.L,t.addData(d,r,n);break;case"L":r=h[g++],n=h[g++],d=s.L,t.addData(d,r,n);break;case"m":r+=h[g++],n+=h[g++],d=s.M,t.addData(d,r,n),i=r,a=n,c="l";break;case"M":r=h[g++],n=h[g++],d=s.M,t.addData(d,r,n),i=r,a=n,c="L";break;case"h":r+=h[g++],d=s.L,t.addData(d,r,n);break;case"H":r=h[g++],d=s.L,t.addData(d,r,n);break;case"v":n+=h[g++],d=s.L,t.addData(d,r,n);break;case"V":n=h[g++],d=s.L,t.addData(d,r,n);break;case"C":d=s.C,t.addData(d,h[g++],h[g++],h[g++],h[g++],h[g++],h[g++]),r=h[g-2],n=h[g-1];break;case"c":d=s.C,t.addData(d,h[g++]+r,h[g++]+n,h[g++]+r,h[g++]+n,h[g++]+r,h[g++]+n),r+=h[g-2],n+=h[g-1];break;case"S":m=r,y=n,E=t.len(),A=t.data,o===s.C&&(m+=r-A[E-4],y+=n-A[E-3]),d=s.C,C=h[g++],T=h[g++],r=h[g++],n=h[g++],t.addData(d,m,y,C,T,r,n);break;case"s":m=r,y=n,E=t.len(),A=t.data,o===s.C&&(m+=r-A[E-4],y+=n-A[E-3]),d=s.C,C=r+h[g++],T=n+h[g++],r+=h[g++],n+=h[g++],t.addData(d,m,y,C,T,r,n);break;case"Q":C=h[g++],T=h[g++],r=h[g++],n=h[g++],d=s.Q,t.addData(d,C,T,r,n);break;case"q":C=h[g++]+r,T=h[g++]+n,r+=h[g++],n+=h[g++],d=s.Q,t.addData(d,C,T,r,n);break;case"T":m=r,y=n,E=t.len(),A=t.data,o===s.Q&&(m+=r-A[E-4],y+=n-A[E-3]),r=h[g++],n=h[g++],d=s.Q,t.addData(d,m,y,r,n);break;case"t":m=r,y=n,E=t.len(),A=t.data,o===s.Q&&(m+=r-A[E-4],y+=n-A[E-3]),r+=h[g++],n+=h[g++],d=s.Q,t.addData(d,m,y,r,n);break;case"A":_=h[g++],b=h[g++],x=h[g++],w=h[g++],S=h[g++],C=r,T=n,r=h[g++],n=h[g++],d=s.A,ww(C,T,r,n,w,S,_,b,x,d,t);break;case"a":_=h[g++],b=h[g++],x=h[g++],w=h[g++],S=h[g++],C=r,T=n,r+=h[g++],n+=h[g++],d=s.A,ww(C,T,r,n,w,S,_,b,x,d,t);break}}(c==="z"||c==="Z")&&(d=s.Z,t.addData(d),r=i,n=a),o=d}return t.toStatic(),t}var m2=function(e){pe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(r){},t}(ct);function y2(e){return e.setData!=null}function _2(e,t){var r=_Y(e),n=oe({},t);return n.buildPath=function(i){if(y2(i)){i.setData(r.data);var a=i.getContext();a&&i.rebuildPath(a,1)}else{var a=i;r.rebuildPath(a,1)}},n.applyTransform=function(i){gY(r,i),this.dirtyShape()},n}function bY(e,t){return new m2(_2(e,t))}function wY(e,t){var r=_2(e,t),n=function(i){pe(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a}(m2);return n}function xY(e,t){for(var r=[],n=e.length,i=0;i<n;i++){var a=e[i];r.push(a.getUpdatedPathProxy(!0))}var o=new ct(t);return o.createPathProxy(),o.buildPath=function(s){if(y2(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var SY=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),b2=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new SY},t.prototype.buildPath=function(r,n){r.moveTo(n.cx+n.r,n.cy),r.arc(n.cx,n.cy,n.r,0,Math.PI*2)},t}(ct);b2.prototype.type="circle";const Xy=b2;var CY=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),w2=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new CY},t.prototype.buildPath=function(r,n){var i=.5522848,a=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*i,f=l*i;r.moveTo(a-s,o),r.bezierCurveTo(a-s,o-f,a-u,o-l,a,o-l),r.bezierCurveTo(a+u,o-l,a+s,o-f,a+s,o),r.bezierCurveTo(a+s,o+f,a+u,o+l,a,o+l),r.bezierCurveTo(a-u,o+l,a-s,o+f,a-s,o),r.closePath()},t}(ct);w2.prototype.type="ellipse";const x2=w2;var S2=Math.PI,Lv=S2*2,Aa=Math.sin,Oo=Math.cos,TY=Math.acos,Xt=Math.atan2,xw=Math.abs,Gl=Math.sqrt,bl=Math.max,On=Math.min,hn=1e-4;function MY(e,t,r,n,i,a,o,s){var l=r-e,u=n-t,f=o-i,c=s-a,d=c*l-f*u;if(!(d*d<hn))return d=(f*(t-a)-c*(e-i))/d,[e+d*l,t+d*u]}function Pf(e,t,r,n,i,a,o){var s=e-r,l=t-n,u=(o?a:-a)/Gl(s*s+l*l),f=u*l,c=-u*s,d=e+f,h=t+c,v=r+f,p=n+c,g=(d+v)/2,m=(h+p)/2,y=v-d,_=p-h,b=y*y+_*_,x=i-a,w=d*p-v*h,S=(_<0?-1:1)*Gl(bl(0,x*x*b-w*w)),C=(w*_-y*S)/b,T=(-w*y-_*S)/b,E=(w*_+y*S)/b,A=(-w*y+_*S)/b,M=C-g,D=T-m,O=E-g,k=A-m;return M*M+D*D>O*O+k*k&&(C=E,T=A),{cx:C,cy:T,x0:-f,y0:-c,x1:C*(i/x-1),y1:T*(i/x-1)}}function AY(e){var t;if(ge(e)){var r=e.length;if(!r)return e;r===1?t=[e[0],e[0],0,0]:r===2?t=[e[0],e[0],e[1],e[1]]:r===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function EY(e,t){var r,n=bl(t.r,0),i=bl(t.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var f=t.cx,c=t.cy,d=!!t.clockwise,h=xw(u-l),v=h>Lv&&h%Lv;if(v>hn&&(h=v),!(n>hn))e.moveTo(f,c);else if(h>Lv-hn)e.moveTo(f+n*Oo(l),c+n*Aa(l)),e.arc(f,c,n,l,u,!d),i>hn&&(e.moveTo(f+i*Oo(u),c+i*Aa(u)),e.arc(f,c,i,u,l,d));else{var p=void 0,g=void 0,m=void 0,y=void 0,_=void 0,b=void 0,x=void 0,w=void 0,S=void 0,C=void 0,T=void 0,E=void 0,A=void 0,M=void 0,D=void 0,O=void 0,k=n*Oo(l),F=n*Aa(l),j=i*Oo(u),B=i*Aa(u),N=h>hn;if(N){var U=t.cornerRadius;U&&(r=AY(U),p=r[0],g=r[1],m=r[2],y=r[3]);var re=xw(n-i)/2;if(_=On(re,m),b=On(re,y),x=On(re,p),w=On(re,g),T=S=bl(_,b),E=C=bl(x,w),(S>hn||C>hn)&&(A=n*Oo(u),M=n*Aa(u),D=i*Oo(l),O=i*Aa(l),h<S2)){var ae=MY(k,F,D,O,A,M,j,B);if(ae){var me=k-ae[0],Me=F-ae[1],V=A-ae[0],J=M-ae[1],W=1/Aa(TY((me*V+Me*J)/(Gl(me*me+Me*Me)*Gl(V*V+J*J)))/2),Y=Gl(ae[0]*ae[0]+ae[1]*ae[1]);T=On(S,(n-Y)/(W+1)),E=On(C,(i-Y)/(W-1))}}}if(!N)e.moveTo(f+k,c+F);else if(T>hn){var le=On(m,T),he=On(y,T),Q=Pf(D,O,k,F,n,le,d),P=Pf(A,M,j,B,n,he,d);e.moveTo(f+Q.cx+Q.x0,c+Q.cy+Q.y0),T<S&&le===he?e.arc(f+Q.cx,c+Q.cy,T,Xt(Q.y0,Q.x0),Xt(P.y0,P.x0),!d):(le>0&&e.arc(f+Q.cx,c+Q.cy,le,Xt(Q.y0,Q.x0),Xt(Q.y1,Q.x1),!d),e.arc(f,c,n,Xt(Q.cy+Q.y1,Q.cx+Q.x1),Xt(P.cy+P.y1,P.cx+P.x1),!d),he>0&&e.arc(f+P.cx,c+P.cy,he,Xt(P.y1,P.x1),Xt(P.y0,P.x0),!d))}else e.moveTo(f+k,c+F),e.arc(f,c,n,l,u,!d);if(!(i>hn)||!N)e.lineTo(f+j,c+B);else if(E>hn){var le=On(p,E),he=On(g,E),Q=Pf(j,B,A,M,i,-he,d),P=Pf(k,F,D,O,i,-le,d);e.lineTo(f+Q.cx+Q.x0,c+Q.cy+Q.y0),E<C&&le===he?e.arc(f+Q.cx,c+Q.cy,E,Xt(Q.y0,Q.x0),Xt(P.y0,P.x0),!d):(he>0&&e.arc(f+Q.cx,c+Q.cy,he,Xt(Q.y0,Q.x0),Xt(Q.y1,Q.x1),!d),e.arc(f,c,i,Xt(Q.cy+Q.y1,Q.cx+Q.x1),Xt(P.cy+P.y1,P.cx+P.x1),d),le>0&&e.arc(f+P.cx,c+P.cy,le,Xt(P.y1,P.x1),Xt(P.y0,P.x0),!d))}else e.lineTo(f+j,c+B),e.arc(f,c,i,u,l,d)}e.closePath()}}}var PY=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e}(),C2=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new PY},t.prototype.buildPath=function(r,n){EY(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(ct);C2.prototype.type="sector";const wo=C2;var LY=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),T2=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new LY},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.PI*2;r.moveTo(i+n.r,a),r.arc(i,a,n.r,0,o,!1),r.moveTo(i+n.r0,a),r.arc(i,a,n.r0,0,o,!0)},t}(ct);T2.prototype.type="ring";const M2=T2;function DY(e,t,r,n){var i=[],a=[],o=[],s=[],l,u,f,c;if(n){f=[1/0,1/0],c=[-1/0,-1/0];for(var d=0,h=e.length;d<h;d++)qo(f,f,e[d]),jo(c,c,e[d]);qo(f,f,n[0]),jo(c,c,n[1])}for(var d=0,h=e.length;d<h;d++){var v=e[d];if(r)l=e[d?d-1:h-1],u=e[(d+1)%h];else if(d===0||d===h-1){i.push(tG(e[d]));continue}else l=e[d-1],u=e[d+1];rG(a,u,l),qh(a,a,t);var p=dg(v,l),g=dg(v,u),m=p+g;m!==0&&(p/=m,g/=m),qh(o,a,-p),qh(s,a,g);var y=v1([],v,o),_=v1([],v,s);n&&(jo(y,y,f),qo(y,y,c),jo(_,_,f),qo(_,_,c)),i.push(y),i.push(_)}return r&&i.push(i.shift()),i}function A2(e,t,r){var n=t.smooth,i=t.points;if(i&&i.length>=2){if(n){var a=DY(i,n,r,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(r?o:o-1);s++){var l=a[s*2],u=a[s*2+1],f=i[(s+1)%o];e.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,c=i.length;s<c;s++)e.lineTo(i[s][0],i[s][1])}r&&e.closePath()}}var IY=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),E2=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new IY},t.prototype.buildPath=function(r,n){A2(r,n,!0)},t}(ct);E2.prototype.type="polygon";const P2=E2;var RY=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),L2=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new RY},t.prototype.buildPath=function(r,n){A2(r,n,!1)},t}(ct);L2.prototype.type="polyline";const ih=L2;var OY={},kY=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),D2=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new kY},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=e2(OY,n,this.style);i=l.x1,a=l.y1,o=l.x2,s=l.y2}else i=n.x1,a=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(r.moveTo(i,a),u<1&&(o=i*(1-u)+o*u,s=a*(1-u)+s*u),r.lineTo(o,s))},t.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},t}(ct);D2.prototype.type="line";const vo=D2;var dr=[],NY=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e}();function Sw(e,t,r){var n=e.cpx2,i=e.cpy2;return n!=null||i!=null?[(r?T1:Gt)(e.x1,e.cpx1,e.cpx2,e.x2,t),(r?T1:Gt)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(r?M1:Qt)(e.x1,e.cpx1,e.x2,t),(r?M1:Qt)(e.y1,e.cpy1,e.y2,t)]}var I2=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new NY},t.prototype.buildPath=function(r,n){var i=n.x1,a=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,f=n.cpx2,c=n.cpy2,d=n.percent;d!==0&&(r.moveTo(i,a),f==null||c==null?(d<1&&(Zc(i,l,o,d,dr),l=dr[1],o=dr[2],Zc(a,u,s,d,dr),u=dr[1],s=dr[2]),r.quadraticCurveTo(l,u,o,s)):(d<1&&(Xc(i,l,f,o,d,dr),l=dr[1],f=dr[2],o=dr[3],Xc(a,u,c,s,d,dr),u=dr[1],c=dr[2],s=dr[3]),r.bezierCurveTo(l,u,f,c,o,s)))},t.prototype.pointAt=function(r){return Sw(this.shape,r,!1)},t.prototype.tangentAt=function(r){var n=Sw(this.shape,r,!0);return aG(n,n)},t}(ct);I2.prototype.type="bezier-curve";const R2=I2;var BY=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),O2=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new BY},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,f=Math.cos(s),c=Math.sin(s);r.moveTo(f*o+i,c*o+a),r.arc(i,a,o,s,l,!u)},t}(ct);O2.prototype.type="arc";const Zy=O2;var FY=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="compound",r}return t.prototype._updatePathDirty=function(){for(var r=this.shape.paths,n=this.shapeChanged(),i=0;i<r.length;i++)n=n||r[i].shapeChanged();n&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],n=this.getGlobalScale(),i=0;i<r.length;i++)r[i].path||r[i].createPathProxy(),r[i].path.setScale(n[0],n[1],r[i].segmentIgnoreThreshold)},t.prototype.buildPath=function(r,n){for(var i=n.paths||[],a=0;a<i.length;a++)i[a].buildPath(r,i[a].shape,!0)},t.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),ct.prototype.getBoundingRect.call(this)},t}(ct);const $Y=FY;var HY=function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,r){this.colorStops.push({offset:t,color:r})},e}();const k2=HY;var zY=function(e){pe(t,e);function t(r,n,i,a,o,s){var l=e.call(this,o)||this;return l.x=r??0,l.y=n??0,l.x2=i??1,l.y2=a??0,l.type="linear",l.global=s||!1,l}return t}(k2);const WY=zY;var VY=function(e){pe(t,e);function t(r,n,i,a,o){var s=e.call(this,a)||this;return s.x=r??.5,s.y=n??.5,s.r=i??.5,s.type="radial",s.global=o||!1,s}return t}(k2);const GY=VY;var Ea=[0,0],Pa=[0,0],Lf=new ke,Df=new ke,UY=function(){function e(t,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new ke;for(var n=0;n<2;n++)this._axes[n]=new ke;t&&this.fromBoundingRect(t,r)}return e.prototype.fromBoundingRect=function(t,r){var n=this._corners,i=this._axes,a=t.x,o=t.y,s=a+t.width,l=o+t.height;if(n[0].set(a,o),n[1].set(s,o),n[2].set(s,l),n[3].set(a,l),r)for(var u=0;u<4;u++)n[u].transform(r);ke.sub(i[0],n[1],n[0]),ke.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(var u=0;u<2;u++)this._origin[u]=i[u].dot(n[0])},e.prototype.intersect=function(t,r){var n=!0,i=!r;return Lf.set(1/0,1/0),Df.set(0,0),!this._intersectCheckOneSide(this,t,Lf,Df,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(t,this,Lf,Df,i,-1)&&(n=!1,i)||i||ke.copy(r,n?Lf:Df),n},e.prototype._intersectCheckOneSide=function(t,r,n,i,a,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,t._corners,Ea),this._getProjMinMaxOnAxis(l,r._corners,Pa),Ea[1]<Pa[0]||Ea[0]>Pa[1]){if(s=!1,a)return s;var f=Math.abs(Pa[0]-Ea[1]),c=Math.abs(Ea[0]-Pa[1]);Math.min(f,c)>i.len()&&(f<c?ke.scale(i,u,-f*o):ke.scale(i,u,c*o))}else if(n){var f=Math.abs(Pa[0]-Ea[1]),c=Math.abs(Ea[0]-Pa[1]);Math.min(f,c)<n.len()&&(f<c?ke.scale(n,u,f*o):ke.scale(n,u,-c*o))}}return s},e.prototype._getProjMinMaxOnAxis=function(t,r,n){for(var i=this._axes[t],a=this._origin,o=r[0].dot(i)+a[t],s=o,l=o,u=1;u<r.length;u++){var f=r[u].dot(i)+a[t];s=Math.min(f,s),l=Math.max(f,l)}n[0]=s,n[1]=l},e}();const id=UY;var YY=[],qY=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.notClear=!0,r.incremental=!0,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},t.prototype.addDisplayables=function(r,n){n=n||!1;for(var i=0;i<r.length;i++)this.addDisplayable(r[i],n)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(r){for(var n=this._cursor;n<this._displayables.length;n++)r&&r(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)r&&r(this._temporaryDisplayables[n])},t.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var n=this._displayables[r];n.parent=this,n.update(),n.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var n=this._temporaryDisplayables[r];n.parent=this,n.update(),n.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new tt(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var i=this._displayables[n],a=i.getBoundingRect().clone();i.needLocalTransform()&&a.applyTransform(i.getLocalTransform(YY)),r.union(a)}this._rect=r}return this._rect},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(a.contain(i[0],i[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,n))return!0}return!1},t}(qu);const jY=qY;var KY=Tt();function XY(e,t,r,n,i){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),l=e==="update";if(s){var u=void 0,f=void 0,c=void 0;n?(u=je(n.duration,200),f=je(n.easing,"cubicOut"),c=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),f=t.getShallow(l?"animationEasingUpdate":"animationEasing"),c=t.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(c=a.delay)),We(c)&&(c=c(r,i)),We(u)&&(u=u(r));var d={duration:u||0,delay:c,easing:f};return d}else return null}function Qy(e,t,r,n,i,a,o){var s=!1,l;We(i)?(o=a,a=i,i=null):De(i)&&(a=i.cb,o=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var u=e==="leave";u||t.stopAnimation("leave");var f=XY(e,n,i,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(t,i):null);if(f&&f.duration>0){var c=f.duration,d=f.delay,h=f.easing,v={duration:c,delay:d||0,easing:h,done:a,force:!!a||!!o,setToFinal:!u,scope:e,during:o};s?t.animateFrom(r,v):t.animateTo(r,v)}else t.stopAnimation(),!s&&t.attr(r),o&&o(1),a&&a()}function Mr(e,t,r,n,i,a){Qy("update",e,t,r,n,i,a)}function Br(e,t,r,n,i,a){Qy("enter",e,t,r,n,i,a)}function os(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){var r=e.animators[t];if(r.scope==="leave")return!0}return!1}function N2(e,t,r,n,i,a){os(e)||Qy("leave",e,t,r,n,i,a)}function Cw(e,t,r,n){e.removeTextContent(),e.removeTextGuideLine(),N2(e,{style:{opacity:0}},t,r,n)}function ad(e,t,r){function n(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(i){i.isGroup||Cw(i,t,r,n)}):Cw(e,t,r,n)}function B2(e){KY(e).oldStyle=e.style}var od=Math.max,sd=Math.min,Wg={};function ZY(e){return ct.extend(e)}var QY=wY;function JY(e,t){return QY(e,t)}function En(e,t){Wg[e]=t}function e7(e){if(Wg.hasOwnProperty(e))return Wg[e]}function Jy(e,t,r,n){var i=bY(e,t);return r&&(n==="center"&&(r=$2(r,i.getBoundingRect())),H2(i,r)),i}function F2(e,t,r){var n=new Bs({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(i){if(r==="center"){var a={width:i.width,height:i.height};n.setStyle($2(t,a))}}});return n}function $2(e,t){var r=t.width/t.height,n=e.height*r,i;n<=e.width?i=e.height:(n=e.width,i=n/r);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-n/2,y:o-i/2,width:n,height:i}}var t7=xY;function H2(e,t){if(e.applyTransform){var r=e.getBoundingRect(),n=r.calculateTransform(t);e.applyTransform(n)}}function bu(e,t){return e2(e,e,{lineWidth:t}),e}function r7(e){return t2(e.shape,e.shape,e.style),e}var n7=Xa;function i7(e,t){for(var r=Oy([]);e&&e!==t;)is(r,e.getLocalTransform(),r),e=e.parent;return r}function e0(e,t,r){return t&&!Tr(t)&&(t=Jd.getLocalTransform(t)),r&&(t=Qd([],t)),rn([],e,t)}function a7(e,t,r){var n=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),a=[e==="left"?-n:e==="right"?n:0,e==="top"?-i:e==="bottom"?i:0];return a=e0(a,t,r),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function Tw(e){return!e.isGroup}function o7(e){return e.shape!=null}function z2(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(l){Tw(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return o7(o)&&(s.shape=oe({},o.shape)),s}var a=n(e);t.traverse(function(o){if(Tw(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),Mr(o,l,r,ut(o).dataIndex)}}})}function s7(e,t){return Oe(e,function(r){var n=r[0];n=od(n,t.x),n=sd(n,t.x+t.width);var i=r[1];return i=od(i,t.y),i=sd(i,t.y+t.height),[n,i]})}function l7(e,t){var r=od(e.x,t.x),n=sd(e.x+e.width,t.x+t.width),i=od(e.y,t.y),a=sd(e.y+e.height,t.y+t.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}function t0(e,t,r){var n=oe({rectHover:!0},t),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(i.image=e.slice(8),ft(i,r),new Bs(n)):Jy(e.replace("path://",""),n,r,"center")}function u7(e,t,r,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(W2(e,t,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function W2(e,t,r,n,i,a,o,s){var l=r-e,u=n-t,f=o-i,c=s-a,d=Dv(f,c,l,u);if(f7(d))return!1;var h=e-i,v=t-a,p=Dv(h,v,l,u)/d;if(p<0||p>1)return!1;var g=Dv(h,v,f,c)/d;return!(g<0||g>1)}function Dv(e,t,r,n){return e*n-r*t}function f7(e){return e<=1e-6&&e>=-1e-6}function r0(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,i=Te(t)?{formatter:t}:t,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=e.formatterParamsExtra;l&&R(xt(l),function(f){Ts(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=ut(e.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:ft({content:n,formatterParams:s},i)}}function Mw(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function n0(e,t){if(e)if(ge(e))for(var r=0;r<e.length;r++)Mw(e[r],t);else Mw(e,t)}En("circle",Xy);En("ellipse",x2);En("sector",wo);En("ring",M2);En("polygon",P2);En("polyline",ih);En("rect",Nt);En("line",vo);En("bezierCurve",R2);En("arc",Zy);const c7=Object.freeze(Object.defineProperty({__proto__:null,Arc:Zy,BezierCurve:R2,BoundingRect:tt,Circle:Xy,CompoundPath:$Y,Ellipse:x2,Group:sn,Image:Bs,IncrementalDisplayable:jY,Line:vo,LinearGradient:WY,OrientedBoundingRect:id,Path:ct,Point:ke,Polygon:P2,Polyline:ih,RadialGradient:GY,Rect:Nt,Ring:M2,Sector:wo,Text:fr,applyTransform:e0,clipPointsByRect:s7,clipRectByRect:l7,createIcon:t0,extendPath:JY,extendShape:ZY,getShapeClass:e7,getTransform:i7,groupTransition:z2,initProps:Br,isElementRemoved:os,lineLineIntersect:W2,linePolygonIntersect:u7,makeImage:F2,makePath:Jy,mergePath:t7,registerShape:En,removeElement:N2,removeElementWithFadeOut:ad,resizePath:H2,setTooltipConfig:r0,subPixelOptimize:n7,subPixelOptimizeLine:bu,subPixelOptimizeRect:r7,transformDirection:a7,traverseElements:n0,updateProps:Mr},Symbol.toStringTag,{value:"Module"}));var ah={};function V2(e,t){for(var r=0;r<jn.length;r++){var n=jn[r],i=t[n],a=e.ensureState(n);a.style=a.style||{},a.style.text=i}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function Vg(e,t,r){var n=e.labelFetcher,i=e.labelDataIndex,a=e.labelDimIndex,o=t.normal,s;n&&(s=n.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=We(e.defaultText)?e.defaultText(i,e,r):e.defaultText);for(var l={normal:s},u=0;u<jn.length;u++){var f=jn[u],c=t[f];l[f]=je(n?n.getFormattedLabel(i,f,null,a,c&&c.get("formatter")):null,s)}return l}function i0(e,t,r,n){r=r||ah;for(var i=e instanceof fr,a=!1,o=0;o<nd.length;o++){var s=t[nd[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=i?e:e.getTextContent();if(a){i||(l||(l=new fr,e.setTextContent(l)),e.stateProxy&&(l.stateProxy=e.stateProxy));var u=Vg(r,t),f=t.normal,c=!!f.getShallow("show"),d=na(f,n&&n.normal,r,!1,!i);d.text=u.normal,i||e.setTextConfig(Aw(f,r,!1));for(var o=0;o<jn.length;o++){var h=jn[o],s=t[h];if(s){var v=l.ensureState(h),p=!!je(s.getShallow("show"),c);if(p!==c&&(v.ignore=!p),v.style=na(s,n&&n[h],r,!0,!i),v.style.text=u[h],!i){var g=e.ensureState(h);g.textConfig=Aw(s,r,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(d.x=l.style.x),l.style.y!=null&&(d.y=l.style.y),l.ignore=!c,l.useStyle(d),l.dirty(),r.enableTextSetter&&(ju(l).setLabelText=function(m){var y=Vg(r,t,m);V2(l,y)})}else l&&(l.ignore=!0);e.dirty()}function G2(e,t){t=t||"label";for(var r={normal:e.getModel(t)},n=0;n<jn.length;n++){var i=jn[n];r[i]=e.getModel([i,t])}return r}function na(e,t,r,n,i){var a={};return d7(a,e,r,n,i),t&&oe(a,t),a}function Aw(e,t,r){t=t||{};var n={},i,a=e.getShallow("rotate"),o=je(e.getShallow("distance"),r?null:5),s=e.getShallow("offset");return i=e.getShallow("position")||(r?null:"inside"),i==="outside"&&(i=t.defaultOutsidePosition||"top"),i!=null&&(n.position=i),s!=null&&(n.offset=s),a!=null&&(a*=Math.PI/180,n.rotation=a),o!=null&&(n.distance=o),n.outsideFill=e.get("color")==="inherit"?t.inheritColor||null:"auto",n}function d7(e,t,r,n,i){r=r||ah;var a=t.ecModel,o=a&&a.option.textStyle,s=h7(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var f=t.getModel(["rich",u]);Dw(l[u]={},f,o,r,n,i,!1,!0)}}l&&(e.rich=l);var c=t.get("overflow");c&&(e.overflow=c);var d=t.get("minMargin");d!=null&&(e.margin=d),Dw(e,t,o,r,n,i,!0,!1)}function h7(e){for(var t;e&&e!==e.ecModel;){var r=(e.option||ah).rich;if(r){t=t||{};for(var n=xt(r),i=0;i<n.length;i++){var a=n[i];t[a]=1}}e=e.parentModel}return t}var Ew=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Pw=["align","lineHeight","width","height","tag","verticalAlign"],Lw=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Dw(e,t,r,n,i,a,o,s){r=!i&&r||ah;var l=n&&n.inheritColor,u=t.getShallow("color"),f=t.getShallow("textBorderColor"),c=je(t.getShallow("opacity"),r.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(f==="inherit"||f==="auto")&&(l?f=l:f=null),a||(u=u||r.color,f=f||r.textBorderColor),u!=null&&(e.fill=u),f!=null&&(e.stroke=f);var d=je(t.getShallow("textBorderWidth"),r.textBorderWidth);d!=null&&(e.lineWidth=d);var h=je(t.getShallow("textBorderType"),r.textBorderType);h!=null&&(e.lineDash=h);var v=je(t.getShallow("textBorderDashOffset"),r.textBorderDashOffset);v!=null&&(e.lineDashOffset=v),!i&&c==null&&!s&&(c=n&&n.defaultOpacity),c!=null&&(e.opacity=c),!i&&!a&&e.fill==null&&n.inheritColor&&(e.fill=n.inheritColor);for(var p=0;p<Ew.length;p++){var g=Ew[p],m=je(t.getShallow(g),r[g]);m!=null&&(e[g]=m)}for(var p=0;p<Pw.length;p++){var g=Pw[p],m=t.getShallow(g);m!=null&&(e[g]=m)}if(e.verticalAlign==null){var y=t.getShallow("baseline");y!=null&&(e.verticalAlign=y)}if(!o||!n.disableBox){for(var p=0;p<Lw.length;p++){var g=Lw[p],m=t.getShallow(g);m!=null&&(e[g]=m)}var _=t.getShallow("borderType");_!=null&&(e.borderDash=_),(e.backgroundColor==="auto"||e.backgroundColor==="inherit")&&l&&(e.backgroundColor=l),(e.borderColor==="auto"||e.borderColor==="inherit")&&l&&(e.borderColor=l)}}function v7(e,t){var r=t&&t.getModel("textStyle");return zn([e.fontStyle||r&&r.getShallow("fontStyle")||"",e.fontWeight||r&&r.getShallow("fontWeight")||"",(e.fontSize||r&&r.getShallow("fontSize")||12)+"px",e.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var ju=Tt();function p7(e,t,r,n){if(e){var i=ju(e);i.prevValue=i.value,i.value=r;var a=t.normal;i.valueAnimation=a.get("valueAnimation"),i.valueAnimation&&(i.precision=a.get("precision"),i.defaultInterpolatedText=n,i.statesModels=t)}}function g7(e,t,r,n,i){var a=ju(e);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=je(a.interpolatedValue,a.prevValue),l=a.value;function u(f){var c=UU(r,a.precision,s,l,f);a.interpolatedValue=f===1?null:c;var d=Vg({labelDataIndex:t,labelFetcher:i,defaultText:o?o(c):c+""},a.statesModels,c);V2(e,d)}e.percent=0,(a.prevValue==null?Br:Mr)(e,{percent:1},n,t,null,u)}var m7=["textStyle","color"],Iv=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Rv=new fr,y7=function(){function e(){}return e.prototype.getTextColor=function(t){var r=this.ecModel;return this.getShallow("color")||(!t&&r?r.get(m7):null)},e.prototype.getFont=function(){return v7({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(t){for(var r={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Iv.length;n++)r[Iv[n]]=this.getShallow(Iv[n]);return Rv.useStyle(r),Rv.update(),Rv.getBoundingRect()},e}();const _7=y7;var U2=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],b7=_u(U2),w7=function(){function e(){}return e.prototype.getLineStyle=function(t){return b7(this,t)},e}(),Y2=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],x7=_u(Y2),S7=function(){function e(){}return e.prototype.getItemStyle=function(t,r){return x7(this,t,r)},e}(),xo=function(){function e(t,r,n){this.parentModel=r,this.ecModel=n,this.option=t}return e.prototype.init=function(t,r,n){},e.prototype.mergeOption=function(t,r){at(this.option,t,!0)},e.prototype.get=function(t,r){return t==null?this.option:this._doGet(this.parsePath(t),!r&&this.parentModel)},e.prototype.getShallow=function(t,r){var n=this.option,i=n==null?n:n[t];if(i==null&&!r){var a=this.parentModel;a&&(i=a.getShallow(t))}return i},e.prototype.getModel=function(t,r){var n=t!=null,i=n?this.parsePath(t):null,a=n?this._doGet(i):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new e(a,r,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var t=this.constructor;return new t(Ze(this.option))},e.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},e.prototype.resolveParentPath=function(t){return t},e.prototype.isAnimationEnabled=function(){if(!Ve.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(t,r){var n=this.option;if(!t)return n;for(var i=0;i<t.length&&!(t[i]&&(n=n&&typeof n=="object"?n[t[i]]:null,n==null));i++);return n==null&&r&&(n=r._doGet(this.resolveParentPath(t),r.parentModel)),n},e}();Gy(xo);ZU(xo);Qn(xo,w7);Qn(xo,S7);Qn(xo,r9);Qn(xo,_7);const tr=xo;var C7=Math.round(Math.random()*10);function oh(e){return[e||"",C7++].join("_")}function T7(e){var t={};e.registerSubTypeDefaulter=function(r,n){var i=Wn(r);t[i.main]=n},e.determineSubType=function(r,n){var i=n.type;if(!i){var a=Wn(r).main;e.hasSubTypes(r)&&t[a]&&(i=t[a](n))}return i}}function M7(e,t){e.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=r(o),f=u.graph,c=u.noEntryList,d={};for(R(a,function(y){d[y]=!0});c.length;){var h=c.pop(),v=f[h],p=!!d[h];p&&(s.call(l,h,v.originalDeps.slice()),delete d[h]),R(v.successor,p?m:g)}R(d,function(){var y="";throw new Error(y)});function g(y){f[y].entryCount--,f[y].entryCount===0&&c.push(y)}function m(y){d[y]=!0,g(y)}};function r(a){var o={},s=[];return R(a,function(l){var u=n(o,l),f=u.originalDeps=t(l),c=i(f,a);u.entryCount=c.length,u.entryCount===0&&s.push(l),R(c,function(d){it(u.predecessor,d)<0&&u.predecessor.push(d);var h=n(o,d);it(h.successor,d)<0&&h.successor.push(l)})}),{graph:o,noEntryList:s}}function n(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function i(a,o){var s=[];return R(a,function(l){it(o,l)>=0&&s.push(l)}),s}}function q2(e,t){return at(at({},e,!0),t,!0)}const A7={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},E7={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表，"},series:{single:{prefix:"",withName:"图表类型是{seriesType}，表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType}，",withoutName:"第{seriesId}个系列是一个{seriesType}，",separator:{middle:"；",end:"。"}}},data:{allData:"其数据是——",partialData:"其中，前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:"，",end:""}}}};var ld="ZH",a0="EN",wu=a0,Ec={},o0={},j2=Ve.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return e.indexOf(ld)>-1?ld:wu}():wu;function K2(e,t){e=e.toUpperCase(),o0[e]=new tr(t),Ec[e]=t}function P7(e){if(Te(e)){var t=Ec[e.toUpperCase()]||{};return e===ld||e===a0?Ze(t):at(Ze(t),Ze(Ec[wu]),!1)}else return at(Ze(e),Ze(Ec[wu]),!1)}function L7(e){return o0[e]}function D7(){return o0[wu]}K2(a0,A7);K2(ld,E7);var s0=1e3,l0=s0*60,Ul=l0*60,Jr=Ul*24,Iw=Jr*365,wl={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},If="{yyyy}-{MM}-{dd}",Rw={year:"{yyyy}",month:"{yyyy}-{MM}",day:If,hour:If+" "+wl.hour,minute:If+" "+wl.minute,second:If+" "+wl.second,millisecond:wl.none},Ov=["year","month","day","hour","minute","second","millisecond"],X2=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function La(e,t){return e+="","0000".substr(0,t-e.length)+e}function ss(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function I7(e){return e===ss(e)}function R7(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function sh(e,t,r,n){var i=_i(e),a=i[u0(r)](),o=i[ls(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[lh(r)](),u=i["get"+(r?"UTC":"")+"Day"](),f=i[xu(r)](),c=(f-1)%12+1,d=i[uh(r)](),h=i[fh(r)](),v=i[ch(r)](),p=n instanceof tr?n:L7(n||j2)||D7(),g=p.getModel("time"),m=g.get("month"),y=g.get("monthAbbr"),_=g.get("dayOfWeek"),b=g.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,a%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,m[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,La(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,La(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,La(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,La(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,La(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,La(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,La(v,3)).replace(/{S}/g,v+"")}function O7(e,t,r,n,i){var a=null;if(Te(r))a=r;else if(We(r))a=r(e.value,t,{level:e.level});else{var o=oe({},wl);if(e.level>0)for(var s=0;s<Ov.length;++s)o[Ov[s]]="{primary|"+o[Ov[s]]+"}";var l=r?r.inherit===!1?r:ft(r,o):o,u=Z2(e.value,i);if(l[u])a=l[u];else if(l.inherit){for(var f=X2.indexOf(u),s=f-1;s>=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(ge(a)){var c=e.level==null?0:e.level>=0?e.level:a.length+e.level;c=Math.min(c,a.length-1),a=a[c]}}return sh(new Date(e.value),a,i,n)}function Z2(e,t){var r=_i(e),n=r[ls(t)]()+1,i=r[lh(t)](),a=r[xu(t)](),o=r[uh(t)](),s=r[fh(t)](),l=r[ch(t)](),u=l===0,f=u&&s===0,c=f&&o===0,d=c&&a===0,h=d&&i===1,v=h&&n===1;return v?"year":h?"month":d?"day":c?"hour":f?"minute":u?"second":"millisecond"}function Ow(e,t,r){var n=bt(e)?_i(e):e;switch(t=t||Z2(e,r),t){case"year":return n[u0(r)]();case"half-year":return n[ls(r)]()>=6?1:0;case"quarter":return Math.floor((n[ls(r)]()+1)/4);case"month":return n[ls(r)]();case"day":return n[lh(r)]();case"half-day":return n[xu(r)]()/24;case"hour":return n[xu(r)]();case"minute":return n[uh(r)]();case"second":return n[fh(r)]();case"millisecond":return n[ch(r)]()}}function u0(e){return e?"getUTCFullYear":"getFullYear"}function ls(e){return e?"getUTCMonth":"getMonth"}function lh(e){return e?"getUTCDate":"getDate"}function xu(e){return e?"getUTCHours":"getHours"}function uh(e){return e?"getUTCMinutes":"getMinutes"}function fh(e){return e?"getUTCSeconds":"getSeconds"}function ch(e){return e?"getUTCMilliseconds":"getMilliseconds"}function k7(e){return e?"setUTCFullYear":"setFullYear"}function Q2(e){return e?"setUTCMonth":"setMonth"}function J2(e){return e?"setUTCDate":"setDate"}function eE(e){return e?"setUTCHours":"setHours"}function tE(e){return e?"setUTCMinutes":"setMinutes"}function rE(e){return e?"setUTCSeconds":"setSeconds"}function nE(e){return e?"setUTCMilliseconds":"setMilliseconds"}function iE(e){if(!LU(e))return Te(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function aE(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var dh=sA;function Gg(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&zn(f)?f:"-"}function a(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=e instanceof Date;if(o||s){var l=o?_i(e):e;if(isNaN(+l)){if(s)return"-"}else return sh(l,n,r)}if(t==="ordinal")return fg(e)?i(e):bt(e)&&a(e)?e+"":"-";var u=rd(e);return a(u)?iE(u):fg(e)?i(e):typeof e=="boolean"?e+"":"-"}var kw=["a","b","c","d","e","f","g"],kv=function(e,t){return"{"+e+(t??"")+"}"};function oE(e,t,r){ge(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=kw[a];e=e.replace(kv(o),kv(o,0))}for(var s=0;s<n;s++)for(var l=0;l<i.length;l++){var u=t[s][i[l]];e=e.replace(kv(kw[l],s),r?Kr(u):u)}return e}function N7(e,t){var r=Te(e)?{color:e,extraCssText:t}:e||{},n=r.color,i=r.type;t=r.extraCssText;var a=r.renderMode||"html";if(!n)return"";if(a==="html")return i==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Kr(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Kr(n)+";"+(t||"")+'"></span>';var o=r.markerId||"markerX";return{renderMode:a,content:"{"+o+"|}  ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function Su(e,t){return t=t||"transparent",Te(e)?e:De(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function Nw(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var Pc=R,B7=["left","right","top","bottom","width","height"],Rf=[["width","left","right"],["height","top","bottom"]];function f0(e,t,r,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(l,u){var f=l.getBoundingRect(),c=t.childAt(u+1),d=c&&c.getBoundingRect(),h,v;if(e==="horizontal"){var p=f.width+(d?-d.x+f.x:0);h=a+p,h>n||l.newline?(a=0,h=p,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(d?-d.y+f.y:0);v=o+g,v>i||l.newline?(a+=s+r,o=0,v=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),e==="horizontal"?a=h+r:o=v+r)})}var Yl=f0;Dt(f0,"vertical");Dt(f0,"horizontal");function Ms(e,t,r){r=dh(r||0);var n=t.width,i=t.height,a=pt(e.left,n),o=pt(e.top,i),s=pt(e.right,n),l=pt(e.bottom,i),u=pt(e.width,n),f=pt(e.height,i),c=r[2]+r[0],d=r[1]+r[3],h=e.aspect;switch(isNaN(u)&&(u=n-s-d-a),isNaN(f)&&(f=i-l-c-o),h!=null&&(isNaN(u)&&isNaN(f)&&(h>n/i?u=n*.8:f=i*.8),isNaN(u)&&(u=h*f),isNaN(f)&&(f=u/h)),isNaN(a)&&(a=n-s-u-d),isNaN(o)&&(o=i-l-f-c),e.left||e.right){case"center":a=n/2-u/2-r[3];break;case"right":a=n-u-d;break}switch(e.top||e.bottom){case"middle":case"center":o=i/2-f/2-r[0];break;case"bottom":o=i-f-c;break}a=a||0,o=o||0,isNaN(u)&&(u=n-d-a-(s||0)),isNaN(f)&&(f=i-c-o-(l||0));var v=new tt(a+r[3],o+r[0],u,f);return v.margin=r,v}function Cu(e){var t=e.layoutMode||e.constructor.layoutMode;return De(t)?t:t?{type:t}:null}function As(e,t,r){var n=r&&r.ignoreSize;!ge(n)&&(n=[n,n]);var i=o(Rf[0],0),a=o(Rf[1],1);u(Rf[0],e,i),u(Rf[1],e,a);function o(f,c){var d={},h=0,v={},p=0,g=2;if(Pc(f,function(_){v[_]=e[_]}),Pc(f,function(_){s(t,_)&&(d[_]=v[_]=t[_]),l(d,_)&&h++,l(v,_)&&p++}),n[c])return l(t,f[1])?v[f[2]]=null:l(t,f[2])&&(v[f[1]]=null),v;if(p===g||!h)return v;if(h>=g)return d;for(var m=0;m<f.length;m++){var y=f[m];if(!s(d,y)&&s(e,y)){d[y]=e[y];break}}return d}function s(f,c){return f.hasOwnProperty(c)}function l(f,c){return f[c]!=null&&f[c]!=="auto"}function u(f,c,d){Pc(f,function(h){c[h]=d[h]})}}function hh(e){return F7({},e)}function F7(e,t){return t&&e&&Pc(B7,function(r){t.hasOwnProperty(r)&&(e[r]=t[r])}),e}var $7=Tt(),Fs=function(e){pe(t,e);function t(r,n,i){var a=e.call(this,r,n,i)||this;return a.uid=oh("ec_cpt_model"),a}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=Cu(this),a=i?hh(r):{},o=n.getTheme();at(r,o.get(this.mainType)),at(r,this.getDefaultOption()),i&&As(r,a,i)},t.prototype.mergeOption=function(r,n){at(this.option,r,!0);var i=Cu(this);i&&As(this.option,r,i)},t.prototype.optionUpdated=function(r,n){},t.prototype.getDefaultOption=function(){var r=this.constructor;if(!jU(r))return r.defaultOption;var n=$7(this);if(!n.defaultOption){for(var i=[],a=r;a;){var o=a.prototype.defaultOption;o&&i.push(o),a=a.superClass}for(var s={},l=i.length-1;l>=0;l--)s=at(s,i[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return Yu(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!0)},n)},t.prototype.getBoxLayoutParams=function(){var r=this;return{left:r.get("left"),top:r.get("top"),right:r.get("right"),bottom:r.get("bottom"),width:r.get("width"),height:r.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(r){this.option.zlevel=r},t.protoInitialize=function(){var r=t.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),t}(tr);UA(Fs,tr);eh(Fs);T7(Fs);M7(Fs,H7);function H7(e){var t=[];return R(Fs.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=Oe(t,function(r){return Wn(r).main}),e!=="dataset"&&it(t,"dataset")<=0&&t.unshift("dataset"),t}const wt=Fs;var sE="";typeof navigator<"u"&&(sE=navigator.platform||"");var ko="rgba(0, 0, 0, 0.2)";const z7={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:ko,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:ko,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:ko,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:ko,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:ko,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:ko,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:sE.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var lE=Ge(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),un="original",Ar="arrayRows",Pn="objectRows",ei="keyedColumns",Zi="typedArray",uE="unknown",ci="column",$s="row",Vt={Must:1,Might:2,Not:3},fE=Tt();function W7(e){fE(e).datasetMap=Ge()}function V7(e,t,r){var n={},i=c0(t);if(!i||!e)return n;var a=[],o=[],s=t.ecModel,l=fE(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,f,c;e=e.slice(),R(e,function(p,g){var m=De(p)?p:e[g]={name:p};m.type==="ordinal"&&f==null&&(f=g,c=v(m)),n[m.name]=[]});var d=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});R(e,function(p,g){var m=p.name,y=v(p);if(f==null){var _=d.valueWayDim;h(n[m],_,y),h(o,_,y),d.valueWayDim+=y}else if(f===g)h(n[m],0,y),h(a,0,y);else{var _=d.categoryWayDim;h(n[m],_,y),h(o,_,y),d.categoryWayDim+=y}});function h(p,g,m){for(var y=0;y<m;y++)p.push(g+y)}function v(p){var g=p.dimsDef;return g?g.length:1}return a.length&&(n.itemName=a),o.length&&(n.seriesName=o),n}function G7(e,t,r){var n={},i=c0(e);if(!i)return n;var a=t.sourceFormat,o=t.dimensionsDefine,s;(a===Pn||a===ei)&&R(o,function(f,c){(De(f)?f.name:f)==="name"&&(s=c)});var l=function(){for(var f={},c={},d=[],h=0,v=Math.min(5,r);h<v;h++){var p=dE(t.data,a,t.seriesLayoutBy,o,t.startIndex,h);d.push(p);var g=p===Vt.Not;if(g&&f.v==null&&h!==s&&(f.v=h),(f.n==null||f.n===f.v||!g&&d[f.n]===Vt.Not)&&(f.n=h),m(f)&&d[f.n]!==Vt.Not)return f;g||(p===Vt.Might&&c.v==null&&h!==s&&(c.v=h),(c.n==null||c.n===c.v)&&(c.n=h))}function m(y){return y.v!=null&&y.n!=null}return m(f)?f:m(c)?c:null}();if(l){n.value=[l.v];var u=s??l.n;n.itemName=[u],n.seriesName=[u]}return n}function c0(e){var t=e.get("data",!0);if(!t)return Yu(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},_n).models[0]}function U7(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:Yu(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},_n).models}function cE(e,t){return dE(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function dE(e,t,r,n,i,a){var o,s=5;if($r(e))return Vt.Not;var l,u;if(n){var f=n[a];De(f)?(l=f.name,u=f.type):Te(f)&&(l=f)}if(u!=null)return u==="ordinal"?Vt.Must:Vt.Not;if(t===Ar){var c=e;if(r===$s){for(var d=c[a],h=0;h<(d||[]).length&&h<s;h++)if((o=b(d[i+h]))!=null)return o}else for(var h=0;h<c.length&&h<s;h++){var v=c[i+h];if(v&&(o=b(v[a]))!=null)return o}}else if(t===Pn){var p=e;if(!l)return Vt.Not;for(var h=0;h<p.length&&h<s;h++){var g=p[h];if(g&&(o=b(g[l]))!=null)return o}}else if(t===ei){var m=e;if(!l)return Vt.Not;var d=m[l];if(!d||$r(d))return Vt.Not;for(var h=0;h<d.length&&h<s;h++)if((o=b(d[h]))!=null)return o}else if(t===un)for(var y=e,h=0;h<y.length&&h<s;h++){var g=y[h],_=Gu(g);if(!ge(_))return Vt.Not;if((o=b(_[a]))!=null)return o}function b(x){var w=Te(x);if(x!=null&&isFinite(x)&&x!=="")return w?Vt.Might:Vt.Not;if(w&&x!=="-")return Vt.Must}return Vt.Not}var Y7=Ge();function q7(e,t,r){var n=Y7.get(t);if(!n)return r;var i=n(e);return i?r.concat(i):r}var Bw=Tt();Tt();var d0=function(){function e(){}return e.prototype.getColorFromPalette=function(t,r,n){var i=lr(this.get("color",!0)),a=this.get("colorLayer",!0);return K7(this,Bw,i,a,t,r,n)},e.prototype.clearColorPalette=function(){X7(this,Bw)},e}();function j7(e,t){for(var r=e.length,n=0;n<r;n++)if(e[n].length>t)return e[n];return e[r-1]}function K7(e,t,r,n,i,a,o){a=a||e;var s=t(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var f=o==null||!n?r:j7(n,o);if(f=f||r,!(!f||!f.length)){var c=f[l];return i&&(u[i]=c),s.paletteIdx=(l+1)%f.length,c}}function X7(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Of,rl,Fw,$w="\0_ec_inner",Z7=1,hE=function(e){pe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new tr(a),this._locale=new tr(o),this._optionManager=s},t.prototype.setOption=function(r,n,i){var a=Ww(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(r,n){return this._resetOption(r,Ww(n))},t.prototype._resetOption=function(r,n){var i=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");!this.option||r==="recreate"?Fw(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=a.getMediaOption(this);l.length&&R(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=Ge(),u=n&&n.replaceMergeMainTypeMap;W7(this),R(r,function(c,d){c!=null&&(wt.hasClass(d)?d&&(s.push(d),l.set(d,!0)):i[d]=i[d]==null?Ze(c):at(i[d],c,!0))}),u&&u.each(function(c,d){wt.hasClass(d)&&!l.get(d)&&(s.push(d),l.set(d,!0))}),wt.topologicalTravel(s,wt.getAllClassMainTypes(),f,this);function f(c){var d=q7(this,c,lr(r[c])),h=a.get(c),v=h?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",p=RU(h,d,v);HU(p,c,wt),i[c]=null,a.set(c,null),o.set(c,0);var g=[],m=[],y=0,_;R(p,function(b,x){var w=b.existing,S=b.newOption;if(!S)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var C=c==="series",T=wt.getClass(c,b.keyInfo.subType,!C);if(!T)return;if(c==="tooltip"){if(_)return;_=!0}if(w&&w.constructor===T)w.name=b.keyInfo.name,w.mergeOption(S,this),w.optionUpdated(S,!1);else{var E=oe({componentIndex:x},b.keyInfo);w=new T(S,this,this,E),oe(w,E),b.brandNew&&(w.__requireNewView=!0),w.init(S,this,this),w.optionUpdated(null,!0)}}w?(g.push(w.option),m.push(w),y++):(g.push(void 0),m.push(void 0))},this),i[c]=g,a.set(c,m),o.set(c,y),c==="series"&&Of(this)}this._seriesIndices||Of(this)},t.prototype.getOption=function(){var r=Ze(this.option);return R(r,function(n,i){if(wt.hasClass(i)){for(var a=lr(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!yu(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[$w],r},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(r){this._payload=r},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(r,n){var i=this._componentsMap.get(r);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o<i.length;o++)if(i[o])return i[o]}}},t.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var i=r.index,a=r.id,o=r.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return i!=null?(l=[],R(lr(i),function(u){s[u]&&l.push(s[u])})):a!=null?l=Hw("id",a,s):o!=null?l=Hw("name",o,s):l=$t(s,function(u){return!!u}),zw(l,r)},t.prototype.findComponents=function(r){var n=r.query,i=r.mainType,a=s(n),o=a?this.queryComponents(a):$t(this._componentsMap.get(i),function(u){return!!u});return l(zw(o,r));function s(u){var f=i+"Index",c=i+"Id",d=i+"Name";return u&&(u[f]!=null||u[c]!=null||u[d]!=null)?{mainType:i,index:u[f],id:u[c],name:u[d]}:null}function l(u){return r.filter?$t(u,r.filter):u}},t.prototype.eachComponent=function(r,n,i){var a=this._componentsMap;if(We(r)){var o=n,s=r;a.each(function(c,d){for(var h=0;c&&h<c.length;h++){var v=c[h];v&&s.call(o,d,v,v.componentIndex)}})}else for(var l=Te(r)?a.get(r):De(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var f=l[u];f&&n.call(i,f,f.componentIndex)}},t.prototype.getSeriesByName=function(r){var n=Un(r,null);return $t(this._componentsMap.get("series"),function(i){return!!i&&n!=null&&i.name===n})},t.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},t.prototype.getSeriesByType=function(r){return $t(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},t.prototype.getSeries=function(){return $t(this._componentsMap.get("series"),function(r){return!!r})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(r,n){rl(this),R(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];r.call(n,a,i)},this)},t.prototype.eachRawSeries=function(r,n){R(this._componentsMap.get("series"),function(i){i&&r.call(n,i,i.componentIndex)})},t.prototype.eachSeriesByType=function(r,n,i){rl(this),R(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===r&&n.call(i,o,a)},this)},t.prototype.eachRawSeriesByType=function(r,n,i){return R(this.getSeriesByType(r),n,i)},t.prototype.isSeriesFiltered=function(r){return rl(this),this._seriesIndicesMap.get(r.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(r,n){rl(this);var i=[];R(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];r.call(n,o,a)&&i.push(a)},this),this._seriesIndices=i,this._seriesIndicesMap=Ge(i)},t.prototype.restoreData=function(r){Of(this);var n=this._componentsMap,i=[];n.each(function(a,o){wt.hasClass(o)&&i.push(o)}),wt.topologicalTravel(i,wt.getAllClassMainTypes(),function(a){R(n.get(a),function(o){o&&(a!=="series"||!Q7(o,r))&&o.restoreData()})})},t.internalField=function(){Of=function(r){var n=r._seriesIndices=[];R(r._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),r._seriesIndicesMap=Ge(n)},rl=function(r){},Fw=function(r,n){r.option={},r.option[$w]=Z7,r._componentsMap=Ge({series:[]}),r._componentsCount=Ge();var i=n.aria;De(i)&&i.enabled==null&&(i.enabled=!0),J7(n,r._theme.option),at(n,z7,!1),r._mergeOption(n,null)}}(),t}(tr);function Q7(e,t){if(t){var r=t.seriesIndex,n=t.seriesId,i=t.seriesName;return r!=null&&e.componentIndex!==r||n!=null&&e.id!==n||i!=null&&e.name!==i}}function J7(e,t){var r=e.color&&!e.colorLayer;R(t,function(n,i){i==="colorLayer"&&r||wt.hasClass(i)||(typeof n=="object"?e[i]=e[i]?at(e[i],n,!1):Ze(n):e[i]==null&&(e[i]=n))})}function Hw(e,t,r){if(ge(t)){var n=Ge();return R(t,function(a){if(a!=null){var o=Un(a,null);o!=null&&n.set(a,!0)}}),$t(r,function(a){return a&&n.get(a[e])})}else{var i=Un(t,null);return $t(r,function(a){return a&&i!=null&&a[e]===i})}}function zw(e,t){return t.hasOwnProperty("subType")?$t(e,function(r){return r&&r.subType===t.subType}):e}function Ww(e){var t=Ge();return e&&R(lr(e.replaceMerge),function(r){t.set(r,!0)}),{replaceMergeMainTypeMap:t}}Qn(hE,d0);const vE=hE;var eq=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],tq=function(){function e(t){R(eq,function(r){this[r]=_t(t[r],t)},this)}return e}();const pE=tq;var Nv={},rq=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(t,r){var n=[];R(Nv,function(i,a){var o=i.create(t,r);n=n.concat(o||[])}),this._coordinateSystems=n},e.prototype.update=function(t,r){R(this._coordinateSystems,function(n){n.update&&n.update(t,r)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(t,r){Nv[t]=r},e.get=function(t){return Nv[t]},e}();const h0=rq;var nq=/^(min|max)?(.+)$/,iq=function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,r,n){t&&(R(lr(t.series),function(o){o&&o.data&&$r(o.data)&&cg(o.data)}),R(lr(t.dataset),function(o){o&&o.source&&$r(o.source)&&cg(o.source)})),t=Ze(t);var i=this._optionBackup,a=aq(t,r,!i);this._newBaseOption=a.baseOption,i?(a.timelineOptions.length&&(i.timelineOptions=a.timelineOptions),a.mediaList.length&&(i.mediaList=a.mediaList),a.mediaDefault&&(i.mediaDefault=a.mediaDefault)):this._optionBackup=a},e.prototype.mountOption=function(t){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],Ze(t?r.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(t){var r,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(r=Ze(n[i.getCurrentIndex()]))}return r},e.prototype.getMediaOption=function(t){var r=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!i.length&&!a)return s;for(var l=0,u=i.length;l<u;l++)oq(i[l].query,r,n)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!lq(o,this._currentMediaIndices)&&(s=Oe(o,function(f){return Ze(f===-1?a.option:i[f].option)})),this._currentMediaIndices=o,s},e}();function aq(e,t,r){var n=[],i,a,o=e.baseOption,s=e.timeline,l=e.options,u=e.media,f=!!e.media,c=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((c||f)&&(e.options=e.media=null),a=e),f&&ge(u)&&R(u,function(h){h&&h.option&&(h.query?n.push(h):i||(i=h))}),d(a),R(l,function(h){return d(h)}),R(n,function(h){return d(h.option)});function d(h){R(t,function(v){v(h,r)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:i,mediaList:n}}function oq(e,t,r){var n={width:t,height:r,aspectratio:t/r},i=!0;return R(e,function(a,o){var s=o.match(nq);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();sq(n[u],a,l)||(i=!1)}}),i}function sq(e,t,r){return r==="min"?e>=t:r==="max"?e<=t:e===t}function lq(e,t){return e.join(",")===t.join(",")}const uq=iq;var fn=R,Tu=De,Vw=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Bv(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=Vw.length;r<n;r++){var i=Vw[r],a=t.normal,o=t.emphasis;a&&a[i]&&(e[i]=e[i]||{},e[i].normal?at(e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),o&&o[i]&&(e[i]=e[i]||{},e[i].emphasis?at(e[i].emphasis,o[i]):e[i].emphasis=o[i],o[i]=null)}}function Jt(e,t,r){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var n=e[t].normal,i=e[t].emphasis;n&&(r?(e[t].normal=e[t].emphasis=null,ft(e[t],n)):e[t]=n),i&&(e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function xl(e){Jt(e,"itemStyle"),Jt(e,"lineStyle"),Jt(e,"areaStyle"),Jt(e,"label"),Jt(e,"labelLine"),Jt(e,"upperLabel"),Jt(e,"edgeLabel")}function Pt(e,t){var r=Tu(e)&&e[t],n=Tu(r)&&r.textStyle;if(n)for(var i=0,a=U1.length;i<a;i++){var o=U1[i];n.hasOwnProperty(o)&&(r[o]=n[o])}}function Yr(e){e&&(xl(e),Pt(e,"label"),e.emphasis&&Pt(e.emphasis,"label"))}function fq(e){if(Tu(e)){Bv(e),xl(e),Pt(e,"label"),Pt(e,"upperLabel"),Pt(e,"edgeLabel"),e.emphasis&&(Pt(e.emphasis,"label"),Pt(e.emphasis,"upperLabel"),Pt(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(Bv(t),Yr(t));var r=e.markLine;r&&(Bv(r),Yr(r));var n=e.markArea;n&&Yr(n);var i=e.data;if(e.type==="graph"){i=i||e.nodes;var a=e.links||e.edges;if(a&&!$r(a))for(var o=0;o<a.length;o++)Yr(a[o]);R(e.categories,function(u){xl(u)})}if(i&&!$r(i))for(var o=0;o<i.length;o++)Yr(i[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)Yr(s[o]);if(r=e.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)ge(l[o])?(Yr(l[o][0]),Yr(l[o][1])):Yr(l[o]);e.type==="gauge"?(Pt(e,"axisLabel"),Pt(e,"title"),Pt(e,"detail")):e.type==="treemap"?(Jt(e.breadcrumb,"itemStyle"),R(e.levels,function(u){xl(u)})):e.type==="tree"&&xl(e.leaves)}}function ii(e){return ge(e)?e:e?[e]:[]}function Gw(e){return(ge(e)?e[0]:e)||{}}function cq(e,t){fn(ii(e.series),function(n){Tu(n)&&fq(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),fn(r,function(n){fn(ii(e[n]),function(i){i&&(Pt(i,"axisLabel"),Pt(i.axisPointer,"label"))})}),fn(ii(e.parallel),function(n){var i=n&&n.parallelAxisDefault;Pt(i,"axisLabel"),Pt(i&&i.axisPointer,"label")}),fn(ii(e.calendar),function(n){Jt(n,"itemStyle"),Pt(n,"dayLabel"),Pt(n,"monthLabel"),Pt(n,"yearLabel")}),fn(ii(e.radar),function(n){Pt(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap)}),fn(ii(e.geo),function(n){Tu(n)&&(Yr(n),fn(ii(n.regions),function(i){Yr(i)}))}),fn(ii(e.timeline),function(n){Yr(n),Jt(n,"label"),Jt(n,"itemStyle"),Jt(n,"controlStyle",!0);var i=n.data;ge(i)&&R(i,function(a){De(a)&&(Jt(a,"label"),Jt(a,"itemStyle"))})}),fn(ii(e.toolbox),function(n){Jt(n,"iconStyle"),fn(n.feature,function(i){Jt(i,"iconStyle")})}),Pt(Gw(e.axisPointer),"label"),Pt(Gw(e.tooltip).axisPointer,"label")}function dq(e,t){for(var r=t.split(","),n=e,i=0;i<r.length&&(n=n&&n[r[i]],n!=null);i++);return n}function hq(e,t,r,n){for(var i=t.split(","),a=e,o,s=0;s<i.length-1;s++)o=i[s],a[o]==null&&(a[o]={}),a=a[o];(n||a[i[s]]==null)&&(a[i[s]]=r)}function Uw(e){e&&R(vq,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var vq=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],pq=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Fv=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function nl(e){var t=e&&e.itemStyle;if(t)for(var r=0;r<Fv.length;r++){var n=Fv[r][1],i=Fv[r][0];t[n]!=null&&(t[i]=t[n])}}function Yw(e){e&&e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function qw(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function gq(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(e.emphasis.focus="adjacency"))}function gE(e,t){if(e)for(var r=0;r<e.length;r++)t(e[r]),e[r]&&gE(e[r].children,t)}function mE(e,t){cq(e,t),e.series=lr(e.series),R(e.series,function(r){if(De(r)){var n=r.type;if(n==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(n==="pie"||n==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),Yw(r.label);var i=r.data;if(i&&!$r(i))for(var a=0;a<i.length;a++)Yw(i[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=dq(r,"pointer.color");o!=null&&hq(r,"itemStyle.color",o)}else if(n==="bar"){nl(r),nl(r.backgroundStyle),nl(r.emphasis);var i=r.data;if(i&&!$r(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(nl(i[a]),nl(i[a]&&i[a].emphasis))}else if(n==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),qw(r),gE(r.data,qw)}else n==="graph"||n==="sankey"?gq(r):n==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&ft(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),Uw(r)}}),e.dataRange&&(e.visualMap=e.dataRange),R(pq,function(r){var n=e[r];n&&(ge(n)||(n=[n]),R(n,function(i){Uw(i)}))})}function mq(e){var t=Ge();e.eachSeries(function(r){var n=r.get("stack");if(n){var i=t.get(n)||t.set(n,[]),a=r.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;i.length&&a.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}}),t.each(yq)}function yq(e){R(e,function(t,r){var n=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,f,c){var d=o.get(t.stackedDimension,c);if(isNaN(d))return i;var h,v;s?v=o.getRawIndex(c):h=o.get(t.stackedByDimension,c);for(var p=NaN,g=r-1;g>=0;g--){var m=e[g];if(s||(v=m.data.rawIndexOf(m.stackedByDimension,h)),v>=0){var y=m.data.getByRawIndex(m.stackResultDimension,v);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&d>=0&&y>0||l==="samesign"&&d<=0&&y<0){d=AU(d,y),p=y;break}}}return n[0]=d,n[1]=p,n})})}var vh=function(){function e(t){this.data=t.data||(t.sourceFormat===ei?{}:[]),this.sourceFormat=t.sourceFormat||uE,this.seriesLayoutBy=t.seriesLayoutBy||ci,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var r=this.dimensionsDefine=t.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var i=r[n];i.type==null&&cE(this,n)===Vt.Must&&(i.type="ordinal")}}return e}();function v0(e){return e instanceof vh}function Ug(e,t,r){r=r||yE(e);var n=t.seriesLayoutBy,i=bq(e,r,n,t.sourceHeader,t.dimensions),a=new vh({data:e,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:Ze(t)});return a}function p0(e){return new vh({data:e,sourceFormat:$r(e)?Zi:un})}function _q(e){return new vh({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:Ze(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function yE(e){var t=uE;if($r(e))t=Zi;else if(ge(e)){e.length===0&&(t=Ar);for(var r=0,n=e.length;r<n;r++){var i=e[r];if(i!=null){if(ge(i)){t=Ar;break}else if(De(i)){t=Pn;break}}}}else if(De(e)){for(var a in e)if(Ts(e,a)&&Tr(e[a])){t=ei;break}}return t}function bq(e,t,r,n,i){var a,o;if(!e)return{dimensionsDefine:jw(i),startIndex:o,dimensionsDetectedCount:a};if(t===Ar){var s=e;n==="auto"||n==null?Kw(function(u){u!=null&&u!=="-"&&(Te(u)?o==null&&(o=1):o=0)},r,s,10):o=bt(n)?n:n?1:0,!i&&o===1&&(i=[],Kw(function(u,f){i[f]=u!=null?u+"":""},r,s,1/0)),a=i?i.length:r===$s?s.length:s[0]?s[0].length:null}else if(t===Pn)i||(i=wq(e));else if(t===ei)i||(i=[],R(e,function(u,f){i.push(f)}));else if(t===un){var l=Gu(e[0]);a=ge(l)&&l.length||1}return{startIndex:o,dimensionsDefine:jw(i),dimensionsDetectedCount:a}}function wq(e){for(var t=0,r;t<e.length&&!(r=e[t++]););if(r){var n=[];return R(r,function(i,a){n.push(a)}),n}}function jw(e){if(e){var t=Ge();return Oe(e,function(r,n){r=De(r)?r:{name:r};var i={name:r.name,displayName:r.displayName,type:r.type};if(i.name==null)return i;i.name+="",i.displayName==null&&(i.displayName=i.name);var a=t.get(i.name);return a?i.name+="-"+a.count++:t.set(i.name,{count:1}),i})}}function Kw(e,t,r,n){if(t===$s)for(var i=0;i<r.length&&i<n;i++)e(r[i]?r[i][0]:null,i);else for(var a=r[0]||[],i=0;i<a.length&&i<n;i++)e(a[i],i)}function _E(e){var t=e.sourceFormat;return t===Pn||t===ei}var Da,Ia,Ra,Xw,Zw,bE=function(){function e(t,r){var n=v0(t)?t:p0(t);this._source=n;var i=this._data=n.data;n.sourceFormat===Zi&&(this._offset=0,this._dimSize=r,this._data=i),Zw(this,i,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(t,r){},e.prototype.appendData=function(t){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var t;Zw=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,c=l.startIndex,d=l.dimensionsDefine,h=Xw[g0(u,f)];if(oe(o,h),u===Zi)o.getItem=r,o.count=i,o.fillStorage=n;else{var v=wE(u,f);o.getItem=_t(v,null,s,c,d);var p=xE(u,f);o.count=_t(p,null,s,c,d)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,c=0;c<u;c++)s[c]=l[f+c];return s},n=function(o,s,l,u){for(var f=this._data,c=this._dimSize,d=0;d<c;d++){for(var h=u[d],v=h[0]==null?1/0:h[0],p=h[1]==null?-1/0:h[1],g=s-o,m=l[d],y=0;y<g;y++){var _=f[y*c+d];m[o+y]=_,_<v&&(v=_),_>p&&(p=_)}h[0]=v,h[1]=p}},i=function(){return this._data?this._data.length/this._dimSize:0};Xw=(t={},t[Ar+"_"+ci]={pure:!0,appendData:a},t[Ar+"_"+$s]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Pn]={pure:!0,appendData:a},t[ei]={pure:!0,appendData:function(o){var s=this._data;R(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},t[un]={appendData:a},t[Zi]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),e}(),Qw=function(e,t,r,n){return e[n]},xq=(Da={},Da[Ar+"_"+ci]=function(e,t,r,n){return e[n+t]},Da[Ar+"_"+$s]=function(e,t,r,n,i){n+=t;for(var a=i||[],o=e,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[n]:null}return a},Da[Pn]=Qw,Da[ei]=function(e,t,r,n,i){for(var a=i||[],o=0;o<r.length;o++){var s=r[o].name,l=e[s];a[o]=l?l[n]:null}return a},Da[un]=Qw,Da);function wE(e,t){var r=xq[g0(e,t)];return r}var Jw=function(e,t,r){return e.length},Sq=(Ia={},Ia[Ar+"_"+ci]=function(e,t,r){return Math.max(0,e.length-t)},Ia[Ar+"_"+$s]=function(e,t,r){var n=e[0];return n?Math.max(0,n.length-t):0},Ia[Pn]=Jw,Ia[ei]=function(e,t,r){var n=r[0].name,i=e[n];return i?i.length:0},Ia[un]=Jw,Ia);function xE(e,t){var r=Sq[g0(e,t)];return r}var $v=function(e,t,r){return e[t]},Cq=(Ra={},Ra[Ar]=$v,Ra[Pn]=function(e,t,r){return e[r]},Ra[ei]=$v,Ra[un]=function(e,t,r){var n=Gu(e);return n instanceof Array?n[t]:n},Ra[Zi]=$v,Ra);function SE(e){var t=Cq[e];return t}function g0(e,t){return e===Ar?e+"_"+t:e}function Es(e,t,r){if(e){var n=e.getRawDataItem(t);if(n!=null){var i=e.getStore(),a=i.getSource().sourceFormat;if(r!=null){var o=e.getDimensionIndex(r),s=i.getDimensionProperty(o);return SE(a)(n,o,s)}else{var l=n;return a===un&&(l=Gu(n)),l}}}}var Tq=/\{@(.+?)\}/g,Mq=function(){function e(){}return e.prototype.getDataParams=function(t,r){var n=this.getData(r),i=this.getRawValue(t,r),a=n.getRawIndex(t),o=n.getName(t),s=n.getRawDataItem(t),l=n.getItemVisual(t,"style"),u=l&&l[n.getItemVisual(t,"drawType")||"fill"],f=l&&l.stroke,c=this.mainType,d=c==="series",h=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:o,dataIndex:a,data:s,dataType:r,value:i,color:u,borderColor:f,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(t,r,n,i,a,o){r=r||"normal";var s=this.getData(n),l=this.getDataParams(t,n);if(o&&(l.value=o.interpolatedValue),i!=null&&ge(l.value)&&(l.value=l.value[i]),!a){var u=s.getItemModel(t);a=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(We(a))return l.status=r,l.dimensionIndex=i,a(l);if(Te(a)){var f=oE(a,l);return f.replace(Tq,function(c,d){var h=d.length,v=d;v.charAt(0)==="["&&v.charAt(h-1)==="]"&&(v=+v.slice(1,h-1));var p=Es(s,t,v);if(o&&ge(o.interpolatedValue)){var g=s.getDimensionIndex(v);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},e.prototype.getRawValue=function(t,r){return Es(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function ex(e){var t,r;return De(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function ql(e){return new Aq(e)}var Aq=function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var r=this._upstream,n=t&&t.skip;if(this._dirty&&r){var i=this.context;i.data=i.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(a="reset");function f(y){return!(y>=1)&&(y=1),y}var c;(this._dirty||a==="reset")&&(this._dirty=!1,c=this._doReset(n)),this._modBy=l,this._modDataCount=u;var d=t&&t.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,v=Math.min(d!=null?this._dueIndex+d:1/0,this._dueEnd);if(!n&&(c||h<v)){var p=this._progress;if(ge(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],h,v,l,u);else this._doProgress(p,h,v,l,u)}this._dueIndex=v;var m=this._settedOutputEnd!=null?this._settedOutputEnd:v;this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(t,r,n,i,a){tx.reset(r,n,i,a),this._callingProgress=t,this._callingProgress({start:r,end:n,count:n-r,next:tx.next},this.context)},e.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,n;!t&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(n=r.forceFirstProgress,r=r.progress),ge(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},e}(),tx=function(){var e,t,r,n,i,a={reset:function(l,u,f,c){t=l,e=u,r=f,n=c,i=Math.ceil(n/r),a.next=r>1&&n>0?s:o}};return a;function o(){return t<e?t++:null}function s(){var l=t%i*r+Math.ceil(t/i),u=t>=e?null:l<n?l:t;return t++,u}}();function Lc(e,t){var r=t&&t.type;return r==="ordinal"?e:(r==="time"&&!bt(e)&&e!=null&&e!=="-"&&(e=+_i(e)),e==null||e===""?NaN:+e)}Ge({number:function(e){return parseFloat(e)},time:function(e){return+_i(e)},trim:function(e){return Te(e)?zn(e):e}});var Eq=function(){function e(t,r){var n=t==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,r){var n=bt(t)?t:rd(t),i=bt(r)?r:rd(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=Te(t),l=Te(r);s&&(n=l?t:0),l&&(i=s?r:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},e}(),Pq=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,r){},e.prototype.retrieveValueFromItem=function(t,r){},e.prototype.convertValue=function(t,r){return Lc(t,r)},e}();function Lq(e,t){var r=new Pq,n=e.data,i=r.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==ci&&mr(o);var s=[],l={},u=e.dimensionsDefine;if(u)R(u,function(p,g){var m=p.name,y={index:g,name:m,displayName:p.displayName};if(s.push(y),m!=null){var _="";Ts(l,m)&&mr(_),l[m]=y}});else for(var f=0;f<e.dimensionsDetectedCount;f++)s.push({index:f});var c=wE(i,ci);t.__isBuiltIn&&(r.getRawDataItem=function(p){return c(n,a,s,p)},r.getRawData=_t(Dq,null,e)),r.cloneRawData=_t(Iq,null,e);var d=xE(i,ci);r.count=_t(d,null,n,a,s);var h=SE(i);r.retrieveValue=function(p,g){var m=c(n,a,s,p);return v(m,g)};var v=r.retrieveValueFromItem=function(p,g){if(p!=null){var m=s[g];if(m)return h(p,g,m.name)}};return r.getDimensionInfo=_t(Rq,null,s,l),r.cloneAllDimensionInfo=_t(Oq,null,s),r}function Dq(e){var t=e.sourceFormat;if(!m0(t)){var r="";mr(r)}return e.data}function Iq(e){var t=e.sourceFormat,r=e.data;if(!m0(t)){var n="";mr(n)}if(t===Ar){for(var i=[],a=0,o=r.length;a<o;a++)i.push(r[a].slice());return i}else if(t===Pn){for(var i=[],a=0,o=r.length;a<o;a++)i.push(oe({},r[a]));return i}}function Rq(e,t,r){if(r!=null){if(bt(r)||!isNaN(r)&&!Ts(t,r))return e[r];if(Ts(t,r))return t[r]}}function Oq(e){return Ze(e)}var CE=Ge();function kq(e){e=Ze(e);var t=e.type,r="";t||mr(r);var n=t.split(":");n.length!==2&&mr(r);var i=!1;n[0]==="echarts"&&(t=n[1],i=!0),e.__isBuiltIn=i,CE.set(t,e)}function Nq(e,t,r){var n=lr(e),i=n.length,a="";i||mr(a);for(var o=0,s=i;o<s;o++){var l=n[o];t=Bq(l,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function Bq(e,t,r,n){var i="";t.length||mr(i),De(e)||mr(i);var a=e.type,o=CE.get(a);o||mr(i);var s=Oe(t,function(u){return Lq(u,o)}),l=lr(o.transform({upstream:s[0],upstreamList:s,config:Ze(e.config)}));return Oe(l,function(u,f){var c="";De(u)||mr(c),u.data||mr(c);var d=yE(u.data);m0(d)||mr(c);var h,v=t[0];if(v&&f===0&&!u.dimensions){var p=v.startIndex;p&&(u.data=v.data.slice(0,p).concat(u.data)),h={seriesLayoutBy:ci,sourceHeader:p,dimensions:v.metaRawOption.dimensions}}else h={seriesLayoutBy:ci,sourceHeader:0,dimensions:u.dimensions};return Ug(u.data,h,null)})}function m0(e){return e===Ar||e===Pn}var ph="undefined",Fq=typeof Uint32Array===ph?Array:Uint32Array,$q=typeof Uint16Array===ph?Array:Uint16Array,TE=typeof Int32Array===ph?Array:Int32Array,rx=typeof Float64Array===ph?Array:Float64Array,ME={float:rx,int:TE,ordinal:Array,number:Array,time:rx},Hv;function il(e){return e>65535?Fq:$q}function No(){return[1/0,-1/0]}function Hq(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function nx(e,t,r,n,i){var a=ME[r||"float"];if(i){var o=e[t],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;u<s;u++)l[u]=o[u];e[t]=l}}else e[t]=new a(n)}var Yg=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Ge()}return e.prototype.initData=function(t,r,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),a=this.defaultDimValueGetter=Hv[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[],_E(i),this._dimensions=Oe(r,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,t.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(t,r){var n=this._calcDimNameToIdx,i=this._dimensions,a=n.get(t);if(a!=null){if(i[a].type===r)return a}else a=i.length;return i[a]={type:r},n.set(t,a),this._chunks[a]=new ME[r||"float"](this._rawCount),this._rawExtent[a]=No(),a},e.prototype.collectOrdinalMeta=function(t,r){var n=this._chunks[t],i=this._dimensions[t],a=this._rawExtent,o=i.ordinalOffset||0,s=n.length;o===0&&(a[t]=No());for(var l=a[t],u=o;u<s;u++){var f=n[u]=r.parseAndCollect(n[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}i.ordinalMeta=r,i.ordinalOffset=s,i.type="ordinal"},e.prototype.getOrdinalMeta=function(t){var r=this._dimensions[t],n=r.ordinalMeta;return n},e.prototype.getDimensionProperty=function(t){var r=this._dimensions[t];return r&&r.property},e.prototype.appendData=function(t){var r=this._provider,n=this.count();r.appendData(t);var i=r.count();return r.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},e.prototype.appendValues=function(t,r){for(var n=this._chunks,i=this._dimensions,a=i.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,r||0),u=0;u<a;u++){var f=i[u];nx(n,u,f.type,l,!0)}for(var c=[],d=s;d<l;d++)for(var h=d-s,v=0;v<a;v++){var f=i[v],p=Hv.arrayRows.call(this,t[h]||c,f.property,h,v);n[v][d]=p;var g=o[v];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=Oe(o,function(y){return y.property}),f=0;f<s;f++){var c=o[f];l[f]||(l[f]=No()),nx(a,f,c.type,r,n)}if(i.fillStorage)i.fillStorage(t,r,a,l);else for(var d=[],h=t;h<r;h++){d=i.getItem(h,d);for(var v=0;v<s;v++){var p=a[v],g=this._dimValueGetter(d,u[v],h,v);p[h]=g;var m=l[v];g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,r){if(!(r>=0&&r<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(r)]:NaN},e.prototype.getValues=function(t,r){var n=[],i=[];if(r==null){r=t,t=[];for(var a=0;a<this._dimensions.length;a++)i.push(a)}else i=t;for(var a=0,o=i.length;a<o;a++)n.push(this.get(i[a],r));return n},e.prototype.getByRawIndex=function(t,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[t];return n?n[r]:NaN},e.prototype.getSum=function(t){var r=this._chunks[t],n=0;if(r)for(var i=0,a=this.count();i<a;i++){var o=this.get(t,i);isNaN(o)||(n+=o)}return n},e.prototype.getMedian=function(t){var r=[];this.each([t],function(a){isNaN(a)||r.push(a)});var n=r.sort(function(a,o){return a-o}),i=this.count();return i===0?0:i%2===1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},e.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,n=r[t];if(n!=null&&n<this._count&&n===t)return t;for(var i=0,a=this._count-1;i<=a;){var o=(i+a)/2|0;if(r[o]<t)i=o+1;else if(r[o]>t)a=o-1;else return o}return-1},e.prototype.indicesOfNearest=function(t,r,n){var i=this._chunks,a=i[t],o=[];if(!a)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,f=0,c=this.count();f<c;f++){var d=this.getRawIndex(f),h=r-a[d],v=Math.abs(h);v<=n&&((v<s||v===s&&h>=0&&l<0)&&(s=v,l=h,u=0),h===l&&(o[u++]=f))}return o.length=u,o},e.prototype.getIndices=function(){var t,r=this._indices;if(r){var n=r.constructor,i=this._count;if(n===Array){t=new n(i);for(var a=0;a<i;a++)t[a]=r[a]}else t=new n(r.buffer,0,i)}else{var n=il(this._rawCount);t=new n(this.count());for(var a=0;a<t.length;a++)t[a]=a}return t},e.prototype.filter=function(t,r){if(!this._count)return this;for(var n=this.clone(),i=n.count(),a=il(n._rawCount),o=new a(i),s=[],l=t.length,u=0,f=t[0],c=n._chunks,d=0;d<i;d++){var h=void 0,v=n.getRawIndex(d);if(l===0)h=r(d);else if(l===1){var p=c[f][v];h=r(p,d)}else{for(var g=0;g<l;g++)s[g]=c[t[g]][v];s[g]=d,h=r.apply(null,s)}h&&(o[u++]=v)}return u<i&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(t){var r=this.clone(),n=r._count;if(!n)return this;var i=xt(t),a=i.length;if(!a)return this;var o=r.count(),s=il(r._rawCount),l=new s(o),u=0,f=i[0],c=t[f][0],d=t[f][1],h=r._chunks,v=!1;if(!r._indices){var p=0;if(a===1){for(var g=h[i[0]],m=0;m<n;m++){var y=g[m];(y>=c&&y<=d||isNaN(y))&&(l[u++]=p),p++}v=!0}else if(a===2){for(var g=h[i[0]],_=h[i[1]],b=t[i[1]][0],x=t[i[1]][1],m=0;m<n;m++){var y=g[m],w=_[m];(y>=c&&y<=d||isNaN(y))&&(w>=b&&w<=x||isNaN(w))&&(l[u++]=p),p++}v=!0}}if(!v)if(a===1)for(var m=0;m<o;m++){var S=r.getRawIndex(m),y=h[i[0]][S];(y>=c&&y<=d||isNaN(y))&&(l[u++]=S)}else for(var m=0;m<o;m++){for(var C=!0,S=r.getRawIndex(m),T=0;T<a;T++){var E=i[T],y=h[E][S];(y<t[E][0]||y>t[E][1])&&(C=!1)}C&&(l[u++]=r.getRawIndex(m))}return u<o&&(r._indices=l),r._count=u,r._extent=[],r._updateGetRawIdx(),r},e.prototype.map=function(t,r){var n=this.clone(t);return this._updateDims(n,t,r),n},e.prototype.modify=function(t,r){this._updateDims(this,t,r)},e.prototype._updateDims=function(t,r,n){for(var i=t._chunks,a=[],o=r.length,s=t.count(),l=[],u=t._rawExtent,f=0;f<r.length;f++)u[r[f]]=No();for(var c=0;c<s;c++){for(var d=t.getRawIndex(c),h=0;h<o;h++)l[h]=i[r[h]][d];l[o]=c;var v=n&&n.apply(null,l);if(v!=null){typeof v!="object"&&(a[0]=v,v=a);for(var f=0;f<v.length;f++){var p=r[f],g=v[f],m=u[p],y=i[p];y&&(y[d]=g),g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}}},e.prototype.lttbDownSample=function(t,r){var n=this.clone([t],!0),i=n._chunks,a=i[t],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),f,c,d,h=new(il(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var v=1;v<o-1;v+=l){for(var p=Math.min(v+l,o-1),g=Math.min(v+l*2,o),m=(g+p)/2,y=0,_=p;_<g;_++){var b=this.getRawIndex(_),x=a[b];isNaN(x)||(y+=x)}y/=g-p;var w=v,S=Math.min(v+l,o),C=v-1,T=a[u];f=-1,d=w;for(var E=-1,A=0,_=w;_<S;_++){var b=this.getRawIndex(_),x=a[b];if(isNaN(x)){A++,E<0&&(E=b);continue}c=Math.abs((C-m)*(x-T)-(C-_)*(y-T)),c>f&&(f=c,d=b)}A>0&&A<S-w&&(h[s++]=Math.min(E,d),d=Math.max(E,d)),h[s++]=d,u=d}return h[s++]=this.getRawIndex(o-1),n._count=s,n._indices=h,n.getRawIndex=this._getRawIdx,n},e.prototype.downSample=function(t,r,n,i){for(var a=this.clone([t],!0),o=a._chunks,s=[],l=Math.floor(1/r),u=o[t],f=this.count(),c=a._rawExtent[t]=No(),d=new(il(this._rawCount))(Math.ceil(f/l)),h=0,v=0;v<f;v+=l){l>f-v&&(l=f-v,s.length=l);for(var p=0;p<l;p++){var g=this.getRawIndex(v+p);s[p]=u[g]}var m=n(s),y=this.getRawIndex(Math.min(v+i(s,m)||0,f-1));u[y]=m,m<c[0]&&(c[0]=m),m>c[1]&&(c[1]=m),d[h++]=y}return a._count=h,a._indices=d,a._updateGetRawIdx(),a},e.prototype.each=function(t,r){if(this._count)for(var n=t.length,i=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(n){case 0:r(a);break;case 1:r(i[t[0]][s],a);break;case 2:r(i[t[0]][s],i[t[1]][s],a);break;default:for(var l=0,u=[];l<n;l++)u[l]=i[t[l]][s];u[l]=a,r.apply(null,u)}}},e.prototype.getDataExtent=function(t){var r=this._chunks[t],n=No();if(!r)return n;var i=this.count(),a=!this._indices,o;if(a)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=n;for(var s=o[0],l=o[1],u=0;u<i;u++){var f=this.getRawIndex(u),c=r[f];c<s&&(s=c),c>l&&(l=c)}return o=[s,l],this._extent[t]=o,o},e.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],i=this._chunks,a=0;a<i.length;a++)n.push(i[a][r]);return n},e.prototype.clone=function(t,r){var n=new e,i=this._chunks,a=t&&ta(t,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?Hq(i[o]):i[o];else n._chunks=i;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},e.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=Ze(this._extent),t._rawExtent=Ze(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,r=void 0;if(t===Array){var n=this._indices.length;r=new t(n);for(var i=0;i<n;i++)r[i]=this._indices[i]}else r=new t(this._indices);return r}return null},e.prototype._getRawIdxIdentity=function(t){return t},e.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function t(r,n,i,a){return Lc(r[a],this._dimensions[a])}Hv={arrayRows:t,objectRows:function(r,n,i,a){return Lc(r[n],this._dimensions[a])},keyedColumns:t,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return Lc(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),e}(),zq=function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,r){this._sourceList=t,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,i,a;if(kf(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var f=r[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),l=$r(s)?Zi:un,a=[];var c=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},h=je(c.seriesLayoutBy,d.seriesLayoutBy)||null,v=je(c.sourceHeader,d.sourceHeader),p=je(c.dimensions,d.dimensions),g=h!==d.seriesLayoutBy||!!v!=!!d.sourceHeader||p;i=g?[Ug(s,{seriesLayoutBy:h,sourceHeader:v,dimensions:p},l)]:[]}else{var m=t;if(n){var y=this._applyTransform(r);i=y.sourceList,a=y.upstreamSignList}else{var _=m.get("source",!0);i=[Ug(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},e.prototype._applyTransform=function(t){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(i!=null){var a="";t.length!==1&&ix(a)}var o,s=[],l=[];return R(t,function(u){u.prepareSource();var f=u.getSource(i||0),c="";i!=null&&!f&&ix(c),s.push(f),l.push(u._getVersionSign())}),n?o=Nq(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[_q(s[0])]),{sourceList:o,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r<t.length;r++){var n=t[r];if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},e.prototype.getSource=function(t){t=t||0;var r=this._sourceList[t];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return r},e.prototype.getSharedDataStore=function(t){var r=t.makeStoreSchema();return this._innerGetDataStore(r.dimensions,t.source,r.hash)},e.prototype._innerGetDataStore=function(t,r,n){var i=0,a=this._storeList,o=a[i];o||(o=a[i]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];kf(this._sourceHost)&&l?s=l._innerGetDataStore(t,r,n):(s=new Yg,s.initData(new bE(r,t.length),t)),o[n]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(kf(t)){var r=c0(t);return r?[r.getSourceManager()]:[]}else return Oe(U7(t),function(n){return n.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,r,n,i;if(kf(t))r=t.get("seriesLayoutBy",!0),n=t.get("sourceHeader",!0),i=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=t;r=a.get("seriesLayoutBy",!0),n=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:i}},e}();function kf(e){return e.mainType==="series"}function ix(e){throw new Error(e)}var AE="line-height:1";function EE(e,t){var r=e.color||"#6e7079",n=e.fontSize||12,i=e.fontWeight||"400",a=e.color||"#464646",o=e.fontSize||14,s=e.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+Kr(n+"")+"px;color:"+Kr(r)+";font-weight:"+Kr(i+""),valueStyle:"font-size:"+Kr(o+"")+"px;color:"+Kr(a)+";font-weight:"+Kr(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var Wq=[0,10,20,30],Vq=["",`
 `,`
 
 `,`
 
 
-`];function Mu(e,t){return t.type=e,t}function qg(e){return e.type==="section"}function EE(e){return qg(e)?Vq:Gq}function PE(e){if(qg(e)){var t=0,r=e.blocks.length,n=r>1||r>0&&!e.noHeader;return R(e.blocks,function(i){var a=PE(i);a>=t&&(t=a+ +(n&&(!a||qg(i)&&!i.noHeader)))}),t}return 0}function Vq(e,t,r,n){var i=t.noHeader,a=Uq(PE(t)),o=[],s=t.blocks||[];mi(!s||ge(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Ts(u,l)){var f=new Aq(u[l],null);s.sort(function(v,p){return f.evaluate(v.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}R(s,function(v,p){var g=t.valueFormatter,m=EE(v)(g?oe(oe({},e),{valueFormatter:g}):e,v,p>0?a.html:0,n);m!=null&&o.push(m)});var c=e.renderMode==="richText"?o.join(a.richText):jg(o.join(""),i?r:a.html);if(i)return c;var d=Gg(t.header,"ordinal",e.useUTC),h=AE(n,e.renderMode).nameStyle;return e.renderMode==="richText"?LE(e,d,h)+a.richText+c:jg('<div style="'+h+";"+ME+';">'+Kr(d)+"</div>"+c,r)}function Gq(e,t,r,n){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,f=t.valueFormatter||e.valueFormatter||function(b){return b=ge(b)?b:[b],Oe(b,function(x,w){return Gg(x,ge(h)?h[w]:h,u)})};if(!(a&&o)){var c=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),d=a?"":Gg(l,"ordinal",u),h=t.valueType,v=o?[]:f(t.value),p=!s||!a,g=!s&&a,m=AE(n,i),y=m.nameStyle,_=m.valueStyle;return i==="richText"?(s?"":c)+(a?"":LE(e,d,y))+(o?"":jq(e,v,p,g,_)):jg((s?"":c)+(a?"":Yq(d,!s,y))+(o?"":qq(v,p,g,_)),r)}}function ax(e,t,r,n,i,a){if(e){var o=EE(e),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)}}function Uq(e){return{html:zq[e],richText:Wq[e]}}function jg(e,t){var r='<div style="clear:both"></div>',n="margin: "+t+"px 0 0";return'<div style="'+n+";"+ME+';">'+e+r+"</div>"}function Yq(e,t,r){var n=t?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+Kr(e)+"</span>"}function qq(e,t,r,n){var i=r?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return e=ge(e)?e:[e],'<span style="'+a+";"+n+'">'+Oe(e,function(o){return Kr(o)}).join("&nbsp;&nbsp;")+"</span>"}function LE(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function jq(e,t,r,n,i){var a=[i],o=n?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(ge(t)?t.join("  "):t,a)}function Kq(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return Su(n)}function DE(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var zv=function(){function e(){this.richTextStyles={},this._nextStyleNameId=FA()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var i=n==="richText"?this._generateStyleName():null,a=k7({color:r,type:t,renderMode:n,markerId:i});return Ce(a)?a:(this.richTextStyles[i]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};ge(r)?R(r,function(a){return oe(n,a)}):oe(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},e}();function Xq(e){var t=e.series,r=e.dataIndex,n=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(r),l=ge(s),u=Kq(t,r),f,c,d,h;if(o>1||l&&!o){var v=Zq(s,t,r,a,u);f=v.inlineValues,c=v.inlineValueTypes,d=v.blocks,h=v.inlineValues[0]}else if(o){var p=i.getDimensionInfo(a[0]);h=f=Es(i,r,a[0]),c=p.type}else h=f=l?s[0]:s;var g=Wy(t),m=g&&t.name||"",y=i.getName(r),_=n?m:y;return Mu("section",{header:m,noHeader:n||!g,sortParam:h,blocks:[Mu("nameValue",{markerType:"item",markerColor:u,name:_,noName:!zn(_),value:f,valueType:c})].concat(d||[])})}function Zq(e,t,r,n,i){var a=t.getData(),o=ea(e,function(c,d,h){var v=a.getDimensionInfo(h);return c=c||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],u=[];n.length?R(n,function(c){f(Es(a,r,c),c)}):R(e,f);function f(c,d){var h=a.getDimensionInfo(d);!h||h.otherDims.tooltip===!1||(o?u.push(Mu("nameValue",{markerType:"subItem",markerColor:i,name:h.displayName,value:c,valueType:h.type})):(s.push(c),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Ii=Tt();function kf(e,t){return e.getName(t)||e.getId(t)}var Qq="__universalTransitionEnabled",gh=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,n,i){this.seriesIndex=this.componentIndex,this.dataTask=ql({count:ej,reset:tj}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=Ii(this).sourceManager=new Hq(this);a.prepareSource();var o=this.getInitialData(r,i);sx(o,this),this.dataTask.context.data=o,Ii(this).dataBeforeProcessed=o,ox(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=Cu(this),a=i?hh(r):{},o=this.subType;bt.hasClass(o)&&(o+="Series"),it(r,n.getTheme().get(this.subType)),it(r,this.getDefaultOption()),Pg(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&As(r,a,i)},t.prototype.mergeOption=function(r,n){r=it(this.option,r,!0),this.fillDataTextStyle(r.data);var i=Cu(this);i&&As(this.option,r,i);var a=Ii(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);sx(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Ii(this).dataBeforeProcessed=o,ox(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!$r(r))for(var n=["show"],i=0;i<r.length;i++)r[i]&&r[i].label&&Pg(r[i],"label",n)},t.prototype.getInitialData=function(r,n){},t.prototype.appendData=function(r){var n=this.getRawData();n.appendData(r.data)},t.prototype.getData=function(r){var n=Kg(this);if(n){var i=n.context.data;return r==null?i:i.getLinkedData(r)}else return Ii(this).data},t.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},t.prototype.setData=function(r){var n=Kg(this);if(n){var i=n.context;i.outputData=r,n!==this.dataTask&&(i.data=r)}Ii(this).data=r},t.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return Ge(r)},t.prototype.getSourceManager=function(){return Ii(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Ii(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},t.prototype.formatTooltip=function(r,n,i){return Xq({series:this,dataIndex:r,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(Ve.node&&!(r&&r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(r,n,i){var a=this.ecModel,o=d0.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),o},t.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},t.prototype.unselect=function(r,n){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var l=r[s],u=kf(o,l);i[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(r,n){for(var i=[],a=0;a<r.length;a++)i[0]=r[a],this.isSelected(r[a],n)?this.unselect(i,n):this.select(i,n)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=xt(r),i=[],a=0;a<n.length;a++){var o=r[n[a]];o>=0&&i.push(o)}return i},t.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[kf(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Qq])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,n){var i,a,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){Pe(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var c=n[f],d=kf(r,c);u[d]=!0,this._selectedDataIndicesMap[d]=r.getRawIndex(c)}}else if(s==="single"||s===!0){var h=n[l-1],d=kf(r,h);o.selectedMap=(i={},i[d]=!0,i),this._selectedDataIndicesMap=(a={},a[d]=r.getRawIndex(h),a)}}},t.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(i){var a=r.getRawDataItem(i);a&&a.selected&&n.push(i)}),n.length>0&&this._innerSelect(r,n)}},t.registerClass=function(r){return bt.registerClass(r)},t.protoInitialize=function(){var r=t.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),t}(bt);Qn(gh,Tq);Qn(gh,d0);GA(gh,bt);function ox(e){var t=e.name;Wy(e)||(e.name=Jq(e)||t)}function Jq(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return R(r,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function ej(e){return e.model.getRawData().count()}function tj(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),rj}function rj(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function sx(e,t){R(QV(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,Dt(nj,t))})}function nj(e,t){var r=Kg(e);return r&&r.setOutputEnd((t||this).count()),t}function Kg(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(e.uid))}return n}}const po=gh;var y0=function(){function e(){this.group=new sn,this.uid=oh("viewComponent")}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){},e.prototype.updateLayout=function(t,r,n,i){},e.prototype.updateVisual=function(t,r,n,i){},e.prototype.toggleBlurSeries=function(t,r,n){},e.prototype.eachRendered=function(t){var r=this.group;r&&r.traverse(t)},e}();Gy(y0);eh(y0);const _i=y0;function IE(){var e=Tt();return function(t){var r=e(t),n=t.pipelineContext,i=!!r.large,a=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var RE=Tt(),ij=IE(),_0=function(){function e(){this.group=new sn,this.uid=oh("viewChart"),this.renderTask=ql({plan:aj,reset:oj}),this.renderTask.context={view:this}}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.highlight=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&ux(a,i,"emphasis")},e.prototype.downplay=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&ux(a,i,"normal")},e.prototype.remove=function(t,r){this.group.removeAll()},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateLayout=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateVisual=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.eachRendered=function(t){n0(this.group,t)},e.markUpdateMethod=function(t,r){RE(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function lx(e,t,r){e&&$g(e)&&(t==="emphasis"?Og:kg)(e,r)}function ux(e,t,r){var n=Gu(e,t),i=t&&t.highlightKey!=null?cY(t.highlightKey):null;n!=null?R(lr(n),function(a){lx(e.getItemGraphicEl(a),r,i)}):e.eachItemGraphicEl(function(a){lx(a,r,i)})}Gy(_0);eh(_0);function aj(e){return ij(e.model)}function oj(e){var t=e.model,r=e.ecModel,n=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&RE(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,r,n,i),sj[l]}var sj={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const io=_0;var ld="\0__throttleOriginMethod",fx="\0__throttleRate",cx="\0__throttleType";function b0(e,t,r){var n,i=0,a=0,o=null,s,l,u,f;t=t||0;function c(){a=new Date().getTime(),o=null,e.apply(l,u||[])}var d=function(){for(var h=[],v=0;v<arguments.length;v++)h[v]=arguments[v];n=new Date().getTime(),l=this,u=h;var p=f||t,g=f||r;f=null,s=n-(g?i:a)-p,clearTimeout(o),g?o=setTimeout(c,p):s>=0?c():o=setTimeout(c,-s),i=n};return d.clear=function(){o&&(clearTimeout(o),o=null)},d.debounceNextCall=function(h){f=h},d}function OE(e,t,r,n){var i=e[t];if(i){var a=i[ld]||i,o=i[cx],s=i[fx];if(s!==r||o!==n){if(r==null||!n)return e[t]=a;i=e[t]=b0(a,r,n==="debounce"),i[ld]=a,i[cx]=n,i[fx]=r}return i}}function Xg(e,t){var r=e[t];r&&r[ld]&&(r.clear&&r.clear(),e[t]=r[ld])}var dx=Tt(),hx={itemStyle:_u(U2,!0),lineStyle:_u(G2,!0)},lj={lineStyle:"stroke",itemStyle:"fill"};function kE(e,t){var r=e.visualStyleMapper||hx[t];return r||(console.warn("Unknown style type '"+t+"'."),hx.itemStyle)}function NE(e,t){var r=e.visualDrawType||lj[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var uj={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=e.getModel(n),a=kE(e,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=NE(e,n),u=o[l],f=We(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[l]||(o[l]=d,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||We(o.fill)?d:o.fill,o.stroke=o.stroke==="auto"||We(o.stroke)?d:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!t.isSeriesFiltered(e)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(h,v){var p=e.getDataParams(v),g=oe({},o);g[l]=f(p),h.setItemVisual(v,"style",g)}}}},al=new er,fj={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=kE(e,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){al.option=l[n];var u=i(al),f=o.ensureUniqueItemVisual(s,"style");oe(f,u),al.option.decal&&(o.setItemVisual(s,"decal",al.option.decal),al.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},cj={performRawSeries:!0,overallReset:function(e){var t=Ge();e.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var i=r.type+"-"+n,a=t.get(i);a||(a={},t.set(i,a)),dx(r).scope=a}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=dx(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=NE(r,s);a.each(function(u){var f=a.getRawIndex(u);i[f]=u}),n.each(function(u){var f=i[u],c=a.getItemVisual(f,"colorFromPalette");if(c){var d=a.ensureUniqueItemVisual(f,"style"),h=n.getName(u)||u+"",v=n.count();d[l]=r.getColorFromPalette(h,o,v)}})}})}},Nf=Math.PI;function dj(e,t){t=t||{},ut(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var r=new sn,n=new Nt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var i=new fr({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new Nt({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(a);var o;return t.showSpinner&&(o=new Zy({shape:{startAngle:-Nf/2,endAngle:-Nf/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Nf*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Nf*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(e.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),f=e.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:f}),a.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var hj=function(){function e(t,r,n,i){this._stageTaskMap=Ge(),this.ecInstance=t,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return e.prototype.restoreData=function(t,r){t.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},e.prototype.getPerformArgs=function(t,r){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,a=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,r){var n=this._pipelineMap.get(t.uid),i=t.getData(),a=i.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&a>=n.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},e.prototype.restorePipelines=function(t){var r=this,n=r._pipelineMap=Ge();t.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),r._pipe(i,i.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),n=this.api;R(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";mi(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},e.prototype.prepareView=function(t,r,n,i){var a=t.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!t.incrementalPrepareRender,this._pipe(r,a)},e.prototype.performDataProcessorTasks=function(t,r){this._performStageTasks(this._dataProcessorHandlers,t,r,{block:!0})},e.prototype.performVisualTasks=function(t,r,n){this._performStageTasks(this._visualHandlers,t,r,n)},e.prototype._performStageTasks=function(t,r,n,i){i=i||{};var a=!1,o=this;R(t,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,d=f.overallTask;if(d){var h,v=d.agentStubMap;v.each(function(g){s(i,g)&&(g.dirty(),h=!0)}),h&&d.dirty(),o.updatePayload(d,n);var p=o.getPerformArgs(d,i.block);v.each(function(g){g.perform(p)}),d.perform(p)&&(a=!0)}else c&&c.each(function(g,m){s(i,g)&&g.dirty();var y=o.getPerformArgs(g,i.block);y.skip=!l.performRawSeries&&r.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(y)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},e.prototype.performSeriesTasks=function(t){var r;t.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var r=t.tail;do{if(r.__block){t.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},e.prototype.updatePayload=function(t,r){r!=="remain"&&(t.context.payload=r)},e.prototype._createSeriesStageTask=function(t,r,n,i){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=Ge(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,i).each(f);function f(c){var d=c.uid,h=s.set(d,o&&o.get(d)||ql({plan:yj,reset:_j,count:wj}));h.context={model:c,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(c,h)}},e.prototype._createOverallStageTask=function(t,r,n,i){var a=this,o=r.overallTask=r.overallTask||ql({reset:vj});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=Ge(),u=t.seriesType,f=t.getTargetSeries,c=!0,d=!1,h="";mi(!t.createOnAllSeries,h),u?n.eachRawSeriesByType(u,v):f?f(n,i).each(v):(c=!1,R(n.getSeries(),v));function v(p){var g=p.uid,m=l.set(g,s&&s.get(g)||(d=!0,ql({reset:pj,onDirty:mj})));m.context={model:p,overallProgress:c},m.agent=o,m.__block=c,a._pipe(p,m)}d&&o.dirty()},e.prototype._pipe=function(t,r){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=r),i.tail&&i.tail.pipe(r),i.tail=r,r.__idxInPipeline=i.count++,r.__pipeline=i},e.wrapStageHandler=function(t,r){return We(t)&&(t={overallReset:t,seriesType:xj(t)}),t.uid=oh("stageHandler"),r&&(t.visualType=r),t},e}();function vj(e){e.overallReset(e.ecModel,e.api,e.payload)}function pj(e){return e.overallProgress&&gj}function gj(){this.agent.dirty(),this.getDownstream().dirty()}function mj(){this.agent&&this.agent.dirty()}function yj(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function _j(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=lr(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Oe(t,function(r,n){return BE(n)}):bj}var bj=BE(0);function BE(e){return function(t,r){var n=r.data,i=r.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a<t.end;a++)i.dataEach(n,a);else i&&i.progress&&i.progress(t,n)}}function wj(e){return e.data.count()}function xj(e){ud=null;try{e(Au,FE)}catch{}return ud}var Au={},FE={},ud;$E(Au,hE);$E(FE,vE);Au.eachSeriesByType=Au.eachRawSeriesByType=function(e){ud=e};Au.eachComponent=function(e){e.mainType==="series"&&e.subType&&(ud=e.subType)};function $E(e,t){for(var r in t.prototype)e[r]=Sr}const HE=hj;var vx=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const Sj={color:vx,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],vx]};var nr="#B9B8CE",px="#100C2A",Bf=function(){return{axisLine:{lineStyle:{color:nr}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},gx=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],zE={darkMode:!0,color:gx,backgroundColor:px,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:nr}},textStyle:{color:nr},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:nr}},dataZoom:{borderColor:"#71708A",textStyle:{color:nr},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:nr}},timeline:{lineStyle:{color:nr},label:{color:nr},controlStyle:{color:nr,borderColor:nr}},calendar:{itemStyle:{color:px},dayLabel:{color:nr},monthLabel:{color:nr},yearLabel:{color:nr}},timeAxis:Bf(),logAxis:Bf(),valueAxis:Bf(),categoryAxis:Bf(),line:{symbol:"circle"},graph:{color:gx},gauge:{title:{color:nr},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:nr},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};zE.categoryAxis.splitLine.show=!1;const Cj=zE;var Tj=function(){function e(){}return e.prototype.normalizeQuery=function(t){var r={},n={},i={};if(Ce(t)){var a=Wn(t);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};R(t,function(l,u){for(var f=!1,c=0;c<o.length;c++){var d=o[c],h=u.lastIndexOf(d);if(h>0&&h===u.length-d.length){var v=u.slice(0,h);v!=="data"&&(r.mainType=v,r[d.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(i[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},e.prototype.filter=function(t,r){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,a,"name")&&f(u,a,"dataIndex")&&f(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,r.otherQuery,i,a));function f(c,d,h,v){return c[h]==null||d[v||h]===c[h]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),Zg=["symbol","symbolSize","symbolRotate","symbolOffset"],mx=Zg.concat(["symbolKeepAspect"]),Mj={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData();if(e.legendIcon&&r.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o<Zg.length;o++){var s=Zg[o],l=e.get(s);We(l)?(a=!0,i[s]=l):n[s]=l}if(n.symbol=n.symbol||e.defaultSymbol,r.setVisual(oe({legendIcon:e.legendIcon||n.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},n)),t.isSeriesFiltered(e))return;var u=xt(i);function f(c,d){for(var h=e.getRawValue(d),v=e.getDataParams(d),p=0;p<u.length;p++){var g=u[p];c.setItemVisual(d,g,i[g](h,v))}}return{dataEach:a?f:null}}},Aj={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var r=e.getData();function n(i,a){for(var o=i.getItemModel(a),s=0;s<mx.length;s++){var l=mx[s],u=o.getShallow(l,!0);u!=null&&i.setItemVisual(a,l,u)}}return{dataEach:r.hasItemOption?n:null}}};function Ej(e,t,r){switch(r){case"color":var n=e.getItemVisual(t,"style");return n[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,r)}}function Pj(e,t){switch(t){case"color":var r=e.getVisual("style");return r[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t)}}function Lj(e,t){function r(n,i){var a=[];return n.eachComponent({mainType:"series",subType:e,query:i},function(o){a.push(o.seriesIndex)}),a}R([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],function(n){t(n[0],function(i,a,o){i=oe({},i),o.dispatchAction(oe(i,{type:n[1],seriesIndex:r(a,i)}))})})}function Bo(e,t,r,n,i){var a=e+t;r.isSilent(a)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=i.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var c=o.getData(),d=Gu(c,i.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:ge(d)?c.getName(d[0]):c.getName(d),selected:Ce(l)?l:oe({},l)})}})}function Dj(e,t,r){e.on("selectchanged",function(n){var i=r.getModel();n.isFromClick?(Bo("map","selectchanged",t,i,n),Bo("pie","selectchanged",t,i,n)):n.fromAction==="select"?(Bo("map","selected",t,i,n),Bo("pie","selected",t,i,n)):n.fromAction==="unselect"&&(Bo("map","unselected",t,i,n),Bo("pie","unselected",t,i,n))})}function Sl(e,t,r){for(var n;e&&!(t(e)&&(n=e,r));)e=e.__hostTarget||e.parent;return n}var Ij=Math.round(Math.random()*9),Rj=typeof Object.defineProperty=="function",Oj=function(){function e(){this._id="__ec_inner_"+Ij++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,r){var n=this._guard(t);return Rj?Object.defineProperty(n,this._id,{value:r,enumerable:!1,configurable:!0}):n[this._id]=r,this},e.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},e.prototype.has=function(t){return!!this._guard(t)[this._id]},e.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},e}();const kj=Oj;var Nj=ft.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,i=t.width/2,a=t.height/2;e.moveTo(r,n-a),e.lineTo(r+i,n+a),e.lineTo(r-i,n+a),e.closePath()}}),Bj=ft.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,i=t.width/2,a=t.height/2;e.moveTo(r,n-a),e.lineTo(r+i,n),e.lineTo(r,n+a),e.lineTo(r-i,n),e.closePath()}}),Fj=ft.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.x,n=t.y,i=t.width/5*3,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),l=n-a+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,c=Math.sin(u),d=Math.cos(u),h=o*.6,v=o*.7;e.moveTo(r-f,l+s),e.arc(r,l,o,Math.PI-u,Math.PI*2+u),e.bezierCurveTo(r+f-c*h,l+s+d*h,r,n-v,r,n),e.bezierCurveTo(r,n-v,r-f+c*h,l+s+d*h,r-f,l+s),e.closePath()}}),$j=ft.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.height,n=t.width,i=t.x,a=t.y,o=n/3*2;e.moveTo(i,a),e.lineTo(i+o,a+r),e.lineTo(i,a+r/4*3),e.lineTo(i-o,a+r),e.lineTo(i,a),e.closePath()}}),Hj={line:vo,rect:Nt,roundRect:Nt,square:Nt,circle:Xy,diamond:Bj,pin:Fj,arrow:$j,triangle:Nj},zj={line:function(e,t,r,n,i){i.x1=e,i.y1=t+n/2,i.x2=e+r,i.y2=t+n/2},rect:function(e,t,r,n,i){i.x=e,i.y=t,i.width=r,i.height=n},roundRect:function(e,t,r,n,i){i.x=e,i.y=t,i.width=r,i.height=n,i.r=Math.min(r,n)/4},square:function(e,t,r,n,i){var a=Math.min(r,n);i.x=e,i.y=t,i.width=a,i.height=a},circle:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.r=Math.min(r,n)/2},diamond:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.width=r,i.height=n},pin:function(e,t,r,n,i){i.x=e+r/2,i.y=t+n/2,i.width=r,i.height=n},arrow:function(e,t,r,n,i){i.x=e+r/2,i.y=t+n/2,i.width=r,i.height=n},triangle:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.width=r,i.height=n}},Qg={};R(Hj,function(e,t){Qg[t]=new e});var Wj=ft.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,r){var n=Jc(e,t,r),i=this.shape;return i&&i.symbolType==="pin"&&t.position==="inside"&&(n.y=r.y+r.height*.4),n},buildPath:function(e,t,r){var n=t.symbolType;if(n!=="none"){var i=Qg[n];i||(n="rect",i=Qg[n]),zj[n](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,r)}}});function Vj(e,t){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=e,r.fill=t||"#fff",r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=e:r.fill=e,this.markRedraw()}}function w0(e,t,r,n,i,a,o){var s=e.indexOf("empty")===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var l;return e.indexOf("image://")===0?l=B2(e.slice(8),new et(t,r,n,i),o?"center":"cover"):e.indexOf("path://")===0?l=Jy(e.slice(7),{},new et(t,r,n,i),o?"center":"cover"):l=new Wj({shape:{symbolType:e,x:t,y:r,width:n,height:i}}),l.__isEmptyBrush=s,l.setColor=Vj,a&&l.setColor(a),l}function Gj(e,t){if(e!=null)return ge(e)||(e=[e,e]),[pt(e[0],t[0])||0,pt(qe(e[1],e[0]),t[1])||0]}function Xa(e){return isFinite(e)}function Uj(e,t,r){var n=t.x==null?0:t.x,i=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(n=n*r.width+r.x,i=i*r.width+r.x,a=a*r.height+r.y,o=o*r.height+r.y),n=Xa(n)?n:0,i=Xa(i)?i:1,a=Xa(a)?a:0,o=Xa(o)?o:0;var s=e.createLinearGradient(n,a,i,o);return s}function Yj(e,t,r){var n=r.width,i=r.height,a=Math.min(n,i),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(o=o*n+r.x,s=s*i+r.y,l=l*a),o=Xa(o)?o:.5,s=Xa(s)?s:.5,l=l>=0&&Xa(l)?l:.5;var u=e.createRadialGradient(o,s,0,o,s,l);return u}function Jg(e,t,r){for(var n=t.type==="radial"?Yj(e,t,r):Uj(e,t,r),i=t.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function qj(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!0;return!1}function Ff(e){return parseInt(e,10)}function $f(e,t,r){var n=["width","height"][t],i=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(e);return(e[i]||Ff(s[n])||Ff(e.style[n]))-(Ff(s[a])||0)-(Ff(s[o])||0)|0}function jj(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:_t(e)?[e]:ge(e)?e:null}function WE(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&jj(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(r){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(r=Oe(r,function(a){return a/i}),n/=i)}return[r,n]}var Kj=new ho(!0);function fd(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function yx(e){return typeof e=="string"&&e!=="none"}function cd(e){var t=e.fill;return t!=null&&t!=="none"}function _x(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function bx(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function em(e,t,r){var n=UA(t.image,t.__image,r);if(th(n)){var i=e.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*JV),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function Xj(e,t,r,n){var i,a=fd(r),o=cd(r),s=r.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var f=t.path||Kj,c=t.__dirty;if(!n){var d=r.fill,h=r.stroke,v=o&&!!d.colorStops,p=a&&!!h.colorStops,g=o&&!!d.image,m=a&&!!h.image,y=void 0,_=void 0,b=void 0,x=void 0,w=void 0;(v||p)&&(w=t.getBoundingRect()),v&&(y=c?Jg(e,d,w):t.__canvasFillGradient,t.__canvasFillGradient=y),p&&(_=c?Jg(e,h,w):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),g&&(b=c||!t.__canvasFillPattern?em(e,d,t):t.__canvasFillPattern,t.__canvasFillPattern=b),m&&(x=c||!t.__canvasStrokePattern?em(e,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=b),v?e.fillStyle=y:g&&(b?e.fillStyle=b:o=!1),p?e.strokeStyle=_:m&&(x?e.strokeStyle=x:a=!1)}var S=t.getGlobalScale();f.setScale(S[0],S[1],t.segmentIgnoreThreshold);var C,T;e.setLineDash&&r.lineDash&&(i=WE(t),C=i[0],T=i[1]);var E=!0;(u||c&Vo)&&(f.setDPR(e.dpr),l?f.setContext(null):(f.setContext(e),E=!1),f.reset(),t.buildPath(f,t.shape,n),f.toStatic(),t.pathUpdated()),E&&f.rebuildPath(e,l?s:1),C&&(e.setLineDash(C),e.lineDashOffset=T),n||(r.strokeFirst?(a&&bx(e,r),o&&_x(e,r)):(o&&_x(e,r),a&&bx(e,r))),C&&e.setLineDash([])}function Zj(e,t,r){var n=t.__image=UA(r.image,t.__image,t,t.onload);if(!(!n||!th(n))){var i=r.x||0,a=r.y||0,o=t.getWidth(),s=t.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var u=r.sx||0,f=r.sy||0;e.drawImage(n,u,f,r.sWidth,r.sHeight,i,a,o,s)}else if(r.sx&&r.sy){var u=r.sx,f=r.sy,c=o-u,d=s-f;e.drawImage(n,u,f,c,d,i,a,o,s)}else e.drawImage(n,i,a,o,s)}}function Qj(e,t,r){var n,i=r.text;if(i!=null&&(i+=""),i){e.font=r.font||co,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=WE(t),a=n[0],o=n[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(fd(r)&&e.strokeText(i,r.x,r.y),cd(r)&&e.fillText(i,r.x,r.y)):(cd(r)&&e.fillText(i,r.x,r.y),fd(r)&&e.strokeText(i,r.x,r.y)),a&&e.setLineDash([])}}var xx=["shadowBlur","shadowOffsetX","shadowOffsetY"],Sx=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function VE(e,t,r,n,i){var a=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){yr(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?ro.opacity:o}(n||t.blend!==r.blend)&&(a||(yr(e,i),a=!0),e.globalCompositeOperation=t.blend||ro.blend);for(var s=0;s<xx.length;s++){var l=xx[s];(n||t[l]!==r[l])&&(a||(yr(e,i),a=!0),e[l]=e.dpr*(t[l]||0))}return(n||t.shadowColor!==r.shadowColor)&&(a||(yr(e,i),a=!0),e.shadowColor=t.shadowColor||ro.shadowColor),a}function Cx(e,t,r,n,i){var a=Eu(t,i.inHover),o=n?null:r&&Eu(r,i.inHover)||{};if(a===o)return!1;var s=VE(e,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(yr(e,i),s=!0),yx(a.fill)&&(e.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(yr(e,i),s=!0),yx(a.stroke)&&(e.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(yr(e,i),s=!0),e.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==u&&(s||(yr(e,i),s=!0),e.lineWidth=u)}for(var f=0;f<Sx.length;f++){var c=Sx[f],d=c[0];(n||a[d]!==o[d])&&(s||(yr(e,i),s=!0),e[d]=a[d]||c[1])}return s}function Jj(e,t,r,n,i){return VE(e,Eu(t,i.inHover),r&&Eu(r,i.inHover),n,i)}function GE(e,t){var r=t.transform,n=e.dpr||1;r?e.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):e.setTransform(n,0,0,n,0,0)}function eK(e,t,r){for(var n=!1,i=0;i<e.length;i++){var a=e[i];n=n||a.isZeroArea(),GE(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}r.allClipped=n}function tK(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}var Tx=1,Mx=2,Ax=3,Ex=4;function rK(e){var t=cd(e),r=fd(e);return!(e.lineDash||!(+t^+r)||t&&typeof e.fill!="string"||r&&typeof e.stroke!="string"||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function yr(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function Eu(e,t){return t&&e.__hoverStyle||e.style}function UE(e,t){Za(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Za(e,t,r,n){var i=t.transform;if(!t.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){t.__dirty&=~Ir,t.__isRendered=!1;return}var a=t.__clipPaths,o=r.prevElClipPaths,s=!1,l=!1;if((!o||qj(a,o))&&(o&&o.length&&(yr(e,r),e.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),a&&a.length&&(yr(e,r),e.save(),eK(a,e,r),s=!0),r.prevElClipPaths=a),r.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var f=t instanceof ft&&t.autoBatch&&rK(t.style);s||tK(i,u.transform)?(yr(e,r),GE(e,t)):f||yr(e,r);var c=Eu(t,r.inHover);t instanceof ft?(r.lastDrawType!==Tx&&(l=!0,r.lastDrawType=Tx),Cx(e,t,u,l,r),(!f||!r.batchFill&&!r.batchStroke)&&e.beginPath(),Xj(e,t,c,f),f&&(r.batchFill=c.fill||"",r.batchStroke=c.stroke||"")):t instanceof Rg?(r.lastDrawType!==Ax&&(l=!0,r.lastDrawType=Ax),Cx(e,t,u,l,r),Qj(e,t,c)):t instanceof Bs?(r.lastDrawType!==Mx&&(l=!0,r.lastDrawType=Mx),Jj(e,t,u,l,r),Zj(e,t,c)):t.getTemporalDisplayables&&(r.lastDrawType!==Ex&&(l=!0,r.lastDrawType=Ex),nK(e,t,r)),f&&n&&yr(e,r),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),r.prevEl=t,t.__dirty=0,t.__isRendered=!0}function nK(e,t,r){var n=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover},o,s;for(o=t.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Za(e,l,a,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}for(var u=0,f=i.length;u<f;u++){var l=i[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Za(e,l,a,u===f-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var Wv=new kj,Px=new Wu(100),Lx=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function tm(e,t){if(e==="none")return null;var r=t.getDevicePixelRatio(),n=t.getZr(),i=n.painter.type==="svg";e.dirty&&Wv.delete(e);var a=Wv.get(e);if(a)return a;var o=ut(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/r,Wv.set(e,s),e.dirty=!1,s;function l(u){for(var f=[r],c=!0,d=0;d<Lx.length;++d){var h=o[Lx[d]];if(h!=null&&!ge(h)&&!Ce(h)&&!_t(h)&&typeof h!="boolean"){c=!1;break}f.push(h)}var v;if(c){v=f.join(",")+(i?"-svg":"");var p=Px.get(v);p&&(i?u.svgElement=p:u.image=p)}var g=qE(o.dashArrayX),m=iK(o.dashArrayY),y=YE(o.symbol),_=aK(g),b=jE(m),x=!i&&bo.createCanvas(),w=i&&{tag:"g",attrs:{},key:"dcl",children:[]},S=T(),C;x&&(x.width=S.width*r,x.height=S.height*r,C=x.getContext("2d")),E(),c&&Px.put(v,x||w),u.image=x,u.svgElement=w,u.svgWidth=S.width,u.svgHeight=S.height;function T(){for(var A=1,M=0,D=_.length;M<D;++M)A=V1(A,_[M]);for(var O=1,M=0,D=y.length;M<D;++M)O=V1(O,y[M].length);A*=O;var k=b*_.length*y.length;return{width:Math.max(1,Math.min(A,o.maxTileWidth)),height:Math.max(1,Math.min(k,o.maxTileHeight))}}function E(){C&&(C.clearRect(0,0,x.width,x.height),o.backgroundColor&&(C.fillStyle=o.backgroundColor,C.fillRect(0,0,x.width,x.height)));for(var A=0,M=0;M<m.length;++M)A+=m[M];if(A<=0)return;for(var D=-b,O=0,k=0,F=0;D<S.height;){if(O%2===0){for(var j=k/2%y.length,B=0,N=0,U=0;B<S.width*2;){for(var re=0,M=0;M<g[F].length;++M)re+=g[F][M];if(re<=0)break;if(N%2===0){var ae=(1-o.symbolSize)*.5,me=B+g[F][N]*ae,Te=D+m[O]*ae,V=g[F][N]*o.symbolSize,Q=m[O]*o.symbolSize,W=U/2%y[j].length;Y(me,Te,V,Q,y[j][W])}B+=g[F][N],++U,++N,N===g[F].length&&(N=0)}++F,F===g.length&&(F=0)}D+=m[O],++k,++O,O===m.length&&(O=0)}function Y(se,he,Z,P,I){var z=i?1:r,G=w0(I,se*z,he*z,Z*z,P*z,o.color,o.symbolKeepAspect);if(i){var q=n.painter.renderOneToVNode(G);q&&w.children.push(q)}else UE(C,G)}}}}function YE(e){if(!e||e.length===0)return[["rect"]];if(Ce(e))return[[e]];for(var t=!0,r=0;r<e.length;++r)if(!Ce(e[r])){t=!1;break}if(t)return YE([e]);for(var n=[],r=0;r<e.length;++r)Ce(e[r])?n.push([e[r]]):n.push(e[r]);return n}function qE(e){if(!e||e.length===0)return[[0,0]];if(_t(e)){var t=Math.ceil(e);return[[t,t]]}for(var r=!0,n=0;n<e.length;++n)if(!_t(e[n])){r=!1;break}if(r)return qE([e]);for(var i=[],n=0;n<e.length;++n)if(_t(e[n])){var t=Math.ceil(e[n]);i.push([t,t])}else{var t=Oe(e[n],function(s){return Math.ceil(s)});t.length%2===1?i.push(t.concat(t)):i.push(t)}return i}function iK(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(_t(e)){var t=Math.ceil(e);return[t,t]}var r=Oe(e,function(n){return Math.ceil(n)});return e.length%2?r.concat(r):r}function aK(e){return Oe(e,function(t){return jE(t)})}function jE(e){for(var t=0,r=0;r<e.length;++r)t+=e[r];return e.length%2===1?t*2:t}function oK(e,t){e.eachRawSeries(function(r){if(!e.isSeriesFiltered(r)){var n=r.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=tm(s,t)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=tm(i,t)}}})}var sK=new Jn;const pn=sK;var KE={};function lK(e,t){KE[e]=t}function uK(e){return KE[e]}var fK=1,cK=800,dK=900,hK=1e3,vK=2e3,pK=5e3,XE=1e3,gK=1100,x0=2e3,ZE=3e3,mK=4e3,mh=4500,yK=4600,_K=5e3,bK=6e3,QE=7e3,wK={PROCESSOR:{FILTER:hK,SERIES_FILTER:cK,STATISTIC:pK},VISUAL:{LAYOUT:XE,PROGRESSIVE_LAYOUT:gK,GLOBAL:x0,CHART:ZE,POST_CHART_LAYOUT:yK,COMPONENT:mK,BRUSH:_K,CHART_ITEM:mh,ARIA:bK,DECAL:QE}},Xt="__flagInMainProcess",hr="__pendingUpdate",Vv="__needsUpdateStatus",Dx=/^[a-zA-Z0-9_]+$/,Gv="__connectUpdateStatus",Ix=0,xK=1,SK=2;function JE(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(this.isDisposed()){this.id;return}return tP(this,e,t)}}function eP(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return tP(this,e,t)}}function tP(e,t,r){return r[0]=r[0]&&r[0].toLowerCase(),Jn.prototype[t].apply(e,r)}var rP=function(e){pe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Jn),nP=rP.prototype;nP.on=eP("on");nP.off=eP("off");var Fo,Uv,Hf,Ri,Yv,qv,jv,ol,sl,Rx,Ox,Kv,kx,zf,Nx,iP,Wr,Bx,aP=function(e){pe(t,e);function t(r,n,i){var a=e.call(this,new Tj)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},Ce(n)&&(n=oP[n]),a._dom=r;var o="canvas",s="auto",l=!1,u=a._zr=z1(r,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:qe(i.useDirtyRect,l),useCoarsePointer:qe(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=b0(yt(u.flush,u),17),n=Xe(n),n&&gE(n,!0),a._theme=n,a._locale=E7(i.locale||q2),a._coordSysMgr=new h0;var f=a._api=Nx(a);function c(d,h){return d.__prio-h.__prio}return yc(hd,c),yc(rm,c),a._scheduler=new HE(a,f,rm,hd),a._messageCenter=new rP,a._initEvents(),a.resize=yt(a.resize,a),u.animation.on("frame",a._onframe,a),Rx(u,a),Ox(u,a),cg(a),a}return t.prototype._onframe=function(){if(!this._disposed){Bx(this);var r=this._scheduler;if(this[hr]){var n=this[hr].silent;this[Xt]=!0;try{Fo(this),Ri.update.call(this,null,this[hr].updateParams)}catch(l){throw this[Xt]=!1,this[hr]=null,l}this._zr.flush(),this[Xt]=!1,this[hr]=null,ol.call(this,n),sl.call(this,n)}else if(r.unfinished){var i=fK,a=this._model,o=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(a),r.performDataProcessorTasks(a),qv(this,a),r.performVisualTasks(a),zf(this,this._model,o,"remain",{}),i-=+new Date-s}while(i>0&&r.unfinished);r.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(r,n,i){if(!this[Xt]){if(this._disposed){this.id;return}var a,o,s;if(Pe(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Xt]=!0,!this._model||n){var l=new lq(this._api),u=this._theme,f=this._model=new hE;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},nm);var c={seriesTransition:s,optionChanged:!0};if(i)this[hr]={silent:a,updateParams:c},this[Xt]=!1,this.getZr().wakeUp();else{try{Fo(this),Ri.update.call(this,null,c)}catch(d){throw this[hr]=null,this[Xt]=!1,d}this._ssr||this._zr.flush(),this[hr]=null,this[Xt]=!1,ol.call(this,a),sl.call(this,a)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Ve.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},t.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},t.prototype.getSvgDataURL=function(){if(Ve.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return R(n,function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()}},t.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,i=this._model,a=[],o=this;R(n,function(l){i.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return R(a,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(Fx[i]){var l=s,u=s,f=-s,c=-s,d=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();R(Kl,function(_,b){if(_.group===i){var x=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(Xe(r)),w=_.getDom().getBoundingClientRect();l=a(w.left,l),u=a(w.top,u),f=o(w.right,f),c=o(w.bottom,c),d.push({dom:x,left:w.left,top:w.top})}}),l*=h,u*=h,f*=h,c*=h;var v=f-l,p=c-u,g=bo.createCanvas(),m=z1(g,{renderer:n?"svg":"canvas"});if(m.resize({width:v,height:p}),n){var y="";return R(d,function(_){var b=_.left-l,x=_.top-u;y+='<g transform="translate('+b+","+x+')">'+_.dom+"</g>"}),m.painter.getSvgRoot().innerHTML=y,r.connectedBackgroundColor&&m.painter.setBackgroundColor(r.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return r.connectedBackgroundColor&&m.add(new Nt({shape:{x:0,y:0,width:v,height:p},style:{fill:r.connectedBackgroundColor}})),R(d,function(_){var b=new Bs({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});m.add(b)}),m.refreshImmediately(),g.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,n){return Yv(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return Yv(this,"convertFromPixel",r,n)},t.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=pv(i,r);return R(o,function(s,l){l.indexOf("Models")>=0&&R(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(n);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(a=a||c.containPoint(n,u))}},this)},this),!!a},t.prototype.getVisual=function(r,n){var i=this._model,a=pv(i,r,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?Ej(s,l,n):Pj(s,n)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;R(CK,function(n){var i=function(a){var o=r.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&Sl(s,function(v){var p=lt(v);if(p&&p.dataIndex!=null){var g=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return l=g&&g.getDataParams(p.dataIndex,p.dataType)||{},!0}else if(p.eventData)return l=oe({},p.eventData),!0},!0),l){var f=l.componentType,c=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",c=l.seriesIndex);var d=f&&c!=null&&o.getComponent(f,c),h=d&&r[d.mainType==="series"?"_chartsMap":"_componentsMap"][d.__viewId];l.event=a,l.type=n,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:d,view:h},r.trigger(n,l)}};i.zrEventfulCallAtLast=!0,r._zr.on(n,i,r)}),R(jl,function(n,i){r._messageCenter.on(i,function(a){this.trigger(i,a)},r)}),R(["selectchanged"],function(n){r._messageCenter.on(n,function(i){this.trigger(n,i)},r)}),Dj(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&WA(this.getDom(),C0,"");var n=this,i=n._api,a=n._model;R(n._componentsViews,function(o){o.dispose(a,i)}),R(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete Kl[n.id]},t.prototype.resize=function(r){if(!this[Xt]){if(this._disposed){this.id;return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=r&&r.silent;this[hr]&&(a==null&&(a=this[hr].silent),i=!0,this[hr]=null),this[Xt]=!0;try{i&&Fo(this),Ri.update.call(this,{type:"resize",animation:oe({duration:0},r&&r.animation)})}catch(o){throw this[Xt]=!1,o}this[Xt]=!1,ol.call(this,a),sl.call(this,a)}}},t.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(Pe(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!im[r]){var i=im[r](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(r){var n=oe({},r);return n.type=jl[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(Pe(n)||(n={silent:!!n}),!!dd[r.type]&&this._model){if(this[Xt]){this._pendingActions.push(r);return}var i=n.silent;jv.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&Ve.browser.weChat&&this._throttledZrFlush(),ol.call(this,i),sl.call(this,i)}},t.prototype.updateLabelLayout=function(){pn.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){Fo=function(c){var d=c._scheduler;d.restorePipelines(c._model),d.prepareStageTasks(),Uv(c,!0),Uv(c,!1),d.plan()},Uv=function(c,d){for(var h=c._model,v=c._scheduler,p=d?c._componentsViews:c._chartsViews,g=d?c._componentsMap:c._chartsMap,m=c._zr,y=c._api,_=0;_<p.length;_++)p[_].__alive=!1;d?h.eachComponent(function(w,S){w!=="series"&&b(S)}):h.eachSeries(b);function b(w){var S=w.__requireNewView;w.__requireNewView=!1;var C="_ec_"+w.id+"_"+w.type,T=!S&&g[C];if(!T){var E=Wn(w.type),A=d?_i.getClass(E.main,E.sub):io.getClass(E.sub);T=new A,T.init(h,y),g[C]=T,p.push(T),m.add(T.group)}w.__viewId=T.__id=C,T.__alive=!0,T.__model=w,T.group.__ecComponentInfo={mainType:w.mainType,index:w.componentIndex},!d&&v.prepareView(T,w,h,y)}for(var _=0;_<p.length;){var x=p[_];x.__alive?_++:(!d&&x.renderTask.dispose(),m.remove(x.group),x.dispose(h,y),p.splice(_,1),g[x.__id]===x&&delete g[x.__id],x.__id=x.group.__ecComponentInfo=null)}},Hf=function(c,d,h,v,p){var g=c._model;if(g.setUpdatePayload(h),!v){R([].concat(c._componentsViews).concat(c._chartsViews),x);return}var m={};m[v+"Id"]=h[v+"Id"],m[v+"Index"]=h[v+"Index"],m[v+"Name"]=h[v+"Name"];var y={mainType:v,query:m};p&&(y.subType=p);var _=h.excludeSeriesId,b;_!=null&&(b=Ge(),R(lr(_),function(w){var S=Un(w,null);S!=null&&b.set(S,!0)})),g&&g.eachComponent(y,function(w){var S=b&&b.get(w.id)!=null;if(!S)if(mw(h))if(w instanceof po)h.type===no&&!h.notBlur&&!w.get(["emphasis","disabled"])&&nY(w,h,c._api);else{var C=Ky(w.mainType,w.componentIndex,h.name,c._api),T=C.focusSelf,E=C.dispatchers;h.type===no&&T&&!h.notBlur&&Bg(w.mainType,w.componentIndex,c._api),E&&R(E,function(A){h.type===no?Og(A):kg(A)})}else Hg(h)&&w instanceof po&&(oY(w,h,c._api),pw(w),Wr(c))},c),g&&g.eachComponent(y,function(w){var S=b&&b.get(w.id)!=null;S||x(c[v==="series"?"_chartsMap":"_componentsMap"][w.__viewId])},c);function x(w){w&&w.__alive&&w[d]&&w[d](w.__model,g,c._api,h)}},Ri={prepareAndUpdate:function(c){Fo(this),Ri.update.call(this,c,{optionChanged:c.newOption!=null})},update:function(c,d){var h=this._model,v=this._api,p=this._zr,g=this._coordSysMgr,m=this._scheduler;if(h){h.setUpdatePayload(c),m.restoreData(h,c),m.performSeriesTasks(h),g.create(h,v),m.performDataProcessorTasks(h,c),qv(this,h),g.update(h,v),r(h),m.performVisualTasks(h,c),Kv(this,h,v,c,d);var y=h.get("backgroundColor")||"transparent",_=h.get("darkMode");p.setBackgroundColor(y),_!=null&&_!=="auto"&&p.setDarkMode(_),pn.trigger("afterupdate",h,v)}},updateTransform:function(c){var d=this,h=this._model,v=this._api;if(h){h.setUpdatePayload(c);var p=[];h.eachComponent(function(m,y){if(m!=="series"){var _=d.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var b=_.updateTransform(y,h,v,c);b&&b.update&&p.push(_)}else p.push(_)}});var g=Ge();h.eachSeries(function(m){var y=d._chartsMap[m.__viewId];if(y.updateTransform){var _=y.updateTransform(m,h,v,c);_&&_.update&&g.set(m.uid,1)}else g.set(m.uid,1)}),r(h),this._scheduler.performVisualTasks(h,c,{setDirty:!0,dirtyMap:g}),zf(this,h,v,c,{},g),pn.trigger("afterupdate",h,v)}},updateView:function(c){var d=this._model;d&&(d.setUpdatePayload(c),io.markUpdateMethod(c,"updateView"),r(d),this._scheduler.performVisualTasks(d,c,{setDirty:!0}),Kv(this,d,this._api,c,{}),pn.trigger("afterupdate",d,this._api))},updateVisual:function(c){var d=this,h=this._model;h&&(h.setUpdatePayload(c),h.eachSeries(function(v){v.getData().clearAllVisual()}),io.markUpdateMethod(c,"updateVisual"),r(h),this._scheduler.performVisualTasks(h,c,{visualType:"visual",setDirty:!0}),h.eachComponent(function(v,p){if(v!=="series"){var g=d.getViewOfComponentModel(p);g&&g.__alive&&g.updateVisual(p,h,d._api,c)}}),h.eachSeries(function(v){var p=d._chartsMap[v.__viewId];p.updateVisual(v,h,d._api,c)}),pn.trigger("afterupdate",h,this._api))},updateLayout:function(c){Ri.update.call(this,c)}},Yv=function(c,d,h,v){if(c._disposed){c.id;return}for(var p=c._model,g=c._coordSysMgr.getCoordinateSystems(),m,y=pv(p,h),_=0;_<g.length;_++){var b=g[_];if(b[d]&&(m=b[d](p,y,v))!=null)return m}},qv=function(c,d){var h=c._chartsMap,v=c._scheduler;d.eachSeries(function(p){v.updateStreamModes(p,h[p.__viewId])})},jv=function(c,d){var h=this,v=this.getModel(),p=c.type,g=c.escapeConnect,m=dd[p],y=m.actionInfo,_=(y.update||"update").split(":"),b=_.pop(),x=_[0]!=null&&Wn(_[0]);this[Xt]=!0;var w=[c],S=!1;c.batch&&(S=!0,w=Oe(c.batch,function(O){return O=ut(oe({},O),c),O.batch=null,O}));var C=[],T,E=Hg(c),A=mw(c);if(A&&d2(this._api),R(w,function(O){if(T=m.action(O,h._model,h._api),T=T||oe({},O),T.type=y.event||T.type,C.push(T),A){var k=Vy(c),F=k.queryOptionMap,j=k.mainTypeSpecified,B=j?F.keys()[0]:"series";Hf(h,b,O,B),Wr(h)}else E?(Hf(h,b,O,"series"),Wr(h)):x&&Hf(h,b,O,x.main,x.sub)}),b!=="none"&&!A&&!E&&!x)try{this[hr]?(Fo(this),Ri.update.call(this,c),this[hr]=null):Ri[b].call(this,c)}catch(O){throw this[Xt]=!1,O}if(S?T={type:y.event||p,escapeConnect:g,batch:C}:T=C[0],this[Xt]=!1,!d){var M=this._messageCenter;if(M.trigger(T.type,T),E){var D={type:"selectchanged",escapeConnect:g,selected:sY(v),isFromClick:c.isFromClick||!1,fromAction:c.type,fromActionPayload:c};M.trigger(D.type,D)}}},ol=function(c){for(var d=this._pendingActions;d.length;){var h=d.shift();jv.call(this,h,c)}},sl=function(c){!c&&this.trigger("updated")},Rx=function(c,d){c.on("rendered",function(h){d.trigger("rendered",h),c.animation.isFinished()&&!d[hr]&&!d._scheduler.unfinished&&!d._pendingActions.length&&d.trigger("finished")})},Ox=function(c,d){c.on("mouseover",function(h){var v=h.target,p=Sl(v,$g);p&&(iY(p,h,d._api),Wr(d))}).on("mouseout",function(h){var v=h.target,p=Sl(v,$g);p&&(aY(p,h,d._api),Wr(d))}).on("click",function(h){var v=h.target,p=Sl(v,function(y){return lt(y).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",m=lt(p);d._api.dispatchAction({type:g,dataType:m.dataType,dataIndexInside:m.dataIndex,seriesIndex:m.seriesIndex,isFromClick:!0})}})};function r(c){c.clearColorPalette(),c.eachSeries(function(d){d.clearColorPalette()})}function n(c){var d=[],h=[],v=!1;if(c.eachComponent(function(y,_){var b=_.get("zlevel")||0,x=_.get("z")||0,w=_.getZLevelKey();v=v||!!w,(y==="series"?h:d).push({zlevel:b,z:x,idx:_.componentIndex,type:y,key:w})}),v){var p=d.concat(h),g,m;yc(p,function(y,_){return y.zlevel===_.zlevel?y.z-_.z:y.zlevel-_.zlevel}),R(p,function(y){var _=c.getComponent(y.type,y.idx),b=y.zlevel,x=y.key;g!=null&&(b=Math.max(g,b)),x?(b===g&&x!==m&&b++,m=x):m&&(b===g&&b++,m=""),g=b,_.setZLevel(b)})}}Kv=function(c,d,h,v,p){n(d),kx(c,d,h,v,p),R(c._chartsViews,function(g){g.__alive=!1}),zf(c,d,h,v,p),R(c._chartsViews,function(g){g.__alive||g.remove(d,h)})},kx=function(c,d,h,v,p,g){R(g||c._componentsViews,function(m){var y=m.__model;u(y,m),m.render(y,d,h,v),s(y,m),f(y,m)})},zf=function(c,d,h,v,p,g){var m=c._scheduler;p=oe(p||{},{updatedSeries:d.getSeries()}),pn.trigger("series:beforeupdate",d,h,p);var y=!1;d.eachSeries(function(_){var b=c._chartsMap[_.__viewId];b.__alive=!0;var x=b.renderTask;m.updatePayload(x,v),u(_,b),g&&g.get(_.uid)&&x.dirty(),x.perform(m.getPerformArgs(x))&&(y=!0),b.group.silent=!!_.get("silent"),o(_,b),pw(_)}),m.unfinished=y||m.unfinished,pn.trigger("series:layoutlabels",d,h,p),pn.trigger("series:transition",d,h,p),d.eachSeries(function(_){var b=c._chartsMap[_.__viewId];s(_,b),f(_,b)}),a(c,d),pn.trigger("series:afterupdate",d,h,p)},Wr=function(c){c[Vv]=!0,c.getZr().wakeUp()},Bx=function(c){c[Vv]&&(c.getZr().storage.traverse(function(d){os(d)||i(d)}),c[Vv]=!1)};function i(c){for(var d=[],h=c.currentStates,v=0;v<h.length;v++){var p=h[v];p==="emphasis"||p==="blur"||p==="select"||d.push(p)}c.selected&&c.states.select&&d.push("select"),c.hoverState===qy&&c.states.emphasis?d.push("emphasis"):c.hoverState===Yy&&c.states.blur&&d.push("blur"),c.useStates(d)}function a(c,d){var h=c._zr,v=h.storage,p=0;v.traverse(function(g){g.isGroup||p++}),p>d.get("hoverLayerThreshold")&&!Ve.node&&!Ve.worker&&d.eachSeries(function(g){if(!g.preventUsingHoverLayer){var m=c._chartsMap[g.__viewId];m.__alive&&m.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function o(c,d){var h=c.get("blendMode")||null;d.eachRendered(function(v){v.isGroup||(v.style.blend=h)})}function s(c,d){if(!c.preventAutoZ){var h=c.get("z")||0,v=c.get("zlevel")||0;d.eachRendered(function(p){return l(p,h,v,-1/0),!0})}}function l(c,d,h,v){var p=c.getTextContent(),g=c.getTextGuideLine(),m=c.isGroup;if(m)for(var y=c.childrenRef(),_=0;_<y.length;_++)v=Math.max(l(y[_],d,h,v),v);else c.z=d,c.zlevel=h,v=Math.max(c.z2,v);if(p&&(p.z=d,p.zlevel=h,isFinite(v)&&(p.z2=v+2)),g){var b=c.textGuideLineConfig;g.z=d,g.zlevel=h,isFinite(v)&&(g.z2=v+(b&&b.showAbove?1:-1))}return v}function u(c,d){d.eachRendered(function(h){if(!os(h)){var v=h.getTextContent(),p=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function f(c,d){var h=c.getModel("stateAnimation"),v=c.isAnimationEnabled(),p=h.get("duration"),g=p>0?{duration:p,delay:h.get("delay"),easing:h.get("easing")}:null;d.eachRendered(function(m){if(m.states&&m.states.emphasis){if(os(m))return;if(m instanceof ft&&dY(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(v){m.stateTransition=g;var _=m.getTextContent(),b=m.getTextGuideLine();_&&(_.stateTransition=g),b&&(b.stateTransition=g)}m.__dirty&&i(m)}})}Nx=function(c){return new(function(d){pe(h,d);function h(){return d!==null&&d.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(v){for(;v;){var p=v.__ecComponentInfo;if(p!=null)return c._model.getComponent(p.mainType,p.index);v=v.parent}},h.prototype.enterEmphasis=function(v,p){Og(v,p),Wr(c)},h.prototype.leaveEmphasis=function(v,p){kg(v,p),Wr(c)},h.prototype.enterBlur=function(v){rY(v),Wr(c)},h.prototype.leaveBlur=function(v){l2(v),Wr(c)},h.prototype.enterSelect=function(v){u2(v),Wr(c)},h.prototype.leaveSelect=function(v){f2(v),Wr(c)},h.prototype.getModel=function(){return c.getModel()},h.prototype.getViewOfComponentModel=function(v){return c.getViewOfComponentModel(v)},h.prototype.getViewOfSeriesModel=function(v){return c.getViewOfSeriesModel(v)},h}(vE))(c)},iP=function(c){function d(h,v){for(var p=0;p<h.length;p++){var g=h[p];g[Gv]=v}}R(jl,function(h,v){c._messageCenter.on(v,function(p){if(Fx[c.group]&&c[Gv]!==Ix){if(p&&p.escapeConnect)return;var g=c.makeActionFromEvent(p),m=[];R(Kl,function(y){y!==c&&y.group===c.group&&m.push(y)}),d(m,Ix),R(m,function(y){y[Gv]!==xK&&y.dispatchAction(g)}),d(m,SK)}})})}}(),t}(Jn),S0=aP.prototype;S0.on=JE("on");S0.off=JE("off");S0.one=function(e,t,r){var n=this;function i(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];t&&t.apply&&t.apply(this,a),n.off(e,i)}this.on.call(this,e,i,r)};var CK=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"],dd={},jl={},rm=[],nm=[],hd=[],oP={},im={},Kl={},Fx={},TK=+new Date-0,C0="_echarts_instance_";function T0(e,t,r){var n=!(r&&r.ssr);if(n){var i=MK(e);if(i)return i}var a=new aP(e,t,r);return a.id="ec_"+TK++,Kl[a.id]=a,n&&WA(e,C0,a.id),iP(a),pn.trigger("afterinit",a),a}function MK(e){return Kl[WU(e,C0)]}function sP(e,t){oP[e]=t}function lP(e){nt(nm,e)<0&&nm.push(e)}function uP(e,t){A0(rm,e,t,vK)}function AK(e){M0("afterinit",e)}function EK(e){M0("afterupdate",e)}function M0(e,t){pn.on(e,t)}function Hs(e,t,r){We(t)&&(r=t,t="");var n=Pe(e)?e.type:[e,e={event:t}][0];e.event=(e.event||n).toLowerCase(),t=e.event,!jl[t]&&(mi(Dx.test(n)&&Dx.test(t)),dd[n]||(dd[n]={action:r,actionInfo:e}),jl[t]=n)}function PK(e,t){h0.register(e,t)}function LK(e,t){A0(hd,e,t,XE,"layout")}function So(e,t){A0(hd,e,t,ZE,"visual")}var $x=[];function A0(e,t,r,n,i){if((We(t)||Pe(t))&&(r=t,t=n),!(nt($x,r)>=0)){$x.push(r);var a=HE.wrapStageHandler(r,i);a.__prio=t,a.__raw=r,e.push(a)}}function fP(e,t){im[e]=t}function DK(e,t,r){var n=uK("registerMap");n&&n(e,t,r)}var IK=Oq;So(x0,uj);So(mh,fj);So(mh,cj);So(x0,Mj);So(mh,Aj);So(QE,oK);lP(gE);uP(dK,gq);fP("default",dj);Hs({type:no,event:no,update:no},Sr);Hs({type:Tc,event:Tc,update:Tc},Sr);Hs({type:Wl,event:Wl,update:Wl},Sr);Hs({type:Mc,event:Mc,update:Mc},Sr);Hs({type:Vl,event:Vl,update:Vl},Sr);sP("light",Sj);sP("dark",Cj);function ll(e){return e==null?0:e.length||1}function Hx(e){return e}var RK=function(){function e(t,r,n,i,a,o){this._old=t,this._new=r,this._oldKeyGetter=n||Hx,this._newKeyGetter=i||Hx,this.context=a,this._diffModeMultiple=o==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,r=this._new,n={},i=new Array(t.length),a=new Array(r.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=i[o],l=n[s],u=ll(l);if(u>1){var f=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(f,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,n={},i={},a=[],o=[];this._initIndexMap(t,n,a,"_oldKeyGetter"),this._initIndexMap(r,i,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=n[l],f=i[l],c=ll(u),d=ll(f);if(c>1&&d===1)this._updateManyToOne&&this._updateManyToOne(f,u),i[l]=null;else if(c===1&&d>1)this._updateOneToMany&&this._updateOneToMany(f,u),i[l]=null;else if(c===1&&d===1)this._update&&this._update(f,u),i[l]=null;else if(c>1&&d>1)this._updateManyToMany&&this._updateManyToMany(f,u),i[l]=null;else if(c>1)for(var h=0;h<c;h++)this._remove&&this._remove(u[h]);else this._remove&&this._remove(u)}this._performRestAdd(o,i)},e.prototype._performRestAdd=function(t,r){for(var n=0;n<t.length;n++){var i=t[n],a=r[i],o=ll(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);r[i]=null}},e.prototype._initIndexMap=function(t,r,n,i){for(var a=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[i](t[o],o);if(a||(n[o]=s),!!r){var l=r[s],u=ll(l);u===0?(r[s]=o,a&&n.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},e}();const OK=RK;var kK=function(){function e(t,r){this._encode=t,this._schema=r}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e}();function NK(e,t){var r={},n=r.encode={},i=Ge(),a=[],o=[],s={};R(e.dimensions,function(d){var h=e.getDimensionInfo(d),v=h.coordDim;if(v){var p=h.coordDimIndex;Xv(n,v)[p]=d,h.isExtraCoord||(i.set(v,1),FK(h.type)&&(a[0]=d),Xv(s,v)[p]=e.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(d)}sE.each(function(g,m){var y=Xv(n,m),_=h.otherDims[m];_!=null&&_!==!1&&(y[_]=h.name)})});var l=[],u={};i.each(function(d,h){var v=n[h];u[h]=v[0],l=l.concat(v)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=Oe(l,function(d){return e.getDimensionInfo(d).storeDimIndex}),r.encodeFirstDimNotExtra=u;var f=n.label;f&&f.length&&(a=f.slice());var c=n.tooltip;return c&&c.length?o=c.slice():o.length||(o=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=o,r.userOutput=new kK(s,t),r}function Xv(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function BK(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function FK(e){return!(e==="ordinal"||e==="time")}var $K=function(){function e(t){this.otherDims={},t!=null&&oe(this,t)}return e}();const Lc=$K;var HK=Tt(),zK={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},cP=function(){function e(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=vP(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return qe(this._dimNameMap.get(t),-1)},e.prototype.getSourceDimension=function(t){var r=this.source.dimensionsDefine;if(r)return r[t]},e.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,r=yE(this.source),n=!pP(t),i="",a=[],o=0,s=0;o<t;o++){var l=void 0,u=void 0,f=void 0,c=this.dimensions[s];if(c&&c.storeDimIndex===o)l=r?c.name:null,u=c.type,f=c.ordinalMeta,s++;else{var d=this.getSourceDimension(o);d&&(l=r?d.name:null,u=d.type)}a.push({property:l,type:u,ordinalMeta:f}),r&&l!=null&&(!c||!c.isCalculationCoord)&&(i+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=zK[u]||"f",f&&(i+=f.uid),i+="$"}var h=this.source,v=[h.seriesLayoutBy,h.startIndex,i].join("$$");return{dimensions:a,hash:v}},e.prototype.makeOutputDimensionNames=function(){for(var t=[],r=0,n=0;r<this._fullDimCount;r++){var i=void 0,a=this.dimensions[n];if(a&&a.storeDimIndex===r)a.isCalculationCoord||(i=a.name),n++;else{var o=this.getSourceDimension(r);o&&(i=o.name)}t.push(i)}return t},e.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function dP(e){return e instanceof cP}function hP(e){for(var t=Ge(),r=0;r<(e||[]).length;r++){var n=e[r],i=Pe(n)?n.name:n;i!=null&&t.get(i)==null&&t.set(i,r)}return t}function vP(e){var t=HK(e);return t.dimNameMap||(t.dimNameMap=hP(e.dimensionsDefine))}function pP(e){return e>30}var ul=Pe,Oi=Oe,WK=typeof Int32Array>"u"?Array:Int32Array,VK="e\0\0",zx=-1,GK=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],UK=["_approximateExtent"],Wx,Wf,fl,cl,Zv,Vf,Qv,YK=function(){function e(t,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,i=!1;dP(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},f=0;f<n.length;f++){var c=n[f],d=Ce(c)?new Lc({name:c}):c instanceof Lc?c:new Lc(c),h=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=h,d.coordDimIndex=0);var v=d.otherDims=d.otherDims||{};o.push(h),a[h]=d,u[h]!=null&&(l=!0),d.createInvertedIndices&&(s[h]=[]),v.itemName===0&&(this._nameDimIdx=f),v.itemId===0&&(this._idDimIdx=f),i&&(d.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=Ge();R(o,function(g){p.set(a[g].storeDimIndex,g)})}}return e.prototype.getDimension=function(t){var r=this._recognizeDimIndex(t);if(r==null)return t;if(r=t,!this._dimOmitted)return this.dimensions[r];var n=this._dimIdxToName.get(r);if(n!=null)return n;var i=this._schema.getSourceDimension(r);if(i)return i.name},e.prototype.getDimensionIndex=function(t){var r=this._recognizeDimIndex(t);if(r!=null)return r;if(t==null)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},e.prototype._recognizeDimIndex=function(t){if(_t(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},e.prototype._getStoreDimIndex=function(t){var r=this.getDimensionIndex(t);return r},e.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},e.prototype._initGetDimensionInfo=function(t){var r=this._dimInfos;this._getDimInfo=t?function(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(t,r){var n=this._dimSummary;if(r==null)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return i?i[r]:null},e.prototype.mapDimensionsAll=function(t){var r=this._dimSummary,n=r.encode[t];return(n||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(t,r,n){var i=this,a;if(t instanceof Yg&&(a=t),!a){var o=this.dimensions,s=v0(t)||Tr(t)?new _E(t,o.length):t;a=new Yg;var l=Oi(o,function(u){return{type:i._dimInfos[u].type,property:u}});a.initData(s,l,n)}this._store=a,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=NK(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(t){var r=this._store.appendData(t);this._doInit(r[0],r[1])},e.prototype.appendValues=function(t,r){var n=this._store.appendValues(t,r.length),i=n.start,a=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=i;s<a;s++){var l=s-i;this._nameList[s]=r[l],o&&Qv(this,s)}},e.prototype._updateOrdinalMeta=function(){for(var t=this._store,r=this.dimensions,n=0;n<r.length;n++){var i=this._dimInfos[r[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==Xi&&!t.fillStorage},e.prototype._doInit=function(t,r){if(!(t>=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===un;if(l&&!i.pure)for(var u=[],f=t;f<r;f++){var c=i.getItem(f,u);if(!this.hasItemOption&&DU(c)&&(this.hasItemOption=!0),c){var d=c.name;a[f]==null&&d!=null&&(a[f]=Un(d,null));var h=c.id;o[f]==null&&h!=null&&(o[f]=Un(h,null))}}if(this._shouldMakeIdFromName())for(var f=t;f<r;f++)Qv(this,f);Wx(this)}},e.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.setApproximateExtent=function(t,r){r=this.getDimension(r),this._approximateExtent[r]=t.slice()},e.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},e.prototype.setCalculationInfo=function(t,r){ul(t)?oe(this._calculationInfo,t):this._calculationInfo[t]=r},e.prototype.getName=function(t){var r=this.getRawIndex(t),n=this._nameList[r];return n==null&&this._nameDimIdx!=null&&(n=fl(this,this._nameDimIdx,r)),n==null&&(n=""),n},e.prototype._getCategory=function(t,r){var n=this._store.get(t,r),i=this._store.getOrdinalMeta(t);return i?i.categories[n]:n},e.prototype.getId=function(t){return Wf(this,this.getRawIndex(t))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(t,r){var n=this._store,i=this._dimInfos[t];if(i)return n.get(i.storeDimIndex,r)},e.prototype.getByRawIndex=function(t,r){var n=this._store,i=this._dimInfos[t];if(i)return n.getByRawIndex(i.storeDimIndex,r)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},e.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},e.prototype.getValues=function(t,r){var n=this,i=this._store;return ge(t)?i.getValues(Oi(t,function(a){return n._getStoreDimIndex(a)}),r):i.getValues(t)},e.prototype.hasValue=function(t){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,i=r.length;n<i;n++)if(isNaN(this._store.get(r[n],t)))return!1;return!0},e.prototype.indexOfName=function(t){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===t)return r;return-1},e.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},e.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},e.prototype.rawIndexOf=function(t,r){var n=t&&this._invertedIndicesMap[t],i=n[r];return i==null||isNaN(i)?zx:i},e.prototype.indicesOfNearest=function(t,r,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),r,n)},e.prototype.each=function(t,r,n){We(t)&&(n=r,r=t,t=[]);var i=n||this,a=Oi(cl(t),this._getStoreDimIndex,this);this._store.each(a,i?yt(r,i):r)},e.prototype.filterSelf=function(t,r,n){We(t)&&(n=r,r=t,t=[]);var i=n||this,a=Oi(cl(t),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?yt(r,i):r),this},e.prototype.selectRange=function(t){var r=this,n={},i=xt(t);return R(i,function(a){var o=r._getStoreDimIndex(a);n[o]=t[a]}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(t,r,n){We(t)&&(n=r,r=t,t=[]),n=n||this;var i=[];return this.each(t,function(){i.push(r&&r.apply(this,arguments))},n),i},e.prototype.map=function(t,r,n,i){var a=n||i||this,o=Oi(cl(t),this._getStoreDimIndex,this),s=Vf(this);return s._store=this._store.map(o,a?yt(r,a):r),s},e.prototype.modify=function(t,r,n,i){var a=n||i||this,o=Oi(cl(t),this._getStoreDimIndex,this);this._store.modify(o,a?yt(r,a):r)},e.prototype.downSample=function(t,r,n,i){var a=Vf(this);return a._store=this._store.downSample(this._getStoreDimIndex(t),r,n,i),a},e.prototype.lttbDownSample=function(t,r){var n=Vf(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),r),n},e.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},e.prototype.getItemModel=function(t){var r=this.hostModel,n=this.getRawDataItem(t);return new er(n,r,r&&r.ecModel)},e.prototype.diff=function(t){var r=this;return new OK(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return Wf(t,n)},function(n){return Wf(r,n)})},e.prototype.getVisual=function(t){var r=this._visual;return r&&r[t]},e.prototype.setVisual=function(t,r){this._visual=this._visual||{},ul(t)?oe(this._visual,t):this._visual[t]=r},e.prototype.getItemVisual=function(t,r){var n=this._itemVisuals[t],i=n&&n[r];return i??this.getVisual(r)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(t,r){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var a=i[r];return a==null&&(a=this.getVisual(r),ge(a)?a=a.slice():ul(a)&&(a=oe({},a)),i[r]=a),a},e.prototype.setItemVisual=function(t,r,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,ul(r)?oe(i,r):i[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){ul(t)?oe(this._layout,t):this._layout[t]=r},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,r,n){this._itemLayouts[t]=n?oe(this._itemLayouts[t]||{},r):r},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,r){var n=this.hostModel&&this.hostModel.seriesIndex;Y9(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){R(this._graphicEls,function(n,i){n&&t&&t.call(r,n,i)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:Oi(this.dimensions,this._getDimInfo,this),this.hostModel)),Zv(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];We(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(Iy(arguments)))})},e.internalField=function(){Wx=function(t){var r=t._invertedIndicesMap;R(r,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=r[i]=new WK(o.categories.length);for(var l=0;l<n.length;l++)n[l]=zx;for(var l=0;l<s.count();l++)n[s.get(a.storeDimIndex,l)]=l}})},fl=function(t,r,n){return Un(t._getCategory(r,n),null)},Wf=function(t,r){var n=t._idList[r];return n==null&&t._idDimIdx!=null&&(n=fl(t,t._idDimIdx,r)),n==null&&(n=VK+r),n},cl=function(t){return ge(t)||(t=t!=null?[t]:[]),t},Vf=function(t){var r=new e(t._schema?t._schema:Oi(t.dimensions,t._getDimInfo,t),t.hostModel);return Zv(r,t),r},Zv=function(t,r){R(GK.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(t[n]=r[n])}),t.__wrappedMethods=r.__wrappedMethods,R(UK,function(n){t[n]=Xe(r[n])}),t._calculationInfo=oe({},r._calculationInfo)},Qv=function(t,r){var n=t._nameList,i=t._idList,a=t._nameDimIdx,o=t._idDimIdx,s=n[r],l=i[r];if(s==null&&a!=null&&(n[r]=s=fl(t,a,r)),l==null&&o!=null&&(i[r]=l=fl(t,o,r)),l==null&&s!=null){var u=t._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),i[r]=l}}}(),e}();const gP=YK;function mP(e,t){v0(e)||(e=p0(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],i=Ge(),a=[],o=jK(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&pP(o),l=n===e.dimensionsDefine,u=l?vP(e):hP(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(e,o));for(var c=Ge(f),d=new CE(o),h=0;h<d.length;h++)d[h]=-1;function v(T){var E=d[T];if(E<0){var A=n[T],M=Pe(A)?A:{name:A},D=new Lc,O=M.name;O!=null&&u.get(O)!=null&&(D.name=D.displayName=O),M.type!=null&&(D.type=M.type),M.displayName!=null&&(D.displayName=M.displayName);var k=a.length;return d[T]=k,D.storeDimIndex=T,a.push(D),D}return a[E]}if(!s)for(var h=0;h<o;h++)v(h);c.each(function(T,E){var A=lr(T).slice();if(A.length===1&&!Ce(A[0])&&A[0]<0){c.set(E,!1);return}var M=c.set(E,[]);R(A,function(D,O){var k=Ce(D)?u.get(D):D;k!=null&&k<o&&(M[O]=k,g(v(k),E,O))})});var p=0;R(r,function(T){var E,A,M,D;if(Ce(T))E=T,D={};else{D=T,E=D.name;var O=D.ordinalMeta;D.ordinalMeta=null,D=oe({},D),D.ordinalMeta=O,A=D.dimsDef,M=D.otherDims,D.name=D.coordDim=D.coordDimIndex=D.dimsDef=D.otherDims=null}var k=c.get(E);if(k!==!1){if(k=lr(k),!k.length)for(var F=0;F<(A&&A.length||1);F++){for(;p<o&&v(p).coordDim!=null;)p++;p<o&&k.push(p++)}R(k,function(j,B){var N=v(j);if(l&&D.type!=null&&(N.type=D.type),g(ut(N,D),E,B),N.name==null&&A){var U=A[B];!Pe(U)&&(U={name:U}),N.name=N.displayName=U.name,N.defaultTooltip=U.defaultTooltip}M&&ut(N.otherDims,M)})}});function g(T,E,A){sE.get(E)!=null?T.otherDims[E]=A:(T.coordDim=E,T.coordDimIndex=A,i.set(E,!0))}var m=t.generateCoord,y=t.generateCoordCount,_=y!=null;y=m?y||1:0;var b=m||"value";function x(T){T.name==null&&(T.name=T.coordDim)}if(s)R(a,function(T){x(T)}),a.sort(function(T,E){return T.storeDimIndex-E.storeDimIndex});else for(var w=0;w<o;w++){var S=v(w),C=S.coordDim;C==null&&(S.coordDim=KK(b,i,_),S.coordDimIndex=0,(!m||y<=0)&&(S.isExtraCoord=!0),y--),x(S),S.type==null&&(fE(e,w)===Vt.Must||S.isExtraCoord&&(S.otherDims.itemName!=null||S.otherDims.seriesName!=null))&&(S.type="ordinal")}return qK(a),new cP({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function qK(e){for(var t=Ge(),r=0;r<e.length;r++){var n=e[r],i=n.name,a=t.get(i)||0;a>0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function jK(e,t,r,n){var i=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return R(t,function(a){var o;Pe(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function KK(e,t,r){if(r||t.hasKey(e)){for(var n=0;t.hasKey(e+n);)n++;e+=n}return t.set(e,!0),e}var XK=function(){function e(t){this.coordSysDims=[],this.axisMap=Ge(),this.categoryAxisMap=Ge(),this.coordSysName=t}return e}();function ZK(e){var t=e.get("coordinateSystem"),r=new XK(t),n=QK[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var QK={cartesian2d:function(e,t,r,n){var i=e.getReferringComponents("xAxis",_n).models[0],a=e.getReferringComponents("yAxis",_n).models[0];t.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),$o(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),$o(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var i=e.getReferringComponents("singleAxis",_n).models[0];t.coordSysDims=["single"],r.set("single",i),$o(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var i=e.getReferringComponents("polar",_n).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),$o(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),$o(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,r,n){t.coordSysDims=["lng","lat"]},parallel:function(e,t,r,n){var i=e.ecModel,a=i.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();R(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),f=o[l];r.set(f,u),$o(u)&&(n.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function $o(e){return e.get("type")==="category"}function JK(e,t,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;eX(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,f,c,d;if(R(a,function(y,_){Ce(y)&&(a[_]=y={name:y}),l&&!y.isExtraCoord&&(!n&&!u&&y.ordinalMeta&&(u=y),!f&&y.type!=="ordinal"&&y.type!=="time"&&(!i||i===y.coordDim)&&(f=y))}),f&&!n&&!u&&(n=!0),f){c="__\0ecstackresult_"+e.id,d="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var h=f.coordDim,v=f.type,p=0;R(a,function(y){y.coordDim===h&&p++});var g={name:c,coordDim:h,coordDimIndex:p,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},m={name:d,coordDim:d,coordDimIndex:p+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(d,v),m.storeDimIndex=s.ensureCalculationDimension(c,v)),o.appendCalculationDimension(g),o.appendCalculationDimension(m)):(a.push(g),a.push(m))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:d,stackResultDimension:c}}function eX(e){return!dP(e.schema)}function yP(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function tX(e,t){return yP(e,t)?e.getCalculationInfo("stackResultDimension"):t}function rX(e,t){var r=e.get("coordinateSystem"),n=h0.get(r),i;return t&&t.coordSysDims&&(i=Oe(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var l=s.get("type");o.type=BK(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function nX(e,t,r){var n,i;return r&&R(e,function(a,o){var s=a.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(e[n].otherDims.itemName=0),n}function _P(e,t,r){r=r||{};var n=t.getSourceManager(),i,a=!1;e?(a=!0,i=p0(e)):(i=n.getSource(),a=i.sourceFormat===un);var o=ZK(t),s=rX(t,o),l=r.useEncodeDefaulter,u=We(l)?l:l?Dt(W7,s,t):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},c=mP(i,f),d=nX(c.dimensions,r.createInvertedIndices,o),h=a?null:n.getSharedDataStore(c),v=JK(t,{schema:c,store:h}),p=new gP(c,t);p.setCalculationInfo(v);var g=d!=null&&iX(i)?function(m,y,_,b){return b===d?_:this.defaultDimValueGetter(m,y,_,b)}:null;return p.hasItemOption=!1,p.initData(a?i:h,null,g),p}function iX(e){if(e.sourceFormat===un){var t=aX(e.data||[]);return!ge(Vu(t))}}function aX(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var bP=function(){function e(t){this._setting=t||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(t){return this._setting[t]},e.prototype.unionExtent=function(t){var r=this._extent;t[0]<r[0]&&(r[0]=t[0]),t[1]>r[1]&&(r[1]=t[1])},e.prototype.unionExtentFromData=function(t,r){this.unionExtent(t.getApproximateExtent(r))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,r){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(r)||(n[1]=r)},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e}();eh(bP);const Ci=bP;var oX=0,sX=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++oX}return e.createByAxisModel=function(t){var r=t.option,n=r.data,i=n&&Oe(n,lX);return new e({categories:i,needCollect:!i,deduplication:r.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var r,n=this._needCollect;if(!Ce(t)&&!n)return t;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=t,r;var i=this._getOrCreateMap();return r=i.get(t),r==null&&(n?(r=this.categories.length,this.categories[r]=t,i.set(t,r)):r=NaN),r},e.prototype._getOrCreateMap=function(){return this._map||(this._map=Ge(this.categories))},e}();function lX(e){return Pe(e)&&e.value!=null?e.value:e+""}const am=sX;function om(e){return e.type==="interval"||e.type==="log"}function uX(e,t,r,n){var i={},a=e[1]-e[0],o=i.interval=BA(a/t,!0);r!=null&&o<r&&(o=i.interval=r),n!=null&&o>n&&(o=i.interval=n);var s=i.intervalPrecision=wP(o),l=i.niceTickExtent=[It(Math.ceil(e[0]/o)*o,s),It(Math.floor(e[1]/o)*o,s)];return fX(l,e),i}function Jv(e){var t=Math.pow(10,zy(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,It(r*t)}function wP(e){return ui(e)+2}function Vx(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function fX(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),Vx(e,0,t),Vx(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function yh(e,t){return e>=t[0]&&e<=t[1]}function _h(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function bh(e,t){return e*(t[1]-t[0])+t[0]}var xP=function(e){pe(t,e);function t(r){var n=e.call(this,r)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new am({})),ge(i)&&(i=new am({categories:Oe(i,function(a){return Pe(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return t.prototype.parse=function(r){return r==null?NaN:Ce(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},t.prototype.contain=function(r){return r=this.parse(r),yh(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),_h(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(bh(r,this._extent)),this.getRawOrdinalNumber(r)},t.prototype.getTicks=function(){for(var r=[],n=this._extent,i=n[0];i<=n[1];)r.push({value:i}),i++;return r},t.prototype.getMinorTicks=function(r){},t.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o<l;++o){var u=n[o];i[o]=u,a[u]=o}for(var f=0;o<s;++o){for(;a[f]!=null;)f++;i.push(f),a[f]=o}},t.prototype._getTickNumber=function(r){var n=this._ticksByOrdinalNumber;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getRawOrdinalNumber=function(r){var n=this._ordinalNumbersByTick;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getLabel=function(r){if(!this.isBlank()){var n=this.getRawOrdinalNumber(r.value),i=this._ordinalMeta.categories[n];return i==null?"":i+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},t.prototype.isInExtentRange=function(r){return r=this._getTickNumber(r),this._extent[0]<=r&&this._extent[1]>=r},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(Ci);Ci.registerClass(xP);const SP=xP;var Ra=It,CP=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return yh(r,this._extent)},t.prototype.normalize=function(r){return _h(r,this._extent)},t.prototype.scale=function(r){return bh(r,this._extent)},t.prototype.setExtent=function(r,n){var i=this._extent;isNaN(r)||(i[0]=parseFloat(r)),isNaN(n)||(i[1]=parseFloat(n))},t.prototype.unionExtent=function(r){var n=this._extent;r[0]<n[0]&&(n[0]=r[0]),r[1]>n[1]&&(n[1]=r[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=wP(r)},t.prototype.getTicks=function(r){var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;i[0]<a[0]&&(r?s.push({value:Ra(a[0]-n,o)}):s.push({value:i[0]}));for(var u=a[0];u<=a[1]&&(s.push({value:u}),u=Ra(u+n,o),u!==s[s.length-1].value);)if(s.length>l)return[];var f=s.length?s[s.length-1].value:a[1];return i[1]>f&&(r?s.push({value:Ra(f+n,o)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(r){for(var n=this.getTicks(!0),i=[],a=this.getExtent(),o=1;o<n.length;o++){for(var s=n[o],l=n[o-1],u=0,f=[],c=s.value-l.value,d=c/r;u<r-1;){var h=Ra(l.value+(u+1)*d);h>a[0]&&h<a[1]&&f.push(h),u++}i.push(f)}return i},t.prototype.getLabel=function(r,n){if(r==null)return"";var i=n&&n.precision;i==null?i=ui(r.value)||0:i==="auto"&&(i=this._intervalPrecision);var a=Ra(r.value,i,!0);return nE(a)},t.prototype.calcNiceTicks=function(r,n,i){r=r||5;var a=this._extent,o=a[1]-a[0];if(isFinite(o)){o<0&&(o=-o,a.reverse());var s=uX(a,r,n,i);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(r){var n=this._extent;if(n[0]===n[1])if(n[0]!==0){var i=Math.abs(n[0]);r.fixMax||(n[1]+=i/2),n[0]-=i/2}else n[1]=1;var a=n[1]-n[0];isFinite(a)||(n[0]=0,n[1]=1),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval);var o=this._interval;r.fixMin||(n[0]=Ra(Math.floor(n[0]/o)*o)),r.fixMax||(n[1]=Ra(Math.ceil(n[1]/o)*o))},t.prototype.setNiceExtent=function(r,n){this._niceExtent=[r,n]},t.type="interval",t}(Ci);Ci.registerClass(CP);const ju=CP;var TP=typeof Float32Array<"u",cX=TP?Float32Array:Array;function ep(e){return ge(e)?TP?new Float32Array(e):e:new cX(e)}var dX="__ec_stack_";function E0(e){return e.get("stack")||dX+e.seriesIndex}function P0(e){return e.dim+e.index}function MP(e,t){var r=[];return t.eachSeriesByType(e,function(n){EP(n)&&r.push(n)}),r}function hX(e){var t={};R(e,function(l){var u=l.coordinateSystem,f=u.getBaseAxis();if(!(f.type!=="time"&&f.type!=="value"))for(var c=l.getData(),d=f.dim+"_"+f.index,h=c.getDimensionIndex(c.mapDimension(f.dim)),v=c.getStore(),p=0,g=v.count();p<g;++p){var m=v.get(h,p);t[d]?t[d].push(m):t[d]=[m]}});var r={};for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];if(i){i.sort(function(l,u){return l-u});for(var a=null,o=1;o<i.length;++o){var s=i[o]-i[o-1];s>0&&(a=a===null?s:Math.min(a,s))}r[n]=a}}return r}function AP(e){var t=hX(e),r=[];return R(e,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=t[l],f=Math.abs(o[1]-o[0]),c=a.scale.getExtent(),d=Math.abs(c[1]-c[0]);s=u?f/d*u:f}else{var h=n.getData();s=Math.abs(o[1]-o[0])/h.count()}var v=pt(n.get("barWidth"),s),p=pt(n.get("barMaxWidth"),s),g=pt(n.get("barMinWidth")||(PP(n)?.5:1),s),m=n.get("barGap"),y=n.get("barCategoryGap");r.push({bandWidth:s,barWidth:v,barMaxWidth:p,barMinWidth:g,barGap:m,barCategoryGap:y,axisKey:P0(a),stackId:E0(n)})}),vX(r)}function vX(e){var t={};R(e,function(n,i){var a=n.axisKey,o=n.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[a]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=n.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var c=n.barMaxWidth;c&&(l[u].maxWidth=c);var d=n.barMinWidth;d&&(l[u].minWidth=d);var h=n.barGap;h!=null&&(s.gap=h);var v=n.barCategoryGap;v!=null&&(s.categoryGap=v)});var r={};return R(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=xt(a).length;s=Math.max(35-l*4,15)+"%"}var u=pt(s,o),f=pt(n.gap,1),c=n.remainedWidth,d=n.autoWidthCount,h=(c-u)/(d+(d-1)*f);h=Math.max(h,0),R(a,function(m){var y=m.maxWidth,_=m.minWidth;if(m.width){var b=m.width;y&&(b=Math.min(b,y)),_&&(b=Math.max(b,_)),m.width=b,c-=b+f*b,d--}else{var b=h;y&&y<b&&(b=Math.min(y,c)),_&&_>b&&(b=_),b!==h&&(m.width=b,c-=b+f*b,d--)}}),h=(c-u)/(d+(d-1)*f),h=Math.max(h,0);var v=0,p;R(a,function(m,y){m.width||(m.width=h),p=m,v+=m.width*(1+f)}),p&&(v-=p.width*f);var g=-v/2;R(a,function(m,y){r[i][y]=r[i][y]||{bandWidth:o,offset:g,width:m.width},g+=m.width*(1+f)})}),r}function pX(e,t,r){if(e&&t){var n=e[P0(t)];return n!=null&&r!=null?n[E0(r)]:n}}function gX(e,t){var r=MP(e,t),n=AP(r);R(r,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=E0(i),u=n[P0(s)][l],f=u.offset,c=u.width;a.setLayout({bandWidth:u.bandWidth,offset:f,size:c})})}function mX(e){return{seriesType:e,plan:IE(),reset:function(t){if(EP(t)){var r=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(i.dim)),l=t.get("showBackground",!0),u=r.mapDimension(a.dim),f=r.getCalculationInfo("stackResultDimension"),c=yP(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),d=a.isHorizontal(),h=yX(i,a),v=PP(t),p=t.get("barMinHeight")||0,g=f&&r.getDimensionIndex(f),m=r.getLayout("size"),y=r.getLayout("offset");return{progress:function(_,b){for(var x=_.count,w=v&&ep(x*3),S=v&&l&&ep(x*3),C=v&&ep(x),T=n.master.getRect(),E=d?T.width:T.height,A,M=b.getStore(),D=0;(A=_.next())!=null;){var O=M.get(c?g:o,A),k=M.get(s,A),F=h,j=void 0;c&&(j=+O-M.get(o,A));var B=void 0,N=void 0,U=void 0,re=void 0;if(d){var ae=n.dataToPoint([O,k]);if(c){var me=n.dataToPoint([j,k]);F=me[0]}B=F,N=ae[1]+y,U=ae[0]-F,re=m,Math.abs(U)<p&&(U=(U<0?-1:1)*p)}else{var ae=n.dataToPoint([k,O]);if(c){var me=n.dataToPoint([k,j]);F=me[1]}B=ae[0]+y,N=F,U=m,re=ae[1]-F,Math.abs(re)<p&&(re=(re<=0?-1:1)*p)}v?(w[D]=B,w[D+1]=N,w[D+2]=d?U:re,S&&(S[D]=d?T.x:B,S[D+1]=d?N:T.y,S[D+2]=E),C[A]=A):b.setItemLayout(A,{x:B,y:N,width:U,height:re}),D+=3}v&&b.setLayout({largePoints:w,largeDataIndices:C,largeBackgroundPoints:S,valueAxisHorizontal:d})}}}}}}function EP(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function PP(e){return e.pipelineContext&&e.pipelineContext.large}function yX(e,t){return t.toGlobalCoord(t.dataToCoord(t.type==="log"?1:0))}var _X=function(e,t,r,n){for(;r<n;){var i=r+n>>>1;e[i][1]<t?r=i+1:n=i}return r},LP=function(e){pe(t,e);function t(r){var n=e.call(this,r)||this;return n.type="time",n}return t.prototype.getLabel=function(r){var n=this.getSetting("useUTC");return sh(r.value,Rw[I7(ss(this._minLevelUnit))]||Rw.second,n,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(r,n,i){var a=this.getSetting("useUTC"),o=this.getSetting("locale");return R7(r,n,i,o,a)},t.prototype.getTicks=function(){var r=this._interval,n=this._extent,i=[];if(!r)return i;i.push({value:n[0],level:0});var a=this.getSetting("useUTC"),o=MX(this._minLevelUnit,this._approxInterval,a,n);return i=i.concat(o),i.push({value:n[1],level:0}),i},t.prototype.calcNiceExtent=function(r){var n=this._extent;if(n[0]===n[1]&&(n[0]-=Jr,n[1]+=Jr),n[1]===-1/0&&n[0]===1/0){var i=new Date;n[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),n[0]=n[1]-Jr}this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval)},t.prototype.calcNiceTicks=function(r,n,i){r=r||10;var a=this._extent,o=a[1]-a[0];this._approxInterval=o/r,n!=null&&this._approxInterval<n&&(this._approxInterval=n),i!=null&&this._approxInterval>i&&(this._approxInterval=i);var s=Gf.length,l=Math.min(_X(Gf,this._approxInterval,0,s),s-1);this._interval=Gf[l][1],this._minLevelUnit=Gf[Math.max(l-1,0)][0]},t.prototype.parse=function(r){return _t(r)?r:+yi(r)},t.prototype.contain=function(r){return yh(this.parse(r),this._extent)},t.prototype.normalize=function(r){return _h(this.parse(r),this._extent)},t.prototype.scale=function(r){return bh(r,this._extent)},t.type="time",t}(ju),Gf=[["second",s0],["minute",l0],["hour",Ul],["quarter-day",Ul*6],["half-day",Ul*12],["day",Jr*1.2],["half-week",Jr*3.5],["week",Jr*7],["month",Jr*31],["quarter",Jr*95],["half-year",Iw/2],["year",Iw]];function bX(e,t,r,n){var i=yi(t),a=yi(r),o=function(v){return Ow(i,v,n)===Ow(a,v,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},f=function(){return u()&&o("hour")},c=function(){return f()&&o("minute")},d=function(){return c()&&o("second")},h=function(){return d()&&o("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return f();case"minute":return c();case"second":return d();case"millisecond":return h()}}function wX(e,t){return e/=Jr,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function xX(e){var t=30*Jr;return e/=t,e>6?6:e>3?3:e>2?2:1}function SX(e){return e/=Ul,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function Gx(e,t){return e/=t?l0:s0,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function CX(e){return BA(e,!0)}function TX(e,t,r){var n=new Date(e);switch(ss(t)){case"year":case"month":n[Z2(r)](0);case"day":n[Q2(r)](1);case"hour":n[J2(r)](0);case"minute":n[eE(r)](0);case"second":n[tE(r)](0),n[rE(r)](0)}return n.getTime()}function MX(e,t,r,n){var i=1e4,a=K2,o=0;function s(E,A,M,D,O,k,F){for(var j=new Date(A),B=A,N=j[D]();B<M&&B<=n[1];)F.push({value:B}),N+=E,j[O](N),B=j.getTime();F.push({value:B,notAdd:!0})}function l(E,A,M){var D=[],O=!A.length;if(!bX(ss(E),n[0],n[1],r)){O&&(A=[{value:TX(new Date(n[0]),E,r)},{value:n[1]}]);for(var k=0;k<A.length-1;k++){var F=A[k].value,j=A[k+1].value;if(F!==j){var B=void 0,N=void 0,U=void 0,re=!1;switch(E){case"year":B=Math.max(1,Math.round(t/Jr/365)),N=u0(r),U=O7(r);break;case"half-year":case"quarter":case"month":B=xX(t),N=ls(r),U=Z2(r);break;case"week":case"half-week":case"day":B=wX(t),N=lh(r),U=Q2(r),re=!0;break;case"half-day":case"quarter-day":case"hour":B=SX(t),N=xu(r),U=J2(r);break;case"minute":B=Gx(t,!0),N=uh(r),U=eE(r);break;case"second":B=Gx(t,!1),N=fh(r),U=tE(r);break;case"millisecond":B=CX(t),N=ch(r),U=rE(r);break}s(B,F,j,N,U,re,D),E==="year"&&M.length>1&&k===0&&M.unshift({value:M[0].value-B})}}for(var k=0;k<D.length;k++)M.push(D[k]);return D}}for(var u=[],f=[],c=0,d=0,h=0;h<a.length&&o++<i;++h){var v=ss(a[h]);if(D7(a[h])){l(a[h],u[u.length-1]||[],f);var p=a[h+1]?ss(a[h+1]):null;if(v!==p){if(f.length){d=c,f.sort(function(E,A){return E.value-A.value});for(var g=[],m=0;m<f.length;++m){var y=f[m].value;(m===0||f[m-1].value!==y)&&(g.push(f[m]),y>=n[0]&&y<=n[1]&&c++)}var _=(n[1]-n[0])/t;if(c>_*1.5&&d>_/1.5||(u.push(g),c>_||e===a[h]))break}f=[]}}}for(var b=Ft(Oe(u,function(E){return Ft(E,function(A){return A.value>=n[0]&&A.value<=n[1]&&!A.notAdd})}),function(E){return E.length>0}),x=[],w=b.length-1,h=0;h<b.length;++h)for(var S=b[h],C=0;C<S.length;++C)x.push({value:S[C].value,level:w-h});x.sort(function(E,A){return E.value-A.value});for(var T=[],h=0;h<x.length;++h)(h===0||x[h].value!==x[h-1].value)&&T.push(x[h]);return T}Ci.registerClass(LP);const AX=LP;var Ux=Ci.prototype,Xl=ju.prototype,EX=It,PX=Math.floor,LX=Math.ceil,Uf=Math.pow,cn=Math.log,L0=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new ju,r._interval=0,r}return t.prototype.getTicks=function(r){var n=this._originalScale,i=this._extent,a=n.getExtent(),o=Xl.getTicks.call(this,r);return Oe(o,function(s){var l=s.value,u=It(Uf(this.base,l));return u=l===i[0]&&this._fixMin?Yf(u,a[0]):u,u=l===i[1]&&this._fixMax?Yf(u,a[1]):u,{value:u}},this)},t.prototype.setExtent=function(r,n){var i=cn(this.base);r=cn(Math.max(0,r))/i,n=cn(Math.max(0,n))/i,Xl.setExtent.call(this,r,n)},t.prototype.getExtent=function(){var r=this.base,n=Ux.getExtent.call(this);n[0]=Uf(r,n[0]),n[1]=Uf(r,n[1]);var i=this._originalScale,a=i.getExtent();return this._fixMin&&(n[0]=Yf(n[0],a[0])),this._fixMax&&(n[1]=Yf(n[1],a[1])),n},t.prototype.unionExtent=function(r){this._originalScale.unionExtent(r);var n=this.base;r[0]=cn(r[0])/cn(n),r[1]=cn(r[1])/cn(n),Ux.unionExtent.call(this,r)},t.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},t.prototype.calcNiceTicks=function(r){r=r||10;var n=this._extent,i=n[1]-n[0];if(!(i===1/0||i<=0)){var a=EU(i),o=r/i*a;for(o<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var s=[It(LX(n[0]/a)*a),It(PX(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){Xl.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return r=cn(r)/cn(this.base),yh(r,this._extent)},t.prototype.normalize=function(r){return r=cn(r)/cn(this.base),_h(r,this._extent)},t.prototype.scale=function(r){return r=bh(r,this._extent),Uf(this.base,r)},t.type="log",t}(Ci),DP=L0.prototype;DP.getMinorTicks=Xl.getMinorTicks;DP.getLabel=Xl.getLabel;function Yf(e,t){return EX(e,ui(t))}Ci.registerClass(L0);const DX=L0;var IX=function(){function e(t,r,n){this._prepareParams(t,r,n)}return e.prototype._prepareParams=function(t,r,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&r.getNeedCrossZero&&r.getNeedCrossZero();var a=this._modelMinRaw=r.get("min",!0);We(a)?this._modelMinNum=qf(t,a({min:n[0],max:n[1]})):a!=="dataMin"&&(this._modelMinNum=qf(t,a));var o=this._modelMaxRaw=r.get("max",!0);if(We(o)?this._modelMaxNum=qf(t,o({min:n[0],max:n[1]})):o!=="dataMax"&&(this._modelMaxNum=qf(t,o)),i)this._axisDataLen=r.getCategories().length;else{var s=r.get("boundaryGap"),l=ge(s)?s:[s||0,s||0];typeof l[0]=="boolean"||typeof l[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[ta(l[0],1),ta(l[1],1)]}},e.prototype.calculate=function(){var t=this._isOrdinal,r=this._dataMin,n=this._dataMax,i=this._axisDataLen,a=this._boundaryGapInner,o=t?null:n-r||Math.abs(r),s=this._modelMinRaw==="dataMin"?r:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,u=s!=null,f=l!=null;s==null&&(s=t?i?0:NaN:r-a[0]*o),l==null&&(l=t?i?i-1:NaN:n+a[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var c=qc(s)||qc(l)||t&&!i;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var d=this._determinedMin,h=this._determinedMax;return d!=null&&(s=d,u=!0),h!=null&&(l=h,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:c}},e.prototype.modifyDataMinMax=function(t,r){this[OX[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=RX[t];this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),RX={min:"_determinedMin",max:"_determinedMax"},OX={min:"_dataMin",max:"_dataMax"};function kX(e,t,r){var n=e.rawExtentInfo;return n||(n=new IX(e,t,r),e.rawExtentInfo=n,n)}function qf(e,t){return t==null?null:qc(t)?NaN:e.parse(t)}function IP(e,t){var r=e.type,n=kX(e,t,e.getExtent()).calculate();e.setBlank(n.isBlank);var i=n.min,a=n.max,o=t.ecModel;if(o&&r==="time"){var s=MP("bar",o),l=!1;if(R(s,function(c){l=l||c.getBaseAxis()===t.axis}),l){var u=AP(s),f=NX(i,a,t,u);i=f.min,a=f.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function NX(e,t,r,n){var i=r.axis.getExtent(),a=i[1]-i[0],o=pX(n,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;R(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;R(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=t-e,c=1-(s+l)/a,d=f/c-f;return t+=d*(l/u),e-=d*(s/u),{min:e,max:t}}function Yx(e,t){var r=t,n=IP(e,r),i=n.extent,a=r.get("splitNumber");e instanceof DX&&(e.base=r.get("logBase"));var o=e.type,s=r.get("interval"),l=o==="interval"||o==="time";e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?r.get("minInterval"):null,maxInterval:l?r.get("maxInterval"):null}),s!=null&&e.setInterval&&e.setInterval(s)}function BX(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new SP({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new AX({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(Ci.getClass(t)||ju)}}function FX(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function Ku(e){var t=e.getLabelModel().get("formatter"),r=e.type==="category"?e.scale.getExtent()[0]:null;return e.scale.type==="time"?function(n){return function(i,a){return e.scale.getFormattedLabel(i,a,n)}}(t):Ce(t)?function(n){return function(i){var a=e.scale.getLabel(i),o=n.replace("{value}",a??"");return o}}(t):We(t)?function(n){return function(i,a){return r!=null&&(a=i.value-r),n(D0(e,i),a,i.level!=null?{level:i.level}:null)}}(t):function(n){return e.scale.getLabel(n)}}function D0(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function $X(e){var t=e.model,r=e.scale;if(!(!t.get(["axisLabel","show"])||r.isBlank())){var n,i,a=r.getExtent();r instanceof SP?i=r.count():(n=r.getTicks(),i=n.length);var o=e.getLabelModel(),s=Ku(e),l,u=1;i>40&&(u=Math.ceil(i/40));for(var f=0;f<i;f+=u){var c=n?n[f]:{value:a[0]+f},d=s(c,f),h=o.getTextRect(d),v=HX(h,o.get("rotate")||0);l?l.union(v):l=v}return l}}function HX(e,t){var r=t*Math.PI/180,n=e.width,i=e.height,a=n*Math.abs(Math.cos(r))+Math.abs(i*Math.sin(r)),o=n*Math.abs(Math.sin(r))+Math.abs(i*Math.cos(r)),s=new et(e.x,e.y,a,o);return s}function I0(e){var t=e.get("interval");return t??"auto"}function RP(e){return e.type==="category"&&I0(e.getLabelModel())===0}function zX(e,t){var r={};return R(e.mapDimensionsAll(t),function(n){r[tX(e,n)]=!0}),xt(r)}var WX=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),qx=[],VX={registerPreprocessor:lP,registerProcessor:uP,registerPostInit:AK,registerPostUpdate:EK,registerUpdateLifecycle:M0,registerAction:Hs,registerCoordinateSystem:PK,registerLayout:LK,registerVisual:So,registerTransform:IK,registerLoading:fP,registerMap:DK,registerImpl:lK,PRIORITY:wK,ComponentModel:bt,ComponentView:_i,SeriesModel:po,ChartView:io,registerComponentModel:function(e){bt.registerClass(e)},registerComponentView:function(e){_i.registerClass(e)},registerSeriesModel:function(e){po.registerClass(e)},registerChartView:function(e){io.registerClass(e)},registerSubTypeDefaulter:function(e,t){bt.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){wU(e,t)}};function na(e){if(ge(e)){R(e,function(t){na(t)});return}nt(qx,e)>=0||(qx.push(e),We(e)&&(e={install:e}),e.install(VX))}var Pu=Tt();function GX(e){return e.type==="category"?YX(e):jX(e)}function UX(e,t){return e.type==="category"?qX(e,t):{ticks:Oe(e.scale.getTicks(),function(r){return r.value})}}function YX(e){var t=e.getLabelModel(),r=OP(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function OP(e,t){var r=kP(e,"labels"),n=I0(t),i=NP(r,n);if(i)return i;var a,o;return We(n)?a=$P(e,n):(o=n==="auto"?KX(e):n,a=FP(e,o)),BP(r,n,{labels:a,labelCategoryInterval:o})}function qX(e,t){var r=kP(e,"ticks"),n=I0(t),i=NP(r,n);if(i)return i;var a,o;if((!t.get("show")||e.scale.isBlank())&&(a=[]),We(n))a=$P(e,n,!0);else if(n==="auto"){var s=OP(e,e.getLabelModel());o=s.labelCategoryInterval,a=Oe(s.labels,function(l){return l.tickValue})}else o=n,a=FP(e,o,!0);return BP(r,n,{ticks:a,tickCategoryInterval:o})}function jX(e){var t=e.scale.getTicks(),r=Ku(e);return{labels:Oe(t,function(n,i){return{level:n.level,formattedLabel:r(n,i),rawLabel:e.scale.getLabel(n),tickValue:n.value}})}}function kP(e,t){return Pu(e)[t]||(Pu(e)[t]=[])}function NP(e,t){for(var r=0;r<e.length;r++)if(e[r].key===t)return e[r].value}function BP(e,t,r){return e.push({key:t,value:r}),r}function KX(e){var t=Pu(e).autoInterval;return t??(Pu(e).autoInterval=e.calculateCategoryInterval())}function XX(e){var t=ZX(e),r=Ku(e),n=(t.axisRotate-t.labelRotate)/180*Math.PI,i=e.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),f=Math.abs(u*Math.cos(n)),c=Math.abs(u*Math.sin(n)),d=0,h=0;l<=a[1];l+=s){var v=0,p=0,g=Fy(r({value:l}),t.font,"center","top");v=g.width*1.3,p=g.height*1.3,d=Math.max(d,v,7),h=Math.max(h,p,7)}var m=d/f,y=h/c;isNaN(m)&&(m=1/0),isNaN(y)&&(y=1/0);var _=Math.max(0,Math.floor(Math.min(m,y))),b=Pu(e.model),x=e.getExtent(),w=b.lastAutoInterval,S=b.lastTickCount;return w!=null&&S!=null&&Math.abs(w-_)<=1&&Math.abs(S-o)<=1&&w>_&&b.axisExtent0===x[0]&&b.axisExtent1===x[1]?_=w:(b.lastTickCount=o,b.lastAutoInterval=_,b.axisExtent0=x[0],b.axisExtent1=x[1]),_}function ZX(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function FP(e,t,r){var n=Ku(e),i=e.scale,a=i.getExtent(),o=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=a[0],f=i.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var c=RP(e),d=o.get("showMinLabel")||c,h=o.get("showMaxLabel")||c;d&&u!==a[0]&&p(a[0]);for(var v=u;v<=a[1];v+=l)p(v);h&&v-l!==a[1]&&p(a[1]);function p(g){var m={value:g};s.push(r?g:{formattedLabel:n(m),rawLabel:i.getLabel(m),tickValue:g})}return s}function $P(e,t,r){var n=e.scale,i=Ku(e),a=[];return R(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&a.push(r?l:{formattedLabel:i(o),rawLabel:s,tickValue:l})}),a}var jx=[0,1],QX=function(){function e(t,r,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=r,this._extent=n||[0,0]}return e.prototype.contain=function(t){var r=this._extent,n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return t>=n&&t<=i},e.prototype.containData=function(t){return this.scale.contain(t)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return CU(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,r){var n=this._extent;n[0]=t,n[1]=r},e.prototype.dataToCoord=function(t,r){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(n=n.slice(),Kx(n,i.count())),Eg(t,jx,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),Kx(n,i.count()));var a=Eg(t,n,jx,r);return this.scale.scale(a)},e.prototype.pointToData=function(t,r){},e.prototype.getTicksCoords=function(t){t=t||{};var r=t.tickModel||this.getTickModel(),n=UX(this,r),i=n.ticks,a=Oe(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return JX(this,a,o,t.clamp),a},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),r=t.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),i=Oe(n,function(a){return Oe(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},e.prototype.getViewLabels=function(){return GX(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var t=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},e.prototype.calculateCategoryInterval=function(){return XX(this)},e}();function Kx(e,t){var r=e[1]-e[0],n=t,i=r/n/2;e[0]+=i,e[1]-=i}function JX(e,t,r,n){var i=t.length;if(!e.onBand||r||!i)return;var a=e.getExtent(),o,s;if(i===1)t[0].coord=a[0],o=t[1]={coord:a[0]};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;R(t,function(h){h.coord-=u/2});var f=e.scale.getExtent();s=1+f[1]-t[i-1].tickValue,o={coord:t[i-1].coord+u*s},t.push(o)}var c=a[0]>a[1];d(t[0].coord,a[0])&&(n?t[0].coord=a[0]:t.shift()),n&&d(a[0],t[0].coord)&&t.unshift({coord:a[0]}),d(a[1],o.coord)&&(n?o.coord=a[1]:t.pop()),n&&d(o.coord,a[1])&&t.push({coord:a[1]});function d(h,v){return h=It(h),v=It(v),c?h>v:h<v}}const eZ=QX;var dl=Math.PI*2,Oa=ho.CMD,tZ=["top","right","bottom","left"];function rZ(e,t,r,n,i){var a=r.width,o=r.height;switch(e){case"top":n.set(r.x+a/2,r.y-t),i.set(0,-1);break;case"bottom":n.set(r.x+a/2,r.y+o+t),i.set(0,1);break;case"left":n.set(r.x-t,r.y+o/2),i.set(-1,0);break;case"right":n.set(r.x+a+t,r.y+o/2),i.set(1,0);break}}function nZ(e,t,r,n,i,a,o,s,l){o-=e,s-=t;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var f=o*r+e,c=s*r+t;if(Math.abs(n-i)%dl<1e-4)return l[0]=f,l[1]=c,u-r;if(a){var d=n;n=Ui(i),i=Ui(d)}else n=Ui(n),i=Ui(i);n>i&&(i+=dl);var h=Math.atan2(s,o);if(h<0&&(h+=dl),h>=n&&h<=i||h+dl>=n&&h+dl<=i)return l[0]=f,l[1]=c,u-r;var v=r*Math.cos(n)+e,p=r*Math.sin(n)+t,g=r*Math.cos(i)+e,m=r*Math.sin(i)+t,y=(v-o)*(v-o)+(p-s)*(p-s),_=(g-o)*(g-o)+(m-s)*(m-s);return y<_?(l[0]=v,l[1]=p,Math.sqrt(y)):(l[0]=g,l[1]=m,Math.sqrt(_))}function vd(e,t,r,n,i,a,o,s){var l=i-e,u=a-t,f=r-e,c=n-t,d=Math.sqrt(f*f+c*c);f/=d,c/=d;var h=l*f+u*c,v=h/d;s&&(v=Math.min(Math.max(v,0),1)),v*=d;var p=o[0]=e+v*f,g=o[1]=t+v*c;return Math.sqrt((p-i)*(p-i)+(g-a)*(g-a))}function HP(e,t,r,n,i,a,o){r<0&&(e=e+r,r=-r),n<0&&(t=t+n,n=-n);var s=e+r,l=t+n,u=o[0]=Math.min(Math.max(i,e),s),f=o[1]=Math.min(Math.max(a,t),l);return Math.sqrt((u-i)*(u-i)+(f-a)*(f-a))}var gn=[];function iZ(e,t,r){var n=HP(t.x,t.y,t.width,t.height,e.x,e.y,gn);return r.set(gn[0],gn[1]),n}function aZ(e,t,r){for(var n=0,i=0,a=0,o=0,s,l,u=1/0,f=t.data,c=e.x,d=e.y,h=0;h<f.length;){var v=f[h++];h===1&&(n=f[h],i=f[h+1],a=n,o=i);var p=u;switch(v){case Oa.M:a=f[h++],o=f[h++],n=a,i=o;break;case Oa.L:p=vd(n,i,f[h],f[h+1],c,d,gn,!0),n=f[h++],i=f[h++];break;case Oa.C:p=xA(n,i,f[h++],f[h++],f[h++],f[h++],f[h],f[h+1],c,d,gn),n=f[h++],i=f[h++];break;case Oa.Q:p=CA(n,i,f[h++],f[h++],f[h],f[h+1],c,d,gn),n=f[h++],i=f[h++];break;case Oa.A:var g=f[h++],m=f[h++],y=f[h++],_=f[h++],b=f[h++],x=f[h++];h+=1;var w=!!(1-f[h++]);s=Math.cos(b)*y+g,l=Math.sin(b)*_+m,h<=1&&(a=s,o=l);var S=(c-g)*_/y+g;p=nZ(g,m,_,b,b+x,w,S,d,gn),n=Math.cos(b+x)*y+g,i=Math.sin(b+x)*_+m;break;case Oa.R:a=n=f[h++],o=i=f[h++];var C=f[h++],T=f[h++];p=HP(a,o,C,T,c,d,gn);break;case Oa.Z:p=vd(n,i,a,o,c,d,gn,!0),n=a,i=o;break}p<u&&(u=p,r.set(gn[0],gn[1]))}return u}var bn=new ke,st=new ke,Mt=new ke,Vn=new ke,Fn=new ke;function Xx(e,t){if(e){var r=e.getTextGuideLine(),n=e.getTextContent();if(n&&r){var i=e.textGuideLineConfig||{},a=[[0,0],[0,0],[0,0]],o=i.candidates||tZ,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var l=1/0,u=i.anchor,f=e.getComputedTransform(),c=f&&Qd([],f),d=t.get("length2")||0;u&&Mt.copy(u);for(var h=0;h<o.length;h++){var v=o[h];rZ(v,0,s,bn,Vn),ke.scaleAndAdd(st,bn,Vn,d),st.transform(c);var p=e.getBoundingRect(),g=u?u.distance(st):e instanceof ft?aZ(st,e.path,Mt):iZ(st,p,Mt);g<l&&(l=g,st.transform(f),Mt.transform(f),Mt.toArray(a[0]),st.toArray(a[1]),bn.toArray(a[2]))}zP(a,t.get("minTurnAngle")),r.setShape({points:a})}}}var pd=[],ar=new ke;function zP(e,t){if(t<=180&&t>0){t=t/180*Math.PI,bn.fromArray(e[0]),st.fromArray(e[1]),Mt.fromArray(e[2]),ke.sub(Vn,bn,st),ke.sub(Fn,Mt,st);var r=Vn.len(),n=Fn.len();if(!(r<.001||n<.001)){Vn.scale(1/r),Fn.scale(1/n);var i=Vn.dot(Fn),a=Math.cos(t);if(a<i){var o=vd(st.x,st.y,Mt.x,Mt.y,bn.x,bn.y,pd,!1);ar.fromArray(pd),ar.scaleAndAdd(Fn,o/Math.tan(Math.PI-t));var s=Mt.x!==st.x?(ar.x-st.x)/(Mt.x-st.x):(ar.y-st.y)/(Mt.y-st.y);if(isNaN(s))return;s<0?ke.copy(ar,st):s>1&&ke.copy(ar,Mt),ar.toArray(e[1])}}}}function oZ(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,bn.fromArray(e[0]),st.fromArray(e[1]),Mt.fromArray(e[2]),ke.sub(Vn,st,bn),ke.sub(Fn,Mt,st);var n=Vn.len(),i=Fn.len();if(!(n<.001||i<.001)){Vn.scale(1/n),Fn.scale(1/i);var a=Vn.dot(t),o=Math.cos(r);if(a<o){var s=vd(st.x,st.y,Mt.x,Mt.y,bn.x,bn.y,pd,!1);ar.fromArray(pd);var l=Math.PI/2,u=Math.acos(Fn.dot(t)),f=l+u-r;if(f>=l)ke.copy(ar,Mt);else{ar.scaleAndAdd(Fn,s/Math.tan(Math.PI/2-f));var c=Mt.x!==st.x?(ar.x-st.x)/(Mt.x-st.x):(ar.y-st.y)/(Mt.y-st.y);if(isNaN(c))return;c<0?ke.copy(ar,st):c>1&&ke.copy(ar,Mt)}ar.toArray(e[1])}}}}function Zx(e,t,r,n){var i=r==="normal",a=i?e:e.ensureState(r);a.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();i?e.useStyle(s):a.style=s}function sZ(e,t){var r=t.smooth,n=t.points;if(n)if(e.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var i=hg(n[0],n[1]),a=hg(n[1],n[2]);if(!i||!a){e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*r,s=jh([],n[1],n[0],o/i),l=jh([],n[1],n[2],o/a),u=jh([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var f=1;f<n.length;f++)e.lineTo(n[f][0],n[f][1])}function WP(e,t,r){var n=e.getTextGuideLine(),i=e.getTextContent();if(!i){n&&e.removeTextGuideLine();return}for(var a=t.normal,o=a.get("show"),s=i.ignore,l=0;l<rd.length;l++){var u=rd[l],f=t[u],c=u==="normal";if(f){var d=f.get("show"),h=c?s:qe(i.states[u]&&i.states[u].ignore,s);if(h||!qe(d,o)){var v=c?n:n&&n.states[u];v&&(v.ignore=!0);continue}n||(n=new ih,e.setTextGuideLine(n),!c&&(s||!o)&&Zx(n,!0,"normal",t.normal),e.stateProxy&&(n.stateProxy=e.stateProxy)),Zx(n,!1,u,f)}}if(n){ut(n.style,r),n.style.fill=null;var p=a.get("showAbove"),g=e.textGuideLineConfig=e.textGuideLineConfig||{};g.showAbove=p||!1,n.buildPath=sZ}}function VP(e,t){t=t||"labelLine";for(var r={normal:e.getModel(t)},n=0;n<jn.length;n++){var i=jn[n];r[i]=e.getModel([i,t])}return r}function GP(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];if(!n.defaultAttr.ignore){var i=n.label,a=i.getComputedTransform(),o=i.getBoundingRect(),s=!a||a[1]<1e-5&&a[2]<1e-5,l=i.style.margin||0,u=o.clone();u.applyTransform(a),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var f=s?new nd(o,a):null;t.push({label:i,labelLine:n.labelLine,rect:u,localRect:o,obb:f,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:a})}}return t}function UP(e,t,r,n,i,a){var o=e.length;if(o<2)return;e.sort(function(C,T){return C.rect[t]-T.rect[t]});for(var s=0,l,u=!1,f=0,c=0;c<o;c++){var d=e[c],h=d.rect;l=h[t]-s,l<0&&(h[t]-=l,d.label[t]-=l,u=!0);var v=Math.max(-l,0);f+=v,s=h[t]+h[r]}f>0&&a&&x(-f/o,0,o);var p=e[0],g=e[o-1],m,y;_(),m<0&&w(-m,.8),y<0&&w(y,.8),_(),b(m,y,1),b(y,m,-1),_(),m<0&&S(-m),y<0&&S(y);function _(){m=p.rect[t]-n,y=i-g.rect[t]-g.rect[r]}function b(C,T,E){if(C<0){var A=Math.min(T,-C);if(A>0){x(A*E,0,o);var M=A+C;M<0&&w(-M*E,1)}else w(-C*E,1)}}function x(C,T,E){C!==0&&(u=!0);for(var A=T;A<E;A++){var M=e[A],D=M.rect;D[t]+=C,M.label[t]+=C}}function w(C,T){for(var E=[],A=0,M=1;M<o;M++){var D=e[M-1].rect,O=Math.max(e[M].rect[t]-D[t]-D[r],0);E.push(O),A+=O}if(A){var k=Math.min(Math.abs(C)/A,T);if(C>0)for(var M=0;M<o-1;M++){var F=E[M]*k;x(F,0,M+1)}else for(var M=o-1;M>0;M--){var F=E[M-1]*k;x(-F,M,o)}}}function S(C){var T=C<0?-1:1;C=Math.abs(C);for(var E=Math.ceil(C/(o-1)),A=0;A<o-1;A++)if(T>0?x(E,0,A+1):x(-E,o-A-1,o),C-=E,C<=0)return}return u}function lZ(e,t,r,n){return UP(e,"x","width",t,r,n)}function YP(e,t,r,n){return UP(e,"y","height",t,r,n)}function qP(e){var t=[];e.sort(function(p,g){return g.priority-p.priority});var r=new et(0,0,0,0);function n(p){if(!p.ignore){var g=p.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}p.ignore=!0}for(var i=0;i<e.length;i++){var a=e[i],o=a.axisAligned,s=a.localRect,l=a.transform,u=a.label,f=a.labelLine;r.copy(a.rect),r.width-=.1,r.height-=.1,r.x+=.05,r.y+=.05;for(var c=a.obb,d=!1,h=0;h<t.length;h++){var v=t[h];if(r.intersect(v.rect)){if(o&&v.axisAligned){d=!0;break}if(v.obb||(v.obb=new nd(v.localRect,v.transform)),c||(c=new nd(s,l)),c.intersect(v.obb)){d=!0;break}}}d?(n(u),f&&n(f)):(u.attr("ignore",a.defaultAttr.ignore),f&&f.attr("ignore",a.defaultAttr.labelGuideIgnore),t.push(a))}}function uZ(e){if(e){for(var t=[],r=0;r<e.length;r++)t.push(e[r].slice());return t}}function fZ(e,t){var r=e.label,n=t&&t.getTextGuideLine();return{dataIndex:e.dataIndex,dataType:e.dataType,seriesIndex:e.seriesModel.seriesIndex,text:e.label.style.text,rect:e.hostRect,labelRect:e.rect,align:r.style.align,verticalAlign:r.style.verticalAlign,labelLinePoints:uZ(n&&n.shape.points)}}var Qx=["align","verticalAlign","width","height","fontSize"],Pr=new Jd,tp=Tt(),cZ=Tt();function jf(e,t,r){for(var n=0;n<r.length;n++){var i=r[n];t[i]!=null&&(e[i]=t[i])}}var Kf=["x","y","rotation"],dZ=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(t,r,n,i,a){var o=i.style,s=i.__hostTarget,l=s.textConfig||{},u=i.getComputedTransform(),f=i.getBoundingRect().plain();et.applyTransform(f,f,u),u?Pr.setLocalTransform(u):(Pr.x=Pr.y=Pr.rotation=Pr.originX=Pr.originY=0,Pr.scaleX=Pr.scaleY=1);var c=i.__hostTarget,d;if(c){d=c.getBoundingRect().plain();var h=c.getComputedTransform();et.applyTransform(d,d,h)}var v=d&&c.getTextGuideLine();this._labelList.push({label:i,labelLine:v,seriesModel:n,dataIndex:t,dataType:r,layoutOption:a,computedLayoutOption:null,rect:f,hostRect:d,priority:d?d.width*d.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:v&&v.ignore,x:Pr.x,y:Pr.y,scaleX:Pr.scaleX,scaleY:Pr.scaleY,rotation:Pr.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:i.cursor,attachedPos:l.position,attachedRot:l.rotation}})},e.prototype.addLabelsOfSeries=function(t){var r=this;this._chartViewList.push(t);var n=t.__model,i=n.get("labelLayout");(We(i)||xt(i).length)&&t.group.traverse(function(a){if(a.ignore)return!0;var o=a.getTextContent(),s=lt(a);o&&!o.disableLabelLayout&&r._addLabel(s.dataIndex,s.dataType,n,o,i)})},e.prototype.updateLayoutConfig=function(t){var r=t.getWidth(),n=t.getHeight();function i(_,b){return function(){Xx(_,b)}}for(var a=0;a<this._labelList.length;a++){var o=this._labelList[a],s=o.label,l=s.__hostTarget,u=o.defaultAttr,f=void 0;We(o.layoutOption)?f=o.layoutOption(fZ(o,l)):f=o.layoutOption,f=f||{},o.computedLayoutOption=f;var c=Math.PI/180;l&&l.setTextConfig({local:!1,position:f.x!=null||f.y!=null?null:u.attachedPos,rotation:f.rotate!=null?f.rotate*c:u.attachedRot,offset:[f.dx||0,f.dy||0]});var d=!1;if(f.x!=null?(s.x=pt(f.x,r),s.setStyle("x",0),d=!0):(s.x=u.x,s.setStyle("x",u.style.x)),f.y!=null?(s.y=pt(f.y,n),s.setStyle("y",0),d=!0):(s.y=u.y,s.setStyle("y",u.style.y)),f.labelLinePoints){var h=l.getTextGuideLine();h&&(h.setShape({points:f.labelLinePoints}),d=!1)}var v=tp(s);v.needsUpdateLabelLine=d,s.rotation=f.rotate!=null?f.rotate*c:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var p=0;p<Qx.length;p++){var g=Qx[p];s.setStyle(g,f[g]!=null?f[g]:u.style[g])}if(f.draggable){if(s.draggable=!0,s.cursor="move",l){var m=o.seriesModel;if(o.dataIndex!=null){var y=o.seriesModel.getData(o.dataType);m=y.getItemModel(o.dataIndex)}s.on("drag",i(l,m.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},e.prototype.layout=function(t){var r=t.getWidth(),n=t.getHeight(),i=GP(this._labelList),a=Ft(i,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=Ft(i,function(l){return l.layoutOption.moveOverlap==="shiftY"});lZ(a,0,r),YP(o,0,n);var s=Ft(i,function(l){return l.layoutOption.hideOverlap});qP(s)},e.prototype.processLabelsOverall=function(){var t=this;R(this._chartViewList,function(r){var n=r.__model,i=r.ignoreLabelLineUpdate,a=n.isAnimationEnabled();r.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!i,l=o.getTextContent();!s&&l&&(s=tp(l).needsUpdateLabelLine),s&&t._updateLabelLine(o,n),a&&t._animateLabels(o,n)})})},e.prototype._updateLabelLine=function(t,r){var n=t.getTextContent(),i=lt(t),a=i.dataIndex;if(n&&a!=null){var o=r.getData(i.dataType),s=o.getItemModel(a),l={},u=o.getItemVisual(a,"style"),f=o.getVisual("drawType");l.stroke=u[f];var c=s.getModel("labelLine");WP(t,VP(s),l),Xx(t,c)}},e.prototype._animateLabels=function(t,r){var n=t.getTextContent(),i=t.getTextGuideLine();if(n&&(t.forceLabelAnimation||!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!os(t))){var a=tp(n),o=a.oldLayout,s=lt(t),l=s.dataIndex,u={x:n.x,y:n.y,rotation:n.rotation},f=r.getData(s.dataType);if(o){n.attr(o);var d=t.prevStates;d&&(nt(d,"select")>=0&&n.attr(a.oldLayoutSelect),nt(d,"emphasis")>=0&&n.attr(a.oldLayoutEmphasis)),Mr(n,u,r,l)}else if(n.attr(u),!qu(n).valueAnimation){var c=qe(n.style.opacity,1);n.style.opacity=0,Br(n,{style:{opacity:c}},r,l)}if(a.oldLayout=u,n.states.select){var h=a.oldLayoutSelect={};jf(h,u,Kf),jf(h,n.states.select,Kf)}if(n.states.emphasis){var v=a.oldLayoutEmphasis={};jf(v,u,Kf),jf(v,n.states.emphasis,Kf)}p7(n,l,f,r,r)}if(i&&!i.ignore&&!i.invisible){var a=cZ(i),o=a.oldLayout,p={points:i.shape.points};o?(i.attr({shape:o}),Mr(i,{shape:p},r)):(i.setShape(p),i.style.strokePercent=0,Br(i,{style:{strokePercent:1}},r)),a.oldLayout=p}},e}();const hZ=dZ;var rp=Tt();function vZ(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){var i=rp(r).labelManager;i||(i=rp(r).labelManager=new hZ),i.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(t,r,n){var i=rp(r).labelManager;n.updatedSeries.forEach(function(a){i.addLabelsOfSeries(r.getViewOfSeriesModel(a))}),i.updateLayoutConfig(r),i.layout(r),i.processLabelsOverall()})}function pZ(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=Es(e,t,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o<r.length;o++)a.push(Es(e,t,r[o]));return a.join(" ")}}function gZ(e,t){var r=e.mapDimensionsAll("defaultedLabel");if(!ge(t))return t+"";for(var n=[],i=0;i<r.length;i++){var a=e.getDimensionIndex(r[i]);a>=0&&n.push(t[a])}return n.join(" ")}function mZ(e,t,r,n,i){var a=e.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,f=r.get(["lineStyle","width"])||2;o-=f/2,s-=f/2,l+=f,u+=f,o=Math.floor(o),l=Math.round(l);var c=new Nt({shape:{x:o,y:s,width:l,height:u}});if(t){var d=e.getBaseAxis(),h=d.isHorizontal(),v=d.inverse;h?(v&&(c.shape.x+=l),c.shape.width=0):(v||(c.shape.y+=u),c.shape.height=0);var p=We(i)?function(g){i(g,c)}:null;Br(c,{shape:{width:l,height:u,x:o,y:s}},r,null,n,p)}return c}function yZ(e,t,r){var n=e.getArea(),i=It(n.r0,1),a=It(n.r,1),o=new wo({shape:{cx:It(e.cx,1),cy:It(e.cy,1),r0:i,r:a,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(t){var s=e.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=i,Br(o,{shape:{endAngle:n.endAngle,r:a}},r)}return o}function _Z(e,t,r,n,i){if(e){if(e.type==="polar")return yZ(e,t,r);if(e.type==="cartesian2d")return mZ(e,t,r,n,i)}else return null;return null}function jP(e,t){return e.type===t}var bZ={average:function(e){for(var t=0,r=0,n=0;n<e.length;n++)isNaN(e[n])||(t+=e[n],r++);return r===0?NaN:t/r},sum:function(e){for(var t=0,r=0;r<e.length;r++)t+=e[r]||0;return t},max:function(e){for(var t=-1/0,r=0;r<e.length;r++)e[r]>t&&(t=e[r]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,r=0;r<e.length;r++)e[r]<t&&(t=e[r]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},wZ=function(e){return Math.round(e.length/2)};function xZ(e){return{seriesType:e,reset:function(t,r,n){var i=t.getData(),a=t.get("sampling"),o=t.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),c=n.getDevicePixelRatio(),d=Math.abs(f[1]-f[0])*(c||1),h=Math.round(s/d);if(isFinite(h)&&h>1){a==="lttb"&&t.setData(i.lttbDownSample(i.mapDimension(u.dim),1/h));var v=void 0;Ce(a)?v=bZ[a]:We(a)&&(v=a),v&&t.setData(i.downSample(i.mapDimension(u.dim),1/h,v,wZ))}}}}}var KP=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){return _P(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(r,n,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.dataToPoint(a.clampData(r));if(i)R(a.getAxes(),function(c,d){if(c.type==="category"){var h=c.getTicksCoords(),v=a.clampData(r)[d];n&&(n[d]==="x1"||n[d]==="y1")&&(v+=1),v>h.length-1&&(v=h.length-1),v<0&&(v=0),h[v]&&(o[d]=c.toGlobalCoord(h[v].coord))}});else{var s=this.getData(),l=s.getLayout("offset"),u=s.getLayout("size"),f=a.getBaseAxis().isHorizontal()?0:1;o[f]+=l+u/2}return o}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(po);po.registerClass(KP);const Jx=KP;var SZ=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(){return _P(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var r=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>r&&(r=n),r},t.prototype.brushSelector=function(r,n,i){return i.rect(n.getItemLayout(r))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Y2(Jx.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(Jx);const CZ=SZ;var TZ=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),MZ=function(e){pe(t,e);function t(r){var n=e.call(this,r)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new TZ},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,f=n.startAngle,c=n.endAngle,d=n.clockwise,h=Math.PI*2,v=d?c-f<h:f-c<h;v||(f=c-(d?h:-h));var p=Math.cos(f),g=Math.sin(f),m=Math.cos(c),y=Math.sin(c);v?(r.moveTo(p*o+i,g*o+a),r.arc(p*u+i,g*u+a,l,-Math.PI+f,f,!d)):r.moveTo(p*s+i,g*s+a),r.arc(i,a,s,f,c,!d),r.arc(m*u+i,y*u+a,l,c-Math.PI*2,c-Math.PI,!d),o!==0&&r.arc(i,a,o,c,f,d)},t}(ft);const eS=MZ;function AZ(e,t){t=t||{};var r=t.isRoundCap;return function(n,i,a){var o=i.position;if(!o||o instanceof Array)return Jc(n,i,a);var s=e(o),l=i.distance!=null?i.distance:5,u=this.shape,f=u.cx,c=u.cy,d=u.r,h=u.r0,v=(d+h)/2,p=u.startAngle,g=u.endAngle,m=(p+g)/2,y=r?Math.abs(d-h)/2:0,_=Math.cos,b=Math.sin,x=f+d*_(p),w=c+d*b(p),S="left",C="top";switch(s){case"startArc":x=f+(h-l)*_(m),w=c+(h-l)*b(m),S="center",C="top";break;case"insideStartArc":x=f+(h+l)*_(m),w=c+(h+l)*b(m),S="center",C="bottom";break;case"startAngle":x=f+v*_(p)+Xf(p,l+y,!1),w=c+v*b(p)+Zf(p,l+y,!1),S="right",C="middle";break;case"insideStartAngle":x=f+v*_(p)+Xf(p,-l+y,!1),w=c+v*b(p)+Zf(p,-l+y,!1),S="left",C="middle";break;case"middle":x=f+v*_(m),w=c+v*b(m),S="center",C="middle";break;case"endArc":x=f+(d+l)*_(m),w=c+(d+l)*b(m),S="center",C="bottom";break;case"insideEndArc":x=f+(d-l)*_(m),w=c+(d-l)*b(m),S="center",C="top";break;case"endAngle":x=f+v*_(g)+Xf(g,l+y,!0),w=c+v*b(g)+Zf(g,l+y,!0),S="left",C="middle";break;case"insideEndAngle":x=f+v*_(g)+Xf(g,-l+y,!0),w=c+v*b(g)+Zf(g,-l+y,!0),S="right",C="middle";break;default:return Jc(n,i,a)}return n=n||{},n.x=x,n.y=w,n.align=S,n.verticalAlign=C,n}}function EZ(e,t,r,n){if(_t(n)){e.setTextConfig({rotation:n});return}else if(ge(t)){e.setTextConfig({rotation:0});return}var i=e.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+o)/2,l,u=r(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=a;break;case"endAngle":case"insideEndAngle":l=o;break;default:e.setTextConfig({rotation:0});return}var f=Math.PI*1.5-l;u==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),e.setTextConfig({rotation:f})}function Xf(e,t,r){return t*Math.sin(e)*(r?-1:1)}function Zf(e,t,r){return t*Math.cos(e)*(r?1:-1)}var np=Math.max,ip=Math.min;function PZ(e,t){var r=e.getArea&&e.getArea();if(jP(e,"cartesian2d")){var n=e.getBaseAxis();if(n.type!=="category"||!n.onBand){var i=t.getLayout("bandWidth");n.isHorizontal()?(r.x-=i,r.width+=i*2):(r.y-=i,r.height+=i*2)}}return r}var LZ=function(e){pe(t,e);function t(){var r=e.call(this)||this;return r.type=t.type,r._isFirstFrame=!0,r}return t.prototype.render=function(r,n,i,a){this._model=r,this._removeOnRenderedListener(i),this._updateDrawMode(r);var o=r.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,n,i):this._renderNormal(r,n,i,a))},t.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},t.prototype.incrementalRender=function(r,n){this._progressiveEls=[],this._incrementalRenderLarge(r,n)},t.prototype.eachRendered=function(r){n0(this._progressiveEls||this.group,r)},t.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(r,n,i,a){var o=this.group,s=r.getData(),l=this._data,u=r.coordinateSystem,f=u.getBaseAxis(),c;u.type==="cartesian2d"?c=f.isHorizontal():u.type==="polar"&&(c=f.dim==="angle");var d=r.isAnimationEnabled()?r:null,h=DZ(r,u);h&&this._enableRealtimeSort(h,s,i);var v=r.get("clip",!0)||h,p=PZ(u,s);o.removeClipPath();var g=r.get("roundCap",!0),m=r.get("showBackground",!0),y=r.getModel("backgroundStyle"),_=y.get("borderRadius")||0,b=[],x=this._backgroundEls,w=a&&a.isInitSort,S=a&&a.type==="changeAxisOrder";function C(A){var M=Qf[u.type](s,A),D=FZ(u,c,M);return D.useStyle(y.getItemStyle()),u.type==="cartesian2d"&&D.setShape("r",_),b[A]=D,D}s.diff(l).add(function(A){var M=s.getItemModel(A),D=Qf[u.type](s,A,M);if(m&&C(A),!(!s.hasValue(A)||!aS[u.type](D))){var O=!1;v&&(O=tS[u.type](p,D));var k=rS[u.type](r,s,A,D,c,d,f.model,!1,g);h&&(k.forceLabelAnimation=!0),oS(k,s,A,M,D,r,c,u.type==="polar"),w?k.attr({shape:D}):h?nS(h,d,k,D,A,c,!1,!1):Br(k,{shape:D},r,A),s.setItemGraphicEl(A,k),o.add(k),k.ignore=O}}).update(function(A,M){var D=s.getItemModel(A),O=Qf[u.type](s,A,D);if(m){var k=void 0;x.length===0?k=C(M):(k=x[M],k.useStyle(y.getItemStyle()),u.type==="cartesian2d"&&k.setShape("r",_),b[A]=k);var F=Qf[u.type](s,A),j=ZP(c,F,u);Mr(k,{shape:j},d,A)}var B=l.getItemGraphicEl(M);if(!s.hasValue(A)||!aS[u.type](O)){o.remove(B);return}var N=!1;if(v&&(N=tS[u.type](p,O),N&&o.remove(B)),B?N2(B):B=rS[u.type](r,s,A,O,c,d,f.model,!!B,g),h&&(B.forceLabelAnimation=!0),S){var U=B.getTextContent();if(U){var re=qu(U);re.prevValue!=null&&(re.prevValue=re.value)}}else oS(B,s,A,D,O,r,c,u.type==="polar");w?B.attr({shape:O}):h?nS(h,d,B,O,A,c,!0,S):Mr(B,{shape:O},r,A,null),s.setItemGraphicEl(A,B),B.ignore=N,o.add(B)}).remove(function(A){var M=l.getItemGraphicEl(A);M&&id(M,r,A)}).execute();var T=this._backgroundGroup||(this._backgroundGroup=new sn);T.removeAll();for(var E=0;E<b.length;++E)T.add(b[E]);o.add(T),this._backgroundEls=b,this._data=s},t.prototype._renderLarge=function(r,n,i){this._clear(),lS(r,this.group),this._updateLargeClip(r)},t.prototype._incrementalRenderLarge=function(r,n){this._removeBackground(),lS(n,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(r){var n=r.get("clip",!0)&&_Z(r.coordinateSystem,!1,r),i=this.group;n?i.setClipPath(n):i.removeClipPath()},t.prototype._enableRealtimeSort=function(r,n,i){var a=this;if(n.count()){var o=r.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,r,i),this._isFirstFrame=!1;else{var s=function(l){var u=n.getItemGraphicEl(l),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){a._updateSortWithinSameData(n,s,o,i)},i.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(r,n,i){var a=[];return r.each(r.mapDimension(n.dim),function(o,s){var l=i(s);l=l??NaN,a.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:Oe(a,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(r,n,i){for(var a=i.scale,o=r.mapDimension(i.dim),s=Number.MAX_VALUE,l=0,u=a.getOrdinalMeta().categories.length;l<u;++l){var f=r.rawIndexOf(o,a.getRawOrdinalNumber(l)),c=f<0?Number.MIN_VALUE:n(r.indexOfRawIndex(f));if(c>s)return!0;s=c}return!1},t.prototype._isOrderDifferentInView=function(r,n){for(var i=n.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(r,n,i,a){if(this._isOrderChangedWithinSameData(r,n,i)){var o=this._dataSort(r,i,n);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(r,n,i){var a=n.baseAxis,o=this._dataSort(r,a,function(s){return r.get(r.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},t.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(r){var n=this.group,i=this._data;r&&r.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){id(a,r,lt(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(io),tS={cartesian2d:function(e,t){var r=t.width<0?-1:1,n=t.height<0?-1:1;r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=np(t.x,e.x),s=ip(t.x+t.width,i),l=np(t.y,e.y),u=ip(t.y+t.height,a),f=s<o,c=u<l;return t.x=f&&o>i?s:o,t.y=c&&l>a?u:l,t.width=f?0:s-o,t.height=c?0:u-l,r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),f||c},polar:function(e,t){var r=t.r0<=t.r?1:-1;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}var i=ip(t.r,e.r),a=np(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},rS={cartesian2d:function(e,t,r,n,i,a,o,s,l){var u=new Nt({shape:oe({},n),z2:1});if(u.__dataIndex=r,u.name="item",a){var f=u.shape,c=i?"height":"width";f[c]=0}return u},polar:function(e,t,r,n,i,a,o,s,l){var u=!i&&l?eS:wo,f=new u({shape:n,z2:1});f.name="item";var c=XP(i);if(f.calculateTextPosition=AZ(c,{isRoundCap:u===eS}),a){var d=f.shape,h=i?"r":"endAngle",v={};d[h]=i?0:n.startAngle,v[h]=n[h],(s?Mr:Br)(f,{shape:v},a)}return f}};function DZ(e,t){var r=e.get("realtimeSort",!0),n=t.getBaseAxis();if(r&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function nS(e,t,r,n,i,a,o,s){var l,u;a?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?Mr:Br)(r,{shape:l},t,i,null);var f=t?e.baseAxis.model:null;(o?Mr:Br)(r,{shape:u},f,i)}function iS(e,t){for(var r=0;r<t.length;r++)if(!isFinite(e[t[r]]))return!0;return!1}var IZ=["x","y","width","height"],RZ=["cx","cy","r","startAngle","endAngle"],aS={cartesian2d:function(e){return!iS(e,IZ)},polar:function(e){return!iS(e,RZ)}},Qf={cartesian2d:function(e,t,r){var n=e.getItemLayout(t),i=r?kZ(r,n):0,a=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+a*i/2,y:n.y+o*i/2,width:n.width-a*i,height:n.height-o*i}},polar:function(e,t,r){var n=e.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function OZ(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function XP(e){return function(t){var r=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+r;default:return n}}}(e)}function oS(e,t,r,n,i,a,o,s){var l=t.getItemVisual(r,"style");s||e.setShape("r",n.get(["itemStyle","borderRadius"])||0),e.useStyle(l);var u=n.getShallow("cursor");u&&e.attr("cursor",u);var f=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",c=V2(n);i0(e,c,{labelFetcher:a,labelDataIndex:r,defaultText:pZ(a.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:f});var d=e.getTextContent();if(s&&d){var h=n.get(["label","position"]);e.textConfig.inside=h==="middle"?!0:null,EZ(e,h==="outside"?f:h,XP(o),n.get(["label","rotate"]))}v7(d,c,a.getRawValue(r),function(p){return gZ(t,p)});var v=n.getModel(["emphasis"]);h2(e,v.get("focus"),v.get("blurScope"),v.get("disabled")),v2(e,n),OZ(i)&&(e.style.fill="none",e.style.stroke="none",R(e.states,function(p){p.style&&(p.style.fill=p.style.stroke="none")}))}function kZ(e,t){var r=e.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=e.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,i,a)}var NZ=function(){function e(){}return e}(),sS=function(e){pe(t,e);function t(r){var n=e.call(this,r)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new NZ},t.prototype.buildPath=function(r,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<i.length;f+=3)l[a]=u,l[o]=i[f+2],s[a]=i[f+a],s[o]=i[f+o],r.rect(s[0],s[1],l[0],l[1])},t}(ft);function lS(e,t,r,n){var i=e.getData(),a=i.getLayout("valueAxisHorizontal")?1:0,o=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=e.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints");if(u){var f=new sS({shape:{points:u},incremental:!!n,silent:!0,z2:0});f.baseDimIdx=a,f.largeDataIndices=o,f.barWidth=s,f.useStyle(l.getItemStyle()),t.add(f),r&&r.push(f)}var c=new sS({shape:{points:i.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});c.baseDimIdx=a,c.largeDataIndices=o,c.barWidth=s,t.add(c),c.useStyle(i.getVisual("style")),lt(c).seriesIndex=e.seriesIndex,e.get("silent")||(c.on("mousedown",uS),c.on("mousemove",uS)),r&&r.push(c)}var uS=b0(function(e){var t=this,r=BZ(t,e.offsetX,e.offsetY);lt(t).dataIndex=r>=0?r:null},30,!1);function BZ(e,t,r){for(var n=e.baseDimIdx,i=1-n,a=e.shape.points,o=e.largeDataIndices,s=[],l=[],u=e.barWidth,f=0,c=a.length/3;f<c;f++){var d=f*3;if(l[n]=u,l[i]=a[d+2],s[n]=a[d+n],s[i]=a[d+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),t>=s[0]&&t<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[f]}return-1}function ZP(e,t,r){if(jP(r,"cartesian2d")){var n=t,i=r.getArea();return{x:e?n.x:i.x,y:e?i.y:n.y,width:e?n.width:i.width,height:e?i.height:n.height}}else{var i=r.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}}function FZ(e,t,r){var n=e.type==="polar"?wo:Nt;return new n({shape:ZP(t,r,e),silent:!0,z2:0})}const $Z=LZ;function HZ(e){e.registerChartView($Z),e.registerSeriesModel(CZ),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Dt(gX,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,mX("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,xZ("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,r){var n=t.componentType||"series";r.eachComponent({mainType:n,query:t},function(i){t.sortInfo&&i.axis.setCategorySortInfo(t.sortInfo)})})}var Jf=Math.PI*2,fS=Math.PI/180;function QP(e,t){return Ms(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function JP(e,t){var r=QP(e,t),n=e.get("center"),i=e.get("radius");ge(i)||(i=[0,i]);var a=pt(r.width,t.getWidth()),o=pt(r.height,t.getHeight()),s=Math.min(a,o),l=pt(i[0],s/2),u=pt(i[1],s/2),f,c,d=e.coordinateSystem;if(d){var h=d.dataToPoint(n);f=h[0]||0,c=h[1]||0}else ge(n)||(n=[n,n]),f=pt(n[0],a)+r.x,c=pt(n[1],o)+r.y;return{cx:f,cy:c,r0:l,r:u}}function zZ(e,t,r){t.eachSeriesByType(e,function(n){var i=n.getData(),a=i.mapDimension("value"),o=QP(n,r),s=JP(n,r),l=s.cx,u=s.cy,f=s.r,c=s.r0,d=-n.get("startAngle")*fS,h=n.get("minAngle")*fS,v=0;i.each(a,function(E){!isNaN(E)&&v++});var p=i.getSum(a),g=Math.PI/(p||v)*2,m=n.get("clockwise"),y=n.get("roseType"),_=n.get("stillShowZeroSum"),b=i.getDataExtent(a);b[0]=0;var x=Jf,w=0,S=d,C=m?1:-1;if(i.setLayout({viewRect:o,r:f}),i.each(a,function(E,A){var M;if(isNaN(E)){i.setItemLayout(A,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:m,cx:l,cy:u,r0:c,r:y?NaN:f});return}y!=="area"?M=p===0&&_?g:E*g:M=Jf/v,M<h?(M=h,x-=h):w+=E;var D=S+C*M;i.setItemLayout(A,{angle:M,startAngle:S,endAngle:D,clockwise:m,cx:l,cy:u,r0:c,r:y?Eg(E,b,[c,f]):f}),S=D}),x<Jf&&v)if(x<=.001){var T=Jf/v;i.each(a,function(E,A){if(!isNaN(E)){var M=i.getItemLayout(A);M.angle=T,M.startAngle=d+C*A*T,M.endAngle=d+C*(A+1)*T}})}else g=x/w,S=d,i.each(a,function(E,A){if(!isNaN(E)){var M=i.getItemLayout(A),D=M.angle===h?h:E*g;M.startAngle=S,M.endAngle=S+C*D,S+=C*D}})})}function WZ(e){return{seriesType:e,reset:function(t,r){var n=r.findComponents({mainType:"legend"});if(!(!n||!n.length)){var i=t.getData();i.filterSelf(function(a){for(var o=i.getName(a),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}var VZ=Math.PI/180;function cS(e,t,r,n,i,a,o,s,l,u){if(e.length<2)return;function f(p){for(var g=p.rB,m=g*g,y=0;y<p.list.length;y++){var _=p.list[y],b=Math.abs(_.label.y-r),x=n+_.len,w=x*x,S=Math.sqrt((1-Math.abs(b*b/m))*w),C=t+(S+_.len2)*i,T=C-_.label.x,E=_.targetTextWidth-T*i;eL(_,E,!0),_.label.x=C}}function c(p){for(var g={list:[],maxY:0},m={list:[],maxY:0},y=0;y<p.length;y++)if(p[y].labelAlignTo==="none"){var _=p[y],b=_.label.y>r?m:g,x=Math.abs(_.label.y-r);if(x>=b.maxY){var w=_.label.x-t-_.len2*i,S=n+_.len,C=Math.abs(w)<S?Math.sqrt(x*x/(1-w*w/S/S)):S;b.rB=C,b.maxY=x}b.list.push(_)}f(g),f(m)}for(var d=e.length,h=0;h<d;h++)if(e[h].position==="outer"&&e[h].labelAlignTo==="labelLine"){var v=e[h].label.x-u;e[h].linePoints[1][0]+=v,e[h].label.x=u}YP(e,l,l+o)&&c(e)}function GZ(e,t,r,n,i,a,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,c=-Number.MAX_VALUE,d=0;d<e.length;d++){var h=e[d].label;ap(e[d])||(h.x<t?(f=Math.min(f,h.x),l.push(e[d])):(c=Math.max(c,h.x),u.push(e[d])))}for(var d=0;d<e.length;d++){var v=e[d];if(!ap(v)&&v.linePoints){if(v.labelStyleWidth!=null)continue;var h=v.label,p=v.linePoints,g=void 0;v.labelAlignTo==="edge"?h.x<t?g=p[2][0]-v.labelDistance-o-v.edgeDistance:g=o+i-v.edgeDistance-p[2][0]-v.labelDistance:v.labelAlignTo==="labelLine"?h.x<t?g=f-o-v.bleedMargin:g=o+i-c-v.bleedMargin:h.x<t?g=h.x-o-v.bleedMargin:g=o+i-h.x-v.bleedMargin,v.targetTextWidth=g,eL(v,g)}}cS(u,t,r,n,1,i,a,o,s,c),cS(l,t,r,n,-1,i,a,o,s,f);for(var d=0;d<e.length;d++){var v=e[d];if(!ap(v)&&v.linePoints){var h=v.label,p=v.linePoints,m=v.labelAlignTo==="edge",y=h.style.padding,_=y?y[1]+y[3]:0,b=h.style.backgroundColor?0:_,x=v.rect.width+b,w=p[1][0]-p[2][0];m?h.x<t?p[2][0]=o+v.edgeDistance+x+v.labelDistance:p[2][0]=o+i-v.edgeDistance-x-v.labelDistance:(h.x<t?p[2][0]=h.x+v.labelDistance:p[2][0]=h.x-v.labelDistance,p[1][0]=p[2][0]+w),p[1][1]=p[2][1]=h.y}}}function eL(e,t,r){if(r===void 0&&(r=!1),e.labelStyleWidth==null){var n=e.label,i=n.style,a=e.rect,o=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,f=a.width+(o?0:l);if(t<f||r){var c=a.height;if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",t-l);var d=n.getBoundingRect();n.setStyle("width",Math.ceil(d.width)),n.setStyle("backgroundColor",o)}else{var h=t-l,v=t<f?h:r?h>e.unconstrainedWidth?null:h:null;n.setStyle("width",v)}var p=n.getBoundingRect();a.width=p.width;var g=(n.style.margin||0)+2.1;a.height=p.height+g,a.y-=(a.height-c)/2}}}function ap(e){return e.position==="center"}function UZ(e){var t=e.getData(),r=[],n,i,a=!1,o=(e.get("minShowLabelAngle")||0)*VZ,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,f=s.x,c=s.y,d=s.height;function h(w){w.ignore=!0}function v(w){if(!w.ignore)return!0;for(var S in w.states)if(w.states[S].ignore===!1)return!0;return!1}t.each(function(w){var S=t.getItemGraphicEl(w),C=S.shape,T=S.getTextContent(),E=S.getTextGuideLine(),A=t.getItemModel(w),M=A.getModel("label"),D=M.get("position")||A.get(["emphasis","label","position"]),O=M.get("distanceToLabelLine"),k=M.get("alignTo"),F=pt(M.get("edgeDistance"),u),j=M.get("bleedMargin"),B=A.getModel("labelLine"),N=B.get("length");N=pt(N,u);var U=B.get("length2");if(U=pt(U,u),Math.abs(C.endAngle-C.startAngle)<o){R(T.states,h),T.ignore=!0,E&&(R(E.states,h),E.ignore=!0);return}if(v(T)){var re=(C.startAngle+C.endAngle)/2,ae=Math.cos(re),me=Math.sin(re),Te,V,Q,W;n=C.cx,i=C.cy;var Y=D==="inside"||D==="inner";if(D==="center")Te=C.cx,V=C.cy,W="center";else{var se=(Y?(C.r+C.r0)/2*ae:C.r*ae)+n,he=(Y?(C.r+C.r0)/2*me:C.r*me)+i;if(Te=se+ae*3,V=he+me*3,!Y){var Z=se+ae*(N+l-C.r),P=he+me*(N+l-C.r),I=Z+(ae<0?-1:1)*U,z=P;k==="edge"?Te=ae<0?f+F:f+u-F:Te=I+(ae<0?-O:O),V=z,Q=[[se,he],[Z,P],[I,z]]}W=Y?"center":k==="edge"?ae>0?"right":"left":ae>0?"left":"right"}var G=Math.PI,q=0,ne=M.get("rotate");if(_t(ne))q=ne*(G/180);else if(D==="center")q=0;else if(ne==="radial"||ne===!0){var ce=ae<0?-re+G:-re;q=ce}else if(ne==="tangential"&&D!=="outside"&&D!=="outer"){var te=Math.atan2(ae,me);te<0&&(te=G*2+te);var ie=me>0;ie&&(te=G+te),q=te-G}if(a=!!q,T.x=Te,T.y=V,T.rotation=q,T.setStyle({verticalAlign:"middle"}),Y){T.setStyle({align:W});var ve=T.states.select;ve&&(ve.x+=T.x,ve.y+=T.y)}else{var K=T.getBoundingRect().clone();K.applyTransform(T.getComputedTransform());var _e=(T.style.margin||0)+2.1;K.y-=_e/2,K.height+=_e,r.push({label:T,labelLine:E,position:D,len:N,len2:U,minTurnAngle:B.get("minTurnAngle"),maxSurfaceAngle:B.get("maxSurfaceAngle"),surfaceNormal:new ke(ae,me),linePoints:Q,textAlign:W,labelDistance:O,labelAlignTo:k,edgeDistance:F,bleedMargin:j,rect:K,unconstrainedWidth:K.width,labelStyleWidth:T.style.width})}S.setTextConfig({inside:Y})}}),!a&&e.get("avoidLabelOverlap")&&GZ(r,n,i,l,u,d,f,c);for(var p=0;p<r.length;p++){var g=r[p],m=g.label,y=g.labelLine,_=isNaN(m.x)||isNaN(m.y);if(m){m.setStyle({align:g.textAlign}),_&&(R(m.states,h),m.ignore=!0);var b=m.states.select;b&&(b.x+=m.x,b.y+=m.y)}if(y){var x=g.linePoints;_||!x?(R(y.states,h),y.ignore=!0):(zP(x,g.minTurnAngle),oZ(x,g.surfaceNormal,g.maxSurfaceAngle),y.setShape({points:x}),m.__hostTarget.textGuideLineConfig={anchor:new ke(x[0][0],x[0][1])})}}}function ec(e,t,r){var n=e.get("borderRadius");if(n==null)return r?{cornerRadius:0}:null;ge(n)||(n=[n,n,n,n]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:Oe(n,function(a){return ta(a,i)})}}var YZ=function(e){pe(t,e);function t(r,n,i){var a=e.call(this)||this;a.z2=2;var o=new fr;return a.setTextContent(o),a.updateData(r,n,i,!0),a}return t.prototype.updateData=function(r,n,i,a){var o=this,s=r.hostModel,l=r.getItemModel(n),u=l.getModel("emphasis"),f=r.getItemLayout(n),c=oe(ec(l.getModel("itemStyle"),f,!0),f);if(isNaN(c.startAngle)){o.setShape(c);return}if(a){o.setShape(c);var d=s.getShallow("animationType");s.ecModel.ssr?(Br(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=c.cx,o.originY=c.cy):d==="scale"?(o.shape.r=f.r0,Br(o,{shape:{r:f.r}},s,n)):i!=null?(o.setShape({startAngle:i,endAngle:i}),Br(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,n)):(o.shape.endAngle=f.startAngle,Mr(o,{shape:{endAngle:f.endAngle}},s,n))}else N2(o),Mr(o,{shape:c},s,n);o.useStyle(r.getItemVisual(n,"style")),v2(o,l);var h=(f.startAngle+f.endAngle)/2,v=s.get("selectedOffset"),p=Math.cos(h)*v,g=Math.sin(h)*v,m=l.getShallow("cursor");m&&o.attr("cursor",m),this._updateLabel(s,r,n),o.ensureState("emphasis").shape=oe({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},ec(u.getModel("itemStyle"),f)),oe(o.ensureState("select"),{x:p,y:g,shape:ec(l.getModel(["select","itemStyle"]),f)}),oe(o.ensureState("blur"),{shape:ec(l.getModel(["blur","itemStyle"]),f)});var y=o.getTextGuideLine(),_=o.getTextContent();y&&oe(y.ensureState("select"),{x:p,y:g}),oe(_.ensureState("select"),{x:p,y:g}),h2(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r,n,i){var a=this,o=n.getItemModel(i),s=o.getModel("labelLine"),l=n.getItemVisual(i,"style"),u=l&&l.fill,f=l&&l.opacity;i0(a,V2(o),{labelFetcher:n.hostModel,labelDataIndex:i,inheritColor:u,defaultOpacity:f,defaultText:r.getFormattedLabel(i,"normal")||n.getName(i)});var c=a.getTextContent();a.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var d=r.get(["label","position"]);if(d!=="outside"&&d!=="outer")a.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new ih,this.setTextGuideLine(h)),WP(this,VP(o),{stroke:u,opacity:Bl(s.get(["lineStyle","opacity"]),f,1)})}},t}(wo),qZ=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.ignoreLabelLineUpdate=!0,r}return t.prototype.render=function(r,n,i,a){var o=r.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),c=1;isNaN(f&&f.startAngle)&&c<o.count();++c)f=o.getItemLayout(c);f&&(u=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&r.get("showEmptyCircle")){var d=new wo({shape:JP(r,i)});d.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=d,l.add(d)}o.diff(s).add(function(h){var v=new YZ(o,h,u);o.setItemGraphicEl(h,v),l.add(v)}).update(function(h,v){var p=s.getItemGraphicEl(v);p.updateData(o,h,u),p.off("click"),l.add(p),o.setItemGraphicEl(h,p)}).remove(function(h){var v=s.getItemGraphicEl(h);id(v,r,h)}).execute(),UZ(r),r.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(r,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=r[0]-a.cx,s=r[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},t.type="pie",t}(io);const jZ=qZ;function KZ(e,t,r){t=ge(t)&&{coordDimensions:t}||oe({encodeDefine:e.getEncode()},t);var n=e.getSource(),i=mP(n,t).dimensions,a=new gP(i,e);return a.initData(n,r),a}var XZ=function(){function e(t,r){this._getDataWithEncodedVisual=t,this._getRawData=r}return e.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},e.prototype.containName=function(t){var r=this._getRawData();return r.indexOfName(t)>=0},e.prototype.indexOfName=function(t){var r=this._getDataWithEncodedVisual();return r.indexOfName(t)},e.prototype.getItemVisual=function(t,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,r)},e}();const ZZ=XZ;var QZ=Tt(),JZ=function(e){pe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new ZZ(yt(this.getData,this),yt(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return KZ(this,{coordDimensions:["value"],encodeDefaulter:Dt(V7,this)})},t.prototype.getDataParams=function(r){var n=this.getData(),i=QZ(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=TU(o,n.hostModel.get("percentPrecision"))}var s=e.prototype.getDataParams.call(this,r);return s.percent=a[r]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(r){Pg(r,"labelLine",["show"]);var n=r.labelLine,i=r.emphasis.labelLine;n.show=n.show&&r.label.show,i.show=i.show&&r.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(po);const eQ=JZ;function tQ(e){return{seriesType:e,reset:function(t,r){var n=t.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(_t(o)&&!isNaN(o)&&o<0)})}}}function rQ(e){e.registerChartView(jZ),e.registerSeriesModel(eQ),Lj("pie",e.registerAction),e.registerLayout(Dt(zZ,"pie")),e.registerProcessor(WZ("pie")),e.registerProcessor(tQ("pie"))}var nQ=function(e){pe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(bt);const iQ=nQ;var sm=function(e){pe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",_n).models[0]},t.type="cartesian2dAxis",t}(bt);Qn(sm,WX);var tL={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},aQ=it({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},tL),R0=it({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},tL),oQ=it({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},R0),sQ=ut({logBase:10},R0);const lQ={category:aQ,value:R0,time:oQ,log:sQ};var uQ={value:1,category:1,time:1,log:1};function dS(e,t,r,n){R(uQ,function(i,a){var o=it(it({},lQ[a],!0),n,!0),s=function(l){pe(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=t+"Axis."+a,f}return u.prototype.mergeDefaultAndTheme=function(f,c){var d=Cu(this),h=d?hh(f):{},v=c.getTheme();it(f,v.get(a+"Axis")),it(f,this.getDefaultOption()),f.type=hS(f),d&&As(f,h,d)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=am.createByAxisModel(this))},u.prototype.getCategories=function(f){var c=this.option;if(c.type==="category")return f?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+a,u.defaultOption=o,u}(r);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",hS)}function hS(e){return e.type||(e.data?"category":"value")}var fQ=function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return Oe(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Ft(this.getAxes(),function(r){return r.scale.type===t})},e.prototype.addAxis=function(t){var r=t.dim;this._axes[r]=t,this._dimList.push(r)},e}();const cQ=fQ;var lm=["x","y"];function vS(e){return e.type==="interval"||e.type==="time"}var dQ=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=lm,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!vS(r)||!vS(n))){var i=r.getExtent(),a=n.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,c=(s[1]-o[1])/u,d=o[0]-i[0]*f,h=o[1]-a[0]*c,v=this._transform=[f,0,0,c,d,h];this._invTransform=Qd([],v)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(r){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&i.contain(i.toLocalCoord(r[1]))},t.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},t.prototype.containZone=function(r,n){var i=this.dataToPoint(r),a=this.dataToPoint(n),o=this.getArea(),s=new et(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},t.prototype.dataToPoint=function(r,n,i){i=i||[];var a=r[0],o=r[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return rn(i,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=l.toGlobalCoord(l.dataToCoord(o,n)),i},t.prototype.clampData=function(r,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(r[0]),u=a.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(r,n){var i=[];if(this._invTransform)return rn(i,r,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(r[0]),n),i[1]=o.coordToData(o.toLocalCoord(r[1]),n),i},t.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},t.prototype.getArea=function(){var r=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(r[0],r[1]),a=Math.min(n[0],n[1]),o=Math.max(r[0],r[1])-i,s=Math.max(n[0],n[1])-a;return new et(i,a,o,s)},t}(cQ),hQ=function(e){pe(t,e);function t(r,n,i,a,o){var s=e.call(this,r,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},t.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},t}(eZ);const vQ=hQ;function um(e,t,r){r=r||{};var n=e.coordinateSystem,i=t.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,u=i.dim,f=n.getRect(),c=[f.x,f.x+f.width,f.y,f.y+f.height],d={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,v=u==="x"?[c[2]-h,c[3]+h]:[c[0]-h,c[1]+h];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));v[d.onZero]=Math.max(Math.min(p,v[1]),v[0])}a.position=[u==="y"?v[d[l]]:c[0],u==="x"?v[d[l]]:c[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=g[s],a.labelOffset=o?v[d[s]]-v[d.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),pu(r.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var m=t.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-m:m,a.z2=1,a}function pS(e){return e.get("coordinateSystem")==="cartesian2d"}function gS(e){var t={xAxisModel:null,yAxisModel:null};return R(t,function(r,n){var i=n.replace(/Model$/,""),a=e.getReferringComponents(i,_n).models[0];t[n]=a}),t}var op=Math.log;function pQ(e,t,r){var n=ju.prototype,i=n.getTicks.call(r),a=n.getTicks.call(r,!0),o=i.length-1,s=n.getInterval.call(r),l=IP(e,t),u=l.extent,f=l.fixMin,c=l.fixMax;if(e.type==="log"){var d=op(e.base);u=[op(u[0])/d,op(u[1])/d]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:c});var h=n.getExtent.call(e);f&&(u[0]=h[0]),c&&(u[1]=h[1]);var v=n.getInterval.call(e),p=u[0],g=u[1];if(f&&c)v=(g-p)/o;else if(f)for(g=u[0]+v*o;g<u[1]&&isFinite(g)&&isFinite(u[1]);)v=Jv(v),g=u[0]+v*o;else if(c)for(p=u[1]-v*o;p>u[0]&&isFinite(p)&&isFinite(u[0]);)v=Jv(v),p=u[1]-v*o;else{var m=e.getTicks().length-1;m>o&&(v=Jv(v));var y=v*o;g=Math.ceil(u[1]/v)*v,p=It(g-y),p<0&&u[0]>=0?(p=0,g=It(y)):g>0&&u[1]<=0&&(g=0,p=-It(y))}var _=(i[0].value-a[0].value)/s,b=(i[o].value-a[o].value)/s;n.setExtent.call(e,p+v*_,g+v*b),n.setInterval.call(e,v),(_||b)&&n.setNiceExtent.call(e,p+v,g-v)}var gQ=function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=lm,this._initCartesian(t,r,n),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,r){var n=this._axesMap;this._updateScale(t,this.model);function i(o){var s,l=xt(o),u=l.length;if(u){for(var f=[],c=u-1;c>=0;c--){var d=+l[c],h=o[d],v=h.model,p=h.scale;om(p)&&v.get("alignTicks")&&v.get("interval")==null?f.push(h):(Yx(p,v),om(p)&&(s=h))}f.length&&(s||(s=f.pop(),Yx(s.scale,s.model)),R(f,function(g){pQ(g.scale,g.model,s.scale)}))}}i(n.x),i(n.y);var a={};R(n.x,function(o){mS(n,"y",o,a)}),R(n.y,function(o){mS(n,"x",o,a)}),this.resize(this.model,r)},e.prototype.resize=function(t,r,n){var i=t.getBoxLayoutParams(),a=!n&&t.get("containLabel"),o=Ms(i,{width:r.getWidth(),height:r.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(R(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=$X(u);if(f){var c=u.isHorizontal()?"height":"width",d=u.model.get(["axisLabel","margin"]);o[c]-=f[c]+d,u.position==="top"?o.y+=f.height+d:u.position==="left"&&(o.x+=f.width+d)}}}),l()),R(this._coordsList,function(u){u.calcAffineTransform()});function l(){R(s,function(u){var f=u.isHorizontal(),c=f?[0,o.width]:[0,o.height],d=u.inverse?1:0;u.setExtent(c[d],c[1-d]),mQ(u,f?o.x:o.y)})}},e.prototype.getAxis=function(t,r){var n=this._axesMap[t];if(n!=null)return n[r||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,r){if(t!=null&&r!=null){var n="x"+t+"y"+r;return this._coordsMap[n]}Pe(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i<a.length;i++)if(a[i].getAxis("x").index===t||a[i].getAxis("y").index===r)return a[i]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(t,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(t,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(t){var r=t.seriesModel,n=t.xAxisModel||r&&r.getReferringComponents("xAxis",_n).models[0],i=t.yAxisModel||r&&r.getReferringComponents("yAxis",_n).models[0],a=t.gridModel,o=this._coordsList,s,l;if(r)s=r.coordinateSystem,nt(o,s)<0&&(s=null);else if(n&&i)s=this.getCartesian(n.componentIndex,i.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(i)l=this.getAxis("y",i.componentIndex);else if(a){var u=a.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},e.prototype.containPoint=function(t){var r=this._coordsList[0];if(r)return r.containPoint(t)},e.prototype._initCartesian=function(t,r,n){var i=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(r.eachComponent("xAxis",u("x"),this),r.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,R(s.x,function(f,c){R(s.y,function(d,h){var v="x"+c+"y"+h,p=new dQ(v);p.master=i,p.model=t,i._coordsMap[v]=p,i._coordsList.push(p),p.addAxis(f),p.addAxis(d)})});function u(f){return function(c,d){if(sp(c,t)){var h=c.get("position");f==="x"?h!=="top"&&h!=="bottom"&&(h=o.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=o.left?"right":"left"),o[h]=!0;var v=new vQ(f,BX(c),[0,0],c.get("type"),h),p=v.type==="category";v.onBand=p&&c.get("boundaryGap"),v.inverse=c.get("inverse"),c.axis=v,v.model=c,v.grid=a,v.index=d,a._axesList.push(v),s[f][d]=v,l[f]++}}}},e.prototype._updateScale=function(t,r){R(this._axesList,function(i){if(i.scale.setExtent(1/0,-1/0),i.type==="category"){var a=i.model.get("categorySortInfo");i.scale.setSortInfo(a)}}),t.eachSeries(function(i){if(pS(i)){var a=gS(i),o=a.xAxisModel,s=a.yAxisModel;if(!sp(o,r)||!sp(s,r))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=i.getData(),f=l.getAxis("x"),c=l.getAxis("y");n(u,f),n(u,c)}},this);function n(i,a){R(zX(i,a.dim),function(o){a.scale.unionExtentFromData(i,o)})}},e.prototype.getTooltipAxes=function(t){var r=[],n=[];return R(this.getCartesians(),function(i){var a=t!=null&&t!=="auto"?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(a);nt(r,a)<0&&r.push(a),nt(n,o)<0&&n.push(o)}),{baseAxes:r,otherAxes:n}},e.create=function(t,r){var n=[];return t.eachComponent("grid",function(i,a){var o=new e(i,t,r);o.name="grid_"+a,o.resize(i,r,!0),i.coordinateSystem=o,n.push(o)}),t.eachSeries(function(i){if(pS(i)){var a=gS(i),o=a.xAxisModel,s=a.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;i.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),n},e.dimensions=lm,e}();function sp(e,t){return e.getCoordSysModel()===t}function mS(e,t,r,n){r.getAxesOnZeroOf=function(){return a?[a]:[]};var i=e[t],a,o=r.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)yS(i[l])&&(a=i[l]);else for(var u in i)if(i.hasOwnProperty(u)&&yS(i[u])&&!n[f(i[u])]){a=i[u];break}a&&(n[f(a)]=!0);function f(c){return c.dim+"_"+c.index}}function yS(e){return e&&e.type!=="category"&&e.type!=="time"&&FX(e)}function mQ(e,t){var r=e.getExtent(),n=r[0]+r[1];e.toGlobalCoord=e.dim==="x"?function(i){return i+t}:function(i){return n-i+t},e.toLocalCoord=e.dim==="x"?function(i){return i-t}:function(i){return n-i+t}}const yQ=gQ;var Yi=Math.PI,ao=function(){function e(t,r){this.group=new sn,this.opt=r,this.axisModel=t,ut(r,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new sn({x:r.position[0],y:r.position[1],rotation:r.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(t){return!!_S[t]},e.prototype.add=function(t){_S[t](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(t,r,n){var i=NA(r-t),a,o;return ed(i)?(o=n>0?"top":"bottom",a="center"):ed(i-Yi)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<Yi?a=n>0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},e.makeAxisEventDataBase=function(t){var r={componentType:t.mainType,componentIndex:t.componentIndex};return r[t.mainType+"Index"]=t.componentIndex,r},e.isLabelSilent=function(t){var r=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||r&&r.show)},e}(),_S={axisLine:function(e,t,r,n){var i=t.get(["axisLine","show"]);if(i==="auto"&&e.handleAutoShown&&(i=e.handleAutoShown("axisLine")),!!i){var a=t.axis.getExtent(),o=n.transform,s=[a[0],0],l=[a[1],0],u=s[0]>l[0];o&&(rn(s,s,o),rn(l,l,o));var f=oe({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new vo({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});bu(c.shape,c.style.lineWidth),c.anid="line",r.add(c);var d=t.get(["axisLine","symbol"]);if(d!=null){var h=t.get(["axisLine","symbolSize"]);Ce(d)&&(d=[d,d]),(Ce(h)||_t(h))&&(h=[h,h]);var v=Gj(t.get(["axisLine","symbolOffset"])||0,h),p=h[0],g=h[1];R([{rotate:e.rotation+Math.PI/2,offset:v[0],r:0},{rotate:e.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(m,y){if(d[y]!=="none"&&d[y]!=null){var _=w0(d[y],-p/2,-g/2,p,g,f.stroke,!0),b=m.r+m.offset,x=u?l:s;_.attr({rotation:m.rotate,x:x[0]+b*Math.cos(e.rotation),y:x[1]-b*Math.sin(e.rotation),silent:!0,z2:11}),r.add(_)}})}}},axisTickLabel:function(e,t,r,n){var i=wQ(r,n,t,e),a=SQ(r,n,t,e);if(bQ(t,a,i),xQ(r,n,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=GP(Oe(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));qP(o)}},axisName:function(e,t,r,n){var i=pu(e.axisName,t.get("name"));if(i){var a=t.get("nameLocation"),o=e.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),f=u[0]>u[1]?-1:1,c=[a==="start"?u[0]-f*l:a==="end"?u[1]+f*l:(u[0]+u[1])/2,wS(a)?e.labelOffset+o*l:0],d,h=t.get("nameRotate");h!=null&&(h=h*Yi/180);var v;wS(a)?d=ao.innerTextLayout(e.rotation,h??e.rotation,o):(d=_Q(e.rotation,a,h||0,u),v=e.axisNameAvailableWidth,v!=null&&(v=Math.abs(v/Math.sin(d.rotation)),!isFinite(v)&&(v=null)));var p=s.getFont(),g=t.get("nameTruncate",!0)||{},m=g.ellipsis,y=pu(e.nameTruncateMaxWidth,g.maxWidth,v),_=new fr({x:c[0],y:c[1],rotation:d.rotation,silent:ao.isLabelSilent(t),style:ra(s,{text:i,font:p,overflow:"truncate",width:y,ellipsis:m,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||d.textAlign,verticalAlign:s.get("verticalAlign")||d.textVerticalAlign}),z2:1});if(r0({el:_,componentModel:t,itemName:i}),_.__fullText=i,_.anid="name",t.get("triggerEvent")){var b=ao.makeAxisEventDataBase(t);b.targetType="axisName",b.name=i,lt(_).eventData=b}n.add(_),_.updateTransform(),r.add(_),_.decomposeTransform()}}};function _Q(e,t,r,n){var i=NA(r-e),a,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return ed(i-Yi/2)?(o=l?"bottom":"top",a="center"):ed(i-Yi*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",i<Yi*1.5&&i>Yi/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function bQ(e,t,r){if(!RP(e.axis)){var n=e.get(["axisLabel","showMinLabel"]),i=e.get(["axisLabel","showMaxLabel"]);t=t||[],r=r||[];var a=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=r[0],f=r[1],c=r[r.length-1],d=r[r.length-2];n===!1?(Vr(a),Vr(u)):bS(a,o)&&(n?(Vr(o),Vr(f)):(Vr(a),Vr(u))),i===!1?(Vr(s),Vr(c)):bS(l,s)&&(i?(Vr(l),Vr(d)):(Vr(s),Vr(c)))}}function Vr(e){e&&(e.ignore=!0)}function bS(e,t){var r=e&&e.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!r||!n)){var i=Oy([]);return ky(i,i,-e.rotation),r.applyTransform(is([],i,e.getLocalTransform())),n.applyTransform(is([],i,t.getLocalTransform())),r.intersect(n)}}function wS(e){return e==="middle"||e==="center"}function rL(e,t,r,n,i){for(var a=[],o=[],s=[],l=0;l<e.length;l++){var u=e[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=r,t&&(rn(o,o,t),rn(s,s,t));var f=new vo({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});bu(f.shape,f.style.lineWidth),f.anid=i+"_"+e[l].tickValue,a.push(f)}return a}function wQ(e,t,r,n){var i=r.axis,a=r.getModel("axisTick"),o=a.get("show");if(o==="auto"&&n.handleAutoShown&&(o=n.handleAutoShown("axisTick")),!(!o||i.scale.isBlank())){for(var s=a.getModel("lineStyle"),l=n.tickDirection*a.get("length"),u=i.getTicksCoords(),f=rL(u,t.transform,l,ut(s.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)e.add(f[c]);return f}}function xQ(e,t,r,n){var i=r.axis,a=r.getModel("minorTick");if(!(!a.get("show")||i.scale.isBlank())){var o=i.getMinorTicksCoords();if(o.length)for(var s=a.getModel("lineStyle"),l=n*a.get("length"),u=ut(s.getLineStyle(),ut(r.getModel("axisTick").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})),f=0;f<o.length;f++)for(var c=rL(o[f],t.transform,l,u,"minorticks_"+f),d=0;d<c.length;d++)e.add(c[d])}}function SQ(e,t,r,n){var i=r.axis,a=pu(n.axisLabelShow,r.get(["axisLabel","show"]));if(!(!a||i.scale.isBlank())){var o=r.getModel("axisLabel"),s=o.get("margin"),l=i.getViewLabels(),u=(pu(n.labelRotate,o.get("rotate"))||0)*Yi/180,f=ao.innerTextLayout(n.rotation,u,n.labelDirection),c=r.getCategories&&r.getCategories(!0),d=[],h=ao.isLabelSilent(r),v=r.get("triggerEvent");return R(l,function(p,g){var m=i.scale.type==="ordinal"?i.scale.getRawOrdinalNumber(p.tickValue):p.tickValue,y=p.formattedLabel,_=p.rawLabel,b=o;if(c&&c[m]){var x=c[m];Pe(x)&&x.textStyle&&(b=new er(x.textStyle,o,r.ecModel))}var w=b.getTextColor()||r.get(["axisLine","lineStyle","color"]),S=i.dataToCoord(m),C=new fr({x:S,y:n.labelOffset+n.labelDirection*s,rotation:f.rotation,silent:h,z2:10+(p.level||0),style:ra(b,{text:y,align:b.getShallow("align",!0)||f.textAlign,verticalAlign:b.getShallow("verticalAlign",!0)||b.getShallow("baseline",!0)||f.textVerticalAlign,fill:We(w)?w(i.type==="category"?_:i.type==="value"?m+"":m,g):w})});if(C.anid="label_"+m,v){var T=ao.makeAxisEventDataBase(r);T.targetType="axisLabel",T.value=_,T.tickIndex=g,i.type==="category"&&(T.dataIndex=m),lt(C).eventData=T}t.add(C),C.updateTransform(),d.push(C),e.add(C),C.decomposeTransform()}),d}}const nL=ao;function CQ(e,t){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return TQ(r,e,t),r.seriesInvolved&&AQ(r,e),r}function TQ(e,t,r){var n=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];R(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Lu(s.model),u=e.coordSysAxesInfo[l]={};e.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",n);if(R(s.getAxes(),Dt(p,!1,null)),s.getTooltipAxes&&n&&c.get("show")){var d=c.get("trigger")==="axis",h=c.get(["axisPointer","type"])==="cross",v=s.getTooltipAxes(c.get(["axisPointer","axis"]));(d||h)&&R(v.baseAxes,Dt(p,h?"cross":!0,d)),h&&R(v.otherAxes,Dt(p,"cross",!1))}function p(g,m,y){var _=y.model.getModel("axisPointer",i),b=_.get("show");if(!(!b||b==="auto"&&!g&&!fm(_))){m==null&&(m=_.get("triggerTooltip")),_=g?MQ(y,c,i,t,g,m):_;var x=_.get("snap"),w=Lu(y.model),S=m||x||y.type==="category",C=e.axesInfo[w]={key:w,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:m,involveSeries:S,snap:x,useHandle:fm(_),seriesModels:[],linkGroup:null};u[w]=C,e.seriesInvolved=e.seriesInvolved||S;var T=EQ(a,y);if(T!=null){var E=o[T]||(o[T]={axesInfo:{}});E.axesInfo[w]=C,E.mapper=a[T].mapper,C.linkGroup=E}}}})}function MQ(e,t,r,n,i,a){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};R(s,function(d){l[d]=Xe(o.get(d))}),l.snap=e.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),i==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!a){var c=l.lineStyle=o.get("crossStyle");c&&ut(u,c.textStyle)}}return e.model.getModel("axisPointer",new er(l,r,n))}function AQ(e,t){t.eachSeries(function(r){var n=r.coordinateSystem,i=r.get(["tooltip","trigger"],!0),a=r.get(["tooltip","show"],!0);!n||i==="none"||i===!1||i==="item"||a===!1||r.get(["axisPointer","show"],!0)===!1||R(e.coordSysAxesInfo[Lu(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function EQ(e,t){for(var r=t.model,n=t.dim,i=0;i<e.length;i++){var a=e[i]||{};if(lp(a[n+"AxisId"],r.id)||lp(a[n+"AxisIndex"],r.componentIndex)||lp(a[n+"AxisName"],r.name))return i}}function lp(e,t){return e==="all"||ge(e)&&nt(e,t)>=0||e===t}function PQ(e){var t=O0(e);if(t){var r=t.axisPointerModel,n=t.axis.scale,i=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=fm(r);a==null&&(i.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),i.value=o,s&&(i.status=t.axis.scale.isBlank()?"hide":"show")}}function O0(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Lu(e)]}function LQ(e){var t=O0(e);return t&&t.axisPointerModel}function fm(e){return!!e.get(["handle","show"])}function Lu(e){return e.type+"||"+e.id}var xS={},DQ=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i,a){this.axisPointerClass&&PQ(r),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,i,!0)},t.prototype.updateAxisPointer=function(r,n,i,a){this._doUpdateAxisPointerClass(r,i,!1)},t.prototype.remove=function(r,n){var i=this._axisPointer;i&&i.remove(n)},t.prototype.dispose=function(r,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(r,n,i){var a=t.getAxisPointerClass(this.axisPointerClass);if(a){var o=LQ(r);o?(this._axisPointer||(this._axisPointer=new a)).render(r,o,n,i):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},t.registerAxisPointerClass=function(r,n){xS[r]=n},t.getAxisPointerClass=function(r){return r&&xS[r]},t.type="axis",t}(_i);const iL=DQ;var cm=Tt();function IQ(e,t,r,n){var i=r.axis;if(!i.scale.isBlank()){var a=r.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:a,clamp:!0});if(u.length){var f=s.length,c=cm(e).splitAreaColors,d=Ge(),h=0;if(c)for(var v=0;v<u.length;v++){var p=c.get(u[v].tickValue);if(p!=null){h=(p+(f-1)*v)%f;break}}var g=i.toGlobalCoord(u[0].coord),m=o.getAreaStyle();s=ge(s)?s:[s];for(var v=1;v<u.length;v++){var y=i.toGlobalCoord(u[v].coord),_=void 0,b=void 0,x=void 0,w=void 0;i.isHorizontal()?(_=g,b=l.y,x=y-_,w=l.height,g=_+x):(_=l.x,b=g,x=l.width,w=y-b,g=b+w);var S=u[v-1].tickValue;S!=null&&d.set(S,h),t.add(new Nt({anid:S!=null?"area_"+S:null,shape:{x:_,y:b,width:x,height:w},style:ut({fill:s[h]},m),autoBatch:!0,silent:!0})),h=(h+1)%f}cm(e).splitAreaColors=d}}}function RQ(e){cm(e).splitAreaColors=null}var OQ=["axisLine","axisTickLabel","axisName"],kQ=["splitArea","splitLine","minorSplitLine"],aL=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="CartesianAxisPointer",r}return t.prototype.render=function(r,n,i,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new sn,this.group.add(this._axisGroup),!!r.get("show")){var s=r.getCoordSysModel(),l=um(s,r),u=new nL(r,oe({handleAutoShown:function(c){for(var d=s.coordinateSystem.getCartesians(),h=0;h<d.length;h++)if(om(d[h].getOtherAxis(r.axis).scale))return!0;return!1}},l));R(OQ,u.add,u),this._axisGroup.add(u.getGroup()),R(kQ,function(c){r.get([c,"show"])&&NQ[c](this,this._axisGroup,r,s)},this);var f=a&&a.type==="changeAxisOrder"&&a.isInitSort;f||H2(o,this._axisGroup,r),e.prototype.render.call(this,r,n,i,a)}},t.prototype.remove=function(){RQ(this)},t.type="cartesianAxis",t}(iL),NQ={splitLine:function(e,t,r,n){var i=r.axis;if(!i.scale.isBlank()){var a=r.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color");s=ge(s)?s:[s];for(var l=n.coordinateSystem.getRect(),u=i.isHorizontal(),f=0,c=i.getTicksCoords({tickModel:a}),d=[],h=[],v=o.getLineStyle(),p=0;p<c.length;p++){var g=i.toGlobalCoord(c[p].coord);u?(d[0]=g,d[1]=l.y,h[0]=g,h[1]=l.y+l.height):(d[0]=l.x,d[1]=g,h[0]=l.x+l.width,h[1]=g);var m=f++%s.length,y=c[p].tickValue,_=new vo({anid:y!=null?"line_"+c[p].tickValue:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:h[0],y2:h[1]},style:ut({stroke:s[m]},v),silent:!0});bu(_.shape,v.lineWidth),t.add(_)}}},minorSplitLine:function(e,t,r,n){var i=r.axis,a=r.getModel("minorSplitLine"),o=a.getModel("lineStyle"),s=n.coordinateSystem.getRect(),l=i.isHorizontal(),u=i.getMinorTicksCoords();if(u.length)for(var f=[],c=[],d=o.getLineStyle(),h=0;h<u.length;h++)for(var v=0;v<u[h].length;v++){var p=i.toGlobalCoord(u[h][v].coord);l?(f[0]=p,f[1]=s.y,c[0]=p,c[1]=s.y+s.height):(f[0]=s.x,f[1]=p,c[0]=s.x+s.width,c[1]=p);var g=new vo({anid:"minor_line_"+u[h][v].tickValue,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:c[0],y2:c[1]},style:d,silent:!0});bu(g.shape,d.lineWidth),t.add(g)}},splitArea:function(e,t,r,n){IQ(e,t,r,n)}},oL=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="xAxis",t}(aL),BQ=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=oL.type,r}return t.type="yAxis",t}(aL),FQ=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="grid",r}return t.prototype.render=function(r,n){this.group.removeAll(),r.get("show")&&this.group.add(new Nt({shape:r.coordinateSystem.getRect(),style:ut({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(_i),SS={offset:0};function $Q(e){e.registerComponentView(FQ),e.registerComponentModel(iQ),e.registerCoordinateSystem("cartesian2d",yQ),dS(e,"x",sm,SS),dS(e,"y",sm,SS),e.registerComponentView(oL),e.registerComponentView(BQ),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function CS(e,t,r){var n=bo.createCanvas(),i=t.getWidth(),a=t.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=a+"px",n.setAttribute("data-zr-dom-id",e)),n.width=i*r,n.height=a*r,n}var HQ=function(e){pe(t,e);function t(r,n,i){var a=e.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null;var o;i=i||Qc,typeof r=="string"?o=CS(r,n,i):Pe(r)&&(o=r,r=o.id),a.id=r,a.dom=o;var s=o.style;return s&&(uA(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=n,a.dpr=i,a}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=CS("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},t.prototype.createRepaintRects=function(r,n,i,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new et(0,0,0,0);function f(y){if(!(!y.isFinite()||y.isZero()))if(o.length===0){var _=new et(0,0,0,0);_.copy(y),o.push(_)}else{for(var b=!1,x=1/0,w=0,S=0;S<o.length;++S){var C=o[S];if(C.intersect(y)){var T=new et(0,0,0,0);T.copy(C),T.union(y),o[S]=T,b=!0;break}else if(l){u.copy(y),u.union(C);var E=y.width*y.height,A=C.width*C.height,M=u.width*u.height,D=M-E-A;D<x&&(x=D,w=S)}}if(l&&(o[w].union(y),b=!0),!b){var _=new et(0,0,0,0);_.copy(y),o.push(_)}l||(l=o.length>=s)}}for(var c=this.__startIndex;c<this.__endIndex;++c){var d=r[c];if(d){var h=d.shouldBePainted(i,a,!0,!0),v=d.__isRendered&&(d.__dirty&Ir||!h)?d.getPrevPaintRect():null;v&&f(v);var p=h&&(d.__dirty&Ir||!d.__isRendered)?d.getPaintRect():null;p&&f(p)}}for(var c=this.__prevStartIndex;c<this.__prevEndIndex;++c){var d=n[c],h=d.shouldBePainted(i,a,!0,!0);if(d&&(!h||!d.__zr)&&d.__isRendered){var v=d.getPrevPaintRect();v&&f(v)}}var g;do{g=!1;for(var c=0;c<o.length;){if(o[c].isZero()){o.splice(c,1);continue}for(var m=c+1;m<o.length;)o[c].intersect(o[m])?(g=!0,o[c].union(o[m]),o.splice(m,1)):m++;c++}}while(g);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(r,n){var i=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=r+"px",o.height=n+"px"),a.width=r*i,a.height=n*i,s&&(s.width=r*i,s.height=n*i,i!==1&&this.ctxBack.scale(i,i))},t.prototype.clear=function(r,n,i){var a=this.dom,o=this.ctx,s=a.width,l=a.height;n=n||this.clearColor;var u=this.motionBlur&&!r,f=this.lastFrameAlpha,c=this.dpr,d=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/c,l/c));var h=this.domBack;function v(p,g,m,y){if(o.clearRect(p,g,m,y),n&&n!=="transparent"){var _=void 0;if(Xd(n)){var b=n.global||n.__width===m&&n.__height===y;_=b&&n.__canvasGradient||Jg(o,n,{x:0,y:0,width:m,height:y}),n.__canvasGradient=_,n.__width=m,n.__height=y}else jV(n)&&(n.scaleX=n.scaleX||c,n.scaleY=n.scaleY||c,_=em(o,n,{dirty:function(){d.setUnpainted(),d.__painter.refresh()}}));o.save(),o.fillStyle=_||n,o.fillRect(p,g,m,y),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(h,p,g,m,y),o.restore())}!i||u?v(0,0,s,l):i.length&&R(i,function(p){v(p.x*c,p.y*c,p.width*c,p.height*c)})},t}(Jn);const up=HQ;var TS=1e5,ka=314159,tc=.01,zQ=.001;function WQ(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function VQ(e,t){var r=document.createElement("div");return r.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",r}var GQ=function(){function e(t,r,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var a=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=n=oe({},n||{}),this.dpr=n.devicePixelRatio||Qc,this._singleCanvas=a,this.root=t;var o=t.style;o&&(uA(t),t.innerHTML=""),this.storage=r;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(a){var f=t,c=f.width,d=f.height;n.width!=null&&(c=n.width),n.height!=null&&(d=n.height),this.dpr=n.devicePixelRatio||1,f.width=c*this.dpr,f.height=d*this.dpr,this._width=c,this._height=d;var h=new up(f,this,this.dpr);h.__builtin__=!0,h.initContext(),l[ka]=h,h.zlevel=ka,s.push(ka),this._domRoot=t}else{this._width=$f(t,0,n),this._height=$f(t,1,n);var u=this._domRoot=VQ(this._width,this._height);t.appendChild(u)}}return e.prototype.getType=function(){return"canvas"},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.refresh=function(t){var r=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(r,n,t,this._redrawId);for(var a=0;a<i.length;a++){var o=i[a],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=a===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=r.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(t){var r=t.length,n=this._hoverlayer;if(n&&n.clear(),!!r){for(var i={inHover:!0,viewWidth:this._width,viewHeight:this._height},a,o=0;o<r;o++){var s=t[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(TS)),a||(a=n.ctx,a.save()),Za(a,s,i,o===r-1))}a&&a.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(TS)},e.prototype.paintOne=function(t,r){UE(t,r)},e.prototype._paintList=function(t,r,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(t);var a=this._doPaintList(t,r,n),o=a.finished,s=a.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;yg(function(){l._paintList(t,r,n,i)})}}},e.prototype._compositeManually=function(){var t=this.getLayer(ka).ctx,r=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,r,n),this.eachBuiltinLayer(function(i){i.virtual&&t.drawImage(i.dom,0,0,r,n)})},e.prototype._doPaintList=function(t,r,n){for(var i=this,a=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||n)&&a.push(u)}for(var f=!0,c=!1,d=function(p){var g=a[p],m=g.ctx,y=o&&g.createRepaintRects(t,r,h._width,h._height),_=n?g.__startIndex:g.__drawIndex,b=!n&&g.incremental&&Date.now,x=b&&Date.now(),w=g.zlevel===h._zlevelList[0]?h._backgroundColor:null;if(g.__startIndex===g.__endIndex)g.clear(!1,w,y);else if(_===g.__startIndex){var S=t[_];(!S.incremental||!S.notClear||n)&&g.clear(!1,w,y)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=g.__startIndex);var C,T=function(D){var O={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(C=_;C<g.__endIndex;C++){var k=t[C];if(k.__inHover&&(c=!0),i._doPaintEl(k,g,o,D,O,C===g.__endIndex-1),b){var F=Date.now()-x;if(F>15)break}}O.prevElClipPaths&&m.restore()};if(y)if(y.length===0)C=g.__endIndex;else for(var E=h.dpr,A=0;A<y.length;++A){var M=y[A];m.save(),m.beginPath(),m.rect(M.x*E,M.y*E,M.width*E,M.height*E),m.clip(),T(M),m.restore()}else m.save(),T(),m.restore();g.__drawIndex=C,g.__drawIndex<g.__endIndex&&(f=!1)},h=this,v=0;v<a.length;v++)d(v);return Ve.wxa&&R(this._layers,function(p){p&&p.ctx&&p.ctx.draw&&p.ctx.draw()}),{finished:f,needsRefreshHover:c}},e.prototype._doPaintEl=function(t,r,n,i,a,o){var s=r.ctx;if(n){var l=t.getPaintRect();(!i||l&&l.intersect(i))&&(Za(s,t,a,o),t.setPrevPaintRect(l))}else Za(s,t,a,o)},e.prototype.getLayer=function(t,r){this._singleCanvas&&!this._needsManuallyCompositing&&(t=ka);var n=this._layers[t];return n||(n=new up("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?it(n,this._layerConfig[t],!0):this._layerConfig[t-tc]&&it(n,this._layerConfig[t-tc],!0),r&&(n.virtual=r),this.insertLayer(t,n),n.initContext()),n},e.prototype.insertLayer=function(t,r){var n=this._layers,i=this._zlevelList,a=i.length,o=this._domRoot,s=null,l=-1;if(!n[t]&&WQ(r)){if(a>0&&t>i[0]){for(l=0;l<a-1&&!(i[l]<t&&i[l+1]>t);l++);s=n[i[l]]}if(i.splice(l+1,0,t),n[t]=r,!r.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(r.dom,u.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.__painter=this}},e.prototype.eachLayer=function(t,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i];t.call(r,this._layers[a],a)}},e.prototype.eachBuiltinLayer=function(t,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__&&t.call(r,o,a)}},e.prototype.eachOtherLayer=function(t,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__||t.call(r,o,a)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(c,d){c.__dirty=c.__used=!1});function r(c){a&&(a.__endIndex!==c&&(a.__dirty=!0),a.__endIndex=c)}if(this._singleCanvas)for(var n=1;n<t.length;n++){var i=t[n];if(i.zlevel!==t[n-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}var a=null,o=0,s,l;for(l=0;l<t.length;l++){var i=t[l],u=i.zlevel,f=void 0;s!==u&&(s=u,o=0),i.incremental?(f=this.getLayer(u+zQ,this._needsManuallyCompositing),f.incremental=!0,o=1):f=this.getLayer(u+(o>0?tc:0),this._needsManuallyCompositing),f.__builtin__||Dy("ZLevel "+u+" has been used by unkown layer "+f.id),f!==a&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,r(l),a=f),i.__dirty&Ir&&!i.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}r(l),this.eachBuiltinLayer(function(c,d){!c.__used&&c.getElementCount()>0&&(c.__dirty=!0,c.__startIndex=c.__endIndex=c.__drawIndex=0),c.__dirty&&c.__drawIndex<0&&(c.__drawIndex=c.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,R(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var n=this._layerConfig;n[t]?it(n[t],r,!0):n[t]=r;for(var i=0;i<this._zlevelList.length;i++){var a=this._zlevelList[i];if(a===t||a===t+tc){var o=this._layers[a];it(o,n[t],!0)}}}},e.prototype.delLayer=function(t){var r=this._layers,n=this._zlevelList,i=r[t];i&&(i.dom.parentNode.removeChild(i.dom),delete r[t],n.splice(nt(n,t),1))},e.prototype.resize=function(t,r){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,a=this.root;if(t!=null&&(i.width=t),r!=null&&(i.height=r),t=$f(a,0,i),r=$f(a,1,i),n.style.display="",this._width!==t||r!==this._height){n.style.width=t+"px",n.style.height=r+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,r);this.refresh(!0)}this._width=t,this._height=r}else{if(t==null||r==null)return;this._width=t,this._height=r,this.getLayer(ka).resize(t,r)}return this},e.prototype.clearLayer=function(t){var r=this._layers[t];r&&r.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[ka].dom;var r=new up("image",this,t.pixelRatio||this.dpr);r.initContext(),r.clear(!1,t.backgroundColor||this._backgroundColor);var n=r.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var i=r.dom.width,a=r.dom.height;this.eachLayer(function(c){c.__builtin__?n.drawImage(c.dom,0,0,i,a):c.renderToCanvas&&(n.save(),c.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var f=s[l];Za(n,f,o,l===u-1)}return r.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();const UQ=GQ;function YQ(e){e.registerPainter("canvas",UQ)}var Ga=Tt(),MS=Xe,fp=yt,qQ=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,r,n,i){var a=r.get("value"),o=r.get("status");if(this._axisModel=t,this._axisPointerModel=r,this._api=n,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,t,r,n);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(t,r);if(!s)s=this._group=new sn,this.createPointerEl(s,u,t,r),this.createLabelEl(s,u,t,r),n.getZr().add(s);else{var d=Dt(AS,r,c);this.updatePointerEl(s,u,d),this.updateLabelEl(s,u,d,r)}PS(s,r,!0),this._renderHandle(a)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,r){var n=r.get("animation"),i=t.axis,a=i.type==="category",o=r.get("snap");if(!o&&!a)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(a&&i.getBandWidth()>s)return!0;if(o){var l=O0(t).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},e.prototype.makeElOption=function(t,r,n,i,a){},e.prototype.createPointerEl=function(t,r,n,i){var a=r.pointer;if(a){var o=Ga(t).pointerEl=new f7[a.type](MS(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,n,i){if(r.label){var a=Ga(t).labelEl=new fr(MS(r.label));t.add(a),ES(a,i)}},e.prototype.updatePointerEl=function(t,r,n){var i=Ga(t).pointerEl;i&&r.pointer&&(i.setStyle(r.pointer.style),n(i,{shape:r.pointer.shape}))},e.prototype.updateLabelEl=function(t,r,n,i){var a=Ga(t).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),ES(a,i))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=r.getModel("handle"),o=r.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=t0(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){cA(u.event)},onmousedown:fp(this._onHandleDragMove,this,0,0),drift:fp(this._onHandleDragMove,this),ondragend:fp(this._onHandleDragEnd,this)}),n.add(i)),PS(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");ge(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,OE(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){AS(this._axisPointerModel,!r&&this._moveAnimation,this._handle,cp(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,r){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(cp(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(cp(i)),Ga(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var r=t.getZr(),n=this._group,i=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),i&&r.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),Xg(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,r,n){return n=n||0,{x:t[n],y:t[1-n],width:r[n],height:r[1-n]}},e}();function AS(e,t,r,n){sL(Ga(r).lastProp,n)||(Ga(r).lastProp=n,t?Mr(r,n,e):(r.stopAnimation(),r.attr(n)))}function sL(e,t){if(Pe(e)&&Pe(t)){var r=!0;return R(t,function(n,i){r=r&&sL(e[i],n)}),!!r}else return e===t}function ES(e,t){e[t.get(["label","show"])?"show":"hide"]()}function cp(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function PS(e,t,r){var n=t.get("z"),i=t.get("zlevel");e&&e.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=r)})}const jQ=qQ;function KQ(e){var t=e.get("type"),r=e.getModel(t+"Style"),n;return t==="line"?(n=r.getLineStyle(),n.fill=null):t==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function XQ(e,t,r,n,i){var a=r.get("value"),o=lL(a,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=dh(s.get("padding")||0),u=s.getFont(),f=Fy(o,u),c=i.position,d=f.width+l[1]+l[3],h=f.height+l[0]+l[2],v=i.align;v==="right"&&(c[0]-=d),v==="center"&&(c[0]-=d/2);var p=i.verticalAlign;p==="bottom"&&(c[1]-=h),p==="middle"&&(c[1]-=h/2),ZQ(c,d,h,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),e.label={x:c[0],y:c[1],style:ra(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function ZQ(e,t,r,n){var i=n.getWidth(),a=n.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+r,a)-r,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function lL(e,t,r,n,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:D0(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};R(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),Ce(o)?a=o.replace("{value}",a):We(o)&&(a=o(s))}return a}function uL(e,t,r){var n=gu();return ky(n,n,r.rotation),mg(n,n,r.position),e0([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function QQ(e,t,r,n,i,a){var o=nL.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),XQ(t,n,i,a,{position:uL(n.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function JQ(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function eJ(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}var tJ=function(e){pe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),f=LS(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var d=KQ(a),h=rJ[u](s,c,f);h.style=d,r.graphicKey=h.type,r.pointer=h}var v=um(l.model,i);QQ(n,r,v,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=um(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=uL(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=LS(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[r.x,r.y];c[f]+=n[f],c[f]=Math.min(l[1],c[f]),c[f]=Math.max(l[0],c[f]);var d=(u[1]+u[0])/2,h=[d,d];h[f]=c[f];var v=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:h,tooltipOption:v[f]}},t}(jQ);function LS(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var rJ={line:function(e,t,r){var n=JQ([t,r[0]],[t,r[1]],DS(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=Math.max(1,e.getBandWidth()),i=r[1]-r[0];return{type:"Rect",shape:eJ([t-n/2,r[0]],[n,i],DS(e))}}};function DS(e){return e.dim==="x"?0:1}const nJ=tJ;var iJ=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(bt);const aJ=iJ;var fi=Tt(),oJ=R;function fL(e,t,r){if(!Ve.node){var n=t.getZr();fi(n).records||(fi(n).records={}),sJ(n,t);var i=fi(n).records[e]||(fi(n).records[e]={});i.handler=r}}function sJ(e,t){if(fi(e).initialized)return;fi(e).initialized=!0,r("click",Dt(IS,"click")),r("mousemove",Dt(IS,"mousemove")),r("globalout",uJ);function r(n,i){e.on(n,function(a){var o=fJ(t);oJ(fi(e).records,function(s){s&&i(s,a,o.dispatchAction)}),lJ(o.pendings,t)})}}function lJ(e,t){var r=e.showTip.length,n=e.hideTip.length,i;r?i=e.showTip[r-1]:n&&(i=e.hideTip[n-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function uJ(e,t,r){e.handler("leave",null,r)}function IS(e,t,r,n){t.handler(e,r,n)}function fJ(e){var t={showTip:[],hideTip:[]},r=function(n){var i=t[n.type];i?i.push(n):(n.dispatchAction=r,e.dispatchAction(n))};return{dispatchAction:r,pendings:t}}function dm(e,t){if(!Ve.node){var r=t.getZr(),n=(fi(r).records||{})[e];n&&(fi(r).records[e]=null)}}var cJ=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=n.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";fL("axisPointer",i,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(r,n){dm("axisPointer",n)},t.prototype.dispose=function(r,n){dm("axisPointer",n)},t.type="axisPointer",t}(_i);const dJ=cJ;function cL(e,t){var r=[],n=e.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=Gu(a,e);if(o==null||o<0||ge(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)r=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),c=f.dim,d=u.dim,h=c==="x"||c==="radius"?1:0,v=a.mapDimension(d),p=[];p[h]=a.get(v,o),p[1-h]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(p)||[]}else r=l.dataToPoint(a.getValues(Oe(l.dimensions,function(m){return a.mapDimension(m)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),r=[g.x+g.width/2,g.y+g.height/2]}return{point:r,el:s}}var RS=Tt();function hJ(e,t,r){var n=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||yt(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){Dc(i)&&(i=cL({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=Dc(i),u=a.axesInfo,f=s.axesInfo,c=n==="leave"||Dc(i),d={},h={},v={list:[],map:{}},p={showPointer:Dt(pJ,h),showTooltip:Dt(gJ,v)};R(s.coordSysMap,function(m,y){var _=l||m.containPoint(i);R(s.coordSysAxesInfo[y],function(b,x){var w=b.axis,S=bJ(u,b);if(!c&&_&&(!u||S)){var C=S&&S.value;C==null&&!l&&(C=w.pointToData(i)),C!=null&&OS(b,C,p,!1,d)}})});var g={};return R(f,function(m,y){var _=m.linkGroup;_&&!h[y]&&R(_.axesInfo,function(b,x){var w=h[x];if(b!==m&&w){var S=w.value;_.mapper&&(S=m.axis.scale.parse(_.mapper(S,kS(b),kS(m)))),g[m.key]=S}})}),R(g,function(m,y){OS(f[y],m,p,!0,d)}),mJ(h,f,d),yJ(v,i,e,o),_J(f,o,r),d}}function OS(e,t,r,n,i){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){r.showPointer(e,t);return}var o=vJ(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&oe(i,s[0]),!n&&e.snap&&a.containData(l)&&l!=null&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,o,l)}}function vJ(e,t){var r=t.axis,n=r.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return R(t.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),c,d;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(f,e,r);d=h.dataIndices,c=h.nestestValue}else{if(d=l.getData().indicesOfNearest(f[0],e,r.type==="category"?.5:null),!d.length)return;c=l.getData().get(f[0],d[0])}if(!(c==null||!isFinite(c))){var v=e-c,p=Math.abs(v);p<=o&&((p<o||v>=0&&s<0)&&(o=p,s=v,i=c,a.length=0),R(d,function(g){a.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:i}}function pJ(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function gJ(e,t,r,n){var i=r.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var l=t.coordSys.model,u=Lu(l),f=e.map[u];f||(f=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function mJ(e,t,r){var n=r.axesInfo=[];R(t,function(i,a){var o=i.axisPointerModel.option,s=e[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function yJ(e,t,r,n){if(Dc(t)||!e.list.length){n({type:"hideTip"});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function _J(e,t,r){var n=r.getZr(),i="axisPointerLastHighlights",a=RS(n)[i]||{},o=RS(n)[i]={};R(e,function(u,f){var c=u.axisPointerModel.option;c.status==="show"&&R(c.seriesDataIndices,function(d){var h=d.seriesIndex+" | "+d.dataIndex;o[h]=d})});var s=[],l=[];R(a,function(u,f){!o[f]&&l.push(u)}),R(o,function(u,f){!a[f]&&s.push(u)}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function bJ(e,t){for(var r=0;r<(e||[]).length;r++){var n=e[r];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function kS(e){var t=e.axis.model,r={},n=r.axisDim=e.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=t.componentIndex,r.axisName=r[n+"AxisName"]=t.name,r.axisId=r[n+"AxisId"]=t.id,r}function Dc(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function dL(e){iL.registerAxisPointerClass("CartesianAxisPointer",nJ),e.registerComponentModel(aJ),e.registerComponentView(dJ),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!ge(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=CQ(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},hJ)}function wJ(e){na($Q),na(dL)}function xJ(e,t){var r=dh(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),e=new Nt({shape:{x:e.x-r[3],y:e.y-r[0],width:e.width+r[1]+r[3],height:e.height+r[0]+r[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),e}var SJ=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(bt);const CJ=SJ;function hL(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function vL(e){if(Ve.domSupported){for(var t=document.documentElement.style,r=0,n=e.length;r<n;r++)if(e[r]in t)return e[r]}}var pL=vL(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),TJ=vL(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function gL(e,t){if(!e)return t;t=iE(t,!0);var r=e.indexOf(t);return e=r===-1?t:"-"+e.slice(0,r)+"-"+t,e.toLowerCase()}function MJ(e,t){var r=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return r?t?r[t]:r:null}var AJ=gL(TJ,"transition"),k0=gL(pL,"transform"),EJ="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Ve.transform3dSupported?"will-change:transform;":"");function PJ(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function LJ(e,t,r){if(!Ce(r)||r==="inside")return"";var n=e.get("backgroundColor"),i=e.get("borderWidth");t=Su(t);var a=PJ(r),o=Math.max(Math.round(i)*1.5,6),s="",l=k0+":",u;nt(["left","right"],a)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var f=u*Math.PI/180,c=o+i,d=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),h=Math.round(((d-Math.SQRT2*i)/2+Math.SQRT2*i-(d-c)/2)*100)/100;s+=";"+a+":-"+h+"px";var v=t+" solid "+i+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+v,"border-right:"+v,"background-color:"+n+";"];return'<div style="'+p.join("")+'"></div>'}function DJ(e,t){var r="cubic-bezier(0.23,1,0.32,1)",n=" "+e/2+"s "+r,i="opacity"+n+",visibility"+n;return t||(n=" "+e+"s "+r,i+=Ve.transformSupported?","+k0+n:",left"+n+",top"+n),AJ+":"+i}function NS(e,t,r){var n=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!Ve.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=Ve.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+k0+":"+o+";":[["top",0],["left",0],[pL,o]]}function IJ(e){var t=[],r=e.get("fontSize"),n=e.getTextColor();n&&t.push("color:"+n),t.push("font:"+e.getFont()),r&&t.push("line-height:"+Math.round(r*3/2)+"px");var i=e.get("textShadowColor"),a=e.get("textShadowBlur")||0,o=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return i&&a&&t.push("text-shadow:"+o+"px "+s+"px "+a+"px "+i),R(["decoration","align"],function(l){var u=e.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function RJ(e,t,r){var n=[],i=e.get("transitionDuration"),a=e.get("backgroundColor"),o=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),f=e.getModel("textStyle"),c=DE(e,"html"),d=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+d),t&&i&&n.push(DJ(i,r)),a&&n.push("background-color:"+a),R(["width","color","radius"],function(h){var v="border-"+h,p=iE(v),g=e.get(p);g!=null&&n.push(v+":"+g+(h==="color"?"":"px"))}),n.push(IJ(f)),c!=null&&n.push("padding:"+dh(c).join("px ")+"px"),n.join(";")+";"}function BS(e,t,r,n,i){var a=t&&t.painter;if(r){var o=a&&a.getViewportRoot();o&&fG(e,o,document.body,n,i)}else{e[0]=n,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var OJ=function(){function e(t,r,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,Ve.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var a=this._zr=r.getZr(),o=this._appendToBody=n&&n.appendToBody;BS(this._styleCoord,a,o,r.getWidth()/2,r.getHeight()/2),o?document.body.appendChild(i):t.appendChild(i),this._container=t;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,f=a.painter.getViewportRoot();Ur(f,l,!0),u.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){var r=this._container,n=MJ(r,"position"),i=r.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative");var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this.el.className=t.get("className")||""},e.prototype.show=function(t,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=EJ+RJ(t,!this._firstShow,this._longHide)+NS(a[0],a[1],!0)+("border-color:"+Su(r)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,r,n,i,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(Ce(a)&&n.get("trigger")==="item"&&!hL(n)&&(s=LJ(n,i,a)),Ce(t))o.innerHTML=t+s;else if(t){o.innerHTML="",ge(t)||(t=[t]);for(var l=0;l<t.length;l++)Yc(t[l])&&t[l].parentNode!==o&&o.appendChild(t[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},e.prototype.moveTo=function(t,r){var n=this._styleCoord;if(BS(n,this._zr,this._appendToBody,t,r),n[0]!=null&&n[1]!=null){var i=this.el.style,a=NS(n[0],n[1]);R(a,function(o){i[o[0]]=o[1]})}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){var t=this,r=this.el.style;r.visibility="hidden",r.opacity="0",Ve.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(yt(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},e}();const kJ=OJ;var NJ=function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._zr=t.getZr(),$S(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return e.prototype.update=function(t){var r=t.get("alwaysShowContent");r&&this._moveIfResized()},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(t,r,n,i,a){var o=this;Pe(t)&&mr(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new fr({style:{rich:r.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:DE(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),R(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),R(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el,r=this.el.getBoundingRect(),n=FS(t.style);return[r.width+n.left+n.right,r.height+n.top+n.bottom]},e.prototype.moveTo=function(t,r){var n=this.el;if(n){var i=this._styleCoord;$S(i,this._zr,t,r),t=i[0],r=i[1];var a=n.style,o=Fi(a.borderWidth||0),s=FS(a);n.x=t+o+s.left,n.y=r+o+s.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(yt(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function Fi(e){return Math.max(0,e)}function FS(e){var t=Fi(e.shadowBlur||0),r=Fi(e.shadowOffsetX||0),n=Fi(e.shadowOffsetY||0);return{left:Fi(t-r),right:Fi(t+r),top:Fi(t-n),bottom:Fi(t+n)}}function $S(e,t,r,n){e[0]=r,e[1]=n,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}const BJ=NJ;var FJ=new Nt({shape:{x:-1,y:-1,width:2,height:2}}),$J=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){if(!(Ve.node||!n.getDom())){var i=r.getComponent("tooltip"),a=this._renderMode=VU(i.get("renderMode"));this._tooltipContent=a==="richText"?new BJ(n):new kJ(n.getDom(),n,{appendToBody:i.get("appendToBody",!0)})}},t.prototype.render=function(r,n,i){if(!(Ve.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=i,this._alwaysShowContent=r.get("alwaysShowContent");var a=this._tooltipContent;a.update(r),a.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?OE(this,"_updatePosition",50,"fixRate"):Xg(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");fL("itemTooltip",this._api,yt(function(i,a,o){n!=="none"&&(n.indexOf(i)>=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,i=this._api,a=r.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(r,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(r,n,i,a){if(!(a.from===this.uid||Ve.node||!i.getDom())){var o=HS(a,i);this._ticket="";var s=a.dataByCoordSys,l=VJ(a,n,i);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=FJ;f.x=a.x,f.y=a.y,f.update(),lt(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,i,a))return;var c=cL(a,n),d=c.point[0],h=c.point[1];d!=null&&h!=null&&this._tryShow({offsetX:d,offsetY:h,target:c.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(r,n,i,a){var o=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(HS(a,i))},t.prototype._manuallyAxisShowTip=function(r,n,i,a){var o=a.seriesIndex,s=a.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var f=u.getData(),c=hl([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(r,n){var i=r.target,a=this._tooltipModel;if(a){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(i){this._lastDataByCoordSys=null;var s,l;Sl(i,function(u){if(lt(u).dataIndex!=null)return s=u,!0;if(lt(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(r,s,n):l?this._showComponentItemTooltip(r,l,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(r,n){var i=r.get("showDelay");n=yt(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},t.prototype._showAxisTooltip=function(r,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=hl([n.tooltipOption],a),l=this._renderMode,u=[],f=Mu("section",{blocks:[],noHeader:!0}),c=[],d=new zv;R(r,function(y){R(y.dataByAxis,function(_){var b=i.getComponent(_.axisDim+"Axis",_.axisIndex),x=_.value;if(!(!b||x==null)){var w=lL(x,b.axis,i,_.seriesDataIndices,_.valueLabelOpt),S=Mu("section",{header:w,noHeader:!zn(w),sortBlocks:!0,blocks:[]});f.blocks.push(S),R(_.seriesDataIndices,function(C){var T=i.getSeriesByIndex(C.seriesIndex),E=C.dataIndexInside,A=T.getDataParams(E);if(!(A.dataIndex<0)){A.axisDim=_.axisDim,A.axisIndex=_.axisIndex,A.axisType=_.axisType,A.axisId=_.axisId,A.axisValue=D0(b.axis,{value:x}),A.axisValueLabel=w,A.marker=d.makeTooltipMarker("item",Su(A.color),l);var M=ex(T.formatTooltip(E,!0,null)),D=M.frag;if(D){var O=hl([T],a).get("valueFormatter");S.blocks.push(O?oe({valueFormatter:O},D):D)}M.text&&c.push(M.text),u.push(A)}})}})}),f.blocks.reverse(),c.reverse();var h=n.position,v=s.get("order"),p=ax(f,d,l,v,i.get("useUTC"),s.get("textStyle"));p&&c.unshift(p);var g=l==="richText"?`
+`];function Mu(e,t){return t.type=e,t}function qg(e){return e.type==="section"}function PE(e){return qg(e)?Gq:Uq}function LE(e){if(qg(e)){var t=0,r=e.blocks.length,n=r>1||r>0&&!e.noHeader;return R(e.blocks,function(i){var a=LE(i);a>=t&&(t=a+ +(n&&(!a||qg(i)&&!i.noHeader)))}),t}return 0}function Gq(e,t,r,n){var i=t.noHeader,a=Yq(LE(t)),o=[],s=t.blocks||[];yi(!s||ge(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Ts(u,l)){var f=new Eq(u[l],null);s.sort(function(v,p){return f.evaluate(v.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}R(s,function(v,p){var g=t.valueFormatter,m=PE(v)(g?oe(oe({},e),{valueFormatter:g}):e,v,p>0?a.html:0,n);m!=null&&o.push(m)});var c=e.renderMode==="richText"?o.join(a.richText):jg(o.join(""),i?r:a.html);if(i)return c;var d=Gg(t.header,"ordinal",e.useUTC),h=EE(n,e.renderMode).nameStyle;return e.renderMode==="richText"?DE(e,d,h)+a.richText+c:jg('<div style="'+h+";"+AE+';">'+Kr(d)+"</div>"+c,r)}function Uq(e,t,r,n){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,f=t.valueFormatter||e.valueFormatter||function(b){return b=ge(b)?b:[b],Oe(b,function(x,w){return Gg(x,ge(h)?h[w]:h,u)})};if(!(a&&o)){var c=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),d=a?"":Gg(l,"ordinal",u),h=t.valueType,v=o?[]:f(t.value),p=!s||!a,g=!s&&a,m=EE(n,i),y=m.nameStyle,_=m.valueStyle;return i==="richText"?(s?"":c)+(a?"":DE(e,d,y))+(o?"":Kq(e,v,p,g,_)):jg((s?"":c)+(a?"":qq(d,!s,y))+(o?"":jq(v,p,g,_)),r)}}function ax(e,t,r,n,i,a){if(e){var o=PE(e),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)}}function Yq(e){return{html:Wq[e],richText:Vq[e]}}function jg(e,t){var r='<div style="clear:both"></div>',n="margin: "+t+"px 0 0";return'<div style="'+n+";"+AE+';">'+e+r+"</div>"}function qq(e,t,r){var n=t?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+Kr(e)+"</span>"}function jq(e,t,r,n){var i=r?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return e=ge(e)?e:[e],'<span style="'+a+";"+n+'">'+Oe(e,function(o){return Kr(o)}).join("&nbsp;&nbsp;")+"</span>"}function DE(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function Kq(e,t,r,n,i){var a=[i],o=n?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(ge(t)?t.join("  "):t,a)}function Xq(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return Su(n)}function IE(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var zv=function(){function e(){this.richTextStyles={},this._nextStyleNameId=$A()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var i=n==="richText"?this._generateStyleName():null,a=N7({color:r,type:t,renderMode:n,markerId:i});return Te(a)?a:(this.richTextStyles[i]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};ge(r)?R(r,function(a){return oe(n,a)}):oe(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},e}();function Zq(e){var t=e.series,r=e.dataIndex,n=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(r),l=ge(s),u=Xq(t,r),f,c,d,h;if(o>1||l&&!o){var v=Qq(s,t,r,a,u);f=v.inlineValues,c=v.inlineValueTypes,d=v.blocks,h=v.inlineValues[0]}else if(o){var p=i.getDimensionInfo(a[0]);h=f=Es(i,r,a[0]),c=p.type}else h=f=l?s[0]:s;var g=Wy(t),m=g&&t.name||"",y=i.getName(r),_=n?m:y;return Mu("section",{header:m,noHeader:n||!g,sortParam:h,blocks:[Mu("nameValue",{markerType:"item",markerColor:u,name:_,noName:!zn(_),value:f,valueType:c})].concat(d||[])})}function Qq(e,t,r,n,i){var a=t.getData(),o=ta(e,function(c,d,h){var v=a.getDimensionInfo(h);return c=c||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],u=[];n.length?R(n,function(c){f(Es(a,r,c),c)}):R(e,f);function f(c,d){var h=a.getDimensionInfo(d);!h||h.otherDims.tooltip===!1||(o?u.push(Mu("nameValue",{markerType:"subItem",markerColor:i,name:h.displayName,value:c,valueType:h.type})):(s.push(c),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Ri=Tt();function Nf(e,t){return e.getName(t)||e.getId(t)}var Jq="__universalTransitionEnabled",gh=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,n,i){this.seriesIndex=this.componentIndex,this.dataTask=ql({count:tj,reset:rj}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=Ri(this).sourceManager=new zq(this);a.prepareSource();var o=this.getInitialData(r,i);sx(o,this),this.dataTask.context.data=o,Ri(this).dataBeforeProcessed=o,ox(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=Cu(this),a=i?hh(r):{},o=this.subType;wt.hasClass(o)&&(o+="Series"),at(r,n.getTheme().get(this.subType)),at(r,this.getDefaultOption()),Pg(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&As(r,a,i)},t.prototype.mergeOption=function(r,n){r=at(this.option,r,!0),this.fillDataTextStyle(r.data);var i=Cu(this);i&&As(this.option,r,i);var a=Ri(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);sx(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Ri(this).dataBeforeProcessed=o,ox(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!$r(r))for(var n=["show"],i=0;i<r.length;i++)r[i]&&r[i].label&&Pg(r[i],"label",n)},t.prototype.getInitialData=function(r,n){},t.prototype.appendData=function(r){var n=this.getRawData();n.appendData(r.data)},t.prototype.getData=function(r){var n=Kg(this);if(n){var i=n.context.data;return r==null?i:i.getLinkedData(r)}else return Ri(this).data},t.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},t.prototype.setData=function(r){var n=Kg(this);if(n){var i=n.context;i.outputData=r,n!==this.dataTask&&(i.data=r)}Ri(this).data=r},t.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return Ge(r)},t.prototype.getSourceManager=function(){return Ri(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Ri(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},t.prototype.formatTooltip=function(r,n,i){return Zq({series:this,dataIndex:r,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(Ve.node&&!(r&&r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(r,n,i){var a=this.ecModel,o=d0.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),o},t.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},t.prototype.unselect=function(r,n){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var l=r[s],u=Nf(o,l);i[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(r,n){for(var i=[],a=0;a<r.length;a++)i[0]=r[a],this.isSelected(r[a],n)?this.unselect(i,n):this.select(i,n)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=xt(r),i=[],a=0;a<n.length;a++){var o=r[n[a]];o>=0&&i.push(o)}return i},t.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[Nf(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Jq])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,n){var i,a,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){De(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var c=n[f],d=Nf(r,c);u[d]=!0,this._selectedDataIndicesMap[d]=r.getRawIndex(c)}}else if(s==="single"||s===!0){var h=n[l-1],d=Nf(r,h);o.selectedMap=(i={},i[d]=!0,i),this._selectedDataIndicesMap=(a={},a[d]=r.getRawIndex(h),a)}}},t.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(i){var a=r.getRawDataItem(i);a&&a.selected&&n.push(i)}),n.length>0&&this._innerSelect(r,n)}},t.registerClass=function(r){return wt.registerClass(r)},t.protoInitialize=function(){var r=t.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),t}(wt);Qn(gh,Mq);Qn(gh,d0);UA(gh,wt);function ox(e){var t=e.name;Wy(e)||(e.name=ej(e)||t)}function ej(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return R(r,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function tj(e){return e.model.getRawData().count()}function rj(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),nj}function nj(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function sx(e,t){R(JV(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,Dt(ij,t))})}function ij(e,t){var r=Kg(e);return r&&r.setOutputEnd((t||this).count()),t}function Kg(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(e.uid))}return n}}const po=gh;var y0=function(){function e(){this.group=new sn,this.uid=oh("viewComponent")}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){},e.prototype.updateLayout=function(t,r,n,i){},e.prototype.updateVisual=function(t,r,n,i){},e.prototype.toggleBlurSeries=function(t,r,n){},e.prototype.eachRendered=function(t){var r=this.group;r&&r.traverse(t)},e}();Gy(y0);eh(y0);const bi=y0;function RE(){var e=Tt();return function(t){var r=e(t),n=t.pipelineContext,i=!!r.large,a=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var OE=Tt(),aj=RE(),_0=function(){function e(){this.group=new sn,this.uid=oh("viewChart"),this.renderTask=ql({plan:oj,reset:sj}),this.renderTask.context={view:this}}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.highlight=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&ux(a,i,"emphasis")},e.prototype.downplay=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&ux(a,i,"normal")},e.prototype.remove=function(t,r){this.group.removeAll()},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateLayout=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateVisual=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.eachRendered=function(t){n0(this.group,t)},e.markUpdateMethod=function(t,r){OE(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function lx(e,t,r){e&&$g(e)&&(t==="emphasis"?Og:kg)(e,r)}function ux(e,t,r){var n=Uu(e,t),i=t&&t.highlightKey!=null?dY(t.highlightKey):null;n!=null?R(lr(n),function(a){lx(e.getItemGraphicEl(a),r,i)}):e.eachItemGraphicEl(function(a){lx(a,r,i)})}Gy(_0);eh(_0);function oj(e){return aj(e.model)}function sj(e){var t=e.model,r=e.ecModel,n=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&OE(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,r,n,i),lj[l]}var lj={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const ao=_0;var ud="\0__throttleOriginMethod",fx="\0__throttleRate",cx="\0__throttleType";function b0(e,t,r){var n,i=0,a=0,o=null,s,l,u,f;t=t||0;function c(){a=new Date().getTime(),o=null,e.apply(l,u||[])}var d=function(){for(var h=[],v=0;v<arguments.length;v++)h[v]=arguments[v];n=new Date().getTime(),l=this,u=h;var p=f||t,g=f||r;f=null,s=n-(g?i:a)-p,clearTimeout(o),g?o=setTimeout(c,p):s>=0?c():o=setTimeout(c,-s),i=n};return d.clear=function(){o&&(clearTimeout(o),o=null)},d.debounceNextCall=function(h){f=h},d}function kE(e,t,r,n){var i=e[t];if(i){var a=i[ud]||i,o=i[cx],s=i[fx];if(s!==r||o!==n){if(r==null||!n)return e[t]=a;i=e[t]=b0(a,r,n==="debounce"),i[ud]=a,i[cx]=n,i[fx]=r}return i}}function Xg(e,t){var r=e[t];r&&r[ud]&&(r.clear&&r.clear(),e[t]=r[ud])}var dx=Tt(),hx={itemStyle:_u(Y2,!0),lineStyle:_u(U2,!0)},uj={lineStyle:"stroke",itemStyle:"fill"};function NE(e,t){var r=e.visualStyleMapper||hx[t];return r||(console.warn("Unknown style type '"+t+"'."),hx.itemStyle)}function BE(e,t){var r=e.visualDrawType||uj[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var fj={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=e.getModel(n),a=NE(e,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=BE(e,n),u=o[l],f=We(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[l]||(o[l]=d,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||We(o.fill)?d:o.fill,o.stroke=o.stroke==="auto"||We(o.stroke)?d:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!t.isSeriesFiltered(e)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(h,v){var p=e.getDataParams(v),g=oe({},o);g[l]=f(p),h.setItemVisual(v,"style",g)}}}},al=new tr,cj={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=NE(e,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){al.option=l[n];var u=i(al),f=o.ensureUniqueItemVisual(s,"style");oe(f,u),al.option.decal&&(o.setItemVisual(s,"decal",al.option.decal),al.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},dj={performRawSeries:!0,overallReset:function(e){var t=Ge();e.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var i=r.type+"-"+n,a=t.get(i);a||(a={},t.set(i,a)),dx(r).scope=a}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=dx(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=BE(r,s);a.each(function(u){var f=a.getRawIndex(u);i[f]=u}),n.each(function(u){var f=i[u],c=a.getItemVisual(f,"colorFromPalette");if(c){var d=a.ensureUniqueItemVisual(f,"style"),h=n.getName(u)||u+"",v=n.count();d[l]=r.getColorFromPalette(h,o,v)}})}})}},Bf=Math.PI;function hj(e,t){t=t||{},ft(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var r=new sn,n=new Nt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var i=new fr({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new Nt({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(a);var o;return t.showSpinner&&(o=new Zy({shape:{startAngle:-Bf/2,endAngle:-Bf/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Bf*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Bf*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(e.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),f=e.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:f}),a.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var vj=function(){function e(t,r,n,i){this._stageTaskMap=Ge(),this.ecInstance=t,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return e.prototype.restoreData=function(t,r){t.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},e.prototype.getPerformArgs=function(t,r){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,a=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,r){var n=this._pipelineMap.get(t.uid),i=t.getData(),a=i.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&a>=n.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},e.prototype.restorePipelines=function(t){var r=this,n=r._pipelineMap=Ge();t.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),r._pipe(i,i.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),n=this.api;R(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";yi(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},e.prototype.prepareView=function(t,r,n,i){var a=t.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!t.incrementalPrepareRender,this._pipe(r,a)},e.prototype.performDataProcessorTasks=function(t,r){this._performStageTasks(this._dataProcessorHandlers,t,r,{block:!0})},e.prototype.performVisualTasks=function(t,r,n){this._performStageTasks(this._visualHandlers,t,r,n)},e.prototype._performStageTasks=function(t,r,n,i){i=i||{};var a=!1,o=this;R(t,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,d=f.overallTask;if(d){var h,v=d.agentStubMap;v.each(function(g){s(i,g)&&(g.dirty(),h=!0)}),h&&d.dirty(),o.updatePayload(d,n);var p=o.getPerformArgs(d,i.block);v.each(function(g){g.perform(p)}),d.perform(p)&&(a=!0)}else c&&c.each(function(g,m){s(i,g)&&g.dirty();var y=o.getPerformArgs(g,i.block);y.skip=!l.performRawSeries&&r.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(y)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},e.prototype.performSeriesTasks=function(t){var r;t.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var r=t.tail;do{if(r.__block){t.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},e.prototype.updatePayload=function(t,r){r!=="remain"&&(t.context.payload=r)},e.prototype._createSeriesStageTask=function(t,r,n,i){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=Ge(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,i).each(f);function f(c){var d=c.uid,h=s.set(d,o&&o.get(d)||ql({plan:_j,reset:bj,count:xj}));h.context={model:c,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(c,h)}},e.prototype._createOverallStageTask=function(t,r,n,i){var a=this,o=r.overallTask=r.overallTask||ql({reset:pj});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=Ge(),u=t.seriesType,f=t.getTargetSeries,c=!0,d=!1,h="";yi(!t.createOnAllSeries,h),u?n.eachRawSeriesByType(u,v):f?f(n,i).each(v):(c=!1,R(n.getSeries(),v));function v(p){var g=p.uid,m=l.set(g,s&&s.get(g)||(d=!0,ql({reset:gj,onDirty:yj})));m.context={model:p,overallProgress:c},m.agent=o,m.__block=c,a._pipe(p,m)}d&&o.dirty()},e.prototype._pipe=function(t,r){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=r),i.tail&&i.tail.pipe(r),i.tail=r,r.__idxInPipeline=i.count++,r.__pipeline=i},e.wrapStageHandler=function(t,r){return We(t)&&(t={overallReset:t,seriesType:Sj(t)}),t.uid=oh("stageHandler"),r&&(t.visualType=r),t},e}();function pj(e){e.overallReset(e.ecModel,e.api,e.payload)}function gj(e){return e.overallProgress&&mj}function mj(){this.agent.dirty(),this.getDownstream().dirty()}function yj(){this.agent&&this.agent.dirty()}function _j(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function bj(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=lr(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Oe(t,function(r,n){return FE(n)}):wj}var wj=FE(0);function FE(e){return function(t,r){var n=r.data,i=r.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a<t.end;a++)i.dataEach(n,a);else i&&i.progress&&i.progress(t,n)}}function xj(e){return e.data.count()}function Sj(e){fd=null;try{e(Au,$E)}catch{}return fd}var Au={},$E={},fd;HE(Au,vE);HE($E,pE);Au.eachSeriesByType=Au.eachRawSeriesByType=function(e){fd=e};Au.eachComponent=function(e){e.mainType==="series"&&e.subType&&(fd=e.subType)};function HE(e,t){for(var r in t.prototype)e[r]=Sr}const zE=vj;var vx=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const Cj={color:vx,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],vx]};var ir="#B9B8CE",px="#100C2A",Ff=function(){return{axisLine:{lineStyle:{color:ir}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},gx=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],WE={darkMode:!0,color:gx,backgroundColor:px,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:ir}},textStyle:{color:ir},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:ir}},dataZoom:{borderColor:"#71708A",textStyle:{color:ir},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:ir}},timeline:{lineStyle:{color:ir},label:{color:ir},controlStyle:{color:ir,borderColor:ir}},calendar:{itemStyle:{color:px},dayLabel:{color:ir},monthLabel:{color:ir},yearLabel:{color:ir}},timeAxis:Ff(),logAxis:Ff(),valueAxis:Ff(),categoryAxis:Ff(),line:{symbol:"circle"},graph:{color:gx},gauge:{title:{color:ir},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:ir},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};WE.categoryAxis.splitLine.show=!1;const Tj=WE;var Mj=function(){function e(){}return e.prototype.normalizeQuery=function(t){var r={},n={},i={};if(Te(t)){var a=Wn(t);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};R(t,function(l,u){for(var f=!1,c=0;c<o.length;c++){var d=o[c],h=u.lastIndexOf(d);if(h>0&&h===u.length-d.length){var v=u.slice(0,h);v!=="data"&&(r.mainType=v,r[d.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(i[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},e.prototype.filter=function(t,r){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,a,"name")&&f(u,a,"dataIndex")&&f(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,r.otherQuery,i,a));function f(c,d,h,v){return c[h]==null||d[v||h]===c[h]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),Zg=["symbol","symbolSize","symbolRotate","symbolOffset"],mx=Zg.concat(["symbolKeepAspect"]),Aj={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData();if(e.legendIcon&&r.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o<Zg.length;o++){var s=Zg[o],l=e.get(s);We(l)?(a=!0,i[s]=l):n[s]=l}if(n.symbol=n.symbol||e.defaultSymbol,r.setVisual(oe({legendIcon:e.legendIcon||n.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},n)),t.isSeriesFiltered(e))return;var u=xt(i);function f(c,d){for(var h=e.getRawValue(d),v=e.getDataParams(d),p=0;p<u.length;p++){var g=u[p];c.setItemVisual(d,g,i[g](h,v))}}return{dataEach:a?f:null}}},Ej={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var r=e.getData();function n(i,a){for(var o=i.getItemModel(a),s=0;s<mx.length;s++){var l=mx[s],u=o.getShallow(l,!0);u!=null&&i.setItemVisual(a,l,u)}}return{dataEach:r.hasItemOption?n:null}}};function Pj(e,t,r){switch(r){case"color":var n=e.getItemVisual(t,"style");return n[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,r)}}function Lj(e,t){switch(t){case"color":var r=e.getVisual("style");return r[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t)}}function Dj(e,t){function r(n,i){var a=[];return n.eachComponent({mainType:"series",subType:e,query:i},function(o){a.push(o.seriesIndex)}),a}R([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],function(n){t(n[0],function(i,a,o){i=oe({},i),o.dispatchAction(oe(i,{type:n[1],seriesIndex:r(a,i)}))})})}function Bo(e,t,r,n,i){var a=e+t;r.isSilent(a)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=i.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var c=o.getData(),d=Uu(c,i.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:ge(d)?c.getName(d[0]):c.getName(d),selected:Te(l)?l:oe({},l)})}})}function Ij(e,t,r){e.on("selectchanged",function(n){var i=r.getModel();n.isFromClick?(Bo("map","selectchanged",t,i,n),Bo("pie","selectchanged",t,i,n)):n.fromAction==="select"?(Bo("map","selected",t,i,n),Bo("pie","selected",t,i,n)):n.fromAction==="unselect"&&(Bo("map","unselected",t,i,n),Bo("pie","unselected",t,i,n))})}function Sl(e,t,r){for(var n;e&&!(t(e)&&(n=e,r));)e=e.__hostTarget||e.parent;return n}var Rj=Math.round(Math.random()*9),Oj=typeof Object.defineProperty=="function",kj=function(){function e(){this._id="__ec_inner_"+Rj++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,r){var n=this._guard(t);return Oj?Object.defineProperty(n,this._id,{value:r,enumerable:!1,configurable:!0}):n[this._id]=r,this},e.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},e.prototype.has=function(t){return!!this._guard(t)[this._id]},e.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},e}();const Nj=kj;var Bj=ct.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,i=t.width/2,a=t.height/2;e.moveTo(r,n-a),e.lineTo(r+i,n+a),e.lineTo(r-i,n+a),e.closePath()}}),Fj=ct.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,i=t.width/2,a=t.height/2;e.moveTo(r,n-a),e.lineTo(r+i,n),e.lineTo(r,n+a),e.lineTo(r-i,n),e.closePath()}}),$j=ct.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.x,n=t.y,i=t.width/5*3,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),l=n-a+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,c=Math.sin(u),d=Math.cos(u),h=o*.6,v=o*.7;e.moveTo(r-f,l+s),e.arc(r,l,o,Math.PI-u,Math.PI*2+u),e.bezierCurveTo(r+f-c*h,l+s+d*h,r,n-v,r,n),e.bezierCurveTo(r,n-v,r-f+c*h,l+s+d*h,r-f,l+s),e.closePath()}}),Hj=ct.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.height,n=t.width,i=t.x,a=t.y,o=n/3*2;e.moveTo(i,a),e.lineTo(i+o,a+r),e.lineTo(i,a+r/4*3),e.lineTo(i-o,a+r),e.lineTo(i,a),e.closePath()}}),zj={line:vo,rect:Nt,roundRect:Nt,square:Nt,circle:Xy,diamond:Fj,pin:$j,arrow:Hj,triangle:Bj},Wj={line:function(e,t,r,n,i){i.x1=e,i.y1=t+n/2,i.x2=e+r,i.y2=t+n/2},rect:function(e,t,r,n,i){i.x=e,i.y=t,i.width=r,i.height=n},roundRect:function(e,t,r,n,i){i.x=e,i.y=t,i.width=r,i.height=n,i.r=Math.min(r,n)/4},square:function(e,t,r,n,i){var a=Math.min(r,n);i.x=e,i.y=t,i.width=a,i.height=a},circle:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.r=Math.min(r,n)/2},diamond:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.width=r,i.height=n},pin:function(e,t,r,n,i){i.x=e+r/2,i.y=t+n/2,i.width=r,i.height=n},arrow:function(e,t,r,n,i){i.x=e+r/2,i.y=t+n/2,i.width=r,i.height=n},triangle:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.width=r,i.height=n}},Qg={};R(zj,function(e,t){Qg[t]=new e});var Vj=ct.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,r){var n=ed(e,t,r),i=this.shape;return i&&i.symbolType==="pin"&&t.position==="inside"&&(n.y=r.y+r.height*.4),n},buildPath:function(e,t,r){var n=t.symbolType;if(n!=="none"){var i=Qg[n];i||(n="rect",i=Qg[n]),Wj[n](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,r)}}});function Gj(e,t){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=e,r.fill=t||"#fff",r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=e:r.fill=e,this.markRedraw()}}function w0(e,t,r,n,i,a,o){var s=e.indexOf("empty")===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var l;return e.indexOf("image://")===0?l=F2(e.slice(8),new tt(t,r,n,i),o?"center":"cover"):e.indexOf("path://")===0?l=Jy(e.slice(7),{},new tt(t,r,n,i),o?"center":"cover"):l=new Vj({shape:{symbolType:e,x:t,y:r,width:n,height:i}}),l.__isEmptyBrush=s,l.setColor=Gj,a&&l.setColor(a),l}function Uj(e,t){if(e!=null)return ge(e)||(e=[e,e]),[pt(e[0],t[0])||0,pt(je(e[1],e[0]),t[1])||0]}function Za(e){return isFinite(e)}function Yj(e,t,r){var n=t.x==null?0:t.x,i=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(n=n*r.width+r.x,i=i*r.width+r.x,a=a*r.height+r.y,o=o*r.height+r.y),n=Za(n)?n:0,i=Za(i)?i:1,a=Za(a)?a:0,o=Za(o)?o:0;var s=e.createLinearGradient(n,a,i,o);return s}function qj(e,t,r){var n=r.width,i=r.height,a=Math.min(n,i),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(o=o*n+r.x,s=s*i+r.y,l=l*a),o=Za(o)?o:.5,s=Za(s)?s:.5,l=l>=0&&Za(l)?l:.5;var u=e.createRadialGradient(o,s,0,o,s,l);return u}function Jg(e,t,r){for(var n=t.type==="radial"?qj(e,t,r):Yj(e,t,r),i=t.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function jj(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!0;return!1}function $f(e){return parseInt(e,10)}function Hf(e,t,r){var n=["width","height"][t],i=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(e);return(e[i]||$f(s[n])||$f(e.style[n]))-($f(s[a])||0)-($f(s[o])||0)|0}function Kj(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:bt(e)?[e]:ge(e)?e:null}function VE(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&Kj(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(r){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(r=Oe(r,function(a){return a/i}),n/=i)}return[r,n]}var Xj=new ho(!0);function cd(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function yx(e){return typeof e=="string"&&e!=="none"}function dd(e){var t=e.fill;return t!=null&&t!=="none"}function _x(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function bx(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function em(e,t,r){var n=YA(t.image,t.__image,r);if(th(n)){var i=e.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*eG),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function Zj(e,t,r,n){var i,a=cd(r),o=dd(r),s=r.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var f=t.path||Xj,c=t.__dirty;if(!n){var d=r.fill,h=r.stroke,v=o&&!!d.colorStops,p=a&&!!h.colorStops,g=o&&!!d.image,m=a&&!!h.image,y=void 0,_=void 0,b=void 0,x=void 0,w=void 0;(v||p)&&(w=t.getBoundingRect()),v&&(y=c?Jg(e,d,w):t.__canvasFillGradient,t.__canvasFillGradient=y),p&&(_=c?Jg(e,h,w):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),g&&(b=c||!t.__canvasFillPattern?em(e,d,t):t.__canvasFillPattern,t.__canvasFillPattern=b),m&&(x=c||!t.__canvasStrokePattern?em(e,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=b),v?e.fillStyle=y:g&&(b?e.fillStyle=b:o=!1),p?e.strokeStyle=_:m&&(x?e.strokeStyle=x:a=!1)}var S=t.getGlobalScale();f.setScale(S[0],S[1],t.segmentIgnoreThreshold);var C,T;e.setLineDash&&r.lineDash&&(i=VE(t),C=i[0],T=i[1]);var E=!0;(u||c&Vo)&&(f.setDPR(e.dpr),l?f.setContext(null):(f.setContext(e),E=!1),f.reset(),t.buildPath(f,t.shape,n),f.toStatic(),t.pathUpdated()),E&&f.rebuildPath(e,l?s:1),C&&(e.setLineDash(C),e.lineDashOffset=T),n||(r.strokeFirst?(a&&bx(e,r),o&&_x(e,r)):(o&&_x(e,r),a&&bx(e,r))),C&&e.setLineDash([])}function Qj(e,t,r){var n=t.__image=YA(r.image,t.__image,t,t.onload);if(!(!n||!th(n))){var i=r.x||0,a=r.y||0,o=t.getWidth(),s=t.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var u=r.sx||0,f=r.sy||0;e.drawImage(n,u,f,r.sWidth,r.sHeight,i,a,o,s)}else if(r.sx&&r.sy){var u=r.sx,f=r.sy,c=o-u,d=s-f;e.drawImage(n,u,f,c,d,i,a,o,s)}else e.drawImage(n,i,a,o,s)}}function Jj(e,t,r){var n,i=r.text;if(i!=null&&(i+=""),i){e.font=r.font||co,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=VE(t),a=n[0],o=n[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(cd(r)&&e.strokeText(i,r.x,r.y),dd(r)&&e.fillText(i,r.x,r.y)):(dd(r)&&e.fillText(i,r.x,r.y),cd(r)&&e.strokeText(i,r.x,r.y)),a&&e.setLineDash([])}}var xx=["shadowBlur","shadowOffsetX","shadowOffsetY"],Sx=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function GE(e,t,r,n,i){var a=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){yr(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?no.opacity:o}(n||t.blend!==r.blend)&&(a||(yr(e,i),a=!0),e.globalCompositeOperation=t.blend||no.blend);for(var s=0;s<xx.length;s++){var l=xx[s];(n||t[l]!==r[l])&&(a||(yr(e,i),a=!0),e[l]=e.dpr*(t[l]||0))}return(n||t.shadowColor!==r.shadowColor)&&(a||(yr(e,i),a=!0),e.shadowColor=t.shadowColor||no.shadowColor),a}function Cx(e,t,r,n,i){var a=Eu(t,i.inHover),o=n?null:r&&Eu(r,i.inHover)||{};if(a===o)return!1;var s=GE(e,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(yr(e,i),s=!0),yx(a.fill)&&(e.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(yr(e,i),s=!0),yx(a.stroke)&&(e.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(yr(e,i),s=!0),e.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==u&&(s||(yr(e,i),s=!0),e.lineWidth=u)}for(var f=0;f<Sx.length;f++){var c=Sx[f],d=c[0];(n||a[d]!==o[d])&&(s||(yr(e,i),s=!0),e[d]=a[d]||c[1])}return s}function eK(e,t,r,n,i){return GE(e,Eu(t,i.inHover),r&&Eu(r,i.inHover),n,i)}function UE(e,t){var r=t.transform,n=e.dpr||1;r?e.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):e.setTransform(n,0,0,n,0,0)}function tK(e,t,r){for(var n=!1,i=0;i<e.length;i++){var a=e[i];n=n||a.isZeroArea(),UE(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}r.allClipped=n}function rK(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}var Tx=1,Mx=2,Ax=3,Ex=4;function nK(e){var t=dd(e),r=cd(e);return!(e.lineDash||!(+t^+r)||t&&typeof e.fill!="string"||r&&typeof e.stroke!="string"||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function yr(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function Eu(e,t){return t&&e.__hoverStyle||e.style}function YE(e,t){Qa(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Qa(e,t,r,n){var i=t.transform;if(!t.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){t.__dirty&=~Ir,t.__isRendered=!1;return}var a=t.__clipPaths,o=r.prevElClipPaths,s=!1,l=!1;if((!o||jj(a,o))&&(o&&o.length&&(yr(e,r),e.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),a&&a.length&&(yr(e,r),e.save(),tK(a,e,r),s=!0),r.prevElClipPaths=a),r.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var f=t instanceof ct&&t.autoBatch&&nK(t.style);s||rK(i,u.transform)?(yr(e,r),UE(e,t)):f||yr(e,r);var c=Eu(t,r.inHover);t instanceof ct?(r.lastDrawType!==Tx&&(l=!0,r.lastDrawType=Tx),Cx(e,t,u,l,r),(!f||!r.batchFill&&!r.batchStroke)&&e.beginPath(),Zj(e,t,c,f),f&&(r.batchFill=c.fill||"",r.batchStroke=c.stroke||"")):t instanceof Rg?(r.lastDrawType!==Ax&&(l=!0,r.lastDrawType=Ax),Cx(e,t,u,l,r),Jj(e,t,c)):t instanceof Bs?(r.lastDrawType!==Mx&&(l=!0,r.lastDrawType=Mx),eK(e,t,u,l,r),Qj(e,t,c)):t.getTemporalDisplayables&&(r.lastDrawType!==Ex&&(l=!0,r.lastDrawType=Ex),iK(e,t,r)),f&&n&&yr(e,r),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),r.prevEl=t,t.__dirty=0,t.__isRendered=!0}function iK(e,t,r){var n=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover},o,s;for(o=t.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Qa(e,l,a,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}for(var u=0,f=i.length;u<f;u++){var l=i[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Qa(e,l,a,u===f-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var Wv=new Nj,Px=new Vu(100),Lx=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function tm(e,t){if(e==="none")return null;var r=t.getDevicePixelRatio(),n=t.getZr(),i=n.painter.type==="svg";e.dirty&&Wv.delete(e);var a=Wv.get(e);if(a)return a;var o=ft(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/r,Wv.set(e,s),e.dirty=!1,s;function l(u){for(var f=[r],c=!0,d=0;d<Lx.length;++d){var h=o[Lx[d]];if(h!=null&&!ge(h)&&!Te(h)&&!bt(h)&&typeof h!="boolean"){c=!1;break}f.push(h)}var v;if(c){v=f.join(",")+(i?"-svg":"");var p=Px.get(v);p&&(i?u.svgElement=p:u.image=p)}var g=jE(o.dashArrayX),m=aK(o.dashArrayY),y=qE(o.symbol),_=oK(g),b=KE(m),x=!i&&bo.createCanvas(),w=i&&{tag:"g",attrs:{},key:"dcl",children:[]},S=T(),C;x&&(x.width=S.width*r,x.height=S.height*r,C=x.getContext("2d")),E(),c&&Px.put(v,x||w),u.image=x,u.svgElement=w,u.svgWidth=S.width,u.svgHeight=S.height;function T(){for(var A=1,M=0,D=_.length;M<D;++M)A=V1(A,_[M]);for(var O=1,M=0,D=y.length;M<D;++M)O=V1(O,y[M].length);A*=O;var k=b*_.length*y.length;return{width:Math.max(1,Math.min(A,o.maxTileWidth)),height:Math.max(1,Math.min(k,o.maxTileHeight))}}function E(){C&&(C.clearRect(0,0,x.width,x.height),o.backgroundColor&&(C.fillStyle=o.backgroundColor,C.fillRect(0,0,x.width,x.height)));for(var A=0,M=0;M<m.length;++M)A+=m[M];if(A<=0)return;for(var D=-b,O=0,k=0,F=0;D<S.height;){if(O%2===0){for(var j=k/2%y.length,B=0,N=0,U=0;B<S.width*2;){for(var re=0,M=0;M<g[F].length;++M)re+=g[F][M];if(re<=0)break;if(N%2===0){var ae=(1-o.symbolSize)*.5,me=B+g[F][N]*ae,Me=D+m[O]*ae,V=g[F][N]*o.symbolSize,J=m[O]*o.symbolSize,W=U/2%y[j].length;Y(me,Me,V,J,y[j][W])}B+=g[F][N],++U,++N,N===g[F].length&&(N=0)}++F,F===g.length&&(F=0)}D+=m[O],++k,++O,O===m.length&&(O=0)}function Y(le,he,Q,P,I){var z=i?1:r,G=w0(I,le*z,he*z,Q*z,P*z,o.color,o.symbolKeepAspect);if(i){var q=n.painter.renderOneToVNode(G);q&&w.children.push(q)}else YE(C,G)}}}}function qE(e){if(!e||e.length===0)return[["rect"]];if(Te(e))return[[e]];for(var t=!0,r=0;r<e.length;++r)if(!Te(e[r])){t=!1;break}if(t)return qE([e]);for(var n=[],r=0;r<e.length;++r)Te(e[r])?n.push([e[r]]):n.push(e[r]);return n}function jE(e){if(!e||e.length===0)return[[0,0]];if(bt(e)){var t=Math.ceil(e);return[[t,t]]}for(var r=!0,n=0;n<e.length;++n)if(!bt(e[n])){r=!1;break}if(r)return jE([e]);for(var i=[],n=0;n<e.length;++n)if(bt(e[n])){var t=Math.ceil(e[n]);i.push([t,t])}else{var t=Oe(e[n],function(s){return Math.ceil(s)});t.length%2===1?i.push(t.concat(t)):i.push(t)}return i}function aK(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(bt(e)){var t=Math.ceil(e);return[t,t]}var r=Oe(e,function(n){return Math.ceil(n)});return e.length%2?r.concat(r):r}function oK(e){return Oe(e,function(t){return KE(t)})}function KE(e){for(var t=0,r=0;r<e.length;++r)t+=e[r];return e.length%2===1?t*2:t}function sK(e,t){e.eachRawSeries(function(r){if(!e.isSeriesFiltered(r)){var n=r.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=tm(s,t)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=tm(i,t)}}})}var lK=new Jn;const pn=lK;var XE={};function uK(e,t){XE[e]=t}function fK(e){return XE[e]}var cK=1,dK=800,hK=900,vK=1e3,pK=2e3,gK=5e3,ZE=1e3,mK=1100,x0=2e3,QE=3e3,yK=4e3,mh=4500,_K=4600,bK=5e3,wK=6e3,JE=7e3,xK={PROCESSOR:{FILTER:vK,SERIES_FILTER:dK,STATISTIC:gK},VISUAL:{LAYOUT:ZE,PROGRESSIVE_LAYOUT:mK,GLOBAL:x0,CHART:QE,POST_CHART_LAYOUT:_K,COMPONENT:yK,BRUSH:bK,CHART_ITEM:mh,ARIA:wK,DECAL:JE}},Zt="__flagInMainProcess",hr="__pendingUpdate",Vv="__needsUpdateStatus",Dx=/^[a-zA-Z0-9_]+$/,Gv="__connectUpdateStatus",Ix=0,SK=1,CK=2;function eP(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(this.isDisposed()){this.id;return}return rP(this,e,t)}}function tP(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return rP(this,e,t)}}function rP(e,t,r){return r[0]=r[0]&&r[0].toLowerCase(),Jn.prototype[t].apply(e,r)}var nP=function(e){pe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Jn),iP=nP.prototype;iP.on=tP("on");iP.off=tP("off");var Fo,Uv,zf,Oi,Yv,qv,jv,ol,sl,Rx,Ox,Kv,kx,Wf,Nx,aP,Wr,Bx,oP=function(e){pe(t,e);function t(r,n,i){var a=e.call(this,new Mj)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},Te(n)&&(n=sP[n]),a._dom=r;var o="canvas",s="auto",l=!1,u=a._zr=z1(r,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:je(i.useDirtyRect,l),useCoarsePointer:je(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=b0(_t(u.flush,u),17),n=Ze(n),n&&mE(n,!0),a._theme=n,a._locale=P7(i.locale||j2),a._coordSysMgr=new h0;var f=a._api=Nx(a);function c(d,h){return d.__prio-h.__prio}return _c(vd,c),_c(rm,c),a._scheduler=new zE(a,f,rm,vd),a._messageCenter=new nP,a._initEvents(),a.resize=_t(a.resize,a),u.animation.on("frame",a._onframe,a),Rx(u,a),Ox(u,a),cg(a),a}return t.prototype._onframe=function(){if(!this._disposed){Bx(this);var r=this._scheduler;if(this[hr]){var n=this[hr].silent;this[Zt]=!0;try{Fo(this),Oi.update.call(this,null,this[hr].updateParams)}catch(l){throw this[Zt]=!1,this[hr]=null,l}this._zr.flush(),this[Zt]=!1,this[hr]=null,ol.call(this,n),sl.call(this,n)}else if(r.unfinished){var i=cK,a=this._model,o=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(a),r.performDataProcessorTasks(a),qv(this,a),r.performVisualTasks(a),Wf(this,this._model,o,"remain",{}),i-=+new Date-s}while(i>0&&r.unfinished);r.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(r,n,i){if(!this[Zt]){if(this._disposed){this.id;return}var a,o,s;if(De(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Zt]=!0,!this._model||n){var l=new uq(this._api),u=this._theme,f=this._model=new vE;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},nm);var c={seriesTransition:s,optionChanged:!0};if(i)this[hr]={silent:a,updateParams:c},this[Zt]=!1,this.getZr().wakeUp();else{try{Fo(this),Oi.update.call(this,null,c)}catch(d){throw this[hr]=null,this[Zt]=!1,d}this._ssr||this._zr.flush(),this[hr]=null,this[Zt]=!1,ol.call(this,a),sl.call(this,a)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Ve.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},t.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},t.prototype.getSvgDataURL=function(){if(Ve.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return R(n,function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()}},t.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,i=this._model,a=[],o=this;R(n,function(l){i.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return R(a,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(Fx[i]){var l=s,u=s,f=-s,c=-s,d=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();R(Kl,function(_,b){if(_.group===i){var x=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(Ze(r)),w=_.getDom().getBoundingClientRect();l=a(w.left,l),u=a(w.top,u),f=o(w.right,f),c=o(w.bottom,c),d.push({dom:x,left:w.left,top:w.top})}}),l*=h,u*=h,f*=h,c*=h;var v=f-l,p=c-u,g=bo.createCanvas(),m=z1(g,{renderer:n?"svg":"canvas"});if(m.resize({width:v,height:p}),n){var y="";return R(d,function(_){var b=_.left-l,x=_.top-u;y+='<g transform="translate('+b+","+x+')">'+_.dom+"</g>"}),m.painter.getSvgRoot().innerHTML=y,r.connectedBackgroundColor&&m.painter.setBackgroundColor(r.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return r.connectedBackgroundColor&&m.add(new Nt({shape:{x:0,y:0,width:v,height:p},style:{fill:r.connectedBackgroundColor}})),R(d,function(_){var b=new Bs({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});m.add(b)}),m.refreshImmediately(),g.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,n){return Yv(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return Yv(this,"convertFromPixel",r,n)},t.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=pv(i,r);return R(o,function(s,l){l.indexOf("Models")>=0&&R(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(n);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(a=a||c.containPoint(n,u))}},this)},this),!!a},t.prototype.getVisual=function(r,n){var i=this._model,a=pv(i,r,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?Pj(s,l,n):Lj(s,n)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;R(TK,function(n){var i=function(a){var o=r.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&Sl(s,function(v){var p=ut(v);if(p&&p.dataIndex!=null){var g=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return l=g&&g.getDataParams(p.dataIndex,p.dataType)||{},!0}else if(p.eventData)return l=oe({},p.eventData),!0},!0),l){var f=l.componentType,c=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",c=l.seriesIndex);var d=f&&c!=null&&o.getComponent(f,c),h=d&&r[d.mainType==="series"?"_chartsMap":"_componentsMap"][d.__viewId];l.event=a,l.type=n,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:d,view:h},r.trigger(n,l)}};i.zrEventfulCallAtLast=!0,r._zr.on(n,i,r)}),R(jl,function(n,i){r._messageCenter.on(i,function(a){this.trigger(i,a)},r)}),R(["selectchanged"],function(n){r._messageCenter.on(n,function(i){this.trigger(n,i)},r)}),Ij(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&VA(this.getDom(),C0,"");var n=this,i=n._api,a=n._model;R(n._componentsViews,function(o){o.dispose(a,i)}),R(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete Kl[n.id]},t.prototype.resize=function(r){if(!this[Zt]){if(this._disposed){this.id;return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=r&&r.silent;this[hr]&&(a==null&&(a=this[hr].silent),i=!0,this[hr]=null),this[Zt]=!0;try{i&&Fo(this),Oi.update.call(this,{type:"resize",animation:oe({duration:0},r&&r.animation)})}catch(o){throw this[Zt]=!1,o}this[Zt]=!1,ol.call(this,a),sl.call(this,a)}}},t.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(De(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!im[r]){var i=im[r](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(r){var n=oe({},r);return n.type=jl[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(De(n)||(n={silent:!!n}),!!hd[r.type]&&this._model){if(this[Zt]){this._pendingActions.push(r);return}var i=n.silent;jv.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&Ve.browser.weChat&&this._throttledZrFlush(),ol.call(this,i),sl.call(this,i)}},t.prototype.updateLabelLayout=function(){pn.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){Fo=function(c){var d=c._scheduler;d.restorePipelines(c._model),d.prepareStageTasks(),Uv(c,!0),Uv(c,!1),d.plan()},Uv=function(c,d){for(var h=c._model,v=c._scheduler,p=d?c._componentsViews:c._chartsViews,g=d?c._componentsMap:c._chartsMap,m=c._zr,y=c._api,_=0;_<p.length;_++)p[_].__alive=!1;d?h.eachComponent(function(w,S){w!=="series"&&b(S)}):h.eachSeries(b);function b(w){var S=w.__requireNewView;w.__requireNewView=!1;var C="_ec_"+w.id+"_"+w.type,T=!S&&g[C];if(!T){var E=Wn(w.type),A=d?bi.getClass(E.main,E.sub):ao.getClass(E.sub);T=new A,T.init(h,y),g[C]=T,p.push(T),m.add(T.group)}w.__viewId=T.__id=C,T.__alive=!0,T.__model=w,T.group.__ecComponentInfo={mainType:w.mainType,index:w.componentIndex},!d&&v.prepareView(T,w,h,y)}for(var _=0;_<p.length;){var x=p[_];x.__alive?_++:(!d&&x.renderTask.dispose(),m.remove(x.group),x.dispose(h,y),p.splice(_,1),g[x.__id]===x&&delete g[x.__id],x.__id=x.group.__ecComponentInfo=null)}},zf=function(c,d,h,v,p){var g=c._model;if(g.setUpdatePayload(h),!v){R([].concat(c._componentsViews).concat(c._chartsViews),x);return}var m={};m[v+"Id"]=h[v+"Id"],m[v+"Index"]=h[v+"Index"],m[v+"Name"]=h[v+"Name"];var y={mainType:v,query:m};p&&(y.subType=p);var _=h.excludeSeriesId,b;_!=null&&(b=Ge(),R(lr(_),function(w){var S=Un(w,null);S!=null&&b.set(S,!0)})),g&&g.eachComponent(y,function(w){var S=b&&b.get(w.id)!=null;if(!S)if(mw(h))if(w instanceof po)h.type===io&&!h.notBlur&&!w.get(["emphasis","disabled"])&&iY(w,h,c._api);else{var C=Ky(w.mainType,w.componentIndex,h.name,c._api),T=C.focusSelf,E=C.dispatchers;h.type===io&&T&&!h.notBlur&&Bg(w.mainType,w.componentIndex,c._api),E&&R(E,function(A){h.type===io?Og(A):kg(A)})}else Hg(h)&&w instanceof po&&(sY(w,h,c._api),pw(w),Wr(c))},c),g&&g.eachComponent(y,function(w){var S=b&&b.get(w.id)!=null;S||x(c[v==="series"?"_chartsMap":"_componentsMap"][w.__viewId])},c);function x(w){w&&w.__alive&&w[d]&&w[d](w.__model,g,c._api,h)}},Oi={prepareAndUpdate:function(c){Fo(this),Oi.update.call(this,c,{optionChanged:c.newOption!=null})},update:function(c,d){var h=this._model,v=this._api,p=this._zr,g=this._coordSysMgr,m=this._scheduler;if(h){h.setUpdatePayload(c),m.restoreData(h,c),m.performSeriesTasks(h),g.create(h,v),m.performDataProcessorTasks(h,c),qv(this,h),g.update(h,v),r(h),m.performVisualTasks(h,c),Kv(this,h,v,c,d);var y=h.get("backgroundColor")||"transparent",_=h.get("darkMode");p.setBackgroundColor(y),_!=null&&_!=="auto"&&p.setDarkMode(_),pn.trigger("afterupdate",h,v)}},updateTransform:function(c){var d=this,h=this._model,v=this._api;if(h){h.setUpdatePayload(c);var p=[];h.eachComponent(function(m,y){if(m!=="series"){var _=d.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var b=_.updateTransform(y,h,v,c);b&&b.update&&p.push(_)}else p.push(_)}});var g=Ge();h.eachSeries(function(m){var y=d._chartsMap[m.__viewId];if(y.updateTransform){var _=y.updateTransform(m,h,v,c);_&&_.update&&g.set(m.uid,1)}else g.set(m.uid,1)}),r(h),this._scheduler.performVisualTasks(h,c,{setDirty:!0,dirtyMap:g}),Wf(this,h,v,c,{},g),pn.trigger("afterupdate",h,v)}},updateView:function(c){var d=this._model;d&&(d.setUpdatePayload(c),ao.markUpdateMethod(c,"updateView"),r(d),this._scheduler.performVisualTasks(d,c,{setDirty:!0}),Kv(this,d,this._api,c,{}),pn.trigger("afterupdate",d,this._api))},updateVisual:function(c){var d=this,h=this._model;h&&(h.setUpdatePayload(c),h.eachSeries(function(v){v.getData().clearAllVisual()}),ao.markUpdateMethod(c,"updateVisual"),r(h),this._scheduler.performVisualTasks(h,c,{visualType:"visual",setDirty:!0}),h.eachComponent(function(v,p){if(v!=="series"){var g=d.getViewOfComponentModel(p);g&&g.__alive&&g.updateVisual(p,h,d._api,c)}}),h.eachSeries(function(v){var p=d._chartsMap[v.__viewId];p.updateVisual(v,h,d._api,c)}),pn.trigger("afterupdate",h,this._api))},updateLayout:function(c){Oi.update.call(this,c)}},Yv=function(c,d,h,v){if(c._disposed){c.id;return}for(var p=c._model,g=c._coordSysMgr.getCoordinateSystems(),m,y=pv(p,h),_=0;_<g.length;_++){var b=g[_];if(b[d]&&(m=b[d](p,y,v))!=null)return m}},qv=function(c,d){var h=c._chartsMap,v=c._scheduler;d.eachSeries(function(p){v.updateStreamModes(p,h[p.__viewId])})},jv=function(c,d){var h=this,v=this.getModel(),p=c.type,g=c.escapeConnect,m=hd[p],y=m.actionInfo,_=(y.update||"update").split(":"),b=_.pop(),x=_[0]!=null&&Wn(_[0]);this[Zt]=!0;var w=[c],S=!1;c.batch&&(S=!0,w=Oe(c.batch,function(O){return O=ft(oe({},O),c),O.batch=null,O}));var C=[],T,E=Hg(c),A=mw(c);if(A&&h2(this._api),R(w,function(O){if(T=m.action(O,h._model,h._api),T=T||oe({},O),T.type=y.event||T.type,C.push(T),A){var k=Vy(c),F=k.queryOptionMap,j=k.mainTypeSpecified,B=j?F.keys()[0]:"series";zf(h,b,O,B),Wr(h)}else E?(zf(h,b,O,"series"),Wr(h)):x&&zf(h,b,O,x.main,x.sub)}),b!=="none"&&!A&&!E&&!x)try{this[hr]?(Fo(this),Oi.update.call(this,c),this[hr]=null):Oi[b].call(this,c)}catch(O){throw this[Zt]=!1,O}if(S?T={type:y.event||p,escapeConnect:g,batch:C}:T=C[0],this[Zt]=!1,!d){var M=this._messageCenter;if(M.trigger(T.type,T),E){var D={type:"selectchanged",escapeConnect:g,selected:lY(v),isFromClick:c.isFromClick||!1,fromAction:c.type,fromActionPayload:c};M.trigger(D.type,D)}}},ol=function(c){for(var d=this._pendingActions;d.length;){var h=d.shift();jv.call(this,h,c)}},sl=function(c){!c&&this.trigger("updated")},Rx=function(c,d){c.on("rendered",function(h){d.trigger("rendered",h),c.animation.isFinished()&&!d[hr]&&!d._scheduler.unfinished&&!d._pendingActions.length&&d.trigger("finished")})},Ox=function(c,d){c.on("mouseover",function(h){var v=h.target,p=Sl(v,$g);p&&(aY(p,h,d._api),Wr(d))}).on("mouseout",function(h){var v=h.target,p=Sl(v,$g);p&&(oY(p,h,d._api),Wr(d))}).on("click",function(h){var v=h.target,p=Sl(v,function(y){return ut(y).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",m=ut(p);d._api.dispatchAction({type:g,dataType:m.dataType,dataIndexInside:m.dataIndex,seriesIndex:m.seriesIndex,isFromClick:!0})}})};function r(c){c.clearColorPalette(),c.eachSeries(function(d){d.clearColorPalette()})}function n(c){var d=[],h=[],v=!1;if(c.eachComponent(function(y,_){var b=_.get("zlevel")||0,x=_.get("z")||0,w=_.getZLevelKey();v=v||!!w,(y==="series"?h:d).push({zlevel:b,z:x,idx:_.componentIndex,type:y,key:w})}),v){var p=d.concat(h),g,m;_c(p,function(y,_){return y.zlevel===_.zlevel?y.z-_.z:y.zlevel-_.zlevel}),R(p,function(y){var _=c.getComponent(y.type,y.idx),b=y.zlevel,x=y.key;g!=null&&(b=Math.max(g,b)),x?(b===g&&x!==m&&b++,m=x):m&&(b===g&&b++,m=""),g=b,_.setZLevel(b)})}}Kv=function(c,d,h,v,p){n(d),kx(c,d,h,v,p),R(c._chartsViews,function(g){g.__alive=!1}),Wf(c,d,h,v,p),R(c._chartsViews,function(g){g.__alive||g.remove(d,h)})},kx=function(c,d,h,v,p,g){R(g||c._componentsViews,function(m){var y=m.__model;u(y,m),m.render(y,d,h,v),s(y,m),f(y,m)})},Wf=function(c,d,h,v,p,g){var m=c._scheduler;p=oe(p||{},{updatedSeries:d.getSeries()}),pn.trigger("series:beforeupdate",d,h,p);var y=!1;d.eachSeries(function(_){var b=c._chartsMap[_.__viewId];b.__alive=!0;var x=b.renderTask;m.updatePayload(x,v),u(_,b),g&&g.get(_.uid)&&x.dirty(),x.perform(m.getPerformArgs(x))&&(y=!0),b.group.silent=!!_.get("silent"),o(_,b),pw(_)}),m.unfinished=y||m.unfinished,pn.trigger("series:layoutlabels",d,h,p),pn.trigger("series:transition",d,h,p),d.eachSeries(function(_){var b=c._chartsMap[_.__viewId];s(_,b),f(_,b)}),a(c,d),pn.trigger("series:afterupdate",d,h,p)},Wr=function(c){c[Vv]=!0,c.getZr().wakeUp()},Bx=function(c){c[Vv]&&(c.getZr().storage.traverse(function(d){os(d)||i(d)}),c[Vv]=!1)};function i(c){for(var d=[],h=c.currentStates,v=0;v<h.length;v++){var p=h[v];p==="emphasis"||p==="blur"||p==="select"||d.push(p)}c.selected&&c.states.select&&d.push("select"),c.hoverState===qy&&c.states.emphasis?d.push("emphasis"):c.hoverState===Yy&&c.states.blur&&d.push("blur"),c.useStates(d)}function a(c,d){var h=c._zr,v=h.storage,p=0;v.traverse(function(g){g.isGroup||p++}),p>d.get("hoverLayerThreshold")&&!Ve.node&&!Ve.worker&&d.eachSeries(function(g){if(!g.preventUsingHoverLayer){var m=c._chartsMap[g.__viewId];m.__alive&&m.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function o(c,d){var h=c.get("blendMode")||null;d.eachRendered(function(v){v.isGroup||(v.style.blend=h)})}function s(c,d){if(!c.preventAutoZ){var h=c.get("z")||0,v=c.get("zlevel")||0;d.eachRendered(function(p){return l(p,h,v,-1/0),!0})}}function l(c,d,h,v){var p=c.getTextContent(),g=c.getTextGuideLine(),m=c.isGroup;if(m)for(var y=c.childrenRef(),_=0;_<y.length;_++)v=Math.max(l(y[_],d,h,v),v);else c.z=d,c.zlevel=h,v=Math.max(c.z2,v);if(p&&(p.z=d,p.zlevel=h,isFinite(v)&&(p.z2=v+2)),g){var b=c.textGuideLineConfig;g.z=d,g.zlevel=h,isFinite(v)&&(g.z2=v+(b&&b.showAbove?1:-1))}return v}function u(c,d){d.eachRendered(function(h){if(!os(h)){var v=h.getTextContent(),p=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function f(c,d){var h=c.getModel("stateAnimation"),v=c.isAnimationEnabled(),p=h.get("duration"),g=p>0?{duration:p,delay:h.get("delay"),easing:h.get("easing")}:null;d.eachRendered(function(m){if(m.states&&m.states.emphasis){if(os(m))return;if(m instanceof ct&&hY(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(v){m.stateTransition=g;var _=m.getTextContent(),b=m.getTextGuideLine();_&&(_.stateTransition=g),b&&(b.stateTransition=g)}m.__dirty&&i(m)}})}Nx=function(c){return new(function(d){pe(h,d);function h(){return d!==null&&d.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(v){for(;v;){var p=v.__ecComponentInfo;if(p!=null)return c._model.getComponent(p.mainType,p.index);v=v.parent}},h.prototype.enterEmphasis=function(v,p){Og(v,p),Wr(c)},h.prototype.leaveEmphasis=function(v,p){kg(v,p),Wr(c)},h.prototype.enterBlur=function(v){nY(v),Wr(c)},h.prototype.leaveBlur=function(v){u2(v),Wr(c)},h.prototype.enterSelect=function(v){f2(v),Wr(c)},h.prototype.leaveSelect=function(v){c2(v),Wr(c)},h.prototype.getModel=function(){return c.getModel()},h.prototype.getViewOfComponentModel=function(v){return c.getViewOfComponentModel(v)},h.prototype.getViewOfSeriesModel=function(v){return c.getViewOfSeriesModel(v)},h}(pE))(c)},aP=function(c){function d(h,v){for(var p=0;p<h.length;p++){var g=h[p];g[Gv]=v}}R(jl,function(h,v){c._messageCenter.on(v,function(p){if(Fx[c.group]&&c[Gv]!==Ix){if(p&&p.escapeConnect)return;var g=c.makeActionFromEvent(p),m=[];R(Kl,function(y){y!==c&&y.group===c.group&&m.push(y)}),d(m,Ix),R(m,function(y){y[Gv]!==SK&&y.dispatchAction(g)}),d(m,CK)}})})}}(),t}(Jn),S0=oP.prototype;S0.on=eP("on");S0.off=eP("off");S0.one=function(e,t,r){var n=this;function i(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];t&&t.apply&&t.apply(this,a),n.off(e,i)}this.on.call(this,e,i,r)};var TK=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"],hd={},jl={},rm=[],nm=[],vd=[],sP={},im={},Kl={},Fx={},MK=+new Date-0,C0="_echarts_instance_";function T0(e,t,r){var n=!(r&&r.ssr);if(n){var i=AK(e);if(i)return i}var a=new oP(e,t,r);return a.id="ec_"+MK++,Kl[a.id]=a,n&&VA(e,C0,a.id),aP(a),pn.trigger("afterinit",a),a}function AK(e){return Kl[VU(e,C0)]}function lP(e,t){sP[e]=t}function uP(e){it(nm,e)<0&&nm.push(e)}function fP(e,t){A0(rm,e,t,pK)}function EK(e){M0("afterinit",e)}function PK(e){M0("afterupdate",e)}function M0(e,t){pn.on(e,t)}function Hs(e,t,r){We(t)&&(r=t,t="");var n=De(e)?e.type:[e,e={event:t}][0];e.event=(e.event||n).toLowerCase(),t=e.event,!jl[t]&&(yi(Dx.test(n)&&Dx.test(t)),hd[n]||(hd[n]={action:r,actionInfo:e}),jl[t]=n)}function LK(e,t){h0.register(e,t)}function DK(e,t){A0(vd,e,t,ZE,"layout")}function So(e,t){A0(vd,e,t,QE,"visual")}var $x=[];function A0(e,t,r,n,i){if((We(t)||De(t))&&(r=t,t=n),!(it($x,r)>=0)){$x.push(r);var a=zE.wrapStageHandler(r,i);a.__prio=t,a.__raw=r,e.push(a)}}function cP(e,t){im[e]=t}function IK(e,t,r){var n=fK("registerMap");n&&n(e,t,r)}var RK=kq;So(x0,fj);So(mh,cj);So(mh,dj);So(x0,Aj);So(mh,Ej);So(JE,sK);uP(mE);fP(hK,mq);cP("default",hj);Hs({type:io,event:io,update:io},Sr);Hs({type:Mc,event:Mc,update:Mc},Sr);Hs({type:Wl,event:Wl,update:Wl},Sr);Hs({type:Ac,event:Ac,update:Ac},Sr);Hs({type:Vl,event:Vl,update:Vl},Sr);lP("light",Cj);lP("dark",Tj);function ll(e){return e==null?0:e.length||1}function Hx(e){return e}var OK=function(){function e(t,r,n,i,a,o){this._old=t,this._new=r,this._oldKeyGetter=n||Hx,this._newKeyGetter=i||Hx,this.context=a,this._diffModeMultiple=o==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,r=this._new,n={},i=new Array(t.length),a=new Array(r.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=i[o],l=n[s],u=ll(l);if(u>1){var f=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(f,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,n={},i={},a=[],o=[];this._initIndexMap(t,n,a,"_oldKeyGetter"),this._initIndexMap(r,i,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=n[l],f=i[l],c=ll(u),d=ll(f);if(c>1&&d===1)this._updateManyToOne&&this._updateManyToOne(f,u),i[l]=null;else if(c===1&&d>1)this._updateOneToMany&&this._updateOneToMany(f,u),i[l]=null;else if(c===1&&d===1)this._update&&this._update(f,u),i[l]=null;else if(c>1&&d>1)this._updateManyToMany&&this._updateManyToMany(f,u),i[l]=null;else if(c>1)for(var h=0;h<c;h++)this._remove&&this._remove(u[h]);else this._remove&&this._remove(u)}this._performRestAdd(o,i)},e.prototype._performRestAdd=function(t,r){for(var n=0;n<t.length;n++){var i=t[n],a=r[i],o=ll(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);r[i]=null}},e.prototype._initIndexMap=function(t,r,n,i){for(var a=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[i](t[o],o);if(a||(n[o]=s),!!r){var l=r[s],u=ll(l);u===0?(r[s]=o,a&&n.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},e}();const kK=OK;var NK=function(){function e(t,r){this._encode=t,this._schema=r}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e}();function BK(e,t){var r={},n=r.encode={},i=Ge(),a=[],o=[],s={};R(e.dimensions,function(d){var h=e.getDimensionInfo(d),v=h.coordDim;if(v){var p=h.coordDimIndex;Xv(n,v)[p]=d,h.isExtraCoord||(i.set(v,1),$K(h.type)&&(a[0]=d),Xv(s,v)[p]=e.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(d)}lE.each(function(g,m){var y=Xv(n,m),_=h.otherDims[m];_!=null&&_!==!1&&(y[_]=h.name)})});var l=[],u={};i.each(function(d,h){var v=n[h];u[h]=v[0],l=l.concat(v)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=Oe(l,function(d){return e.getDimensionInfo(d).storeDimIndex}),r.encodeFirstDimNotExtra=u;var f=n.label;f&&f.length&&(a=f.slice());var c=n.tooltip;return c&&c.length?o=c.slice():o.length||(o=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=o,r.userOutput=new NK(s,t),r}function Xv(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function FK(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function $K(e){return!(e==="ordinal"||e==="time")}var HK=function(){function e(t){this.otherDims={},t!=null&&oe(this,t)}return e}();const Dc=HK;var zK=Tt(),WK={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},dP=function(){function e(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=pP(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return je(this._dimNameMap.get(t),-1)},e.prototype.getSourceDimension=function(t){var r=this.source.dimensionsDefine;if(r)return r[t]},e.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,r=_E(this.source),n=!gP(t),i="",a=[],o=0,s=0;o<t;o++){var l=void 0,u=void 0,f=void 0,c=this.dimensions[s];if(c&&c.storeDimIndex===o)l=r?c.name:null,u=c.type,f=c.ordinalMeta,s++;else{var d=this.getSourceDimension(o);d&&(l=r?d.name:null,u=d.type)}a.push({property:l,type:u,ordinalMeta:f}),r&&l!=null&&(!c||!c.isCalculationCoord)&&(i+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=WK[u]||"f",f&&(i+=f.uid),i+="$"}var h=this.source,v=[h.seriesLayoutBy,h.startIndex,i].join("$$");return{dimensions:a,hash:v}},e.prototype.makeOutputDimensionNames=function(){for(var t=[],r=0,n=0;r<this._fullDimCount;r++){var i=void 0,a=this.dimensions[n];if(a&&a.storeDimIndex===r)a.isCalculationCoord||(i=a.name),n++;else{var o=this.getSourceDimension(r);o&&(i=o.name)}t.push(i)}return t},e.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function hP(e){return e instanceof dP}function vP(e){for(var t=Ge(),r=0;r<(e||[]).length;r++){var n=e[r],i=De(n)?n.name:n;i!=null&&t.get(i)==null&&t.set(i,r)}return t}function pP(e){var t=zK(e);return t.dimNameMap||(t.dimNameMap=vP(e.dimensionsDefine))}function gP(e){return e>30}var ul=De,ki=Oe,VK=typeof Int32Array>"u"?Array:Int32Array,GK="e\0\0",zx=-1,UK=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],YK=["_approximateExtent"],Wx,Vf,fl,cl,Zv,Gf,Qv,qK=function(){function e(t,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,i=!1;hP(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},f=0;f<n.length;f++){var c=n[f],d=Te(c)?new Dc({name:c}):c instanceof Dc?c:new Dc(c),h=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=h,d.coordDimIndex=0);var v=d.otherDims=d.otherDims||{};o.push(h),a[h]=d,u[h]!=null&&(l=!0),d.createInvertedIndices&&(s[h]=[]),v.itemName===0&&(this._nameDimIdx=f),v.itemId===0&&(this._idDimIdx=f),i&&(d.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=Ge();R(o,function(g){p.set(a[g].storeDimIndex,g)})}}return e.prototype.getDimension=function(t){var r=this._recognizeDimIndex(t);if(r==null)return t;if(r=t,!this._dimOmitted)return this.dimensions[r];var n=this._dimIdxToName.get(r);if(n!=null)return n;var i=this._schema.getSourceDimension(r);if(i)return i.name},e.prototype.getDimensionIndex=function(t){var r=this._recognizeDimIndex(t);if(r!=null)return r;if(t==null)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},e.prototype._recognizeDimIndex=function(t){if(bt(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},e.prototype._getStoreDimIndex=function(t){var r=this.getDimensionIndex(t);return r},e.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},e.prototype._initGetDimensionInfo=function(t){var r=this._dimInfos;this._getDimInfo=t?function(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(t,r){var n=this._dimSummary;if(r==null)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return i?i[r]:null},e.prototype.mapDimensionsAll=function(t){var r=this._dimSummary,n=r.encode[t];return(n||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(t,r,n){var i=this,a;if(t instanceof Yg&&(a=t),!a){var o=this.dimensions,s=v0(t)||Tr(t)?new bE(t,o.length):t;a=new Yg;var l=ki(o,function(u){return{type:i._dimInfos[u].type,property:u}});a.initData(s,l,n)}this._store=a,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=BK(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(t){var r=this._store.appendData(t);this._doInit(r[0],r[1])},e.prototype.appendValues=function(t,r){var n=this._store.appendValues(t,r.length),i=n.start,a=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=i;s<a;s++){var l=s-i;this._nameList[s]=r[l],o&&Qv(this,s)}},e.prototype._updateOrdinalMeta=function(){for(var t=this._store,r=this.dimensions,n=0;n<r.length;n++){var i=this._dimInfos[r[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==Zi&&!t.fillStorage},e.prototype._doInit=function(t,r){if(!(t>=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===un;if(l&&!i.pure)for(var u=[],f=t;f<r;f++){var c=i.getItem(f,u);if(!this.hasItemOption&&IU(c)&&(this.hasItemOption=!0),c){var d=c.name;a[f]==null&&d!=null&&(a[f]=Un(d,null));var h=c.id;o[f]==null&&h!=null&&(o[f]=Un(h,null))}}if(this._shouldMakeIdFromName())for(var f=t;f<r;f++)Qv(this,f);Wx(this)}},e.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.setApproximateExtent=function(t,r){r=this.getDimension(r),this._approximateExtent[r]=t.slice()},e.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},e.prototype.setCalculationInfo=function(t,r){ul(t)?oe(this._calculationInfo,t):this._calculationInfo[t]=r},e.prototype.getName=function(t){var r=this.getRawIndex(t),n=this._nameList[r];return n==null&&this._nameDimIdx!=null&&(n=fl(this,this._nameDimIdx,r)),n==null&&(n=""),n},e.prototype._getCategory=function(t,r){var n=this._store.get(t,r),i=this._store.getOrdinalMeta(t);return i?i.categories[n]:n},e.prototype.getId=function(t){return Vf(this,this.getRawIndex(t))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(t,r){var n=this._store,i=this._dimInfos[t];if(i)return n.get(i.storeDimIndex,r)},e.prototype.getByRawIndex=function(t,r){var n=this._store,i=this._dimInfos[t];if(i)return n.getByRawIndex(i.storeDimIndex,r)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},e.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},e.prototype.getValues=function(t,r){var n=this,i=this._store;return ge(t)?i.getValues(ki(t,function(a){return n._getStoreDimIndex(a)}),r):i.getValues(t)},e.prototype.hasValue=function(t){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,i=r.length;n<i;n++)if(isNaN(this._store.get(r[n],t)))return!1;return!0},e.prototype.indexOfName=function(t){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===t)return r;return-1},e.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},e.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},e.prototype.rawIndexOf=function(t,r){var n=t&&this._invertedIndicesMap[t],i=n[r];return i==null||isNaN(i)?zx:i},e.prototype.indicesOfNearest=function(t,r,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),r,n)},e.prototype.each=function(t,r,n){We(t)&&(n=r,r=t,t=[]);var i=n||this,a=ki(cl(t),this._getStoreDimIndex,this);this._store.each(a,i?_t(r,i):r)},e.prototype.filterSelf=function(t,r,n){We(t)&&(n=r,r=t,t=[]);var i=n||this,a=ki(cl(t),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?_t(r,i):r),this},e.prototype.selectRange=function(t){var r=this,n={},i=xt(t);return R(i,function(a){var o=r._getStoreDimIndex(a);n[o]=t[a]}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(t,r,n){We(t)&&(n=r,r=t,t=[]),n=n||this;var i=[];return this.each(t,function(){i.push(r&&r.apply(this,arguments))},n),i},e.prototype.map=function(t,r,n,i){var a=n||i||this,o=ki(cl(t),this._getStoreDimIndex,this),s=Gf(this);return s._store=this._store.map(o,a?_t(r,a):r),s},e.prototype.modify=function(t,r,n,i){var a=n||i||this,o=ki(cl(t),this._getStoreDimIndex,this);this._store.modify(o,a?_t(r,a):r)},e.prototype.downSample=function(t,r,n,i){var a=Gf(this);return a._store=this._store.downSample(this._getStoreDimIndex(t),r,n,i),a},e.prototype.lttbDownSample=function(t,r){var n=Gf(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),r),n},e.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},e.prototype.getItemModel=function(t){var r=this.hostModel,n=this.getRawDataItem(t);return new tr(n,r,r&&r.ecModel)},e.prototype.diff=function(t){var r=this;return new kK(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return Vf(t,n)},function(n){return Vf(r,n)})},e.prototype.getVisual=function(t){var r=this._visual;return r&&r[t]},e.prototype.setVisual=function(t,r){this._visual=this._visual||{},ul(t)?oe(this._visual,t):this._visual[t]=r},e.prototype.getItemVisual=function(t,r){var n=this._itemVisuals[t],i=n&&n[r];return i??this.getVisual(r)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(t,r){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var a=i[r];return a==null&&(a=this.getVisual(r),ge(a)?a=a.slice():ul(a)&&(a=oe({},a)),i[r]=a),a},e.prototype.setItemVisual=function(t,r,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,ul(r)?oe(i,r):i[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){ul(t)?oe(this._layout,t):this._layout[t]=r},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,r,n){this._itemLayouts[t]=n?oe(this._itemLayouts[t]||{},r):r},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,r){var n=this.hostModel&&this.hostModel.seriesIndex;q9(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){R(this._graphicEls,function(n,i){n&&t&&t.call(r,n,i)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:ki(this.dimensions,this._getDimInfo,this),this.hostModel)),Zv(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];We(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(Iy(arguments)))})},e.internalField=function(){Wx=function(t){var r=t._invertedIndicesMap;R(r,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=r[i]=new VK(o.categories.length);for(var l=0;l<n.length;l++)n[l]=zx;for(var l=0;l<s.count();l++)n[s.get(a.storeDimIndex,l)]=l}})},fl=function(t,r,n){return Un(t._getCategory(r,n),null)},Vf=function(t,r){var n=t._idList[r];return n==null&&t._idDimIdx!=null&&(n=fl(t,t._idDimIdx,r)),n==null&&(n=GK+r),n},cl=function(t){return ge(t)||(t=t!=null?[t]:[]),t},Gf=function(t){var r=new e(t._schema?t._schema:ki(t.dimensions,t._getDimInfo,t),t.hostModel);return Zv(r,t),r},Zv=function(t,r){R(UK.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(t[n]=r[n])}),t.__wrappedMethods=r.__wrappedMethods,R(YK,function(n){t[n]=Ze(r[n])}),t._calculationInfo=oe({},r._calculationInfo)},Qv=function(t,r){var n=t._nameList,i=t._idList,a=t._nameDimIdx,o=t._idDimIdx,s=n[r],l=i[r];if(s==null&&a!=null&&(n[r]=s=fl(t,a,r)),l==null&&o!=null&&(i[r]=l=fl(t,o,r)),l==null&&s!=null){var u=t._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),i[r]=l}}}(),e}();const mP=qK;function yP(e,t){v0(e)||(e=p0(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],i=Ge(),a=[],o=KK(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&gP(o),l=n===e.dimensionsDefine,u=l?pP(e):vP(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(e,o));for(var c=Ge(f),d=new TE(o),h=0;h<d.length;h++)d[h]=-1;function v(T){var E=d[T];if(E<0){var A=n[T],M=De(A)?A:{name:A},D=new Dc,O=M.name;O!=null&&u.get(O)!=null&&(D.name=D.displayName=O),M.type!=null&&(D.type=M.type),M.displayName!=null&&(D.displayName=M.displayName);var k=a.length;return d[T]=k,D.storeDimIndex=T,a.push(D),D}return a[E]}if(!s)for(var h=0;h<o;h++)v(h);c.each(function(T,E){var A=lr(T).slice();if(A.length===1&&!Te(A[0])&&A[0]<0){c.set(E,!1);return}var M=c.set(E,[]);R(A,function(D,O){var k=Te(D)?u.get(D):D;k!=null&&k<o&&(M[O]=k,g(v(k),E,O))})});var p=0;R(r,function(T){var E,A,M,D;if(Te(T))E=T,D={};else{D=T,E=D.name;var O=D.ordinalMeta;D.ordinalMeta=null,D=oe({},D),D.ordinalMeta=O,A=D.dimsDef,M=D.otherDims,D.name=D.coordDim=D.coordDimIndex=D.dimsDef=D.otherDims=null}var k=c.get(E);if(k!==!1){if(k=lr(k),!k.length)for(var F=0;F<(A&&A.length||1);F++){for(;p<o&&v(p).coordDim!=null;)p++;p<o&&k.push(p++)}R(k,function(j,B){var N=v(j);if(l&&D.type!=null&&(N.type=D.type),g(ft(N,D),E,B),N.name==null&&A){var U=A[B];!De(U)&&(U={name:U}),N.name=N.displayName=U.name,N.defaultTooltip=U.defaultTooltip}M&&ft(N.otherDims,M)})}});function g(T,E,A){lE.get(E)!=null?T.otherDims[E]=A:(T.coordDim=E,T.coordDimIndex=A,i.set(E,!0))}var m=t.generateCoord,y=t.generateCoordCount,_=y!=null;y=m?y||1:0;var b=m||"value";function x(T){T.name==null&&(T.name=T.coordDim)}if(s)R(a,function(T){x(T)}),a.sort(function(T,E){return T.storeDimIndex-E.storeDimIndex});else for(var w=0;w<o;w++){var S=v(w),C=S.coordDim;C==null&&(S.coordDim=XK(b,i,_),S.coordDimIndex=0,(!m||y<=0)&&(S.isExtraCoord=!0),y--),x(S),S.type==null&&(cE(e,w)===Vt.Must||S.isExtraCoord&&(S.otherDims.itemName!=null||S.otherDims.seriesName!=null))&&(S.type="ordinal")}return jK(a),new dP({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function jK(e){for(var t=Ge(),r=0;r<e.length;r++){var n=e[r],i=n.name,a=t.get(i)||0;a>0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function KK(e,t,r,n){var i=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return R(t,function(a){var o;De(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function XK(e,t,r){if(r||t.hasKey(e)){for(var n=0;t.hasKey(e+n);)n++;e+=n}return t.set(e,!0),e}var ZK=function(){function e(t){this.coordSysDims=[],this.axisMap=Ge(),this.categoryAxisMap=Ge(),this.coordSysName=t}return e}();function QK(e){var t=e.get("coordinateSystem"),r=new ZK(t),n=JK[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var JK={cartesian2d:function(e,t,r,n){var i=e.getReferringComponents("xAxis",_n).models[0],a=e.getReferringComponents("yAxis",_n).models[0];t.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),$o(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),$o(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var i=e.getReferringComponents("singleAxis",_n).models[0];t.coordSysDims=["single"],r.set("single",i),$o(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var i=e.getReferringComponents("polar",_n).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),$o(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),$o(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,r,n){t.coordSysDims=["lng","lat"]},parallel:function(e,t,r,n){var i=e.ecModel,a=i.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();R(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),f=o[l];r.set(f,u),$o(u)&&(n.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function $o(e){return e.get("type")==="category"}function eX(e,t,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;tX(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,f,c,d;if(R(a,function(y,_){Te(y)&&(a[_]=y={name:y}),l&&!y.isExtraCoord&&(!n&&!u&&y.ordinalMeta&&(u=y),!f&&y.type!=="ordinal"&&y.type!=="time"&&(!i||i===y.coordDim)&&(f=y))}),f&&!n&&!u&&(n=!0),f){c="__\0ecstackresult_"+e.id,d="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var h=f.coordDim,v=f.type,p=0;R(a,function(y){y.coordDim===h&&p++});var g={name:c,coordDim:h,coordDimIndex:p,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},m={name:d,coordDim:d,coordDimIndex:p+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(d,v),m.storeDimIndex=s.ensureCalculationDimension(c,v)),o.appendCalculationDimension(g),o.appendCalculationDimension(m)):(a.push(g),a.push(m))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:d,stackResultDimension:c}}function tX(e){return!hP(e.schema)}function _P(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function rX(e,t){return _P(e,t)?e.getCalculationInfo("stackResultDimension"):t}function nX(e,t){var r=e.get("coordinateSystem"),n=h0.get(r),i;return t&&t.coordSysDims&&(i=Oe(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var l=s.get("type");o.type=FK(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function iX(e,t,r){var n,i;return r&&R(e,function(a,o){var s=a.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(e[n].otherDims.itemName=0),n}function bP(e,t,r){r=r||{};var n=t.getSourceManager(),i,a=!1;e?(a=!0,i=p0(e)):(i=n.getSource(),a=i.sourceFormat===un);var o=QK(t),s=nX(t,o),l=r.useEncodeDefaulter,u=We(l)?l:l?Dt(V7,s,t):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},c=yP(i,f),d=iX(c.dimensions,r.createInvertedIndices,o),h=a?null:n.getSharedDataStore(c),v=eX(t,{schema:c,store:h}),p=new mP(c,t);p.setCalculationInfo(v);var g=d!=null&&aX(i)?function(m,y,_,b){return b===d?_:this.defaultDimValueGetter(m,y,_,b)}:null;return p.hasItemOption=!1,p.initData(a?i:h,null,g),p}function aX(e){if(e.sourceFormat===un){var t=oX(e.data||[]);return!ge(Gu(t))}}function oX(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var wP=function(){function e(t){this._setting=t||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(t){return this._setting[t]},e.prototype.unionExtent=function(t){var r=this._extent;t[0]<r[0]&&(r[0]=t[0]),t[1]>r[1]&&(r[1]=t[1])},e.prototype.unionExtentFromData=function(t,r){this.unionExtent(t.getApproximateExtent(r))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,r){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(r)||(n[1]=r)},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e}();eh(wP);const Ti=wP;var sX=0,lX=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++sX}return e.createByAxisModel=function(t){var r=t.option,n=r.data,i=n&&Oe(n,uX);return new e({categories:i,needCollect:!i,deduplication:r.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var r,n=this._needCollect;if(!Te(t)&&!n)return t;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=t,r;var i=this._getOrCreateMap();return r=i.get(t),r==null&&(n?(r=this.categories.length,this.categories[r]=t,i.set(t,r)):r=NaN),r},e.prototype._getOrCreateMap=function(){return this._map||(this._map=Ge(this.categories))},e}();function uX(e){return De(e)&&e.value!=null?e.value:e+""}const am=lX;function om(e){return e.type==="interval"||e.type==="log"}function fX(e,t,r,n){var i={},a=e[1]-e[0],o=i.interval=FA(a/t,!0);r!=null&&o<r&&(o=i.interval=r),n!=null&&o>n&&(o=i.interval=n);var s=i.intervalPrecision=xP(o),l=i.niceTickExtent=[It(Math.ceil(e[0]/o)*o,s),It(Math.floor(e[1]/o)*o,s)];return cX(l,e),i}function Jv(e){var t=Math.pow(10,zy(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,It(r*t)}function xP(e){return ui(e)+2}function Vx(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function cX(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),Vx(e,0,t),Vx(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function yh(e,t){return e>=t[0]&&e<=t[1]}function _h(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function bh(e,t){return e*(t[1]-t[0])+t[0]}var SP=function(e){pe(t,e);function t(r){var n=e.call(this,r)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new am({})),ge(i)&&(i=new am({categories:Oe(i,function(a){return De(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return t.prototype.parse=function(r){return r==null?NaN:Te(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},t.prototype.contain=function(r){return r=this.parse(r),yh(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),_h(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(bh(r,this._extent)),this.getRawOrdinalNumber(r)},t.prototype.getTicks=function(){for(var r=[],n=this._extent,i=n[0];i<=n[1];)r.push({value:i}),i++;return r},t.prototype.getMinorTicks=function(r){},t.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o<l;++o){var u=n[o];i[o]=u,a[u]=o}for(var f=0;o<s;++o){for(;a[f]!=null;)f++;i.push(f),a[f]=o}},t.prototype._getTickNumber=function(r){var n=this._ticksByOrdinalNumber;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getRawOrdinalNumber=function(r){var n=this._ordinalNumbersByTick;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getLabel=function(r){if(!this.isBlank()){var n=this.getRawOrdinalNumber(r.value),i=this._ordinalMeta.categories[n];return i==null?"":i+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},t.prototype.isInExtentRange=function(r){return r=this._getTickNumber(r),this._extent[0]<=r&&this._extent[1]>=r},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(Ti);Ti.registerClass(SP);const CP=SP;var Oa=It,TP=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return yh(r,this._extent)},t.prototype.normalize=function(r){return _h(r,this._extent)},t.prototype.scale=function(r){return bh(r,this._extent)},t.prototype.setExtent=function(r,n){var i=this._extent;isNaN(r)||(i[0]=parseFloat(r)),isNaN(n)||(i[1]=parseFloat(n))},t.prototype.unionExtent=function(r){var n=this._extent;r[0]<n[0]&&(n[0]=r[0]),r[1]>n[1]&&(n[1]=r[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=xP(r)},t.prototype.getTicks=function(r){var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;i[0]<a[0]&&(r?s.push({value:Oa(a[0]-n,o)}):s.push({value:i[0]}));for(var u=a[0];u<=a[1]&&(s.push({value:u}),u=Oa(u+n,o),u!==s[s.length-1].value);)if(s.length>l)return[];var f=s.length?s[s.length-1].value:a[1];return i[1]>f&&(r?s.push({value:Oa(f+n,o)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(r){for(var n=this.getTicks(!0),i=[],a=this.getExtent(),o=1;o<n.length;o++){for(var s=n[o],l=n[o-1],u=0,f=[],c=s.value-l.value,d=c/r;u<r-1;){var h=Oa(l.value+(u+1)*d);h>a[0]&&h<a[1]&&f.push(h),u++}i.push(f)}return i},t.prototype.getLabel=function(r,n){if(r==null)return"";var i=n&&n.precision;i==null?i=ui(r.value)||0:i==="auto"&&(i=this._intervalPrecision);var a=Oa(r.value,i,!0);return iE(a)},t.prototype.calcNiceTicks=function(r,n,i){r=r||5;var a=this._extent,o=a[1]-a[0];if(isFinite(o)){o<0&&(o=-o,a.reverse());var s=fX(a,r,n,i);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(r){var n=this._extent;if(n[0]===n[1])if(n[0]!==0){var i=Math.abs(n[0]);r.fixMax||(n[1]+=i/2),n[0]-=i/2}else n[1]=1;var a=n[1]-n[0];isFinite(a)||(n[0]=0,n[1]=1),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval);var o=this._interval;r.fixMin||(n[0]=Oa(Math.floor(n[0]/o)*o)),r.fixMax||(n[1]=Oa(Math.ceil(n[1]/o)*o))},t.prototype.setNiceExtent=function(r,n){this._niceExtent=[r,n]},t.type="interval",t}(Ti);Ti.registerClass(TP);const Ku=TP;var MP=typeof Float32Array<"u",dX=MP?Float32Array:Array;function ep(e){return ge(e)?MP?new Float32Array(e):e:new dX(e)}var hX="__ec_stack_";function E0(e){return e.get("stack")||hX+e.seriesIndex}function P0(e){return e.dim+e.index}function AP(e,t){var r=[];return t.eachSeriesByType(e,function(n){PP(n)&&r.push(n)}),r}function vX(e){var t={};R(e,function(l){var u=l.coordinateSystem,f=u.getBaseAxis();if(!(f.type!=="time"&&f.type!=="value"))for(var c=l.getData(),d=f.dim+"_"+f.index,h=c.getDimensionIndex(c.mapDimension(f.dim)),v=c.getStore(),p=0,g=v.count();p<g;++p){var m=v.get(h,p);t[d]?t[d].push(m):t[d]=[m]}});var r={};for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];if(i){i.sort(function(l,u){return l-u});for(var a=null,o=1;o<i.length;++o){var s=i[o]-i[o-1];s>0&&(a=a===null?s:Math.min(a,s))}r[n]=a}}return r}function EP(e){var t=vX(e),r=[];return R(e,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=t[l],f=Math.abs(o[1]-o[0]),c=a.scale.getExtent(),d=Math.abs(c[1]-c[0]);s=u?f/d*u:f}else{var h=n.getData();s=Math.abs(o[1]-o[0])/h.count()}var v=pt(n.get("barWidth"),s),p=pt(n.get("barMaxWidth"),s),g=pt(n.get("barMinWidth")||(LP(n)?.5:1),s),m=n.get("barGap"),y=n.get("barCategoryGap");r.push({bandWidth:s,barWidth:v,barMaxWidth:p,barMinWidth:g,barGap:m,barCategoryGap:y,axisKey:P0(a),stackId:E0(n)})}),pX(r)}function pX(e){var t={};R(e,function(n,i){var a=n.axisKey,o=n.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[a]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=n.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var c=n.barMaxWidth;c&&(l[u].maxWidth=c);var d=n.barMinWidth;d&&(l[u].minWidth=d);var h=n.barGap;h!=null&&(s.gap=h);var v=n.barCategoryGap;v!=null&&(s.categoryGap=v)});var r={};return R(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=xt(a).length;s=Math.max(35-l*4,15)+"%"}var u=pt(s,o),f=pt(n.gap,1),c=n.remainedWidth,d=n.autoWidthCount,h=(c-u)/(d+(d-1)*f);h=Math.max(h,0),R(a,function(m){var y=m.maxWidth,_=m.minWidth;if(m.width){var b=m.width;y&&(b=Math.min(b,y)),_&&(b=Math.max(b,_)),m.width=b,c-=b+f*b,d--}else{var b=h;y&&y<b&&(b=Math.min(y,c)),_&&_>b&&(b=_),b!==h&&(m.width=b,c-=b+f*b,d--)}}),h=(c-u)/(d+(d-1)*f),h=Math.max(h,0);var v=0,p;R(a,function(m,y){m.width||(m.width=h),p=m,v+=m.width*(1+f)}),p&&(v-=p.width*f);var g=-v/2;R(a,function(m,y){r[i][y]=r[i][y]||{bandWidth:o,offset:g,width:m.width},g+=m.width*(1+f)})}),r}function gX(e,t,r){if(e&&t){var n=e[P0(t)];return n!=null&&r!=null?n[E0(r)]:n}}function mX(e,t){var r=AP(e,t),n=EP(r);R(r,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=E0(i),u=n[P0(s)][l],f=u.offset,c=u.width;a.setLayout({bandWidth:u.bandWidth,offset:f,size:c})})}function yX(e){return{seriesType:e,plan:RE(),reset:function(t){if(PP(t)){var r=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(i.dim)),l=t.get("showBackground",!0),u=r.mapDimension(a.dim),f=r.getCalculationInfo("stackResultDimension"),c=_P(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),d=a.isHorizontal(),h=_X(i,a),v=LP(t),p=t.get("barMinHeight")||0,g=f&&r.getDimensionIndex(f),m=r.getLayout("size"),y=r.getLayout("offset");return{progress:function(_,b){for(var x=_.count,w=v&&ep(x*3),S=v&&l&&ep(x*3),C=v&&ep(x),T=n.master.getRect(),E=d?T.width:T.height,A,M=b.getStore(),D=0;(A=_.next())!=null;){var O=M.get(c?g:o,A),k=M.get(s,A),F=h,j=void 0;c&&(j=+O-M.get(o,A));var B=void 0,N=void 0,U=void 0,re=void 0;if(d){var ae=n.dataToPoint([O,k]);if(c){var me=n.dataToPoint([j,k]);F=me[0]}B=F,N=ae[1]+y,U=ae[0]-F,re=m,Math.abs(U)<p&&(U=(U<0?-1:1)*p)}else{var ae=n.dataToPoint([k,O]);if(c){var me=n.dataToPoint([k,j]);F=me[1]}B=ae[0]+y,N=F,U=m,re=ae[1]-F,Math.abs(re)<p&&(re=(re<=0?-1:1)*p)}v?(w[D]=B,w[D+1]=N,w[D+2]=d?U:re,S&&(S[D]=d?T.x:B,S[D+1]=d?N:T.y,S[D+2]=E),C[A]=A):b.setItemLayout(A,{x:B,y:N,width:U,height:re}),D+=3}v&&b.setLayout({largePoints:w,largeDataIndices:C,largeBackgroundPoints:S,valueAxisHorizontal:d})}}}}}}function PP(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function LP(e){return e.pipelineContext&&e.pipelineContext.large}function _X(e,t){return t.toGlobalCoord(t.dataToCoord(t.type==="log"?1:0))}var bX=function(e,t,r,n){for(;r<n;){var i=r+n>>>1;e[i][1]<t?r=i+1:n=i}return r},DP=function(e){pe(t,e);function t(r){var n=e.call(this,r)||this;return n.type="time",n}return t.prototype.getLabel=function(r){var n=this.getSetting("useUTC");return sh(r.value,Rw[R7(ss(this._minLevelUnit))]||Rw.second,n,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(r,n,i){var a=this.getSetting("useUTC"),o=this.getSetting("locale");return O7(r,n,i,o,a)},t.prototype.getTicks=function(){var r=this._interval,n=this._extent,i=[];if(!r)return i;i.push({value:n[0],level:0});var a=this.getSetting("useUTC"),o=AX(this._minLevelUnit,this._approxInterval,a,n);return i=i.concat(o),i.push({value:n[1],level:0}),i},t.prototype.calcNiceExtent=function(r){var n=this._extent;if(n[0]===n[1]&&(n[0]-=Jr,n[1]+=Jr),n[1]===-1/0&&n[0]===1/0){var i=new Date;n[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),n[0]=n[1]-Jr}this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval)},t.prototype.calcNiceTicks=function(r,n,i){r=r||10;var a=this._extent,o=a[1]-a[0];this._approxInterval=o/r,n!=null&&this._approxInterval<n&&(this._approxInterval=n),i!=null&&this._approxInterval>i&&(this._approxInterval=i);var s=Uf.length,l=Math.min(bX(Uf,this._approxInterval,0,s),s-1);this._interval=Uf[l][1],this._minLevelUnit=Uf[Math.max(l-1,0)][0]},t.prototype.parse=function(r){return bt(r)?r:+_i(r)},t.prototype.contain=function(r){return yh(this.parse(r),this._extent)},t.prototype.normalize=function(r){return _h(this.parse(r),this._extent)},t.prototype.scale=function(r){return bh(r,this._extent)},t.type="time",t}(Ku),Uf=[["second",s0],["minute",l0],["hour",Ul],["quarter-day",Ul*6],["half-day",Ul*12],["day",Jr*1.2],["half-week",Jr*3.5],["week",Jr*7],["month",Jr*31],["quarter",Jr*95],["half-year",Iw/2],["year",Iw]];function wX(e,t,r,n){var i=_i(t),a=_i(r),o=function(v){return Ow(i,v,n)===Ow(a,v,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},f=function(){return u()&&o("hour")},c=function(){return f()&&o("minute")},d=function(){return c()&&o("second")},h=function(){return d()&&o("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return f();case"minute":return c();case"second":return d();case"millisecond":return h()}}function xX(e,t){return e/=Jr,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function SX(e){var t=30*Jr;return e/=t,e>6?6:e>3?3:e>2?2:1}function CX(e){return e/=Ul,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function Gx(e,t){return e/=t?l0:s0,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function TX(e){return FA(e,!0)}function MX(e,t,r){var n=new Date(e);switch(ss(t)){case"year":case"month":n[Q2(r)](0);case"day":n[J2(r)](1);case"hour":n[eE(r)](0);case"minute":n[tE(r)](0);case"second":n[rE(r)](0),n[nE(r)](0)}return n.getTime()}function AX(e,t,r,n){var i=1e4,a=X2,o=0;function s(E,A,M,D,O,k,F){for(var j=new Date(A),B=A,N=j[D]();B<M&&B<=n[1];)F.push({value:B}),N+=E,j[O](N),B=j.getTime();F.push({value:B,notAdd:!0})}function l(E,A,M){var D=[],O=!A.length;if(!wX(ss(E),n[0],n[1],r)){O&&(A=[{value:MX(new Date(n[0]),E,r)},{value:n[1]}]);for(var k=0;k<A.length-1;k++){var F=A[k].value,j=A[k+1].value;if(F!==j){var B=void 0,N=void 0,U=void 0,re=!1;switch(E){case"year":B=Math.max(1,Math.round(t/Jr/365)),N=u0(r),U=k7(r);break;case"half-year":case"quarter":case"month":B=SX(t),N=ls(r),U=Q2(r);break;case"week":case"half-week":case"day":B=xX(t),N=lh(r),U=J2(r),re=!0;break;case"half-day":case"quarter-day":case"hour":B=CX(t),N=xu(r),U=eE(r);break;case"minute":B=Gx(t,!0),N=uh(r),U=tE(r);break;case"second":B=Gx(t,!1),N=fh(r),U=rE(r);break;case"millisecond":B=TX(t),N=ch(r),U=nE(r);break}s(B,F,j,N,U,re,D),E==="year"&&M.length>1&&k===0&&M.unshift({value:M[0].value-B})}}for(var k=0;k<D.length;k++)M.push(D[k]);return D}}for(var u=[],f=[],c=0,d=0,h=0;h<a.length&&o++<i;++h){var v=ss(a[h]);if(I7(a[h])){l(a[h],u[u.length-1]||[],f);var p=a[h+1]?ss(a[h+1]):null;if(v!==p){if(f.length){d=c,f.sort(function(E,A){return E.value-A.value});for(var g=[],m=0;m<f.length;++m){var y=f[m].value;(m===0||f[m-1].value!==y)&&(g.push(f[m]),y>=n[0]&&y<=n[1]&&c++)}var _=(n[1]-n[0])/t;if(c>_*1.5&&d>_/1.5||(u.push(g),c>_||e===a[h]))break}f=[]}}}for(var b=$t(Oe(u,function(E){return $t(E,function(A){return A.value>=n[0]&&A.value<=n[1]&&!A.notAdd})}),function(E){return E.length>0}),x=[],w=b.length-1,h=0;h<b.length;++h)for(var S=b[h],C=0;C<S.length;++C)x.push({value:S[C].value,level:w-h});x.sort(function(E,A){return E.value-A.value});for(var T=[],h=0;h<x.length;++h)(h===0||x[h].value!==x[h-1].value)&&T.push(x[h]);return T}Ti.registerClass(DP);const EX=DP;var Ux=Ti.prototype,Xl=Ku.prototype,PX=It,LX=Math.floor,DX=Math.ceil,Yf=Math.pow,cn=Math.log,L0=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new Ku,r._interval=0,r}return t.prototype.getTicks=function(r){var n=this._originalScale,i=this._extent,a=n.getExtent(),o=Xl.getTicks.call(this,r);return Oe(o,function(s){var l=s.value,u=It(Yf(this.base,l));return u=l===i[0]&&this._fixMin?qf(u,a[0]):u,u=l===i[1]&&this._fixMax?qf(u,a[1]):u,{value:u}},this)},t.prototype.setExtent=function(r,n){var i=cn(this.base);r=cn(Math.max(0,r))/i,n=cn(Math.max(0,n))/i,Xl.setExtent.call(this,r,n)},t.prototype.getExtent=function(){var r=this.base,n=Ux.getExtent.call(this);n[0]=Yf(r,n[0]),n[1]=Yf(r,n[1]);var i=this._originalScale,a=i.getExtent();return this._fixMin&&(n[0]=qf(n[0],a[0])),this._fixMax&&(n[1]=qf(n[1],a[1])),n},t.prototype.unionExtent=function(r){this._originalScale.unionExtent(r);var n=this.base;r[0]=cn(r[0])/cn(n),r[1]=cn(r[1])/cn(n),Ux.unionExtent.call(this,r)},t.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},t.prototype.calcNiceTicks=function(r){r=r||10;var n=this._extent,i=n[1]-n[0];if(!(i===1/0||i<=0)){var a=PU(i),o=r/i*a;for(o<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var s=[It(DX(n[0]/a)*a),It(LX(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){Xl.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return r=cn(r)/cn(this.base),yh(r,this._extent)},t.prototype.normalize=function(r){return r=cn(r)/cn(this.base),_h(r,this._extent)},t.prototype.scale=function(r){return r=bh(r,this._extent),Yf(this.base,r)},t.type="log",t}(Ti),IP=L0.prototype;IP.getMinorTicks=Xl.getMinorTicks;IP.getLabel=Xl.getLabel;function qf(e,t){return PX(e,ui(t))}Ti.registerClass(L0);const IX=L0;var RX=function(){function e(t,r,n){this._prepareParams(t,r,n)}return e.prototype._prepareParams=function(t,r,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&r.getNeedCrossZero&&r.getNeedCrossZero();var a=this._modelMinRaw=r.get("min",!0);We(a)?this._modelMinNum=jf(t,a({min:n[0],max:n[1]})):a!=="dataMin"&&(this._modelMinNum=jf(t,a));var o=this._modelMaxRaw=r.get("max",!0);if(We(o)?this._modelMaxNum=jf(t,o({min:n[0],max:n[1]})):o!=="dataMax"&&(this._modelMaxNum=jf(t,o)),i)this._axisDataLen=r.getCategories().length;else{var s=r.get("boundaryGap"),l=ge(s)?s:[s||0,s||0];typeof l[0]=="boolean"||typeof l[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[ra(l[0],1),ra(l[1],1)]}},e.prototype.calculate=function(){var t=this._isOrdinal,r=this._dataMin,n=this._dataMax,i=this._axisDataLen,a=this._boundaryGapInner,o=t?null:n-r||Math.abs(r),s=this._modelMinRaw==="dataMin"?r:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,u=s!=null,f=l!=null;s==null&&(s=t?i?0:NaN:r-a[0]*o),l==null&&(l=t?i?i-1:NaN:n+a[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var c=jc(s)||jc(l)||t&&!i;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var d=this._determinedMin,h=this._determinedMax;return d!=null&&(s=d,u=!0),h!=null&&(l=h,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:c}},e.prototype.modifyDataMinMax=function(t,r){this[kX[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=OX[t];this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),OX={min:"_determinedMin",max:"_determinedMax"},kX={min:"_dataMin",max:"_dataMax"};function NX(e,t,r){var n=e.rawExtentInfo;return n||(n=new RX(e,t,r),e.rawExtentInfo=n,n)}function jf(e,t){return t==null?null:jc(t)?NaN:e.parse(t)}function RP(e,t){var r=e.type,n=NX(e,t,e.getExtent()).calculate();e.setBlank(n.isBlank);var i=n.min,a=n.max,o=t.ecModel;if(o&&r==="time"){var s=AP("bar",o),l=!1;if(R(s,function(c){l=l||c.getBaseAxis()===t.axis}),l){var u=EP(s),f=BX(i,a,t,u);i=f.min,a=f.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function BX(e,t,r,n){var i=r.axis.getExtent(),a=i[1]-i[0],o=gX(n,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;R(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;R(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=t-e,c=1-(s+l)/a,d=f/c-f;return t+=d*(l/u),e-=d*(s/u),{min:e,max:t}}function Yx(e,t){var r=t,n=RP(e,r),i=n.extent,a=r.get("splitNumber");e instanceof IX&&(e.base=r.get("logBase"));var o=e.type,s=r.get("interval"),l=o==="interval"||o==="time";e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?r.get("minInterval"):null,maxInterval:l?r.get("maxInterval"):null}),s!=null&&e.setInterval&&e.setInterval(s)}function FX(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new CP({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new EX({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(Ti.getClass(t)||Ku)}}function $X(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function Xu(e){var t=e.getLabelModel().get("formatter"),r=e.type==="category"?e.scale.getExtent()[0]:null;return e.scale.type==="time"?function(n){return function(i,a){return e.scale.getFormattedLabel(i,a,n)}}(t):Te(t)?function(n){return function(i){var a=e.scale.getLabel(i),o=n.replace("{value}",a??"");return o}}(t):We(t)?function(n){return function(i,a){return r!=null&&(a=i.value-r),n(D0(e,i),a,i.level!=null?{level:i.level}:null)}}(t):function(n){return e.scale.getLabel(n)}}function D0(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function HX(e){var t=e.model,r=e.scale;if(!(!t.get(["axisLabel","show"])||r.isBlank())){var n,i,a=r.getExtent();r instanceof CP?i=r.count():(n=r.getTicks(),i=n.length);var o=e.getLabelModel(),s=Xu(e),l,u=1;i>40&&(u=Math.ceil(i/40));for(var f=0;f<i;f+=u){var c=n?n[f]:{value:a[0]+f},d=s(c,f),h=o.getTextRect(d),v=zX(h,o.get("rotate")||0);l?l.union(v):l=v}return l}}function zX(e,t){var r=t*Math.PI/180,n=e.width,i=e.height,a=n*Math.abs(Math.cos(r))+Math.abs(i*Math.sin(r)),o=n*Math.abs(Math.sin(r))+Math.abs(i*Math.cos(r)),s=new tt(e.x,e.y,a,o);return s}function I0(e){var t=e.get("interval");return t??"auto"}function OP(e){return e.type==="category"&&I0(e.getLabelModel())===0}function WX(e,t){var r={};return R(e.mapDimensionsAll(t),function(n){r[rX(e,n)]=!0}),xt(r)}var VX=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),qx=[],GX={registerPreprocessor:uP,registerProcessor:fP,registerPostInit:EK,registerPostUpdate:PK,registerUpdateLifecycle:M0,registerAction:Hs,registerCoordinateSystem:LK,registerLayout:DK,registerVisual:So,registerTransform:RK,registerLoading:cP,registerMap:IK,registerImpl:uK,PRIORITY:xK,ComponentModel:wt,ComponentView:bi,SeriesModel:po,ChartView:ao,registerComponentModel:function(e){wt.registerClass(e)},registerComponentView:function(e){bi.registerClass(e)},registerSeriesModel:function(e){po.registerClass(e)},registerChartView:function(e){ao.registerClass(e)},registerSubTypeDefaulter:function(e,t){wt.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){xU(e,t)}};function ia(e){if(ge(e)){R(e,function(t){ia(t)});return}it(qx,e)>=0||(qx.push(e),We(e)&&(e={install:e}),e.install(GX))}var Pu=Tt();function UX(e){return e.type==="category"?qX(e):KX(e)}function YX(e,t){return e.type==="category"?jX(e,t):{ticks:Oe(e.scale.getTicks(),function(r){return r.value})}}function qX(e){var t=e.getLabelModel(),r=kP(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function kP(e,t){var r=NP(e,"labels"),n=I0(t),i=BP(r,n);if(i)return i;var a,o;return We(n)?a=HP(e,n):(o=n==="auto"?XX(e):n,a=$P(e,o)),FP(r,n,{labels:a,labelCategoryInterval:o})}function jX(e,t){var r=NP(e,"ticks"),n=I0(t),i=BP(r,n);if(i)return i;var a,o;if((!t.get("show")||e.scale.isBlank())&&(a=[]),We(n))a=HP(e,n,!0);else if(n==="auto"){var s=kP(e,e.getLabelModel());o=s.labelCategoryInterval,a=Oe(s.labels,function(l){return l.tickValue})}else o=n,a=$P(e,o,!0);return FP(r,n,{ticks:a,tickCategoryInterval:o})}function KX(e){var t=e.scale.getTicks(),r=Xu(e);return{labels:Oe(t,function(n,i){return{level:n.level,formattedLabel:r(n,i),rawLabel:e.scale.getLabel(n),tickValue:n.value}})}}function NP(e,t){return Pu(e)[t]||(Pu(e)[t]=[])}function BP(e,t){for(var r=0;r<e.length;r++)if(e[r].key===t)return e[r].value}function FP(e,t,r){return e.push({key:t,value:r}),r}function XX(e){var t=Pu(e).autoInterval;return t??(Pu(e).autoInterval=e.calculateCategoryInterval())}function ZX(e){var t=QX(e),r=Xu(e),n=(t.axisRotate-t.labelRotate)/180*Math.PI,i=e.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),f=Math.abs(u*Math.cos(n)),c=Math.abs(u*Math.sin(n)),d=0,h=0;l<=a[1];l+=s){var v=0,p=0,g=Fy(r({value:l}),t.font,"center","top");v=g.width*1.3,p=g.height*1.3,d=Math.max(d,v,7),h=Math.max(h,p,7)}var m=d/f,y=h/c;isNaN(m)&&(m=1/0),isNaN(y)&&(y=1/0);var _=Math.max(0,Math.floor(Math.min(m,y))),b=Pu(e.model),x=e.getExtent(),w=b.lastAutoInterval,S=b.lastTickCount;return w!=null&&S!=null&&Math.abs(w-_)<=1&&Math.abs(S-o)<=1&&w>_&&b.axisExtent0===x[0]&&b.axisExtent1===x[1]?_=w:(b.lastTickCount=o,b.lastAutoInterval=_,b.axisExtent0=x[0],b.axisExtent1=x[1]),_}function QX(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function $P(e,t,r){var n=Xu(e),i=e.scale,a=i.getExtent(),o=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=a[0],f=i.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var c=OP(e),d=o.get("showMinLabel")||c,h=o.get("showMaxLabel")||c;d&&u!==a[0]&&p(a[0]);for(var v=u;v<=a[1];v+=l)p(v);h&&v-l!==a[1]&&p(a[1]);function p(g){var m={value:g};s.push(r?g:{formattedLabel:n(m),rawLabel:i.getLabel(m),tickValue:g})}return s}function HP(e,t,r){var n=e.scale,i=Xu(e),a=[];return R(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&a.push(r?l:{formattedLabel:i(o),rawLabel:s,tickValue:l})}),a}var jx=[0,1],JX=function(){function e(t,r,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=r,this._extent=n||[0,0]}return e.prototype.contain=function(t){var r=this._extent,n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return t>=n&&t<=i},e.prototype.containData=function(t){return this.scale.contain(t)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return TU(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,r){var n=this._extent;n[0]=t,n[1]=r},e.prototype.dataToCoord=function(t,r){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(n=n.slice(),Kx(n,i.count())),Eg(t,jx,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),Kx(n,i.count()));var a=Eg(t,n,jx,r);return this.scale.scale(a)},e.prototype.pointToData=function(t,r){},e.prototype.getTicksCoords=function(t){t=t||{};var r=t.tickModel||this.getTickModel(),n=YX(this,r),i=n.ticks,a=Oe(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return eZ(this,a,o,t.clamp),a},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),r=t.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),i=Oe(n,function(a){return Oe(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},e.prototype.getViewLabels=function(){return UX(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var t=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},e.prototype.calculateCategoryInterval=function(){return ZX(this)},e}();function Kx(e,t){var r=e[1]-e[0],n=t,i=r/n/2;e[0]+=i,e[1]-=i}function eZ(e,t,r,n){var i=t.length;if(!e.onBand||r||!i)return;var a=e.getExtent(),o,s;if(i===1)t[0].coord=a[0],o=t[1]={coord:a[0]};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;R(t,function(h){h.coord-=u/2});var f=e.scale.getExtent();s=1+f[1]-t[i-1].tickValue,o={coord:t[i-1].coord+u*s},t.push(o)}var c=a[0]>a[1];d(t[0].coord,a[0])&&(n?t[0].coord=a[0]:t.shift()),n&&d(a[0],t[0].coord)&&t.unshift({coord:a[0]}),d(a[1],o.coord)&&(n?o.coord=a[1]:t.pop()),n&&d(o.coord,a[1])&&t.push({coord:a[1]});function d(h,v){return h=It(h),v=It(v),c?h>v:h<v}}const tZ=JX;var dl=Math.PI*2,ka=ho.CMD,rZ=["top","right","bottom","left"];function nZ(e,t,r,n,i){var a=r.width,o=r.height;switch(e){case"top":n.set(r.x+a/2,r.y-t),i.set(0,-1);break;case"bottom":n.set(r.x+a/2,r.y+o+t),i.set(0,1);break;case"left":n.set(r.x-t,r.y+o/2),i.set(-1,0);break;case"right":n.set(r.x+a+t,r.y+o/2),i.set(1,0);break}}function iZ(e,t,r,n,i,a,o,s,l){o-=e,s-=t;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var f=o*r+e,c=s*r+t;if(Math.abs(n-i)%dl<1e-4)return l[0]=f,l[1]=c,u-r;if(a){var d=n;n=Yi(i),i=Yi(d)}else n=Yi(n),i=Yi(i);n>i&&(i+=dl);var h=Math.atan2(s,o);if(h<0&&(h+=dl),h>=n&&h<=i||h+dl>=n&&h+dl<=i)return l[0]=f,l[1]=c,u-r;var v=r*Math.cos(n)+e,p=r*Math.sin(n)+t,g=r*Math.cos(i)+e,m=r*Math.sin(i)+t,y=(v-o)*(v-o)+(p-s)*(p-s),_=(g-o)*(g-o)+(m-s)*(m-s);return y<_?(l[0]=v,l[1]=p,Math.sqrt(y)):(l[0]=g,l[1]=m,Math.sqrt(_))}function pd(e,t,r,n,i,a,o,s){var l=i-e,u=a-t,f=r-e,c=n-t,d=Math.sqrt(f*f+c*c);f/=d,c/=d;var h=l*f+u*c,v=h/d;s&&(v=Math.min(Math.max(v,0),1)),v*=d;var p=o[0]=e+v*f,g=o[1]=t+v*c;return Math.sqrt((p-i)*(p-i)+(g-a)*(g-a))}function zP(e,t,r,n,i,a,o){r<0&&(e=e+r,r=-r),n<0&&(t=t+n,n=-n);var s=e+r,l=t+n,u=o[0]=Math.min(Math.max(i,e),s),f=o[1]=Math.min(Math.max(a,t),l);return Math.sqrt((u-i)*(u-i)+(f-a)*(f-a))}var gn=[];function aZ(e,t,r){var n=zP(t.x,t.y,t.width,t.height,e.x,e.y,gn);return r.set(gn[0],gn[1]),n}function oZ(e,t,r){for(var n=0,i=0,a=0,o=0,s,l,u=1/0,f=t.data,c=e.x,d=e.y,h=0;h<f.length;){var v=f[h++];h===1&&(n=f[h],i=f[h+1],a=n,o=i);var p=u;switch(v){case ka.M:a=f[h++],o=f[h++],n=a,i=o;break;case ka.L:p=pd(n,i,f[h],f[h+1],c,d,gn,!0),n=f[h++],i=f[h++];break;case ka.C:p=SA(n,i,f[h++],f[h++],f[h++],f[h++],f[h],f[h+1],c,d,gn),n=f[h++],i=f[h++];break;case ka.Q:p=TA(n,i,f[h++],f[h++],f[h],f[h+1],c,d,gn),n=f[h++],i=f[h++];break;case ka.A:var g=f[h++],m=f[h++],y=f[h++],_=f[h++],b=f[h++],x=f[h++];h+=1;var w=!!(1-f[h++]);s=Math.cos(b)*y+g,l=Math.sin(b)*_+m,h<=1&&(a=s,o=l);var S=(c-g)*_/y+g;p=iZ(g,m,_,b,b+x,w,S,d,gn),n=Math.cos(b+x)*y+g,i=Math.sin(b+x)*_+m;break;case ka.R:a=n=f[h++],o=i=f[h++];var C=f[h++],T=f[h++];p=zP(a,o,C,T,c,d,gn);break;case ka.Z:p=pd(n,i,a,o,c,d,gn,!0),n=a,i=o;break}p<u&&(u=p,r.set(gn[0],gn[1]))}return u}var bn=new ke,lt=new ke,Mt=new ke,Vn=new ke,Fn=new ke;function Xx(e,t){if(e){var r=e.getTextGuideLine(),n=e.getTextContent();if(n&&r){var i=e.textGuideLineConfig||{},a=[[0,0],[0,0],[0,0]],o=i.candidates||rZ,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var l=1/0,u=i.anchor,f=e.getComputedTransform(),c=f&&Qd([],f),d=t.get("length2")||0;u&&Mt.copy(u);for(var h=0;h<o.length;h++){var v=o[h];nZ(v,0,s,bn,Vn),ke.scaleAndAdd(lt,bn,Vn,d),lt.transform(c);var p=e.getBoundingRect(),g=u?u.distance(lt):e instanceof ct?oZ(lt,e.path,Mt):aZ(lt,p,Mt);g<l&&(l=g,lt.transform(f),Mt.transform(f),Mt.toArray(a[0]),lt.toArray(a[1]),bn.toArray(a[2]))}WP(a,t.get("minTurnAngle")),r.setShape({points:a})}}}var gd=[],or=new ke;function WP(e,t){if(t<=180&&t>0){t=t/180*Math.PI,bn.fromArray(e[0]),lt.fromArray(e[1]),Mt.fromArray(e[2]),ke.sub(Vn,bn,lt),ke.sub(Fn,Mt,lt);var r=Vn.len(),n=Fn.len();if(!(r<.001||n<.001)){Vn.scale(1/r),Fn.scale(1/n);var i=Vn.dot(Fn),a=Math.cos(t);if(a<i){var o=pd(lt.x,lt.y,Mt.x,Mt.y,bn.x,bn.y,gd,!1);or.fromArray(gd),or.scaleAndAdd(Fn,o/Math.tan(Math.PI-t));var s=Mt.x!==lt.x?(or.x-lt.x)/(Mt.x-lt.x):(or.y-lt.y)/(Mt.y-lt.y);if(isNaN(s))return;s<0?ke.copy(or,lt):s>1&&ke.copy(or,Mt),or.toArray(e[1])}}}}function sZ(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,bn.fromArray(e[0]),lt.fromArray(e[1]),Mt.fromArray(e[2]),ke.sub(Vn,lt,bn),ke.sub(Fn,Mt,lt);var n=Vn.len(),i=Fn.len();if(!(n<.001||i<.001)){Vn.scale(1/n),Fn.scale(1/i);var a=Vn.dot(t),o=Math.cos(r);if(a<o){var s=pd(lt.x,lt.y,Mt.x,Mt.y,bn.x,bn.y,gd,!1);or.fromArray(gd);var l=Math.PI/2,u=Math.acos(Fn.dot(t)),f=l+u-r;if(f>=l)ke.copy(or,Mt);else{or.scaleAndAdd(Fn,s/Math.tan(Math.PI/2-f));var c=Mt.x!==lt.x?(or.x-lt.x)/(Mt.x-lt.x):(or.y-lt.y)/(Mt.y-lt.y);if(isNaN(c))return;c<0?ke.copy(or,lt):c>1&&ke.copy(or,Mt)}or.toArray(e[1])}}}}function Zx(e,t,r,n){var i=r==="normal",a=i?e:e.ensureState(r);a.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();i?e.useStyle(s):a.style=s}function lZ(e,t){var r=t.smooth,n=t.points;if(n)if(e.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var i=hg(n[0],n[1]),a=hg(n[1],n[2]);if(!i||!a){e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*r,s=jh([],n[1],n[0],o/i),l=jh([],n[1],n[2],o/a),u=jh([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var f=1;f<n.length;f++)e.lineTo(n[f][0],n[f][1])}function VP(e,t,r){var n=e.getTextGuideLine(),i=e.getTextContent();if(!i){n&&e.removeTextGuideLine();return}for(var a=t.normal,o=a.get("show"),s=i.ignore,l=0;l<nd.length;l++){var u=nd[l],f=t[u],c=u==="normal";if(f){var d=f.get("show"),h=c?s:je(i.states[u]&&i.states[u].ignore,s);if(h||!je(d,o)){var v=c?n:n&&n.states[u];v&&(v.ignore=!0);continue}n||(n=new ih,e.setTextGuideLine(n),!c&&(s||!o)&&Zx(n,!0,"normal",t.normal),e.stateProxy&&(n.stateProxy=e.stateProxy)),Zx(n,!1,u,f)}}if(n){ft(n.style,r),n.style.fill=null;var p=a.get("showAbove"),g=e.textGuideLineConfig=e.textGuideLineConfig||{};g.showAbove=p||!1,n.buildPath=lZ}}function GP(e,t){t=t||"labelLine";for(var r={normal:e.getModel(t)},n=0;n<jn.length;n++){var i=jn[n];r[i]=e.getModel([i,t])}return r}function UP(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];if(!n.defaultAttr.ignore){var i=n.label,a=i.getComputedTransform(),o=i.getBoundingRect(),s=!a||a[1]<1e-5&&a[2]<1e-5,l=i.style.margin||0,u=o.clone();u.applyTransform(a),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var f=s?new id(o,a):null;t.push({label:i,labelLine:n.labelLine,rect:u,localRect:o,obb:f,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:a})}}return t}function YP(e,t,r,n,i,a){var o=e.length;if(o<2)return;e.sort(function(C,T){return C.rect[t]-T.rect[t]});for(var s=0,l,u=!1,f=0,c=0;c<o;c++){var d=e[c],h=d.rect;l=h[t]-s,l<0&&(h[t]-=l,d.label[t]-=l,u=!0);var v=Math.max(-l,0);f+=v,s=h[t]+h[r]}f>0&&a&&x(-f/o,0,o);var p=e[0],g=e[o-1],m,y;_(),m<0&&w(-m,.8),y<0&&w(y,.8),_(),b(m,y,1),b(y,m,-1),_(),m<0&&S(-m),y<0&&S(y);function _(){m=p.rect[t]-n,y=i-g.rect[t]-g.rect[r]}function b(C,T,E){if(C<0){var A=Math.min(T,-C);if(A>0){x(A*E,0,o);var M=A+C;M<0&&w(-M*E,1)}else w(-C*E,1)}}function x(C,T,E){C!==0&&(u=!0);for(var A=T;A<E;A++){var M=e[A],D=M.rect;D[t]+=C,M.label[t]+=C}}function w(C,T){for(var E=[],A=0,M=1;M<o;M++){var D=e[M-1].rect,O=Math.max(e[M].rect[t]-D[t]-D[r],0);E.push(O),A+=O}if(A){var k=Math.min(Math.abs(C)/A,T);if(C>0)for(var M=0;M<o-1;M++){var F=E[M]*k;x(F,0,M+1)}else for(var M=o-1;M>0;M--){var F=E[M-1]*k;x(-F,M,o)}}}function S(C){var T=C<0?-1:1;C=Math.abs(C);for(var E=Math.ceil(C/(o-1)),A=0;A<o-1;A++)if(T>0?x(E,0,A+1):x(-E,o-A-1,o),C-=E,C<=0)return}return u}function uZ(e,t,r,n){return YP(e,"x","width",t,r,n)}function qP(e,t,r,n){return YP(e,"y","height",t,r,n)}function jP(e){var t=[];e.sort(function(p,g){return g.priority-p.priority});var r=new tt(0,0,0,0);function n(p){if(!p.ignore){var g=p.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}p.ignore=!0}for(var i=0;i<e.length;i++){var a=e[i],o=a.axisAligned,s=a.localRect,l=a.transform,u=a.label,f=a.labelLine;r.copy(a.rect),r.width-=.1,r.height-=.1,r.x+=.05,r.y+=.05;for(var c=a.obb,d=!1,h=0;h<t.length;h++){var v=t[h];if(r.intersect(v.rect)){if(o&&v.axisAligned){d=!0;break}if(v.obb||(v.obb=new id(v.localRect,v.transform)),c||(c=new id(s,l)),c.intersect(v.obb)){d=!0;break}}}d?(n(u),f&&n(f)):(u.attr("ignore",a.defaultAttr.ignore),f&&f.attr("ignore",a.defaultAttr.labelGuideIgnore),t.push(a))}}function fZ(e){if(e){for(var t=[],r=0;r<e.length;r++)t.push(e[r].slice());return t}}function cZ(e,t){var r=e.label,n=t&&t.getTextGuideLine();return{dataIndex:e.dataIndex,dataType:e.dataType,seriesIndex:e.seriesModel.seriesIndex,text:e.label.style.text,rect:e.hostRect,labelRect:e.rect,align:r.style.align,verticalAlign:r.style.verticalAlign,labelLinePoints:fZ(n&&n.shape.points)}}var Qx=["align","verticalAlign","width","height","fontSize"],Pr=new Jd,tp=Tt(),dZ=Tt();function Kf(e,t,r){for(var n=0;n<r.length;n++){var i=r[n];t[i]!=null&&(e[i]=t[i])}}var Xf=["x","y","rotation"],hZ=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(t,r,n,i,a){var o=i.style,s=i.__hostTarget,l=s.textConfig||{},u=i.getComputedTransform(),f=i.getBoundingRect().plain();tt.applyTransform(f,f,u),u?Pr.setLocalTransform(u):(Pr.x=Pr.y=Pr.rotation=Pr.originX=Pr.originY=0,Pr.scaleX=Pr.scaleY=1);var c=i.__hostTarget,d;if(c){d=c.getBoundingRect().plain();var h=c.getComputedTransform();tt.applyTransform(d,d,h)}var v=d&&c.getTextGuideLine();this._labelList.push({label:i,labelLine:v,seriesModel:n,dataIndex:t,dataType:r,layoutOption:a,computedLayoutOption:null,rect:f,hostRect:d,priority:d?d.width*d.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:v&&v.ignore,x:Pr.x,y:Pr.y,scaleX:Pr.scaleX,scaleY:Pr.scaleY,rotation:Pr.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:i.cursor,attachedPos:l.position,attachedRot:l.rotation}})},e.prototype.addLabelsOfSeries=function(t){var r=this;this._chartViewList.push(t);var n=t.__model,i=n.get("labelLayout");(We(i)||xt(i).length)&&t.group.traverse(function(a){if(a.ignore)return!0;var o=a.getTextContent(),s=ut(a);o&&!o.disableLabelLayout&&r._addLabel(s.dataIndex,s.dataType,n,o,i)})},e.prototype.updateLayoutConfig=function(t){var r=t.getWidth(),n=t.getHeight();function i(_,b){return function(){Xx(_,b)}}for(var a=0;a<this._labelList.length;a++){var o=this._labelList[a],s=o.label,l=s.__hostTarget,u=o.defaultAttr,f=void 0;We(o.layoutOption)?f=o.layoutOption(cZ(o,l)):f=o.layoutOption,f=f||{},o.computedLayoutOption=f;var c=Math.PI/180;l&&l.setTextConfig({local:!1,position:f.x!=null||f.y!=null?null:u.attachedPos,rotation:f.rotate!=null?f.rotate*c:u.attachedRot,offset:[f.dx||0,f.dy||0]});var d=!1;if(f.x!=null?(s.x=pt(f.x,r),s.setStyle("x",0),d=!0):(s.x=u.x,s.setStyle("x",u.style.x)),f.y!=null?(s.y=pt(f.y,n),s.setStyle("y",0),d=!0):(s.y=u.y,s.setStyle("y",u.style.y)),f.labelLinePoints){var h=l.getTextGuideLine();h&&(h.setShape({points:f.labelLinePoints}),d=!1)}var v=tp(s);v.needsUpdateLabelLine=d,s.rotation=f.rotate!=null?f.rotate*c:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var p=0;p<Qx.length;p++){var g=Qx[p];s.setStyle(g,f[g]!=null?f[g]:u.style[g])}if(f.draggable){if(s.draggable=!0,s.cursor="move",l){var m=o.seriesModel;if(o.dataIndex!=null){var y=o.seriesModel.getData(o.dataType);m=y.getItemModel(o.dataIndex)}s.on("drag",i(l,m.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},e.prototype.layout=function(t){var r=t.getWidth(),n=t.getHeight(),i=UP(this._labelList),a=$t(i,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=$t(i,function(l){return l.layoutOption.moveOverlap==="shiftY"});uZ(a,0,r),qP(o,0,n);var s=$t(i,function(l){return l.layoutOption.hideOverlap});jP(s)},e.prototype.processLabelsOverall=function(){var t=this;R(this._chartViewList,function(r){var n=r.__model,i=r.ignoreLabelLineUpdate,a=n.isAnimationEnabled();r.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!i,l=o.getTextContent();!s&&l&&(s=tp(l).needsUpdateLabelLine),s&&t._updateLabelLine(o,n),a&&t._animateLabels(o,n)})})},e.prototype._updateLabelLine=function(t,r){var n=t.getTextContent(),i=ut(t),a=i.dataIndex;if(n&&a!=null){var o=r.getData(i.dataType),s=o.getItemModel(a),l={},u=o.getItemVisual(a,"style"),f=o.getVisual("drawType");l.stroke=u[f];var c=s.getModel("labelLine");VP(t,GP(s),l),Xx(t,c)}},e.prototype._animateLabels=function(t,r){var n=t.getTextContent(),i=t.getTextGuideLine();if(n&&(t.forceLabelAnimation||!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!os(t))){var a=tp(n),o=a.oldLayout,s=ut(t),l=s.dataIndex,u={x:n.x,y:n.y,rotation:n.rotation},f=r.getData(s.dataType);if(o){n.attr(o);var d=t.prevStates;d&&(it(d,"select")>=0&&n.attr(a.oldLayoutSelect),it(d,"emphasis")>=0&&n.attr(a.oldLayoutEmphasis)),Mr(n,u,r,l)}else if(n.attr(u),!ju(n).valueAnimation){var c=je(n.style.opacity,1);n.style.opacity=0,Br(n,{style:{opacity:c}},r,l)}if(a.oldLayout=u,n.states.select){var h=a.oldLayoutSelect={};Kf(h,u,Xf),Kf(h,n.states.select,Xf)}if(n.states.emphasis){var v=a.oldLayoutEmphasis={};Kf(v,u,Xf),Kf(v,n.states.emphasis,Xf)}g7(n,l,f,r,r)}if(i&&!i.ignore&&!i.invisible){var a=dZ(i),o=a.oldLayout,p={points:i.shape.points};o?(i.attr({shape:o}),Mr(i,{shape:p},r)):(i.setShape(p),i.style.strokePercent=0,Br(i,{style:{strokePercent:1}},r)),a.oldLayout=p}},e}();const vZ=hZ;var rp=Tt();function pZ(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){var i=rp(r).labelManager;i||(i=rp(r).labelManager=new vZ),i.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(t,r,n){var i=rp(r).labelManager;n.updatedSeries.forEach(function(a){i.addLabelsOfSeries(r.getViewOfSeriesModel(a))}),i.updateLayoutConfig(r),i.layout(r),i.processLabelsOverall()})}function gZ(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=Es(e,t,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o<r.length;o++)a.push(Es(e,t,r[o]));return a.join(" ")}}function mZ(e,t){var r=e.mapDimensionsAll("defaultedLabel");if(!ge(t))return t+"";for(var n=[],i=0;i<r.length;i++){var a=e.getDimensionIndex(r[i]);a>=0&&n.push(t[a])}return n.join(" ")}function yZ(e,t,r,n,i){var a=e.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,f=r.get(["lineStyle","width"])||2;o-=f/2,s-=f/2,l+=f,u+=f,o=Math.floor(o),l=Math.round(l);var c=new Nt({shape:{x:o,y:s,width:l,height:u}});if(t){var d=e.getBaseAxis(),h=d.isHorizontal(),v=d.inverse;h?(v&&(c.shape.x+=l),c.shape.width=0):(v||(c.shape.y+=u),c.shape.height=0);var p=We(i)?function(g){i(g,c)}:null;Br(c,{shape:{width:l,height:u,x:o,y:s}},r,null,n,p)}return c}function _Z(e,t,r){var n=e.getArea(),i=It(n.r0,1),a=It(n.r,1),o=new wo({shape:{cx:It(e.cx,1),cy:It(e.cy,1),r0:i,r:a,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(t){var s=e.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=i,Br(o,{shape:{endAngle:n.endAngle,r:a}},r)}return o}function bZ(e,t,r,n,i){if(e){if(e.type==="polar")return _Z(e,t,r);if(e.type==="cartesian2d")return yZ(e,t,r,n,i)}else return null;return null}function KP(e,t){return e.type===t}var wZ={average:function(e){for(var t=0,r=0,n=0;n<e.length;n++)isNaN(e[n])||(t+=e[n],r++);return r===0?NaN:t/r},sum:function(e){for(var t=0,r=0;r<e.length;r++)t+=e[r]||0;return t},max:function(e){for(var t=-1/0,r=0;r<e.length;r++)e[r]>t&&(t=e[r]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,r=0;r<e.length;r++)e[r]<t&&(t=e[r]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},xZ=function(e){return Math.round(e.length/2)};function SZ(e){return{seriesType:e,reset:function(t,r,n){var i=t.getData(),a=t.get("sampling"),o=t.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),c=n.getDevicePixelRatio(),d=Math.abs(f[1]-f[0])*(c||1),h=Math.round(s/d);if(isFinite(h)&&h>1){a==="lttb"&&t.setData(i.lttbDownSample(i.mapDimension(u.dim),1/h));var v=void 0;Te(a)?v=wZ[a]:We(a)&&(v=a),v&&t.setData(i.downSample(i.mapDimension(u.dim),1/h,v,xZ))}}}}}var XP=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){return bP(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(r,n,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.dataToPoint(a.clampData(r));if(i)R(a.getAxes(),function(c,d){if(c.type==="category"){var h=c.getTicksCoords(),v=a.clampData(r)[d];n&&(n[d]==="x1"||n[d]==="y1")&&(v+=1),v>h.length-1&&(v=h.length-1),v<0&&(v=0),h[v]&&(o[d]=c.toGlobalCoord(h[v].coord))}});else{var s=this.getData(),l=s.getLayout("offset"),u=s.getLayout("size"),f=a.getBaseAxis().isHorizontal()?0:1;o[f]+=l+u/2}return o}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(po);po.registerClass(XP);const Jx=XP;var CZ=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(){return bP(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var r=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>r&&(r=n),r},t.prototype.brushSelector=function(r,n,i){return i.rect(n.getItemLayout(r))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=q2(Jx.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(Jx);const TZ=CZ;var MZ=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),AZ=function(e){pe(t,e);function t(r){var n=e.call(this,r)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new MZ},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,f=n.startAngle,c=n.endAngle,d=n.clockwise,h=Math.PI*2,v=d?c-f<h:f-c<h;v||(f=c-(d?h:-h));var p=Math.cos(f),g=Math.sin(f),m=Math.cos(c),y=Math.sin(c);v?(r.moveTo(p*o+i,g*o+a),r.arc(p*u+i,g*u+a,l,-Math.PI+f,f,!d)):r.moveTo(p*s+i,g*s+a),r.arc(i,a,s,f,c,!d),r.arc(m*u+i,y*u+a,l,c-Math.PI*2,c-Math.PI,!d),o!==0&&r.arc(i,a,o,c,f,d)},t}(ct);const eS=AZ;function EZ(e,t){t=t||{};var r=t.isRoundCap;return function(n,i,a){var o=i.position;if(!o||o instanceof Array)return ed(n,i,a);var s=e(o),l=i.distance!=null?i.distance:5,u=this.shape,f=u.cx,c=u.cy,d=u.r,h=u.r0,v=(d+h)/2,p=u.startAngle,g=u.endAngle,m=(p+g)/2,y=r?Math.abs(d-h)/2:0,_=Math.cos,b=Math.sin,x=f+d*_(p),w=c+d*b(p),S="left",C="top";switch(s){case"startArc":x=f+(h-l)*_(m),w=c+(h-l)*b(m),S="center",C="top";break;case"insideStartArc":x=f+(h+l)*_(m),w=c+(h+l)*b(m),S="center",C="bottom";break;case"startAngle":x=f+v*_(p)+Zf(p,l+y,!1),w=c+v*b(p)+Qf(p,l+y,!1),S="right",C="middle";break;case"insideStartAngle":x=f+v*_(p)+Zf(p,-l+y,!1),w=c+v*b(p)+Qf(p,-l+y,!1),S="left",C="middle";break;case"middle":x=f+v*_(m),w=c+v*b(m),S="center",C="middle";break;case"endArc":x=f+(d+l)*_(m),w=c+(d+l)*b(m),S="center",C="bottom";break;case"insideEndArc":x=f+(d-l)*_(m),w=c+(d-l)*b(m),S="center",C="top";break;case"endAngle":x=f+v*_(g)+Zf(g,l+y,!0),w=c+v*b(g)+Qf(g,l+y,!0),S="left",C="middle";break;case"insideEndAngle":x=f+v*_(g)+Zf(g,-l+y,!0),w=c+v*b(g)+Qf(g,-l+y,!0),S="right",C="middle";break;default:return ed(n,i,a)}return n=n||{},n.x=x,n.y=w,n.align=S,n.verticalAlign=C,n}}function PZ(e,t,r,n){if(bt(n)){e.setTextConfig({rotation:n});return}else if(ge(t)){e.setTextConfig({rotation:0});return}var i=e.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+o)/2,l,u=r(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=a;break;case"endAngle":case"insideEndAngle":l=o;break;default:e.setTextConfig({rotation:0});return}var f=Math.PI*1.5-l;u==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),e.setTextConfig({rotation:f})}function Zf(e,t,r){return t*Math.sin(e)*(r?-1:1)}function Qf(e,t,r){return t*Math.cos(e)*(r?1:-1)}var np=Math.max,ip=Math.min;function LZ(e,t){var r=e.getArea&&e.getArea();if(KP(e,"cartesian2d")){var n=e.getBaseAxis();if(n.type!=="category"||!n.onBand){var i=t.getLayout("bandWidth");n.isHorizontal()?(r.x-=i,r.width+=i*2):(r.y-=i,r.height+=i*2)}}return r}var DZ=function(e){pe(t,e);function t(){var r=e.call(this)||this;return r.type=t.type,r._isFirstFrame=!0,r}return t.prototype.render=function(r,n,i,a){this._model=r,this._removeOnRenderedListener(i),this._updateDrawMode(r);var o=r.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,n,i):this._renderNormal(r,n,i,a))},t.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},t.prototype.incrementalRender=function(r,n){this._progressiveEls=[],this._incrementalRenderLarge(r,n)},t.prototype.eachRendered=function(r){n0(this._progressiveEls||this.group,r)},t.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(r,n,i,a){var o=this.group,s=r.getData(),l=this._data,u=r.coordinateSystem,f=u.getBaseAxis(),c;u.type==="cartesian2d"?c=f.isHorizontal():u.type==="polar"&&(c=f.dim==="angle");var d=r.isAnimationEnabled()?r:null,h=IZ(r,u);h&&this._enableRealtimeSort(h,s,i);var v=r.get("clip",!0)||h,p=LZ(u,s);o.removeClipPath();var g=r.get("roundCap",!0),m=r.get("showBackground",!0),y=r.getModel("backgroundStyle"),_=y.get("borderRadius")||0,b=[],x=this._backgroundEls,w=a&&a.isInitSort,S=a&&a.type==="changeAxisOrder";function C(A){var M=Jf[u.type](s,A),D=$Z(u,c,M);return D.useStyle(y.getItemStyle()),u.type==="cartesian2d"&&D.setShape("r",_),b[A]=D,D}s.diff(l).add(function(A){var M=s.getItemModel(A),D=Jf[u.type](s,A,M);if(m&&C(A),!(!s.hasValue(A)||!aS[u.type](D))){var O=!1;v&&(O=tS[u.type](p,D));var k=rS[u.type](r,s,A,D,c,d,f.model,!1,g);h&&(k.forceLabelAnimation=!0),oS(k,s,A,M,D,r,c,u.type==="polar"),w?k.attr({shape:D}):h?nS(h,d,k,D,A,c,!1,!1):Br(k,{shape:D},r,A),s.setItemGraphicEl(A,k),o.add(k),k.ignore=O}}).update(function(A,M){var D=s.getItemModel(A),O=Jf[u.type](s,A,D);if(m){var k=void 0;x.length===0?k=C(M):(k=x[M],k.useStyle(y.getItemStyle()),u.type==="cartesian2d"&&k.setShape("r",_),b[A]=k);var F=Jf[u.type](s,A),j=QP(c,F,u);Mr(k,{shape:j},d,A)}var B=l.getItemGraphicEl(M);if(!s.hasValue(A)||!aS[u.type](O)){o.remove(B);return}var N=!1;if(v&&(N=tS[u.type](p,O),N&&o.remove(B)),B?B2(B):B=rS[u.type](r,s,A,O,c,d,f.model,!!B,g),h&&(B.forceLabelAnimation=!0),S){var U=B.getTextContent();if(U){var re=ju(U);re.prevValue!=null&&(re.prevValue=re.value)}}else oS(B,s,A,D,O,r,c,u.type==="polar");w?B.attr({shape:O}):h?nS(h,d,B,O,A,c,!0,S):Mr(B,{shape:O},r,A,null),s.setItemGraphicEl(A,B),B.ignore=N,o.add(B)}).remove(function(A){var M=l.getItemGraphicEl(A);M&&ad(M,r,A)}).execute();var T=this._backgroundGroup||(this._backgroundGroup=new sn);T.removeAll();for(var E=0;E<b.length;++E)T.add(b[E]);o.add(T),this._backgroundEls=b,this._data=s},t.prototype._renderLarge=function(r,n,i){this._clear(),lS(r,this.group),this._updateLargeClip(r)},t.prototype._incrementalRenderLarge=function(r,n){this._removeBackground(),lS(n,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(r){var n=r.get("clip",!0)&&bZ(r.coordinateSystem,!1,r),i=this.group;n?i.setClipPath(n):i.removeClipPath()},t.prototype._enableRealtimeSort=function(r,n,i){var a=this;if(n.count()){var o=r.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,r,i),this._isFirstFrame=!1;else{var s=function(l){var u=n.getItemGraphicEl(l),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){a._updateSortWithinSameData(n,s,o,i)},i.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(r,n,i){var a=[];return r.each(r.mapDimension(n.dim),function(o,s){var l=i(s);l=l??NaN,a.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:Oe(a,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(r,n,i){for(var a=i.scale,o=r.mapDimension(i.dim),s=Number.MAX_VALUE,l=0,u=a.getOrdinalMeta().categories.length;l<u;++l){var f=r.rawIndexOf(o,a.getRawOrdinalNumber(l)),c=f<0?Number.MIN_VALUE:n(r.indexOfRawIndex(f));if(c>s)return!0;s=c}return!1},t.prototype._isOrderDifferentInView=function(r,n){for(var i=n.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(r,n,i,a){if(this._isOrderChangedWithinSameData(r,n,i)){var o=this._dataSort(r,i,n);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(r,n,i){var a=n.baseAxis,o=this._dataSort(r,a,function(s){return r.get(r.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},t.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(r){var n=this.group,i=this._data;r&&r.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){ad(a,r,ut(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(ao),tS={cartesian2d:function(e,t){var r=t.width<0?-1:1,n=t.height<0?-1:1;r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=np(t.x,e.x),s=ip(t.x+t.width,i),l=np(t.y,e.y),u=ip(t.y+t.height,a),f=s<o,c=u<l;return t.x=f&&o>i?s:o,t.y=c&&l>a?u:l,t.width=f?0:s-o,t.height=c?0:u-l,r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),f||c},polar:function(e,t){var r=t.r0<=t.r?1:-1;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}var i=ip(t.r,e.r),a=np(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},rS={cartesian2d:function(e,t,r,n,i,a,o,s,l){var u=new Nt({shape:oe({},n),z2:1});if(u.__dataIndex=r,u.name="item",a){var f=u.shape,c=i?"height":"width";f[c]=0}return u},polar:function(e,t,r,n,i,a,o,s,l){var u=!i&&l?eS:wo,f=new u({shape:n,z2:1});f.name="item";var c=ZP(i);if(f.calculateTextPosition=EZ(c,{isRoundCap:u===eS}),a){var d=f.shape,h=i?"r":"endAngle",v={};d[h]=i?0:n.startAngle,v[h]=n[h],(s?Mr:Br)(f,{shape:v},a)}return f}};function IZ(e,t){var r=e.get("realtimeSort",!0),n=t.getBaseAxis();if(r&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function nS(e,t,r,n,i,a,o,s){var l,u;a?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?Mr:Br)(r,{shape:l},t,i,null);var f=t?e.baseAxis.model:null;(o?Mr:Br)(r,{shape:u},f,i)}function iS(e,t){for(var r=0;r<t.length;r++)if(!isFinite(e[t[r]]))return!0;return!1}var RZ=["x","y","width","height"],OZ=["cx","cy","r","startAngle","endAngle"],aS={cartesian2d:function(e){return!iS(e,RZ)},polar:function(e){return!iS(e,OZ)}},Jf={cartesian2d:function(e,t,r){var n=e.getItemLayout(t),i=r?NZ(r,n):0,a=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+a*i/2,y:n.y+o*i/2,width:n.width-a*i,height:n.height-o*i}},polar:function(e,t,r){var n=e.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function kZ(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function ZP(e){return function(t){var r=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+r;default:return n}}}(e)}function oS(e,t,r,n,i,a,o,s){var l=t.getItemVisual(r,"style");s||e.setShape("r",n.get(["itemStyle","borderRadius"])||0),e.useStyle(l);var u=n.getShallow("cursor");u&&e.attr("cursor",u);var f=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",c=G2(n);i0(e,c,{labelFetcher:a,labelDataIndex:r,defaultText:gZ(a.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:f});var d=e.getTextContent();if(s&&d){var h=n.get(["label","position"]);e.textConfig.inside=h==="middle"?!0:null,PZ(e,h==="outside"?f:h,ZP(o),n.get(["label","rotate"]))}p7(d,c,a.getRawValue(r),function(p){return mZ(t,p)});var v=n.getModel(["emphasis"]);v2(e,v.get("focus"),v.get("blurScope"),v.get("disabled")),p2(e,n),kZ(i)&&(e.style.fill="none",e.style.stroke="none",R(e.states,function(p){p.style&&(p.style.fill=p.style.stroke="none")}))}function NZ(e,t){var r=e.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=e.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,i,a)}var BZ=function(){function e(){}return e}(),sS=function(e){pe(t,e);function t(r){var n=e.call(this,r)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new BZ},t.prototype.buildPath=function(r,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<i.length;f+=3)l[a]=u,l[o]=i[f+2],s[a]=i[f+a],s[o]=i[f+o],r.rect(s[0],s[1],l[0],l[1])},t}(ct);function lS(e,t,r,n){var i=e.getData(),a=i.getLayout("valueAxisHorizontal")?1:0,o=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=e.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints");if(u){var f=new sS({shape:{points:u},incremental:!!n,silent:!0,z2:0});f.baseDimIdx=a,f.largeDataIndices=o,f.barWidth=s,f.useStyle(l.getItemStyle()),t.add(f),r&&r.push(f)}var c=new sS({shape:{points:i.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});c.baseDimIdx=a,c.largeDataIndices=o,c.barWidth=s,t.add(c),c.useStyle(i.getVisual("style")),ut(c).seriesIndex=e.seriesIndex,e.get("silent")||(c.on("mousedown",uS),c.on("mousemove",uS)),r&&r.push(c)}var uS=b0(function(e){var t=this,r=FZ(t,e.offsetX,e.offsetY);ut(t).dataIndex=r>=0?r:null},30,!1);function FZ(e,t,r){for(var n=e.baseDimIdx,i=1-n,a=e.shape.points,o=e.largeDataIndices,s=[],l=[],u=e.barWidth,f=0,c=a.length/3;f<c;f++){var d=f*3;if(l[n]=u,l[i]=a[d+2],s[n]=a[d+n],s[i]=a[d+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),t>=s[0]&&t<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[f]}return-1}function QP(e,t,r){if(KP(r,"cartesian2d")){var n=t,i=r.getArea();return{x:e?n.x:i.x,y:e?i.y:n.y,width:e?n.width:i.width,height:e?i.height:n.height}}else{var i=r.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}}function $Z(e,t,r){var n=e.type==="polar"?wo:Nt;return new n({shape:QP(t,r,e),silent:!0,z2:0})}const HZ=DZ;function zZ(e){e.registerChartView(HZ),e.registerSeriesModel(TZ),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Dt(mX,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,yX("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,SZ("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,r){var n=t.componentType||"series";r.eachComponent({mainType:n,query:t},function(i){t.sortInfo&&i.axis.setCategorySortInfo(t.sortInfo)})})}var ec=Math.PI*2,fS=Math.PI/180;function JP(e,t){return Ms(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function eL(e,t){var r=JP(e,t),n=e.get("center"),i=e.get("radius");ge(i)||(i=[0,i]);var a=pt(r.width,t.getWidth()),o=pt(r.height,t.getHeight()),s=Math.min(a,o),l=pt(i[0],s/2),u=pt(i[1],s/2),f,c,d=e.coordinateSystem;if(d){var h=d.dataToPoint(n);f=h[0]||0,c=h[1]||0}else ge(n)||(n=[n,n]),f=pt(n[0],a)+r.x,c=pt(n[1],o)+r.y;return{cx:f,cy:c,r0:l,r:u}}function WZ(e,t,r){t.eachSeriesByType(e,function(n){var i=n.getData(),a=i.mapDimension("value"),o=JP(n,r),s=eL(n,r),l=s.cx,u=s.cy,f=s.r,c=s.r0,d=-n.get("startAngle")*fS,h=n.get("minAngle")*fS,v=0;i.each(a,function(E){!isNaN(E)&&v++});var p=i.getSum(a),g=Math.PI/(p||v)*2,m=n.get("clockwise"),y=n.get("roseType"),_=n.get("stillShowZeroSum"),b=i.getDataExtent(a);b[0]=0;var x=ec,w=0,S=d,C=m?1:-1;if(i.setLayout({viewRect:o,r:f}),i.each(a,function(E,A){var M;if(isNaN(E)){i.setItemLayout(A,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:m,cx:l,cy:u,r0:c,r:y?NaN:f});return}y!=="area"?M=p===0&&_?g:E*g:M=ec/v,M<h?(M=h,x-=h):w+=E;var D=S+C*M;i.setItemLayout(A,{angle:M,startAngle:S,endAngle:D,clockwise:m,cx:l,cy:u,r0:c,r:y?Eg(E,b,[c,f]):f}),S=D}),x<ec&&v)if(x<=.001){var T=ec/v;i.each(a,function(E,A){if(!isNaN(E)){var M=i.getItemLayout(A);M.angle=T,M.startAngle=d+C*A*T,M.endAngle=d+C*(A+1)*T}})}else g=x/w,S=d,i.each(a,function(E,A){if(!isNaN(E)){var M=i.getItemLayout(A),D=M.angle===h?h:E*g;M.startAngle=S,M.endAngle=S+C*D,S+=C*D}})})}function VZ(e){return{seriesType:e,reset:function(t,r){var n=r.findComponents({mainType:"legend"});if(!(!n||!n.length)){var i=t.getData();i.filterSelf(function(a){for(var o=i.getName(a),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}var GZ=Math.PI/180;function cS(e,t,r,n,i,a,o,s,l,u){if(e.length<2)return;function f(p){for(var g=p.rB,m=g*g,y=0;y<p.list.length;y++){var _=p.list[y],b=Math.abs(_.label.y-r),x=n+_.len,w=x*x,S=Math.sqrt((1-Math.abs(b*b/m))*w),C=t+(S+_.len2)*i,T=C-_.label.x,E=_.targetTextWidth-T*i;tL(_,E,!0),_.label.x=C}}function c(p){for(var g={list:[],maxY:0},m={list:[],maxY:0},y=0;y<p.length;y++)if(p[y].labelAlignTo==="none"){var _=p[y],b=_.label.y>r?m:g,x=Math.abs(_.label.y-r);if(x>=b.maxY){var w=_.label.x-t-_.len2*i,S=n+_.len,C=Math.abs(w)<S?Math.sqrt(x*x/(1-w*w/S/S)):S;b.rB=C,b.maxY=x}b.list.push(_)}f(g),f(m)}for(var d=e.length,h=0;h<d;h++)if(e[h].position==="outer"&&e[h].labelAlignTo==="labelLine"){var v=e[h].label.x-u;e[h].linePoints[1][0]+=v,e[h].label.x=u}qP(e,l,l+o)&&c(e)}function UZ(e,t,r,n,i,a,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,c=-Number.MAX_VALUE,d=0;d<e.length;d++){var h=e[d].label;ap(e[d])||(h.x<t?(f=Math.min(f,h.x),l.push(e[d])):(c=Math.max(c,h.x),u.push(e[d])))}for(var d=0;d<e.length;d++){var v=e[d];if(!ap(v)&&v.linePoints){if(v.labelStyleWidth!=null)continue;var h=v.label,p=v.linePoints,g=void 0;v.labelAlignTo==="edge"?h.x<t?g=p[2][0]-v.labelDistance-o-v.edgeDistance:g=o+i-v.edgeDistance-p[2][0]-v.labelDistance:v.labelAlignTo==="labelLine"?h.x<t?g=f-o-v.bleedMargin:g=o+i-c-v.bleedMargin:h.x<t?g=h.x-o-v.bleedMargin:g=o+i-h.x-v.bleedMargin,v.targetTextWidth=g,tL(v,g)}}cS(u,t,r,n,1,i,a,o,s,c),cS(l,t,r,n,-1,i,a,o,s,f);for(var d=0;d<e.length;d++){var v=e[d];if(!ap(v)&&v.linePoints){var h=v.label,p=v.linePoints,m=v.labelAlignTo==="edge",y=h.style.padding,_=y?y[1]+y[3]:0,b=h.style.backgroundColor?0:_,x=v.rect.width+b,w=p[1][0]-p[2][0];m?h.x<t?p[2][0]=o+v.edgeDistance+x+v.labelDistance:p[2][0]=o+i-v.edgeDistance-x-v.labelDistance:(h.x<t?p[2][0]=h.x+v.labelDistance:p[2][0]=h.x-v.labelDistance,p[1][0]=p[2][0]+w),p[1][1]=p[2][1]=h.y}}}function tL(e,t,r){if(r===void 0&&(r=!1),e.labelStyleWidth==null){var n=e.label,i=n.style,a=e.rect,o=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,f=a.width+(o?0:l);if(t<f||r){var c=a.height;if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",t-l);var d=n.getBoundingRect();n.setStyle("width",Math.ceil(d.width)),n.setStyle("backgroundColor",o)}else{var h=t-l,v=t<f?h:r?h>e.unconstrainedWidth?null:h:null;n.setStyle("width",v)}var p=n.getBoundingRect();a.width=p.width;var g=(n.style.margin||0)+2.1;a.height=p.height+g,a.y-=(a.height-c)/2}}}function ap(e){return e.position==="center"}function YZ(e){var t=e.getData(),r=[],n,i,a=!1,o=(e.get("minShowLabelAngle")||0)*GZ,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,f=s.x,c=s.y,d=s.height;function h(w){w.ignore=!0}function v(w){if(!w.ignore)return!0;for(var S in w.states)if(w.states[S].ignore===!1)return!0;return!1}t.each(function(w){var S=t.getItemGraphicEl(w),C=S.shape,T=S.getTextContent(),E=S.getTextGuideLine(),A=t.getItemModel(w),M=A.getModel("label"),D=M.get("position")||A.get(["emphasis","label","position"]),O=M.get("distanceToLabelLine"),k=M.get("alignTo"),F=pt(M.get("edgeDistance"),u),j=M.get("bleedMargin"),B=A.getModel("labelLine"),N=B.get("length");N=pt(N,u);var U=B.get("length2");if(U=pt(U,u),Math.abs(C.endAngle-C.startAngle)<o){R(T.states,h),T.ignore=!0,E&&(R(E.states,h),E.ignore=!0);return}if(v(T)){var re=(C.startAngle+C.endAngle)/2,ae=Math.cos(re),me=Math.sin(re),Me,V,J,W;n=C.cx,i=C.cy;var Y=D==="inside"||D==="inner";if(D==="center")Me=C.cx,V=C.cy,W="center";else{var le=(Y?(C.r+C.r0)/2*ae:C.r*ae)+n,he=(Y?(C.r+C.r0)/2*me:C.r*me)+i;if(Me=le+ae*3,V=he+me*3,!Y){var Q=le+ae*(N+l-C.r),P=he+me*(N+l-C.r),I=Q+(ae<0?-1:1)*U,z=P;k==="edge"?Me=ae<0?f+F:f+u-F:Me=I+(ae<0?-O:O),V=z,J=[[le,he],[Q,P],[I,z]]}W=Y?"center":k==="edge"?ae>0?"right":"left":ae>0?"left":"right"}var G=Math.PI,q=0,ne=M.get("rotate");if(bt(ne))q=ne*(G/180);else if(D==="center")q=0;else if(ne==="radial"||ne===!0){var ce=ae<0?-re+G:-re;q=ce}else if(ne==="tangential"&&D!=="outside"&&D!=="outer"){var te=Math.atan2(ae,me);te<0&&(te=G*2+te);var ie=me>0;ie&&(te=G+te),q=te-G}if(a=!!q,T.x=Me,T.y=V,T.rotation=q,T.setStyle({verticalAlign:"middle"}),Y){T.setStyle({align:W});var ve=T.states.select;ve&&(ve.x+=T.x,ve.y+=T.y)}else{var X=T.getBoundingRect().clone();X.applyTransform(T.getComputedTransform());var _e=(T.style.margin||0)+2.1;X.y-=_e/2,X.height+=_e,r.push({label:T,labelLine:E,position:D,len:N,len2:U,minTurnAngle:B.get("minTurnAngle"),maxSurfaceAngle:B.get("maxSurfaceAngle"),surfaceNormal:new ke(ae,me),linePoints:J,textAlign:W,labelDistance:O,labelAlignTo:k,edgeDistance:F,bleedMargin:j,rect:X,unconstrainedWidth:X.width,labelStyleWidth:T.style.width})}S.setTextConfig({inside:Y})}}),!a&&e.get("avoidLabelOverlap")&&UZ(r,n,i,l,u,d,f,c);for(var p=0;p<r.length;p++){var g=r[p],m=g.label,y=g.labelLine,_=isNaN(m.x)||isNaN(m.y);if(m){m.setStyle({align:g.textAlign}),_&&(R(m.states,h),m.ignore=!0);var b=m.states.select;b&&(b.x+=m.x,b.y+=m.y)}if(y){var x=g.linePoints;_||!x?(R(y.states,h),y.ignore=!0):(WP(x,g.minTurnAngle),sZ(x,g.surfaceNormal,g.maxSurfaceAngle),y.setShape({points:x}),m.__hostTarget.textGuideLineConfig={anchor:new ke(x[0][0],x[0][1])})}}}function tc(e,t,r){var n=e.get("borderRadius");if(n==null)return r?{cornerRadius:0}:null;ge(n)||(n=[n,n,n,n]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:Oe(n,function(a){return ra(a,i)})}}var qZ=function(e){pe(t,e);function t(r,n,i){var a=e.call(this)||this;a.z2=2;var o=new fr;return a.setTextContent(o),a.updateData(r,n,i,!0),a}return t.prototype.updateData=function(r,n,i,a){var o=this,s=r.hostModel,l=r.getItemModel(n),u=l.getModel("emphasis"),f=r.getItemLayout(n),c=oe(tc(l.getModel("itemStyle"),f,!0),f);if(isNaN(c.startAngle)){o.setShape(c);return}if(a){o.setShape(c);var d=s.getShallow("animationType");s.ecModel.ssr?(Br(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=c.cx,o.originY=c.cy):d==="scale"?(o.shape.r=f.r0,Br(o,{shape:{r:f.r}},s,n)):i!=null?(o.setShape({startAngle:i,endAngle:i}),Br(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,n)):(o.shape.endAngle=f.startAngle,Mr(o,{shape:{endAngle:f.endAngle}},s,n))}else B2(o),Mr(o,{shape:c},s,n);o.useStyle(r.getItemVisual(n,"style")),p2(o,l);var h=(f.startAngle+f.endAngle)/2,v=s.get("selectedOffset"),p=Math.cos(h)*v,g=Math.sin(h)*v,m=l.getShallow("cursor");m&&o.attr("cursor",m),this._updateLabel(s,r,n),o.ensureState("emphasis").shape=oe({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},tc(u.getModel("itemStyle"),f)),oe(o.ensureState("select"),{x:p,y:g,shape:tc(l.getModel(["select","itemStyle"]),f)}),oe(o.ensureState("blur"),{shape:tc(l.getModel(["blur","itemStyle"]),f)});var y=o.getTextGuideLine(),_=o.getTextContent();y&&oe(y.ensureState("select"),{x:p,y:g}),oe(_.ensureState("select"),{x:p,y:g}),v2(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r,n,i){var a=this,o=n.getItemModel(i),s=o.getModel("labelLine"),l=n.getItemVisual(i,"style"),u=l&&l.fill,f=l&&l.opacity;i0(a,G2(o),{labelFetcher:n.hostModel,labelDataIndex:i,inheritColor:u,defaultOpacity:f,defaultText:r.getFormattedLabel(i,"normal")||n.getName(i)});var c=a.getTextContent();a.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var d=r.get(["label","position"]);if(d!=="outside"&&d!=="outer")a.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new ih,this.setTextGuideLine(h)),VP(this,GP(o),{stroke:u,opacity:Bl(s.get(["lineStyle","opacity"]),f,1)})}},t}(wo),jZ=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.ignoreLabelLineUpdate=!0,r}return t.prototype.render=function(r,n,i,a){var o=r.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),c=1;isNaN(f&&f.startAngle)&&c<o.count();++c)f=o.getItemLayout(c);f&&(u=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&r.get("showEmptyCircle")){var d=new wo({shape:eL(r,i)});d.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=d,l.add(d)}o.diff(s).add(function(h){var v=new qZ(o,h,u);o.setItemGraphicEl(h,v),l.add(v)}).update(function(h,v){var p=s.getItemGraphicEl(v);p.updateData(o,h,u),p.off("click"),l.add(p),o.setItemGraphicEl(h,p)}).remove(function(h){var v=s.getItemGraphicEl(h);ad(v,r,h)}).execute(),YZ(r),r.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(r,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=r[0]-a.cx,s=r[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},t.type="pie",t}(ao);const KZ=jZ;function XZ(e,t,r){t=ge(t)&&{coordDimensions:t}||oe({encodeDefine:e.getEncode()},t);var n=e.getSource(),i=yP(n,t).dimensions,a=new mP(i,e);return a.initData(n,r),a}var ZZ=function(){function e(t,r){this._getDataWithEncodedVisual=t,this._getRawData=r}return e.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},e.prototype.containName=function(t){var r=this._getRawData();return r.indexOfName(t)>=0},e.prototype.indexOfName=function(t){var r=this._getDataWithEncodedVisual();return r.indexOfName(t)},e.prototype.getItemVisual=function(t,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,r)},e}();const QZ=ZZ;var JZ=Tt(),eQ=function(e){pe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new QZ(_t(this.getData,this),_t(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return XZ(this,{coordDimensions:["value"],encodeDefaulter:Dt(G7,this)})},t.prototype.getDataParams=function(r){var n=this.getData(),i=JZ(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=MU(o,n.hostModel.get("percentPrecision"))}var s=e.prototype.getDataParams.call(this,r);return s.percent=a[r]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(r){Pg(r,"labelLine",["show"]);var n=r.labelLine,i=r.emphasis.labelLine;n.show=n.show&&r.label.show,i.show=i.show&&r.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(po);const tQ=eQ;function rQ(e){return{seriesType:e,reset:function(t,r){var n=t.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(bt(o)&&!isNaN(o)&&o<0)})}}}function nQ(e){e.registerChartView(KZ),e.registerSeriesModel(tQ),Dj("pie",e.registerAction),e.registerLayout(Dt(WZ,"pie")),e.registerProcessor(VZ("pie")),e.registerProcessor(rQ("pie"))}var iQ=function(e){pe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(wt);const aQ=iQ;var sm=function(e){pe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",_n).models[0]},t.type="cartesian2dAxis",t}(wt);Qn(sm,VX);var rL={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},oQ=at({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},rL),R0=at({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},rL),sQ=at({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},R0),lQ=ft({logBase:10},R0);const uQ={category:oQ,value:R0,time:sQ,log:lQ};var fQ={value:1,category:1,time:1,log:1};function dS(e,t,r,n){R(fQ,function(i,a){var o=at(at({},uQ[a],!0),n,!0),s=function(l){pe(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=t+"Axis."+a,f}return u.prototype.mergeDefaultAndTheme=function(f,c){var d=Cu(this),h=d?hh(f):{},v=c.getTheme();at(f,v.get(a+"Axis")),at(f,this.getDefaultOption()),f.type=hS(f),d&&As(f,h,d)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=am.createByAxisModel(this))},u.prototype.getCategories=function(f){var c=this.option;if(c.type==="category")return f?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+a,u.defaultOption=o,u}(r);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",hS)}function hS(e){return e.type||(e.data?"category":"value")}var cQ=function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return Oe(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),$t(this.getAxes(),function(r){return r.scale.type===t})},e.prototype.addAxis=function(t){var r=t.dim;this._axes[r]=t,this._dimList.push(r)},e}();const dQ=cQ;var lm=["x","y"];function vS(e){return e.type==="interval"||e.type==="time"}var hQ=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=lm,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!vS(r)||!vS(n))){var i=r.getExtent(),a=n.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,c=(s[1]-o[1])/u,d=o[0]-i[0]*f,h=o[1]-a[0]*c,v=this._transform=[f,0,0,c,d,h];this._invTransform=Qd([],v)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(r){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&i.contain(i.toLocalCoord(r[1]))},t.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},t.prototype.containZone=function(r,n){var i=this.dataToPoint(r),a=this.dataToPoint(n),o=this.getArea(),s=new tt(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},t.prototype.dataToPoint=function(r,n,i){i=i||[];var a=r[0],o=r[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return rn(i,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=l.toGlobalCoord(l.dataToCoord(o,n)),i},t.prototype.clampData=function(r,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(r[0]),u=a.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(r,n){var i=[];if(this._invTransform)return rn(i,r,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(r[0]),n),i[1]=o.coordToData(o.toLocalCoord(r[1]),n),i},t.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},t.prototype.getArea=function(){var r=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(r[0],r[1]),a=Math.min(n[0],n[1]),o=Math.max(r[0],r[1])-i,s=Math.max(n[0],n[1])-a;return new tt(i,a,o,s)},t}(dQ),vQ=function(e){pe(t,e);function t(r,n,i,a,o){var s=e.call(this,r,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},t.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},t}(tZ);const pQ=vQ;function um(e,t,r){r=r||{};var n=e.coordinateSystem,i=t.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,u=i.dim,f=n.getRect(),c=[f.x,f.x+f.width,f.y,f.y+f.height],d={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,v=u==="x"?[c[2]-h,c[3]+h]:[c[0]-h,c[1]+h];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));v[d.onZero]=Math.max(Math.min(p,v[1]),v[0])}a.position=[u==="y"?v[d[l]]:c[0],u==="x"?v[d[l]]:c[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=g[s],a.labelOffset=o?v[d[s]]-v[d.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),pu(r.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var m=t.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-m:m,a.z2=1,a}function pS(e){return e.get("coordinateSystem")==="cartesian2d"}function gS(e){var t={xAxisModel:null,yAxisModel:null};return R(t,function(r,n){var i=n.replace(/Model$/,""),a=e.getReferringComponents(i,_n).models[0];t[n]=a}),t}var op=Math.log;function gQ(e,t,r){var n=Ku.prototype,i=n.getTicks.call(r),a=n.getTicks.call(r,!0),o=i.length-1,s=n.getInterval.call(r),l=RP(e,t),u=l.extent,f=l.fixMin,c=l.fixMax;if(e.type==="log"){var d=op(e.base);u=[op(u[0])/d,op(u[1])/d]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:c});var h=n.getExtent.call(e);f&&(u[0]=h[0]),c&&(u[1]=h[1]);var v=n.getInterval.call(e),p=u[0],g=u[1];if(f&&c)v=(g-p)/o;else if(f)for(g=u[0]+v*o;g<u[1]&&isFinite(g)&&isFinite(u[1]);)v=Jv(v),g=u[0]+v*o;else if(c)for(p=u[1]-v*o;p>u[0]&&isFinite(p)&&isFinite(u[0]);)v=Jv(v),p=u[1]-v*o;else{var m=e.getTicks().length-1;m>o&&(v=Jv(v));var y=v*o;g=Math.ceil(u[1]/v)*v,p=It(g-y),p<0&&u[0]>=0?(p=0,g=It(y)):g>0&&u[1]<=0&&(g=0,p=-It(y))}var _=(i[0].value-a[0].value)/s,b=(i[o].value-a[o].value)/s;n.setExtent.call(e,p+v*_,g+v*b),n.setInterval.call(e,v),(_||b)&&n.setNiceExtent.call(e,p+v,g-v)}var mQ=function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=lm,this._initCartesian(t,r,n),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,r){var n=this._axesMap;this._updateScale(t,this.model);function i(o){var s,l=xt(o),u=l.length;if(u){for(var f=[],c=u-1;c>=0;c--){var d=+l[c],h=o[d],v=h.model,p=h.scale;om(p)&&v.get("alignTicks")&&v.get("interval")==null?f.push(h):(Yx(p,v),om(p)&&(s=h))}f.length&&(s||(s=f.pop(),Yx(s.scale,s.model)),R(f,function(g){gQ(g.scale,g.model,s.scale)}))}}i(n.x),i(n.y);var a={};R(n.x,function(o){mS(n,"y",o,a)}),R(n.y,function(o){mS(n,"x",o,a)}),this.resize(this.model,r)},e.prototype.resize=function(t,r,n){var i=t.getBoxLayoutParams(),a=!n&&t.get("containLabel"),o=Ms(i,{width:r.getWidth(),height:r.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(R(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=HX(u);if(f){var c=u.isHorizontal()?"height":"width",d=u.model.get(["axisLabel","margin"]);o[c]-=f[c]+d,u.position==="top"?o.y+=f.height+d:u.position==="left"&&(o.x+=f.width+d)}}}),l()),R(this._coordsList,function(u){u.calcAffineTransform()});function l(){R(s,function(u){var f=u.isHorizontal(),c=f?[0,o.width]:[0,o.height],d=u.inverse?1:0;u.setExtent(c[d],c[1-d]),yQ(u,f?o.x:o.y)})}},e.prototype.getAxis=function(t,r){var n=this._axesMap[t];if(n!=null)return n[r||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,r){if(t!=null&&r!=null){var n="x"+t+"y"+r;return this._coordsMap[n]}De(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i<a.length;i++)if(a[i].getAxis("x").index===t||a[i].getAxis("y").index===r)return a[i]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(t,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(t,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(t){var r=t.seriesModel,n=t.xAxisModel||r&&r.getReferringComponents("xAxis",_n).models[0],i=t.yAxisModel||r&&r.getReferringComponents("yAxis",_n).models[0],a=t.gridModel,o=this._coordsList,s,l;if(r)s=r.coordinateSystem,it(o,s)<0&&(s=null);else if(n&&i)s=this.getCartesian(n.componentIndex,i.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(i)l=this.getAxis("y",i.componentIndex);else if(a){var u=a.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},e.prototype.containPoint=function(t){var r=this._coordsList[0];if(r)return r.containPoint(t)},e.prototype._initCartesian=function(t,r,n){var i=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(r.eachComponent("xAxis",u("x"),this),r.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,R(s.x,function(f,c){R(s.y,function(d,h){var v="x"+c+"y"+h,p=new hQ(v);p.master=i,p.model=t,i._coordsMap[v]=p,i._coordsList.push(p),p.addAxis(f),p.addAxis(d)})});function u(f){return function(c,d){if(sp(c,t)){var h=c.get("position");f==="x"?h!=="top"&&h!=="bottom"&&(h=o.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=o.left?"right":"left"),o[h]=!0;var v=new pQ(f,FX(c),[0,0],c.get("type"),h),p=v.type==="category";v.onBand=p&&c.get("boundaryGap"),v.inverse=c.get("inverse"),c.axis=v,v.model=c,v.grid=a,v.index=d,a._axesList.push(v),s[f][d]=v,l[f]++}}}},e.prototype._updateScale=function(t,r){R(this._axesList,function(i){if(i.scale.setExtent(1/0,-1/0),i.type==="category"){var a=i.model.get("categorySortInfo");i.scale.setSortInfo(a)}}),t.eachSeries(function(i){if(pS(i)){var a=gS(i),o=a.xAxisModel,s=a.yAxisModel;if(!sp(o,r)||!sp(s,r))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=i.getData(),f=l.getAxis("x"),c=l.getAxis("y");n(u,f),n(u,c)}},this);function n(i,a){R(WX(i,a.dim),function(o){a.scale.unionExtentFromData(i,o)})}},e.prototype.getTooltipAxes=function(t){var r=[],n=[];return R(this.getCartesians(),function(i){var a=t!=null&&t!=="auto"?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(a);it(r,a)<0&&r.push(a),it(n,o)<0&&n.push(o)}),{baseAxes:r,otherAxes:n}},e.create=function(t,r){var n=[];return t.eachComponent("grid",function(i,a){var o=new e(i,t,r);o.name="grid_"+a,o.resize(i,r,!0),i.coordinateSystem=o,n.push(o)}),t.eachSeries(function(i){if(pS(i)){var a=gS(i),o=a.xAxisModel,s=a.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;i.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),n},e.dimensions=lm,e}();function sp(e,t){return e.getCoordSysModel()===t}function mS(e,t,r,n){r.getAxesOnZeroOf=function(){return a?[a]:[]};var i=e[t],a,o=r.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)yS(i[l])&&(a=i[l]);else for(var u in i)if(i.hasOwnProperty(u)&&yS(i[u])&&!n[f(i[u])]){a=i[u];break}a&&(n[f(a)]=!0);function f(c){return c.dim+"_"+c.index}}function yS(e){return e&&e.type!=="category"&&e.type!=="time"&&$X(e)}function yQ(e,t){var r=e.getExtent(),n=r[0]+r[1];e.toGlobalCoord=e.dim==="x"?function(i){return i+t}:function(i){return n-i+t},e.toLocalCoord=e.dim==="x"?function(i){return i-t}:function(i){return n-i+t}}const _Q=mQ;var qi=Math.PI,oo=function(){function e(t,r){this.group=new sn,this.opt=r,this.axisModel=t,ft(r,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new sn({x:r.position[0],y:r.position[1],rotation:r.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(t){return!!_S[t]},e.prototype.add=function(t){_S[t](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(t,r,n){var i=BA(r-t),a,o;return td(i)?(o=n>0?"top":"bottom",a="center"):td(i-qi)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<qi?a=n>0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},e.makeAxisEventDataBase=function(t){var r={componentType:t.mainType,componentIndex:t.componentIndex};return r[t.mainType+"Index"]=t.componentIndex,r},e.isLabelSilent=function(t){var r=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||r&&r.show)},e}(),_S={axisLine:function(e,t,r,n){var i=t.get(["axisLine","show"]);if(i==="auto"&&e.handleAutoShown&&(i=e.handleAutoShown("axisLine")),!!i){var a=t.axis.getExtent(),o=n.transform,s=[a[0],0],l=[a[1],0],u=s[0]>l[0];o&&(rn(s,s,o),rn(l,l,o));var f=oe({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new vo({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});bu(c.shape,c.style.lineWidth),c.anid="line",r.add(c);var d=t.get(["axisLine","symbol"]);if(d!=null){var h=t.get(["axisLine","symbolSize"]);Te(d)&&(d=[d,d]),(Te(h)||bt(h))&&(h=[h,h]);var v=Uj(t.get(["axisLine","symbolOffset"])||0,h),p=h[0],g=h[1];R([{rotate:e.rotation+Math.PI/2,offset:v[0],r:0},{rotate:e.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(m,y){if(d[y]!=="none"&&d[y]!=null){var _=w0(d[y],-p/2,-g/2,p,g,f.stroke,!0),b=m.r+m.offset,x=u?l:s;_.attr({rotation:m.rotate,x:x[0]+b*Math.cos(e.rotation),y:x[1]-b*Math.sin(e.rotation),silent:!0,z2:11}),r.add(_)}})}}},axisTickLabel:function(e,t,r,n){var i=xQ(r,n,t,e),a=CQ(r,n,t,e);if(wQ(t,a,i),SQ(r,n,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=UP(Oe(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));jP(o)}},axisName:function(e,t,r,n){var i=pu(e.axisName,t.get("name"));if(i){var a=t.get("nameLocation"),o=e.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),f=u[0]>u[1]?-1:1,c=[a==="start"?u[0]-f*l:a==="end"?u[1]+f*l:(u[0]+u[1])/2,wS(a)?e.labelOffset+o*l:0],d,h=t.get("nameRotate");h!=null&&(h=h*qi/180);var v;wS(a)?d=oo.innerTextLayout(e.rotation,h??e.rotation,o):(d=bQ(e.rotation,a,h||0,u),v=e.axisNameAvailableWidth,v!=null&&(v=Math.abs(v/Math.sin(d.rotation)),!isFinite(v)&&(v=null)));var p=s.getFont(),g=t.get("nameTruncate",!0)||{},m=g.ellipsis,y=pu(e.nameTruncateMaxWidth,g.maxWidth,v),_=new fr({x:c[0],y:c[1],rotation:d.rotation,silent:oo.isLabelSilent(t),style:na(s,{text:i,font:p,overflow:"truncate",width:y,ellipsis:m,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||d.textAlign,verticalAlign:s.get("verticalAlign")||d.textVerticalAlign}),z2:1});if(r0({el:_,componentModel:t,itemName:i}),_.__fullText=i,_.anid="name",t.get("triggerEvent")){var b=oo.makeAxisEventDataBase(t);b.targetType="axisName",b.name=i,ut(_).eventData=b}n.add(_),_.updateTransform(),r.add(_),_.decomposeTransform()}}};function bQ(e,t,r,n){var i=BA(r-e),a,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return td(i-qi/2)?(o=l?"bottom":"top",a="center"):td(i-qi*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",i<qi*1.5&&i>qi/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function wQ(e,t,r){if(!OP(e.axis)){var n=e.get(["axisLabel","showMinLabel"]),i=e.get(["axisLabel","showMaxLabel"]);t=t||[],r=r||[];var a=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=r[0],f=r[1],c=r[r.length-1],d=r[r.length-2];n===!1?(Vr(a),Vr(u)):bS(a,o)&&(n?(Vr(o),Vr(f)):(Vr(a),Vr(u))),i===!1?(Vr(s),Vr(c)):bS(l,s)&&(i?(Vr(l),Vr(d)):(Vr(s),Vr(c)))}}function Vr(e){e&&(e.ignore=!0)}function bS(e,t){var r=e&&e.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!r||!n)){var i=Oy([]);return ky(i,i,-e.rotation),r.applyTransform(is([],i,e.getLocalTransform())),n.applyTransform(is([],i,t.getLocalTransform())),r.intersect(n)}}function wS(e){return e==="middle"||e==="center"}function nL(e,t,r,n,i){for(var a=[],o=[],s=[],l=0;l<e.length;l++){var u=e[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=r,t&&(rn(o,o,t),rn(s,s,t));var f=new vo({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});bu(f.shape,f.style.lineWidth),f.anid=i+"_"+e[l].tickValue,a.push(f)}return a}function xQ(e,t,r,n){var i=r.axis,a=r.getModel("axisTick"),o=a.get("show");if(o==="auto"&&n.handleAutoShown&&(o=n.handleAutoShown("axisTick")),!(!o||i.scale.isBlank())){for(var s=a.getModel("lineStyle"),l=n.tickDirection*a.get("length"),u=i.getTicksCoords(),f=nL(u,t.transform,l,ft(s.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)e.add(f[c]);return f}}function SQ(e,t,r,n){var i=r.axis,a=r.getModel("minorTick");if(!(!a.get("show")||i.scale.isBlank())){var o=i.getMinorTicksCoords();if(o.length)for(var s=a.getModel("lineStyle"),l=n*a.get("length"),u=ft(s.getLineStyle(),ft(r.getModel("axisTick").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})),f=0;f<o.length;f++)for(var c=nL(o[f],t.transform,l,u,"minorticks_"+f),d=0;d<c.length;d++)e.add(c[d])}}function CQ(e,t,r,n){var i=r.axis,a=pu(n.axisLabelShow,r.get(["axisLabel","show"]));if(!(!a||i.scale.isBlank())){var o=r.getModel("axisLabel"),s=o.get("margin"),l=i.getViewLabels(),u=(pu(n.labelRotate,o.get("rotate"))||0)*qi/180,f=oo.innerTextLayout(n.rotation,u,n.labelDirection),c=r.getCategories&&r.getCategories(!0),d=[],h=oo.isLabelSilent(r),v=r.get("triggerEvent");return R(l,function(p,g){var m=i.scale.type==="ordinal"?i.scale.getRawOrdinalNumber(p.tickValue):p.tickValue,y=p.formattedLabel,_=p.rawLabel,b=o;if(c&&c[m]){var x=c[m];De(x)&&x.textStyle&&(b=new tr(x.textStyle,o,r.ecModel))}var w=b.getTextColor()||r.get(["axisLine","lineStyle","color"]),S=i.dataToCoord(m),C=new fr({x:S,y:n.labelOffset+n.labelDirection*s,rotation:f.rotation,silent:h,z2:10+(p.level||0),style:na(b,{text:y,align:b.getShallow("align",!0)||f.textAlign,verticalAlign:b.getShallow("verticalAlign",!0)||b.getShallow("baseline",!0)||f.textVerticalAlign,fill:We(w)?w(i.type==="category"?_:i.type==="value"?m+"":m,g):w})});if(C.anid="label_"+m,v){var T=oo.makeAxisEventDataBase(r);T.targetType="axisLabel",T.value=_,T.tickIndex=g,i.type==="category"&&(T.dataIndex=m),ut(C).eventData=T}t.add(C),C.updateTransform(),d.push(C),e.add(C),C.decomposeTransform()}),d}}const iL=oo;function TQ(e,t){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return MQ(r,e,t),r.seriesInvolved&&EQ(r,e),r}function MQ(e,t,r){var n=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];R(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Lu(s.model),u=e.coordSysAxesInfo[l]={};e.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",n);if(R(s.getAxes(),Dt(p,!1,null)),s.getTooltipAxes&&n&&c.get("show")){var d=c.get("trigger")==="axis",h=c.get(["axisPointer","type"])==="cross",v=s.getTooltipAxes(c.get(["axisPointer","axis"]));(d||h)&&R(v.baseAxes,Dt(p,h?"cross":!0,d)),h&&R(v.otherAxes,Dt(p,"cross",!1))}function p(g,m,y){var _=y.model.getModel("axisPointer",i),b=_.get("show");if(!(!b||b==="auto"&&!g&&!fm(_))){m==null&&(m=_.get("triggerTooltip")),_=g?AQ(y,c,i,t,g,m):_;var x=_.get("snap"),w=Lu(y.model),S=m||x||y.type==="category",C=e.axesInfo[w]={key:w,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:m,involveSeries:S,snap:x,useHandle:fm(_),seriesModels:[],linkGroup:null};u[w]=C,e.seriesInvolved=e.seriesInvolved||S;var T=PQ(a,y);if(T!=null){var E=o[T]||(o[T]={axesInfo:{}});E.axesInfo[w]=C,E.mapper=a[T].mapper,C.linkGroup=E}}}})}function AQ(e,t,r,n,i,a){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};R(s,function(d){l[d]=Ze(o.get(d))}),l.snap=e.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),i==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!a){var c=l.lineStyle=o.get("crossStyle");c&&ft(u,c.textStyle)}}return e.model.getModel("axisPointer",new tr(l,r,n))}function EQ(e,t){t.eachSeries(function(r){var n=r.coordinateSystem,i=r.get(["tooltip","trigger"],!0),a=r.get(["tooltip","show"],!0);!n||i==="none"||i===!1||i==="item"||a===!1||r.get(["axisPointer","show"],!0)===!1||R(e.coordSysAxesInfo[Lu(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function PQ(e,t){for(var r=t.model,n=t.dim,i=0;i<e.length;i++){var a=e[i]||{};if(lp(a[n+"AxisId"],r.id)||lp(a[n+"AxisIndex"],r.componentIndex)||lp(a[n+"AxisName"],r.name))return i}}function lp(e,t){return e==="all"||ge(e)&&it(e,t)>=0||e===t}function LQ(e){var t=O0(e);if(t){var r=t.axisPointerModel,n=t.axis.scale,i=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=fm(r);a==null&&(i.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),i.value=o,s&&(i.status=t.axis.scale.isBlank()?"hide":"show")}}function O0(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Lu(e)]}function DQ(e){var t=O0(e);return t&&t.axisPointerModel}function fm(e){return!!e.get(["handle","show"])}function Lu(e){return e.type+"||"+e.id}var xS={},IQ=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i,a){this.axisPointerClass&&LQ(r),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,i,!0)},t.prototype.updateAxisPointer=function(r,n,i,a){this._doUpdateAxisPointerClass(r,i,!1)},t.prototype.remove=function(r,n){var i=this._axisPointer;i&&i.remove(n)},t.prototype.dispose=function(r,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(r,n,i){var a=t.getAxisPointerClass(this.axisPointerClass);if(a){var o=DQ(r);o?(this._axisPointer||(this._axisPointer=new a)).render(r,o,n,i):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},t.registerAxisPointerClass=function(r,n){xS[r]=n},t.getAxisPointerClass=function(r){return r&&xS[r]},t.type="axis",t}(bi);const aL=IQ;var cm=Tt();function RQ(e,t,r,n){var i=r.axis;if(!i.scale.isBlank()){var a=r.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:a,clamp:!0});if(u.length){var f=s.length,c=cm(e).splitAreaColors,d=Ge(),h=0;if(c)for(var v=0;v<u.length;v++){var p=c.get(u[v].tickValue);if(p!=null){h=(p+(f-1)*v)%f;break}}var g=i.toGlobalCoord(u[0].coord),m=o.getAreaStyle();s=ge(s)?s:[s];for(var v=1;v<u.length;v++){var y=i.toGlobalCoord(u[v].coord),_=void 0,b=void 0,x=void 0,w=void 0;i.isHorizontal()?(_=g,b=l.y,x=y-_,w=l.height,g=_+x):(_=l.x,b=g,x=l.width,w=y-b,g=b+w);var S=u[v-1].tickValue;S!=null&&d.set(S,h),t.add(new Nt({anid:S!=null?"area_"+S:null,shape:{x:_,y:b,width:x,height:w},style:ft({fill:s[h]},m),autoBatch:!0,silent:!0})),h=(h+1)%f}cm(e).splitAreaColors=d}}}function OQ(e){cm(e).splitAreaColors=null}var kQ=["axisLine","axisTickLabel","axisName"],NQ=["splitArea","splitLine","minorSplitLine"],oL=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="CartesianAxisPointer",r}return t.prototype.render=function(r,n,i,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new sn,this.group.add(this._axisGroup),!!r.get("show")){var s=r.getCoordSysModel(),l=um(s,r),u=new iL(r,oe({handleAutoShown:function(c){for(var d=s.coordinateSystem.getCartesians(),h=0;h<d.length;h++)if(om(d[h].getOtherAxis(r.axis).scale))return!0;return!1}},l));R(kQ,u.add,u),this._axisGroup.add(u.getGroup()),R(NQ,function(c){r.get([c,"show"])&&BQ[c](this,this._axisGroup,r,s)},this);var f=a&&a.type==="changeAxisOrder"&&a.isInitSort;f||z2(o,this._axisGroup,r),e.prototype.render.call(this,r,n,i,a)}},t.prototype.remove=function(){OQ(this)},t.type="cartesianAxis",t}(aL),BQ={splitLine:function(e,t,r,n){var i=r.axis;if(!i.scale.isBlank()){var a=r.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color");s=ge(s)?s:[s];for(var l=n.coordinateSystem.getRect(),u=i.isHorizontal(),f=0,c=i.getTicksCoords({tickModel:a}),d=[],h=[],v=o.getLineStyle(),p=0;p<c.length;p++){var g=i.toGlobalCoord(c[p].coord);u?(d[0]=g,d[1]=l.y,h[0]=g,h[1]=l.y+l.height):(d[0]=l.x,d[1]=g,h[0]=l.x+l.width,h[1]=g);var m=f++%s.length,y=c[p].tickValue,_=new vo({anid:y!=null?"line_"+c[p].tickValue:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:h[0],y2:h[1]},style:ft({stroke:s[m]},v),silent:!0});bu(_.shape,v.lineWidth),t.add(_)}}},minorSplitLine:function(e,t,r,n){var i=r.axis,a=r.getModel("minorSplitLine"),o=a.getModel("lineStyle"),s=n.coordinateSystem.getRect(),l=i.isHorizontal(),u=i.getMinorTicksCoords();if(u.length)for(var f=[],c=[],d=o.getLineStyle(),h=0;h<u.length;h++)for(var v=0;v<u[h].length;v++){var p=i.toGlobalCoord(u[h][v].coord);l?(f[0]=p,f[1]=s.y,c[0]=p,c[1]=s.y+s.height):(f[0]=s.x,f[1]=p,c[0]=s.x+s.width,c[1]=p);var g=new vo({anid:"minor_line_"+u[h][v].tickValue,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:c[0],y2:c[1]},style:d,silent:!0});bu(g.shape,d.lineWidth),t.add(g)}},splitArea:function(e,t,r,n){RQ(e,t,r,n)}},sL=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="xAxis",t}(oL),FQ=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=sL.type,r}return t.type="yAxis",t}(oL),$Q=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="grid",r}return t.prototype.render=function(r,n){this.group.removeAll(),r.get("show")&&this.group.add(new Nt({shape:r.coordinateSystem.getRect(),style:ft({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(bi),SS={offset:0};function HQ(e){e.registerComponentView($Q),e.registerComponentModel(aQ),e.registerCoordinateSystem("cartesian2d",_Q),dS(e,"x",sm,SS),dS(e,"y",sm,SS),e.registerComponentView(sL),e.registerComponentView(FQ),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function CS(e,t,r){var n=bo.createCanvas(),i=t.getWidth(),a=t.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=a+"px",n.setAttribute("data-zr-dom-id",e)),n.width=i*r,n.height=a*r,n}var zQ=function(e){pe(t,e);function t(r,n,i){var a=e.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null;var o;i=i||Jc,typeof r=="string"?o=CS(r,n,i):De(r)&&(o=r,r=o.id),a.id=r,a.dom=o;var s=o.style;return s&&(fA(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=n,a.dpr=i,a}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=CS("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},t.prototype.createRepaintRects=function(r,n,i,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new tt(0,0,0,0);function f(y){if(!(!y.isFinite()||y.isZero()))if(o.length===0){var _=new tt(0,0,0,0);_.copy(y),o.push(_)}else{for(var b=!1,x=1/0,w=0,S=0;S<o.length;++S){var C=o[S];if(C.intersect(y)){var T=new tt(0,0,0,0);T.copy(C),T.union(y),o[S]=T,b=!0;break}else if(l){u.copy(y),u.union(C);var E=y.width*y.height,A=C.width*C.height,M=u.width*u.height,D=M-E-A;D<x&&(x=D,w=S)}}if(l&&(o[w].union(y),b=!0),!b){var _=new tt(0,0,0,0);_.copy(y),o.push(_)}l||(l=o.length>=s)}}for(var c=this.__startIndex;c<this.__endIndex;++c){var d=r[c];if(d){var h=d.shouldBePainted(i,a,!0,!0),v=d.__isRendered&&(d.__dirty&Ir||!h)?d.getPrevPaintRect():null;v&&f(v);var p=h&&(d.__dirty&Ir||!d.__isRendered)?d.getPaintRect():null;p&&f(p)}}for(var c=this.__prevStartIndex;c<this.__prevEndIndex;++c){var d=n[c],h=d.shouldBePainted(i,a,!0,!0);if(d&&(!h||!d.__zr)&&d.__isRendered){var v=d.getPrevPaintRect();v&&f(v)}}var g;do{g=!1;for(var c=0;c<o.length;){if(o[c].isZero()){o.splice(c,1);continue}for(var m=c+1;m<o.length;)o[c].intersect(o[m])?(g=!0,o[c].union(o[m]),o.splice(m,1)):m++;c++}}while(g);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(r,n){var i=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=r+"px",o.height=n+"px"),a.width=r*i,a.height=n*i,s&&(s.width=r*i,s.height=n*i,i!==1&&this.ctxBack.scale(i,i))},t.prototype.clear=function(r,n,i){var a=this.dom,o=this.ctx,s=a.width,l=a.height;n=n||this.clearColor;var u=this.motionBlur&&!r,f=this.lastFrameAlpha,c=this.dpr,d=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/c,l/c));var h=this.domBack;function v(p,g,m,y){if(o.clearRect(p,g,m,y),n&&n!=="transparent"){var _=void 0;if(Xd(n)){var b=n.global||n.__width===m&&n.__height===y;_=b&&n.__canvasGradient||Jg(o,n,{x:0,y:0,width:m,height:y}),n.__canvasGradient=_,n.__width=m,n.__height=y}else KV(n)&&(n.scaleX=n.scaleX||c,n.scaleY=n.scaleY||c,_=em(o,n,{dirty:function(){d.setUnpainted(),d.__painter.refresh()}}));o.save(),o.fillStyle=_||n,o.fillRect(p,g,m,y),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(h,p,g,m,y),o.restore())}!i||u?v(0,0,s,l):i.length&&R(i,function(p){v(p.x*c,p.y*c,p.width*c,p.height*c)})},t}(Jn);const up=zQ;var TS=1e5,Na=314159,rc=.01,WQ=.001;function VQ(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function GQ(e,t){var r=document.createElement("div");return r.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",r}var UQ=function(){function e(t,r,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var a=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=n=oe({},n||{}),this.dpr=n.devicePixelRatio||Jc,this._singleCanvas=a,this.root=t;var o=t.style;o&&(fA(t),t.innerHTML=""),this.storage=r;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(a){var f=t,c=f.width,d=f.height;n.width!=null&&(c=n.width),n.height!=null&&(d=n.height),this.dpr=n.devicePixelRatio||1,f.width=c*this.dpr,f.height=d*this.dpr,this._width=c,this._height=d;var h=new up(f,this,this.dpr);h.__builtin__=!0,h.initContext(),l[Na]=h,h.zlevel=Na,s.push(Na),this._domRoot=t}else{this._width=Hf(t,0,n),this._height=Hf(t,1,n);var u=this._domRoot=GQ(this._width,this._height);t.appendChild(u)}}return e.prototype.getType=function(){return"canvas"},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.refresh=function(t){var r=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(r,n,t,this._redrawId);for(var a=0;a<i.length;a++){var o=i[a],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=a===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=r.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(t){var r=t.length,n=this._hoverlayer;if(n&&n.clear(),!!r){for(var i={inHover:!0,viewWidth:this._width,viewHeight:this._height},a,o=0;o<r;o++){var s=t[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(TS)),a||(a=n.ctx,a.save()),Qa(a,s,i,o===r-1))}a&&a.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(TS)},e.prototype.paintOne=function(t,r){YE(t,r)},e.prototype._paintList=function(t,r,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(t);var a=this._doPaintList(t,r,n),o=a.finished,s=a.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;yg(function(){l._paintList(t,r,n,i)})}}},e.prototype._compositeManually=function(){var t=this.getLayer(Na).ctx,r=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,r,n),this.eachBuiltinLayer(function(i){i.virtual&&t.drawImage(i.dom,0,0,r,n)})},e.prototype._doPaintList=function(t,r,n){for(var i=this,a=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||n)&&a.push(u)}for(var f=!0,c=!1,d=function(p){var g=a[p],m=g.ctx,y=o&&g.createRepaintRects(t,r,h._width,h._height),_=n?g.__startIndex:g.__drawIndex,b=!n&&g.incremental&&Date.now,x=b&&Date.now(),w=g.zlevel===h._zlevelList[0]?h._backgroundColor:null;if(g.__startIndex===g.__endIndex)g.clear(!1,w,y);else if(_===g.__startIndex){var S=t[_];(!S.incremental||!S.notClear||n)&&g.clear(!1,w,y)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=g.__startIndex);var C,T=function(D){var O={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(C=_;C<g.__endIndex;C++){var k=t[C];if(k.__inHover&&(c=!0),i._doPaintEl(k,g,o,D,O,C===g.__endIndex-1),b){var F=Date.now()-x;if(F>15)break}}O.prevElClipPaths&&m.restore()};if(y)if(y.length===0)C=g.__endIndex;else for(var E=h.dpr,A=0;A<y.length;++A){var M=y[A];m.save(),m.beginPath(),m.rect(M.x*E,M.y*E,M.width*E,M.height*E),m.clip(),T(M),m.restore()}else m.save(),T(),m.restore();g.__drawIndex=C,g.__drawIndex<g.__endIndex&&(f=!1)},h=this,v=0;v<a.length;v++)d(v);return Ve.wxa&&R(this._layers,function(p){p&&p.ctx&&p.ctx.draw&&p.ctx.draw()}),{finished:f,needsRefreshHover:c}},e.prototype._doPaintEl=function(t,r,n,i,a,o){var s=r.ctx;if(n){var l=t.getPaintRect();(!i||l&&l.intersect(i))&&(Qa(s,t,a,o),t.setPrevPaintRect(l))}else Qa(s,t,a,o)},e.prototype.getLayer=function(t,r){this._singleCanvas&&!this._needsManuallyCompositing&&(t=Na);var n=this._layers[t];return n||(n=new up("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?at(n,this._layerConfig[t],!0):this._layerConfig[t-rc]&&at(n,this._layerConfig[t-rc],!0),r&&(n.virtual=r),this.insertLayer(t,n),n.initContext()),n},e.prototype.insertLayer=function(t,r){var n=this._layers,i=this._zlevelList,a=i.length,o=this._domRoot,s=null,l=-1;if(!n[t]&&VQ(r)){if(a>0&&t>i[0]){for(l=0;l<a-1&&!(i[l]<t&&i[l+1]>t);l++);s=n[i[l]]}if(i.splice(l+1,0,t),n[t]=r,!r.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(r.dom,u.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.__painter=this}},e.prototype.eachLayer=function(t,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i];t.call(r,this._layers[a],a)}},e.prototype.eachBuiltinLayer=function(t,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__&&t.call(r,o,a)}},e.prototype.eachOtherLayer=function(t,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__||t.call(r,o,a)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(c,d){c.__dirty=c.__used=!1});function r(c){a&&(a.__endIndex!==c&&(a.__dirty=!0),a.__endIndex=c)}if(this._singleCanvas)for(var n=1;n<t.length;n++){var i=t[n];if(i.zlevel!==t[n-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}var a=null,o=0,s,l;for(l=0;l<t.length;l++){var i=t[l],u=i.zlevel,f=void 0;s!==u&&(s=u,o=0),i.incremental?(f=this.getLayer(u+WQ,this._needsManuallyCompositing),f.incremental=!0,o=1):f=this.getLayer(u+(o>0?rc:0),this._needsManuallyCompositing),f.__builtin__||Dy("ZLevel "+u+" has been used by unkown layer "+f.id),f!==a&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,r(l),a=f),i.__dirty&Ir&&!i.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}r(l),this.eachBuiltinLayer(function(c,d){!c.__used&&c.getElementCount()>0&&(c.__dirty=!0,c.__startIndex=c.__endIndex=c.__drawIndex=0),c.__dirty&&c.__drawIndex<0&&(c.__drawIndex=c.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,R(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var n=this._layerConfig;n[t]?at(n[t],r,!0):n[t]=r;for(var i=0;i<this._zlevelList.length;i++){var a=this._zlevelList[i];if(a===t||a===t+rc){var o=this._layers[a];at(o,n[t],!0)}}}},e.prototype.delLayer=function(t){var r=this._layers,n=this._zlevelList,i=r[t];i&&(i.dom.parentNode.removeChild(i.dom),delete r[t],n.splice(it(n,t),1))},e.prototype.resize=function(t,r){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,a=this.root;if(t!=null&&(i.width=t),r!=null&&(i.height=r),t=Hf(a,0,i),r=Hf(a,1,i),n.style.display="",this._width!==t||r!==this._height){n.style.width=t+"px",n.style.height=r+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,r);this.refresh(!0)}this._width=t,this._height=r}else{if(t==null||r==null)return;this._width=t,this._height=r,this.getLayer(Na).resize(t,r)}return this},e.prototype.clearLayer=function(t){var r=this._layers[t];r&&r.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[Na].dom;var r=new up("image",this,t.pixelRatio||this.dpr);r.initContext(),r.clear(!1,t.backgroundColor||this._backgroundColor);var n=r.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var i=r.dom.width,a=r.dom.height;this.eachLayer(function(c){c.__builtin__?n.drawImage(c.dom,0,0,i,a):c.renderToCanvas&&(n.save(),c.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var f=s[l];Qa(n,f,o,l===u-1)}return r.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();const YQ=UQ;function qQ(e){e.registerPainter("canvas",YQ)}var Ua=Tt(),MS=Ze,fp=_t,jQ=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,r,n,i){var a=r.get("value"),o=r.get("status");if(this._axisModel=t,this._axisPointerModel=r,this._api=n,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,t,r,n);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(t,r);if(!s)s=this._group=new sn,this.createPointerEl(s,u,t,r),this.createLabelEl(s,u,t,r),n.getZr().add(s);else{var d=Dt(AS,r,c);this.updatePointerEl(s,u,d),this.updateLabelEl(s,u,d,r)}PS(s,r,!0),this._renderHandle(a)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,r){var n=r.get("animation"),i=t.axis,a=i.type==="category",o=r.get("snap");if(!o&&!a)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(a&&i.getBandWidth()>s)return!0;if(o){var l=O0(t).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},e.prototype.makeElOption=function(t,r,n,i,a){},e.prototype.createPointerEl=function(t,r,n,i){var a=r.pointer;if(a){var o=Ua(t).pointerEl=new c7[a.type](MS(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,n,i){if(r.label){var a=Ua(t).labelEl=new fr(MS(r.label));t.add(a),ES(a,i)}},e.prototype.updatePointerEl=function(t,r,n){var i=Ua(t).pointerEl;i&&r.pointer&&(i.setStyle(r.pointer.style),n(i,{shape:r.pointer.shape}))},e.prototype.updateLabelEl=function(t,r,n,i){var a=Ua(t).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),ES(a,i))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=r.getModel("handle"),o=r.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=t0(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){dA(u.event)},onmousedown:fp(this._onHandleDragMove,this,0,0),drift:fp(this._onHandleDragMove,this),ondragend:fp(this._onHandleDragEnd,this)}),n.add(i)),PS(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");ge(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,kE(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){AS(this._axisPointerModel,!r&&this._moveAnimation,this._handle,cp(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,r){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(cp(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(cp(i)),Ua(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var r=t.getZr(),n=this._group,i=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),i&&r.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),Xg(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,r,n){return n=n||0,{x:t[n],y:t[1-n],width:r[n],height:r[1-n]}},e}();function AS(e,t,r,n){lL(Ua(r).lastProp,n)||(Ua(r).lastProp=n,t?Mr(r,n,e):(r.stopAnimation(),r.attr(n)))}function lL(e,t){if(De(e)&&De(t)){var r=!0;return R(t,function(n,i){r=r&&lL(e[i],n)}),!!r}else return e===t}function ES(e,t){e[t.get(["label","show"])?"show":"hide"]()}function cp(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function PS(e,t,r){var n=t.get("z"),i=t.get("zlevel");e&&e.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=r)})}const KQ=jQ;function XQ(e){var t=e.get("type"),r=e.getModel(t+"Style"),n;return t==="line"?(n=r.getLineStyle(),n.fill=null):t==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function ZQ(e,t,r,n,i){var a=r.get("value"),o=uL(a,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=dh(s.get("padding")||0),u=s.getFont(),f=Fy(o,u),c=i.position,d=f.width+l[1]+l[3],h=f.height+l[0]+l[2],v=i.align;v==="right"&&(c[0]-=d),v==="center"&&(c[0]-=d/2);var p=i.verticalAlign;p==="bottom"&&(c[1]-=h),p==="middle"&&(c[1]-=h/2),QQ(c,d,h,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),e.label={x:c[0],y:c[1],style:na(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function QQ(e,t,r,n){var i=n.getWidth(),a=n.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+r,a)-r,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function uL(e,t,r,n,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:D0(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};R(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),Te(o)?a=o.replace("{value}",a):We(o)&&(a=o(s))}return a}function fL(e,t,r){var n=gu();return ky(n,n,r.rotation),mg(n,n,r.position),e0([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function JQ(e,t,r,n,i,a){var o=iL.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),ZQ(t,n,i,a,{position:fL(n.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function eJ(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function tJ(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}var rJ=function(e){pe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),f=LS(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var d=XQ(a),h=nJ[u](s,c,f);h.style=d,r.graphicKey=h.type,r.pointer=h}var v=um(l.model,i);JQ(n,r,v,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=um(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=fL(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=LS(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[r.x,r.y];c[f]+=n[f],c[f]=Math.min(l[1],c[f]),c[f]=Math.max(l[0],c[f]);var d=(u[1]+u[0])/2,h=[d,d];h[f]=c[f];var v=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:h,tooltipOption:v[f]}},t}(KQ);function LS(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var nJ={line:function(e,t,r){var n=eJ([t,r[0]],[t,r[1]],DS(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=Math.max(1,e.getBandWidth()),i=r[1]-r[0];return{type:"Rect",shape:tJ([t-n/2,r[0]],[n,i],DS(e))}}};function DS(e){return e.dim==="x"?0:1}const iJ=rJ;var aJ=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(wt);const oJ=aJ;var fi=Tt(),sJ=R;function cL(e,t,r){if(!Ve.node){var n=t.getZr();fi(n).records||(fi(n).records={}),lJ(n,t);var i=fi(n).records[e]||(fi(n).records[e]={});i.handler=r}}function lJ(e,t){if(fi(e).initialized)return;fi(e).initialized=!0,r("click",Dt(IS,"click")),r("mousemove",Dt(IS,"mousemove")),r("globalout",fJ);function r(n,i){e.on(n,function(a){var o=cJ(t);sJ(fi(e).records,function(s){s&&i(s,a,o.dispatchAction)}),uJ(o.pendings,t)})}}function uJ(e,t){var r=e.showTip.length,n=e.hideTip.length,i;r?i=e.showTip[r-1]:n&&(i=e.hideTip[n-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function fJ(e,t,r){e.handler("leave",null,r)}function IS(e,t,r,n){t.handler(e,r,n)}function cJ(e){var t={showTip:[],hideTip:[]},r=function(n){var i=t[n.type];i?i.push(n):(n.dispatchAction=r,e.dispatchAction(n))};return{dispatchAction:r,pendings:t}}function dm(e,t){if(!Ve.node){var r=t.getZr(),n=(fi(r).records||{})[e];n&&(fi(r).records[e]=null)}}var dJ=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=n.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";cL("axisPointer",i,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(r,n){dm("axisPointer",n)},t.prototype.dispose=function(r,n){dm("axisPointer",n)},t.type="axisPointer",t}(bi);const hJ=dJ;function dL(e,t){var r=[],n=e.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=Uu(a,e);if(o==null||o<0||ge(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)r=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),c=f.dim,d=u.dim,h=c==="x"||c==="radius"?1:0,v=a.mapDimension(d),p=[];p[h]=a.get(v,o),p[1-h]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(p)||[]}else r=l.dataToPoint(a.getValues(Oe(l.dimensions,function(m){return a.mapDimension(m)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),r=[g.x+g.width/2,g.y+g.height/2]}return{point:r,el:s}}var RS=Tt();function vJ(e,t,r){var n=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||_t(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){Ic(i)&&(i=dL({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=Ic(i),u=a.axesInfo,f=s.axesInfo,c=n==="leave"||Ic(i),d={},h={},v={list:[],map:{}},p={showPointer:Dt(gJ,h),showTooltip:Dt(mJ,v)};R(s.coordSysMap,function(m,y){var _=l||m.containPoint(i);R(s.coordSysAxesInfo[y],function(b,x){var w=b.axis,S=wJ(u,b);if(!c&&_&&(!u||S)){var C=S&&S.value;C==null&&!l&&(C=w.pointToData(i)),C!=null&&OS(b,C,p,!1,d)}})});var g={};return R(f,function(m,y){var _=m.linkGroup;_&&!h[y]&&R(_.axesInfo,function(b,x){var w=h[x];if(b!==m&&w){var S=w.value;_.mapper&&(S=m.axis.scale.parse(_.mapper(S,kS(b),kS(m)))),g[m.key]=S}})}),R(g,function(m,y){OS(f[y],m,p,!0,d)}),yJ(h,f,d),_J(v,i,e,o),bJ(f,o,r),d}}function OS(e,t,r,n,i){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){r.showPointer(e,t);return}var o=pJ(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&oe(i,s[0]),!n&&e.snap&&a.containData(l)&&l!=null&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,o,l)}}function pJ(e,t){var r=t.axis,n=r.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return R(t.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),c,d;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(f,e,r);d=h.dataIndices,c=h.nestestValue}else{if(d=l.getData().indicesOfNearest(f[0],e,r.type==="category"?.5:null),!d.length)return;c=l.getData().get(f[0],d[0])}if(!(c==null||!isFinite(c))){var v=e-c,p=Math.abs(v);p<=o&&((p<o||v>=0&&s<0)&&(o=p,s=v,i=c,a.length=0),R(d,function(g){a.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:i}}function gJ(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function mJ(e,t,r,n){var i=r.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var l=t.coordSys.model,u=Lu(l),f=e.map[u];f||(f=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function yJ(e,t,r){var n=r.axesInfo=[];R(t,function(i,a){var o=i.axisPointerModel.option,s=e[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function _J(e,t,r,n){if(Ic(t)||!e.list.length){n({type:"hideTip"});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function bJ(e,t,r){var n=r.getZr(),i="axisPointerLastHighlights",a=RS(n)[i]||{},o=RS(n)[i]={};R(e,function(u,f){var c=u.axisPointerModel.option;c.status==="show"&&R(c.seriesDataIndices,function(d){var h=d.seriesIndex+" | "+d.dataIndex;o[h]=d})});var s=[],l=[];R(a,function(u,f){!o[f]&&l.push(u)}),R(o,function(u,f){!a[f]&&s.push(u)}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function wJ(e,t){for(var r=0;r<(e||[]).length;r++){var n=e[r];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function kS(e){var t=e.axis.model,r={},n=r.axisDim=e.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=t.componentIndex,r.axisName=r[n+"AxisName"]=t.name,r.axisId=r[n+"AxisId"]=t.id,r}function Ic(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function hL(e){aL.registerAxisPointerClass("CartesianAxisPointer",iJ),e.registerComponentModel(oJ),e.registerComponentView(hJ),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!ge(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=TQ(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},vJ)}function xJ(e){ia(HQ),ia(hL)}function SJ(e,t){var r=dh(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),e=new Nt({shape:{x:e.x-r[3],y:e.y-r[0],width:e.width+r[1]+r[3],height:e.height+r[0]+r[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),e}var CJ=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(wt);const TJ=CJ;function vL(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function pL(e){if(Ve.domSupported){for(var t=document.documentElement.style,r=0,n=e.length;r<n;r++)if(e[r]in t)return e[r]}}var gL=pL(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),MJ=pL(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function mL(e,t){if(!e)return t;t=aE(t,!0);var r=e.indexOf(t);return e=r===-1?t:"-"+e.slice(0,r)+"-"+t,e.toLowerCase()}function AJ(e,t){var r=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return r?t?r[t]:r:null}var EJ=mL(MJ,"transition"),k0=mL(gL,"transform"),PJ="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Ve.transform3dSupported?"will-change:transform;":"");function LJ(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function DJ(e,t,r){if(!Te(r)||r==="inside")return"";var n=e.get("backgroundColor"),i=e.get("borderWidth");t=Su(t);var a=LJ(r),o=Math.max(Math.round(i)*1.5,6),s="",l=k0+":",u;it(["left","right"],a)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var f=u*Math.PI/180,c=o+i,d=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),h=Math.round(((d-Math.SQRT2*i)/2+Math.SQRT2*i-(d-c)/2)*100)/100;s+=";"+a+":-"+h+"px";var v=t+" solid "+i+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+v,"border-right:"+v,"background-color:"+n+";"];return'<div style="'+p.join("")+'"></div>'}function IJ(e,t){var r="cubic-bezier(0.23,1,0.32,1)",n=" "+e/2+"s "+r,i="opacity"+n+",visibility"+n;return t||(n=" "+e+"s "+r,i+=Ve.transformSupported?","+k0+n:",left"+n+",top"+n),EJ+":"+i}function NS(e,t,r){var n=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!Ve.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=Ve.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+k0+":"+o+";":[["top",0],["left",0],[gL,o]]}function RJ(e){var t=[],r=e.get("fontSize"),n=e.getTextColor();n&&t.push("color:"+n),t.push("font:"+e.getFont()),r&&t.push("line-height:"+Math.round(r*3/2)+"px");var i=e.get("textShadowColor"),a=e.get("textShadowBlur")||0,o=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return i&&a&&t.push("text-shadow:"+o+"px "+s+"px "+a+"px "+i),R(["decoration","align"],function(l){var u=e.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function OJ(e,t,r){var n=[],i=e.get("transitionDuration"),a=e.get("backgroundColor"),o=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),f=e.getModel("textStyle"),c=IE(e,"html"),d=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+d),t&&i&&n.push(IJ(i,r)),a&&n.push("background-color:"+a),R(["width","color","radius"],function(h){var v="border-"+h,p=aE(v),g=e.get(p);g!=null&&n.push(v+":"+g+(h==="color"?"":"px"))}),n.push(RJ(f)),c!=null&&n.push("padding:"+dh(c).join("px ")+"px"),n.join(";")+";"}function BS(e,t,r,n,i){var a=t&&t.painter;if(r){var o=a&&a.getViewportRoot();o&&cG(e,o,document.body,n,i)}else{e[0]=n,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var kJ=function(){function e(t,r,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,Ve.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var a=this._zr=r.getZr(),o=this._appendToBody=n&&n.appendToBody;BS(this._styleCoord,a,o,r.getWidth()/2,r.getHeight()/2),o?document.body.appendChild(i):t.appendChild(i),this._container=t;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,f=a.painter.getViewportRoot();Ur(f,l,!0),u.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){var r=this._container,n=AJ(r,"position"),i=r.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative");var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this.el.className=t.get("className")||""},e.prototype.show=function(t,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=PJ+OJ(t,!this._firstShow,this._longHide)+NS(a[0],a[1],!0)+("border-color:"+Su(r)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,r,n,i,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(Te(a)&&n.get("trigger")==="item"&&!vL(n)&&(s=DJ(n,i,a)),Te(t))o.innerHTML=t+s;else if(t){o.innerHTML="",ge(t)||(t=[t]);for(var l=0;l<t.length;l++)qc(t[l])&&t[l].parentNode!==o&&o.appendChild(t[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},e.prototype.moveTo=function(t,r){var n=this._styleCoord;if(BS(n,this._zr,this._appendToBody,t,r),n[0]!=null&&n[1]!=null){var i=this.el.style,a=NS(n[0],n[1]);R(a,function(o){i[o[0]]=o[1]})}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){var t=this,r=this.el.style;r.visibility="hidden",r.opacity="0",Ve.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(_t(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},e}();const NJ=kJ;var BJ=function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._zr=t.getZr(),$S(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return e.prototype.update=function(t){var r=t.get("alwaysShowContent");r&&this._moveIfResized()},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(t,r,n,i,a){var o=this;De(t)&&mr(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new fr({style:{rich:r.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:IE(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),R(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),R(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el,r=this.el.getBoundingRect(),n=FS(t.style);return[r.width+n.left+n.right,r.height+n.top+n.bottom]},e.prototype.moveTo=function(t,r){var n=this.el;if(n){var i=this._styleCoord;$S(i,this._zr,t,r),t=i[0],r=i[1];var a=n.style,o=$i(a.borderWidth||0),s=FS(a);n.x=t+o+s.left,n.y=r+o+s.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(_t(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function $i(e){return Math.max(0,e)}function FS(e){var t=$i(e.shadowBlur||0),r=$i(e.shadowOffsetX||0),n=$i(e.shadowOffsetY||0);return{left:$i(t-r),right:$i(t+r),top:$i(t-n),bottom:$i(t+n)}}function $S(e,t,r,n){e[0]=r,e[1]=n,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}const FJ=BJ;var $J=new Nt({shape:{x:-1,y:-1,width:2,height:2}}),HJ=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){if(!(Ve.node||!n.getDom())){var i=r.getComponent("tooltip"),a=this._renderMode=GU(i.get("renderMode"));this._tooltipContent=a==="richText"?new FJ(n):new NJ(n.getDom(),n,{appendToBody:i.get("appendToBody",!0)})}},t.prototype.render=function(r,n,i){if(!(Ve.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=i,this._alwaysShowContent=r.get("alwaysShowContent");var a=this._tooltipContent;a.update(r),a.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?kE(this,"_updatePosition",50,"fixRate"):Xg(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");cL("itemTooltip",this._api,_t(function(i,a,o){n!=="none"&&(n.indexOf(i)>=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,i=this._api,a=r.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(r,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(r,n,i,a){if(!(a.from===this.uid||Ve.node||!i.getDom())){var o=HS(a,i);this._ticket="";var s=a.dataByCoordSys,l=GJ(a,n,i);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=$J;f.x=a.x,f.y=a.y,f.update(),ut(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,i,a))return;var c=dL(a,n),d=c.point[0],h=c.point[1];d!=null&&h!=null&&this._tryShow({offsetX:d,offsetY:h,target:c.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(r,n,i,a){var o=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(HS(a,i))},t.prototype._manuallyAxisShowTip=function(r,n,i,a){var o=a.seriesIndex,s=a.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var f=u.getData(),c=hl([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(r,n){var i=r.target,a=this._tooltipModel;if(a){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(i){this._lastDataByCoordSys=null;var s,l;Sl(i,function(u){if(ut(u).dataIndex!=null)return s=u,!0;if(ut(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(r,s,n):l?this._showComponentItemTooltip(r,l,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(r,n){var i=r.get("showDelay");n=_t(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},t.prototype._showAxisTooltip=function(r,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=hl([n.tooltipOption],a),l=this._renderMode,u=[],f=Mu("section",{blocks:[],noHeader:!0}),c=[],d=new zv;R(r,function(y){R(y.dataByAxis,function(_){var b=i.getComponent(_.axisDim+"Axis",_.axisIndex),x=_.value;if(!(!b||x==null)){var w=uL(x,b.axis,i,_.seriesDataIndices,_.valueLabelOpt),S=Mu("section",{header:w,noHeader:!zn(w),sortBlocks:!0,blocks:[]});f.blocks.push(S),R(_.seriesDataIndices,function(C){var T=i.getSeriesByIndex(C.seriesIndex),E=C.dataIndexInside,A=T.getDataParams(E);if(!(A.dataIndex<0)){A.axisDim=_.axisDim,A.axisIndex=_.axisIndex,A.axisType=_.axisType,A.axisId=_.axisId,A.axisValue=D0(b.axis,{value:x}),A.axisValueLabel=w,A.marker=d.makeTooltipMarker("item",Su(A.color),l);var M=ex(T.formatTooltip(E,!0,null)),D=M.frag;if(D){var O=hl([T],a).get("valueFormatter");S.blocks.push(O?oe({valueFormatter:O},D):D)}M.text&&c.push(M.text),u.push(A)}})}})}),f.blocks.reverse(),c.reverse();var h=n.position,v=s.get("order"),p=ax(f,d,l,v,i.get("useUTC"),s.get("textStyle"));p&&c.unshift(p);var g=l==="richText"?`
 
-`:"<br/>",m=c.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],h,null,d)})},t.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=lt(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,d=u.getData(c),h=this._renderMode,v=r.positionDefault,p=hl([d.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var m=u.getDataParams(f,c),y=new zv;m.marker=y.makeTooltipMarker("item",Su(m.color),h);var _=ex(u.formatTooltip(f,!1,c)),b=p.get("order"),x=p.get("valueFormatter"),w=_.frag,S=w?ax(x?oe({valueFormatter:x},w):w,y,h,b,a.get("useUTC"),p.get("textStyle")):_.text,C="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,S,m,C,r.offsetX,r.offsetY,r.position,r.target,y)}),i({type:"showTip",dataIndexInside:f,dataIndex:d.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,n,i){var a=lt(n),o=a.tooltipConfig,s=o.option||{};if(Ce(s)){var l=s;s={content:l,formatter:l}}var u=[s],f=this._ecModel.getComponent(a.componentMainType,a.componentIndex);f&&u.push(f),u.push({formatter:s.content});var c=r.positionDefault,d=hl(u,this._tooltipModel,c?{position:c}:null),h=d.get("content"),v=Math.random()+"",p=new zv;this._showOrMove(d,function(){var g=Xe(d.get("formatterParams")||{});this._showTooltipContent(d,h,g,v,r.offsetX,r.offsetY,r.position,n,p)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,n,i,a,o,s,l,u,f){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var c=this._tooltipContent;c.setEnterable(r.get("enterable"));var d=r.get("formatter");l=l||r.get("position");var h=n,v=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor")),p=v.color;if(d)if(Ce(d)){var g=r.ecModel.get("useUTC"),m=ge(i)?i[0]:i,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;h=d,y&&(h=sh(m.axisValue,h,g)),h=aE(h,i,!0)}else if(We(d)){var _=yt(function(b,x){b===this._ticket&&(c.setContent(x,f,r,p,l),this._updatePosition(r,l,o,s,c,i,u))},this);this._ticket=a,h=d(i,a,_)}else h=d;c.setContent(h,f,r,p,l),c.show(r,p),this._updatePosition(r,l,o,s,c,i,u)}},t.prototype._getNearestPoint=function(r,n,i,a){if(i==="axis"||ge(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!ge(n))return{color:a||n.color||n.borderColor}},t.prototype._updatePosition=function(r,n,i,a,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||r.get("position");var c=o.getSize(),d=r.get("align"),h=r.get("verticalAlign"),v=l&&l.getBoundingRect().clone();if(l&&v.applyTransform(l.transform),We(n)&&(n=n([i,a],s,o.el,v,{viewSize:[u,f],contentSize:c.slice()})),ge(n))i=pt(n[0],u),a=pt(n[1],f);else if(Pe(n)){var p=n;p.width=c[0],p.height=c[1];var g=Ms(p,{width:u,height:f});i=g.x,a=g.y,d=null,h=null}else if(Ce(n)&&l){var m=WJ(n,v,c,r.get("borderWidth"));i=m[0],a=m[1]}else{var m=HJ(i,a,o,u,f,d?null:20,h?null:20);i=m[0],a=m[1]}if(d&&(i-=zS(d)?c[0]/2:d==="right"?c[0]:0),h&&(a-=zS(h)?c[1]/2:h==="bottom"?c[1]:0),hL(r)){var m=zJ(i,a,o,u,f);i=m[0],a=m[1]}o.moveTo(i,a)},t.prototype._updateContentNotChangedOnAxis=function(r,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===r.length;return o&&R(i,function(s,l){var u=s.dataByAxis||[],f=r[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&R(u,function(d,h){var v=c[h]||{},p=d.seriesDataIndices||[],g=v.seriesDataIndices||[];o=o&&d.value===v.value&&d.axisType===v.axisType&&d.axisId===v.axisId&&p.length===g.length,o&&R(p,function(m,y){var _=g[y];o=o&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),a&&R(d.seriesDataIndices,function(m){var y=m.seriesIndex,_=n[y],b=a[y];_&&b&&b.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},t.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},t.prototype.dispose=function(r,n){Ve.node||!n.getDom()||(Xg(this,"_updatePosition"),this._tooltipContent.dispose(),dm("itemTooltip",n))},t.type="tooltip",t}(_i);function hl(e,t,r){var n=t.ecModel,i;r?(i=new er(r,n,n),i=new er(t.option,i,n)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof er&&(o=o.get("tooltip",!0)),Ce(o)&&(o={formatter:o}),o&&(i=new er(o,i,n)))}return i}function HS(e,t){return e.dispatchAction||yt(t.dispatchAction,t)}function HJ(e,t,r,n,i,a,o){var s=r.getSize(),l=s[0],u=s[1];return a!=null&&(e+l+a+2>n?e-=l+a:e+=a),o!=null&&(t+u+o>i?t-=u+o:t+=o),[e,t]}function zJ(e,t,r,n,i){var a=r.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,n)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function WJ(e,t,r,n){var i=r[0],a=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,f=t.height;switch(e){case"inside":s=t.x+u/2-i/2,l=t.y+f/2-a/2;break;case"top":s=t.x+u/2-i/2,l=t.y-a-o;break;case"bottom":s=t.x+u/2-i/2,l=t.y+f+o;break;case"left":s=t.x-i-o,l=t.y+f/2-a/2;break;case"right":s=t.x+u+o,l=t.y+f/2-a/2}return[s,l]}function zS(e){return e==="center"||e==="middle"}function VJ(e,t,r){var n=Vy(e).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=Uu(t,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=lt(u).tooltipConfig;if(f&&f.name===e.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}const GJ=$J;function UJ(e){na(dL),e.registerComponentModel(CJ),e.registerComponentView(GJ),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Sr),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Sr)}var YJ=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(bt),qJ=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){if(this.group.removeAll(),!!r.get("show")){var a=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),u=qe(r.get("textBaseline"),r.get("textVerticalAlign")),f=new fr({style:ra(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),d=r.get("subtext"),h=new fr({style:ra(s,{text:d,fill:s.getTextColor(),y:c.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),v=r.get("link"),p=r.get("sublink"),g=r.get("triggerEvent",!0);f.silent=!v&&!g,h.silent=!p&&!g,v&&f.on("click",function(){Nw(v,"_"+r.get("target"))}),p&&h.on("click",function(){Nw(p,"_"+r.get("subtarget"))}),lt(f).eventData=lt(h).eventData=g?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(f),d&&a.add(h);var m=a.getBoundingRect(),y=r.getBoxLayoutParams();y.width=m.width,y.height=m.height;var _=Ms(y,{width:i.getWidth(),height:i.getHeight()},r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),a.x=_.x,a.y=_.y,a.markRedraw();var b={align:l,verticalAlign:u};f.setStyle(b),h.setStyle(b),m=a.getBoundingRect();var x=_.margin,w=r.getItemStyle(["color","opacity"]);w.fill=r.get("backgroundColor");var S=new Nt({shape:{x:m.x-x[3],y:m.y-x[0],width:m.width+x[1]+x[3],height:m.height+x[0]+x[2],r:r.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});a.add(S)}},t.type="title",t}(_i);function jJ(e){e.registerComponentModel(YJ),e.registerComponentView(qJ)}var KJ=function(e,t){if(t==="all")return{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}},XJ=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),r.selected=r.selected||{},this._updateSelector(r)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},t.prototype._updateSelector=function(r){var n=r.selector,i=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),ge(n)&&R(n,function(a,o){Ce(a)&&(a={type:a}),n[o]=it(a,KJ(i,a.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var n=!1,i=0;i<r.length;i++){var a=r[i].get("name");if(this.isSelected(a)){this.select(a),n=!0;break}}!n&&this.select(r[0].get("name"))}},t.prototype._updateData=function(r){var n=[],i=[];r.eachRawSeries(function(l){var u=l.name;i.push(u);var f;if(l.legendVisualProvider){var c=l.legendVisualProvider,d=c.getAllNames();r.isSeriesFiltered(l)||(i=i.concat(d)),d.length?n=n.concat(d):f=!0}else f=!0;f&&Wy(l)&&n.push(l.name)}),this._availableNames=i;var a=this.get("data")||n,o=Ge(),s=Oe(a,function(l){return(Ce(l)||_t(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new er(l,this,this.ecModel))},this);this._data=Ft(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(r){var n=this.option.selected,i=this.get("selectedMode");if(i==="single"){var a=this._data;R(a,function(o){n[o.get("name")]=!1})}n[r]=!0},t.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},t.prototype.toggleSelected=function(r){var n=this.option.selected;n.hasOwnProperty(r)||(n[r]=!0),this[n[r]?"unSelect":"select"](r)},t.prototype.allSelect=function(){var r=this._data,n=this.option.selected;R(r,function(i){n[i.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;R(r,function(i){var a=i.get("name",!0);n.hasOwnProperty(a)||(n[a]=!0),n[a]=!n[a]})},t.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&nt(this._availableNames,r)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(bt);const hm=XJ;var Ho=Dt,vm=R,rc=sn,ZJ=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!1,r}return t.prototype.init=function(){this.group.add(this._contentGroup=new rc),this.group.add(this._selectorGroup=new rc),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(r,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,i,l,s,u);var f=r.getBoxLayoutParams(),c={width:i.getWidth(),height:i.getHeight()},d=r.get("padding"),h=Ms(f,c,d),v=this.layoutInner(r,o,h,a,l,u),p=Ms(ut({width:v.width,height:v.height},f),c,d);this.group.x=p.x-v.x,this.group.y=p.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=xJ(v,r))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this.getContentGroup(),f=Ge(),c=n.get("selectedMode"),d=[];i.eachRawSeries(function(h){!h.get("legendHoverLink")&&d.push(h.id)}),vm(n.getData(),function(h,v){var p=h.get("name");if(!this.newlineDisabled&&(p===""||p===`
-`)){var g=new rc;g.newline=!0,u.add(g);return}var m=i.getSeriesByName(p)[0];if(!f.get(p))if(m){var y=m.getData(),_=y.getVisual("legendLineStyle")||{},b=y.getVisual("legendIcon"),x=y.getVisual("style"),w=this._createItem(m,p,v,h,n,r,_,x,b,c,a);w.on("click",Ho(WS,p,null,a,d)).on("mouseover",Ho(pm,m.name,null,a,d)).on("mouseout",Ho(gm,m.name,null,a,d)),f.set(p,!0)}else i.eachRawSeries(function(S){if(!f.get(p)&&S.legendVisualProvider){var C=S.legendVisualProvider;if(!C.containName(p))return;var T=C.indexOfName(p),E=C.getItemVisual(T,"style"),A=C.getItemVisual(T,"legendIcon"),M=to(E.fill);M&&M[3]===0&&(M[3]=.2,E=oe(oe({},E),{fill:Ny(M,"rgba")}));var D=this._createItem(S,p,v,h,n,r,{},E,A,c,a);D.on("click",Ho(WS,null,p,a,d)).on("mouseover",Ho(pm,null,p,a,d)).on("mouseout",Ho(gm,null,p,a,d)),f.set(p,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},t.prototype._createSelector=function(r,n,i,a,o){var s=this.getSelectorGroup();vm(r,function(u){var f=u.type,c=new fr({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(c);var d=n.getModel("selectorLabel"),h=n.getModel(["emphasis","selectorLabel"]);i0(c,{normal:d,emphasis:h},{defaultText:u.title}),Fg(c)})},t.prototype._createItem=function(r,n,i,a,o,s,l,u,f,c,d){var h=r.visualDrawType,v=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(n),m=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var b=QJ(f,a,l,u,h,g,d),x=new rc,w=a.getModel("textStyle");if(We(r.getLegendIcon)&&(!_||_==="inherit"))x.add(r.getLegendIcon({itemWidth:v,itemHeight:p,icon:f,iconRotate:m,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:y}));else{var S=_==="inherit"&&r.getData().getVisual("symbol")?m==="inherit"?r.getData().getVisual("symbolRotate"):m:0;x.add(JJ({itemWidth:v,itemHeight:p,icon:f,iconRotate:S,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:y}))}var C=s==="left"?v+5:-5,T=s,E=o.get("formatter"),A=n;Ce(E)&&E?A=E.replace("{name}",n??""):We(E)&&(A=E(n));var M=a.get("inactiveColor");x.add(new fr({style:ra(w,{text:A,x:C,y:p/2,fill:g?w.getTextColor():M,align:T,verticalAlign:"middle"})}));var D=new Nt({shape:x.getBoundingRect(),invisible:!0}),O=a.getModel("tooltip");return O.get("show")&&r0({el:D,componentModel:o,itemName:n,itemTooltipOption:O.option}),x.add(D),x.eachChild(function(k){k.silent=!0}),D.silent=!c,this.getContentGroup().add(x),Fg(x),x.__legendDataIndex=i,x},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Yl(r.get("orient"),l,r.get("itemGap"),i.width,i.height);var f=l.getBoundingRect(),c=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){Yl("horizontal",u,r.get("selectorItemGap",!0));var d=u.getBoundingRect(),h=[-d.x,-d.y],v=r.get("selectorButtonGap",!0),p=r.getOrient().index,g=p===0?"width":"height",m=p===0?"height":"width",y=p===0?"y":"x";s==="end"?h[p]+=f[g]+v:c[p]+=d[g]+v,h[1-p]+=f[m]/2-d[m]/2,u.x=h[0],u.y=h[1],l.x=c[0],l.y=c[1];var _={x:0,y:0};return _[g]=f[g]+v+d[g],_[m]=Math.max(f[m],d[m]),_[y]=Math.min(0,d[y]+h[1-p]),_}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(_i);function QJ(e,t,r,n,i,a,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),vm(g,function(y,_){g[_]==="inherit"&&(g[_]=m[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),f=e.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?n.decal:tm(c,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[f]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:r).opacity),s(u,n);var d=t.getModel("lineStyle"),h=d.getLineStyle();if(s(h,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),h.stroke==="auto"&&(h.stroke=n.fill),!a){var v=t.get("inactiveBorderWidth"),p=u[f];u.lineWidth=v==="auto"?n.lineWidth>0&&p?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),h.stroke=d.get("inactiveColor"),h.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function JJ(e){var t=e.icon||"roundRect",r=w0(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return r.setStyle(e.itemStyle),r.rotation=(e.iconRotate||0)*Math.PI/180,r.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r}function WS(e,t,r,n){gm(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e??t}),pm(e,t,r,n)}function mL(e){for(var t=e.getZr().storage.getDisplayList(),r,n=0,i=t.length;n<i&&!(r=t[n].states.emphasis);)n++;return r&&r.hoverLayer}function pm(e,t,r,n){mL(r)||r.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:n})}function gm(e,t,r,n){mL(r)||r.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:n})}const yL=ZJ;function eee(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries(function(r){for(var n=0;n<t.length;n++)if(!t[n].isSelected(r.name))return!1;return!0})}function vl(e,t,r){var n={},i=e==="toggleSelected",a;return r.eachComponent("legend",function(o){i&&a!=null?o[a?"select":"unSelect"](t.name):e==="allSelect"||e==="inverseSelect"?o[e]():(o[e](t.name),a=o.isSelected(t.name));var s=o.getData();R(s,function(l){var u=l.get("name");if(!(u===`
-`||u==="")){var f=o.isSelected(u);n.hasOwnProperty(u)?n[u]=n[u]&&f:n[u]=f}})}),e==="allSelect"||e==="inverseSelect"?{selected:n}:{name:t.name,selected:n}}function tee(e){e.registerAction("legendToggleSelect","legendselectchanged",Dt(vl,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",Dt(vl,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",Dt(vl,"inverseSelect")),e.registerAction("legendSelect","legendselected",Dt(vl,"select")),e.registerAction("legendUnSelect","legendunselected",Dt(vl,"unSelect"))}function _L(e){e.registerComponentModel(hm),e.registerComponentView(yL),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,eee),e.registerSubTypeDefaulter("legend",function(){return"plain"}),tee(e)}var ree=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},t.prototype.init=function(r,n,i){var a=hh(r);e.prototype.init.call(this,r,n,i),VS(this,r,a)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),VS(this,this.option,r)},t.type="legend.scroll",t.defaultOption=Y2(hm.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(hm);function VS(e,t,r){var n=e.getOrient(),i=[1,1];i[n.index]=0,As(t,r,{type:"box",ignoreSize:!!i})}const nee=ree;var GS=sn,dp=["width","height"],hp=["x","y"],iee=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!0,r._currentIndex=0,r}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new GS),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new GS)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this;e.prototype.renderInner.call(this,r,n,i,a,o,s,l);var f=this._controllerGroup,c=n.get("pageIconSize",!0),d=ge(c)?c:[c,c];v("pagePrev",0);var h=n.getModel("pageTextStyle");f.add(new fr({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),v("pageNext",1);function v(p,g){var m=p+"DataIndex",y=t0(n.get("pageIcons",!0)[n.getOrient().name][g],{onclick:yt(u._pageGo,u,m,n,a)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});y.name=p,f.add(y)}},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,f=dp[u],c=hp[u],d=dp[1-u],h=hp[1-u];o&&Yl("horizontal",l,r.get("selectorItemGap",!0));var v=r.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],m=Xe(i);o&&(m[f]=i[f]-p[f]-v);var y=this._layoutContentAndController(r,a,m,u,f,d,h,c);if(o){if(s==="end")g[u]+=y[f]+v;else{var _=p[f]+v;g[u]-=_,y[c]-=_}y[f]+=p[f]+v,g[1-u]+=y[h]+y[d]/2-p[d]/2,y[d]=Math.max(y[d],p[d]),y[h]=Math.min(y[h],p[h]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return y},t.prototype._layoutContentAndController=function(r,n,i,a,o,s,l,u){var f=this.getContentGroup(),c=this._containerGroup,d=this._controllerGroup;Yl(r.get("orient"),f,r.get("itemGap"),a?i.width:null,a?null:i.height),Yl("horizontal",d,r.get("pageButtonItemGap",!0));var h=f.getBoundingRect(),v=d.getBoundingRect(),p=this._showController=h[o]>i[o],g=[-h.x,-h.y];n||(g[a]=f[u]);var m=[0,0],y=[-v.x,-v.y],_=qe(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(p){var b=r.get("pageButtonPosition",!0);b==="end"?y[a]+=i[o]-v[o]:m[a]+=v[o]+_}y[1-a]+=h[s]/2-v[s]/2,f.setPosition(g),c.setPosition(m),d.setPosition(y);var x={x:0,y:0};if(x[o]=p?i[o]:h[o],x[s]=Math.max(h[s],v[s]),x[l]=Math.min(0,v[l]+y[1-a]),c.__rectSize=i[o],p){var w={x:0,y:0};w[o]=Math.max(i[o]-v[o]-_,0),w[s]=x[s],c.setClipPath(new Nt({shape:w})),c.__rectSize=w[o]}else d.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var S=this._getPageInfo(r);return S.pageIndex!=null&&Mr(f,{x:S.contentPosition[0],y:S.contentPosition[1]},p?r:null),this._updatePageInfoView(r,S),x},t.prototype._pageGo=function(r,n,i){var a=this._getPageInfo(n)[r];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},t.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;R(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",d=n[c]!=null,h=i.childOfName(f);h&&(h.setStyle("fill",d?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),h.cursor=d?"pointer":"default")});var a=i.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",Ce(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=dp[o],l=hp[o],u=this._findTargetItemIndex(n),f=i.children(),c=f[u],d=f.length,h=d?1:0,v={contentPosition:[i.x,i.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return v;var p=b(c);v.contentPosition[o]=-p.s;for(var g=u+1,m=p,y=p,_=null;g<=d;++g)_=b(f[g]),(!_&&y.e>m.s+a||_&&!x(_,m.s))&&(y.i>m.i?m=y:m=_,m&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=m.i),++v.pageCount)),y=_;for(var g=u-1,m=p,y=p,_=null;g>=-1;--g)_=b(f[g]),(!_||!x(y,_.s))&&m.i<y.i&&(y=m,v.pagePrevDataIndex==null&&(v.pagePrevDataIndex=m.i),++v.pageCount,++v.pageIndex),m=_;return v;function b(w){if(w){var S=w.getBoundingRect(),C=S[l]+w[l];return{s:C,e:C+S[s],i:w.__legendDataIndex}}}function x(w,S){return w.e>=S&&w.s<=S+a}},t.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===r&&(n=s)}),n??a},t.type="legend.scroll",t}(yL);const aee=iee;function oee(e){e.registerAction("legendScroll","legendscroll",function(t,r){var n=t.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(n)})})}function see(e){na(_L),e.registerComponentModel(nee),e.registerComponentView(aee),oee(e)}function lee(e){na(_L),na(see)}na([rQ,HZ,YQ,vZ,jJ,UJ,lee,wJ]);function uee(e,t,r){const n=T0(document.getElementById(e),"macarons");n.showLoading();const i={title:{text:"Network Traffic",subtext:"today",left:"center"},tooltip:{trigger:"item",formatter:function(a){return Ji.fileSize(a.data.value)+" ("+a.percent+"%)"}},legend:{orient:"vertical",left:"left",data:["Traffic In","Traffic Out"]},series:[{type:"pie",radius:"55%",center:["50%","60%"],data:[{value:t,name:"Traffic In"},{value:r,name:"Traffic Out"}],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]};n.setOption(i),n.hideLoading()}function fee(e,t){const r=T0(document.getElementById(e),"macarons");r.showLoading();const n={title:{text:"Proxies",subtext:"now",left:"center"},tooltip:{trigger:"item",formatter:function(i){return String(i.data.value)}},legend:{orient:"vertical",left:"left",data:[]},series:[{type:"pie",radius:"55%",center:["50%","60%"],data:[],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]};t.proxy_type_count.tcp!=null&&t.proxy_type_count.tcp!=0&&(n.series[0].data.push({value:t.proxy_type_count.tcp,name:"TCP"}),n.legend.data.push("TCP")),t.proxy_type_count.udp!=null&&t.proxy_type_count.udp!=0&&(n.series[0].data.push({value:t.proxy_type_count.udp,name:"UDP"}),n.legend.data.push("UDP")),t.proxy_type_count.http!=null&&t.proxy_type_count.http!=0&&(n.series[0].data.push({value:t.proxy_type_count.http,name:"HTTP"}),n.legend.data.push("HTTP")),t.proxy_type_count.https!=null&&t.proxy_type_count.https!=0&&(n.series[0].data.push({value:t.proxy_type_count.https,name:"HTTPS"}),n.legend.data.push("HTTPS")),t.proxy_type_count.stcp!=null&&t.proxy_type_count.stcp!=0&&(n.series[0].data.push({value:t.proxy_type_count.stcp,name:"STCP"}),n.legend.data.push("STCP")),t.proxy_type_count.sudp!=null&&t.proxy_type_count.sudp!=0&&(n.series[0].data.push({value:t.proxy_type_count.sudp,name:"SUDP"}),n.legend.data.push("SUDP")),t.proxy_type_count.xtcp!=null&&t.proxy_type_count.xtcp!=0&&(n.series[0].data.push({value:t.proxy_type_count.xtcp,name:"XTCP"}),n.legend.data.push("XTCP")),r.setOption(n),r.hideLoading()}function cee(e,t,r){const n={width:"600px",height:"400px"},i=T0(document.getElementById(e),"macarons",n);i.showLoading(),t=t.reverse(),r=r.reverse();let a=new Date;a=new Date(a.getFullYear(),a.getMonth(),a.getDate()-6);const o=[];for(let l=0;l<7;l++)o.push(a.getFullYear()+"-"+(a.getMonth()+1)+"-"+a.getDate()),a=new Date(a.getFullYear(),a.getMonth(),a.getDate()+1);const s={tooltip:{trigger:"axis",axisPointer:{type:"shadow"},formatter:function(l){let u="";l.length>0&&(u+=l[0].name+"<br/>");for(const f of l){const c='<span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:'+f.color+'"></span>';u+=c+f.seriesName+": "+Ji.fileSize(f.value)+"<br/>"}return u}},legend:{data:["Traffic In","Traffic Out"]},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",data:o}],yAxis:[{type:"value",axisLabel:{formatter:function(l){return Ji.fileSize(l)}}}],series:[{name:"Traffic In",type:"bar",data:t},{name:"Traffic Out",type:"bar",data:r}]};i.setOption(s),i.hideLoading()}const dee={class:"source"},hee=le("div",{id:"traffic",style:{width:"400px",height:"250px","margin-bottom":"30px"}},null,-1),vee=le("div",{id:"proxies",style:{width:"400px",height:"250px"}},null,-1),pee=ue({__name:"ServerOverview",setup(e){let t=H({version:"",bind_port:"",bind_udp_port:"",vhost_http_port:"",vhost_https_port:"",subdomain_host:"",max_pool_count:"",max_ports_per_client:"",heart_beat_timeout:"",client_counts:"",cur_conns:"",proxy_counts:0});return(()=>{fetch("../api/serverinfo",{credentials:"include"}).then(n=>n.json()).then(n=>{t.value.version=n.version,t.value.bind_port=n.bind_port,t.value.bind_udp_port=n.bind_udp_port,t.value.bind_udp_port=="0"&&(t.value.bind_udp_port="disable"),t.value.vhost_http_port=n.vhost_http_port,t.value.vhost_http_port=="0"&&(t.value.vhost_http_port="disable"),t.value.vhost_https_port=n.vhost_https_port,t.value.vhost_https_port=="0"&&(t.value.vhost_https_port="disable"),t.value.subdomain_host=n.subdomain_host,t.value.max_pool_count=n.max_pool_count,t.value.max_ports_per_client=n.max_ports_per_client,t.value.max_ports_per_client=="0"&&(t.value.max_ports_per_client="no limit"),t.value.heart_beat_timeout=n.heart_beat_timeout,t.value.client_counts=n.client_counts,t.value.cur_conns=n.cur_conns,t.value.proxy_counts=0,n.proxy_type_count!=null&&(n.proxy_type_count.tcp!=null&&(t.value.proxy_counts+=n.proxy_type_count.tcp),n.proxy_type_count.udp!=null&&(t.value.proxy_counts+=n.proxy_type_count.udp),n.proxy_type_count.http!=null&&(t.value.proxy_counts+=n.proxy_type_count.http),n.proxy_type_count.https!=null&&(t.value.proxy_counts+=n.proxy_type_count.https),n.proxy_type_count.stcp!=null&&(t.value.proxy_counts+=n.proxy_type_count.stcp),n.proxy_type_count.sudp!=null&&(t.value.proxy_counts+=n.proxy_type_count.sudp),n.proxy_type_count.xtcp!=null&&(t.value.proxy_counts+=n.proxy_type_count.xtcp)),uee("traffic",n.total_traffic_in,n.total_traffic_out),fee("proxies",n)}).catch(()=>{UM({showClose:!0,message:"Get server info from frps failed!",type:"warning"})})})(),(n,i)=>{const a=AM,o=MM,s=SM,l=IM;return X(),Se("div",null,[J(l,null,{default:ee(()=>[J(s,{md:12},{default:ee(()=>[le("div",dee,[J(o,{"label-position":"left","label-width":"160px",class:"server_info"},{default:ee(()=>[J(a,{label:"Version"},{default:ee(()=>[le("span",null,Re(L(t).version),1)]),_:1}),J(a,{label:"BindPort"},{default:ee(()=>[le("span",null,Re(L(t).bind_port),1)]),_:1}),J(a,{label:"BindUdpPort"},{default:ee(()=>[le("span",null,Re(L(t).bind_udp_port),1)]),_:1}),J(a,{label:"Http Port"},{default:ee(()=>[le("span",null,Re(L(t).vhost_http_port),1)]),_:1}),J(a,{label:"Https Port"},{default:ee(()=>[le("span",null,Re(L(t).vhost_https_port),1)]),_:1}),J(a,{label:"Subdomain Host"},{default:ee(()=>[le("span",null,Re(L(t).subdomain_host),1)]),_:1}),J(a,{label:"Max PoolCount"},{default:ee(()=>[le("span",null,Re(L(t).max_pool_count),1)]),_:1}),J(a,{label:"Max Ports Per Client"},{default:ee(()=>[le("span",null,Re(L(t).max_ports_per_client),1)]),_:1}),J(a,{label:"HeartBeat Timeout"},{default:ee(()=>[le("span",null,Re(L(t).heart_beat_timeout),1)]),_:1}),J(a,{label:"Client Counts"},{default:ee(()=>[le("span",null,Re(L(t).client_counts),1)]),_:1}),J(a,{label:"Current Connections"},{default:ee(()=>[le("span",null,Re(L(t).cur_conns),1)]),_:1}),J(a,{label:"Proxy Counts"},{default:ee(()=>[le("span",null,Re(L(t).proxy_counts),1)]),_:1})]),_:1})])]),_:1}),J(s,{md:12},{default:ee(()=>[hee,vee]),_:1})]),_:1})])}}});class zs{constructor(t){Wt(this,"name");Wt(this,"type");Wt(this,"encryption");Wt(this,"compression");Wt(this,"conns");Wt(this,"traffic_in");Wt(this,"traffic_out");Wt(this,"last_start_time");Wt(this,"last_close_time");Wt(this,"status");Wt(this,"addr");Wt(this,"port");Wt(this,"custom_domains");Wt(this,"host_header_rewrite");Wt(this,"locations");Wt(this,"subdomain");this.name=t.name,this.type="",t.conf!=null?(this.encryption=t.conf.use_encryption,this.compression=t.conf.use_compression):(this.encryption=!1,this.compression=!1),this.conns=t.cur_conns,this.traffic_in=t.today_traffic_in,this.traffic_out=t.today_traffic_out,this.last_start_time=t.last_start_time,this.last_close_time=t.last_close_time,this.status=t.status,this.addr="",this.port=0,this.custom_domains="",this.host_header_rewrite="",this.locations="",this.subdomain=""}}class gee extends zs{constructor(t){super(t),this.type="tcp",t.conf!=null?(this.addr=":"+t.conf.remote_port,this.port=t.conf.remote_port):(this.addr="",this.port=0)}}class mee extends zs{constructor(t){super(t),this.type="udp",t.conf!=null?(this.addr=":"+t.conf.remote_port,this.port=t.conf.remote_port):(this.addr="",this.port=0)}}class yee extends zs{constructor(t,r,n){super(t),this.type="http",this.port=r,t.conf!=null?(this.custom_domains=t.conf.custom_domains,this.host_header_rewrite=t.conf.host_header_rewrite,this.locations=t.conf.locations,t.conf.subdomain!=""?this.subdomain=t.conf.subdomain+"."+n:this.subdomain=""):(this.custom_domains="",this.host_header_rewrite="",this.subdomain="",this.locations="")}}class _ee extends zs{constructor(t,r,n){super(t),this.type="https",this.port=r,t.conf!=null?(this.custom_domains=t.conf.custom_domains,t.conf.subdomain!=""?this.subdomain=t.conf.subdomain+"."+n:this.subdomain=""):(this.custom_domains="",this.subdomain="")}}class bee extends zs{constructor(t){super(t),this.type="stcp"}}class wee extends zs{constructor(t){super(t),this.type="sudp"}}const xee=["id"],See=ue({__name:"Traffic",props:{proxy_name:null},setup(e){const t=e;return(()=>{let n="../api/traffic/"+t.proxy_name;fetch(n,{credentials:"include"}).then(i=>i.json()).then(i=>{cee(t.proxy_name,i.traffic_in,i.traffic_out)}).catch(i=>{UM({showClose:!0,message:"Get traffic info failed!"+i,type:"warning"})})})(),(n,i)=>(X(),Se("div",{id:e.proxy_name,style:{width:"600px",height:"400px"}},null,8,xee))}}),Cee=ue({__name:"ProxyViewExpand",props:{row:null,proxyType:null},setup(e){return(t,r)=>{const n=AM,i=MM;return e.proxyType==="http"||e.proxyType==="https"?(X(),Ie(i,{key:0,"label-position":"left",inline:"",class:"proxy-table-expand"},{default:ee(()=>[J(n,{label:"Name"},{default:ee(()=>[le("span",null,Re(e.row.name),1)]),_:1}),J(n,{label:"Type"},{default:ee(()=>[le("span",null,Re(e.row.type),1)]),_:1}),J(n,{label:"Domains"},{default:ee(()=>[le("span",null,Re(e.row.custom_domains),1)]),_:1}),J(n,{label:"SubDomain"},{default:ee(()=>[le("span",null,Re(e.row.subdomain),1)]),_:1}),J(n,{label:"locations"},{default:ee(()=>[le("span",null,Re(e.row.locations),1)]),_:1}),J(n,{label:"HostRewrite"},{default:ee(()=>[le("span",null,Re(e.row.host_header_rewrite),1)]),_:1}),J(n,{label:"Encryption"},{default:ee(()=>[le("span",null,Re(e.row.encryption),1)]),_:1}),J(n,{label:"Compression"},{default:ee(()=>[le("span",null,Re(e.row.compression),1)]),_:1}),J(n,{label:"Last Start"},{default:ee(()=>[le("span",null,Re(e.row.last_start_time),1)]),_:1}),J(n,{label:"Last Close"},{default:ee(()=>[le("span",null,Re(e.row.last_close_time),1)]),_:1})]),_:1})):(X(),Ie(i,{key:1,"label-position":"left",inline:"",class:"proxy-table-expand"},{default:ee(()=>[J(n,{label:"Name"},{default:ee(()=>[le("span",null,Re(e.row.name),1)]),_:1}),J(n,{label:"Type"},{default:ee(()=>[le("span",null,Re(e.row.type),1)]),_:1}),J(n,{label:"Addr"},{default:ee(()=>[le("span",null,Re(e.row.addr),1)]),_:1}),J(n,{label:"Encryption"},{default:ee(()=>[le("span",null,Re(e.row.encryption),1)]),_:1}),J(n,{label:"Compression"},{default:ee(()=>[le("span",null,Re(e.row.compression),1)]),_:1}),J(n,{label:"Last Start"},{default:ee(()=>[le("span",null,Re(e.row.last_start_time),1)]),_:1}),J(n,{label:"Last Close"},{default:ee(()=>[le("span",null,Re(e.row.last_close_time),1)]),_:1})]),_:1}))}}}),Ws=ue({__name:"ProxyView",props:{proxies:null,proxyType:null},setup(e){const t=(o,s)=>Ji.fileSize(o.traffic_in),r=(o,s)=>Ji.fileSize(o.traffic_out),n=H(),i=H(),a=()=>{var o,s;(s=(o=L(i).popoverTraffic)==null?void 0:o.delayHide)==null||s.call(o)};return(o,s)=>{const l=See,u=j6,f=PH,c=sW,d=uz,h=oW,v=Rm("click-outside");return X(),Se("div",null,[J(h,{data:e.proxies,"default-sort":{prop:"name",order:"ascending"},style:{width:"100%"}},{default:ee(()=>[J(c,{type:"expand"},{default:ee(p=>[J(u,{ref_key:"popoverTraffic",ref:i,"virtual-ref":n.value,placement:"right",width:"600",style:{"margin-left":"0px"},trigger:"click","virtual-triggering":""},{default:ee(()=>[J(l,{proxy_name:p.row.name},null,8,["proxy_name"])]),_:2},1032,["virtual-ref"]),sr((X(),Ie(f,{ref_key:"buttonTraffic",ref:n,type:"primary",size:"large",name:p.row.name,style:{"margin-bottom":"10px"}},{default:ee(()=>[kt("Traffic Statistics ")]),_:2},1032,["name"])),[[v,a]]),J(Cee,{row:p.row,proxyType:e.proxyType},null,8,["row","proxyType"])]),_:1}),J(c,{label:"Name",prop:"name",sortable:""}),J(c,{label:"Port",prop:"port",sortable:""}),J(c,{label:"Connections",prop:"conns",sortable:""}),J(c,{label:"Traffic In",prop:"traffic_in",formatter:t,sortable:""}),J(c,{label:"Traffic Out",prop:"traffic_out",formatter:r,sortable:""}),J(c,{label:"status",prop:"status",sortable:""},{default:ee(p=>[p.row.status==="online"?(X(),Ie(d,{key:0,type:"success"},{default:ee(()=>[kt(Re(p.row.status),1)]),_:2},1024)):(X(),Ie(d,{key:1,type:"danger"},{default:ee(()=>[kt(Re(p.row.status),1)]),_:2},1024))]),_:1})]),_:1},8,["data"])])}}}),Tee=ue({__name:"ProxiesTCP",setup(e){let t=H([]);return(()=>{fetch("../api/proxy/tcp",{credentials:"include"}).then(n=>n.json()).then(n=>{for(let i of n.proxies)t.value.push(new gee(i))})})(),(n,i)=>(X(),Ie(Ws,{proxies:L(t),proxyType:"tcp"},null,8,["proxies"]))}}),Mee=ue({__name:"ProxiesUDP",setup(e){let t=H([]);return(()=>{fetch("../api/proxy/udp",{credentials:"include"}).then(n=>n.json()).then(n=>{for(let i of n.proxies)t.value.push(new mee(i))})})(),(n,i)=>(X(),Ie(Ws,{proxies:L(t),proxyType:"udp"},null,8,["proxies"]))}}),Aee=ue({__name:"ProxiesHTTP",setup(e){let t=H([]);return(()=>{let n,i;fetch("../api/serverinfo",{credentials:"include"}).then(a=>a.json()).then(a=>{n=a.vhost_http_port,i=a.subdomain_host,!(n==null||n==0)&&fetch("../api/proxy/http",{credentials:"include"}).then(o=>o.json()).then(o=>{for(let s of o.proxies)t.value.push(new yee(s,n,i))})})})(),(n,i)=>(X(),Ie(Ws,{proxies:L(t),proxyType:"http"},null,8,["proxies"]))}}),Eee=ue({__name:"ProxiesHTTPS",setup(e){let t=H([]);return(()=>{let n,i;fetch("../api/serverinfo",{credentials:"include"}).then(a=>a.json()).then(a=>{n=a.vhost_https_port,i=a.subdomain_host,!(n==null||n==0)&&fetch("../api/proxy/https",{credentials:"include"}).then(o=>o.json()).then(o=>{for(let s of o.proxies)t.value.push(new _ee(s,n,i))})})})(),(n,i)=>(X(),Ie(Ws,{proxies:L(t),proxyType:"https"},null,8,["proxies"]))}}),Pee=ue({__name:"ProxiesSTCP",setup(e){let t=H([]);return(()=>{fetch("../api/proxy/stcp",{credentials:"include"}).then(n=>n.json()).then(n=>{for(let i of n.proxies)t.value.push(new bee(i))})})(),(n,i)=>(X(),Ie(Ws,{proxies:L(t),proxyType:"stcp"},null,8,["proxies"]))}}),Lee=ue({__name:"ProxiesSUDP",setup(e){let t=H([]);return(()=>{fetch("../api/proxy/sudp",{credentials:"include"}).then(n=>n.json()).then(n=>{for(let i of n.proxies)t.value.push(new wee(i))})})(),(n,i)=>(X(),Ie(Ws,{proxies:L(t),proxyType:"sudp"},null,8,["proxies"]))}}),Dee=LV({history:YW(),routes:[{path:"/",name:"ServerOverview",component:pee},{path:"/proxies/tcp",name:"ProxiesTCP",component:Tee},{path:"/proxies/udp",name:"ProxiesUDP",component:Mee},{path:"/proxies/http",name:"ProxiesHTTP",component:Aee},{path:"/proxies/https",name:"ProxiesHTTPS",component:Eee},{path:"/proxies/stcp",name:"ProxiesSTCP",component:Pee},{path:"/proxies/sudp",name:"ProxiesSUDP",component:Lee}]}),bL=eR(AW);bL.use(Dee);bL.mount("#app")});export default Iee();
+`:"<br/>",m=c.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],h,null,d)})},t.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=ut(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,d=u.getData(c),h=this._renderMode,v=r.positionDefault,p=hl([d.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var m=u.getDataParams(f,c),y=new zv;m.marker=y.makeTooltipMarker("item",Su(m.color),h);var _=ex(u.formatTooltip(f,!1,c)),b=p.get("order"),x=p.get("valueFormatter"),w=_.frag,S=w?ax(x?oe({valueFormatter:x},w):w,y,h,b,a.get("useUTC"),p.get("textStyle")):_.text,C="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,S,m,C,r.offsetX,r.offsetY,r.position,r.target,y)}),i({type:"showTip",dataIndexInside:f,dataIndex:d.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,n,i){var a=ut(n),o=a.tooltipConfig,s=o.option||{};if(Te(s)){var l=s;s={content:l,formatter:l}}var u=[s],f=this._ecModel.getComponent(a.componentMainType,a.componentIndex);f&&u.push(f),u.push({formatter:s.content});var c=r.positionDefault,d=hl(u,this._tooltipModel,c?{position:c}:null),h=d.get("content"),v=Math.random()+"",p=new zv;this._showOrMove(d,function(){var g=Ze(d.get("formatterParams")||{});this._showTooltipContent(d,h,g,v,r.offsetX,r.offsetY,r.position,n,p)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,n,i,a,o,s,l,u,f){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var c=this._tooltipContent;c.setEnterable(r.get("enterable"));var d=r.get("formatter");l=l||r.get("position");var h=n,v=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor")),p=v.color;if(d)if(Te(d)){var g=r.ecModel.get("useUTC"),m=ge(i)?i[0]:i,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;h=d,y&&(h=sh(m.axisValue,h,g)),h=oE(h,i,!0)}else if(We(d)){var _=_t(function(b,x){b===this._ticket&&(c.setContent(x,f,r,p,l),this._updatePosition(r,l,o,s,c,i,u))},this);this._ticket=a,h=d(i,a,_)}else h=d;c.setContent(h,f,r,p,l),c.show(r,p),this._updatePosition(r,l,o,s,c,i,u)}},t.prototype._getNearestPoint=function(r,n,i,a){if(i==="axis"||ge(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!ge(n))return{color:a||n.color||n.borderColor}},t.prototype._updatePosition=function(r,n,i,a,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||r.get("position");var c=o.getSize(),d=r.get("align"),h=r.get("verticalAlign"),v=l&&l.getBoundingRect().clone();if(l&&v.applyTransform(l.transform),We(n)&&(n=n([i,a],s,o.el,v,{viewSize:[u,f],contentSize:c.slice()})),ge(n))i=pt(n[0],u),a=pt(n[1],f);else if(De(n)){var p=n;p.width=c[0],p.height=c[1];var g=Ms(p,{width:u,height:f});i=g.x,a=g.y,d=null,h=null}else if(Te(n)&&l){var m=VJ(n,v,c,r.get("borderWidth"));i=m[0],a=m[1]}else{var m=zJ(i,a,o,u,f,d?null:20,h?null:20);i=m[0],a=m[1]}if(d&&(i-=zS(d)?c[0]/2:d==="right"?c[0]:0),h&&(a-=zS(h)?c[1]/2:h==="bottom"?c[1]:0),vL(r)){var m=WJ(i,a,o,u,f);i=m[0],a=m[1]}o.moveTo(i,a)},t.prototype._updateContentNotChangedOnAxis=function(r,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===r.length;return o&&R(i,function(s,l){var u=s.dataByAxis||[],f=r[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&R(u,function(d,h){var v=c[h]||{},p=d.seriesDataIndices||[],g=v.seriesDataIndices||[];o=o&&d.value===v.value&&d.axisType===v.axisType&&d.axisId===v.axisId&&p.length===g.length,o&&R(p,function(m,y){var _=g[y];o=o&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),a&&R(d.seriesDataIndices,function(m){var y=m.seriesIndex,_=n[y],b=a[y];_&&b&&b.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},t.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},t.prototype.dispose=function(r,n){Ve.node||!n.getDom()||(Xg(this,"_updatePosition"),this._tooltipContent.dispose(),dm("itemTooltip",n))},t.type="tooltip",t}(bi);function hl(e,t,r){var n=t.ecModel,i;r?(i=new tr(r,n,n),i=new tr(t.option,i,n)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof tr&&(o=o.get("tooltip",!0)),Te(o)&&(o={formatter:o}),o&&(i=new tr(o,i,n)))}return i}function HS(e,t){return e.dispatchAction||_t(t.dispatchAction,t)}function zJ(e,t,r,n,i,a,o){var s=r.getSize(),l=s[0],u=s[1];return a!=null&&(e+l+a+2>n?e-=l+a:e+=a),o!=null&&(t+u+o>i?t-=u+o:t+=o),[e,t]}function WJ(e,t,r,n,i){var a=r.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,n)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function VJ(e,t,r,n){var i=r[0],a=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,f=t.height;switch(e){case"inside":s=t.x+u/2-i/2,l=t.y+f/2-a/2;break;case"top":s=t.x+u/2-i/2,l=t.y-a-o;break;case"bottom":s=t.x+u/2-i/2,l=t.y+f+o;break;case"left":s=t.x-i-o,l=t.y+f/2-a/2;break;case"right":s=t.x+u+o,l=t.y+f/2-a/2}return[s,l]}function zS(e){return e==="center"||e==="middle"}function GJ(e,t,r){var n=Vy(e).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=Yu(t,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=ut(u).tooltipConfig;if(f&&f.name===e.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}const UJ=HJ;function YJ(e){ia(hL),e.registerComponentModel(TJ),e.registerComponentView(UJ),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Sr),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Sr)}var qJ=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(wt),jJ=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){if(this.group.removeAll(),!!r.get("show")){var a=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),u=je(r.get("textBaseline"),r.get("textVerticalAlign")),f=new fr({style:na(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),d=r.get("subtext"),h=new fr({style:na(s,{text:d,fill:s.getTextColor(),y:c.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),v=r.get("link"),p=r.get("sublink"),g=r.get("triggerEvent",!0);f.silent=!v&&!g,h.silent=!p&&!g,v&&f.on("click",function(){Nw(v,"_"+r.get("target"))}),p&&h.on("click",function(){Nw(p,"_"+r.get("subtarget"))}),ut(f).eventData=ut(h).eventData=g?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(f),d&&a.add(h);var m=a.getBoundingRect(),y=r.getBoxLayoutParams();y.width=m.width,y.height=m.height;var _=Ms(y,{width:i.getWidth(),height:i.getHeight()},r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),a.x=_.x,a.y=_.y,a.markRedraw();var b={align:l,verticalAlign:u};f.setStyle(b),h.setStyle(b),m=a.getBoundingRect();var x=_.margin,w=r.getItemStyle(["color","opacity"]);w.fill=r.get("backgroundColor");var S=new Nt({shape:{x:m.x-x[3],y:m.y-x[0],width:m.width+x[1]+x[3],height:m.height+x[0]+x[2],r:r.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});a.add(S)}},t.type="title",t}(bi);function KJ(e){e.registerComponentModel(qJ),e.registerComponentView(jJ)}var XJ=function(e,t){if(t==="all")return{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}},ZJ=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),r.selected=r.selected||{},this._updateSelector(r)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},t.prototype._updateSelector=function(r){var n=r.selector,i=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),ge(n)&&R(n,function(a,o){Te(a)&&(a={type:a}),n[o]=at(a,XJ(i,a.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var n=!1,i=0;i<r.length;i++){var a=r[i].get("name");if(this.isSelected(a)){this.select(a),n=!0;break}}!n&&this.select(r[0].get("name"))}},t.prototype._updateData=function(r){var n=[],i=[];r.eachRawSeries(function(l){var u=l.name;i.push(u);var f;if(l.legendVisualProvider){var c=l.legendVisualProvider,d=c.getAllNames();r.isSeriesFiltered(l)||(i=i.concat(d)),d.length?n=n.concat(d):f=!0}else f=!0;f&&Wy(l)&&n.push(l.name)}),this._availableNames=i;var a=this.get("data")||n,o=Ge(),s=Oe(a,function(l){return(Te(l)||bt(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new tr(l,this,this.ecModel))},this);this._data=$t(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(r){var n=this.option.selected,i=this.get("selectedMode");if(i==="single"){var a=this._data;R(a,function(o){n[o.get("name")]=!1})}n[r]=!0},t.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},t.prototype.toggleSelected=function(r){var n=this.option.selected;n.hasOwnProperty(r)||(n[r]=!0),this[n[r]?"unSelect":"select"](r)},t.prototype.allSelect=function(){var r=this._data,n=this.option.selected;R(r,function(i){n[i.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;R(r,function(i){var a=i.get("name",!0);n.hasOwnProperty(a)||(n[a]=!0),n[a]=!n[a]})},t.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&it(this._availableNames,r)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(wt);const hm=ZJ;var Ho=Dt,vm=R,nc=sn,QJ=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!1,r}return t.prototype.init=function(){this.group.add(this._contentGroup=new nc),this.group.add(this._selectorGroup=new nc),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(r,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,i,l,s,u);var f=r.getBoxLayoutParams(),c={width:i.getWidth(),height:i.getHeight()},d=r.get("padding"),h=Ms(f,c,d),v=this.layoutInner(r,o,h,a,l,u),p=Ms(ft({width:v.width,height:v.height},f),c,d);this.group.x=p.x-v.x,this.group.y=p.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=SJ(v,r))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this.getContentGroup(),f=Ge(),c=n.get("selectedMode"),d=[];i.eachRawSeries(function(h){!h.get("legendHoverLink")&&d.push(h.id)}),vm(n.getData(),function(h,v){var p=h.get("name");if(!this.newlineDisabled&&(p===""||p===`
+`)){var g=new nc;g.newline=!0,u.add(g);return}var m=i.getSeriesByName(p)[0];if(!f.get(p))if(m){var y=m.getData(),_=y.getVisual("legendLineStyle")||{},b=y.getVisual("legendIcon"),x=y.getVisual("style"),w=this._createItem(m,p,v,h,n,r,_,x,b,c,a);w.on("click",Ho(WS,p,null,a,d)).on("mouseover",Ho(pm,m.name,null,a,d)).on("mouseout",Ho(gm,m.name,null,a,d)),f.set(p,!0)}else i.eachRawSeries(function(S){if(!f.get(p)&&S.legendVisualProvider){var C=S.legendVisualProvider;if(!C.containName(p))return;var T=C.indexOfName(p),E=C.getItemVisual(T,"style"),A=C.getItemVisual(T,"legendIcon"),M=ro(E.fill);M&&M[3]===0&&(M[3]=.2,E=oe(oe({},E),{fill:Ny(M,"rgba")}));var D=this._createItem(S,p,v,h,n,r,{},E,A,c,a);D.on("click",Ho(WS,null,p,a,d)).on("mouseover",Ho(pm,null,p,a,d)).on("mouseout",Ho(gm,null,p,a,d)),f.set(p,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},t.prototype._createSelector=function(r,n,i,a,o){var s=this.getSelectorGroup();vm(r,function(u){var f=u.type,c=new fr({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(c);var d=n.getModel("selectorLabel"),h=n.getModel(["emphasis","selectorLabel"]);i0(c,{normal:d,emphasis:h},{defaultText:u.title}),Fg(c)})},t.prototype._createItem=function(r,n,i,a,o,s,l,u,f,c,d){var h=r.visualDrawType,v=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(n),m=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var b=JJ(f,a,l,u,h,g,d),x=new nc,w=a.getModel("textStyle");if(We(r.getLegendIcon)&&(!_||_==="inherit"))x.add(r.getLegendIcon({itemWidth:v,itemHeight:p,icon:f,iconRotate:m,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:y}));else{var S=_==="inherit"&&r.getData().getVisual("symbol")?m==="inherit"?r.getData().getVisual("symbolRotate"):m:0;x.add(eee({itemWidth:v,itemHeight:p,icon:f,iconRotate:S,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:y}))}var C=s==="left"?v+5:-5,T=s,E=o.get("formatter"),A=n;Te(E)&&E?A=E.replace("{name}",n??""):We(E)&&(A=E(n));var M=a.get("inactiveColor");x.add(new fr({style:na(w,{text:A,x:C,y:p/2,fill:g?w.getTextColor():M,align:T,verticalAlign:"middle"})}));var D=new Nt({shape:x.getBoundingRect(),invisible:!0}),O=a.getModel("tooltip");return O.get("show")&&r0({el:D,componentModel:o,itemName:n,itemTooltipOption:O.option}),x.add(D),x.eachChild(function(k){k.silent=!0}),D.silent=!c,this.getContentGroup().add(x),Fg(x),x.__legendDataIndex=i,x},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Yl(r.get("orient"),l,r.get("itemGap"),i.width,i.height);var f=l.getBoundingRect(),c=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){Yl("horizontal",u,r.get("selectorItemGap",!0));var d=u.getBoundingRect(),h=[-d.x,-d.y],v=r.get("selectorButtonGap",!0),p=r.getOrient().index,g=p===0?"width":"height",m=p===0?"height":"width",y=p===0?"y":"x";s==="end"?h[p]+=f[g]+v:c[p]+=d[g]+v,h[1-p]+=f[m]/2-d[m]/2,u.x=h[0],u.y=h[1],l.x=c[0],l.y=c[1];var _={x:0,y:0};return _[g]=f[g]+v+d[g],_[m]=Math.max(f[m],d[m]),_[y]=Math.min(0,d[y]+h[1-p]),_}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(bi);function JJ(e,t,r,n,i,a,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),vm(g,function(y,_){g[_]==="inherit"&&(g[_]=m[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),f=e.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?n.decal:tm(c,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[f]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:r).opacity),s(u,n);var d=t.getModel("lineStyle"),h=d.getLineStyle();if(s(h,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),h.stroke==="auto"&&(h.stroke=n.fill),!a){var v=t.get("inactiveBorderWidth"),p=u[f];u.lineWidth=v==="auto"?n.lineWidth>0&&p?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),h.stroke=d.get("inactiveColor"),h.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function eee(e){var t=e.icon||"roundRect",r=w0(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return r.setStyle(e.itemStyle),r.rotation=(e.iconRotate||0)*Math.PI/180,r.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r}function WS(e,t,r,n){gm(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e??t}),pm(e,t,r,n)}function yL(e){for(var t=e.getZr().storage.getDisplayList(),r,n=0,i=t.length;n<i&&!(r=t[n].states.emphasis);)n++;return r&&r.hoverLayer}function pm(e,t,r,n){yL(r)||r.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:n})}function gm(e,t,r,n){yL(r)||r.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:n})}const _L=QJ;function tee(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries(function(r){for(var n=0;n<t.length;n++)if(!t[n].isSelected(r.name))return!1;return!0})}function vl(e,t,r){var n={},i=e==="toggleSelected",a;return r.eachComponent("legend",function(o){i&&a!=null?o[a?"select":"unSelect"](t.name):e==="allSelect"||e==="inverseSelect"?o[e]():(o[e](t.name),a=o.isSelected(t.name));var s=o.getData();R(s,function(l){var u=l.get("name");if(!(u===`
+`||u==="")){var f=o.isSelected(u);n.hasOwnProperty(u)?n[u]=n[u]&&f:n[u]=f}})}),e==="allSelect"||e==="inverseSelect"?{selected:n}:{name:t.name,selected:n}}function ree(e){e.registerAction("legendToggleSelect","legendselectchanged",Dt(vl,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",Dt(vl,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",Dt(vl,"inverseSelect")),e.registerAction("legendSelect","legendselected",Dt(vl,"select")),e.registerAction("legendUnSelect","legendunselected",Dt(vl,"unSelect"))}function bL(e){e.registerComponentModel(hm),e.registerComponentView(_L),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,tee),e.registerSubTypeDefaulter("legend",function(){return"plain"}),ree(e)}var nee=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},t.prototype.init=function(r,n,i){var a=hh(r);e.prototype.init.call(this,r,n,i),VS(this,r,a)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),VS(this,this.option,r)},t.type="legend.scroll",t.defaultOption=q2(hm.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(hm);function VS(e,t,r){var n=e.getOrient(),i=[1,1];i[n.index]=0,As(t,r,{type:"box",ignoreSize:!!i})}const iee=nee;var GS=sn,dp=["width","height"],hp=["x","y"],aee=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!0,r._currentIndex=0,r}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new GS),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new GS)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this;e.prototype.renderInner.call(this,r,n,i,a,o,s,l);var f=this._controllerGroup,c=n.get("pageIconSize",!0),d=ge(c)?c:[c,c];v("pagePrev",0);var h=n.getModel("pageTextStyle");f.add(new fr({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),v("pageNext",1);function v(p,g){var m=p+"DataIndex",y=t0(n.get("pageIcons",!0)[n.getOrient().name][g],{onclick:_t(u._pageGo,u,m,n,a)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});y.name=p,f.add(y)}},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,f=dp[u],c=hp[u],d=dp[1-u],h=hp[1-u];o&&Yl("horizontal",l,r.get("selectorItemGap",!0));var v=r.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],m=Ze(i);o&&(m[f]=i[f]-p[f]-v);var y=this._layoutContentAndController(r,a,m,u,f,d,h,c);if(o){if(s==="end")g[u]+=y[f]+v;else{var _=p[f]+v;g[u]-=_,y[c]-=_}y[f]+=p[f]+v,g[1-u]+=y[h]+y[d]/2-p[d]/2,y[d]=Math.max(y[d],p[d]),y[h]=Math.min(y[h],p[h]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return y},t.prototype._layoutContentAndController=function(r,n,i,a,o,s,l,u){var f=this.getContentGroup(),c=this._containerGroup,d=this._controllerGroup;Yl(r.get("orient"),f,r.get("itemGap"),a?i.width:null,a?null:i.height),Yl("horizontal",d,r.get("pageButtonItemGap",!0));var h=f.getBoundingRect(),v=d.getBoundingRect(),p=this._showController=h[o]>i[o],g=[-h.x,-h.y];n||(g[a]=f[u]);var m=[0,0],y=[-v.x,-v.y],_=je(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(p){var b=r.get("pageButtonPosition",!0);b==="end"?y[a]+=i[o]-v[o]:m[a]+=v[o]+_}y[1-a]+=h[s]/2-v[s]/2,f.setPosition(g),c.setPosition(m),d.setPosition(y);var x={x:0,y:0};if(x[o]=p?i[o]:h[o],x[s]=Math.max(h[s],v[s]),x[l]=Math.min(0,v[l]+y[1-a]),c.__rectSize=i[o],p){var w={x:0,y:0};w[o]=Math.max(i[o]-v[o]-_,0),w[s]=x[s],c.setClipPath(new Nt({shape:w})),c.__rectSize=w[o]}else d.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var S=this._getPageInfo(r);return S.pageIndex!=null&&Mr(f,{x:S.contentPosition[0],y:S.contentPosition[1]},p?r:null),this._updatePageInfoView(r,S),x},t.prototype._pageGo=function(r,n,i){var a=this._getPageInfo(n)[r];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},t.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;R(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",d=n[c]!=null,h=i.childOfName(f);h&&(h.setStyle("fill",d?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),h.cursor=d?"pointer":"default")});var a=i.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",Te(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=dp[o],l=hp[o],u=this._findTargetItemIndex(n),f=i.children(),c=f[u],d=f.length,h=d?1:0,v={contentPosition:[i.x,i.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return v;var p=b(c);v.contentPosition[o]=-p.s;for(var g=u+1,m=p,y=p,_=null;g<=d;++g)_=b(f[g]),(!_&&y.e>m.s+a||_&&!x(_,m.s))&&(y.i>m.i?m=y:m=_,m&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=m.i),++v.pageCount)),y=_;for(var g=u-1,m=p,y=p,_=null;g>=-1;--g)_=b(f[g]),(!_||!x(y,_.s))&&m.i<y.i&&(y=m,v.pagePrevDataIndex==null&&(v.pagePrevDataIndex=m.i),++v.pageCount,++v.pageIndex),m=_;return v;function b(w){if(w){var S=w.getBoundingRect(),C=S[l]+w[l];return{s:C,e:C+S[s],i:w.__legendDataIndex}}}function x(w,S){return w.e>=S&&w.s<=S+a}},t.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===r&&(n=s)}),n??a},t.type="legend.scroll",t}(_L);const oee=aee;function see(e){e.registerAction("legendScroll","legendscroll",function(t,r){var n=t.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(n)})})}function lee(e){ia(bL),e.registerComponentModel(iee),e.registerComponentView(oee),see(e)}function uee(e){ia(bL),ia(lee)}ia([nQ,zZ,qQ,pZ,KJ,YJ,uee,xJ]);function fee(e,t,r){const n=T0(document.getElementById(e),"macarons");n.showLoading();const i={title:{text:"Network Traffic",subtext:"today",left:"center"},tooltip:{trigger:"item",formatter:function(a){return ea.fileSize(a.data.value)+" ("+a.percent+"%)"}},legend:{orient:"vertical",left:"left",data:["Traffic In","Traffic Out"]},series:[{type:"pie",radius:"55%",center:["50%","60%"],data:[{value:t,name:"Traffic In"},{value:r,name:"Traffic Out"}],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]};n.setOption(i),n.hideLoading()}function cee(e,t){const r=T0(document.getElementById(e),"macarons");r.showLoading();const n={title:{text:"Proxies",subtext:"now",left:"center"},tooltip:{trigger:"item",formatter:function(i){return String(i.data.value)}},legend:{orient:"vertical",left:"left",data:[]},series:[{type:"pie",radius:"55%",center:["50%","60%"],data:[],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]};t.proxy_type_count.tcp!=null&&t.proxy_type_count.tcp!=0&&(n.series[0].data.push({value:t.proxy_type_count.tcp,name:"TCP"}),n.legend.data.push("TCP")),t.proxy_type_count.udp!=null&&t.proxy_type_count.udp!=0&&(n.series[0].data.push({value:t.proxy_type_count.udp,name:"UDP"}),n.legend.data.push("UDP")),t.proxy_type_count.http!=null&&t.proxy_type_count.http!=0&&(n.series[0].data.push({value:t.proxy_type_count.http,name:"HTTP"}),n.legend.data.push("HTTP")),t.proxy_type_count.https!=null&&t.proxy_type_count.https!=0&&(n.series[0].data.push({value:t.proxy_type_count.https,name:"HTTPS"}),n.legend.data.push("HTTPS")),t.proxy_type_count.stcp!=null&&t.proxy_type_count.stcp!=0&&(n.series[0].data.push({value:t.proxy_type_count.stcp,name:"STCP"}),n.legend.data.push("STCP")),t.proxy_type_count.sudp!=null&&t.proxy_type_count.sudp!=0&&(n.series[0].data.push({value:t.proxy_type_count.sudp,name:"SUDP"}),n.legend.data.push("SUDP")),t.proxy_type_count.xtcp!=null&&t.proxy_type_count.xtcp!=0&&(n.series[0].data.push({value:t.proxy_type_count.xtcp,name:"XTCP"}),n.legend.data.push("XTCP")),r.setOption(n),r.hideLoading()}function dee(e,t,r){const n={width:"600px",height:"400px"},i=T0(document.getElementById(e),"macarons",n);i.showLoading(),t=t.reverse(),r=r.reverse();let a=new Date;a=new Date(a.getFullYear(),a.getMonth(),a.getDate()-6);const o=[];for(let l=0;l<7;l++)o.push(a.getFullYear()+"-"+(a.getMonth()+1)+"-"+a.getDate()),a=new Date(a.getFullYear(),a.getMonth(),a.getDate()+1);const s={tooltip:{trigger:"axis",axisPointer:{type:"shadow"},formatter:function(l){let u="";l.length>0&&(u+=l[0].name+"<br/>");for(const f of l){const c='<span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:'+f.color+'"></span>';u+=c+f.seriesName+": "+ea.fileSize(f.value)+"<br/>"}return u}},legend:{data:["Traffic In","Traffic Out"]},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",data:o}],yAxis:[{type:"value",axisLabel:{formatter:function(l){return ea.fileSize(l)}}}],series:[{name:"Traffic In",type:"bar",data:t},{name:"Traffic Out",type:"bar",data:r}]};i.setOption(s),i.hideLoading()}const US=ue({__name:"LongSpan",props:{content:null,length:null},setup(e){return(t,r)=>{const n=Hu;return K(),Se(yt,null,[ee(n,{content:e.content,placement:"top"},{default:Z(()=>[qt(se("span",null,Ae(e.content.slice(0,e.length))+"...",513),[[pi,e.content.length>e.length]])]),_:1},8,["content"]),qt(se("span",null,Ae(e.content),513),[[pi,e.content.length<30]])],64)}}}),hee={class:"source"},vee=se("div",{id:"traffic",style:{width:"400px",height:"250px","margin-bottom":"30px"}},null,-1),pee=se("div",{id:"proxies",style:{width:"400px",height:"250px"}},null,-1),gee=ue({__name:"ServerOverview",setup(e){let t=H({version:"",bind_port:0,bind_udp_port:0,kcp_bind_port:0,quic_bind_port:0,vhost_http_port:0,vhost_https_port:0,tcpmux_httpconnect_port:0,subdomain_host:"",max_pool_count:0,max_ports_per_client:"",allow_ports_str:"",tls_only:!1,heart_beat_timeout:0,client_counts:0,cur_conns:0,proxy_counts:0});return(()=>{fetch("../api/serverinfo",{credentials:"include"}).then(n=>n.json()).then(n=>{t.value.version=n.version,t.value.bind_port=n.bind_port,t.value.bind_udp_port=n.bind_udp_port,t.value.kcp_bind_port=n.kcp_bind_port,t.value.quic_bind_port=n.quic_bind_port,t.value.vhost_http_port=n.vhost_http_port,t.value.vhost_https_port=n.vhost_https_port,t.value.tcpmux_httpconnect_port=n.tcpmux_httpconnect_port,t.value.subdomain_host=n.subdomain_host,t.value.max_pool_count=n.max_pool_count,t.value.max_ports_per_client=n.max_ports_per_client,t.value.max_ports_per_client=="0"&&(t.value.max_ports_per_client="no limit"),t.value.allow_ports_str=n.allow_ports_str,t.value.tls_only=n.tls_only,t.value.heart_beat_timeout=n.heart_beat_timeout,t.value.client_counts=n.client_counts,t.value.cur_conns=n.cur_conns,t.value.proxy_counts=0,n.proxy_type_count!=null&&(n.proxy_type_count.tcp!=null&&(t.value.proxy_counts+=n.proxy_type_count.tcp),n.proxy_type_count.udp!=null&&(t.value.proxy_counts+=n.proxy_type_count.udp),n.proxy_type_count.http!=null&&(t.value.proxy_counts+=n.proxy_type_count.http),n.proxy_type_count.https!=null&&(t.value.proxy_counts+=n.proxy_type_count.https),n.proxy_type_count.stcp!=null&&(t.value.proxy_counts+=n.proxy_type_count.stcp),n.proxy_type_count.sudp!=null&&(t.value.proxy_counts+=n.proxy_type_count.sudp),n.proxy_type_count.xtcp!=null&&(t.value.proxy_counts+=n.proxy_type_count.xtcp)),fee("traffic",n.total_traffic_in,n.total_traffic_out),cee("proxies",n)}).catch(()=>{YM({showClose:!0,message:"Get server info from frps failed!",type:"warning"})})})(),(n,i)=>{const a=EM,o=AM,s=CM,l=RM;return K(),Se("div",null,[ee(l,null,{default:Z(()=>[ee(s,{md:12},{default:Z(()=>[se("div",hee,[ee(o,{"label-position":"left","label-width":"220px",class:"server_info"},{default:Z(()=>[ee(a,{label:"Version"},{default:Z(()=>[se("span",null,Ae(L(t).version),1)]),_:1}),ee(a,{label:"BindPort"},{default:Z(()=>[se("span",null,Ae(L(t).bind_port),1)]),_:1}),L(t).bind_udp_port!=0?(K(),xe(a,{key:0,label:"Bind UDP Port"},{default:Z(()=>[se("span",null,Ae(L(t).bind_udp_port),1)]),_:1})):Ye("",!0),L(t).kcp_bind_port!=0?(K(),xe(a,{key:1,label:"KCP Bind Port"},{default:Z(()=>[se("span",null,Ae(L(t).kcp_bind_port),1)]),_:1})):Ye("",!0),L(t).quic_bind_port!=0?(K(),xe(a,{key:2,label:"QUIC Bind Port"},{default:Z(()=>[se("span",null,Ae(L(t).quic_bind_port),1)]),_:1})):Ye("",!0),L(t).vhost_http_port!=0?(K(),xe(a,{key:3,label:"Http Port"},{default:Z(()=>[se("span",null,Ae(L(t).vhost_http_port),1)]),_:1})):Ye("",!0),L(t).vhost_https_port!=0?(K(),xe(a,{key:4,label:"Https Port"},{default:Z(()=>[se("span",null,Ae(L(t).vhost_https_port),1)]),_:1})):Ye("",!0),L(t).tcpmux_httpconnect_port!=0?(K(),xe(a,{key:5,label:"TCPMux HTTPConnect Port"},{default:Z(()=>[se("span",null,Ae(L(t).tcpmux_httpconnect_port),1)]),_:1})):Ye("",!0),L(t).subdomain_host!=""?(K(),xe(a,{key:6,label:"Subdomain Host"},{default:Z(()=>[ee(US,{content:L(t).subdomain_host,length:30},null,8,["content"])]),_:1})):Ye("",!0),ee(a,{label:"Max PoolCount"},{default:Z(()=>[se("span",null,Ae(L(t).max_pool_count),1)]),_:1}),ee(a,{label:"Max Ports Per Client"},{default:Z(()=>[se("span",null,Ae(L(t).max_ports_per_client),1)]),_:1}),L(t).allow_ports_str!=""?(K(),xe(a,{key:7,label:"Allow Ports"},{default:Z(()=>[ee(US,{content:L(t).allow_ports_str,length:30},null,8,["content"])]),_:1})):Ye("",!0),L(t).tls_only===!0?(K(),xe(a,{key:8,label:"TLS Only"},{default:Z(()=>[se("span",null,Ae(L(t).tls_only),1)]),_:1})):Ye("",!0),ee(a,{label:"HeartBeat Timeout"},{default:Z(()=>[se("span",null,Ae(L(t).heart_beat_timeout),1)]),_:1}),ee(a,{label:"Client Counts"},{default:Z(()=>[se("span",null,Ae(L(t).client_counts),1)]),_:1}),ee(a,{label:"Current Connections"},{default:Z(()=>[se("span",null,Ae(L(t).cur_conns),1)]),_:1}),ee(a,{label:"Proxy Counts"},{default:Z(()=>[se("span",null,Ae(L(t).proxy_counts),1)]),_:1})]),_:1})])]),_:1}),ee(s,{md:12},{default:Z(()=>[vee,pee]),_:1})]),_:1})])}}});class zs{constructor(t){Ft(this,"name");Ft(this,"type");Ft(this,"encryption");Ft(this,"compression");Ft(this,"conns");Ft(this,"traffic_in");Ft(this,"traffic_out");Ft(this,"last_start_time");Ft(this,"last_close_time");Ft(this,"status");Ft(this,"client_version");Ft(this,"addr");Ft(this,"port");Ft(this,"custom_domains");Ft(this,"host_header_rewrite");Ft(this,"locations");Ft(this,"subdomain");this.name=t.name,this.type="",t.conf!=null?(this.encryption=t.conf.use_encryption,this.compression=t.conf.use_compression):(this.encryption=!1,this.compression=!1),this.conns=t.cur_conns,this.traffic_in=t.today_traffic_in,this.traffic_out=t.today_traffic_out,this.last_start_time=t.last_start_time,this.last_close_time=t.last_close_time,this.status=t.status,this.client_version=t.client_version,this.addr="",this.port=0,this.custom_domains="",this.host_header_rewrite="",this.locations="",this.subdomain=""}}class mee extends zs{constructor(t){super(t),this.type="tcp",t.conf!=null?(this.addr=":"+t.conf.remote_port,this.port=t.conf.remote_port):(this.addr="",this.port=0)}}class yee extends zs{constructor(t){super(t),this.type="udp",t.conf!=null?(this.addr=":"+t.conf.remote_port,this.port=t.conf.remote_port):(this.addr="",this.port=0)}}class _ee extends zs{constructor(t,r,n){super(t),this.type="http",this.port=r,t.conf!=null?(this.custom_domains=t.conf.custom_domains,this.host_header_rewrite=t.conf.host_header_rewrite,this.locations=t.conf.locations,t.conf.subdomain!=""?this.subdomain=t.conf.subdomain+"."+n:this.subdomain=""):(this.custom_domains="",this.host_header_rewrite="",this.subdomain="",this.locations="")}}class bee extends zs{constructor(t,r,n){super(t),this.type="https",this.port=r,t.conf!=null?(this.custom_domains=t.conf.custom_domains,t.conf.subdomain!=""?this.subdomain=t.conf.subdomain+"."+n:this.subdomain=""):(this.custom_domains="",this.subdomain="")}}class wee extends zs{constructor(t){super(t),this.type="stcp"}}class xee extends zs{constructor(t){super(t),this.type="sudp"}}const See=["id"],Cee=ue({__name:"Traffic",props:{proxy_name:null},setup(e){const t=e;return(()=>{let n="../api/traffic/"+t.proxy_name;fetch(n,{credentials:"include"}).then(i=>i.json()).then(i=>{dee(t.proxy_name,i.traffic_in,i.traffic_out)}).catch(i=>{YM({showClose:!0,message:"Get traffic info failed!"+i,type:"warning"})})})(),(n,i)=>(K(),Se("div",{id:e.proxy_name,style:{width:"600px",height:"400px"}},null,8,See))}}),Tee=ue({__name:"ProxyViewExpand",props:{row:null,proxyType:null},setup(e){return(t,r)=>{const n=EM,i=AM;return e.proxyType==="http"||e.proxyType==="https"?(K(),xe(i,{key:0,"label-position":"left",inline:"",class:"proxy-table-expand"},{default:Z(()=>[ee(n,{label:"Name"},{default:Z(()=>[se("span",null,Ae(e.row.name),1)]),_:1}),ee(n,{label:"Type"},{default:Z(()=>[se("span",null,Ae(e.row.type),1)]),_:1}),ee(n,{label:"Domains"},{default:Z(()=>[se("span",null,Ae(e.row.custom_domains),1)]),_:1}),ee(n,{label:"SubDomain"},{default:Z(()=>[se("span",null,Ae(e.row.subdomain),1)]),_:1}),ee(n,{label:"locations"},{default:Z(()=>[se("span",null,Ae(e.row.locations),1)]),_:1}),ee(n,{label:"HostRewrite"},{default:Z(()=>[se("span",null,Ae(e.row.host_header_rewrite),1)]),_:1}),ee(n,{label:"Encryption"},{default:Z(()=>[se("span",null,Ae(e.row.encryption),1)]),_:1}),ee(n,{label:"Compression"},{default:Z(()=>[se("span",null,Ae(e.row.compression),1)]),_:1}),ee(n,{label:"Last Start"},{default:Z(()=>[se("span",null,Ae(e.row.last_start_time),1)]),_:1}),ee(n,{label:"Last Close"},{default:Z(()=>[se("span",null,Ae(e.row.last_close_time),1)]),_:1})]),_:1})):(K(),xe(i,{key:1,"label-position":"left",inline:"",class:"proxy-table-expand"},{default:Z(()=>[ee(n,{label:"Name"},{default:Z(()=>[se("span",null,Ae(e.row.name),1)]),_:1}),ee(n,{label:"Type"},{default:Z(()=>[se("span",null,Ae(e.row.type),1)]),_:1}),ee(n,{label:"Addr"},{default:Z(()=>[se("span",null,Ae(e.row.addr),1)]),_:1}),ee(n,{label:"Encryption"},{default:Z(()=>[se("span",null,Ae(e.row.encryption),1)]),_:1}),ee(n,{label:"Compression"},{default:Z(()=>[se("span",null,Ae(e.row.compression),1)]),_:1}),ee(n,{label:"Last Start"},{default:Z(()=>[se("span",null,Ae(e.row.last_start_time),1)]),_:1}),ee(n,{label:"Last Close"},{default:Z(()=>[se("span",null,Ae(e.row.last_close_time),1)]),_:1})]),_:1}))}}}),Ws=ue({__name:"ProxyView",props:{proxies:null,proxyType:null},setup(e){const t=(o,s)=>ea.fileSize(o.traffic_in),r=(o,s)=>ea.fileSize(o.traffic_out),n=H(),i=H(),a=()=>{var o,s;(s=(o=L(i).popoverTraffic)==null?void 0:o.delayHide)==null||s.call(o)};return(o,s)=>{const l=Cee,u=K6,f=LH,c=lW,d=fz,h=sW,v=Rm("click-outside");return K(),Se("div",null,[ee(h,{data:e.proxies,"default-sort":{prop:"name",order:"ascending"},style:{width:"100%"}},{default:Z(()=>[ee(c,{type:"expand"},{default:Z(p=>[ee(u,{ref_key:"popoverTraffic",ref:i,"virtual-ref":n.value,placement:"right",width:"600",style:{"margin-left":"0px"},trigger:"click","virtual-triggering":""},{default:Z(()=>[ee(l,{proxy_name:p.row.name},null,8,["proxy_name"])]),_:2},1032,["virtual-ref"]),qt((K(),xe(f,{ref_key:"buttonTraffic",ref:n,type:"primary",size:"large",name:p.row.name,style:{"margin-bottom":"10px"}},{default:Z(()=>[kt("Traffic Statistics ")]),_:2},1032,["name"])),[[v,a]]),ee(Tee,{row:p.row,proxyType:e.proxyType},null,8,["row","proxyType"])]),_:1}),ee(c,{label:"Name",prop:"name",sortable:""}),ee(c,{label:"Port",prop:"port",sortable:""}),ee(c,{label:"Connections",prop:"conns",sortable:""}),ee(c,{label:"Traffic In",prop:"traffic_in",formatter:t,sortable:""}),ee(c,{label:"Traffic Out",prop:"traffic_out",formatter:r,sortable:""}),ee(c,{label:"ClientVersion",prop:"client_version",sortable:""}),ee(c,{label:"Status",prop:"status",sortable:""},{default:Z(p=>[p.row.status==="online"?(K(),xe(d,{key:0,type:"success"},{default:Z(()=>[kt(Ae(p.row.status),1)]),_:2},1024)):(K(),xe(d,{key:1,type:"danger"},{default:Z(()=>[kt(Ae(p.row.status),1)]),_:2},1024))]),_:1})]),_:1},8,["data"])])}}}),Mee=ue({__name:"ProxiesTCP",setup(e){let t=H([]);return(()=>{fetch("../api/proxy/tcp",{credentials:"include"}).then(n=>n.json()).then(n=>{for(let i of n.proxies)t.value.push(new mee(i))})})(),(n,i)=>(K(),xe(Ws,{proxies:L(t),proxyType:"tcp"},null,8,["proxies"]))}}),Aee=ue({__name:"ProxiesUDP",setup(e){let t=H([]);return(()=>{fetch("../api/proxy/udp",{credentials:"include"}).then(n=>n.json()).then(n=>{for(let i of n.proxies)t.value.push(new yee(i))})})(),(n,i)=>(K(),xe(Ws,{proxies:L(t),proxyType:"udp"},null,8,["proxies"]))}}),Eee=ue({__name:"ProxiesHTTP",setup(e){let t=H([]);return(()=>{let n,i;fetch("../api/serverinfo",{credentials:"include"}).then(a=>a.json()).then(a=>{n=a.vhost_http_port,i=a.subdomain_host,!(n==null||n==0)&&fetch("../api/proxy/http",{credentials:"include"}).then(o=>o.json()).then(o=>{for(let s of o.proxies)t.value.push(new _ee(s,n,i))})})})(),(n,i)=>(K(),xe(Ws,{proxies:L(t),proxyType:"http"},null,8,["proxies"]))}}),Pee=ue({__name:"ProxiesHTTPS",setup(e){let t=H([]);return(()=>{let n,i;fetch("../api/serverinfo",{credentials:"include"}).then(a=>a.json()).then(a=>{n=a.vhost_https_port,i=a.subdomain_host,!(n==null||n==0)&&fetch("../api/proxy/https",{credentials:"include"}).then(o=>o.json()).then(o=>{for(let s of o.proxies)t.value.push(new bee(s,n,i))})})})(),(n,i)=>(K(),xe(Ws,{proxies:L(t),proxyType:"https"},null,8,["proxies"]))}}),Lee=ue({__name:"ProxiesSTCP",setup(e){let t=H([]);return(()=>{fetch("../api/proxy/stcp",{credentials:"include"}).then(n=>n.json()).then(n=>{for(let i of n.proxies)t.value.push(new wee(i))})})(),(n,i)=>(K(),xe(Ws,{proxies:L(t),proxyType:"stcp"},null,8,["proxies"]))}}),Dee=ue({__name:"ProxiesSUDP",setup(e){let t=H([]);return(()=>{fetch("../api/proxy/sudp",{credentials:"include"}).then(n=>n.json()).then(n=>{for(let i of n.proxies)t.value.push(new xee(i))})})(),(n,i)=>(K(),xe(Ws,{proxies:L(t),proxyType:"sudp"},null,8,["proxies"]))}}),Iee=DV({history:qW(),routes:[{path:"/",name:"ServerOverview",component:gee},{path:"/proxies/tcp",name:"ProxiesTCP",component:Mee},{path:"/proxies/udp",name:"ProxiesUDP",component:Aee},{path:"/proxies/http",name:"ProxiesHTTP",component:Eee},{path:"/proxies/https",name:"ProxiesHTTPS",component:Pee},{path:"/proxies/stcp",name:"ProxiesSTCP",component:Lee},{path:"/proxies/sudp",name:"ProxiesSUDP",component:Dee}]}),wL=tR(EW);wL.use(Iee);wL.mount("#app")});export default Ree();
diff --git a/assets/frps/static/index.html b/assets/frps/static/index.html
index 20e86af504d..0d4bf846a2b 100644
--- a/assets/frps/static/index.html
+++ b/assets/frps/static/index.html
@@ -4,7 +4,7 @@
 <head>
     <meta charset="utf-8">
     <title>frps dashboard</title>
-  <script type="module" crossorigin src="./index-cd02d3b4.js"></script>
+  <script type="module" crossorigin src="./index-2a8cf2f5.js"></script>
   <link rel="stylesheet" href="./index-4ce77078.css">
 </head>
 
diff --git a/pkg/config/server.go b/pkg/config/server.go
index 040eaf65fe0..cdc29daa2a8 100644
--- a/pkg/config/server.go
+++ b/pkg/config/server.go
@@ -154,6 +154,8 @@ type ServerCommonConf struct {
 	// If the length of this value is 0, all ports are allowed. By default,
 	// this value is an empty set.
 	AllowPorts map[int]struct{} `ini:"-" json:"-"`
+	// Original string.
+	AllowPortsStr string `ini:"-" json:"-"`
 	// MaxPoolCount specifies the maximum pool size for each proxy. By default,
 	// this value is 5.
 	MaxPoolCount int64 `ini:"max_pool_count" json:"max_pool_count"`
@@ -259,6 +261,7 @@ func UnmarshalServerConfFromIni(source interface{}) (ServerCommonConf, error) {
 		for _, port := range allowPorts {
 			common.AllowPorts[int(port)] = struct{}{}
 		}
+		common.AllowPortsStr = allowPortStr
 	}
 
 	// plugin.xxx
diff --git a/server/control.go b/server/control.go
index 3fcd3ae434a..e80e4242654 100644
--- a/server/control.go
+++ b/server/control.go
@@ -514,7 +514,7 @@ func (ctl *Control) RegisterProxy(pxyMsg *msg.NewProxy) (remoteAddr string, err
 
 	// NewProxy will return a interface Proxy.
 	// In fact it create different proxies by different proxy type, we just call run() here.
-	pxy, err := proxy.NewProxy(ctl.ctx, userInfo, ctl.rc, ctl.poolCount, ctl.GetWorkConn, pxyConf, ctl.serverCfg)
+	pxy, err := proxy.NewProxy(ctl.ctx, userInfo, ctl.rc, ctl.poolCount, ctl.GetWorkConn, pxyConf, ctl.serverCfg, ctl.loginMsg)
 	if err != nil {
 		return remoteAddr, err
 	}
diff --git a/server/dashboard_api.go b/server/dashboard_api.go
index 6f7ecfd793c..a7f078f6182 100644
--- a/server/dashboard_api.go
+++ b/server/dashboard_api.go
@@ -33,16 +33,20 @@ type GeneralResponse struct {
 }
 
 type serverInfoResp struct {
-	Version           string `json:"version"`
-	BindPort          int    `json:"bind_port"`
-	BindUDPPort       int    `json:"bind_udp_port"`
-	VhostHTTPPort     int    `json:"vhost_http_port"`
-	VhostHTTPSPort    int    `json:"vhost_https_port"`
-	KCPBindPort       int    `json:"kcp_bind_port"`
-	SubdomainHost     string `json:"subdomain_host"`
-	MaxPoolCount      int64  `json:"max_pool_count"`
-	MaxPortsPerClient int64  `json:"max_ports_per_client"`
-	HeartBeatTimeout  int64  `json:"heart_beat_timeout"`
+	Version               string `json:"version"`
+	BindPort              int    `json:"bind_port"`
+	BindUDPPort           int    `json:"bind_udp_port"`
+	VhostHTTPPort         int    `json:"vhost_http_port"`
+	VhostHTTPSPort        int    `json:"vhost_https_port"`
+	TCPMuxHTTPConnectPort int    `json:"tcpmux_httpconnect_port"`
+	KCPBindPort           int    `json:"kcp_bind_port"`
+	QUICBindPort          int    `json:"quic_bind_port"`
+	SubdomainHost         string `json:"subdomain_host"`
+	MaxPoolCount          int64  `json:"max_pool_count"`
+	MaxPortsPerClient     int64  `json:"max_ports_per_client"`
+	HeartBeatTimeout      int64  `json:"heart_beat_timeout"`
+	AllowPortsStr         string `json:"allow_ports_str,omitempty"`
+	TLSOnly               bool   `json:"tls_only,omitempty"`
 
 	TotalTrafficIn  int64            `json:"total_traffic_in"`
 	TotalTrafficOut int64            `json:"total_traffic_out"`
@@ -70,16 +74,20 @@ func (svr *Service) APIServerInfo(w http.ResponseWriter, r *http.Request) {
 	log.Info("Http request: [%s]", r.URL.Path)
 	serverStats := mem.StatsCollector.GetServer()
 	svrResp := serverInfoResp{
-		Version:           version.Full(),
-		BindPort:          svr.cfg.BindPort,
-		BindUDPPort:       svr.cfg.BindUDPPort,
-		VhostHTTPPort:     svr.cfg.VhostHTTPPort,
-		VhostHTTPSPort:    svr.cfg.VhostHTTPSPort,
-		KCPBindPort:       svr.cfg.KCPBindPort,
-		SubdomainHost:     svr.cfg.SubDomainHost,
-		MaxPoolCount:      svr.cfg.MaxPoolCount,
-		MaxPortsPerClient: svr.cfg.MaxPortsPerClient,
-		HeartBeatTimeout:  svr.cfg.HeartbeatTimeout,
+		Version:               version.Full(),
+		BindPort:              svr.cfg.BindPort,
+		BindUDPPort:           svr.cfg.BindUDPPort,
+		VhostHTTPPort:         svr.cfg.VhostHTTPPort,
+		VhostHTTPSPort:        svr.cfg.VhostHTTPSPort,
+		TCPMuxHTTPConnectPort: svr.cfg.TCPMuxHTTPConnectPort,
+		KCPBindPort:           svr.cfg.KCPBindPort,
+		QUICBindPort:          svr.cfg.QUICBindPort,
+		SubdomainHost:         svr.cfg.SubDomainHost,
+		MaxPoolCount:          svr.cfg.MaxPoolCount,
+		MaxPortsPerClient:     svr.cfg.MaxPortsPerClient,
+		HeartBeatTimeout:      svr.cfg.HeartbeatTimeout,
+		AllowPortsStr:         svr.cfg.AllowPortsStr,
+		TLSOnly:               svr.cfg.TLSOnly,
 
 		TotalTrafficIn:  serverStats.TotalTrafficIn,
 		TotalTrafficOut: serverStats.TotalTrafficOut,
@@ -157,6 +165,7 @@ func getConfByType(proxyType string) interface{} {
 type ProxyStatsInfo struct {
 	Name            string      `json:"name"`
 	Conf            interface{} `json:"conf"`
+	ClientVersion   string      `json:"client_version,omitempty"`
 	TodayTrafficIn  int64       `json:"today_traffic_in"`
 	TodayTrafficOut int64       `json:"today_traffic_out"`
 	CurConns        int64       `json:"cur_conns"`
@@ -208,6 +217,9 @@ func (svr *Service) getProxyStatsByType(proxyType string) (proxyInfos []*ProxySt
 				continue
 			}
 			proxyInfo.Status = consts.Online
+			if pxy.GetLoginMsg() != nil {
+				proxyInfo.ClientVersion = pxy.GetLoginMsg().Version
+			}
 		} else {
 			proxyInfo.Status = consts.Offline
 		}
diff --git a/server/proxy/proxy.go b/server/proxy/proxy.go
index 0681370fd19..3c6fb1115dc 100644
--- a/server/proxy/proxy.go
+++ b/server/proxy/proxy.go
@@ -48,6 +48,7 @@ type Proxy interface {
 	GetResourceController() *controller.ResourceController
 	GetUserInfo() plugin.UserInfo
 	GetLimiter() *rate.Limiter
+	GetLoginMsg() *msg.Login
 	Close()
 }
 
@@ -61,6 +62,7 @@ type BaseProxy struct {
 	serverCfg     config.ServerCommonConf
 	limiter       *rate.Limiter
 	userInfo      plugin.UserInfo
+	loginMsg      *msg.Login
 
 	mu  sync.RWMutex
 	xl  *xlog.Logger
@@ -87,6 +89,10 @@ func (pxy *BaseProxy) GetUserInfo() plugin.UserInfo {
 	return pxy.userInfo
 }
 
+func (pxy *BaseProxy) GetLoginMsg() *msg.Login {
+	return pxy.loginMsg
+}
+
 func (pxy *BaseProxy) Close() {
 	xl := xlog.FromContextSafe(pxy.ctx)
 	xl.Info("proxy closing")
@@ -188,7 +194,7 @@ func (pxy *BaseProxy) startListenHandler(p Proxy, handler func(Proxy, net.Conn,
 }
 
 func NewProxy(ctx context.Context, userInfo plugin.UserInfo, rc *controller.ResourceController, poolCount int,
-	getWorkConnFn GetWorkConnFn, pxyConf config.ProxyConf, serverCfg config.ServerCommonConf,
+	getWorkConnFn GetWorkConnFn, pxyConf config.ProxyConf, serverCfg config.ServerCommonConf, loginMsg *msg.Login,
 ) (pxy Proxy, err error) {
 	xl := xlog.FromContextSafe(ctx).Spawn().AppendPrefix(pxyConf.GetBaseInfo().ProxyName)
 
@@ -209,6 +215,7 @@ func NewProxy(ctx context.Context, userInfo plugin.UserInfo, rc *controller.Reso
 		xl:            xl,
 		ctx:           xlog.NewContext(ctx, xl),
 		userInfo:      userInfo,
+		loginMsg:      loginMsg,
 	}
 	switch cfg := pxyConf.(type) {
 	case *config.TCPProxyConf:
diff --git a/web/frps/components.d.ts b/web/frps/components.d.ts
index 1180920cd83..7170e906f57 100644
--- a/web/frps/components.d.ts
+++ b/web/frps/components.d.ts
@@ -19,6 +19,8 @@ declare module '@vue/runtime-core' {
     ElTable: typeof import('element-plus/es')['ElTable']
     ElTableColumn: typeof import('element-plus/es')['ElTableColumn']
     ElTag: typeof import('element-plus/es')['ElTag']
+    ElTooltip: typeof import('element-plus/es')['ElTooltip']
+    LongSpan: typeof import('./src/components/LongSpan.vue')['default']
     ProxiesHTTP: typeof import('./src/components/ProxiesHTTP.vue')['default']
     ProxiesHTTPS: typeof import('./src/components/ProxiesHTTPS.vue')['default']
     ProxiesSTCP: typeof import('./src/components/ProxiesSTCP.vue')['default']
diff --git a/web/frps/src/components/LongSpan.vue b/web/frps/src/components/LongSpan.vue
new file mode 100644
index 00000000000..f0df3b242ac
--- /dev/null
+++ b/web/frps/src/components/LongSpan.vue
@@ -0,0 +1,15 @@
+<template>
+  <el-tooltip :content="content" placement="top">
+    <span v-show="content.length > length"
+      >{{ content.slice(0, length) }}...</span
+    >
+  </el-tooltip>
+  <span v-show="content.length < 30">{{ content }}</span>
+</template>
+
+<script setup lang="ts">
+defineProps<{
+  content: string
+  length: number
+}>()
+</script>
diff --git a/web/frps/src/components/ProxyView.vue b/web/frps/src/components/ProxyView.vue
index 42facae6e58..ae1138014c7 100644
--- a/web/frps/src/components/ProxyView.vue
+++ b/web/frps/src/components/ProxyView.vue
@@ -50,7 +50,9 @@
         sortable
       >
       </el-table-column>
-      <el-table-column label="status" prop="status" sortable>
+      <el-table-column label="ClientVersion" prop="client_version" sortable>
+      </el-table-column>
+      <el-table-column label="Status" prop="status" sortable>
         <template #default="scope">
           <el-tag v-if="scope.row.status === 'online'" type="success">{{
             scope.row.status
diff --git a/web/frps/src/components/ServerOverview.vue b/web/frps/src/components/ServerOverview.vue
index e298fe6ea6f..dd29598ee89 100644
--- a/web/frps/src/components/ServerOverview.vue
+++ b/web/frps/src/components/ServerOverview.vue
@@ -5,7 +5,7 @@
         <div class="source">
           <el-form
             label-position="left"
-            label-width="160px"
+            label-width="220px"
             class="server_info"
           >
             <el-form-item label="Version">
@@ -14,17 +14,35 @@
             <el-form-item label="BindPort">
               <span>{{ data.bind_port }}</span>
             </el-form-item>
-            <el-form-item label="BindUdpPort">
+            <el-form-item label="Bind UDP Port" v-if="data.bind_udp_port != 0">
               <span>{{ data.bind_udp_port }}</span>
             </el-form-item>
-            <el-form-item label="Http Port">
+            <el-form-item label="KCP Bind Port" v-if="data.kcp_bind_port != 0">
+              <span>{{ data.kcp_bind_port }}</span>
+            </el-form-item>
+            <el-form-item
+              label="QUIC Bind Port"
+              v-if="data.quic_bind_port != 0"
+            >
+              <span>{{ data.quic_bind_port }}</span>
+            </el-form-item>
+            <el-form-item label="Http Port" v-if="data.vhost_http_port != 0">
               <span>{{ data.vhost_http_port }}</span>
             </el-form-item>
-            <el-form-item label="Https Port">
+            <el-form-item label="Https Port" v-if="data.vhost_https_port != 0">
               <span>{{ data.vhost_https_port }}</span>
             </el-form-item>
-            <el-form-item label="Subdomain Host">
-              <span>{{ data.subdomain_host }}</span>
+            <el-form-item
+              label="TCPMux HTTPConnect Port"
+              v-if="data.tcpmux_httpconnect_port != 0"
+            >
+              <span>{{ data.tcpmux_httpconnect_port }}</span>
+            </el-form-item>
+            <el-form-item
+              label="Subdomain Host"
+              v-if="data.subdomain_host != ''"
+            >
+              <LongSpan :content="data.subdomain_host" :length="30"></LongSpan>
             </el-form-item>
             <el-form-item label="Max PoolCount">
               <span>{{ data.max_pool_count }}</span>
@@ -32,6 +50,12 @@
             <el-form-item label="Max Ports Per Client">
               <span>{{ data.max_ports_per_client }}</span>
             </el-form-item>
+            <el-form-item label="Allow Ports" v-if="data.allow_ports_str != ''">
+              <LongSpan :content="data.allow_ports_str" :length="30"></LongSpan>
+            </el-form-item>
+            <el-form-item label="TLS Only" v-if="data.tls_only === true">
+              <span>{{ data.tls_only }}</span>
+            </el-form-item>
             <el-form-item label="HeartBeat Timeout">
               <span>{{ data.heart_beat_timeout }}</span>
             </el-form-item>
@@ -62,19 +86,25 @@
 import { ref } from 'vue'
 import { ElMessage } from 'element-plus'
 import { DrawTrafficChart, DrawProxyChart } from '../utils/chart'
+import LongSpan from './LongSpan.vue'
 
 let data = ref({
   version: '',
-  bind_port: '',
-  bind_udp_port: '',
-  vhost_http_port: '',
-  vhost_https_port: '',
+  bind_port: 0,
+  bind_udp_port: 0,
+  kcp_bind_port: 0,
+  quic_bind_port: 0,
+  vhost_http_port: 0,
+  vhost_https_port: 0,
+  tcpmux_httpconnect_port: 0,
   subdomain_host: '',
-  max_pool_count: '',
+  max_pool_count: 0,
   max_ports_per_client: '',
-  heart_beat_timeout: '',
-  client_counts: '',
-  cur_conns: '',
+  allow_ports_str: '',
+  tls_only: false,
+  heart_beat_timeout: 0,
+  client_counts: 0,
+  cur_conns: 0,
   proxy_counts: 0,
 })
 
@@ -85,23 +115,19 @@ const fetchData = () => {
       data.value.version = json.version
       data.value.bind_port = json.bind_port
       data.value.bind_udp_port = json.bind_udp_port
-      if (data.value.bind_udp_port == '0') {
-        data.value.bind_udp_port = 'disable'
-      }
+      data.value.kcp_bind_port = json.kcp_bind_port
+      data.value.quic_bind_port = json.quic_bind_port
       data.value.vhost_http_port = json.vhost_http_port
-      if (data.value.vhost_http_port == '0') {
-        data.value.vhost_http_port = 'disable'
-      }
       data.value.vhost_https_port = json.vhost_https_port
-      if (data.value.vhost_https_port == '0') {
-        data.value.vhost_https_port = 'disable'
-      }
+      data.value.tcpmux_httpconnect_port = json.tcpmux_httpconnect_port
       data.value.subdomain_host = json.subdomain_host
       data.value.max_pool_count = json.max_pool_count
       data.value.max_ports_per_client = json.max_ports_per_client
       if (data.value.max_ports_per_client == '0') {
         data.value.max_ports_per_client = 'no limit'
       }
+      data.value.allow_ports_str = json.allow_ports_str
+      data.value.tls_only = json.tls_only
       data.value.heart_beat_timeout = json.heart_beat_timeout
       data.value.client_counts = json.client_counts
       data.value.cur_conns = json.cur_conns
diff --git a/web/frps/src/utils/proxy.ts b/web/frps/src/utils/proxy.ts
index 643ac5218ec..a675eea2223 100644
--- a/web/frps/src/utils/proxy.ts
+++ b/web/frps/src/utils/proxy.ts
@@ -9,6 +9,7 @@ class BaseProxy {
   last_start_time: string
   last_close_time: string
   status: string
+  client_version: string
   addr: string
   port: number
 
@@ -33,6 +34,7 @@ class BaseProxy {
     this.last_start_time = proxyStats.last_start_time
     this.last_close_time = proxyStats.last_close_time
     this.status = proxyStats.status
+    this.client_version = proxyStats.client_version
 
     this.addr = ''
     this.port = 0


Test patch:
diff --git a/pkg/config/server_test.go b/pkg/config/server_test.go
index 475a86b6f3e..c00f5970392 100644
--- a/pkg/config/server_test.go
+++ b/pkg/config/server_test.go
@@ -134,6 +134,7 @@ func Test_LoadServerCommonConf(t *testing.T) {
 					12: {},
 					99: {},
 				},
+				AllowPortsStr:           "10-12,99",
 				MaxPoolCount:            59,
 				MaxPortsPerClient:       9,
 				TLSOnly:                 true,