index-df2eaf21.js 1.8 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=n(a);fetch(a.href,i)}})();function gT(e,t){const n=Object.create(null),r=e.split(",");for(let a=0;a<r.length;a++)n[r[a]]=!0;return t?a=>!!n[a.toLowerCase()]:a=>!!n[a]}const Ln={},Cf=[],rn=()=>{},tY=()=>!1,nY=/^on[^a-z]/,Sb=e=>nY.test(e),mT=e=>e.startsWith("onUpdate:"),Yn=Object.assign,yT=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},rY=Object.prototype.hasOwnProperty,Nt=(e,t)=>rY.call(e,t),He=Array.isArray,xf=e=>Hp(e)==="[object Map]",Cb=e=>Hp(e)==="[object Set]",rc=e=>Hp(e)==="[object Date]",it=e=>typeof e=="function",lt=e=>typeof e=="string",Av=e=>typeof e=="symbol",Mt=e=>e!==null&&typeof e=="object",Ev=e=>Mt(e)&&it(e.then)&&it(e.catch),wB=Object.prototype.toString,Hp=e=>wB.call(e),ny=e=>Hp(e).slice(8,-1),Zy=e=>Hp(e)==="[object Object]",bT=e=>lt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ry=gT(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),xb=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},aY=/-(\w)/g,ti=xb(e=>e.replace(aY,(t,n)=>n?n.toUpperCase():"")),iY=/\B([A-Z])/g,Cl=xb(e=>e.replace(iY,"-$1").toLowerCase()),Gp=xb(e=>e.charAt(0).toUpperCase()+e.slice(1)),ay=xb(e=>e?`on${Gp(e)}`:""),Iv=(e,t)=>!Object.is(e,t),iy=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Jy=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},aC=e=>{const t=parseFloat(e);return isNaN(t)?e:t},oY=e=>{const t=lt(e)?Number(e):NaN;return isNaN(t)?e:t};let $E;const iC=()=>$E||($E=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ye(e){if(He(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],a=lt(r)?cY(r):Ye(r);if(a)for(const i in a)t[i]=a[i]}return t}else{if(lt(e))return e;if(Mt(e))return e}}const sY=/;(?![^(]*\))/g,lY=/:([^]+)/,uY=/\/\*[^]*?\*\//g;function cY(e){const t={};return e.replace(uY,"").split(sY).forEach(n=>{if(n){const r=n.split(lY);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function V(e){let t="";if(lt(e))t=e;else if(He(e))for(let n=0;n<e.length;n++){const r=V(e[n]);r&&(t+=r+" ")}else if(Mt(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Mi(e){if(!e)return null;let{class:t,style:n}=e;return t&&!lt(t)&&(e.class=V(t)),n&&(e.style=Ye(n)),e}const fY="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",dY=gT(fY);function SB(e){return!!e||e===""}function hY(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Ff(e[r],t[r]);return n}function Ff(e,t){if(e===t)return!0;let n=rc(e),r=rc(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=Av(e),r=Av(t),n||r)return e===t;if(n=He(e),r=He(t),n||r)return n&&r?hY(e,t):!1;if(n=Mt(e),r=Mt(t),n||r){if(!n||!r)return!1;const a=Object.keys(e).length,i=Object.keys(t).length;if(a!==i)return!1;for(const o in e){const s=e.hasOwnProperty(o),l=t.hasOwnProperty(o);if(s&&!l||!s&&l||!Ff(e[o],t[o]))return!1}}return String(e)===String(t)}function CB(e,t){return e.findIndex(n=>Ff(n,t))}const De=e=>lt(e)?e:e==null?"":He(e)||Mt(e)&&(e.toString===wB||!it(e.toString))?JSON.stringify(e,xB,2):String(e),xB=(e,t)=>t&&t.__v_isRef?xB(e,t.value):xf(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,a])=>(n[`${r} =>`]=a,n),{})}:Cb(t)?{[`Set(${t.size})`]:[...t.values()]}:Mt(t)&&!He(t)&&!Zy(t)?String(t):t;let xa;class TB{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=xa,!t&&xa&&(this.index=(xa.scopes||(xa.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=xa;try{return xa=this,t()}finally{xa=n}}}on(){xa=this}off(){xa=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const a=this.parent.scopes.pop();a&&a!==this&&(this.parent.scopes[this.index]=a,a.index=this.index)}this.parent=void 0,this._active=!1}}}function MB(e){return new TB(e)}function vY(e,t=xa){t&&t.active&&t.effects.push(e)}function kB(){return xa}function AB(e){xa&&xa.cleanups.push(e)}const _T=e=>{const t=new Set(e);return t.w=0,t.n=0,t},EB=e=>(e.w&ll)>0,IB=e=>(e.n&ll)>0,pY=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=ll},gY=e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const a=t[r];EB(a)&&!IB(a)?a.delete(e):t[n++]=a,a.w&=~ll,a.n&=~ll}t.length=n}},Qy=new WeakMap;let Rh=0,ll=1;const oC=30;let Ti;const Wu=Symbol(""),sC=Symbol("");class wT{constructor(t,n=null,r){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,vY(this,r)}run(){if(!this.active)return this.fn();let t=Ti,n=Zs;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Ti,Ti=this,Zs=!0,ll=1<<++Rh,Rh<=oC?pY(this):NE(this),this.fn()}finally{Rh<=oC&&gY(this),ll=1<<--Rh,Ti=this.parent,Zs=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Ti===this?this.deferStop=!0:this.active&&(NE(this),this.onStop&&this.onStop(),this.active=!1)}}function NE(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let Zs=!0;const DB=[];function bd(){DB.push(Zs),Zs=!1}function _d(){const e=DB.pop();Zs=e===void 0?!0:e}function ba(e,t,n){if(Zs&&Ti){let r=Qy.get(e);r||Qy.set(e,r=new Map);let a=r.get(n);a||r.set(n,a=_T()),PB(a)}}function PB(e,t){let n=!1;Rh<=oC?IB(e)||(e.n|=ll,n=!EB(e)):n=!e.has(Ti),n&&(e.add(Ti),Ti.deps.push(e))}function Zo(e,t,n,r,a,i){const o=Qy.get(e);if(!o)return;let s=[];if(t==="clear")s=[...o.values()];else if(n==="length"&&He(e)){const l=Number(r);o.forEach((u,c)=>{(c==="length"||c>=l)&&s.push(u)})}else switch(n!==void 0&&s.push(o.get(n)),t){case"add":He(e)?bT(n)&&s.push(o.get("length")):(s.push(o.get(Wu)),xf(e)&&s.push(o.get(sC)));break;case"delete":He(e)||(s.push(o.get(Wu)),xf(e)&&s.push(o.get(sC)));break;case"set":xf(e)&&s.push(o.get(Wu));break}if(s.length===1)s[0]&&lC(s[0]);else{const l=[];for(const u of s)u&&l.push(...u);lC(_T(l))}}function lC(e,t){const n=He(e)?e:[...e];for(const r of n)r.computed&&BE(r);for(const r of n)r.computed||BE(r)}function BE(e,t){(e!==Ti||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function mY(e,t){var n;return(n=Qy.get(e))==null?void 0:n.get(t)}const yY=gT("__proto__,__v_isRef,__isVue"),LB=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Av)),bY=ST(),_Y=ST(!1,!0),wY=ST(!0),VE=SY();function SY(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=tn(this);for(let i=0,o=this.length;i<o;i++)ba(r,"get",i+"");const a=r[t](...n);return a===-1||a===!1?r[t](...n.map(tn)):a}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){bd();const r=tn(this)[t].apply(this,n);return _d(),r}}),e}function CY(e){const t=tn(this);return ba(t,"has",e),t.hasOwnProperty(e)}function ST(e=!1,t=!1){return function(r,a,i){if(a==="__v_isReactive")return!e;if(a==="__v_isReadonly")return e;if(a==="__v_isShallow")return t;if(a==="__v_raw"&&i===(e?t?VY:BB:t?NB:$B).get(r))return r;const o=He(r);if(!e){if(o&&Nt(VE,a))return Reflect.get(VE,a,i);if(a==="hasOwnProperty")return CY}const s=Reflect.get(r,a,i);return(Av(a)?LB.has(a):yY(a))||(e||ba(r,"get",a),t)?s:cn(s)?o&&bT(a)?s:s.value:Mt(s)?e?wd(s):jt(s):s}}const xY=RB(),TY=RB(!0);function RB(e=!1){return function(n,r,a,i){let o=n[r];if(Hf(o)&&cn(o)&&!cn(a))return!1;if(!e&&(!e0(a)&&!Hf(a)&&(o=tn(o),a=tn(a)),!He(n)&&cn(o)&&!cn(a)))return o.value=a,!0;const s=He(n)&&bT(r)?Number(r)<n.length:Nt(n,r),l=Reflect.set(n,r,a,i);return n===tn(i)&&(s?Iv(a,o)&&Zo(n,"set",r,a):Zo(n,"add",r,a)),l}}function MY(e,t){const n=Nt(e,t);e[t];const r=Reflect.deleteProperty(e,t);return r&&n&&Zo(e,"delete",t,void 0),r}function kY(e,t){const n=Reflect.has(e,t);return(!Av(t)||!LB.has(t))&&ba(e,"has",t),n}function AY(e){return ba(e,"iterate",He(e)?"length":Wu),Reflect.ownKeys(e)}const OB={get:bY,set:xY,deleteProperty:MY,has:kY,ownKeys:AY},EY={get:wY,set(e,t){return!0},deleteProperty(e,t){return!0}},IY=Yn({},OB,{get:_Y,set:TY}),CT=e=>e,Tb=e=>Reflect.getPrototypeOf(e);function Eg(e,t,n=!1,r=!1){e=e.__v_raw;const a=tn(e),i=tn(t);n||(t!==i&&ba(a,"get",t),ba(a,"get",i));const{has:o}=Tb(a),s=r?CT:n?MT:Dv;if(o.call(a,t))return s(e.get(t));if(o.call(a,i))return s(e.get(i));e!==a&&e.get(t)}function Ig(e,t=!1){const n=this.__v_raw,r=tn(n),a=tn(e);return t||(e!==a&&ba(r,"has",e),ba(r,"has",a)),e===a?n.has(e):n.has(e)||n.has(a)}function Dg(e,t=!1){return e=e.__v_raw,!t&&ba(tn(e),"iterate",Wu),Reflect.get(e,"size",e)}function zE(e){e=tn(e);const t=tn(this);return Tb(t).has.call(t,e)||(t.add(e),Zo(t,"add",e,e)),this}function FE(e,t){t=tn(t);const n=tn(this),{has:r,get:a}=Tb(n);let i=r.call(n,e);i||(e=tn(e),i=r.call(n,e));const o=a.call(n,e);return n.set(e,t),i?Iv(t,o)&&Zo(n,"set",e,t):Zo(n,"add",e,t),this}function HE(e){const t=tn(this),{has:n,get:r}=Tb(t);let a=n.call(t,e);a||(e=tn(e),a=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return a&&Zo(t,"delete",e,void 0),i}function GE(){const e=tn(this),t=e.size!==0,n=e.clear();return t&&Zo(e,"clear",void 0,void 0),n}function Pg(e,t){return function(r,a){const i=this,o=i.__v_raw,s=tn(o),l=t?CT:e?MT:Dv;return!e&&ba(s,"iterate",Wu),o.forEach((u,c)=>r.call(a,l(u),l(c),i))}}function Lg(e,t,n){return function(...r){const a=this.__v_raw,i=tn(a),o=xf(i),s=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=a[e](...r),c=n?CT:t?MT:Dv;return!t&&ba(i,"iterate",l?sC:Wu),{next(){const{value:f,done:d}=u.next();return d?{value:f,done:d}:{value:s?[c(f[0]),c(f[1])]:c(f),done:d}},[Symbol.iterator](){return this}}}}function ms(e){return function(...t){return e==="delete"?!1:this}}function DY(){const e={get(i){return Eg(this,i)},get size(){return Dg(this)},has:Ig,add:zE,set:FE,delete:HE,clear:GE,forEach:Pg(!1,!1)},t={get(i){return Eg(this,i,!1,!0)},get size(){return Dg(this)},has:Ig,add:zE,set:FE,delete:HE,clear:GE,forEach:Pg(!1,!0)},n={get(i){return Eg(this,i,!0)},get size(){return Dg(this,!0)},has(i){return Ig.call(this,i,!0)},add:ms("add"),set:ms("set"),delete:ms("delete"),clear:ms("clear"),forEach:Pg(!0,!1)},r={get(i){return Eg(this,i,!0,!0)},get size(){return Dg(this,!0)},has(i){return Ig.call(this,i,!0)},add:ms("add"),set:ms("set"),delete:ms("delete"),clear:ms("clear"),forEach:Pg(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Lg(i,!1,!1),n[i]=Lg(i,!0,!1),t[i]=Lg(i,!1,!0),r[i]=Lg(i,!0,!0)}),[e,n,t,r]}const[PY,LY,RY,OY]=DY();function xT(e,t){const n=t?e?OY:RY:e?LY:PY;return(r,a,i)=>a==="__v_isReactive"?!e:a==="__v_isReadonly"?e:a==="__v_raw"?r:Reflect.get(Nt(n,a)&&a in r?n:r,a,i)}const $Y={get:xT(!1,!1)},NY={get:xT(!1,!0)},BY={get:xT(!0,!1)},$B=new WeakMap,NB=new WeakMap,BB=new WeakMap,VY=new WeakMap;function zY(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function FY(e){return e.__v_skip||!Object.isExtensible(e)?0:zY(ny(e))}function jt(e){return Hf(e)?e:TT(e,!1,OB,$Y,$B)}function VB(e){return TT(e,!1,IY,NY,NB)}function wd(e){return TT(e,!0,EY,BY,BB)}function TT(e,t,n,r,a){if(!Mt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=a.get(e);if(i)return i;const o=FY(e);if(o===0)return e;const s=new Proxy(e,o===2?r:n);return a.set(e,s),s}function Tf(e){return Hf(e)?Tf(e.__v_raw):!!(e&&e.__v_isReactive)}function Hf(e){return!!(e&&e.__v_isReadonly)}function e0(e){return!!(e&&e.__v_isShallow)}function zB(e){return Tf(e)||Hf(e)}function tn(e){const t=e&&e.__v_raw;return t?tn(t):e}function Js(e){return Jy(e,"__v_skip",!0),e}const Dv=e=>Mt(e)?jt(e):e,MT=e=>Mt(e)?wd(e):e;function FB(e){Zs&&Ti&&(e=tn(e),PB(e.dep||(e.dep=_T())))}function kT(e,t){e=tn(e);const n=e.dep;n&&lC(n)}function cn(e){return!!(e&&e.__v_isRef===!0)}function H(e){return HB(e,!1)}function un(e){return HB(e,!0)}function HB(e,t){return cn(e)?e:new HY(e,t)}class HY{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:tn(t),this._value=n?t:Dv(t)}get value(){return FB(this),this._value}set value(t){const n=this.__v_isShallow||e0(t)||Hf(t);t=n?t:tn(t),Iv(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Dv(t),kT(this))}}function qd(e){kT(e)}function y(e){return cn(e)?e.value:e}const GY={get:(e,t,n)=>y(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const a=e[t];return cn(a)&&!cn(n)?(a.value=n,!0):Reflect.set(e,t,n,r)}};function GB(e){return Tf(e)?e:new Proxy(e,GY)}function or(e){const t=He(e)?new Array(e.length):{};for(const n in e)t[n]=WB(e,n);return t}class WY{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,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}get dep(){return mY(tn(this._object),this._key)}}class KY{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function kn(e,t,n){return cn(e)?e:it(e)?new KY(e):Mt(e)&&arguments.length>1?WB(e,t,n):H(e)}function WB(e,t,n){const r=e[t];return cn(r)?r:new WY(e,t,n)}class UY{constructor(t,n,r,a){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new wT(t,()=>{this._dirty||(this._dirty=!0,kT(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!a,this.__v_isReadonly=r}get value(){const t=tn(this);return FB(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function KB(e,t,n=!1){let r,a;const i=it(e);return i?(r=e,a=rn):(r=e.get,a=e.set),new UY(r,a,i||!a,n)}function YY(e,...t){}function Qs(e,t,n,r){let a;try{a=r?e(...r):e()}catch(i){Mb(i,t,n)}return a}function Ja(e,t,n,r){if(it(e)){const i=Qs(e,t,n,r);return i&&Ev(i)&&i.catch(o=>{Mb(o,t,n)}),i}const a=[];for(let i=0;i<e.length;i++)a.push(Ja(e[i],t,n,r));return a}function Mb(e,t,n,r=!0){const a=t?t.vnode:null;if(t){let i=t.parent;const o=t.proxy,s=n;for(;i;){const u=i.ec;if(u){for(let c=0;c<u.length;c++)if(u[c](e,o,s)===!1)return}i=i.parent}const l=t.appContext.config.errorHandler;if(l){Qs(l,null,10,[e,o,s]);return}}jY(e,n,a,r)}function jY(e,t,n,r=!0){console.error(e)}let Pv=!1,uC=!1;const Lr=[];let ao=0;const Mf=[];let No=null,_u=0;const UB=Promise.resolve();let AT=null;function Ue(e){const t=AT||UB;return e?t.then(this?e.bind(this):e):t}function qY(e){let t=ao+1,n=Lr.length;for(;t<n;){const r=t+n>>>1;Lv(Lr[r])<e?t=r+1:n=r}return t}function ET(e){(!Lr.length||!Lr.includes(e,Pv&&e.allowRecurse?ao+1:ao))&&(e.id==null?Lr.push(e):Lr.splice(qY(e.id),0,e),YB())}function YB(){!Pv&&!uC&&(uC=!0,AT=UB.then(qB))}function XY(e){const t=Lr.indexOf(e);t>ao&&Lr.splice(t,1)}function ZY(e){He(e)?Mf.push(...e):(!No||!No.includes(e,e.allowRecurse?_u+1:_u))&&Mf.push(e),YB()}function WE(e,t=Pv?ao+1:0){for(;t<Lr.length;t++){const n=Lr[t];n&&n.pre&&(Lr.splice(t,1),t--,n())}}function jB(e){if(Mf.length){const t=[...new Set(Mf)];if(Mf.length=0,No){No.push(...t);return}for(No=t,No.sort((n,r)=>Lv(n)-Lv(r)),_u=0;_u<No.length;_u++)No[_u]();No=null,_u=0}}const Lv=e=>e.id==null?1/0:e.id,JY=(e,t)=>{const n=Lv(e)-Lv(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function qB(e){uC=!1,Pv=!0,Lr.sort(JY);const t=rn;try{for(ao=0;ao<Lr.length;ao++){const n=Lr[ao];n&&n.active!==!1&&Qs(n,null,14)}}finally{ao=0,Lr.length=0,jB(),Pv=!1,AT=null,(Lr.length||Mf.length)&&qB()}}function QY(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Ln;let a=n;const i=t.startsWith("update:"),o=i&&t.slice(7);if(o&&o in r){const c=`${o==="modelValue"?"model":o}Modifiers`,{number:f,trim:d}=r[c]||Ln;d&&(a=n.map(h=>lt(h)?h.trim():h)),f&&(a=n.map(aC))}let s,l=r[s=ay(t)]||r[s=ay(ti(t))];!l&&i&&(l=r[s=ay(Cl(t))]),l&&Ja(l,e,6,a);const u=r[s+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,Ja(u,e,6,a)}}function XB(e,t,n=!1){const r=t.emitsCache,a=r.get(e);if(a!==void 0)return a;const i=e.emits;let o={},s=!1;if(!it(e)){const l=u=>{const c=XB(u,t,!0);c&&(s=!0,Yn(o,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!s?(Mt(e)&&r.set(e,null),null):(He(i)?i.forEach(l=>o[l]=null):Yn(o,i),Mt(e)&&r.set(e,o),o)}function kb(e,t){return!e||!Sb(t)?!1:(t=t.slice(2).replace(/Once$/,""),Nt(e,t[0].toLowerCase()+t.slice(1))||Nt(e,Cl(t))||Nt(e,t))}let yr=null,Ab=null;function t0(e){const t=yr;return yr=e,Ab=e&&e.type.__scopeId||null,t}function _je(e){Ab=e}function wje(){Ab=null}function re(e,t=yr,n){if(!t||e._n)return e;const r=(...a)=>{r._d&&rI(-1);const i=t0(t);let o;try{o=e(...a)}finally{t0(i),r._d&&rI(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function t_(e){const{type:t,vnode:n,proxy:r,withProxy:a,props:i,propsOptions:[o],slots:s,attrs:l,emit:u,render:c,renderCache:f,data:d,setupState:h,ctx:v,inheritAttrs:p}=e;let g,m;const b=t0(e);try{if(n.shapeFlag&4){const w=a||r;g=ro(c.call(w,w,f,i,h,d,v)),m=l}else{const w=t;g=ro(w.length>1?w(i,{attrs:l,slots:s,emit:u}):w(i,null)),m=t.props?l:ej(l)}}catch(w){Qh.length=0,Mb(w,e,1),g=q(Yr)}let _=g;if(m&&p!==!1){const w=Object.keys(m),{shapeFlag:C}=_;w.length&&C&7&&(o&&w.some(mT)&&(m=tj(m,o)),_=Qo(_,m))}return n.dirs&&(_=Qo(_),_.dirs=_.dirs?_.dirs.concat(n.dirs):n.dirs),n.transition&&(_.transition=n.transition),g=_,t0(b),g}const ej=e=>{let t;for(const n in e)(n==="class"||n==="style"||Sb(n))&&((t||(t={}))[n]=e[n]);return t},tj=(e,t)=>{const n={};for(const r in e)(!mT(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function nj(e,t,n){const{props:r,children:a,component:i}=e,{props:o,children:s,patchFlag:l}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?KE(r,o,u):!!o;if(l&8){const c=t.dynamicProps;for(let f=0;f<c.length;f++){const d=c[f];if(o[d]!==r[d]&&!kb(u,d))return!0}}}else return(a||s)&&(!s||!s.$stable)?!0:r===o?!1:r?o?KE(r,o,u):!0:!!o;return!1}function KE(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let a=0;a<r.length;a++){const i=r[a];if(t[i]!==e[i]&&!kb(n,i))return!0}return!1}function rj({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const aj=e=>e.__isSuspense;function ij(e,t){t&&t.pendingBranch?He(e)?t.effects.push(...e):t.effects.push(e):ZY(e)}function Ia(e,t){return IT(e,null,t)}const Rg={};function xe(e,t,n){return IT(e,t,n)}function IT(e,t,{immediate:n,deep:r,flush:a,onTrack:i,onTrigger:o}=Ln){var s;const l=kB()===((s=dr)==null?void 0:s.scope)?dr:null;let u,c=!1,f=!1;if(cn(e)?(u=()=>e.value,c=e0(e)):Tf(e)?(u=()=>e,r=!0):He(e)?(f=!0,c=e.some(w=>Tf(w)||e0(w)),u=()=>e.map(w=>{if(cn(w))return w.value;if(Tf(w))return Eu(w);if(it(w))return Qs(w,l,2)})):it(e)?t?u=()=>Qs(e,l,2):u=()=>{if(!(l&&l.isUnmounted))return d&&d(),Ja(e,l,3,[h])}:u=rn,t&&r){const w=u;u=()=>Eu(w())}let d,h=w=>{d=b.onStop=()=>{Qs(w,l,4)}},v;if(Bv)if(h=rn,t?n&&Ja(t,l,3,[u(),f?[]:void 0,h]):u(),a==="sync"){const w=Yj();v=w.__watcherHandles||(w.__watcherHandles=[])}else return rn;let p=f?new Array(e.length).fill(Rg):Rg;const g=()=>{if(b.active)if(t){const w=b.run();(r||c||(f?w.some((C,S)=>Iv(C,p[S])):Iv(w,p)))&&(d&&d(),Ja(t,l,3,[w,p===Rg?void 0:f&&p[0]===Rg?[]:p,h]),p=w)}else b.run()};g.allowRecurse=!!t;let m;a==="sync"?m=g:a==="post"?m=()=>fa(g,l&&l.suspense):(g.pre=!0,l&&(g.id=l.uid),m=()=>ET(g));const b=new wT(u,m);t?n?g():p=b.run():a==="post"?fa(b.run.bind(b),l&&l.suspense):b.run();const _=()=>{b.stop(),l&&l.scope&&yT(l.scope.effects,b)};return v&&v.push(_),_}function oj(e,t,n){const r=this.proxy,a=lt(e)?e.includes(".")?ZB(r,e):()=>r[e]:e.bind(r,r);let i;it(t)?i=t:(i=t.handler,n=t);const o=dr;Gf(this);const s=IT(a,i.bind(r),n);return o?Gf(o):Ku(),s}function ZB(e,t){const n=t.split(".");return()=>{let r=e;for(let a=0;a<n.length&&r;a++)r=r[n[a]];return r}}function Eu(e,t){if(!Mt(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),cn(e))Eu(e.value,t);else if(He(e))for(let n=0;n<e.length;n++)Eu(e[n],t);else if(Cb(e)||xf(e))e.forEach(n=>{Eu(n,t)});else if(Zy(e))for(const n in e)Eu(e[n],t);return e}function dt(e,t){const n=yr;if(n===null)return e;const r=Rb(n)||n.proxy,a=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[o,s,l,u=Ln]=t[i];o&&(it(o)&&(o={mounted:o,updated:o}),o.deep&&Eu(s),a.push({dir:o,instance:r,value:s,oldValue:void 0,arg:l,modifiers:u}))}return e}function Nl(e,t,n,r){const a=e.dirs,i=t&&t.dirs;for(let o=0;o<a.length;o++){const s=a[o];i&&(s.oldValue=i[o].value);let l=s.dir[r];l&&(bd(),Ja(l,n,8,[e.el,s,e,t]),_d())}}function JB(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return yt(()=>{e.isMounted=!0}),wn(()=>{e.isUnmounting=!0}),e}const Oa=[Function,Array],QB={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Oa,onEnter:Oa,onAfterEnter:Oa,onEnterCancelled:Oa,onBeforeLeave:Oa,onLeave:Oa,onAfterLeave:Oa,onLeaveCancelled:Oa,onBeforeAppear:Oa,onAppear:Oa,onAfterAppear:Oa,onAppearCancelled:Oa},sj={name:"BaseTransition",props:QB,setup(e,{slots:t}){const n=gt(),r=JB();let a;return()=>{const i=t.default&&DT(t.default(),!0);if(!i||!i.length)return;let o=i[0];if(i.length>1){for(const p of i)if(p.type!==Yr){o=p;break}}const s=tn(e),{mode:l}=s;if(r.isLeaving)return n_(o);const u=UE(o);if(!u)return n_(o);const c=Rv(u,s,r,n);Ov(u,c);const f=n.subTree,d=f&&UE(f);let h=!1;const{getTransitionKey:v}=u.type;if(v){const p=v();a===void 0?a=p:p!==a&&(a=p,h=!0)}if(d&&d.type!==Yr&&(!wu(u,d)||h)){const p=Rv(d,s,r,n);if(Ov(d,p),l==="out-in")return r.isLeaving=!0,p.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},n_(o);l==="in-out"&&u.type!==Yr&&(p.delayLeave=(g,m,b)=>{const _=eV(r,d);_[String(d.key)]=d,g._leaveCb=()=>{m(),g._leaveCb=void 0,delete c.delayedLeave},c.delayedLeave=b})}return o}}},lj=sj;function eV(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Rv(e,t,n,r){const{appear:a,mode:i,persisted:o=!1,onBeforeEnter:s,onEnter:l,onAfterEnter:u,onEnterCancelled:c,onBeforeLeave:f,onLeave:d,onAfterLeave:h,onLeaveCancelled:v,onBeforeAppear:p,onAppear:g,onAfterAppear:m,onAppearCancelled:b}=t,_=String(e.key),w=eV(n,e),C=(T,M)=>{T&&Ja(T,r,9,M)},S=(T,M)=>{const A=M[1];C(T,M),He(T)?T.every(k=>k.length<=1)&&A():T.length<=1&&A()},x={mode:i,persisted:o,beforeEnter(T){let M=s;if(!n.isMounted)if(a)M=p||s;else return;T._leaveCb&&T._leaveCb(!0);const A=w[_];A&&wu(e,A)&&A.el._leaveCb&&A.el._leaveCb(),C(M,[T])},enter(T){let M=l,A=u,k=c;if(!n.isMounted)if(a)M=g||l,A=m||u,k=b||c;else return;let E=!1;const D=T._enterCb=L=>{E||(E=!0,L?C(k,[T]):C(A,[T]),x.delayedLeave&&x.delayedLeave(),T._enterCb=void 0)};M?S(M,[T,D]):D()},leave(T,M){const A=String(e.key);if(T._enterCb&&T._enterCb(!0),n.isUnmounting)return M();C(f,[T]);let k=!1;const E=T._leaveCb=D=>{k||(k=!0,M(),D?C(v,[T]):C(h,[T]),T._leaveCb=void 0,w[A]===e&&delete w[A])};w[A]=e,d?S(d,[T,E]):E()},clone(T){return Rv(T,t,n,r)}};return x}function n_(e){if(Eb(e))return e=Qo(e),e.children=null,e}function UE(e){return Eb(e)?e.children?e.children[0]:void 0:e}function Ov(e,t){e.shapeFlag&6&&e.component?Ov(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 DT(e,t=!1,n){let r=[],a=0;for(let i=0;i<e.length;i++){let o=e[i];const s=n==null?o.key:String(n)+String(o.key!=null?o.key:i);o.type===je?(o.patchFlag&128&&a++,r=r.concat(DT(o.children,t,s))):(t||o.type!==Yr)&&r.push(s!=null?Qo(o,{key:s}):o)}if(a>1)for(let i=0;i<r.length;i++)r[i].patchFlag=-2;return r}function ne(e,t){return it(e)?(()=>Yn({name:e.name},t,{setup:e}))():e}const Xh=e=>!!e.type.__asyncLoader,Eb=e=>e.type.__isKeepAlive;function uj(e,t){nV(e,"a",t)}function tV(e,t){nV(e,"da",t)}function nV(e,t,n=dr){const r=e.__wdc||(e.__wdc=()=>{let a=n;for(;a;){if(a.isDeactivated)return;a=a.parent}return e()});if(Ib(t,r,n),n){let a=n.parent;for(;a&&a.parent;)Eb(a.parent.vnode)&&cj(r,t,n,a),a=a.parent}}function cj(e,t,n,r){const a=Ib(t,e,r,!0);xl(()=>{yT(r[t],a)},n)}function Ib(e,t,n=dr,r=!1){if(n){const a=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;bd(),Gf(n);const s=Ja(t,n,e,o);return Ku(),_d(),s});return r?a.unshift(i):a.push(i),i}}const us=e=>(t,n=dr)=>(!Bv||e==="sp")&&Ib(e,(...r)=>t(...r),n),Db=us("bm"),yt=us("m"),rV=us("bu"),cs=us("u"),wn=us("bum"),xl=us("um"),fj=us("sp"),dj=us("rtg"),hj=us("rtc");function vj(e,t=dr){Ib("ec",e,t)}const PT="components",pj="directives";function ct(e,t){return LT(PT,e,!0,t)||e}const aV=Symbol.for("v-ndc");function Ct(e){return lt(e)?LT(PT,e,!1)||e:e||aV}function $v(e){return LT(pj,e)}function LT(e,t,n=!0,r=!1){const a=yr||dr;if(a){const i=a.type;if(e===PT){const s=Wj(i,!1);if(s&&(s===t||s===ti(t)||s===Gp(ti(t))))return i}const o=YE(a[e]||i[e],t)||YE(a.appContext[e],t);return!o&&r?i:o}}function YE(e,t){return e&&(e[t]||e[ti(t)]||e[Gp(ti(t))])}function Ot(e,t,n,r){let a;const i=n&&n[r];if(He(e)||lt(e)){a=new Array(e.length);for(let o=0,s=e.length;o<s;o++)a[o]=t(e[o],o,void 0,i&&i[o])}else if(typeof e=="number"){a=new Array(e);for(let o=0;o<e;o++)a[o]=t(o+1,o,void 0,i&&i[o])}else if(Mt(e))if(e[Symbol.iterator])a=Array.from(e,(o,s)=>t(o,s,void 0,i&&i[s]));else{const o=Object.keys(e);a=new Array(o.length);for(let s=0,l=o.length;s<l;s++){const u=o[s];a[s]=t(e[u],u,s,i&&i[s])}}else a=[];return n&&(n[r]=a),a}function Jo(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(He(r))for(let a=0;a<r.length;a++)e[r[a].name]=r[a].fn;else r&&(e[r.name]=r.key?(...a)=>{const i=r.fn(...a);return i&&(i.key=r.key),i}:r.fn)}return e}function _e(e,t,n={},r,a){if(yr.isCE||yr.parent&&Xh(yr.parent)&&yr.parent.isCE)return t!=="default"&&(n.name=t),q("slot",n,r&&r());let i=e[t];i&&i._c&&(i._d=!1),R();const o=i&&iV(i(n)),s=ce(je,{key:n.key||o&&o.key||`_${t}`},o||(r?r():[]),o&&e._===1?64:-2);return!a&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),i&&i._c&&(i._d=!0),s}function iV(e){return e.some(t=>Tn(t)?!(t.type===Yr||t.type===je&&!iV(t.children)):!0)?e:null}function gj(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:ay(r)]=e[r];return n}const cC=e=>e?mV(e)?Rb(e)||e.proxy:cC(e.parent):null,Zh=Yn(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=>cC(e.parent),$root:e=>cC(e.root),$emit:e=>e.emit,$options:e=>RT(e),$forceUpdate:e=>e.f||(e.f=()=>ET(e.update)),$nextTick:e=>e.n||(e.n=Ue.bind(e.proxy)),$watch:e=>oj.bind(e)}),r_=(e,t)=>e!==Ln&&!e.__isScriptSetup&&Nt(e,t),mj={get({_:e},t){const{ctx:n,setupState:r,data:a,props:i,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 r[t];case 2:return a[t];case 4:return n[t];case 3:return i[t]}else{if(r_(r,t))return o[t]=1,r[t];if(a!==Ln&&Nt(a,t))return o[t]=2,a[t];if((u=e.propsOptions[0])&&Nt(u,t))return o[t]=3,i[t];if(n!==Ln&&Nt(n,t))return o[t]=4,n[t];fC&&(o[t]=0)}}const c=Zh[t];let f,d;if(c)return t==="$attrs"&&ba(e,"get",t),c(e);if((f=s.__cssModules)&&(f=f[t]))return f;if(n!==Ln&&Nt(n,t))return o[t]=4,n[t];if(d=l.config.globalProperties,Nt(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:a,ctx:i}=e;return r_(a,t)?(a[t]=n,!0):r!==Ln&&Nt(r,t)?(r[t]=n,!0):Nt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:a,propsOptions:i}},o){let s;return!!n[o]||e!==Ln&&Nt(e,o)||r_(t,o)||(s=i[0])&&Nt(s,o)||Nt(r,o)||Nt(Zh,o)||Nt(a.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Nt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Mr(){return oV().slots}function mc(){return oV().attrs}function oV(){const e=gt();return e.setupContext||(e.setupContext=bV(e))}function jE(e){return He(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let fC=!0;function yj(e){const t=RT(e),n=e.proxy,r=e.ctx;fC=!1,t.beforeCreate&&qE(t.beforeCreate,e,"bc");const{data:a,computed:i,methods:o,watch:s,provide:l,inject:u,created:c,beforeMount:f,mounted:d,beforeUpdate:h,updated:v,activated:p,deactivated:g,beforeDestroy:m,beforeUnmount:b,destroyed:_,unmounted:w,render:C,renderTracked:S,renderTriggered:x,errorCaptured:T,serverPrefetch:M,expose:A,inheritAttrs:k,components:E,directives:D,filters:L}=t;if(u&&bj(u,r,null),o)for(const O in o){const $=o[O];it($)&&(r[O]=$.bind(n))}if(a){const O=a.call(n,n);Mt(O)&&(e.data=jt(O))}if(fC=!0,i)for(const O in i){const $=i[O],I=it($)?$.bind(n,n):it($.get)?$.get.bind(n,n):rn,z=!it($)&&it($.set)?$.set.bind(n):rn,G=P({get:I,set:z});Object.defineProperty(r,O,{enumerable:!0,configurable:!0,get:()=>G.value,set:U=>G.value=U})}if(s)for(const O in s)sV(s[O],r,n,O);if(l){const O=it(l)?l.call(n):l;Reflect.ownKeys(O).forEach($=>{Et($,O[$])})}c&&qE(c,e,"c");function N(O,$){He($)?$.forEach(I=>O(I.bind(n))):$&&O($.bind(n))}if(N(Db,f),N(yt,d),N(rV,h),N(cs,v),N(uj,p),N(tV,g),N(vj,T),N(hj,S),N(dj,x),N(wn,b),N(xl,w),N(fj,M),He(A))if(A.length){const O=e.exposed||(e.exposed={});A.forEach($=>{Object.defineProperty(O,$,{get:()=>n[$],set:I=>n[$]=I})})}else e.exposed||(e.exposed={});C&&e.render===rn&&(e.render=C),k!=null&&(e.inheritAttrs=k),E&&(e.components=E),D&&(e.directives=D)}function bj(e,t,n=rn){He(e)&&(e=dC(e));for(const r in e){const a=e[r];let i;Mt(a)?"default"in a?i=Ge(a.from||r,a.default,!0):i=Ge(a.from||r):i=Ge(a),cn(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[r]=i}}function qE(e,t,n){Ja(He(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function sV(e,t,n,r){const a=r.includes(".")?ZB(n,r):()=>n[r];if(lt(e)){const i=t[e];it(i)&&xe(a,i)}else if(it(e))xe(a,e.bind(n));else if(Mt(e))if(He(e))e.forEach(i=>sV(i,t,n,r));else{const i=it(e.handler)?e.handler.bind(n):t[e.handler];it(i)&&xe(a,i,e)}}function RT(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:a,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,s=i.get(t);let l;return s?l=s:!a.length&&!n&&!r?l=t:(l={},a.length&&a.forEach(u=>n0(l,u,o,!0)),n0(l,t,o)),Mt(t)&&i.set(t,l),l}function n0(e,t,n,r=!1){const{mixins:a,extends:i}=t;i&&n0(e,i,n,!0),a&&a.forEach(o=>n0(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const s=_j[o]||n&&n[o];e[o]=s?s(e[o],t[o]):t[o]}return e}const _j={data:XE,props:ZE,emits:ZE,methods:Oh,computed:Oh,beforeCreate:Fr,created:Fr,beforeMount:Fr,mounted:Fr,beforeUpdate:Fr,updated:Fr,beforeDestroy:Fr,beforeUnmount:Fr,destroyed:Fr,unmounted:Fr,activated:Fr,deactivated:Fr,errorCaptured:Fr,serverPrefetch:Fr,components:Oh,directives:Oh,watch:Sj,provide:XE,inject:wj};function XE(e,t){return t?e?function(){return Yn(it(e)?e.call(this,this):e,it(t)?t.call(this,this):t)}:t:e}function wj(e,t){return Oh(dC(e),dC(t))}function dC(e){if(He(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Fr(e,t){return e?[...new Set([].concat(e,t))]:t}function Oh(e,t){return e?Yn(Object.create(null),e,t):t}function ZE(e,t){return e?He(e)&&He(t)?[...new Set([...e,...t])]:Yn(Object.create(null),jE(e),jE(t??{})):t}function Sj(e,t){if(!e)return t;if(!t)return e;const n=Yn(Object.create(null),e);for(const r in t)n[r]=Fr(e[r],t[r]);return n}function lV(){return{app:null,config:{isNativeTag:tY,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 Cj=0;function xj(e,t){return function(r,a=null){it(r)||(r=Yn({},r)),a!=null&&!Mt(a)&&(a=null);const i=lV(),o=new Set;let s=!1;const l=i.app={_uid:Cj++,_component:r,_props:a,_container:null,_context:i,_instance:null,version:jj,get config(){return i.config},set config(u){},use(u,...c){return o.has(u)||(u&&it(u.install)?(o.add(u),u.install(l,...c)):it(u)&&(o.add(u),u(l,...c))),l},mixin(u){return i.mixins.includes(u)||i.mixins.push(u),l},component(u,c){return c?(i.components[u]=c,l):i.components[u]},directive(u,c){return c?(i.directives[u]=c,l):i.directives[u]},mount(u,c,f){if(!s){const d=q(r,a);return d.appContext=i,c&&t?t(d,u):e(d,u,f),s=!0,l._container=u,u.__vue_app__=l,Rb(d.component)||d.component.proxy}},unmount(){s&&(e(null,l._container),delete l._container.__vue_app__)},provide(u,c){return i.provides[u]=c,l},runWithContext(u){r0=l;try{return u()}finally{r0=null}}};return l}}let r0=null;function Et(e,t){if(dr){let n=dr.provides;const r=dr.parent&&dr.parent.provides;r===n&&(n=dr.provides=Object.create(r)),n[e]=t}}function Ge(e,t,n=!1){const r=dr||yr;if(r||r0){const a=r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:r0._context.provides;if(a&&e in a)return a[e];if(arguments.length>1)return n&&it(t)?t.call(r&&r.proxy):t}}function Tj(e,t,n,r=!1){const a={},i={};Jy(i,Pb,1),e.propsDefaults=Object.create(null),uV(e,t,a,i);for(const o in e.propsOptions[0])o in a||(a[o]=void 0);n?e.props=r?a:VB(a):e.type.props?e.props=a:e.props=i,e.attrs=i}function Mj(e,t,n,r){const{props:a,attrs:i,vnode:{patchFlag:o}}=e,s=tn(a),[l]=e.propsOptions;let u=!1;if((r||o>0)&&!(o&16)){if(o&8){const c=e.vnode.dynamicProps;for(let f=0;f<c.length;f++){let d=c[f];if(kb(e.emitsOptions,d))continue;const h=t[d];if(l)if(Nt(i,d))h!==i[d]&&(i[d]=h,u=!0);else{const v=ti(d);a[v]=hC(l,s,v,h,e,!1)}else h!==i[d]&&(i[d]=h,u=!0)}}}else{uV(e,t,a,i)&&(u=!0);let c;for(const f in s)(!t||!Nt(t,f)&&((c=Cl(f))===f||!Nt(t,c)))&&(l?n&&(n[f]!==void 0||n[c]!==void 0)&&(a[f]=hC(l,s,f,void 0,e,!0)):delete a[f]);if(i!==s)for(const f in i)(!t||!Nt(t,f))&&(delete i[f],u=!0)}u&&Zo(e,"set","$attrs")}function uV(e,t,n,r){const[a,i]=e.propsOptions;let o=!1,s;if(t)for(let l in t){if(ry(l))continue;const u=t[l];let c;a&&Nt(a,c=ti(l))?!i||!i.includes(c)?n[c]=u:(s||(s={}))[c]=u:kb(e.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,o=!0)}if(i){const l=tn(n),u=s||Ln;for(let c=0;c<i.length;c++){const f=i[c];n[f]=hC(a,l,f,u[f],e,!Nt(u,f))}}return o}function hC(e,t,n,r,a,i){const o=e[n];if(o!=null){const s=Nt(o,"default");if(s&&r===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&it(l)){const{propsDefaults:u}=a;n in u?r=u[n]:(Gf(a),r=u[n]=l.call(null,t),Ku())}else r=l}o[0]&&(i&&!s?r=!1:o[1]&&(r===""||r===Cl(n))&&(r=!0))}return r}function cV(e,t,n=!1){const r=t.propsCache,a=r.get(e);if(a)return a;const i=e.props,o={},s=[];let l=!1;if(!it(e)){const c=f=>{l=!0;const[d,h]=cV(f,t,!0);Yn(o,d),h&&s.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!i&&!l)return Mt(e)&&r.set(e,Cf),Cf;if(He(i))for(let c=0;c<i.length;c++){const f=ti(i[c]);JE(f)&&(o[f]=Ln)}else if(i)for(const c in i){const f=ti(c);if(JE(f)){const d=i[c],h=o[f]=He(d)||it(d)?{type:d}:Yn({},d);if(h){const v=tI(Boolean,h.type),p=tI(String,h.type);h[0]=v>-1,h[1]=p<0||v<p,(v>-1||Nt(h,"default"))&&s.push(f)}}}const u=[o,s];return Mt(e)&&r.set(e,u),u}function JE(e){return e[0]!=="$"}function QE(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function eI(e,t){return QE(e)===QE(t)}function tI(e,t){return He(t)?t.findIndex(n=>eI(n,e)):it(t)&&eI(t,e)?0:-1}const fV=e=>e[0]==="_"||e==="$stable",OT=e=>He(e)?e.map(ro):[ro(e)],kj=(e,t,n)=>{if(t._n)return t;const r=re((...a)=>OT(t(...a)),n);return r._c=!1,r},dV=(e,t,n)=>{const r=e._ctx;for(const a in e){if(fV(a))continue;const i=e[a];if(it(i))t[a]=kj(a,i,r);else if(i!=null){const o=OT(i);t[a]=()=>o}}},hV=(e,t)=>{const n=OT(t);e.slots.default=()=>n},Aj=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=tn(t),Jy(t,"_",n)):dV(t,e.slots={})}else e.slots={},t&&hV(e,t);Jy(e.slots,Pb,1)},Ej=(e,t,n)=>{const{vnode:r,slots:a}=e;let i=!0,o=Ln;if(r.shapeFlag&32){const s=t._;s?n&&s===1?i=!1:(Yn(a,t),!n&&s===1&&delete a._):(i=!t.$stable,dV(t,a)),o=t}else t&&(hV(e,t),o={default:1});if(i)for(const s in a)!fV(s)&&!(s in o)&&delete a[s]};function vC(e,t,n,r,a=!1){if(He(e)){e.forEach((d,h)=>vC(d,t&&(He(t)?t[h]:t),n,r,a));return}if(Xh(r)&&!a)return;const i=r.shapeFlag&4?Rb(r.component)||r.component.proxy:r.el,o=a?null:i,{i:s,r:l}=e,u=t&&t.r,c=s.refs===Ln?s.refs={}:s.refs,f=s.setupState;if(u!=null&&u!==l&&(lt(u)?(c[u]=null,Nt(f,u)&&(f[u]=null)):cn(u)&&(u.value=null)),it(l))Qs(l,s,12,[o,c]);else{const d=lt(l),h=cn(l);if(d||h){const v=()=>{if(e.f){const p=d?Nt(f,l)?f[l]:c[l]:l.value;a?He(p)&&yT(p,i):He(p)?p.includes(i)||p.push(i):d?(c[l]=[i],Nt(f,l)&&(f[l]=c[l])):(l.value=[i],e.k&&(c[e.k]=l.value))}else d?(c[l]=o,Nt(f,l)&&(f[l]=o)):h&&(l.value=o,e.k&&(c[e.k]=o))};o?(v.id=-1,fa(v,n)):v()}}}const fa=ij;function Ij(e){return Dj(e)}function Dj(e,t){const n=iC();n.__VUE__=!0;const{insert:r,remove:a,patchProp:i,createElement:o,createText:s,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:d,setScopeId:h=rn,insertStaticContent:v}=e,p=(W,X,oe,pe=null,Se=null,me=null,Ee=!1,Ce=null,we=!!X.dynamicChildren)=>{if(W===X)return;W&&!wu(W,X)&&(pe=ee(W),U(W,Se,me,!0),W=null),X.patchFlag===-2&&(we=!1,X.dynamicChildren=null);const{type:Te,ref:$e,shapeFlag:Be}=X;switch(Te){case Sd:g(W,X,oe,pe);break;case Yr:m(W,X,oe,pe);break;case a_:W==null&&b(X,oe,pe,Ee);break;case je:E(W,X,oe,pe,Se,me,Ee,Ce,we);break;default:Be&1?C(W,X,oe,pe,Se,me,Ee,Ce,we):Be&6?D(W,X,oe,pe,Se,me,Ee,Ce,we):(Be&64||Be&128)&&Te.process(W,X,oe,pe,Se,me,Ee,Ce,we,de)}$e!=null&&Se&&vC($e,W&&W.ref,me,X||W,!X)},g=(W,X,oe,pe)=>{if(W==null)r(X.el=s(X.children),oe,pe);else{const Se=X.el=W.el;X.children!==W.children&&u(Se,X.children)}},m=(W,X,oe,pe)=>{W==null?r(X.el=l(X.children||""),oe,pe):X.el=W.el},b=(W,X,oe,pe)=>{[W.el,W.anchor]=v(W.children,X,oe,pe,W.el,W.anchor)},_=({el:W,anchor:X},oe,pe)=>{let Se;for(;W&&W!==X;)Se=d(W),r(W,oe,pe),W=Se;r(X,oe,pe)},w=({el:W,anchor:X})=>{let oe;for(;W&&W!==X;)oe=d(W),a(W),W=oe;a(X)},C=(W,X,oe,pe,Se,me,Ee,Ce,we)=>{Ee=Ee||X.type==="svg",W==null?S(X,oe,pe,Se,me,Ee,Ce,we):M(W,X,Se,me,Ee,Ce,we)},S=(W,X,oe,pe,Se,me,Ee,Ce)=>{let we,Te;const{type:$e,props:Be,shapeFlag:We,transition:Ae,dirs:Fe}=W;if(we=W.el=o(W.type,me,Be&&Be.is,Be),We&8?c(we,W.children):We&16&&T(W.children,we,null,pe,Se,me&&$e!=="foreignObject",Ee,Ce),Fe&&Nl(W,null,pe,"created"),x(we,W,W.scopeId,Ee,pe),Be){for(const vt in Be)vt!=="value"&&!ry(vt)&&i(we,vt,null,Be[vt],me,W.children,pe,Se,Q);"value"in Be&&i(we,"value",null,Be.value),(Te=Be.onVnodeBeforeMount)&&ji(Te,pe,W)}Fe&&Nl(W,null,pe,"beforeMount");const rt=(!Se||Se&&!Se.pendingBranch)&&Ae&&!Ae.persisted;rt&&Ae.beforeEnter(we),r(we,X,oe),((Te=Be&&Be.onVnodeMounted)||rt||Fe)&&fa(()=>{Te&&ji(Te,pe,W),rt&&Ae.enter(we),Fe&&Nl(W,null,pe,"mounted")},Se)},x=(W,X,oe,pe,Se)=>{if(oe&&h(W,oe),pe)for(let me=0;me<pe.length;me++)h(W,pe[me]);if(Se){let me=Se.subTree;if(X===me){const Ee=Se.vnode;x(W,Ee,Ee.scopeId,Ee.slotScopeIds,Se.parent)}}},T=(W,X,oe,pe,Se,me,Ee,Ce,we=0)=>{for(let Te=we;Te<W.length;Te++){const $e=W[Te]=Ce?$s(W[Te]):ro(W[Te]);p(null,$e,X,oe,pe,Se,me,Ee,Ce)}},M=(W,X,oe,pe,Se,me,Ee)=>{const Ce=X.el=W.el;let{patchFlag:we,dynamicChildren:Te,dirs:$e}=X;we|=W.patchFlag&16;const Be=W.props||Ln,We=X.props||Ln;let Ae;oe&&Bl(oe,!1),(Ae=We.onVnodeBeforeUpdate)&&ji(Ae,oe,X,W),$e&&Nl(X,W,oe,"beforeUpdate"),oe&&Bl(oe,!0);const Fe=Se&&X.type!=="foreignObject";if(Te?A(W.dynamicChildren,Te,Ce,oe,pe,Fe,me):Ee||$(W,X,Ce,null,oe,pe,Fe,me,!1),we>0){if(we&16)k(Ce,X,Be,We,oe,pe,Se);else if(we&2&&Be.class!==We.class&&i(Ce,"class",null,We.class,Se),we&4&&i(Ce,"style",Be.style,We.style,Se),we&8){const rt=X.dynamicProps;for(let vt=0;vt<rt.length;vt++){const kt=rt[vt],Qe=Be[kt],ye=We[kt];(ye!==Qe||kt==="value")&&i(Ce,kt,Qe,ye,Se,W.children,oe,pe,Q)}}we&1&&W.children!==X.children&&c(Ce,X.children)}else!Ee&&Te==null&&k(Ce,X,Be,We,oe,pe,Se);((Ae=We.onVnodeUpdated)||$e)&&fa(()=>{Ae&&ji(Ae,oe,X,W),$e&&Nl(X,W,oe,"updated")},pe)},A=(W,X,oe,pe,Se,me,Ee)=>{for(let Ce=0;Ce<X.length;Ce++){const we=W[Ce],Te=X[Ce],$e=we.el&&(we.type===je||!wu(we,Te)||we.shapeFlag&70)?f(we.el):oe;p(we,Te,$e,null,pe,Se,me,Ee,!0)}},k=(W,X,oe,pe,Se,me,Ee)=>{if(oe!==pe){if(oe!==Ln)for(const Ce in oe)!ry(Ce)&&!(Ce in pe)&&i(W,Ce,oe[Ce],null,Ee,X.children,Se,me,Q);for(const Ce in pe){if(ry(Ce))continue;const we=pe[Ce],Te=oe[Ce];we!==Te&&Ce!=="value"&&i(W,Ce,Te,we,Ee,X.children,Se,me,Q)}"value"in pe&&i(W,"value",oe.value,pe.value)}},E=(W,X,oe,pe,Se,me,Ee,Ce,we)=>{const Te=X.el=W?W.el:s(""),$e=X.anchor=W?W.anchor:s("");let{patchFlag:Be,dynamicChildren:We,slotScopeIds:Ae}=X;Ae&&(Ce=Ce?Ce.concat(Ae):Ae),W==null?(r(Te,oe,pe),r($e,oe,pe),T(X.children,oe,$e,Se,me,Ee,Ce,we)):Be>0&&Be&64&&We&&W.dynamicChildren?(A(W.dynamicChildren,We,oe,Se,me,Ee,Ce),(X.key!=null||Se&&X===Se.subTree)&&$T(W,X,!0)):$(W,X,oe,$e,Se,me,Ee,Ce,we)},D=(W,X,oe,pe,Se,me,Ee,Ce,we)=>{X.slotScopeIds=Ce,W==null?X.shapeFlag&512?Se.ctx.activate(X,oe,pe,Ee,we):L(X,oe,pe,Se,me,Ee,we):B(W,X,we)},L=(W,X,oe,pe,Se,me,Ee)=>{const Ce=W.component=zj(W,pe,Se);if(Eb(W)&&(Ce.ctx.renderer=de),Fj(Ce),Ce.asyncDep){if(Se&&Se.registerDep(Ce,N),!W.el){const we=Ce.subTree=q(Yr);m(null,we,X,oe)}return}N(Ce,W,X,oe,Se,me,Ee)},B=(W,X,oe)=>{const pe=X.component=W.component;if(nj(W,X,oe))if(pe.asyncDep&&!pe.asyncResolved){O(pe,X,oe);return}else pe.next=X,XY(pe.update),pe.update();else X.el=W.el,pe.vnode=X},N=(W,X,oe,pe,Se,me,Ee)=>{const Ce=()=>{if(W.isMounted){let{next:$e,bu:Be,u:We,parent:Ae,vnode:Fe}=W,rt=$e,vt;Bl(W,!1),$e?($e.el=Fe.el,O(W,$e,Ee)):$e=Fe,Be&&iy(Be),(vt=$e.props&&$e.props.onVnodeBeforeUpdate)&&ji(vt,Ae,$e,Fe),Bl(W,!0);const kt=t_(W),Qe=W.subTree;W.subTree=kt,p(Qe,kt,f(Qe.el),ee(Qe),W,Se,me),$e.el=kt.el,rt===null&&rj(W,kt.el),We&&fa(We,Se),(vt=$e.props&&$e.props.onVnodeUpdated)&&fa(()=>ji(vt,Ae,$e,Fe),Se)}else{let $e;const{el:Be,props:We}=X,{bm:Ae,m:Fe,parent:rt}=W,vt=Xh(X);if(Bl(W,!1),Ae&&iy(Ae),!vt&&($e=We&&We.onVnodeBeforeMount)&&ji($e,rt,X),Bl(W,!0),Be&&ie){const kt=()=>{W.subTree=t_(W),ie(Be,W.subTree,W,Se,null)};vt?X.type.__asyncLoader().then(()=>!W.isUnmounted&&kt()):kt()}else{const kt=W.subTree=t_(W);p(null,kt,oe,pe,W,Se,me),X.el=kt.el}if(Fe&&fa(Fe,Se),!vt&&($e=We&&We.onVnodeMounted)){const kt=X;fa(()=>ji($e,rt,kt),Se)}(X.shapeFlag&256||rt&&Xh(rt.vnode)&&rt.vnode.shapeFlag&256)&&W.a&&fa(W.a,Se),W.isMounted=!0,X=oe=pe=null}},we=W.effect=new wT(Ce,()=>ET(Te),W.scope),Te=W.update=()=>we.run();Te.id=W.uid,Bl(W,!0),Te()},O=(W,X,oe)=>{X.component=W;const pe=W.vnode.props;W.vnode=X,W.next=null,Mj(W,X.props,pe,oe),Ej(W,X.children,oe),bd(),WE(),_d()},$=(W,X,oe,pe,Se,me,Ee,Ce,we=!1)=>{const Te=W&&W.children,$e=W?W.shapeFlag:0,Be=X.children,{patchFlag:We,shapeFlag:Ae}=X;if(We>0){if(We&128){z(Te,Be,oe,pe,Se,me,Ee,Ce,we);return}else if(We&256){I(Te,Be,oe,pe,Se,me,Ee,Ce,we);return}}Ae&8?($e&16&&Q(Te,Se,me),Be!==Te&&c(oe,Be)):$e&16?Ae&16?z(Te,Be,oe,pe,Se,me,Ee,Ce,we):Q(Te,Se,me,!0):($e&8&&c(oe,""),Ae&16&&T(Be,oe,pe,Se,me,Ee,Ce,we))},I=(W,X,oe,pe,Se,me,Ee,Ce,we)=>{W=W||Cf,X=X||Cf;const Te=W.length,$e=X.length,Be=Math.min(Te,$e);let We;for(We=0;We<Be;We++){const Ae=X[We]=we?$s(X[We]):ro(X[We]);p(W[We],Ae,oe,null,Se,me,Ee,Ce,we)}Te>$e?Q(W,Se,me,!0,!1,Be):T(X,oe,pe,Se,me,Ee,Ce,we,Be)},z=(W,X,oe,pe,Se,me,Ee,Ce,we)=>{let Te=0;const $e=X.length;let Be=W.length-1,We=$e-1;for(;Te<=Be&&Te<=We;){const Ae=W[Te],Fe=X[Te]=we?$s(X[Te]):ro(X[Te]);if(wu(Ae,Fe))p(Ae,Fe,oe,null,Se,me,Ee,Ce,we);else break;Te++}for(;Te<=Be&&Te<=We;){const Ae=W[Be],Fe=X[We]=we?$s(X[We]):ro(X[We]);if(wu(Ae,Fe))p(Ae,Fe,oe,null,Se,me,Ee,Ce,we);else break;Be--,We--}if(Te>Be){if(Te<=We){const Ae=We+1,Fe=Ae<$e?X[Ae].el:pe;for(;Te<=We;)p(null,X[Te]=we?$s(X[Te]):ro(X[Te]),oe,Fe,Se,me,Ee,Ce,we),Te++}}else if(Te>We)for(;Te<=Be;)U(W[Te],Se,me,!0),Te++;else{const Ae=Te,Fe=Te,rt=new Map;for(Te=Fe;Te<=We;Te++){const te=X[Te]=we?$s(X[Te]):ro(X[Te]);te.key!=null&&rt.set(te.key,Te)}let vt,kt=0;const Qe=We-Fe+1;let ye=!1,fe=0;const le=new Array(Qe);for(Te=0;Te<Qe;Te++)le[Te]=0;for(Te=Ae;Te<=Be;Te++){const te=W[Te];if(kt>=Qe){U(te,Se,me,!0);continue}let Ve;if(te.key!=null)Ve=rt.get(te.key);else for(vt=Fe;vt<=We;vt++)if(le[vt-Fe]===0&&wu(te,X[vt])){Ve=vt;break}Ve===void 0?U(te,Se,me,!0):(le[Ve-Fe]=Te+1,Ve>=fe?fe=Ve:ye=!0,p(te,X[Ve],oe,null,Se,me,Ee,Ce,we),kt++)}const ke=ye?Pj(le):Cf;for(vt=ke.length-1,Te=Qe-1;Te>=0;Te--){const te=Fe+Te,Ve=X[te],st=te+1<$e?X[te+1].el:pe;le[Te]===0?p(null,Ve,oe,st,Se,me,Ee,Ce,we):ye&&(vt<0||Te!==ke[vt]?G(Ve,oe,st,2):vt--)}}},G=(W,X,oe,pe,Se=null)=>{const{el:me,type:Ee,transition:Ce,children:we,shapeFlag:Te}=W;if(Te&6){G(W.component.subTree,X,oe,pe);return}if(Te&128){W.suspense.move(X,oe,pe);return}if(Te&64){Ee.move(W,X,oe,de);return}if(Ee===je){r(me,X,oe);for(let Be=0;Be<we.length;Be++)G(we[Be],X,oe,pe);r(W.anchor,X,oe);return}if(Ee===a_){_(W,X,oe);return}if(pe!==2&&Te&1&&Ce)if(pe===0)Ce.beforeEnter(me),r(me,X,oe),fa(()=>Ce.enter(me),Se);else{const{leave:Be,delayLeave:We,afterLeave:Ae}=Ce,Fe=()=>r(me,X,oe),rt=()=>{Be(me,()=>{Fe(),Ae&&Ae()})};We?We(me,Fe,rt):rt()}else r(me,X,oe)},U=(W,X,oe,pe=!1,Se=!1)=>{const{type:me,props:Ee,ref:Ce,children:we,dynamicChildren:Te,shapeFlag:$e,patchFlag:Be,dirs:We}=W;if(Ce!=null&&vC(Ce,null,oe,W,!0),$e&256){X.ctx.deactivate(W);return}const Ae=$e&1&&We,Fe=!Xh(W);let rt;if(Fe&&(rt=Ee&&Ee.onVnodeBeforeUnmount)&&ji(rt,X,W),$e&6)J(W.component,oe,pe);else{if($e&128){W.suspense.unmount(oe,pe);return}Ae&&Nl(W,null,X,"beforeUnmount"),$e&64?W.type.remove(W,X,oe,Se,de,pe):Te&&(me!==je||Be>0&&Be&64)?Q(Te,X,oe,!1,!0):(me===je&&Be&384||!Se&&$e&16)&&Q(we,X,oe),pe&&Z(W)}(Fe&&(rt=Ee&&Ee.onVnodeUnmounted)||Ae)&&fa(()=>{rt&&ji(rt,X,W),Ae&&Nl(W,null,X,"unmounted")},oe)},Z=W=>{const{type:X,el:oe,anchor:pe,transition:Se}=W;if(X===je){ae(oe,pe);return}if(X===a_){w(W);return}const me=()=>{a(oe),Se&&!Se.persisted&&Se.afterLeave&&Se.afterLeave()};if(W.shapeFlag&1&&Se&&!Se.persisted){const{leave:Ee,delayLeave:Ce}=Se,we=()=>Ee(oe,me);Ce?Ce(W.el,me,we):we()}else me()},ae=(W,X)=>{let oe;for(;W!==X;)oe=d(W),a(W),W=oe;a(X)},J=(W,X,oe)=>{const{bum:pe,scope:Se,update:me,subTree:Ee,um:Ce}=W;pe&&iy(pe),Se.stop(),me&&(me.active=!1,U(Ee,W,X,oe)),Ce&&fa(Ce,X),fa(()=>{W.isUnmounted=!0},X),X&&X.pendingBranch&&!X.isUnmounted&&W.asyncDep&&!W.asyncResolved&&W.suspenseId===X.pendingId&&(X.deps--,X.deps===0&&X.resolve())},Q=(W,X,oe,pe=!1,Se=!1,me=0)=>{for(let Ee=me;Ee<W.length;Ee++)U(W[Ee],X,oe,pe,Se)},ee=W=>W.shapeFlag&6?ee(W.component.subTree):W.shapeFlag&128?W.suspense.next():d(W.anchor||W.el),j=(W,X,oe)=>{W==null?X._vnode&&U(X._vnode,null,null,!0):p(X._vnode||null,W,X,null,null,null,oe),WE(),jB(),X._vnode=W},de={p,um:U,m:G,r:Z,mt:L,mc:T,pc:$,pbc:A,n:ee,o:e};let ve,ie;return t&&([ve,ie]=t(de)),{render:j,hydrate:ve,createApp:xj(j,ve)}}function Bl({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function $T(e,t,n=!1){const r=e.children,a=t.children;if(He(r)&&He(a))for(let i=0;i<r.length;i++){const o=r[i];let s=a[i];s.shapeFlag&1&&!s.dynamicChildren&&((s.patchFlag<=0||s.patchFlag===32)&&(s=a[i]=$s(a[i]),s.el=o.el),n||$T(o,s)),s.type===Sd&&(s.el=o.el)}}function Pj(e){const t=e.slice(),n=[0];let r,a,i,o,s;const l=e.length;for(r=0;r<l;r++){const u=e[r];if(u!==0){if(a=n[n.length-1],e[a]<u){t[r]=a,n.push(r);continue}for(i=0,o=n.length-1;i<o;)s=i+o>>1,e[n[s]]<u?i=s+1:o=s;u<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}const Lj=e=>e.__isTeleport,Jh=e=>e&&(e.disabled||e.disabled===""),nI=e=>typeof SVGElement<"u"&&e instanceof SVGElement,pC=(e,t)=>{const n=e&&e.to;return lt(n)?t?t(n):null:n},Rj={__isTeleport:!0,process(e,t,n,r,a,i,o,s,l,u){const{mc:c,pc:f,pbc:d,o:{insert:h,querySelector:v,createText:p,createComment:g}}=u,m=Jh(t.props);let{shapeFlag:b,children:_,dynamicChildren:w}=t;if(e==null){const C=t.el=p(""),S=t.anchor=p("");h(C,n,r),h(S,n,r);const x=t.target=pC(t.props,v),T=t.targetAnchor=p("");x&&(h(T,x),o=o||nI(x));const M=(A,k)=>{b&16&&c(_,A,k,a,i,o,s,l)};m?M(n,S):x&&M(x,T)}else{t.el=e.el;const C=t.anchor=e.anchor,S=t.target=e.target,x=t.targetAnchor=e.targetAnchor,T=Jh(e.props),M=T?n:S,A=T?C:x;if(o=o||nI(S),w?(d(e.dynamicChildren,w,M,a,i,o,s),$T(e,t,!0)):l||f(e,t,M,A,a,i,o,s,!1),m)T||Og(t,n,C,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const k=t.target=pC(t.props,v);k&&Og(t,k,null,u,0)}else T&&Og(t,S,x,u,1)}vV(t)},remove(e,t,n,r,{um:a,o:{remove:i}},o){const{shapeFlag:s,children:l,anchor:u,targetAnchor:c,target:f,props:d}=e;if(f&&i(c),(o||!Jh(d))&&(i(u),s&16))for(let h=0;h<l.length;h++){const v=l[h];a(v,t,n,!0,!!v.dynamicChildren)}},move:Og,hydrate:Oj};function Og(e,t,n,{o:{insert:r},m:a},i=2){i===0&&r(e.targetAnchor,t,n);const{el:o,anchor:s,shapeFlag:l,children:u,props:c}=e,f=i===2;if(f&&r(o,t,n),(!f||Jh(c))&&l&16)for(let d=0;d<u.length;d++)a(u[d],t,n,2);f&&r(s,t,n)}function Oj(e,t,n,r,a,i,{o:{nextSibling:o,parentNode:s,querySelector:l}},u){const c=t.target=pC(t.props,l);if(c){const f=c._lpa||c.firstChild;if(t.shapeFlag&16)if(Jh(t.props))t.anchor=u(o(e),t,s(e),n,r,a,i),t.targetAnchor=f;else{t.anchor=o(e);let d=f;for(;d;)if(d=o(d),d&&d.nodeType===8&&d.data==="teleport anchor"){t.targetAnchor=d,c._lpa=t.targetAnchor&&o(t.targetAnchor);break}u(f,t,c,n,r,a,i)}vV(t)}return t.anchor&&o(t.anchor)}const Wp=Rj;function vV(e){const t=e.ctx;if(t&&t.ut){let n=e.children[0].el;for(;n!==e.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}const je=Symbol.for("v-fgt"),Sd=Symbol.for("v-txt"),Yr=Symbol.for("v-cmt"),a_=Symbol.for("v-stc"),Qh=[];let ki=null;function R(e=!1){Qh.push(ki=e?null:[])}function $j(){Qh.pop(),ki=Qh[Qh.length-1]||null}let Nv=1;function rI(e){Nv+=e}function pV(e){return e.dynamicChildren=Nv>0?ki||Cf:null,$j(),Nv>0&&ki&&ki.push(e),e}function K(e,t,n,r,a,i){return pV(Y(e,t,n,r,a,i,!0))}function ce(e,t,n,r,a){return pV(q(e,t,n,r,a,!0))}function Tn(e){return e?e.__v_isVNode===!0:!1}function wu(e,t){return e.type===t.type&&e.key===t.key}const Pb="__vInternal",gV=({key:e})=>e??null,oy=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?lt(e)||cn(e)||it(e)?{i:yr,r:e,k:t,f:!!n}:e:null);function Y(e,t=null,n=null,r=0,a=null,i=e===je?0:1,o=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&gV(t),ref:t&&oy(t),scopeId:Ab,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:yr};return s?(NT(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=lt(n)?8:16),Nv>0&&!o&&ki&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&ki.push(l),l}const q=Nj;function Nj(e,t=null,n=null,r=0,a=null,i=!1){if((!e||e===aV)&&(e=Yr),Tn(e)){const s=Qo(e,t,!0);return n&&NT(s,n),Nv>0&&!i&&ki&&(s.shapeFlag&6?ki[ki.indexOf(e)]=s:ki.push(s)),s.patchFlag|=-2,s}if(Kj(e)&&(e=e.__vccOpts),t){t=Lb(t);let{class:s,style:l}=t;s&&!lt(s)&&(t.class=V(s)),Mt(l)&&(zB(l)&&!He(l)&&(l=Yn({},l)),t.style=Ye(l))}const o=lt(e)?1:aj(e)?128:Lj(e)?64:Mt(e)?4:it(e)?2:0;return Y(e,t,n,r,a,o,i,!0)}function Lb(e){return e?zB(e)||Pb in e?Yn({},e):e:null}function Qo(e,t,n=!1){const{props:r,ref:a,patchFlag:i,children:o}=e,s=t?St(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&gV(s),ref:t&&t.ref?n&&a?He(a)?a.concat(oy(t)):[a,oy(t)]:oy(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==je?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Qo(e.ssContent),ssFallback:e.ssFallback&&Qo(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Ut(e=" ",t=0){return q(Sd,null,e,t)}function se(e="",t=!1){return t?(R(),ce(Yr,null,e)):q(Yr,null,e)}function ro(e){return e==null||typeof e=="boolean"?q(Yr):He(e)?q(je,null,e.slice()):typeof e=="object"?$s(e):q(Sd,null,String(e))}function $s(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Qo(e)}function NT(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(He(t))n=16;else if(typeof t=="object")if(r&65){const a=t.default;a&&(a._c&&(a._d=!1),NT(e,a()),a._c&&(a._d=!0));return}else{n=32;const a=t._;!a&&!(Pb in t)?t._ctx=yr:a===3&&yr&&(yr.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else it(t)?(t={default:t,_ctx:yr},n=32):(t=String(t),r&64?(n=16,t=[Ut(t)]):n=8);e.children=t,e.shapeFlag|=n}function St(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const a in r)if(a==="class")t.class!==r.class&&(t.class=V([t.class,r.class]));else if(a==="style")t.style=Ye([t.style,r.style]);else if(Sb(a)){const i=t[a],o=r[a];o&&i!==o&&!(He(i)&&i.includes(o))&&(t[a]=i?[].concat(i,o):o)}else a!==""&&(t[a]=r[a])}return t}function ji(e,t,n,r=null){Ja(e,t,7,[n,r])}const Bj=lV();let Vj=0;function zj(e,t,n){const r=e.type,a=(t?t.appContext:e.appContext)||Bj,i={uid:Vj++,vnode:e,type:r,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,scope:new TB(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(a.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:cV(r,a),emitsOptions:XB(r,a),emit:null,emitted:null,propsDefaults:Ln,inheritAttrs:r.inheritAttrs,ctx:Ln,data:Ln,props:Ln,attrs:Ln,slots:Ln,refs:Ln,setupState:Ln,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=QY.bind(null,i),e.ce&&e.ce(i),i}let dr=null;const gt=()=>dr||yr;let BT,Dc,aI="__VUE_INSTANCE_SETTERS__";(Dc=iC()[aI])||(Dc=iC()[aI]=[]),Dc.push(e=>dr=e),BT=e=>{Dc.length>1?Dc.forEach(t=>t(e)):Dc[0](e)};const Gf=e=>{BT(e),e.scope.on()},Ku=()=>{dr&&dr.scope.off(),BT(null)};function mV(e){return e.vnode.shapeFlag&4}let Bv=!1;function Fj(e,t=!1){Bv=t;const{props:n,children:r}=e.vnode,a=mV(e);Tj(e,n,a,t),Aj(e,r);const i=a?Hj(e,t):void 0;return Bv=!1,i}function Hj(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Js(new Proxy(e.ctx,mj));const{setup:r}=n;if(r){const a=e.setupContext=r.length>1?bV(e):null;Gf(e),bd();const i=Qs(r,e,0,[e.props,a]);if(_d(),Ku(),Ev(i)){if(i.then(Ku,Ku),t)return i.then(o=>{iI(e,o,t)}).catch(o=>{Mb(o,e,0)});e.asyncDep=i}else iI(e,i,t)}else yV(e,t)}function iI(e,t,n){it(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Mt(t)&&(e.setupState=GB(t)),yV(e,n)}let oI;function yV(e,t,n){const r=e.type;if(!e.render){if(!t&&oI&&!r.render){const a=r.template||RT(e).template;if(a){const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:s,compilerOptions:l}=r,u=Yn(Yn({isCustomElement:i,delimiters:s},o),l);r.render=oI(a,u)}}e.render=r.render||rn}Gf(e),bd(),yj(e),_d(),Ku()}function Gj(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return ba(e,"get","$attrs"),t[n]}}))}function bV(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Gj(e)},slots:e.slots,emit:e.emit,expose:t}}function Rb(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(GB(Js(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Zh)return Zh[n](e)},has(t,n){return n in t||n in Zh}}))}function Wj(e,t=!0){return it(e)?e.displayName||e.name:e.name||t&&e.__name}function Kj(e){return it(e)&&"__vccOpts"in e}const P=(e,t)=>KB(e,t,Bv);function Ze(e,t,n){const r=arguments.length;return r===2?Mt(t)&&!He(t)?Tn(t)?q(e,null,[t]):q(e,t):q(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Tn(n)&&(n=[n]),q(e,t,n))}const Uj=Symbol.for("v-scx"),Yj=()=>Ge(Uj),jj="3.3.4",qj="http://www.w3.org/2000/svg",Su=typeof document<"u"?document:null,sI=Su&&Su.createElement("template"),Xj={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const a=t?Su.createElementNS(qj,e):Su.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&a.setAttribute("multiple",r.multiple),a},createText:e=>Su.createTextNode(e),createComment:e=>Su.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Su.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,a,i){const o=n?n.previousSibling:t.lastChild;if(a&&(a===i||a.nextSibling))for(;t.insertBefore(a.cloneNode(!0),n),!(a===i||!(a=a.nextSibling)););else{sI.innerHTML=r?`<svg>${e}</svg>`:e;const s=sI.content;if(r){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}t.insertBefore(s,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function Zj(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function Jj(e,t,n){const r=e.style,a=lt(n);if(n&&!a){if(t&&!lt(t))for(const i in t)n[i]==null&&gC(r,i,"");for(const i in n)gC(r,i,n[i])}else{const i=r.display;a?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=i)}}const lI=/\s*!important$/;function gC(e,t,n){if(He(n))n.forEach(r=>gC(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Qj(e,t);lI.test(n)?e.setProperty(Cl(r),n.replace(lI,""),"important"):e[r]=n}}const uI=["Webkit","Moz","ms"],i_={};function Qj(e,t){const n=i_[t];if(n)return n;let r=ti(t);if(r!=="filter"&&r in e)return i_[t]=r;r=Gp(r);for(let a=0;a<uI.length;a++){const i=uI[a]+r;if(i in e)return i_[t]=i}return t}const cI="http://www.w3.org/1999/xlink";function eq(e,t,n,r,a){if(r&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(cI,t.slice(6,t.length)):e.setAttributeNS(cI,t,n);else{const i=dY(t);n==null||i&&!SB(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}function tq(e,t,n,r,a,i,o){if(t==="innerHTML"||t==="textContent"){r&&o(r,a,i),e[t]=n??"";return}const s=e.tagName;if(t==="value"&&s!=="PROGRESS"&&!s.includes("-")){e._value=n;const u=s==="OPTION"?e.getAttribute("value"):e.value,c=n??"";u!==c&&(e.value=c),n==null&&e.removeAttribute(t);return}let l=!1;if(n===""||n==null){const u=typeof e[t];u==="boolean"?n=SB(n):n==null&&u==="string"?(n="",l=!0):u==="number"&&(n=0,l=!0)}try{e[t]=n}catch{}l&&e.removeAttribute(t)}function zs(e,t,n,r){e.addEventListener(t,n,r)}function nq(e,t,n,r){e.removeEventListener(t,n,r)}function rq(e,t,n,r,a=null){const i=e._vei||(e._vei={}),o=i[t];if(r&&o)o.value=r;else{const[s,l]=aq(t);if(r){const u=i[t]=sq(r,a);zs(e,s,u,l)}else o&&(nq(e,s,o,l),i[t]=void 0)}}const fI=/(?:Once|Passive|Capture)$/;function aq(e){let t;if(fI.test(e)){t={};let r;for(;r=e.match(fI);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Cl(e.slice(2)),t]}let o_=0;const iq=Promise.resolve(),oq=()=>o_||(iq.then(()=>o_=0),o_=Date.now());function sq(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Ja(lq(r,n.value),t,5,[r])};return n.value=e,n.attached=oq(),n}function lq(e,t){if(He(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>a=>!a._stopped&&r&&r(a))}else return t}const dI=/^on[a-z]/,uq=(e,t,n,r,a=!1,i,o,s,l)=>{t==="class"?Zj(e,r,a):t==="style"?Jj(e,n,r):Sb(t)?mT(t)||rq(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):cq(e,t,r,a))?tq(e,t,r,i,o,s,l):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),eq(e,t,r,a))};function cq(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&dI.test(t)&&it(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||dI.test(t)&&lt(n)?!1:t in e}const ys="transition",Xd="animation",Bn=(e,{slots:t})=>Ze(lj,wV(e),t);Bn.displayName="Transition";const _V={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},fq=Bn.props=Yn({},QB,_V),Vl=(e,t=[])=>{He(e)?e.forEach(n=>n(...t)):e&&e(...t)},hI=e=>e?He(e)?e.some(t=>t.length>1):e.length>1:!1;function wV(e){const t={};for(const E in e)E in _V||(t[E]=e[E]);if(e.css===!1)return t;const{name:n="v",type:r,duration:a,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:u=o,appearToClass:c=s,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,v=dq(a),p=v&&v[0],g=v&&v[1],{onBeforeEnter:m,onEnter:b,onEnterCancelled:_,onLeave:w,onLeaveCancelled:C,onBeforeAppear:S=m,onAppear:x=b,onAppearCancelled:T=_}=t,M=(E,D,L)=>{Is(E,D?c:s),Is(E,D?u:o),L&&L()},A=(E,D)=>{E._isLeaving=!1,Is(E,f),Is(E,h),Is(E,d),D&&D()},k=E=>(D,L)=>{const B=E?x:b,N=()=>M(D,E,L);Vl(B,[D,N]),vI(()=>{Is(D,E?l:i),Oo(D,E?c:s),hI(B)||pI(D,r,p,N)})};return Yn(t,{onBeforeEnter(E){Vl(m,[E]),Oo(E,i),Oo(E,o)},onBeforeAppear(E){Vl(S,[E]),Oo(E,l),Oo(E,u)},onEnter:k(!1),onAppear:k(!0),onLeave(E,D){E._isLeaving=!0;const L=()=>A(E,D);Oo(E,f),CV(),Oo(E,d),vI(()=>{E._isLeaving&&(Is(E,f),Oo(E,h),hI(w)||pI(E,r,g,L))}),Vl(w,[E,L])},onEnterCancelled(E){M(E,!1),Vl(_,[E])},onAppearCancelled(E){M(E,!0),Vl(T,[E])},onLeaveCancelled(E){A(E),Vl(C,[E])}})}function dq(e){if(e==null)return null;if(Mt(e))return[s_(e.enter),s_(e.leave)];{const t=s_(e);return[t,t]}}function s_(e){return oY(e)}function Oo(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function Is(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function vI(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let hq=0;function pI(e,t,n,r){const a=e._endId=++hq,i=()=>{a===e._endId&&r()};if(n)return setTimeout(i,n);const{type:o,timeout:s,propCount:l}=SV(e,t);if(!o)return r();const u=o+"end";let c=0;const f=()=>{e.removeEventListener(u,d),i()},d=h=>{h.target===e&&++c>=l&&f()};setTimeout(()=>{c<l&&f()},s+1),e.addEventListener(u,d)}function SV(e,t){const n=window.getComputedStyle(e),r=v=>(n[v]||"").split(", "),a=r(`${ys}Delay`),i=r(`${ys}Duration`),o=gI(a,i),s=r(`${Xd}Delay`),l=r(`${Xd}Duration`),u=gI(s,l);let c=null,f=0,d=0;t===ys?o>0&&(c=ys,f=o,d=i.length):t===Xd?u>0&&(c=Xd,f=u,d=l.length):(f=Math.max(o,u),c=f>0?o>u?ys:Xd:null,d=c?c===ys?i.length:l.length:0);const h=c===ys&&/\b(transform|all)(,|$)/.test(r(`${ys}Property`).toString());return{type:c,timeout:f,propCount:d,hasTransform:h}}function gI(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>mI(n)+mI(e[r])))}function mI(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function CV(){return document.body.offsetHeight}const xV=new WeakMap,TV=new WeakMap,MV={name:"TransitionGroup",props:Yn({},fq,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=gt(),r=JB();let a,i;return cs(()=>{if(!a.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!yq(a[0].el,n.vnode.el,o))return;a.forEach(pq),a.forEach(gq);const s=a.filter(mq);CV(),s.forEach(l=>{const u=l.el,c=u.style;Oo(u,o),c.transform=c.webkitTransform=c.transitionDuration="";const f=u._moveCb=d=>{d&&d.target!==u||(!d||/transform$/.test(d.propertyName))&&(u.removeEventListener("transitionend",f),u._moveCb=null,Is(u,o))};u.addEventListener("transitionend",f)})}),()=>{const o=tn(e),s=wV(o);let l=o.tag||je;a=i,i=t.default?DT(t.default()):[];for(let u=0;u<i.length;u++){const c=i[u];c.key!=null&&Ov(c,Rv(c,s,r,n))}if(a)for(let u=0;u<a.length;u++){const c=a[u];Ov(c,Rv(c,s,r,n)),xV.set(c,c.el.getBoundingClientRect())}return q(l,null,i)}}},vq=e=>delete e.mode;MV.props;const kV=MV;function pq(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function gq(e){TV.set(e,e.el.getBoundingClientRect())}function mq(e){const t=xV.get(e),n=TV.get(e),r=t.left-n.left,a=t.top-n.top;if(r||a){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${r}px,${a}px)`,i.transitionDuration="0s",e}}function yq(e,t,n){const r=e.cloneNode();e._vtc&&e._vtc.forEach(o=>{o.split(/\s+/).forEach(s=>s&&r.classList.remove(s))}),n.split(/\s+/).forEach(o=>o&&r.classList.add(o)),r.style.display="none";const a=t.nodeType===1?t:t.parentNode;a.appendChild(r);const{hasTransform:i}=SV(r);return a.removeChild(r),i}const Wf=e=>{const t=e.props["onUpdate:modelValue"]||!1;return He(t)?n=>iy(t,n):t};function bq(e){e.target.composing=!0}function yI(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const VT={created(e,{modifiers:{lazy:t,trim:n,number:r}},a){e._assign=Wf(a);const i=r||a.props&&a.props.type==="number";zs(e,t?"change":"input",o=>{if(o.target.composing)return;let s=e.value;n&&(s=s.trim()),i&&(s=aC(s)),e._assign(s)}),n&&zs(e,"change",()=>{e.value=e.value.trim()}),t||(zs(e,"compositionstart",bq),zs(e,"compositionend",yI),zs(e,"change",yI))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:a}},i){if(e._assign=Wf(i),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(a||e.type==="number")&&aC(e.value)===t))return;const o=t??"";e.value!==o&&(e.value=o)}},a0={deep:!0,created(e,t,n){e._assign=Wf(n),zs(e,"change",()=>{const r=e._modelValue,a=EV(e),i=e.checked,o=e._assign;if(He(r)){const s=CB(r,a),l=s!==-1;if(i&&!l)o(r.concat(a));else if(!i&&l){const u=[...r];u.splice(s,1),o(u)}}else if(Cb(r)){const s=new Set(r);i?s.add(a):s.delete(a),o(s)}else o(IV(e,i))})},mounted:bI,beforeUpdate(e,t,n){e._assign=Wf(n),bI(e,t,n)}};function bI(e,{value:t,oldValue:n},r){e._modelValue=t,He(t)?e.checked=CB(t,r.props.value)>-1:Cb(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=Ff(t,IV(e,!0)))}const AV={created(e,{value:t},n){e.checked=Ff(t,n.props.value),e._assign=Wf(n),zs(e,"change",()=>{e._assign(EV(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=Wf(r),t!==n&&(e.checked=Ff(t,r.props.value))}};function EV(e){return"_value"in e?e._value:e.value}function IV(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const _q=["ctrl","shift","alt","meta"],wq={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)=>_q.some(n=>e[`${n}Key`]&&!t.includes(n))},tt=(e,t)=>(n,...r)=>{for(let a=0;a<t.length;a++){const i=wq[t[a]];if(i&&i(n,t))return}return e(n,...r)},Sq={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Ft=(e,t)=>n=>{if(!("key"in n))return;const r=Cl(n.key);if(t.some(a=>a===r||Sq[a]===r))return e(n)},Kt={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Zd(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Zd(e,!0),r.enter(e)):r.leave(e,()=>{Zd(e,!1)}):Zd(e,t))},beforeUnmount(e,{value:t}){Zd(e,t)}};function Zd(e,t){e.style.display=t?e._vod:"none"}const Cq=Yn({patchProp:uq},Xj);let _I;function DV(){return _I||(_I=Ij(Cq))}const Kf=(...e)=>{DV().render(...e)},PV=(...e)=>{const t=DV().createApp(...e),{mount:n}=t;return t.mount=r=>{const a=xq(r);if(!a)return;const i=t._component;!it(i)&&!i.render&&!i.template&&(i.template=a.innerHTML),a.innerHTML="";const o=n(a,!1,a instanceof SVGElement);return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),o},t};function xq(e){return lt(e)?document.querySelector(e):e}const Tq=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n},Mq={};function kq(e,t){const n=ct("router-view");return R(),ce(n)}const Aq=Tq(Mq,[["render",kq]]),Eq="modulepreload",Iq=function(e,t){return new URL(e,t).href},wI={},Dq=function(t,n,r){if(!n||n.length===0)return t();const a=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=Iq(i,r),i in wI)return;wI[i]=!0;const o=i.endsWith(".css"),s=o?'[rel="stylesheet"]':"";if(!!r)for(let c=a.length-1;c>=0;c--){const f=a[c];if(f.href===i&&(!o||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${s}`))return;const u=document.createElement("link");if(u.rel=o?"stylesheet":Eq,o||(u.as="script",u.crossOrigin=""),u.href=i,document.head.appendChild(u),o)return new Promise((c,f)=>{u.addEventListener("load",c),u.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t()).catch(i=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=i,window.dispatchEvent(o),!o.defaultPrevented)throw i})};/*!
  2. * vue-router v4.0.16
  3. * (c) 2022 Eduardo San Martin Morote
  4. * @license MIT
  5. */const LV=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Cd=e=>LV?Symbol(e):"_vr_"+e,Pq=Cd("rvlm"),SI=Cd("rvd"),zT=Cd("r"),RV=Cd("rl"),mC=Cd("rvl"),af=typeof window<"u";function Lq(e){return e.__esModule||LV&&e[Symbol.toStringTag]==="Module"}const Mn=Object.assign;function l_(e,t){const n={};for(const r in t){const a=t[r];n[r]=Array.isArray(a)?a.map(e):e(a)}return n}const ev=()=>{},Rq=/\/$/,Oq=e=>e.replace(Rq,"");function u_(e,t,n="/"){let r,a={},i="",o="";const s=t.indexOf("?"),l=t.indexOf("#",s>-1?s:0);return s>-1&&(r=t.slice(0,s),i=t.slice(s+1,l>-1?l:t.length),a=e(i)),l>-1&&(r=r||t.slice(0,l),o=t.slice(l,t.length)),r=Vq(r??t,n),{fullPath:r+(i&&"?")+i+o,path:r,query:a,hash:o}}function $q(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function CI(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Nq(e,t,n){const r=t.matched.length-1,a=n.matched.length-1;return r>-1&&r===a&&Uf(t.matched[r],n.matched[a])&&OV(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Uf(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function OV(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Bq(e[n],t[n]))return!1;return!0}function Bq(e,t){return Array.isArray(e)?xI(e,t):Array.isArray(t)?xI(t,e):e===t}function xI(e,t){return Array.isArray(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Vq(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/");let a=n.length-1,i,o;for(i=0;i<r.length;i++)if(o=r[i],!(a===1||o==="."))if(o==="..")a--;else break;return n.slice(0,a).join("/")+"/"+r.slice(i-(i===r.length?1:0)).join("/")}var Vv;(function(e){e.pop="pop",e.push="push"})(Vv||(Vv={}));var tv;(function(e){e.back="back",e.forward="forward",e.unknown=""})(tv||(tv={}));function zq(e){if(!e)if(af){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Oq(e)}const Fq=/^[^#]+#/;function Hq(e,t){return e.replace(Fq,"#")+t}function Gq(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const Ob=()=>({left:window.pageXOffset,top:window.pageYOffset});function Wq(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),a=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!a)return;t=Gq(a,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 TI(e,t){return(history.state?history.state.position-t:-1)+e}const yC=new Map;function Kq(e,t){yC.set(e,t)}function Uq(e){const t=yC.get(e);return yC.delete(e),t}let Yq=()=>location.protocol+"//"+location.host;function $V(e,t){const{pathname:n,search:r,hash:a}=t,i=e.indexOf("#");if(i>-1){let s=a.includes(e.slice(i))?e.slice(i).length:1,l=a.slice(s);return l[0]!=="/"&&(l="/"+l),CI(l,"")}return CI(n,e)+r+a}function jq(e,t,n,r){let a=[],i=[],o=null;const s=({state:d})=>{const h=$V(e,location),v=n.value,p=t.value;let g=0;if(d){if(n.value=h,t.value=d,o&&o===v){o=null;return}g=p?d.position-p.position:0}else r(h);a.forEach(m=>{m(n.value,v,{delta:g,type:Vv.pop,direction:g?g>0?tv.forward:tv.back:tv.unknown})})};function l(){o=n.value}function u(d){a.push(d);const h=()=>{const v=a.indexOf(d);v>-1&&a.splice(v,1)};return i.push(h),h}function c(){const{history:d}=window;d.state&&d.replaceState(Mn({},d.state,{scroll:Ob()}),"")}function f(){for(const d of i)d();i=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",c),{pauseListeners:l,listen:u,destroy:f}}function MI(e,t,n,r=!1,a=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:a?Ob():null}}function qq(e){const{history:t,location:n}=window,r={value:$V(e,n)},a={value:t.state};a.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(l,u,c){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:Yq()+e+l;try{t[c?"replaceState":"pushState"](u,"",d),a.value=u}catch(h){console.error(h),n[c?"replace":"assign"](d)}}function o(l,u){const c=Mn({},t.state,MI(a.value.back,l,a.value.forward,!0),u,{position:a.value.position});i(l,c,!0),r.value=l}function s(l,u){const c=Mn({},a.value,t.state,{forward:l,scroll:Ob()});i(c.current,c,!0);const f=Mn({},MI(r.value,l,null),{position:c.position+1},u);i(l,f,!1),r.value=l}return{location:r,state:a,push:s,replace:o}}function Xq(e){e=zq(e);const t=qq(e),n=jq(e,t.state,t.location,t.replace);function r(i,o=!0){o||n.pauseListeners(),history.go(i)}const a=Mn({location:"",base:e,go:r,createHref:Hq.bind(null,e)},t,n);return Object.defineProperty(a,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(a,"state",{enumerable:!0,get:()=>t.state.value}),a}function Zq(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Xq(e)}function Jq(e){return typeof e=="string"||e&&typeof e=="object"}function NV(e){return typeof e=="string"||typeof e=="symbol"}const bs={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},BV=Cd("nf");var kI;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(kI||(kI={}));function Yf(e,t){return Mn(new Error,{type:e,[BV]:!0},t)}function _s(e,t){return e instanceof Error&&BV in e&&(t==null||!!(e.type&t))}const AI="[^/]+?",Qq={sensitive:!1,strict:!1,start:!0,end:!0},eX=/[.+*?^${}()[\]/\\]/g;function tX(e,t){const n=Mn({},Qq,t),r=[];let a=n.start?"^":"";const i=[];for(const u of e){const c=u.length?[]:[90];n.strict&&!u.length&&(a+="/");for(let f=0;f<u.length;f++){const d=u[f];let h=40+(n.sensitive?.25:0);if(d.type===0)f||(a+="/"),a+=d.value.replace(eX,"\\$&"),h+=40;else if(d.type===1){const{value:v,repeatable:p,optional:g,regexp:m}=d;i.push({name:v,repeatable:p,optional:g});const b=m||AI;if(b!==AI){h+=10;try{new RegExp(`(${b})`)}catch(w){throw new Error(`Invalid custom RegExp for param "${v}" (${b}): `+w.message)}}let _=p?`((?:${b})(?:/(?:${b}))*)`:`(${b})`;f||(_=g&&u.length<2?`(?:/${_})`:"/"+_),g&&(_+="?"),a+=_,h+=20,g&&(h+=-8),p&&(h+=-20),b===".*"&&(h+=-50)}c.push(h)}r.push(c)}if(n.strict&&n.end){const u=r.length-1;r[u][r[u].length-1]+=.7000000000000001}n.strict||(a+="/?"),n.end?a+="$":n.strict&&(a+="(?:/|$)");const o=new RegExp(a,n.sensitive?"":"i");function s(u){const c=u.match(o),f={};if(!c)return null;for(let d=1;d<c.length;d++){const h=c[d]||"",v=i[d-1];f[v.name]=h&&v.repeatable?h.split("/"):h}return f}function l(u){let c="",f=!1;for(const d of e){(!f||!c.endsWith("/"))&&(c+="/"),f=!1;for(const h of d)if(h.type===0)c+=h.value;else if(h.type===1){const{value:v,repeatable:p,optional:g}=h,m=v in u?u[v]:"";if(Array.isArray(m)&&!p)throw new Error(`Provided param "${v}" is an array but it is not repeatable (* or + modifiers)`);const b=Array.isArray(m)?m.join("/"):m;if(!b)if(g)d.length<2&&e.length>1&&(c.endsWith("/")?c=c.slice(0,-1):f=!0);else throw new Error(`Missing required param "${v}"`);c+=b}}return c}return{re:o,score:r,keys:i,parse:s,stringify:l}}function nX(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===40+40?-1:1:e.length>t.length?t.length===1&&t[0]===40+40?1:-1:0}function rX(e,t){let n=0;const r=e.score,a=t.score;for(;n<r.length&&n<a.length;){const i=nX(r[n],a[n]);if(i)return i;n++}if(Math.abs(a.length-r.length)===1){if(EI(r))return 1;if(EI(a))return-1}return a.length-r.length}function EI(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const aX={type:0,value:""},iX=/[a-zA-Z0-9_]/;function oX(e){if(!e)return[[]];if(e==="/")return[[aX]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${u}": ${h}`)}let n=0,r=n;const a=[];let i;function o(){i&&a.push(i),i=[]}let s=0,l,u="",c="";function f(){u&&(n===0?i.push({type:0,value:u}):n===1||n===2||n===3?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:u,regexp:c,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==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:l==="/"?(u&&f(),o()):l===":"?(f(),n=1):d();break;case 4:d(),n=r;break;case 1:l==="("?n=2:iX.test(l)?d():(f(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&s--);break;case 2:l===")"?c[c.length-1]=="\\"?c=c.slice(0,-1)+l:n=3:c+=l;break;case 3:f(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&s--,c="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${u}"`),f(),o(),a}function sX(e,t,n){const r=tX(oX(e.path),n),a=Mn(r,{record:e,parent:t,children:[],alias:[]});return t&&!a.record.aliasOf==!t.record.aliasOf&&t.children.push(a),a}function lX(e,t){const n=[],r=new Map;t=DI({strict:!1,end:!0,sensitive:!1},t);function a(c){return r.get(c)}function i(c,f,d){const h=!d,v=cX(c);v.aliasOf=d&&d.record;const p=DI(t,c),g=[v];if("alias"in c){const _=typeof c.alias=="string"?[c.alias]:c.alias;for(const w of _)g.push(Mn({},v,{components:d?d.record.components:v.components,path:w,aliasOf:d?d.record:v}))}let m,b;for(const _ of g){const{path:w}=_;if(f&&w[0]!=="/"){const C=f.record.path,S=C[C.length-1]==="/"?"":"/";_.path=f.record.path+(w&&S+w)}if(m=sX(_,f,p),d?d.alias.push(m):(b=b||m,b!==m&&b.alias.push(m),h&&c.name&&!II(m)&&o(c.name)),"children"in v){const C=v.children;for(let S=0;S<C.length;S++)i(C[S],m,d&&d.children[S])}d=d||m,l(m)}return b?()=>{o(b)}:ev}function o(c){if(NV(c)){const f=r.get(c);f&&(r.delete(c),n.splice(n.indexOf(f),1),f.children.forEach(o),f.alias.forEach(o))}else{const f=n.indexOf(c);f>-1&&(n.splice(f,1),c.record.name&&r.delete(c.record.name),c.children.forEach(o),c.alias.forEach(o))}}function s(){return n}function l(c){let f=0;for(;f<n.length&&rX(c,n[f])>=0&&(c.record.path!==n[f].record.path||!VV(c,n[f]));)f++;n.splice(f,0,c),c.record.name&&!II(c)&&r.set(c.record.name,c)}function u(c,f){let d,h={},v,p;if("name"in c&&c.name){if(d=r.get(c.name),!d)throw Yf(1,{location:c});p=d.record.name,h=Mn(uX(f.params,d.keys.filter(b=>!b.optional).map(b=>b.name)),c.params),v=d.stringify(h)}else if("path"in c)v=c.path,d=n.find(b=>b.re.test(v)),d&&(h=d.parse(v),p=d.record.name);else{if(d=f.name?r.get(f.name):n.find(b=>b.re.test(f.path)),!d)throw Yf(1,{location:c,currentLocation:f});p=d.record.name,h=Mn({},f.params,c.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:dX(g)}}return e.forEach(c=>i(c)),{addRoute:i,resolve:u,removeRoute:o,getRoutes:s,getRecordMatcher:a}}function uX(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function cX(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:fX(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||{}:{default:e.component}}}function fX(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="boolean"?n:n[r];return t}function II(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function dX(e){return e.reduce((t,n)=>Mn(t,n.meta),{})}function DI(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function VV(e,t){return t.children.some(n=>n===e||VV(e,n))}const zV=/#/g,hX=/&/g,vX=/\//g,pX=/=/g,gX=/\?/g,FV=/\+/g,mX=/%5B/g,yX=/%5D/g,HV=/%5E/g,bX=/%60/g,GV=/%7B/g,_X=/%7C/g,WV=/%7D/g,wX=/%20/g;function FT(e){return encodeURI(""+e).replace(_X,"|").replace(mX,"[").replace(yX,"]")}function SX(e){return FT(e).replace(GV,"{").replace(WV,"}").replace(HV,"^")}function bC(e){return FT(e).replace(FV,"%2B").replace(wX,"+").replace(zV,"%23").replace(hX,"%26").replace(bX,"`").replace(GV,"{").replace(WV,"}").replace(HV,"^")}function CX(e){return bC(e).replace(pX,"%3D")}function xX(e){return FT(e).replace(zV,"%23").replace(gX,"%3F")}function TX(e){return e==null?"":xX(e).replace(vX,"%2F")}function i0(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function MX(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let a=0;a<r.length;++a){const i=r[a].replace(FV," "),o=i.indexOf("="),s=i0(o<0?i:i.slice(0,o)),l=o<0?null:i0(i.slice(o+1));if(s in t){let u=t[s];Array.isArray(u)||(u=t[s]=[u]),u.push(l)}else t[s]=l}return t}function PI(e){let t="";for(let n in e){const r=e[n];if(n=CX(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(Array.isArray(r)?r.map(i=>i&&bC(i)):[r&&bC(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function kX(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Array.isArray(r)?r.map(a=>a==null?null:""+a):r==null?r:""+r)}return t}function Jd(){let e=[];function t(r){return e.push(r),()=>{const a=e.indexOf(r);a>-1&&e.splice(a,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function Ns(e,t,n,r,a){const i=r&&(r.enterCallbacks[a]=r.enterCallbacks[a]||[]);return()=>new Promise((o,s)=>{const l=f=>{f===!1?s(Yf(4,{from:n,to:t})):f instanceof Error?s(f):Jq(f)?s(Yf(2,{from:t,to:f})):(i&&r.enterCallbacks[a]===i&&typeof f=="function"&&i.push(f),o())},u=e.call(r&&r.instances[a],t,n,l);let c=Promise.resolve(u);e.length<3&&(c=c.then(l)),c.catch(f=>s(f))})}function c_(e,t,n,r){const a=[];for(const i of e)for(const o in i.components){let s=i.components[o];if(!(t!=="beforeRouteEnter"&&!i.instances[o]))if(AX(s)){const u=(s.__vccOpts||s)[t];u&&a.push(Ns(u,n,r,i,o))}else{let l=s();a.push(()=>l.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${i.path}"`));const c=Lq(u)?u.default:u;i.components[o]=c;const d=(c.__vccOpts||c)[t];return d&&Ns(d,n,r,i,o)()}))}}return a}function AX(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function LI(e){const t=Ge(zT),n=Ge(RV),r=P(()=>t.resolve(y(e.to))),a=P(()=>{const{matched:l}=r.value,{length:u}=l,c=l[u-1],f=n.matched;if(!c||!f.length)return-1;const d=f.findIndex(Uf.bind(null,c));if(d>-1)return d;const h=RI(l[u-2]);return u>1&&RI(c)===h&&f[f.length-1].path!==h?f.findIndex(Uf.bind(null,l[u-2])):d}),i=P(()=>a.value>-1&&PX(n.params,r.value.params)),o=P(()=>a.value>-1&&a.value===n.matched.length-1&&OV(n.params,r.value.params));function s(l={}){return DX(l)?t[y(e.replace)?"replace":"push"](y(e.to)).catch(ev):Promise.resolve()}return{route:r,href:P(()=>r.value.href),isActive:i,isExactActive:o,navigate:s}}const EX=ne({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:LI,setup(e,{slots:t}){const n=jt(LI(e)),{options:r}=Ge(zT),a=P(()=>({[OI(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[OI(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:Ze("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:a.value},i)}}}),IX=EX;function DX(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 PX(e,t){for(const n in t){const r=t[n],a=e[n];if(typeof r=="string"){if(r!==a)return!1}else if(!Array.isArray(a)||a.length!==r.length||r.some((i,o)=>i!==a[o]))return!1}return!0}function RI(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const OI=(e,t,n)=>e??t??n,LX=ne({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Ge(mC),a=P(()=>e.route||r.value),i=Ge(SI,0),o=P(()=>a.value.matched[i]);Et(SI,i+1),Et(Pq,o),Et(mC,a);const s=H();return xe(()=>[s.value,o.value,e.name],([l,u,c],[f,d,h])=>{u&&(u.instances[c]=l,d&&d!==u&&l&&l===f&&(u.leaveGuards.size||(u.leaveGuards=d.leaveGuards),u.updateGuards.size||(u.updateGuards=d.updateGuards))),l&&u&&(!d||!Uf(u,d)||!f)&&(u.enterCallbacks[c]||[]).forEach(v=>v(l))},{flush:"post"}),()=>{const l=a.value,u=o.value,c=u&&u.components[e.name],f=e.name;if(!c)return $I(n.default,{Component:c,route:l});const d=u.props[e.name],h=d?d===!0?l.params:typeof d=="function"?d(l):d:null,p=Ze(c,Mn({},h,t,{onVnodeUnmounted:g=>{g.component.isUnmounted&&(u.instances[f]=null)},ref:s}));return $I(n.default,{Component:p,route:l})||p}}});function $I(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const RX=LX;function OX(e){const t=lX(e.routes,e),n=e.parseQuery||MX,r=e.stringifyQuery||PI,a=e.history,i=Jd(),o=Jd(),s=Jd(),l=un(bs);let u=bs;af&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=l_.bind(null,J=>""+J),f=l_.bind(null,TX),d=l_.bind(null,i0);function h(J,Q){let ee,j;return NV(J)?(ee=t.getRecordMatcher(J),j=Q):j=J,t.addRoute(j,ee)}function v(J){const Q=t.getRecordMatcher(J);Q&&t.removeRoute(Q)}function p(){return t.getRoutes().map(J=>J.record)}function g(J){return!!t.getRecordMatcher(J)}function m(J,Q){if(Q=Mn({},Q||l.value),typeof J=="string"){const W=u_(n,J,Q.path),X=t.resolve({path:W.path},Q),oe=a.createHref(W.fullPath);return Mn(W,X,{params:d(X.params),hash:i0(W.hash),redirectedFrom:void 0,href:oe})}let ee;if("path"in J)ee=Mn({},J,{path:u_(n,J.path,Q.path).path});else{const W=Mn({},J.params);for(const X in W)W[X]==null&&delete W[X];ee=Mn({},J,{params:f(J.params)}),Q.params=f(Q.params)}const j=t.resolve(ee,Q),de=J.hash||"";j.params=c(d(j.params));const ve=$q(r,Mn({},J,{hash:SX(de),path:j.path})),ie=a.createHref(ve);return Mn({fullPath:ve,hash:de,query:r===PI?kX(J.query):J.query||{}},j,{redirectedFrom:void 0,href:ie})}function b(J){return typeof J=="string"?u_(n,J,l.value.path):Mn({},J)}function _(J,Q){if(u!==J)return Yf(8,{from:Q,to:J})}function w(J){return x(J)}function C(J){return w(Mn(b(J),{replace:!0}))}function S(J){const Q=J.matched[J.matched.length-1];if(Q&&Q.redirect){const{redirect:ee}=Q;let j=typeof ee=="function"?ee(J):ee;return typeof j=="string"&&(j=j.includes("?")||j.includes("#")?j=b(j):{path:j},j.params={}),Mn({query:J.query,hash:J.hash,params:J.params},j)}}function x(J,Q){const ee=u=m(J),j=l.value,de=J.state,ve=J.force,ie=J.replace===!0,W=S(ee);if(W)return x(Mn(b(W),{state:de,force:ve,replace:ie}),Q||ee);const X=ee;X.redirectedFrom=Q;let oe;return!ve&&Nq(r,j,ee)&&(oe=Yf(16,{to:X,from:j}),z(j,j,!0,!1)),(oe?Promise.resolve(oe):M(X,j)).catch(pe=>_s(pe)?_s(pe,2)?pe:I(pe):O(pe,X,j)).then(pe=>{if(pe){if(_s(pe,2))return x(Mn(b(pe.to),{state:de,force:ve,replace:ie}),Q||X)}else pe=k(X,j,!0,ie,de);return A(X,j,pe),pe})}function T(J,Q){const ee=_(J,Q);return ee?Promise.reject(ee):Promise.resolve()}function M(J,Q){let ee;const[j,de,ve]=$X(J,Q);ee=c_(j.reverse(),"beforeRouteLeave",J,Q);for(const W of j)W.leaveGuards.forEach(X=>{ee.push(Ns(X,J,Q))});const ie=T.bind(null,J,Q);return ee.push(ie),Pc(ee).then(()=>{ee=[];for(const W of i.list())ee.push(Ns(W,J,Q));return ee.push(ie),Pc(ee)}).then(()=>{ee=c_(de,"beforeRouteUpdate",J,Q);for(const W of de)W.updateGuards.forEach(X=>{ee.push(Ns(X,J,Q))});return ee.push(ie),Pc(ee)}).then(()=>{ee=[];for(const W of J.matched)if(W.beforeEnter&&!Q.matched.includes(W))if(Array.isArray(W.beforeEnter))for(const X of W.beforeEnter)ee.push(Ns(X,J,Q));else ee.push(Ns(W.beforeEnter,J,Q));return ee.push(ie),Pc(ee)}).then(()=>(J.matched.forEach(W=>W.enterCallbacks={}),ee=c_(ve,"beforeRouteEnter",J,Q),ee.push(ie),Pc(ee))).then(()=>{ee=[];for(const W of o.list())ee.push(Ns(W,J,Q));return ee.push(ie),Pc(ee)}).catch(W=>_s(W,8)?W:Promise.reject(W))}function A(J,Q,ee){for(const j of s.list())j(J,Q,ee)}function k(J,Q,ee,j,de){const ve=_(J,Q);if(ve)return ve;const ie=Q===bs,W=af?history.state:{};ee&&(j||ie?a.replace(J.fullPath,Mn({scroll:ie&&W&&W.scroll},de)):a.push(J.fullPath,de)),l.value=J,z(J,Q,ee,ie),I()}let E;function D(){E||(E=a.listen((J,Q,ee)=>{const j=m(J),de=S(j);if(de){x(Mn(de,{replace:!0}),j).catch(ev);return}u=j;const ve=l.value;af&&Kq(TI(ve.fullPath,ee.delta),Ob()),M(j,ve).catch(ie=>_s(ie,12)?ie:_s(ie,2)?(x(ie.to,j).then(W=>{_s(W,20)&&!ee.delta&&ee.type===Vv.pop&&a.go(-1,!1)}).catch(ev),Promise.reject()):(ee.delta&&a.go(-ee.delta,!1),O(ie,j,ve))).then(ie=>{ie=ie||k(j,ve,!1),ie&&(ee.delta?a.go(-ee.delta,!1):ee.type===Vv.pop&&_s(ie,20)&&a.go(-1,!1)),A(j,ve,ie)}).catch(ev)}))}let L=Jd(),B=Jd(),N;function O(J,Q,ee){I(J);const j=B.list();return j.length?j.forEach(de=>de(J,Q,ee)):console.error(J),Promise.reject(J)}function $(){return N&&l.value!==bs?Promise.resolve():new Promise((J,Q)=>{L.add([J,Q])})}function I(J){return N||(N=!J,D(),L.list().forEach(([Q,ee])=>J?ee(J):Q()),L.reset()),J}function z(J,Q,ee,j){const{scrollBehavior:de}=e;if(!af||!de)return Promise.resolve();const ve=!ee&&Uq(TI(J.fullPath,0))||(j||!ee)&&history.state&&history.state.scroll||null;return Ue().then(()=>de(J,Q,ve)).then(ie=>ie&&Wq(ie)).catch(ie=>O(ie,J,Q))}const G=J=>a.go(J);let U;const Z=new Set;return{currentRoute:l,addRoute:h,removeRoute:v,hasRoute:g,getRoutes:p,resolve:m,options:e,push:w,replace:C,go:G,back:()=>G(-1),forward:()=>G(1),beforeEach:i.add,beforeResolve:o.add,afterEach:s.add,onError:B.add,isReady:$,install(J){const Q=this;J.component("RouterLink",IX),J.component("RouterView",RX),J.config.globalProperties.$router=Q,Object.defineProperty(J.config.globalProperties,"$route",{enumerable:!0,get:()=>y(l)}),af&&!U&&l.value===bs&&(U=!0,w(a.location).catch(de=>{}));const ee={};for(const de in bs)ee[de]=P(()=>l.value[de]);J.provide(zT,Q),J.provide(RV,jt(ee)),J.provide(mC,l);const j=J.unmount;Z.add(J),J.unmount=function(){Z.delete(J),Z.size<1&&(u=bs,E&&E(),E=null,l.value=bs,U=!1,N=!1),j()}}}}function Pc(e){return e.reduce((t,n)=>t.then(()=>n()),Promise.resolve())}function $X(e,t){const n=[],r=[],a=[],i=Math.max(t.matched.length,e.matched.length);for(let o=0;o<i;o++){const s=t.matched[o];s&&(e.matched.find(u=>Uf(u,s))?r.push(s):n.push(s));const l=e.matched[o];l&&(t.matched.find(u=>Uf(u,l))||a.push(l))}return[n,r,a]}const HT=OX({history:Zq(),routes:[{path:"/",name:"主页",component:()=>Dq(()=>import("./index-23b2b4d6.js"),["./index-23b2b4d6.js","./index-65e0a0e3.css"],import.meta.url),meta:{keepAlive:!1,title:"主页"}}]});HT.beforeEach((e,t,n)=>{window.document.title=e.name,n()});HT.afterEach((e,t,n)=>{window.scrollTo(0,0)});var NX=!1;/*!
  6. * pinia v2.1.6
  7. * (c) 2023 Eduardo San Martin Morote
  8. * @license MIT
  9. */const BX=Symbol();var NI;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(NI||(NI={}));function VX(){const e=MB(!0),t=e.run(()=>H({}));let n=[],r=[];const a=Js({install(i){a._a=i,i.provide(BX,a),i.config.globalProperties.$pinia=a,r.forEach(o=>n.push(o)),r=[]},use(i){return!this._a&&!NX?r.push(i):n.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return a}function zX(e){return typeof e=="object"&&e!==null}function BI(e,t){return e=zX(e)?e:Object.create(null),new Proxy(e,{get(n,r,a){return r==="key"?Reflect.get(n,r,a):Reflect.get(n,r,a)||Reflect.get(t,r,a)}})}function FX(e,t){return t.reduce((n,r)=>n==null?void 0:n[r],e)}function HX(e,t,n){return t.slice(0,-1).reduce((r,a)=>/^(__proto__)$/.test(a)?{}:r[a]=r[a]||{},e)[t[t.length-1]]=n,e}function GX(e,t){return t.reduce((n,r)=>{const a=r.split(".");return HX(n,a,FX(e,a))},{})}function VI(e,{storage:t,serializer:n,key:r,debug:a}){try{const i=t==null?void 0:t.getItem(r);i&&e.$patch(n==null?void 0:n.deserialize(i))}catch(i){a&&console.error(i)}}function zI(e,{storage:t,serializer:n,key:r,paths:a,debug:i}){try{const o=Array.isArray(a)?GX(e,a):e;t.setItem(r,n.serialize(o))}catch(o){i&&console.error(o)}}function WX(e={}){return t=>{const{auto:n=!1}=e,{options:{persist:r=n},store:a,pinia:i}=t;if(!r)return;if(!(a.$id in i.state.value)){const s=i._s.get(a.$id.replace("__hot:",""));s&&Promise.resolve().then(()=>s.$persist());return}const o=(Array.isArray(r)?r.map(s=>BI(s,e)):[BI(r,e)]).map(({storage:s=localStorage,beforeRestore:l=null,afterRestore:u=null,serializer:c={serialize:JSON.stringify,deserialize:JSON.parse},key:f=a.$id,paths:d=null,debug:h=!1})=>{var v;return{storage:s,beforeRestore:l,afterRestore:u,serializer:c,key:((v=e.key)!=null?v:p=>p)(typeof f=="string"?f:f(a.$id)),paths:d,debug:h}});a.$persist=()=>{o.forEach(s=>{zI(a.$state,s)})},a.$hydrate=({runHooks:s=!0}={})=>{o.forEach(l=>{const{beforeRestore:u,afterRestore:c}=l;s&&(u==null||u(t)),VI(a,l),s&&(c==null||c(t))})},o.forEach(s=>{const{beforeRestore:l,afterRestore:u}=s;l==null||l(t),VI(a,s),u==null||u(t),a.$subscribe((c,f)=>{zI(f,s)},{detached:!0})})}}var KX=WX();const KV=VX();KV.use(KX);const UX='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',YX=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,FI=e=>Array.from(e.querySelectorAll(UX)).filter(t=>jX(t)&&YX(t)),jX=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},sy=function(e,t,...n){let r;t.includes("mouse")||t.includes("click")?r="MouseEvents":t.includes("key")?r="KeyboardEvent":r="HTMLEvents";const a=document.createEvent(r);return a.initEvent(t,...n),e.dispatchEvent(a),e},UV=e=>!e.getAttribute("aria-owns"),YV=(e,t,n)=>{const{parentNode:r}=e;if(!r)return null;const a=r.querySelectorAll(n),i=Array.prototype.indexOf.call(a,e);return a[i+t]||null},ly=e=>{e&&(e.focus(),!UV(e)&&e.click())},In=(e,t,{checkForDefaultPrevented:n=!0}={})=>a=>{const i=e==null?void 0:e(a);if(n===!1||!i)return t==null?void 0:t(a)},HI=e=>t=>t.pointerType==="mouse"?e(t):void 0;var qX=Object.defineProperty,XX=Object.defineProperties,ZX=Object.getOwnPropertyDescriptors,GI=Object.getOwnPropertySymbols,JX=Object.prototype.hasOwnProperty,QX=Object.prototype.propertyIsEnumerable,WI=(e,t,n)=>t in e?qX(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,eZ=(e,t)=>{for(var n in t||(t={}))JX.call(t,n)&&WI(e,n,t[n]);if(GI)for(var n of GI(t))QX.call(t,n)&&WI(e,n,t[n]);return e},tZ=(e,t)=>XX(e,ZX(t));function KI(e,t){var n;const r=un();return Ia(()=>{r.value=e()},tZ(eZ({},t),{flush:(n=t==null?void 0:t.flush)!=null?n:"sync"})),wd(r)}var UI;const Vt=typeof window<"u",nZ=e=>typeof e<"u",rZ=e=>typeof e=="function",aZ=e=>typeof e=="string",jf=()=>{},jV=Vt&&((UI=window==null?void 0:window.navigator)==null?void 0:UI.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function ul(e){return typeof e=="function"?e():y(e)}function qV(e,t){function n(...r){return new Promise((a,i)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(a).catch(i)})}return n}function iZ(e,t={}){let n,r,a=jf;const i=s=>{clearTimeout(s),a(),a=jf};return s=>{const l=ul(e),u=ul(t.maxWait);return n&&i(n),l<=0||u!==void 0&&u<=0?(r&&(i(r),r=null),Promise.resolve(s())):new Promise((c,f)=>{a=t.rejectOnCancel?f:c,u&&!r&&(r=setTimeout(()=>{n&&i(n),r=null,c(s())},u)),n=setTimeout(()=>{r&&i(r),r=null,c(s())},l)})}}function oZ(e,t=!0,n=!0,r=!1){let a=0,i,o=!0,s=jf,l;const u=()=>{i&&(clearTimeout(i),i=void 0,s(),s=jf)};return f=>{const d=ul(e),h=Date.now()-a,v=()=>l=f();return u(),d<=0?(a=Date.now(),v()):(h>d&&(n||!o)?(a=Date.now(),v()):t&&(l=new Promise((p,g)=>{s=r?g:p,i=setTimeout(()=>{a=Date.now(),o=!0,p(v()),u()},Math.max(0,d-h))})),!n&&!i&&(i=setTimeout(()=>o=!0,d)),o=!1,l)}}function sZ(e){return e}function $b(e){return kB()?(AB(e),!0):!1}function lZ(e,t=200,n={}){return qV(iZ(t,n),e)}function uZ(e,t=200,n={}){const r=H(e.value),a=lZ(()=>{r.value=e.value},t,n);return xe(e,()=>a()),r}function XV(e,t=200,n=!1,r=!0,a=!1){return qV(oZ(t,n,r,a),e)}function GT(e,t=!0){gt()?yt(e):t?e():Ue(e)}function ac(e,t,n={}){const{immediate:r=!0}=n,a=H(!1);let i=null;function o(){i&&(clearTimeout(i),i=null)}function s(){a.value=!1,o()}function l(...u){o(),a.value=!0,i=setTimeout(()=>{a.value=!1,i=null,e(...u)},ul(t))}return r&&(a.value=!0,Vt&&l()),$b(s),{isPending:wd(a),start:l,stop:s}}function ka(e){var t;const n=ul(e);return(t=n==null?void 0:n.$el)!=null?t:n}const xd=Vt?window:void 0,cZ=Vt?window.document:void 0;function bn(...e){let t,n,r,a;if(aZ(e[0])||Array.isArray(e[0])?([n,r,a]=e,t=xd):[t,n,r,a]=e,!t)return jf;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const i=[],o=()=>{i.forEach(c=>c()),i.length=0},s=(c,f,d,h)=>(c.addEventListener(f,d,h),()=>c.removeEventListener(f,d,h)),l=xe(()=>[ka(t),ul(a)],([c,f])=>{o(),c&&i.push(...n.flatMap(d=>r.map(h=>s(c,d,h,f))))},{immediate:!0,flush:"post"}),u=()=>{l(),o()};return $b(u),u}let YI=!1;function WT(e,t,n={}){const{window:r=xd,ignore:a=[],capture:i=!0,detectIframe:o=!1}=n;if(!r)return;jV&&!YI&&(YI=!0,Array.from(r.document.body.children).forEach(d=>d.addEventListener("click",jf)));let s=!0;const l=d=>a.some(h=>{if(typeof h=="string")return Array.from(r.document.querySelectorAll(h)).some(v=>v===d.target||d.composedPath().includes(v));{const v=ka(h);return v&&(d.target===v||d.composedPath().includes(v))}}),c=[bn(r,"click",d=>{const h=ka(e);if(!(!h||h===d.target||d.composedPath().includes(h))){if(d.detail===0&&(s=!l(d)),!s){s=!0;return}t(d)}},{passive:!0,capture:i}),bn(r,"pointerdown",d=>{const h=ka(e);h&&(s=!d.composedPath().includes(h)&&!l(d))},{passive:!0}),o&&bn(r,"blur",d=>{var h;const v=ka(e);((h=r.document.activeElement)==null?void 0:h.tagName)==="IFRAME"&&!(v!=null&&v.contains(r.document.activeElement))&&t(d)})].filter(Boolean);return()=>c.forEach(d=>d())}function fZ(e,t=!1){const n=H(),r=()=>n.value=!!e();return r(),GT(r,t),n}function dZ(e){return JSON.parse(JSON.stringify(e))}const jI=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},qI="__vueuse_ssr_handlers__";jI[qI]=jI[qI]||{};function hZ(e,t,{window:n=xd,initialValue:r=""}={}){const a=H(r),i=P(()=>{var o;return ka(t)||((o=n==null?void 0:n.document)==null?void 0:o.documentElement)});return xe([i,()=>ul(e)],([o,s])=>{var l;if(o&&n){const u=(l=n.getComputedStyle(o).getPropertyValue(s))==null?void 0:l.trim();a.value=u||r}},{immediate:!0}),xe(a,o=>{var s;(s=i.value)!=null&&s.style&&i.value.style.setProperty(ul(e),o)}),a}function vZ({document:e=cZ}={}){if(!e)return H("visible");const t=H(e.visibilityState);return bn(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var XI=Object.getOwnPropertySymbols,pZ=Object.prototype.hasOwnProperty,gZ=Object.prototype.propertyIsEnumerable,mZ=(e,t)=>{var n={};for(var r in e)pZ.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&XI)for(var r of XI(e))t.indexOf(r)<0&&gZ.call(e,r)&&(n[r]=e[r]);return n};function $r(e,t,n={}){const r=n,{window:a=xd}=r,i=mZ(r,["window"]);let o;const s=fZ(()=>a&&"ResizeObserver"in a),l=()=>{o&&(o.disconnect(),o=void 0)},u=xe(()=>ka(e),f=>{l(),s.value&&a&&f&&(o=new ResizeObserver(t),o.observe(f,i))},{immediate:!0,flush:"post"}),c=()=>{l(),u()};return $b(c),{isSupported:s,stop:c}}function ZI(e,t={}){const{reset:n=!0,windowResize:r=!0,windowScroll:a=!0,immediate:i=!0}=t,o=H(0),s=H(0),l=H(0),u=H(0),c=H(0),f=H(0),d=H(0),h=H(0);function v(){const p=ka(e);if(!p){n&&(o.value=0,s.value=0,l.value=0,u.value=0,c.value=0,f.value=0,d.value=0,h.value=0);return}const g=p.getBoundingClientRect();o.value=g.height,s.value=g.bottom,l.value=g.left,u.value=g.right,c.value=g.top,f.value=g.width,d.value=g.x,h.value=g.y}return $r(e,v),xe(()=>ka(e),p=>!p&&v()),a&&bn("scroll",v,{capture:!0,passive:!0}),r&&bn("resize",v,{passive:!0}),GT(()=>{i&&v()}),{height:o,bottom:s,left:l,right:u,top:c,width:f,x:d,y:h,update:v}}var JI;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(JI||(JI={}));var yZ=Object.defineProperty,QI=Object.getOwnPropertySymbols,bZ=Object.prototype.hasOwnProperty,_Z=Object.prototype.propertyIsEnumerable,eD=(e,t,n)=>t in e?yZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,wZ=(e,t)=>{for(var n in t||(t={}))bZ.call(t,n)&&eD(e,n,t[n]);if(QI)for(var n of QI(t))_Z.call(t,n)&&eD(e,n,t[n]);return e};const SZ={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]};wZ({linear:sZ},SZ);function CZ(e,t,n,r={}){var a,i,o;const{clone:s=!1,passive:l=!1,eventName:u,deep:c=!1,defaultValue:f}=r,d=gt(),h=n||(d==null?void 0:d.emit)||((a=d==null?void 0:d.$emit)==null?void 0:a.bind(d))||((o=(i=d==null?void 0:d.proxy)==null?void 0:i.$emit)==null?void 0:o.bind(d==null?void 0:d.proxy));let v=u;t||(t="modelValue"),v=u||v||`update:${t.toString()}`;const p=m=>s?rZ(s)?s(m):dZ(m):m,g=()=>nZ(e[t])?p(e[t]):f;if(l){const m=g(),b=H(m);return xe(()=>e[t],_=>b.value=p(_)),xe(b,_=>{(_!==e[t]||c)&&h(v,_)},{deep:c}),b}else return P({get(){return g()},set(m){h(v,m)}})}function xZ({window:e=xd}={}){if(!e)return H(!1);const t=H(e.document.hasFocus());return bn(e,"blur",()=>{t.value=!1}),bn(e,"focus",()=>{t.value=!0}),t}function TZ(e={}){const{window:t=xd,initialWidth:n=1/0,initialHeight:r=1/0,listenOrientation:a=!0,includeScrollbar:i=!0}=e,o=H(n),s=H(r),l=()=>{t&&(i?(o.value=t.innerWidth,s.value=t.innerHeight):(o.value=t.document.documentElement.clientWidth,s.value=t.document.documentElement.clientHeight))};return l(),GT(l),bn("resize",l,{passive:!0}),a&&bn("orientationchange",l,{passive:!0}),{width:o,height:s}}const ZV=()=>Vt&&/firefox/i.test(window.navigator.userAgent),MZ=(e,t)=>{if(!Vt||!e||!t)return!1;const n=e.getBoundingClientRect();let r;return t instanceof Element?r=t.getBoundingClientRect():r={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0},n.top<r.bottom&&n.bottom>r.top&&n.right>r.left&&n.left<r.right},tD=e=>{let t=0,n=e;for(;n;)t+=n.offsetTop,n=n.offsetParent;return t},kZ=(e,t)=>Math.abs(tD(e)-tD(t)),KT=e=>{let t,n;return e.type==="touchend"?(n=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(n=e.touches[0].clientY,t=e.touches[0].clientX):(n=e.clientY,t=e.clientX),{clientX:t,clientY:n}};var AZ=typeof global=="object"&&global&&global.Object===Object&&global;const JV=AZ;var EZ=typeof self=="object"&&self&&self.Object===Object&&self,IZ=JV||EZ||Function("return this")();const Wi=IZ;var DZ=Wi.Symbol;const ni=DZ;var QV=Object.prototype,PZ=QV.hasOwnProperty,LZ=QV.toString,Qd=ni?ni.toStringTag:void 0;function RZ(e){var t=PZ.call(e,Qd),n=e[Qd];try{e[Qd]=void 0;var r=!0}catch{}var a=LZ.call(e);return r&&(t?e[Qd]=n:delete e[Qd]),a}var OZ=Object.prototype,$Z=OZ.toString;function NZ(e){return $Z.call(e)}var BZ="[object Null]",VZ="[object Undefined]",nD=ni?ni.toStringTag:void 0;function yc(e){return e==null?e===void 0?VZ:BZ:nD&&nD in Object(e)?RZ(e):NZ(e)}function yo(e){return e!=null&&typeof e=="object"}var zZ="[object Symbol]";function Nb(e){return typeof e=="symbol"||yo(e)&&yc(e)==zZ}function e5(e,t){for(var n=-1,r=e==null?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}var FZ=Array.isArray;const Zr=FZ;var HZ=1/0,rD=ni?ni.prototype:void 0,aD=rD?rD.toString:void 0;function t5(e){if(typeof e=="string")return e;if(Zr(e))return e5(e,t5)+"";if(Nb(e))return aD?aD.call(e):"";var t=e+"";return t=="0"&&1/e==-HZ?"-0":t}var GZ=/\s/;function WZ(e){for(var t=e.length;t--&&GZ.test(e.charAt(t)););return t}var KZ=/^\s+/;function UZ(e){return e&&e.slice(0,WZ(e)+1).replace(KZ,"")}function Jr(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var iD=0/0,YZ=/^[-+]0x[0-9a-f]+$/i,jZ=/^0b[01]+$/i,qZ=/^0o[0-7]+$/i,XZ=parseInt;function _C(e){if(typeof e=="number")return e;if(Nb(e))return iD;if(Jr(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Jr(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=UZ(e);var n=jZ.test(e);return n||qZ.test(e)?XZ(e.slice(2),n?2:8):YZ.test(e)?iD:+e}var oD=1/0,ZZ=17976931348623157e292;function JZ(e){if(!e)return e===0?e:0;if(e=_C(e),e===oD||e===-oD){var t=e<0?-1:1;return t*ZZ}return e===e?e:0}function QZ(e){var t=JZ(e),n=t%1;return t===t?n?t-n:t:0}function UT(e){return e}var eJ="[object AsyncFunction]",tJ="[object Function]",nJ="[object GeneratorFunction]",rJ="[object Proxy]";function YT(e){if(!Jr(e))return!1;var t=yc(e);return t==tJ||t==nJ||t==eJ||t==rJ}var aJ=Wi["__core-js_shared__"];const f_=aJ;var sD=function(){var e=/[^.]+$/.exec(f_&&f_.keys&&f_.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function iJ(e){return!!sD&&sD in e}var oJ=Function.prototype,sJ=oJ.toString;function bc(e){if(e!=null){try{return sJ.call(e)}catch{}try{return e+""}catch{}}return""}var lJ=/[\\^$.*+?()[\]{}|]/g,uJ=/^\[object .+?Constructor\]$/,cJ=Function.prototype,fJ=Object.prototype,dJ=cJ.toString,hJ=fJ.hasOwnProperty,vJ=RegExp("^"+dJ.call(hJ).replace(lJ,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function pJ(e){if(!Jr(e)||iJ(e))return!1;var t=YT(e)?vJ:uJ;return t.test(bc(e))}function gJ(e,t){return e==null?void 0:e[t]}function _c(e,t){var n=gJ(e,t);return pJ(n)?n:void 0}var mJ=_c(Wi,"WeakMap");const wC=mJ;var lD=Object.create,yJ=function(){function e(){}return function(t){if(!Jr(t))return{};if(lD)return lD(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const bJ=yJ;function _J(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function wJ(){}function n5(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var SJ=800,CJ=16,xJ=Date.now;function TJ(e){var t=0,n=0;return function(){var r=xJ(),a=CJ-(r-n);if(n=r,a>0){if(++t>=SJ)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function MJ(e){return function(){return e}}var kJ=function(){try{var e=_c(Object,"defineProperty");return e({},"",{}),e}catch{}}();const o0=kJ;var AJ=o0?function(e,t){return o0(e,"toString",{configurable:!0,enumerable:!1,value:MJ(t),writable:!0})}:UT;const EJ=AJ;var IJ=TJ(EJ);const r5=IJ;function DJ(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function a5(e,t,n,r){for(var a=e.length,i=n+(r?1:-1);r?i--:++i<a;)if(t(e[i],i,e))return i;return-1}function PJ(e){return e!==e}function LJ(e,t,n){for(var r=n-1,a=e.length;++r<a;)if(e[r]===t)return r;return-1}function RJ(e,t,n){return t===t?LJ(e,t,n):a5(e,PJ,n)}function OJ(e,t){var n=e==null?0:e.length;return!!n&&RJ(e,t,0)>-1}var $J=9007199254740991,NJ=/^(?:0|[1-9]\d*)$/;function Bb(e,t){var n=typeof e;return t=t??$J,!!t&&(n=="number"||n!="symbol"&&NJ.test(e))&&e>-1&&e%1==0&&e<t}function jT(e,t,n){t=="__proto__"&&o0?o0(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Kp(e,t){return e===t||e!==e&&t!==t}var BJ=Object.prototype,VJ=BJ.hasOwnProperty;function qT(e,t,n){var r=e[t];(!(VJ.call(e,t)&&Kp(r,n))||n===void 0&&!(t in e))&&jT(e,t,n)}function Up(e,t,n,r){var a=!n;n||(n={});for(var i=-1,o=t.length;++i<o;){var s=t[i],l=r?r(n[s],e[s],s,n,e):void 0;l===void 0&&(l=e[s]),a?jT(n,s,l):qT(n,s,l)}return n}var uD=Math.max;function i5(e,t,n){return t=uD(t===void 0?e.length-1:t,0),function(){for(var r=arguments,a=-1,i=uD(r.length-t,0),o=Array(i);++a<i;)o[a]=r[t+a];a=-1;for(var s=Array(t+1);++a<t;)s[a]=r[a];return s[t]=n(o),_J(e,this,s)}}function o5(e,t){return r5(i5(e,t,UT),e+"")}var zJ=9007199254740991;function XT(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=zJ}function Td(e){return e!=null&&XT(e.length)&&!YT(e)}function FJ(e,t,n){if(!Jr(n))return!1;var r=typeof t;return(r=="number"?Td(n)&&Bb(t,n.length):r=="string"&&t in n)?Kp(n[t],e):!1}function HJ(e){return o5(function(t,n){var r=-1,a=n.length,i=a>1?n[a-1]:void 0,o=a>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(a--,i):void 0,o&&FJ(n[0],n[1],o)&&(i=a<3?void 0:i,a=1),t=Object(t);++r<a;){var s=n[r];s&&e(t,s,r,i)}return t})}var GJ=Object.prototype;function ZT(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||GJ;return e===n}function WJ(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var KJ="[object Arguments]";function cD(e){return yo(e)&&yc(e)==KJ}var s5=Object.prototype,UJ=s5.hasOwnProperty,YJ=s5.propertyIsEnumerable,jJ=cD(function(){return arguments}())?cD:function(e){return yo(e)&&UJ.call(e,"callee")&&!YJ.call(e,"callee")};const zv=jJ;function qJ(){return!1}var l5=typeof exports=="object"&&exports&&!exports.nodeType&&exports,fD=l5&&typeof module=="object"&&module&&!module.nodeType&&module,XJ=fD&&fD.exports===l5,dD=XJ?Wi.Buffer:void 0,ZJ=dD?dD.isBuffer:void 0,JJ=ZJ||qJ;const Fv=JJ;var QJ="[object Arguments]",eQ="[object Array]",tQ="[object Boolean]",nQ="[object Date]",rQ="[object Error]",aQ="[object Function]",iQ="[object Map]",oQ="[object Number]",sQ="[object Object]",lQ="[object RegExp]",uQ="[object Set]",cQ="[object String]",fQ="[object WeakMap]",dQ="[object ArrayBuffer]",hQ="[object DataView]",vQ="[object Float32Array]",pQ="[object Float64Array]",gQ="[object Int8Array]",mQ="[object Int16Array]",yQ="[object Int32Array]",bQ="[object Uint8Array]",_Q="[object Uint8ClampedArray]",wQ="[object Uint16Array]",SQ="[object Uint32Array]",Pn={};Pn[vQ]=Pn[pQ]=Pn[gQ]=Pn[mQ]=Pn[yQ]=Pn[bQ]=Pn[_Q]=Pn[wQ]=Pn[SQ]=!0;Pn[QJ]=Pn[eQ]=Pn[dQ]=Pn[tQ]=Pn[hQ]=Pn[nQ]=Pn[rQ]=Pn[aQ]=Pn[iQ]=Pn[oQ]=Pn[sQ]=Pn[lQ]=Pn[uQ]=Pn[cQ]=Pn[fQ]=!1;function CQ(e){return yo(e)&&XT(e.length)&&!!Pn[yc(e)]}function JT(e){return function(t){return e(t)}}var u5=typeof exports=="object"&&exports&&!exports.nodeType&&exports,nv=u5&&typeof module=="object"&&module&&!module.nodeType&&module,xQ=nv&&nv.exports===u5,d_=xQ&&JV.process,TQ=function(){try{var e=nv&&nv.require&&nv.require("util").types;return e||d_&&d_.binding&&d_.binding("util")}catch{}}();const qf=TQ;var hD=qf&&qf.isTypedArray,MQ=hD?JT(hD):CQ;const QT=MQ;var kQ=Object.prototype,AQ=kQ.hasOwnProperty;function c5(e,t){var n=Zr(e),r=!n&&zv(e),a=!n&&!r&&Fv(e),i=!n&&!r&&!a&&QT(e),o=n||r||a||i,s=o?WJ(e.length,String):[],l=s.length;for(var u in e)(t||AQ.call(e,u))&&!(o&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Bb(u,l)))&&s.push(u);return s}function f5(e,t){return function(n){return e(t(n))}}var EQ=f5(Object.keys,Object);const IQ=EQ;var DQ=Object.prototype,PQ=DQ.hasOwnProperty;function LQ(e){if(!ZT(e))return IQ(e);var t=[];for(var n in Object(e))PQ.call(e,n)&&n!="constructor"&&t.push(n);return t}function Yp(e){return Td(e)?c5(e):LQ(e)}function RQ(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var OQ=Object.prototype,$Q=OQ.hasOwnProperty;function NQ(e){if(!Jr(e))return RQ(e);var t=ZT(e),n=[];for(var r in e)r=="constructor"&&(t||!$Q.call(e,r))||n.push(r);return n}function jp(e){return Td(e)?c5(e,!0):NQ(e)}var BQ=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,VQ=/^\w*$/;function eM(e,t){if(Zr(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Nb(e)?!0:VQ.test(e)||!BQ.test(e)||t!=null&&e in Object(t)}var zQ=_c(Object,"create");const Hv=zQ;function FQ(){this.__data__=Hv?Hv(null):{},this.size=0}function HQ(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var GQ="__lodash_hash_undefined__",WQ=Object.prototype,KQ=WQ.hasOwnProperty;function UQ(e){var t=this.__data__;if(Hv){var n=t[e];return n===GQ?void 0:n}return KQ.call(t,e)?t[e]:void 0}var YQ=Object.prototype,jQ=YQ.hasOwnProperty;function qQ(e){var t=this.__data__;return Hv?t[e]!==void 0:jQ.call(t,e)}var XQ="__lodash_hash_undefined__";function ZQ(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Hv&&t===void 0?XQ:t,this}function ic(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ic.prototype.clear=FQ;ic.prototype.delete=HQ;ic.prototype.get=UQ;ic.prototype.has=qQ;ic.prototype.set=ZQ;function JQ(){this.__data__=[],this.size=0}function Vb(e,t){for(var n=e.length;n--;)if(Kp(e[n][0],t))return n;return-1}var QQ=Array.prototype,eee=QQ.splice;function tee(e){var t=this.__data__,n=Vb(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():eee.call(t,n,1),--this.size,!0}function nee(e){var t=this.__data__,n=Vb(t,e);return n<0?void 0:t[n][1]}function ree(e){return Vb(this.__data__,e)>-1}function aee(e,t){var n=this.__data__,r=Vb(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function fs(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}fs.prototype.clear=JQ;fs.prototype.delete=tee;fs.prototype.get=nee;fs.prototype.has=ree;fs.prototype.set=aee;var iee=_c(Wi,"Map");const Gv=iee;function oee(){this.size=0,this.__data__={hash:new ic,map:new(Gv||fs),string:new ic}}function see(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function zb(e,t){var n=e.__data__;return see(t)?n[typeof t=="string"?"string":"hash"]:n.map}function lee(e){var t=zb(this,e).delete(e);return this.size-=t?1:0,t}function uee(e){return zb(this,e).get(e)}function cee(e){return zb(this,e).has(e)}function fee(e,t){var n=zb(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function ds(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ds.prototype.clear=oee;ds.prototype.delete=lee;ds.prototype.get=uee;ds.prototype.has=cee;ds.prototype.set=fee;var dee="Expected a function";function Fb(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(dee);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var o=e.apply(this,r);return n.cache=i.set(a,o)||i,o};return n.cache=new(Fb.Cache||ds),n}Fb.Cache=ds;var hee=500;function vee(e){var t=Fb(e,function(r){return n.size===hee&&n.clear(),r}),n=t.cache;return t}var pee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,gee=/\\(\\)?/g,mee=vee(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(pee,function(n,r,a,i){t.push(a?i.replace(gee,"$1"):r||n)}),t});const yee=mee;function bee(e){return e==null?"":t5(e)}function Hb(e,t){return Zr(e)?e:eM(e,t)?[e]:yee(bee(e))}var _ee=1/0;function qp(e){if(typeof e=="string"||Nb(e))return e;var t=e+"";return t=="0"&&1/e==-_ee?"-0":t}function tM(e,t){t=Hb(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[qp(t[n++])];return n&&n==r?e:void 0}function Sn(e,t,n){var r=e==null?void 0:tM(e,t);return r===void 0?n:r}function nM(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}var vD=ni?ni.isConcatSpreadable:void 0;function wee(e){return Zr(e)||zv(e)||!!(vD&&e&&e[vD])}function Xp(e,t,n,r,a){var i=-1,o=e.length;for(n||(n=wee),a||(a=[]);++i<o;){var s=e[i];t>0&&n(s)?t>1?Xp(s,t-1,n,r,a):nM(a,s):r||(a[a.length]=s)}return a}function d5(e){var t=e==null?0:e.length;return t?Xp(e,1):[]}function See(e){return r5(i5(e,void 0,d5),e+"")}var Cee=f5(Object.getPrototypeOf,Object);const rM=Cee;var xee="[object Object]",Tee=Function.prototype,Mee=Object.prototype,h5=Tee.toString,kee=Mee.hasOwnProperty,Aee=h5.call(Object);function Eee(e){if(!yo(e)||yc(e)!=xee)return!1;var t=rM(e);if(t===null)return!0;var n=kee.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&h5.call(n)==Aee}function oc(){if(!arguments.length)return[];var e=arguments[0];return Zr(e)?e:[e]}function Iee(){this.__data__=new fs,this.size=0}function Dee(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Pee(e){return this.__data__.get(e)}function Lee(e){return this.__data__.has(e)}var Ree=200;function Oee(e,t){var n=this.__data__;if(n instanceof fs){var r=n.__data__;if(!Gv||r.length<Ree-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ds(r)}return n.set(e,t),this.size=n.size,this}function Pi(e){var t=this.__data__=new fs(e);this.size=t.size}Pi.prototype.clear=Iee;Pi.prototype.delete=Dee;Pi.prototype.get=Pee;Pi.prototype.has=Lee;Pi.prototype.set=Oee;function $ee(e,t){return e&&Up(t,Yp(t),e)}function Nee(e,t){return e&&Up(t,jp(t),e)}var v5=typeof exports=="object"&&exports&&!exports.nodeType&&exports,pD=v5&&typeof module=="object"&&module&&!module.nodeType&&module,Bee=pD&&pD.exports===v5,gD=Bee?Wi.Buffer:void 0,mD=gD?gD.allocUnsafe:void 0;function p5(e,t){if(t)return e.slice();var n=e.length,r=mD?mD(n):new e.constructor(n);return e.copy(r),r}function Vee(e,t){for(var n=-1,r=e==null?0:e.length,a=0,i=[];++n<r;){var o=e[n];t(o,n,e)&&(i[a++]=o)}return i}function g5(){return[]}var zee=Object.prototype,Fee=zee.propertyIsEnumerable,yD=Object.getOwnPropertySymbols,Hee=yD?function(e){return e==null?[]:(e=Object(e),Vee(yD(e),function(t){return Fee.call(e,t)}))}:g5;const aM=Hee;function Gee(e,t){return Up(e,aM(e),t)}var Wee=Object.getOwnPropertySymbols,Kee=Wee?function(e){for(var t=[];e;)nM(t,aM(e)),e=rM(e);return t}:g5;const m5=Kee;function Uee(e,t){return Up(e,m5(e),t)}function y5(e,t,n){var r=t(e);return Zr(e)?r:nM(r,n(e))}function SC(e){return y5(e,Yp,aM)}function Yee(e){return y5(e,jp,m5)}var jee=_c(Wi,"DataView");const CC=jee;var qee=_c(Wi,"Promise");const xC=qee;var Xee=_c(Wi,"Set");const kf=Xee;var bD="[object Map]",Zee="[object Object]",_D="[object Promise]",wD="[object Set]",SD="[object WeakMap]",CD="[object DataView]",Jee=bc(CC),Qee=bc(Gv),ete=bc(xC),tte=bc(kf),nte=bc(wC),du=yc;(CC&&du(new CC(new ArrayBuffer(1)))!=CD||Gv&&du(new Gv)!=bD||xC&&du(xC.resolve())!=_D||kf&&du(new kf)!=wD||wC&&du(new wC)!=SD)&&(du=function(e){var t=yc(e),n=t==Zee?e.constructor:void 0,r=n?bc(n):"";if(r)switch(r){case Jee:return CD;case Qee:return bD;case ete:return _D;case tte:return wD;case nte:return SD}return t});const Wv=du;var rte=Object.prototype,ate=rte.hasOwnProperty;function ite(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&ate.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var ote=Wi.Uint8Array;const s0=ote;function iM(e){var t=new e.constructor(e.byteLength);return new s0(t).set(new s0(e)),t}function ste(e,t){var n=t?iM(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var lte=/\w*$/;function ute(e){var t=new e.constructor(e.source,lte.exec(e));return t.lastIndex=e.lastIndex,t}var xD=ni?ni.prototype:void 0,TD=xD?xD.valueOf:void 0;function cte(e){return TD?Object(TD.call(e)):{}}function b5(e,t){var n=t?iM(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var fte="[object Boolean]",dte="[object Date]",hte="[object Map]",vte="[object Number]",pte="[object RegExp]",gte="[object Set]",mte="[object String]",yte="[object Symbol]",bte="[object ArrayBuffer]",_te="[object DataView]",wte="[object Float32Array]",Ste="[object Float64Array]",Cte="[object Int8Array]",xte="[object Int16Array]",Tte="[object Int32Array]",Mte="[object Uint8Array]",kte="[object Uint8ClampedArray]",Ate="[object Uint16Array]",Ete="[object Uint32Array]";function Ite(e,t,n){var r=e.constructor;switch(t){case bte:return iM(e);case fte:case dte:return new r(+e);case _te:return ste(e,n);case wte:case Ste:case Cte:case xte:case Tte:case Mte:case kte:case Ate:case Ete:return b5(e,n);case hte:return new r;case vte:case mte:return new r(e);case pte:return ute(e);case gte:return new r;case yte:return cte(e)}}function _5(e){return typeof e.constructor=="function"&&!ZT(e)?bJ(rM(e)):{}}var Dte="[object Map]";function Pte(e){return yo(e)&&Wv(e)==Dte}var MD=qf&&qf.isMap,Lte=MD?JT(MD):Pte;const Rte=Lte;var Ote="[object Set]";function $te(e){return yo(e)&&Wv(e)==Ote}var kD=qf&&qf.isSet,Nte=kD?JT(kD):$te;const Bte=Nte;var Vte=1,zte=2,Fte=4,w5="[object Arguments]",Hte="[object Array]",Gte="[object Boolean]",Wte="[object Date]",Kte="[object Error]",S5="[object Function]",Ute="[object GeneratorFunction]",Yte="[object Map]",jte="[object Number]",C5="[object Object]",qte="[object RegExp]",Xte="[object Set]",Zte="[object String]",Jte="[object Symbol]",Qte="[object WeakMap]",ene="[object ArrayBuffer]",tne="[object DataView]",nne="[object Float32Array]",rne="[object Float64Array]",ane="[object Int8Array]",ine="[object Int16Array]",one="[object Int32Array]",sne="[object Uint8Array]",lne="[object Uint8ClampedArray]",une="[object Uint16Array]",cne="[object Uint32Array]",En={};En[w5]=En[Hte]=En[ene]=En[tne]=En[Gte]=En[Wte]=En[nne]=En[rne]=En[ane]=En[ine]=En[one]=En[Yte]=En[jte]=En[C5]=En[qte]=En[Xte]=En[Zte]=En[Jte]=En[sne]=En[lne]=En[une]=En[cne]=!0;En[Kte]=En[S5]=En[Qte]=!1;function rv(e,t,n,r,a,i){var o,s=t&Vte,l=t&zte,u=t&Fte;if(n&&(o=a?n(e,r,a,i):n(e)),o!==void 0)return o;if(!Jr(e))return e;var c=Zr(e);if(c){if(o=ite(e),!s)return n5(e,o)}else{var f=Wv(e),d=f==S5||f==Ute;if(Fv(e))return p5(e,s);if(f==C5||f==w5||d&&!a){if(o=l||d?{}:_5(e),!s)return l?Uee(e,Nee(o,e)):Gee(e,$ee(o,e))}else{if(!En[f])return a?e:{};o=Ite(e,f,s)}}i||(i=new Pi);var h=i.get(e);if(h)return h;i.set(e,o),Bte(e)?e.forEach(function(g){o.add(rv(g,t,n,g,e,i))}):Rte(e)&&e.forEach(function(g,m){o.set(m,rv(g,t,n,m,e,i))});var v=u?l?Yee:SC:l?jp:Yp,p=c?void 0:v(e);return DJ(p||e,function(g,m){p&&(m=g,g=e[m]),qT(o,m,rv(g,t,n,m,e,i))}),o}var fne=4;function AD(e){return rv(e,fne)}var dne=1,hne=4;function l0(e){return rv(e,dne|hne)}var vne="__lodash_hash_undefined__";function pne(e){return this.__data__.set(e,vne),this}function gne(e){return this.__data__.has(e)}function Kv(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new ds;++t<n;)this.add(e[t])}Kv.prototype.add=Kv.prototype.push=pne;Kv.prototype.has=gne;function mne(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function x5(e,t){return e.has(t)}var yne=1,bne=2;function T5(e,t,n,r,a,i){var o=n&yne,s=e.length,l=t.length;if(s!=l&&!(o&&l>s))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var f=-1,d=!0,h=n&bne?new Kv:void 0;for(i.set(e,t),i.set(t,e);++f<s;){var v=e[f],p=t[f];if(r)var g=o?r(p,v,f,t,e,i):r(v,p,f,e,t,i);if(g!==void 0){if(g)continue;d=!1;break}if(h){if(!mne(t,function(m,b){if(!x5(h,b)&&(v===m||a(v,m,n,r,i)))return h.push(b)})){d=!1;break}}else if(!(v===p||a(v,p,n,r,i))){d=!1;break}}return i.delete(e),i.delete(t),d}function _ne(e){var t=-1,n=Array(e.size);return e.forEach(function(r,a){n[++t]=[a,r]}),n}function oM(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var wne=1,Sne=2,Cne="[object Boolean]",xne="[object Date]",Tne="[object Error]",Mne="[object Map]",kne="[object Number]",Ane="[object RegExp]",Ene="[object Set]",Ine="[object String]",Dne="[object Symbol]",Pne="[object ArrayBuffer]",Lne="[object DataView]",ED=ni?ni.prototype:void 0,h_=ED?ED.valueOf:void 0;function Rne(e,t,n,r,a,i,o){switch(n){case Lne:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Pne:return!(e.byteLength!=t.byteLength||!i(new s0(e),new s0(t)));case Cne:case xne:case kne:return Kp(+e,+t);case Tne:return e.name==t.name&&e.message==t.message;case Ane:case Ine:return e==t+"";case Mne:var s=_ne;case Ene:var l=r&wne;if(s||(s=oM),e.size!=t.size&&!l)return!1;var u=o.get(e);if(u)return u==t;r|=Sne,o.set(e,t);var c=T5(s(e),s(t),r,a,i,o);return o.delete(e),c;case Dne:if(h_)return h_.call(e)==h_.call(t)}return!1}var One=1,$ne=Object.prototype,Nne=$ne.hasOwnProperty;function Bne(e,t,n,r,a,i){var o=n&One,s=SC(e),l=s.length,u=SC(t),c=u.length;if(l!=c&&!o)return!1;for(var f=l;f--;){var d=s[f];if(!(o?d in t:Nne.call(t,d)))return!1}var h=i.get(e),v=i.get(t);if(h&&v)return h==t&&v==e;var p=!0;i.set(e,t),i.set(t,e);for(var g=o;++f<l;){d=s[f];var m=e[d],b=t[d];if(r)var _=o?r(b,m,d,t,e,i):r(m,b,d,e,t,i);if(!(_===void 0?m===b||a(m,b,n,r,i):_)){p=!1;break}g||(g=d=="constructor")}if(p&&!g){var w=e.constructor,C=t.constructor;w!=C&&"constructor"in e&&"constructor"in t&&!(typeof w=="function"&&w instanceof w&&typeof C=="function"&&C instanceof C)&&(p=!1)}return i.delete(e),i.delete(t),p}var Vne=1,ID="[object Arguments]",DD="[object Array]",$g="[object Object]",zne=Object.prototype,PD=zne.hasOwnProperty;function Fne(e,t,n,r,a,i){var o=Zr(e),s=Zr(t),l=o?DD:Wv(e),u=s?DD:Wv(t);l=l==ID?$g:l,u=u==ID?$g:u;var c=l==$g,f=u==$g,d=l==u;if(d&&Fv(e)){if(!Fv(t))return!1;o=!0,c=!1}if(d&&!c)return i||(i=new Pi),o||QT(e)?T5(e,t,n,r,a,i):Rne(e,t,l,n,r,a,i);if(!(n&Vne)){var h=c&&PD.call(e,"__wrapped__"),v=f&&PD.call(t,"__wrapped__");if(h||v){var p=h?e.value():e,g=v?t.value():t;return i||(i=new Pi),a(p,g,n,r,i)}}return d?(i||(i=new Pi),Bne(e,t,n,r,a,i)):!1}function Gb(e,t,n,r,a){return e===t?!0:e==null||t==null||!yo(e)&&!yo(t)?e!==e&&t!==t:Fne(e,t,n,r,Gb,a)}var Hne=1,Gne=2;function Wne(e,t,n,r){var a=n.length,i=a,o=!r;if(e==null)return!i;for(e=Object(e);a--;){var s=n[a];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a<i;){s=n[a];var l=s[0],u=e[l],c=s[1];if(o&&s[2]){if(u===void 0&&!(l in e))return!1}else{var f=new Pi;if(r)var d=r(u,c,l,e,t,f);if(!(d===void 0?Gb(c,u,Hne|Gne,r,f):d))return!1}}return!0}function M5(e){return e===e&&!Jr(e)}function Kne(e){for(var t=Yp(e),n=t.length;n--;){var r=t[n],a=e[r];t[n]=[r,a,M5(a)]}return t}function k5(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function Une(e){var t=Kne(e);return t.length==1&&t[0][2]?k5(t[0][0],t[0][1]):function(n){return n===e||Wne(n,e,t)}}function Yne(e,t){return e!=null&&t in Object(e)}function jne(e,t,n){t=Hb(t,e);for(var r=-1,a=t.length,i=!1;++r<a;){var o=qp(t[r]);if(!(i=e!=null&&n(e,o)))break;e=e[o]}return i||++r!=a?i:(a=e==null?0:e.length,!!a&&XT(a)&&Bb(o,a)&&(Zr(e)||zv(e)))}function A5(e,t){return e!=null&&jne(e,t,Yne)}var qne=1,Xne=2;function Zne(e,t){return eM(e)&&M5(t)?k5(qp(e),t):function(n){var r=Sn(n,e);return r===void 0&&r===t?A5(n,e):Gb(t,r,qne|Xne)}}function Jne(e){return function(t){return t==null?void 0:t[e]}}function Qne(e){return function(t){return tM(t,e)}}function ere(e){return eM(e)?Jne(qp(e)):Qne(e)}function E5(e){return typeof e=="function"?e:e==null?UT:typeof e=="object"?Zr(e)?Zne(e[0],e[1]):Une(e):ere(e)}function tre(e){return function(t,n,r){for(var a=-1,i=Object(t),o=r(t),s=o.length;s--;){var l=o[e?s:++a];if(n(i[l],l,i)===!1)break}return t}}var nre=tre();const I5=nre;function rre(e,t){return e&&I5(e,t,Yp)}function are(e,t){return function(n,r){if(n==null)return n;if(!Td(n))return e(n,r);for(var a=n.length,i=t?a:-1,o=Object(n);(t?i--:++i<a)&&r(o[i],i,o)!==!1;);return n}}var ire=are(rre);const ore=ire;var sre=function(){return Wi.Date.now()};const v_=sre;var lre="Expected a function",ure=Math.max,cre=Math.min;function Qr(e,t,n){var r,a,i,o,s,l,u=0,c=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(lre);t=_C(t)||0,Jr(n)&&(c=!!n.leading,f="maxWait"in n,i=f?ure(_C(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d);function h(S){var x=r,T=a;return r=a=void 0,u=S,o=e.apply(T,x),o}function v(S){return u=S,s=setTimeout(m,t),c?h(S):o}function p(S){var x=S-l,T=S-u,M=t-x;return f?cre(M,i-T):M}function g(S){var x=S-l,T=S-u;return l===void 0||x>=t||x<0||f&&T>=i}function m(){var S=v_();if(g(S))return b(S);s=setTimeout(m,p(S))}function b(S){return s=void 0,d&&r?h(S):(r=a=void 0,o)}function _(){s!==void 0&&clearTimeout(s),u=0,r=l=a=s=void 0}function w(){return s===void 0?o:b(v_())}function C(){var S=v_(),x=g(S);if(r=arguments,a=this,l=S,x){if(s===void 0)return v(l);if(f)return clearTimeout(s),s=setTimeout(m,t),h(l)}return s===void 0&&(s=setTimeout(m,t)),o}return C.cancel=_,C.flush=w,C}function TC(e,t,n){(n!==void 0&&!Kp(e[t],n)||n===void 0&&!(t in e))&&jT(e,t,n)}function D5(e){return yo(e)&&Td(e)}function MC(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function fre(e){return Up(e,jp(e))}function dre(e,t,n,r,a,i,o){var s=MC(e,n),l=MC(t,n),u=o.get(l);if(u){TC(e,n,u);return}var c=i?i(s,l,n+"",e,t,o):void 0,f=c===void 0;if(f){var d=Zr(l),h=!d&&Fv(l),v=!d&&!h&&QT(l);c=l,d||h||v?Zr(s)?c=s:D5(s)?c=n5(s):h?(f=!1,c=p5(l,!0)):v?(f=!1,c=b5(l,!0)):c=[]:Eee(l)||zv(l)?(c=s,zv(s)?c=fre(s):(!Jr(s)||YT(s))&&(c=_5(l))):f=!1}f&&(o.set(l,c),a(c,l,r,i,o),o.delete(l)),TC(e,n,c)}function P5(e,t,n,r,a){e!==t&&I5(t,function(i,o){if(a||(a=new Pi),Jr(i))dre(e,t,o,n,P5,r,a);else{var s=r?r(MC(e,o),i,o+"",e,t,a):void 0;s===void 0&&(s=i),TC(e,o,s)}},jp)}function hre(e,t,n){for(var r=-1,a=e==null?0:e.length;++r<a;)if(n(t,e[r]))return!0;return!1}var vre=Math.max,pre=Math.min;function gre(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var a=r-1;return n!==void 0&&(a=QZ(n),a=n<0?vre(r+a,0):pre(a,r-1)),a5(e,E5(t),a,!0)}function mre(e,t){var n=-1,r=Td(e)?Array(e.length):[];return ore(e,function(a,i,o){r[++n]=t(a,i,o)}),r}function yre(e,t){var n=Zr(e)?e5:mre;return n(e,E5(t))}function bre(e,t){return Xp(yre(e,t),1)}var _re=1/0;function wre(e){var t=e==null?0:e.length;return t?Xp(e,_re):[]}function u0(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var a=e[t];r[a[0]]=a[1]}return r}function pa(e,t){return Gb(e,t)}function Kn(e){return e==null}function Sre(e){return e===void 0}var Cre=HJ(function(e,t,n){P5(e,t,n)});const L5=Cre;function R5(e,t,n,r){if(!Jr(e))return e;t=Hb(t,e);for(var a=-1,i=t.length,o=i-1,s=e;s!=null&&++a<i;){var l=qp(t[a]),u=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(a!=o){var c=s[l];u=r?r(c,l,s):void 0,u===void 0&&(u=Jr(c)?c:Bb(t[a+1])?[]:{})}qT(s,l,u),s=s[l]}return e}function xre(e,t,n){for(var r=-1,a=t.length,i={};++r<a;){var o=t[r],s=tM(e,o);n(s,o)&&R5(i,Hb(o,e),s)}return i}function Tre(e,t){return xre(e,t,function(n,r){return A5(e,r)})}var Mre=See(function(e,t){return e==null?{}:Tre(e,t)});const Ho=Mre;function kre(e,t,n){return e==null?e:R5(e,t,n)}var Are="Expected a function";function Uu(e,t,n){var r=!0,a=!0;if(typeof e!="function")throw new TypeError(Are);return Jr(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),Qr(e,t,{leading:r,maxWait:t,trailing:a})}var Ere=1/0,Ire=kf&&1/oM(new kf([,-0]))[1]==Ere?function(e){return new kf(e)}:wJ;const Dre=Ire;var Pre=200;function Lre(e,t,n){var r=-1,a=OJ,i=e.length,o=!0,s=[],l=s;if(n)o=!1,a=hre;else if(i>=Pre){var u=t?null:Dre(e);if(u)return oM(u);o=!1,a=x5,l=new Kv}else l=t?[]:s;e:for(;++r<i;){var c=e[r],f=t?t(c):c;if(c=n||c!==0?c:0,o&&f===f){for(var d=l.length;d--;)if(l[d]===f)continue e;t&&l.push(f),s.push(c)}else a(l,f,n)||(l!==s&&l.push(f),s.push(c))}return s}var Rre=o5(function(e){return Lre(Xp(e,1,D5,!0))});const p_=Rre,er=e=>e===void 0,Un=e=>typeof e=="boolean",at=e=>typeof e=="number",ja=e=>!e&&e!==0||He(e)&&e.length===0||Mt(e)&&!Object.keys(e).length,ri=e=>typeof Element>"u"?!1:e instanceof Element,Ore=e=>Kn(e),$re=e=>lt(e)?!Number.isNaN(Number(e)):!1,O5=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),io=e=>Gp(e),Uv=e=>Object.keys(e),Nre=e=>Object.entries(e),uy=(e,t,n)=>({get value(){return Sn(e,t,n)},set value(r){kre(e,t,r)}});class Bre extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function jn(e,t){throw new Bre(`[${e}] ${t}`)}const $5=(e="")=>e.split(" ").filter(t=>!!t.trim()),Li=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},lo=(e,t)=>{!e||!t.trim()||e.classList.add(...$5(t))},ga=(e,t)=>{!e||!t.trim()||e.classList.remove(...$5(t))},Fs=(e,t)=>{var n;if(!Vt||!e||!t)return"";let r=ti(t);r==="float"&&(r="cssFloat");try{const a=e.style[r];if(a)return a;const i=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return i?i[r]:""}catch{return e.style[r]}};function On(e,t="px"){if(!e)return"";if(at(e)||$re(e))return`${e}${t}`;if(lt(e))return e}const Vre=(e,t)=>{if(!Vt)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],r=Fs(e,n);return["scroll","auto","overlay"].some(a=>r.includes(a))},sM=(e,t)=>{if(!Vt)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(Vre(n,t))return n;n=n.parentNode}return n};let Ng;const N5=e=>{var t;if(!Vt)return 0;if(Ng!==void 0)return Ng;const n=document.createElement("div");n.className=`${e}-scrollbar__wrap`,n.style.visibility="hidden",n.style.width="100px",n.style.position="absolute",n.style.top="-9999px",document.body.appendChild(n);const r=n.offsetWidth;n.style.overflow="scroll";const a=document.createElement("div");a.style.width="100%",n.appendChild(a);const i=a.offsetWidth;return(t=n.parentNode)==null||t.removeChild(n),Ng=r-i,Ng};function B5(e,t){if(!Vt)return;if(!t){e.scrollTop=0;return}const n=[];let r=t.offsetParent;for(;r!==null&&e!==r&&e.contains(r);)n.push(r),r=r.offsetParent;const a=t.offsetTop+n.reduce((l,u)=>l+u.offsetTop,0),i=a+t.offsetHeight,o=e.scrollTop,s=o+e.clientHeight;a<o?e.scrollTop=a:i>s&&(e.scrollTop=i-e.clientHeight)}/*! Element Plus Icons Vue v2.1.0 */var qt=(e,t)=>{let n=e.__vccOpts||e;for(let[r,a]of t)n[r]=a;return n},zre={name:"ArrowDown"},Fre={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Hre=Y("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),Gre=[Hre];function Wre(e,t,n,r,a,i){return R(),K("svg",Fre,Gre)}var Tl=qt(zre,[["render",Wre],["__file","arrow-down.vue"]]),Kre={name:"ArrowLeft"},Ure={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Yre=Y("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"},null,-1),jre=[Yre];function qre(e,t,n,r,a,i){return R(),K("svg",Ure,jre)}var cl=qt(Kre,[["render",qre],["__file","arrow-left.vue"]]),Xre={name:"ArrowRight"},Zre={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Jre=Y("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),Qre=[Jre];function eae(e,t,n,r,a,i){return R(),K("svg",Zre,Qre)}var jr=qt(Xre,[["render",eae],["__file","arrow-right.vue"]]),tae={name:"ArrowUp"},nae={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},rae=Y("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),aae=[rae];function iae(e,t,n,r,a,i){return R(),K("svg",nae,aae)}var Wb=qt(tae,[["render",iae],["__file","arrow-up.vue"]]),oae={name:"Back"},sae={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},lae=Y("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64z"},null,-1),uae=Y("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312L237.248 512z"},null,-1),cae=[lae,uae];function fae(e,t,n,r,a,i){return R(),K("svg",sae,cae)}var dae=qt(oae,[["render",fae],["__file","back.vue"]]),hae={name:"Calendar"},vae={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},pae=Y("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64H128zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0v32zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64z"},null,-1),gae=[pae];function mae(e,t,n,r,a,i){return R(),K("svg",vae,gae)}var yae=qt(hae,[["render",mae],["__file","calendar.vue"]]),bae={name:"CaretBottom"},_ae={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},wae=Y("path",{fill:"currentColor",d:"m192 384 320 384 320-384z"},null,-1),Sae=[wae];function Cae(e,t,n,r,a,i){return R(),K("svg",_ae,Sae)}var Sje=qt(bae,[["render",Cae],["__file","caret-bottom.vue"]]),xae={name:"CaretRight"},Tae={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Mae=Y("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"},null,-1),kae=[Mae];function Aae(e,t,n,r,a,i){return R(),K("svg",Tae,kae)}var V5=qt(xae,[["render",Aae],["__file","caret-right.vue"]]),Eae={name:"CaretTop"},Iae={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Dae=Y("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"},null,-1),Pae=[Dae];function Lae(e,t,n,r,a,i){return R(),K("svg",Iae,Pae)}var Rae=qt(Eae,[["render",Lae],["__file","caret-top.vue"]]),Oae={name:"Check"},$ae={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Nae=Y("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"},null,-1),Bae=[Nae];function Vae(e,t,n,r,a,i){return R(),K("svg",$ae,Bae)}var Zp=qt(Oae,[["render",Vae],["__file","check.vue"]]),zae={name:"CircleCheckFilled"},Fae={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Hae=Y("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),Gae=[Hae];function Wae(e,t,n,r,a,i){return R(),K("svg",Fae,Gae)}var Kae=qt(zae,[["render",Wae],["__file","circle-check-filled.vue"]]),Uae={name:"CircleCheck"},Yae={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},jae=Y("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),qae=Y("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"},null,-1),Xae=[jae,qae];function Zae(e,t,n,r,a,i){return R(),K("svg",Yae,Xae)}var lM=qt(Uae,[["render",Zae],["__file","circle-check.vue"]]),Jae={name:"CircleCloseFilled"},Qae={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},eie=Y("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),tie=[eie];function nie(e,t,n,r,a,i){return R(),K("svg",Qae,tie)}var uM=qt(Jae,[["render",nie],["__file","circle-close-filled.vue"]]),rie={name:"CircleClose"},aie={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},iie=Y("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248L466.752 512z"},null,-1),oie=Y("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),sie=[iie,oie];function lie(e,t,n,r,a,i){return R(),K("svg",aie,sie)}var Ml=qt(rie,[["render",lie],["__file","circle-close.vue"]]),uie={name:"Clock"},cie={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},fie=Y("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),die=Y("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32z"},null,-1),hie=Y("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32z"},null,-1),vie=[fie,die,hie];function pie(e,t,n,r,a,i){return R(),K("svg",cie,vie)}var z5=qt(uie,[["render",pie],["__file","clock.vue"]]),gie={name:"Close"},mie={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},yie=Y("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),bie=[yie];function _ie(e,t,n,r,a,i){return R(),K("svg",mie,bie)}var Bi=qt(gie,[["render",_ie],["__file","close.vue"]]),wie={name:"DArrowLeft"},Sie={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Cie=Y("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224zm256 0a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224z"},null,-1),xie=[Cie];function Tie(e,t,n,r,a,i){return R(),K("svg",Sie,xie)}var Xf=qt(wie,[["render",Tie],["__file","d-arrow-left.vue"]]),Mie={name:"DArrowRight"},kie={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Aie=Y("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L764.736 512 452.864 192a30.592 30.592 0 0 1 0-42.688zm-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L508.736 512 196.864 192a30.592 30.592 0 0 1 0-42.688z"},null,-1),Eie=[Aie];function Iie(e,t,n,r,a,i){return R(),K("svg",kie,Eie)}var Zf=qt(Mie,[["render",Iie],["__file","d-arrow-right.vue"]]),Die={name:"Delete"},Pie={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Lie=Y("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32zm192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32z"},null,-1),Rie=[Lie];function Oie(e,t,n,r,a,i){return R(),K("svg",Pie,Rie)}var $ie=qt(Die,[["render",Oie],["__file","delete.vue"]]),Nie={name:"Document"},Bie={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Vie=Y("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640V384zm-26.496-64L640 154.496V320h165.504zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm160 448h384v64H320v-64zm0-192h160v64H320v-64zm0 384h384v64H320v-64z"},null,-1),zie=[Vie];function Fie(e,t,n,r,a,i){return R(),K("svg",Bie,zie)}var Hie=qt(Nie,[["render",Fie],["__file","document.vue"]]),Gie={name:"FullScreen"},Wie={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Kie=Y("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64v.064zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64l-192 .192zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64v-.064z"},null,-1),Uie=[Kie];function Yie(e,t,n,r,a,i){return R(),K("svg",Wie,Uie)}var jie=qt(Gie,[["render",Yie],["__file","full-screen.vue"]]),qie={name:"Hide"},Xie={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Zie=Y("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2L371.2 588.8ZM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"},null,-1),Jie=Y("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"},null,-1),Qie=[Zie,Jie];function eoe(e,t,n,r,a,i){return R(),K("svg",Xie,Qie)}var toe=qt(qie,[["render",eoe],["__file","hide.vue"]]),noe={name:"InfoFilled"},roe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},aoe=Y("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),ioe=[aoe];function ooe(e,t,n,r,a,i){return R(),K("svg",roe,ioe)}var cM=qt(noe,[["render",ooe],["__file","info-filled.vue"]]),soe={name:"Loading"},loe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},uoe=Y("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),coe=[uoe];function foe(e,t,n,r,a,i){return R(),K("svg",loe,coe)}var kl=qt(soe,[["render",foe],["__file","loading.vue"]]),doe={name:"Minus"},hoe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},voe=Y("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z"},null,-1),poe=[voe];function goe(e,t,n,r,a,i){return R(),K("svg",hoe,poe)}var moe=qt(doe,[["render",goe],["__file","minus.vue"]]),yoe={name:"MoreFilled"},boe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_oe=Y("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224z"},null,-1),woe=[_oe];function Soe(e,t,n,r,a,i){return R(),K("svg",boe,woe)}var LD=qt(yoe,[["render",Soe],["__file","more-filled.vue"]]),Coe={name:"More"},xoe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Toe=Y("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),Moe=[Toe];function koe(e,t,n,r,a,i){return R(),K("svg",xoe,Moe)}var Aoe=qt(Coe,[["render",koe],["__file","more.vue"]]),Eoe={name:"PictureFilled"},Ioe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Doe=Y("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32H96zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112zM256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384z"},null,-1),Poe=[Doe];function Loe(e,t,n,r,a,i){return R(),K("svg",Ioe,Poe)}var Roe=qt(Eoe,[["render",Loe],["__file","picture-filled.vue"]]),Ooe={name:"Plus"},$oe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Noe=Y("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64h352z"},null,-1),Boe=[Noe];function Voe(e,t,n,r,a,i){return R(),K("svg",$oe,Boe)}var F5=qt(Ooe,[["render",Voe],["__file","plus.vue"]]),zoe={name:"QuestionFilled"},Foe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Hoe=Y("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 0 0-38.72 14.784 49.408 49.408 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.968 51.968 0 0 0-15.488-38.016 55.936 55.936 0 0 0-39.424-14.784z"},null,-1),Goe=[Hoe];function Woe(e,t,n,r,a,i){return R(),K("svg",Foe,Goe)}var Koe=qt(zoe,[["render",Woe],["__file","question-filled.vue"]]),Uoe={name:"RefreshLeft"},Yoe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},joe=Y("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"},null,-1),qoe=[joe];function Xoe(e,t,n,r,a,i){return R(),K("svg",Yoe,qoe)}var Zoe=qt(Uoe,[["render",Xoe],["__file","refresh-left.vue"]]),Joe={name:"RefreshRight"},Qoe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ese=Y("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88z"},null,-1),tse=[ese];function nse(e,t,n,r,a,i){return R(),K("svg",Qoe,tse)}var rse=qt(Joe,[["render",nse],["__file","refresh-right.vue"]]),ase={name:"ScaleToOriginal"},ise={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ose=Y("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zm-361.412 0a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zM512 361.412a30.118 30.118 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.118 30.118 0 0 0 512 361.412zM512 512a30.118 30.118 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.118 30.118 0 0 0 512 512z"},null,-1),sse=[ose];function lse(e,t,n,r,a,i){return R(),K("svg",ise,sse)}var use=qt(ase,[["render",lse],["__file","scale-to-original.vue"]]),cse={name:"Search"},fse={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},dse=Y("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704z"},null,-1),hse=[dse];function vse(e,t,n,r,a,i){return R(),K("svg",fse,hse)}var pse=qt(cse,[["render",vse],["__file","search.vue"]]),gse={name:"SortDown"},mse={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},yse=Y("path",{fill:"currentColor",d:"M576 96v709.568L333.312 562.816A32 32 0 1 0 288 608l297.408 297.344A32 32 0 0 0 640 882.688V96a32 32 0 0 0-64 0z"},null,-1),bse=[yse];function _se(e,t,n,r,a,i){return R(),K("svg",mse,bse)}var wse=qt(gse,[["render",_se],["__file","sort-down.vue"]]),Sse={name:"SortUp"},Cse={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},xse=Y("path",{fill:"currentColor",d:"M384 141.248V928a32 32 0 1 0 64 0V218.56l242.688 242.688A32 32 0 1 0 736 416L438.592 118.656A32 32 0 0 0 384 141.248z"},null,-1),Tse=[xse];function Mse(e,t,n,r,a,i){return R(),K("svg",Cse,Tse)}var kse=qt(Sse,[["render",Mse],["__file","sort-up.vue"]]),Ase={name:"StarFilled"},Ese={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Ise=Y("path",{fill:"currentColor",d:"M283.84 867.84 512 747.776l228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72z"},null,-1),Dse=[Ise];function Pse(e,t,n,r,a,i){return R(),K("svg",Ese,Dse)}var Bg=qt(Ase,[["render",Pse],["__file","star-filled.vue"]]),Lse={name:"Star"},Rse={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Ose=Y("path",{fill:"currentColor",d:"m512 747.84 228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72L512 747.84zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"},null,-1),$se=[Ose];function Nse(e,t,n,r,a,i){return R(),K("svg",Rse,$se)}var Bse=qt(Lse,[["render",Nse],["__file","star.vue"]]),Vse={name:"SuccessFilled"},zse={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Fse=Y("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),Hse=[Fse];function Gse(e,t,n,r,a,i){return R(),K("svg",zse,Hse)}var H5=qt(Vse,[["render",Gse],["__file","success-filled.vue"]]),Wse={name:"View"},Kse={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Use=Y("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352zm0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448zm0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160z"},null,-1),Yse=[Use];function jse(e,t,n,r,a,i){return R(),K("svg",Kse,Yse)}var qse=qt(Wse,[["render",jse],["__file","view.vue"]]),Xse={name:"WarningFilled"},Zse={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Jse=Y("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),Qse=[Jse];function ele(e,t,n,r,a,i){return R(),K("svg",Zse,Qse)}var Kb=qt(Xse,[["render",ele],["__file","warning-filled.vue"]]),tle={name:"ZoomIn"},nle={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},rle=Y("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704zm-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96z"},null,-1),ale=[rle];function ile(e,t,n,r,a,i){return R(),K("svg",nle,ale)}var G5=qt(tle,[["render",ile],["__file","zoom-in.vue"]]),ole={name:"ZoomOut"},sle={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},lle=Y("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704zM352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64z"},null,-1),ule=[lle];function cle(e,t,n,r,a,i){return R(),K("svg",sle,ule)}var fle=qt(ole,[["render",cle],["__file","zoom-out.vue"]]);const W5="__epPropKey",ue=e=>e,dle=e=>Mt(e)&&!!e[W5],Ki=(e,t)=>{if(!Mt(e)||dle(e))return e;const{values:n,required:r,default:a,type:i,validator:o}=e,l={type:i,required:!!r,validator:n||o?u=>{let c=!1,f=[];if(n&&(f=Array.from(n),Nt(e,"default")&&f.push(a),c||(c=f.includes(u))),o&&(c||(c=o(u))),!c&&f.length>0){const d=[...new Set(f)].map(h=>JSON.stringify(h)).join(", ");YY(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${d}], got value ${JSON.stringify(u)}.`)}return c}:void 0,[W5]:!0};return Nt(e,"default")&&(l.default=a),l},Le=e=>u0(Object.entries(e).map(([t,n])=>[t,Ki(n,t)])),fn=ue([String,Object,Function]),K5={Close:Bi},fM={Close:Bi,SuccessFilled:H5,InfoFilled:cM,WarningFilled:Kb,CircleCloseFilled:uM},fl={success:H5,warning:Kb,error:uM,info:cM},dM={validating:kl,success:lM,error:Ml},_t=(e,t)=>{if(e.install=n=>{for(const r of[e,...Object.values(t??{})])n.component(r.name,r)},t)for(const[n,r]of Object.entries(t))e[n]=r;return e},U5=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),hle=(e,t)=>(e.install=n=>{n.directive(t,e)},e),Dn=e=>(e.install=rn,e),Ub=(...e)=>t=>{e.forEach(n=>{it(n)?n(t):n.value=t})},Xe={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"},vle=["year","month","date","dates","week","datetime","datetimerange","daterange","monthrange"],g_=["sun","mon","tue","wed","thu","fri","sat"],wt="update:modelValue",mn="change",qr="input",RD=Symbol("INSTALLED_KEY"),Mo=["","default","small","large"],ple={large:40,default:32,small:24},gle=e=>ple[e||"default"],Yb=e=>["",...Mo].includes(e);var Ga=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(Ga||{});function kC(e){return Tn(e)&&e.type===je}function mle(e){return Tn(e)&&e.type===Yr}function yle(e){return Tn(e)&&!kC(e)&&!mle(e)}const ble=e=>{if(!Tn(e))return{};const t=e.props||{},n=(Tn(e.type)?e.type.props:void 0)||{},r={};return Object.keys(n).forEach(a=>{Nt(n[a],"default")&&(r[a]=n[a].default)}),Object.keys(t).forEach(a=>{r[ti(a)]=t[a]}),r},_le=e=>{if(!He(e)||e.length>1)throw new Error("expect to receive a single Vue element child");return e[0]},Af=e=>{const t=He(e)?e:[e],n=[];return t.forEach(r=>{var a;He(r)?n.push(...Af(r)):Tn(r)&&He(r.children)?n.push(...Af(r.children)):(n.push(r),Tn(r)&&((a=r.component)!=null&&a.subTree)&&n.push(...Af(r.component.subTree)))}),n},OD=e=>[...new Set(e)],jo=e=>!e&&e!==0?[]:Array.isArray(e)?e:[e],jb=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),Jf=e=>Vt?window.requestAnimationFrame(e):setTimeout(e,16),qb=e=>Vt?window.cancelAnimationFrame(e):clearTimeout(e),Xb=()=>Math.floor(Math.random()*1e4),Cn=e=>e,wle=["class","style"],Sle=/^on[A-Z]/,hM=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,r=P(()=>((n==null?void 0:n.value)||[]).concat(wle)),a=gt();return P(a?()=>{var i;return u0(Object.entries((i=a.proxy)==null?void 0:i.$attrs).filter(([o])=>!r.value.includes(o)&&!(t&&Sle.test(o))))}:()=>({}))},bo=({from:e,replacement:t,scope:n,version:r,ref:a,type:i="API"},o)=>{xe(()=>y(o),s=>{},{immediate:!0})},Y5=(e,t,n)=>{let r={offsetX:0,offsetY:0};const a=s=>{const l=s.clientX,u=s.clientY,{offsetX:c,offsetY:f}=r,d=e.value.getBoundingClientRect(),h=d.left,v=d.top,p=d.width,g=d.height,m=document.documentElement.clientWidth,b=document.documentElement.clientHeight,_=-h+c,w=-v+f,C=m-h-p+c,S=b-v-g+f,x=M=>{const A=Math.min(Math.max(c+M.clientX-l,_),C),k=Math.min(Math.max(f+M.clientY-u,w),S);r={offsetX:A,offsetY:k},e.value.style.transform=`translate(${On(A)}, ${On(k)})`},T=()=>{document.removeEventListener("mousemove",x),document.removeEventListener("mouseup",T)};document.addEventListener("mousemove",x),document.addEventListener("mouseup",T)},i=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",a)},o=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",a)};yt(()=>{Ia(()=>{n.value?i():o()})}),wn(()=>{o()})};var Cle={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:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",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 xle=e=>(t,n)=>Tle(t,n,y(e)),Tle=(e,t,n)=>Sn(n,e,e).replace(/\{(\w+)\}/g,(r,a)=>{var i;return`${(i=t==null?void 0:t[a])!=null?i:`{${a}}`}`}),Mle=e=>{const t=P(()=>y(e).name),n=cn(e)?e:H(e);return{lang:t,locale:n,t:xle(e)}},j5=Symbol("localeContextKey"),Ht=e=>{const t=e||Ge(j5,H());return Mle(P(()=>t.value||Cle))},av="el",kle="is-",zl=(e,t,n,r,a)=>{let i=`${e}-${t}`;return n&&(i+=`-${n}`),r&&(i+=`__${r}`),a&&(i+=`--${a}`),i},q5=Symbol("namespaceContextKey"),vM=e=>{const t=e||(gt()?Ge(q5,H(av)):H(av));return P(()=>y(t)||av)},Me=(e,t)=>{const n=vM(t);return{namespace:n,b:(p="")=>zl(n.value,e,p,"",""),e:p=>p?zl(n.value,e,"",p,""):"",m:p=>p?zl(n.value,e,"","",p):"",be:(p,g)=>p&&g?zl(n.value,e,p,g,""):"",em:(p,g)=>p&&g?zl(n.value,e,"",p,g):"",bm:(p,g)=>p&&g?zl(n.value,e,p,"",g):"",bem:(p,g,m)=>p&&g&&m?zl(n.value,e,p,g,m):"",is:(p,...g)=>{const m=g.length>=1?g[0]:!0;return p&&m?`${kle}${p}`:""},cssVar:p=>{const g={};for(const m in p)p[m]&&(g[`--${n.value}-${m}`]=p[m]);return g},cssVarName:p=>`--${n.value}-${p}`,cssVarBlock:p=>{const g={};for(const m in p)p[m]&&(g[`--${n.value}-${e}-${m}`]=p[m]);return g},cssVarBlockName:p=>`--${n.value}-${e}-${p}`}},X5=(e,t={})=>{cn(e)||jn("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||Me("popup"),r=KB(()=>n.bm("parent","hidden"));if(!Vt||Li(document.body,r.value))return;let a=0,i=!1,o="0";const s=()=>{setTimeout(()=>{ga(document==null?void 0:document.body,r.value),i&&document&&(document.body.style.width=o)},200)};xe(e,l=>{if(!l){s();return}i=!Li(document.body,r.value),i&&(o=document.body.style.width),a=N5(n.namespace.value);const u=document.documentElement.clientHeight<document.body.scrollHeight,c=Fs(document.body,"overflowY");a>0&&(u||c==="scroll")&&i&&(document.body.style.width=`calc(100% - ${a}px)`),lo(document.body,r.value)}),AB(()=>s())},Ale=Ki({type:ue(Boolean),default:null}),Ele=Ki({type:ue(Function)}),Z5=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,r=[t],a={[e]:Ale,[n]:Ele};return{useModelToggle:({indicator:o,toggleReason:s,shouldHideWhenRouteChanges:l,shouldProceed:u,onShow:c,onHide:f})=>{const d=gt(),{emit:h}=d,v=d.props,p=P(()=>it(v[n])),g=P(()=>v[e]===null),m=x=>{o.value!==!0&&(o.value=!0,s&&(s.value=x),it(c)&&c(x))},b=x=>{o.value!==!1&&(o.value=!1,s&&(s.value=x),it(f)&&f(x))},_=x=>{if(v.disabled===!0||it(u)&&!u())return;const T=p.value&&Vt;T&&h(t,!0),(g.value||!T)&&m(x)},w=x=>{if(v.disabled===!0||!Vt)return;const T=p.value&&Vt;T&&h(t,!1),(g.value||!T)&&b(x)},C=x=>{Un(x)&&(v.disabled&&x?p.value&&h(t,!1):o.value!==x&&(x?m():b()))},S=()=>{o.value?w():_()};return xe(()=>v[e],C),l&&d.appContext.config.globalProperties.$route!==void 0&&xe(()=>({...d.proxy.$route}),()=>{l.value&&o.value&&w()}),yt(()=>{C(v[e])}),{hide:w,show:_,toggle:S,hasUpdateHandler:p}},useModelToggleProps:a,useModelToggleEmits:r}};Z5("modelValue");const J5=e=>{const t=gt();return P(()=>{var n,r;return(r=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:r[e]})};var ma="top",ai="bottom",ii="right",ya="left",pM="auto",Jp=[ma,ai,ii,ya],Qf="start",Yv="end",Ile="clippingParents",Q5="viewport",eh="popper",Dle="reference",$D=Jp.reduce(function(e,t){return e.concat([t+"-"+Qf,t+"-"+Yv])},[]),wc=[].concat(Jp,[pM]).reduce(function(e,t){return e.concat([t,t+"-"+Qf,t+"-"+Yv])},[]),Ple="beforeRead",Lle="read",Rle="afterRead",Ole="beforeMain",$le="main",Nle="afterMain",Ble="beforeWrite",Vle="write",zle="afterWrite",Fle=[Ple,Lle,Rle,Ole,$le,Nle,Ble,Vle,zle];function _o(e){return e?(e.nodeName||"").toLowerCase():null}function Ui(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ed(e){var t=Ui(e).Element;return e instanceof t||e instanceof Element}function Qa(e){var t=Ui(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function gM(e){if(typeof ShadowRoot>"u")return!1;var t=Ui(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Hle(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},a=t.attributes[n]||{},i=t.elements[n];!Qa(i)||!_o(i)||(Object.assign(i.style,r),Object.keys(a).forEach(function(o){var s=a[o];s===!1?i.removeAttribute(o):i.setAttribute(o,s===!0?"":s)}))})}function Gle(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var a=t.elements[r],i=t.attributes[r]||{},o=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=o.reduce(function(l,u){return l[u]="",l},{});!Qa(a)||!_o(a)||(Object.assign(a.style,s),Object.keys(i).forEach(function(l){a.removeAttribute(l)}))})}}var ez={name:"applyStyles",enabled:!0,phase:"write",fn:Hle,effect:Gle,requires:["computeStyles"]};function vo(e){return e.split("-")[0]}var Yu=Math.max,c0=Math.min,td=Math.round;function nd(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,a=1;if(Qa(e)&&t){var i=e.offsetHeight,o=e.offsetWidth;o>0&&(r=td(n.width)/o||1),i>0&&(a=td(n.height)/i||1)}return{width:n.width/r,height:n.height/a,top:n.top/a,right:n.right/r,bottom:n.bottom/a,left:n.left/r,x:n.left/r,y:n.top/a}}function mM(e){var t=nd(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function tz(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&gM(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function es(e){return Ui(e).getComputedStyle(e)}function Wle(e){return["table","td","th"].indexOf(_o(e))>=0}function Al(e){return((ed(e)?e.ownerDocument:e.document)||window.document).documentElement}function Zb(e){return _o(e)==="html"?e:e.assignedSlot||e.parentNode||(gM(e)?e.host:null)||Al(e)}function ND(e){return!Qa(e)||es(e).position==="fixed"?null:e.offsetParent}function Kle(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Qa(e)){var r=es(e);if(r.position==="fixed")return null}var a=Zb(e);for(gM(a)&&(a=a.host);Qa(a)&&["html","body"].indexOf(_o(a))<0;){var i=es(a);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return a;a=a.parentNode}return null}function Qp(e){for(var t=Ui(e),n=ND(e);n&&Wle(n)&&es(n).position==="static";)n=ND(n);return n&&(_o(n)==="html"||_o(n)==="body"&&es(n).position==="static")?t:n||Kle(e)||t}function yM(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function iv(e,t,n){return Yu(e,c0(t,n))}function Ule(e,t,n){var r=iv(e,t,n);return r>n?n:r}function nz(){return{top:0,right:0,bottom:0,left:0}}function rz(e){return Object.assign({},nz(),e)}function az(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Yle=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,rz(typeof e!="number"?e:az(e,Jp))};function jle(e){var t,n=e.state,r=e.name,a=e.options,i=n.elements.arrow,o=n.modifiersData.popperOffsets,s=vo(n.placement),l=yM(s),u=[ya,ii].indexOf(s)>=0,c=u?"height":"width";if(!(!i||!o)){var f=Yle(a.padding,n),d=mM(i),h=l==="y"?ma:ya,v=l==="y"?ai:ii,p=n.rects.reference[c]+n.rects.reference[l]-o[l]-n.rects.popper[c],g=o[l]-n.rects.reference[l],m=Qp(i),b=m?l==="y"?m.clientHeight||0:m.clientWidth||0:0,_=p/2-g/2,w=f[h],C=b-d[c]-f[v],S=b/2-d[c]/2+_,x=iv(w,S,C),T=l;n.modifiersData[r]=(t={},t[T]=x,t.centerOffset=x-S,t)}}function qle(e){var t=e.state,n=e.options,r=n.element,a=r===void 0?"[data-popper-arrow]":r;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||!tz(t.elements.popper,a)||(t.elements.arrow=a))}var Xle={name:"arrow",enabled:!0,phase:"main",fn:jle,effect:qle,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function rd(e){return e.split("-")[1]}var Zle={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Jle(e){var t=e.x,n=e.y,r=window,a=r.devicePixelRatio||1;return{x:td(t*a)/a||0,y:td(n*a)/a||0}}function BD(e){var t,n=e.popper,r=e.popperRect,a=e.placement,i=e.variation,o=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,f=e.isFixed,d=o.x,h=d===void 0?0:d,v=o.y,p=v===void 0?0:v,g=typeof c=="function"?c({x:h,y:p}):{x:h,y:p};h=g.x,p=g.y;var m=o.hasOwnProperty("x"),b=o.hasOwnProperty("y"),_=ya,w=ma,C=window;if(u){var S=Qp(n),x="clientHeight",T="clientWidth";if(S===Ui(n)&&(S=Al(n),es(S).position!=="static"&&s==="absolute"&&(x="scrollHeight",T="scrollWidth")),S=S,a===ma||(a===ya||a===ii)&&i===Yv){w=ai;var M=f&&S===C&&C.visualViewport?C.visualViewport.height:S[x];p-=M-r.height,p*=l?1:-1}if(a===ya||(a===ma||a===ai)&&i===Yv){_=ii;var A=f&&S===C&&C.visualViewport?C.visualViewport.width:S[T];h-=A-r.width,h*=l?1:-1}}var k=Object.assign({position:s},u&&Zle),E=c===!0?Jle({x:h,y:p}):{x:h,y:p};if(h=E.x,p=E.y,l){var D;return Object.assign({},k,(D={},D[w]=b?"0":"",D[_]=m?"0":"",D.transform=(C.devicePixelRatio||1)<=1?"translate("+h+"px, "+p+"px)":"translate3d("+h+"px, "+p+"px, 0)",D))}return Object.assign({},k,(t={},t[w]=b?p+"px":"",t[_]=m?h+"px":"",t.transform="",t))}function Qle(e){var t=e.state,n=e.options,r=n.gpuAcceleration,a=r===void 0?!0:r,i=n.adaptive,o=i===void 0?!0:i,s=n.roundOffsets,l=s===void 0?!0:s,u={placement:vo(t.placement),variation:rd(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,BD(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,BD(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 iz={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Qle,data:{}},Vg={passive:!0};function eue(e){var t=e.state,n=e.instance,r=e.options,a=r.scroll,i=a===void 0?!0:a,o=r.resize,s=o===void 0?!0:o,l=Ui(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,Vg)}),s&&l.addEventListener("resize",n.update,Vg),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,Vg)}),s&&l.removeEventListener("resize",n.update,Vg)}}var oz={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:eue,data:{}},tue={left:"right",right:"left",bottom:"top",top:"bottom"};function cy(e){return e.replace(/left|right|bottom|top/g,function(t){return tue[t]})}var nue={start:"end",end:"start"};function VD(e){return e.replace(/start|end/g,function(t){return nue[t]})}function bM(e){var t=Ui(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function _M(e){return nd(Al(e)).left+bM(e).scrollLeft}function rue(e){var t=Ui(e),n=Al(e),r=t.visualViewport,a=n.clientWidth,i=n.clientHeight,o=0,s=0;return r&&(a=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=r.offsetLeft,s=r.offsetTop)),{width:a,height:i,x:o+_M(e),y:s}}function aue(e){var t,n=Al(e),r=bM(e),a=(t=e.ownerDocument)==null?void 0:t.body,i=Yu(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),o=Yu(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),s=-r.scrollLeft+_M(e),l=-r.scrollTop;return es(a||n).direction==="rtl"&&(s+=Yu(n.clientWidth,a?a.clientWidth:0)-i),{width:i,height:o,x:s,y:l}}function wM(e){var t=es(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function sz(e){return["html","body","#document"].indexOf(_o(e))>=0?e.ownerDocument.body:Qa(e)&&wM(e)?e:sz(Zb(e))}function ov(e,t){var n;t===void 0&&(t=[]);var r=sz(e),a=r===((n=e.ownerDocument)==null?void 0:n.body),i=Ui(r),o=a?[i].concat(i.visualViewport||[],wM(r)?r:[]):r,s=t.concat(o);return a?s:s.concat(ov(Zb(o)))}function AC(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function iue(e){var t=nd(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 zD(e,t){return t===Q5?AC(rue(e)):ed(t)?iue(t):AC(aue(Al(e)))}function oue(e){var t=ov(Zb(e)),n=["absolute","fixed"].indexOf(es(e).position)>=0,r=n&&Qa(e)?Qp(e):e;return ed(r)?t.filter(function(a){return ed(a)&&tz(a,r)&&_o(a)!=="body"}):[]}function sue(e,t,n){var r=t==="clippingParents"?oue(e):[].concat(t),a=[].concat(r,[n]),i=a[0],o=a.reduce(function(s,l){var u=zD(e,l);return s.top=Yu(u.top,s.top),s.right=c0(u.right,s.right),s.bottom=c0(u.bottom,s.bottom),s.left=Yu(u.left,s.left),s},zD(e,i));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function lz(e){var t=e.reference,n=e.element,r=e.placement,a=r?vo(r):null,i=r?rd(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(a){case ma:l={x:o,y:t.y-n.height};break;case ai:l={x:o,y:t.y+t.height};break;case ii:l={x:t.x+t.width,y:s};break;case ya:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=a?yM(a):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case Qf:l[u]=l[u]-(t[c]/2-n[c]/2);break;case Yv:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function jv(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=r===void 0?e.placement:r,i=n.boundary,o=i===void 0?Ile:i,s=n.rootBoundary,l=s===void 0?Q5:s,u=n.elementContext,c=u===void 0?eh:u,f=n.altBoundary,d=f===void 0?!1:f,h=n.padding,v=h===void 0?0:h,p=rz(typeof v!="number"?v:az(v,Jp)),g=c===eh?Dle:eh,m=e.rects.popper,b=e.elements[d?g:c],_=sue(ed(b)?b:b.contextElement||Al(e.elements.popper),o,l),w=nd(e.elements.reference),C=lz({reference:w,element:m,strategy:"absolute",placement:a}),S=AC(Object.assign({},m,C)),x=c===eh?S:w,T={top:_.top-x.top+p.top,bottom:x.bottom-_.bottom+p.bottom,left:_.left-x.left+p.left,right:x.right-_.right+p.right},M=e.modifiersData.offset;if(c===eh&&M){var A=M[a];Object.keys(T).forEach(function(k){var E=[ii,ai].indexOf(k)>=0?1:-1,D=[ma,ai].indexOf(k)>=0?"y":"x";T[k]+=A[D]*E})}return T}function lue(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=n.boundary,i=n.rootBoundary,o=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?wc:l,c=rd(r),f=c?s?$D:$D.filter(function(v){return rd(v)===c}):Jp,d=f.filter(function(v){return u.indexOf(v)>=0});d.length===0&&(d=f);var h=d.reduce(function(v,p){return v[p]=jv(e,{placement:p,boundary:a,rootBoundary:i,padding:o})[vo(p)],v},{});return Object.keys(h).sort(function(v,p){return h[v]-h[p]})}function uue(e){if(vo(e)===pM)return[];var t=cy(e);return[VD(e),t,VD(t)]}function cue(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var a=n.mainAxis,i=a===void 0?!0:a,o=n.altAxis,s=o===void 0?!0:o,l=n.fallbackPlacements,u=n.padding,c=n.boundary,f=n.rootBoundary,d=n.altBoundary,h=n.flipVariations,v=h===void 0?!0:h,p=n.allowedAutoPlacements,g=t.options.placement,m=vo(g),b=m===g,_=l||(b||!v?[cy(g)]:uue(g)),w=[g].concat(_).reduce(function(ae,J){return ae.concat(vo(J)===pM?lue(t,{placement:J,boundary:c,rootBoundary:f,padding:u,flipVariations:v,allowedAutoPlacements:p}):J)},[]),C=t.rects.reference,S=t.rects.popper,x=new Map,T=!0,M=w[0],A=0;A<w.length;A++){var k=w[A],E=vo(k),D=rd(k)===Qf,L=[ma,ai].indexOf(E)>=0,B=L?"width":"height",N=jv(t,{placement:k,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),O=L?D?ii:ya:D?ai:ma;C[B]>S[B]&&(O=cy(O));var $=cy(O),I=[];if(i&&I.push(N[E]<=0),s&&I.push(N[O]<=0,N[$]<=0),I.every(function(ae){return ae})){M=k,T=!1;break}x.set(k,I)}if(T)for(var z=v?3:1,G=function(ae){var J=w.find(function(Q){var ee=x.get(Q);if(ee)return ee.slice(0,ae).every(function(j){return j})});if(J)return M=J,"break"},U=z;U>0;U--){var Z=G(U);if(Z==="break")break}t.placement!==M&&(t.modifiersData[r]._skip=!0,t.placement=M,t.reset=!0)}}var fue={name:"flip",enabled:!0,phase:"main",fn:cue,requiresIfExists:["offset"],data:{_skip:!1}};function FD(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function HD(e){return[ma,ii,ai,ya].some(function(t){return e[t]>=0})}function due(e){var t=e.state,n=e.name,r=t.rects.reference,a=t.rects.popper,i=t.modifiersData.preventOverflow,o=jv(t,{elementContext:"reference"}),s=jv(t,{altBoundary:!0}),l=FD(o,r),u=FD(s,a,i),c=HD(l),f=HD(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}var hue={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:due};function vue(e,t,n){var r=vo(e),a=[ya,ma].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=i[0],s=i[1];return o=o||0,s=(s||0)*a,[ya,ii].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function pue(e){var t=e.state,n=e.options,r=e.name,a=n.offset,i=a===void 0?[0,0]:a,o=wc.reduce(function(c,f){return c[f]=vue(f,t.rects,i),c},{}),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[r]=o}var gue={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:pue};function mue(e){var t=e.state,n=e.name;t.modifiersData[n]=lz({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var uz={name:"popperOffsets",enabled:!0,phase:"read",fn:mue,data:{}};function yue(e){return e==="x"?"y":"x"}function bue(e){var t=e.state,n=e.options,r=e.name,a=n.mainAxis,i=a===void 0?!0:a,o=n.altAxis,s=o===void 0?!1:o,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,f=n.padding,d=n.tether,h=d===void 0?!0:d,v=n.tetherOffset,p=v===void 0?0:v,g=jv(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),m=vo(t.placement),b=rd(t.placement),_=!b,w=yM(m),C=yue(w),S=t.modifiersData.popperOffsets,x=t.rects.reference,T=t.rects.popper,M=typeof p=="function"?p(Object.assign({},t.rects,{placement:t.placement})):p,A=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,E={x:0,y:0};if(S){if(i){var D,L=w==="y"?ma:ya,B=w==="y"?ai:ii,N=w==="y"?"height":"width",O=S[w],$=O+g[L],I=O-g[B],z=h?-T[N]/2:0,G=b===Qf?x[N]:T[N],U=b===Qf?-T[N]:-x[N],Z=t.elements.arrow,ae=h&&Z?mM(Z):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:nz(),Q=J[L],ee=J[B],j=iv(0,x[N],ae[N]),de=_?x[N]/2-z-j-Q-A.mainAxis:G-j-Q-A.mainAxis,ve=_?-x[N]/2+z+j+ee+A.mainAxis:U+j+ee+A.mainAxis,ie=t.elements.arrow&&Qp(t.elements.arrow),W=ie?w==="y"?ie.clientTop||0:ie.clientLeft||0:0,X=(D=k==null?void 0:k[w])!=null?D:0,oe=O+de-X-W,pe=O+ve-X,Se=iv(h?c0($,oe):$,O,h?Yu(I,pe):I);S[w]=Se,E[w]=Se-O}if(s){var me,Ee=w==="x"?ma:ya,Ce=w==="x"?ai:ii,we=S[C],Te=C==="y"?"height":"width",$e=we+g[Ee],Be=we-g[Ce],We=[ma,ya].indexOf(m)!==-1,Ae=(me=k==null?void 0:k[C])!=null?me:0,Fe=We?$e:we-x[Te]-T[Te]-Ae+A.altAxis,rt=We?we+x[Te]+T[Te]-Ae-A.altAxis:Be,vt=h&&We?Ule(Fe,we,rt):iv(h?Fe:$e,we,h?rt:Be);S[C]=vt,E[C]=vt-we}t.modifiersData[r]=E}}var _ue={name:"preventOverflow",enabled:!0,phase:"main",fn:bue,requiresIfExists:["offset"]};function wue(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Sue(e){return e===Ui(e)||!Qa(e)?bM(e):wue(e)}function Cue(e){var t=e.getBoundingClientRect(),n=td(t.width)/e.offsetWidth||1,r=td(t.height)/e.offsetHeight||1;return n!==1||r!==1}function xue(e,t,n){n===void 0&&(n=!1);var r=Qa(t),a=Qa(t)&&Cue(t),i=Al(t),o=nd(e,a),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((_o(t)!=="body"||wM(i))&&(s=Sue(t)),Qa(t)?(l=nd(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=_M(i))),{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function Tue(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function a(i){n.add(i.name);var o=[].concat(i.requires||[],i.requiresIfExists||[]);o.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&a(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||a(i)}),r}function Mue(e){var t=Tue(e);return Fle.reduce(function(n,r){return n.concat(t.filter(function(a){return a.phase===r}))},[])}function kue(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Aue(e){var t=e.reduce(function(n,r){var a=n[r.name];return n[r.name]=a?Object.assign({},a,r,{options:Object.assign({},a.options,r.options),data:Object.assign({},a.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var GD={placement:"bottom",modifiers:[],strategy:"absolute"};function WD(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function SM(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,a=t.defaultOptions,i=a===void 0?GD:a;return function(o,s,l){l===void 0&&(l=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},GD,i),modifiersData:{},elements:{reference:o,popper:s},attributes:{},styles:{}},c=[],f=!1,d={state:u,setOptions:function(p){var g=typeof p=="function"?p(u.options):p;v(),u.options=Object.assign({},i,u.options,g),u.scrollParents={reference:ed(o)?ov(o):o.contextElement?ov(o.contextElement):[],popper:ov(s)};var m=Mue(Aue([].concat(r,u.options.modifiers)));return u.orderedModifiers=m.filter(function(b){return b.enabled}),h(),d.update()},forceUpdate:function(){if(!f){var p=u.elements,g=p.reference,m=p.popper;if(WD(g,m)){u.rects={reference:xue(g,Qp(m),u.options.strategy==="fixed"),popper:mM(m)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(T){return u.modifiersData[T.name]=Object.assign({},T.data)});for(var b=0;b<u.orderedModifiers.length;b++){if(u.reset===!0){u.reset=!1,b=-1;continue}var _=u.orderedModifiers[b],w=_.fn,C=_.options,S=C===void 0?{}:C,x=_.name;typeof w=="function"&&(u=w({state:u,options:S,name:x,instance:d})||u)}}}},update:kue(function(){return new Promise(function(p){d.forceUpdate(),p(u)})}),destroy:function(){v(),f=!0}};if(!WD(o,s))return d;d.setOptions(l).then(function(p){!f&&l.onFirstUpdate&&l.onFirstUpdate(p)});function h(){u.orderedModifiers.forEach(function(p){var g=p.name,m=p.options,b=m===void 0?{}:m,_=p.effect;if(typeof _=="function"){var w=_({state:u,name:g,instance:d,options:b}),C=function(){};c.push(w||C)}})}function v(){c.forEach(function(p){return p()}),c=[]}return d}}SM();var Eue=[oz,uz,iz,ez];SM({defaultModifiers:Eue});var Iue=[oz,uz,iz,ez,gue,fue,_ue,Xle,hue],cz=SM({defaultModifiers:Iue});const Due=(e,t,n={})=>{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:l})=>{const u=Pue(l);Object.assign(o.value,u)},requires:["computeStyles"]},a=P(()=>{const{onFirstUpdate:l,placement:u,strategy:c,modifiers:f}=y(n);return{onFirstUpdate:l,placement:u||"bottom",strategy:c||"absolute",modifiers:[...f||[],r,{name:"applyStyles",enabled:!1}]}}),i=un(),o=H({styles:{popper:{position:y(a).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=()=>{i.value&&(i.value.destroy(),i.value=void 0)};return xe(a,l=>{const u=y(i);u&&u.setOptions(l)},{deep:!0}),xe([e,t],([l,u])=>{s(),!(!l||!u)&&(i.value=cz(l,u,y(a)))}),wn(()=>{s()}),{state:P(()=>{var l;return{...((l=y(i))==null?void 0:l.state)||{}}}),styles:P(()=>y(o).styles),attributes:P(()=>y(o).attributes),update:()=>{var l;return(l=y(i))==null?void 0:l.update()},forceUpdate:()=>{var l;return(l=y(i))==null?void 0:l.forceUpdate()},instanceRef:P(()=>y(i))}};function Pue(e){const t=Object.keys(e.elements),n=u0(t.map(a=>[a,e.styles[a]||{}])),r=u0(t.map(a=>[a,e.attributes[a]]));return{styles:n,attributes:r}}const CM=e=>{if(!e)return{onClick:rn,onMousedown:rn,onMouseup:rn};let t=!1,n=!1;return{onClick:o=>{t&&n&&e(o),t=n=!1},onMousedown:o=>{t=o.target===o.currentTarget},onMouseup:o=>{n=o.target===o.currentTarget}}},Lue=(e,t=0)=>{if(t===0)return e;const n=H(!1);let r=0;const a=()=>{r&&clearTimeout(r),r=window.setTimeout(()=>{n.value=e.value},t)};return yt(a),xe(()=>e.value,i=>{i?a():n.value=i}),n};function KD(){let e;const t=(r,a)=>{n(),e=window.setTimeout(r,a)},n=()=>window.clearTimeout(e);return $b(()=>n()),{registerTimeout:t,cancelTimeout:n}}const UD={prefix:Math.floor(Math.random()*1e4),current:0},Rue=Symbol("elIdInjection"),fz=()=>gt()?Ge(Rue,UD):UD,oi=e=>{const t=fz(),n=vM();return P(()=>y(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let of=[];const YD=e=>{const t=e;t.key===Xe.esc&&of.forEach(n=>n(t))},Oue=e=>{yt(()=>{of.length===0&&document.addEventListener("keydown",YD),Vt&&of.push(e)}),wn(()=>{of=of.filter(t=>t!==e),of.length===0&&Vt&&document.removeEventListener("keydown",YD)})};let jD;const dz=()=>{const e=vM(),t=fz(),n=P(()=>`${e.value}-popper-container-${t.prefix}`),r=P(()=>`#${n.value}`);return{id:n,selector:r}},$ue=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},Nue=()=>{const{id:e,selector:t}=dz();return Db(()=>{Vt&&!jD&&!document.body.querySelector(t.value)&&(jD=$ue(e.value))}),{id:e,selector:t}},Bue=Le({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),hz=({showAfter:e,hideAfter:t,autoClose:n,open:r,close:a})=>{const{registerTimeout:i}=KD(),{registerTimeout:o,cancelTimeout:s}=KD();return{onOpen:c=>{i(()=>{r(c);const f=y(n);at(f)&&f>0&&o(()=>{a(c)},f)},y(e))},onClose:c=>{s(),i(()=>{a(c)},y(t))}}},vz=Symbol("elForwardRef"),Vue=e=>{Et(vz,{setForwardRef:n=>{e.value=n}})},zue=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),qD=H(0),pz=2e3,gz=Symbol("zIndexContextKey"),Md=e=>{const t=e||(gt()?Ge(gz,void 0):void 0),n=P(()=>{const i=y(t);return at(i)?i:pz}),r=P(()=>n.value+qD.value);return{initialZIndex:n,currentZIndex:r,nextZIndex:()=>(qD.value++,r.value)}},qv=Math.min,Ef=Math.max,f0=Math.round,dl=e=>({x:e,y:e});function Fue(e,t,n){return Ef(e,qv(t,n))}function mz(e,t){return typeof e=="function"?e(t):e}function xM(e){return e.split("-")[0]}function TM(e){return e.split("-")[1]}function Hue(e){return e==="x"?"y":"x"}function yz(e){return e==="y"?"height":"width"}function MM(e){return["top","bottom"].includes(xM(e))?"y":"x"}function bz(e){return Hue(MM(e))}function Gue(e){return{top:0,right:0,bottom:0,left:0,...e}}function Wue(e){return typeof e!="number"?Gue(e):{top:e,right:e,bottom:e,left:e}}function _z(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function XD(e,t,n){let{reference:r,floating:a}=e;const i=MM(t),o=bz(t),s=yz(o),l=xM(t),u=i==="y",c=r.x+r.width/2-a.width/2,f=r.y+r.height/2-a.height/2,d=r[s]/2-a[s]/2;let h;switch(l){case"top":h={x:c,y:r.y-a.height};break;case"bottom":h={x:c,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:f};break;case"left":h={x:r.x-a.width,y:f};break;default:h={x:r.x,y:r.y}}switch(TM(t)){case"start":h[o]-=d*(n&&u?-1:1);break;case"end":h[o]+=d*(n&&u?-1:1);break}return h}const Kue=async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:i=[],platform:o}=n,s=i.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:a}),{x:c,y:f}=XD(u,r,l),d=r,h={},v=0;for(let p=0;p<s.length;p++){const{name:g,fn:m}=s[p],{x:b,y:_,data:w,reset:C}=await m({x:c,y:f,initialPlacement:r,placement:d,strategy:a,middlewareData:h,rects:u,platform:o,elements:{reference:e,floating:t}});if(c=b??c,f=_??f,h={...h,[g]:{...h[g],...w}},C&&v<=50){v++,typeof C=="object"&&(C.placement&&(d=C.placement),C.rects&&(u=C.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:a}):C.rects),{x:c,y:f}=XD(u,d,l)),p=-1;continue}}return{x:c,y:f,placement:d,strategy:a,middlewareData:h}},Uue=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:a,rects:i,platform:o,elements:s,middlewareData:l}=t,{element:u,padding:c=0}=mz(e,t)||{};if(u==null)return{};const f=Wue(c),d={x:n,y:r},h=bz(a),v=yz(h),p=await o.getDimensions(u),g=h==="y",m=g?"top":"left",b=g?"bottom":"right",_=g?"clientHeight":"clientWidth",w=i.reference[v]+i.reference[h]-d[h]-i.floating[v],C=d[h]-i.reference[h],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let x=S?S[_]:0;(!x||!await(o.isElement==null?void 0:o.isElement(S)))&&(x=s.floating[_]||i.floating[v]);const T=w/2-C/2,M=x/2-p[v]/2-1,A=qv(f[m],M),k=qv(f[b],M),E=A,D=x-p[v]-k,L=x/2-p[v]/2+T,B=Fue(E,L,D),N=!l.arrow&&TM(a)!=null&&L!=B&&i.reference[v]/2-(L<E?A:k)-p[v]/2<0,O=N?L<E?L-E:L-D:0;return{[h]:d[h]+O,data:{[h]:B,centerOffset:L-B-O,...N&&{alignmentOffset:O}},reset:N}}});async function Yue(e,t){const{placement:n,platform:r,elements:a}=e,i=await(r.isRTL==null?void 0:r.isRTL(a.floating)),o=xM(n),s=TM(n),l=MM(n)==="y",u=["left","top"].includes(o)?-1:1,c=i&&l?-1:1,f=mz(t,e);let{mainAxis:d,crossAxis:h,alignmentAxis:v}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return s&&typeof v=="number"&&(h=s==="end"?v*-1:v),l?{x:h*c,y:d*u}:{x:d*u,y:h*c}}const jue=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,a=await Yue(t,e);return{x:n+a.x,y:r+a.y,data:a}}}};function hl(e){return wz(e)?(e.nodeName||"").toLowerCase():"#document"}function Da(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function El(e){var t;return(t=(wz(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function wz(e){return e instanceof Node||e instanceof Da(e).Node}function ts(e){return e instanceof Element||e instanceof Da(e).Element}function wo(e){return e instanceof HTMLElement||e instanceof Da(e).HTMLElement}function ZD(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Da(e).ShadowRoot}function eg(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=si(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(a)}function que(e){return["table","td","th"].includes(hl(e))}function kM(e){const t=AM(),n=si(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Xue(e){let t=ad(e);for(;wo(t)&&!Jb(t);){if(kM(t))return t;t=ad(t)}return null}function AM(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Jb(e){return["html","body","#document"].includes(hl(e))}function si(e){return Da(e).getComputedStyle(e)}function Qb(e){return ts(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ad(e){if(hl(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ZD(e)&&e.host||El(e);return ZD(t)?t.host:t}function Sz(e){const t=ad(e);return Jb(t)?e.ownerDocument?e.ownerDocument.body:e.body:wo(t)&&eg(t)?t:Sz(t)}function EC(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const a=Sz(e),i=a===((r=e.ownerDocument)==null?void 0:r.body),o=Da(a);return i?t.concat(o,o.visualViewport||[],eg(a)?a:[],o.frameElement&&n?EC(o.frameElement):[]):t.concat(a,EC(a,[],n))}function Cz(e){const t=si(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=wo(e),i=a?e.offsetWidth:n,o=a?e.offsetHeight:r,s=f0(n)!==i||f0(r)!==o;return s&&(n=i,r=o),{width:n,height:r,$:s}}function xz(e){return ts(e)?e:e.contextElement}function If(e){const t=xz(e);if(!wo(t))return dl(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:i}=Cz(t);let o=(i?f0(n.width):n.width)/r,s=(i?f0(n.height):n.height)/a;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const Zue=dl(0);function Tz(e){const t=Da(e);return!AM()||!t.visualViewport?Zue:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Jue(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Da(e)?!1:t}function Xv(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),i=xz(e);let o=dl(1);t&&(r?ts(r)&&(o=If(r)):o=If(e));const s=Jue(i,n,r)?Tz(i):dl(0);let l=(a.left+s.x)/o.x,u=(a.top+s.y)/o.y,c=a.width/o.x,f=a.height/o.y;if(i){const d=Da(i),h=r&&ts(r)?Da(r):r;let v=d.frameElement;for(;v&&r&&h!==d;){const p=If(v),g=v.getBoundingClientRect(),m=si(v),b=g.left+(v.clientLeft+parseFloat(m.paddingLeft))*p.x,_=g.top+(v.clientTop+parseFloat(m.paddingTop))*p.y;l*=p.x,u*=p.y,c*=p.x,f*=p.y,l+=b,u+=_,v=Da(v).frameElement}}return _z({width:c,height:f,x:l,y:u})}function Que(e){let{rect:t,offsetParent:n,strategy:r}=e;const a=wo(n),i=El(n);if(n===i)return t;let o={scrollLeft:0,scrollTop:0},s=dl(1);const l=dl(0);if((a||!a&&r!=="fixed")&&((hl(n)!=="body"||eg(i))&&(o=Qb(n)),wo(n))){const u=Xv(n);s=If(n),l.x=u.x+n.clientLeft,l.y=u.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-o.scrollLeft*s.x+l.x,y:t.y*s.y-o.scrollTop*s.y+l.y}}function ece(e){return Array.from(e.getClientRects())}function Mz(e){return Xv(El(e)).left+Qb(e).scrollLeft}function tce(e){const t=El(e),n=Qb(e),r=e.ownerDocument.body,a=Ef(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Ef(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+Mz(e);const s=-n.scrollTop;return si(r).direction==="rtl"&&(o+=Ef(t.clientWidth,r.clientWidth)-a),{width:a,height:i,x:o,y:s}}function nce(e,t){const n=Da(e),r=El(e),a=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,s=0,l=0;if(a){i=a.width,o=a.height;const u=AM();(!u||u&&t==="fixed")&&(s=a.offsetLeft,l=a.offsetTop)}return{width:i,height:o,x:s,y:l}}function rce(e,t){const n=Xv(e,!0,t==="fixed"),r=n.top+e.clientTop,a=n.left+e.clientLeft,i=wo(e)?If(e):dl(1),o=e.clientWidth*i.x,s=e.clientHeight*i.y,l=a*i.x,u=r*i.y;return{width:o,height:s,x:l,y:u}}function JD(e,t,n){let r;if(t==="viewport")r=nce(e,n);else if(t==="document")r=tce(El(e));else if(ts(t))r=rce(t,n);else{const a=Tz(e);r={...t,x:t.x-a.x,y:t.y-a.y}}return _z(r)}function kz(e,t){const n=ad(e);return n===t||!ts(n)||Jb(n)?!1:si(n).position==="fixed"||kz(n,t)}function ace(e,t){const n=t.get(e);if(n)return n;let r=EC(e,[],!1).filter(s=>ts(s)&&hl(s)!=="body"),a=null;const i=si(e).position==="fixed";let o=i?ad(e):e;for(;ts(o)&&!Jb(o);){const s=si(o),l=kM(o);!l&&s.position==="fixed"&&(a=null),(i?!l&&!a:!l&&s.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||eg(o)&&!l&&kz(e,o))?r=r.filter(c=>c!==o):a=s,o=ad(o)}return t.set(e,r),r}function ice(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const o=[...n==="clippingAncestors"?ace(t,this._c):[].concat(n),r],s=o[0],l=o.reduce((u,c)=>{const f=JD(t,c,a);return u.top=Ef(f.top,u.top),u.right=qv(f.right,u.right),u.bottom=qv(f.bottom,u.bottom),u.left=Ef(f.left,u.left),u},JD(t,s,a));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function oce(e){return Cz(e)}function sce(e,t,n){const r=wo(t),a=El(t),i=n==="fixed",o=Xv(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=dl(0);if(r||!r&&!i)if((hl(t)!=="body"||eg(a))&&(s=Qb(t)),r){const u=Xv(t,!0,i,t);l.x=u.x+t.clientLeft,l.y=u.y+t.clientTop}else a&&(l.x=Mz(a));return{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function QD(e,t){return!wo(e)||si(e).position==="fixed"?null:t?t(e):e.offsetParent}function Az(e,t){const n=Da(e);if(!wo(e))return n;let r=QD(e,t);for(;r&&que(r)&&si(r).position==="static";)r=QD(r,t);return r&&(hl(r)==="html"||hl(r)==="body"&&si(r).position==="static"&&!kM(r))?n:r||Xue(e)||n}const lce=async function(e){let{reference:t,floating:n,strategy:r}=e;const a=this.getOffsetParent||Az,i=this.getDimensions;return{reference:sce(t,await a(n),r),floating:{x:0,y:0,...await i(n)}}};function uce(e){return si(e).direction==="rtl"}const cce={convertOffsetParentRelativeRectToViewportRelativeRect:Que,getDocumentElement:El,getClippingRect:ice,getOffsetParent:Az,getElementRects:lce,getClientRects:ece,getDimensions:oce,getScale:If,isElement:ts,isRTL:uce},fce=(e,t,n)=>{const r=new Map,a={platform:cce,...n},i={...a.platform,_c:r};return Kue(e,t,{...a,platform:i})};Le({});const dce=e=>{if(!Vt)return;if(!e)return e;const t=ka(e);return t||(cn(e)?t:e)},hce=({middleware:e,placement:t,strategy:n})=>{const r=H(),a=H(),i=H(),o=H(),s=H({}),l={x:i,y:o,placement:t,strategy:n,middlewareData:s},u=async()=>{if(!Vt)return;const c=dce(r),f=ka(a);if(!c||!f)return;const d=await fce(c,f,{placement:y(t),strategy:y(n),middleware:y(e)});Uv(l).forEach(h=>{l[h].value=d[h]})};return yt(()=>{Ia(()=>{u()})}),{...l,update:u,referenceRef:r,contentRef:a}},vce=({arrowRef:e,padding:t})=>({name:"arrow",options:{element:e,padding:t},fn(n){const r=y(e);return r?Uue({element:r,padding:t}).fn(n):{}}});function pce(e){const t=H();function n(){if(e.value==null)return;const{selectionStart:a,selectionEnd:i,value:o}=e.value;if(a==null||i==null)return;const s=o.slice(0,Math.max(0,a)),l=o.slice(Math.max(0,i));t.value={selectionStart:a,selectionEnd:i,value:o,beforeTxt:s,afterTxt:l}}function r(){if(e.value==null||t.value==null)return;const{value:a}=e.value,{beforeTxt:i,afterTxt:o,selectionStart:s}=t.value;if(i==null||o==null||s==null)return;let l=a.length;if(a.endsWith(o))l=a.length-o.length;else if(a.startsWith(i))l=i.length;else{const u=i[s-1],c=a.indexOf(u,s-1);c!==-1&&(l=c+1)}e.value.setSelectionRange(l,l)}return[n,r]}const gce=(e,t,n)=>Af(e.subTree).filter(i=>{var o;return Tn(i)&&((o=i.type)==null?void 0:o.name)===t&&!!i.component}).map(i=>i.component.uid).map(i=>n[i]).filter(i=>!!i),EM=(e,t)=>{const n={},r=un([]);return{children:r,addChild:o=>{n[o.uid]=o,r.value=gce(e,t,n)},removeChild:o=>{delete n[o],r.value=r.value.filter(s=>s.uid!==o)}}},Sr=Ki({type:String,values:Mo,required:!1}),Ez=Symbol("size"),mce=()=>{const e=Ge(Ez,{});return P(()=>y(e.size)||"")};function yce(e,{afterFocus:t,afterBlur:n}={}){const r=gt(),{emit:a}=r,i=un(),o=H(!1),s=c=>{o.value||(o.value=!0,a("focus",c),t==null||t())},l=c=>{var f;c.relatedTarget&&((f=i.value)!=null&&f.contains(c.relatedTarget))||(o.value=!1,a("blur",c),n==null||n())},u=()=>{var c;(c=e.value)==null||c.focus()};return xe(i,c=>{c&&c.setAttribute("tabindex","-1")}),bn(i,"click",u),{wrapperRef:i,isFocused:o,handleFocus:s,handleBlur:l}}const Iz=Symbol(),d0=H();function e1(e,t=void 0){const n=gt()?Ge(Iz,d0):d0;return e?P(()=>{var r,a;return(a=(r=n.value)==null?void 0:r[e])!=null?a:t}):n}function t1(e,t){const n=e1(),r=Me(e,P(()=>{var s;return((s=n.value)==null?void 0:s.namespace)||av})),a=Ht(P(()=>{var s;return(s=n.value)==null?void 0:s.locale})),i=Md(P(()=>{var s;return((s=n.value)==null?void 0:s.zIndex)||pz})),o=P(()=>{var s;return y(t)||((s=n.value)==null?void 0:s.size)||""});return IM(P(()=>y(n)||{})),{ns:r,locale:a,zIndex:i,size:o}}const IM=(e,t,n=!1)=>{var r;const a=!!gt(),i=a?e1():void 0,o=(r=t==null?void 0:t.provide)!=null?r:a?Et:void 0;if(!o)return;const s=P(()=>{const l=y(e);return i!=null&&i.value?bce(i.value,l):l});return o(Iz,s),o(j5,P(()=>s.value.locale)),o(q5,P(()=>s.value.namespace)),o(gz,P(()=>s.value.zIndex)),o(Ez,{size:P(()=>s.value.size||"")}),(n||!d0.value)&&(d0.value=s.value),s},bce=(e,t)=>{var n;const r=[...new Set([...Uv(e),...Uv(t)])],a={};for(const i of r)a[i]=(n=t[i])!=null?n:e[i];return a},_ce=Le({a11y:{type:Boolean,default:!0},locale:{type:ue(Object)},size:Sr,button:{type:ue(Object)},experimentalFeatures:{type:ue(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:ue(Object)},zIndex:Number,namespace:{type:String,default:"el"}}),IC={},wce=ne({name:"ElConfigProvider",props:_ce,setup(e,{slots:t}){xe(()=>e.message,r=>{Object.assign(IC,r??{})},{immediate:!0,deep:!0});const n=IM(e);return()=>_e(t,"default",{config:n==null?void 0:n.value})}}),Sce=_t(wce),Cce="2.3.14",xce=(e=[])=>({version:Cce,install:(n,r)=>{n[RD]||(n[RD]=!0,e.forEach(a=>n.use(a)),r&&IM(r,n,!0))}}),Tce=Le({zIndex:{type:ue([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"}}),Mce={scroll:({scrollTop:e,fixed:t})=>at(e)&&Un(t),[mn]:e=>Un(e)};var Pe=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n};const Dz="ElAffix",kce=ne({name:Dz}),Ace=ne({...kce,props:Tce,emits:Mce,setup(e,{expose:t,emit:n}){const r=e,a=Me("affix"),i=un(),o=un(),s=un(),{height:l}=TZ(),{height:u,width:c,top:f,bottom:d,update:h}=ZI(o,{windowScroll:!1}),v=ZI(i),p=H(!1),g=H(0),m=H(0),b=P(()=>({height:p.value?`${u.value}px`:"",width:p.value?`${c.value}px`:""})),_=P(()=>{if(!p.value)return{};const S=r.offset?On(r.offset):0;return{height:`${u.value}px`,width:`${c.value}px`,top:r.position==="top"?S:"",bottom:r.position==="bottom"?S:"",transform:m.value?`translateY(${m.value}px)`:"",zIndex:r.zIndex}}),w=()=>{if(s.value)if(g.value=s.value instanceof Window?document.documentElement.scrollTop:s.value.scrollTop||0,r.position==="top")if(r.target){const S=v.bottom.value-r.offset-u.value;p.value=r.offset>f.value&&v.bottom.value>0,m.value=S<0?S:0}else p.value=r.offset>f.value;else if(r.target){const S=l.value-v.top.value-r.offset-u.value;p.value=l.value-r.offset<d.value&&l.value>v.top.value,m.value=S<0?-S:0}else p.value=l.value-r.offset<d.value},C=()=>{h(),n("scroll",{scrollTop:g.value,fixed:p.value})};return xe(p,S=>n("change",S)),yt(()=>{var S;r.target?(i.value=(S=document.querySelector(r.target))!=null?S:void 0,i.value||jn(Dz,`Target is not existed: ${r.target}`)):i.value=document.documentElement,s.value=sM(o.value,!0),h()}),bn(s,"scroll",C),Ia(w),t({update:w,updateRoot:h}),(S,x)=>(R(),K("div",{ref_key:"root",ref:o,class:V(y(a).b()),style:Ye(y(b))},[Y("div",{class:V({[y(a).m("fixed")]:p.value}),style:Ye(y(_))},[_e(S.$slots,"default")],6)],6))}});var Ece=Pe(Ace,[["__file","/home/runner/work/element-plus/element-plus/packages/components/affix/src/affix.vue"]]);const Ice=_t(Ece),Dce=Le({size:{type:ue([Number,String])},color:{type:String}}),Pce=ne({name:"ElIcon",inheritAttrs:!1}),Lce=ne({...Pce,props:Dce,setup(e){const t=e,n=Me("icon"),r=P(()=>{const{size:a,color:i}=t;return!a&&!i?{}:{fontSize:er(a)?void 0:On(a),"--color":i}});return(a,i)=>(R(),K("i",St({class:y(n).b(),style:y(r)},a.$attrs),[_e(a.$slots,"default")],16))}});var Rce=Pe(Lce,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const Ke=_t(Rce),Oce=["light","dark"],$ce=Le({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:Uv(fl),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:Oce,default:"light"}}),Nce={close:e=>e instanceof MouseEvent},Bce=ne({name:"ElAlert"}),Vce=ne({...Bce,props:$ce,emits:Nce,setup(e,{emit:t}){const n=e,{Close:r}=fM,a=Mr(),i=Me("alert"),o=H(!0),s=P(()=>fl[n.type]),l=P(()=>[i.e("icon"),{[i.is("big")]:!!n.description||!!a.default}]),u=P(()=>({[i.is("bold")]:n.description||a.default})),c=f=>{o.value=!1,t("close",f)};return(f,d)=>(R(),ce(Bn,{name:y(i).b("fade"),persisted:""},{default:re(()=>[dt(Y("div",{class:V([y(i).b(),y(i).m(f.type),y(i).is("center",f.center),y(i).is(f.effect)]),role:"alert"},[f.showIcon&&y(s)?(R(),ce(y(Ke),{key:0,class:V(y(l))},{default:re(()=>[(R(),ce(Ct(y(s))))]),_:1},8,["class"])):se("v-if",!0),Y("div",{class:V(y(i).e("content"))},[f.title||f.$slots.title?(R(),K("span",{key:0,class:V([y(i).e("title"),y(u)])},[_e(f.$slots,"title",{},()=>[Ut(De(f.title),1)])],2)):se("v-if",!0),f.$slots.default||f.description?(R(),K("p",{key:1,class:V(y(i).e("description"))},[_e(f.$slots,"default",{},()=>[Ut(De(f.description),1)])],2)):se("v-if",!0),f.closable?(R(),K(je,{key:2},[f.closeText?(R(),K("div",{key:0,class:V([y(i).e("close-btn"),y(i).is("customed")]),onClick:c},De(f.closeText),3)):(R(),ce(y(Ke),{key:1,class:V(y(i).e("close-btn")),onClick:c},{default:re(()=>[q(y(r))]),_:1},8,["class"]))],64)):se("v-if",!0)],2)],2),[[Kt,o.value]])]),_:3},8,["name"]))}});var zce=Pe(Vce,[["__file","/home/runner/work/element-plus/element-plus/packages/components/alert/src/alert.vue"]]);const Fce=_t(zce),Sc=Symbol("formContextKey"),So=Symbol("formItemContextKey"),qn=(e,t={})=>{const n=H(void 0),r=t.prop?n:J5("size"),a=t.global?n:mce(),i=t.form?{size:void 0}:Ge(Sc,void 0),o=t.formItem?{size:void 0}:Ge(So,void 0);return P(()=>r.value||y(e)||(o==null?void 0:o.size)||(i==null?void 0:i.size)||a.value||"")},wa=e=>{const t=J5("disabled"),n=Ge(Sc,void 0);return P(()=>t.value||y(e)||(n==null?void 0:n.disabled)||!1)},aa=()=>{const e=Ge(Sc,void 0),t=Ge(So,void 0);return{form:e,formItem:t}},Il=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=H(!1)),r||(r=H(!1));const a=H();let i;const o=P(()=>{var s;return!!(!e.label&&t&&t.inputIds&&((s=t.inputIds)==null?void 0:s.length)<=1)});return yt(()=>{i=xe([kn(e,"id"),n],([s,l])=>{const u=s??(l?void 0:oi().value);u!==a.value&&(t!=null&&t.removeInputId&&(a.value&&t.removeInputId(a.value),!(r!=null&&r.value)&&!l&&u&&t.addInputId(u)),a.value=u)},{immediate:!0})}),xl(()=>{i&&i(),t!=null&&t.removeInputId&&a.value&&t.removeInputId(a.value)}),{isLabeledByFormItem:o,inputId:a}},Hce=Le({size:{type:String,values:Mo},disabled:Boolean}),Gce=Le({...Hce,model:Object,rules:{type:ue(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},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:[Object,Boolean]}}),Wce={validate:(e,t,n)=>(He(e)||lt(e))&&Un(t)&&lt(n)};function Kce(){const e=H([]),t=P(()=>{if(!e.value.length)return"0";const i=Math.max(...e.value);return i?`${i}px`:""});function n(i){const o=e.value.indexOf(i);return o===-1&&t.value,o}function r(i,o){if(i&&o){const s=n(o);e.value.splice(s,1,i)}else i&&e.value.push(i)}function a(i){const o=n(i);o>-1&&e.value.splice(o,1)}return{autoLabelWidth:t,registerLabelWidth:r,deregisterLabelWidth:a}}const zg=(e,t)=>{const n=oc(t);return n.length>0?e.filter(r=>r.prop&&n.includes(r.prop)):e},Uce="ElForm",Yce=ne({name:Uce}),jce=ne({...Yce,props:Gce,emits:Wce,setup(e,{expose:t,emit:n}){const r=e,a=[],i=qn(),o=Me("form"),s=P(()=>{const{labelPosition:b,inline:_}=r;return[o.b(),o.m(i.value||"default"),{[o.m(`label-${b}`)]:b,[o.m("inline")]:_}]}),l=b=>{a.push(b)},u=b=>{b.prop&&a.splice(a.indexOf(b),1)},c=(b=[])=>{r.model&&zg(a,b).forEach(_=>_.resetField())},f=(b=[])=>{zg(a,b).forEach(_=>_.clearValidate())},d=P(()=>!!r.model),h=b=>{if(a.length===0)return[];const _=zg(a,b);return _.length?_:[]},v=async b=>g(void 0,b),p=async(b=[])=>{if(!d.value)return!1;const _=h(b);if(_.length===0)return!0;let w={};for(const C of _)try{await C.validate("")}catch(S){w={...w,...S}}return Object.keys(w).length===0?!0:Promise.reject(w)},g=async(b=[],_)=>{const w=!it(_);try{const C=await p(b);return C===!0&&(_==null||_(C)),C}catch(C){if(C instanceof Error)throw C;const S=C;return r.scrollToError&&m(Object.keys(S)[0]),_==null||_(!1,S),w&&Promise.reject(S)}},m=b=>{var _;const w=zg(a,b)[0];w&&((_=w.$el)==null||_.scrollIntoView(r.scrollIntoViewOptions))};return xe(()=>r.rules,()=>{r.validateOnRuleChange&&v().catch(b=>void 0)},{deep:!0}),Et(Sc,jt({...or(r),emit:n,resetFields:c,clearValidate:f,validateField:g,addField:l,removeField:u,...Kce()})),t({validate:v,validateField:g,resetFields:c,clearValidate:f,scrollToField:m}),(b,_)=>(R(),K("form",{class:V(y(s))},[_e(b.$slots,"default")],2))}});var qce=Pe(jce,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]);function Iu(){return Iu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Iu.apply(this,arguments)}function Xce(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Zv(e,t)}function DC(e){return DC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},DC(e)}function Zv(e,t){return Zv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Zv(e,t)}function Zce(){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 fy(e,t,n){return Zce()?fy=Reflect.construct.bind():fy=function(a,i,o){var s=[null];s.push.apply(s,i);var l=Function.bind.apply(a,s),u=new l;return o&&Zv(u,o.prototype),u},fy.apply(null,arguments)}function Jce(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function PC(e){var t=typeof Map=="function"?new Map:void 0;return PC=function(r){if(r===null||!Jce(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,a)}function a(){return fy(r,arguments,DC(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),Zv(a,r)},PC(e)}var Qce=/%[sdj%]/g,efe=function(){};typeof process<"u"&&process.env;function LC(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function Aa(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var a=0,i=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var o=e.replace(Qce,function(s){if(s==="%%")return"%";if(a>=i)return s;switch(s){case"%s":return String(n[a++]);case"%d":return Number(n[a++]);case"%j":try{return JSON.stringify(n[a++])}catch{return"[Circular]"}break;default:return s}});return o}return e}function tfe(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function sr(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||tfe(t)&&typeof e=="string"&&!e)}function nfe(e,t,n){var r=[],a=0,i=e.length;function o(s){r.push.apply(r,s||[]),a++,a===i&&n(r)}e.forEach(function(s){t(s,o)})}function eP(e,t,n){var r=0,a=e.length;function i(o){if(o&&o.length){n(o);return}var s=r;r=r+1,s<a?t(e[s],i):n([])}i([])}function rfe(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[])}),t}var tP=function(e){Xce(t,e);function t(n,r){var a;return a=e.call(this,"Async Validation Error")||this,a.errors=n,a.fields=r,a}return t}(PC(Error));function afe(e,t,n,r,a){if(t.first){var i=new Promise(function(d,h){var v=function(m){return r(m),m.length?h(new tP(m,LC(m))):d(a)},p=rfe(e);eP(p,n,v)});return i.catch(function(d){return d}),i}var o=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,u=0,c=[],f=new Promise(function(d,h){var v=function(g){if(c.push.apply(c,g),u++,u===l)return r(c),c.length?h(new tP(c,LC(c))):d(a)};s.length||(r(c),d(a)),s.forEach(function(p){var g=e[p];o.indexOf(p)!==-1?eP(g,n,v):nfe(g,n,v)})});return f.catch(function(d){return d}),f}function ife(e){return!!(e&&e.message!==void 0)}function ofe(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function nP(e,t){return function(n){var r;return e.fullFields?r=ofe(t,e.fullFields):r=t[n.field||e.fullField],ife(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function rP(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];typeof r=="object"&&typeof e[n]=="object"?e[n]=Iu({},e[n],r):e[n]=r}}return e}var Pz=function(t,n,r,a,i,o){t.required&&(!r.hasOwnProperty(t.field)||sr(n,o||t.type))&&a.push(Aa(i.messages.required,t.fullField))},sfe=function(t,n,r,a,i){(/^\s+$/.test(n)||n==="")&&a.push(Aa(i.messages.whitespace,t.fullField))},Fg,lfe=function(){if(Fg)return Fg;var e="[a-fA-F\\d:]",t=function(w){return w&&w.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",a=(`
  10. (?:
  11. (?:`+r+":){7}(?:"+r+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
  12. (?:`+r+":){6}(?:"+n+"|:"+r+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
  13. (?:`+r+":){5}(?::"+n+"|(?::"+r+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
  14. (?:`+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
  15. (?:`+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
  16. (?:`+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
  17. (?:`+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
  18. (?::(?:(?::`+r+"){0,5}:"+n+"|(?::"+r+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
  19. )(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
  20. `).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),i=new RegExp("(?:^"+n+"$)|(?:^"+a+"$)"),o=new RegExp("^"+n+"$"),s=new RegExp("^"+a+"$"),l=function(w){return w&&w.exact?i:new RegExp("(?:"+t(w)+n+t(w)+")|(?:"+t(w)+a+t(w)+")","g")};l.v4=function(_){return _&&_.exact?o:new RegExp(""+t(_)+n+t(_),"g")},l.v6=function(_){return _&&_.exact?s:new RegExp(""+t(_)+a+t(_),"g")};var u="(?:(?:[a-z]+:)?//)",c="(?:\\S+(?::\\S*)?@)?",f=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"]*)?',b="(?:"+u+"|www\\.)"+c+"(?:localhost|"+f+"|"+d+"|"+h+v+p+")"+g+m;return Fg=new RegExp("(?:^"+b+"$)","i"),Fg},aP={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},$h={integer:function(t){return $h.number(t)&&parseInt(t,10)===t},float:function(t){return $h.number(t)&&!$h.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"&&!$h.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(aP.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(lfe())},hex:function(t){return typeof t=="string"&&!!t.match(aP.hex)}},ufe=function(t,n,r,a,i){if(t.required&&n===void 0){Pz(t,n,r,a,i);return}var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;o.indexOf(s)>-1?$h[s](n)||a.push(Aa(i.messages.types[s],t.fullField,t.type)):s&&typeof n!==t.type&&a.push(Aa(i.messages.types[s],t.fullField,t.type))},cfe=function(t,n,r,a,i){var o=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=n,f=null,d=typeof n=="number",h=typeof n=="string",v=Array.isArray(n);if(d?f="number":h?f="string":v&&(f="array"),!f)return!1;v&&(c=n.length),h&&(c=n.replace(u,"_").length),o?c!==t.len&&a.push(Aa(i.messages[f].len,t.fullField,t.len)):s&&!l&&c<t.min?a.push(Aa(i.messages[f].min,t.fullField,t.min)):l&&!s&&c>t.max?a.push(Aa(i.messages[f].max,t.fullField,t.max)):s&&l&&(c<t.min||c>t.max)&&a.push(Aa(i.messages[f].range,t.fullField,t.min,t.max))},Lc="enum",ffe=function(t,n,r,a,i){t[Lc]=Array.isArray(t[Lc])?t[Lc]:[],t[Lc].indexOf(n)===-1&&a.push(Aa(i.messages[Lc],t.fullField,t[Lc].join(", ")))},dfe=function(t,n,r,a,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||a.push(Aa(i.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var o=new RegExp(t.pattern);o.test(n)||a.push(Aa(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},on={required:Pz,whitespace:sfe,type:ufe,range:cfe,enum:ffe,pattern:dfe},hfe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(sr(n,"string")&&!t.required)return r();on.required(t,n,a,o,i,"string"),sr(n,"string")||(on.type(t,n,a,o,i),on.range(t,n,a,o,i),on.pattern(t,n,a,o,i),t.whitespace===!0&&on.whitespace(t,n,a,o,i))}r(o)},vfe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(sr(n)&&!t.required)return r();on.required(t,n,a,o,i),n!==void 0&&on.type(t,n,a,o,i)}r(o)},pfe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),sr(n)&&!t.required)return r();on.required(t,n,a,o,i),n!==void 0&&(on.type(t,n,a,o,i),on.range(t,n,a,o,i))}r(o)},gfe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(sr(n)&&!t.required)return r();on.required(t,n,a,o,i),n!==void 0&&on.type(t,n,a,o,i)}r(o)},mfe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(sr(n)&&!t.required)return r();on.required(t,n,a,o,i),sr(n)||on.type(t,n,a,o,i)}r(o)},yfe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(sr(n)&&!t.required)return r();on.required(t,n,a,o,i),n!==void 0&&(on.type(t,n,a,o,i),on.range(t,n,a,o,i))}r(o)},bfe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(sr(n)&&!t.required)return r();on.required(t,n,a,o,i),n!==void 0&&(on.type(t,n,a,o,i),on.range(t,n,a,o,i))}r(o)},_fe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();on.required(t,n,a,o,i,"array"),n!=null&&(on.type(t,n,a,o,i),on.range(t,n,a,o,i))}r(o)},wfe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(sr(n)&&!t.required)return r();on.required(t,n,a,o,i),n!==void 0&&on.type(t,n,a,o,i)}r(o)},Sfe="enum",Cfe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(sr(n)&&!t.required)return r();on.required(t,n,a,o,i),n!==void 0&&on[Sfe](t,n,a,o,i)}r(o)},xfe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(sr(n,"string")&&!t.required)return r();on.required(t,n,a,o,i),sr(n,"string")||on.pattern(t,n,a,o,i)}r(o)},Tfe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(sr(n,"date")&&!t.required)return r();if(on.required(t,n,a,o,i),!sr(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),on.type(t,l,a,o,i),l&&on.range(t,l.getTime(),a,o,i)}}r(o)},Mfe=function(t,n,r,a,i){var o=[],s=Array.isArray(n)?"array":typeof n;on.required(t,n,a,o,i,s),r(o)},m_=function(t,n,r,a,i){var o=t.type,s=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(sr(n,o)&&!t.required)return r();on.required(t,n,a,s,i,o),sr(n,o)||on.type(t,n,a,s,i)}r(s)},kfe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(sr(n)&&!t.required)return r();on.required(t,n,a,o,i)}r(o)},sv={string:hfe,method:vfe,number:pfe,boolean:gfe,regexp:mfe,integer:yfe,float:bfe,array:_fe,object:wfe,enum:Cfe,pattern:xfe,date:Tfe,url:m_,hex:m_,email:m_,required:Mfe,any:kfe};function RC(){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 OC=RC(),tg=function(){function e(n){this.rules=null,this._messages=OC,this.define(n)}var t=e.prototype;return t.define=function(r){var a=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(i){var o=r[i];a.rules[i]=Array.isArray(o)?o:[o]})},t.messages=function(r){return r&&(this._messages=rP(RC(),r)),this._messages},t.validate=function(r,a,i){var o=this;a===void 0&&(a={}),i===void 0&&(i=function(){});var s=r,l=a,u=i;if(typeof l=="function"&&(u=l,l={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,s),Promise.resolve(s);function c(p){var g=[],m={};function b(w){if(Array.isArray(w)){var C;g=(C=g).concat.apply(C,w)}else g.push(w)}for(var _=0;_<p.length;_++)b(p[_]);g.length?(m=LC(g),u(g,m)):u(null,s)}if(l.messages){var f=this.messages();f===OC&&(f=RC()),rP(f,l.messages),l.messages=f}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(b){var _=b;typeof _.transform=="function"&&(s===r&&(s=Iu({},s)),m=s[p]=_.transform(m)),typeof _=="function"?_={validator:_}:_=Iu({},_),_.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 afe(d,l,function(p,g){var m=p.rule,b=(m.type==="object"||m.type==="array")&&(typeof m.fields=="object"||typeof m.defaultField=="object");b=b&&(m.required||!m.required&&p.value),m.field=p.field;function _(S,x){return Iu({},x,{fullField:m.fullField+"."+S,fullFields:m.fullFields?[].concat(m.fullFields,[S]):[S]})}function w(S){S===void 0&&(S=[]);var x=Array.isArray(S)?S:[S];!l.suppressWarning&&x.length&&e.warning("async-validator:",x),x.length&&m.message!==void 0&&(x=[].concat(m.message));var T=x.map(nP(m,s));if(l.first&&T.length)return v[m.field]=1,g(T);if(!b)g(T);else{if(m.required&&!p.value)return m.message!==void 0?T=[].concat(m.message).map(nP(m,s)):l.error&&(T=[l.error(m,Aa(l.messages.required,m.field))]),g(T);var M={};m.defaultField&&Object.keys(p.value).map(function(E){M[E]=m.defaultField}),M=Iu({},M,p.rule.fields);var A={};Object.keys(M).forEach(function(E){var D=M[E],L=Array.isArray(D)?D:[D];A[E]=L.map(_.bind(null,E))});var k=new e(A);k.messages(l.messages),p.rule.options&&(p.rule.options.messages=l.messages,p.rule.options.error=l.error),k.validate(p.value,p.rule.options||l,function(E){var D=[];T&&T.length&&D.push.apply(D,T),E&&E.length&&D.push.apply(D,E),g(D.length?D:null)})}}var C;if(m.asyncValidator)C=m.asyncValidator(m,p.value,w,p.source,l);else if(m.validator){try{C=m.validator(m,p.value,w,p.source,l)}catch(S){console.error==null||console.error(S),l.suppressValidatorError||setTimeout(function(){throw S},0),w(S.message)}C===!0?w():C===!1?w(typeof m.message=="function"?m.message(m.fullField||m.field):m.message||(m.fullField||m.field)+" fails"):C instanceof Array?w(C):C instanceof Error&&w(C.message)}C&&C.then&&C.then(function(){return w()},function(S){return w(S)})},function(p){c(p)},s)},t.getType=function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!sv.hasOwnProperty(r.type))throw new Error(Aa("Unknown rule type %s",r.type));return r.type||"string"},t.getValidationMethod=function(r){if(typeof r.validator=="function")return r.validator;var a=Object.keys(r),i=a.indexOf("message");return i!==-1&&a.splice(i,1),a.length===1&&a[0]==="required"?sv.required:sv[this.getType(r)]||void 0},e}();tg.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");sv[t]=n};tg.warning=efe;tg.messages=OC;tg.validators=sv;const Afe=["","error","validating","success"],Efe=Le({label:String,labelWidth:{type:[String,Number],default:""},prop:{type:ue([String,Array])},required:{type:Boolean,default:void 0},rules:{type:ue([Object,Array])},error:String,validateStatus:{type:String,values:Afe},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:Mo}}),iP="ElLabelWrap";var Ife=ne({name:iP,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const n=Ge(Sc,void 0),r=Ge(So);r||jn(iP,"usage: <el-form-item><label-wrap /></el-form-item>");const a=Me("form"),i=H(),o=H(0),s=()=>{var c;if((c=i.value)!=null&&c.firstElementChild){const f=window.getComputedStyle(i.value.firstElementChild).width;return Math.ceil(Number.parseFloat(f))}else return 0},l=(c="update")=>{Ue(()=>{t.default&&e.isAutoWidth&&(c==="update"?o.value=s():c==="remove"&&(n==null||n.deregisterLabelWidth(o.value)))})},u=()=>l("update");return yt(()=>{u()}),wn(()=>{l("remove")}),cs(()=>u()),xe(o,(c,f)=>{e.updateAll&&(n==null||n.registerLabelWidth(c,f))}),$r(P(()=>{var c,f;return(f=(c=i.value)==null?void 0:c.firstElementChild)!=null?f:null}),u),()=>{var c,f;if(!t)return null;const{isAutoWidth:d}=e;if(d){const h=n==null?void 0:n.autoLabelWidth,v=r==null?void 0:r.hasLabel,p={};if(v&&h&&h!=="auto"){const g=Math.max(0,Number.parseInt(h,10)-o.value),m=n.labelPosition==="left"?"marginRight":"marginLeft";g&&(p[m]=`${g}px`)}return q("div",{ref:i,class:[a.be("item","label-wrap")],style:p},[(c=t.default)==null?void 0:c.call(t)])}else return q(je,{ref:i},[(f=t.default)==null?void 0:f.call(t)])}}});const Dfe=["role","aria-labelledby"],Pfe=ne({name:"ElFormItem"}),Lfe=ne({...Pfe,props:Efe,setup(e,{expose:t}){const n=e,r=Mr(),a=Ge(Sc,void 0),i=Ge(So,void 0),o=qn(void 0,{formItem:!1}),s=Me("form-item"),l=oi().value,u=H([]),c=H(""),f=uZ(c,100),d=H(""),h=H();let v,p=!1;const g=P(()=>{if((a==null?void 0:a.labelPosition)==="top")return{};const ee=On(n.labelWidth||(a==null?void 0:a.labelWidth)||"");return ee?{width:ee}:{}}),m=P(()=>{if((a==null?void 0:a.labelPosition)==="top"||a!=null&&a.inline)return{};if(!n.label&&!n.labelWidth&&M)return{};const ee=On(n.labelWidth||(a==null?void 0:a.labelWidth)||"");return!n.label&&!r.label?{marginLeft:ee}:{}}),b=P(()=>[s.b(),s.m(o.value),s.is("error",c.value==="error"),s.is("validating",c.value==="validating"),s.is("success",c.value==="success"),s.is("required",L.value||n.required),s.is("no-asterisk",a==null?void 0:a.hideRequiredAsterisk),(a==null?void 0:a.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[s.m("feedback")]:a==null?void 0:a.statusIcon}]),_=P(()=>Un(n.inlineMessage)?n.inlineMessage:(a==null?void 0:a.inlineMessage)||!1),w=P(()=>[s.e("error"),{[s.em("error","inline")]:_.value}]),C=P(()=>n.prop?lt(n.prop)?n.prop:n.prop.join("."):""),S=P(()=>!!(n.label||r.label)),x=P(()=>n.for||u.value.length===1?u.value[0]:void 0),T=P(()=>!x.value&&S.value),M=!!i,A=P(()=>{const ee=a==null?void 0:a.model;if(!(!ee||!n.prop))return uy(ee,n.prop).value}),k=P(()=>{const{required:ee}=n,j=[];n.rules&&j.push(...oc(n.rules));const de=a==null?void 0:a.rules;if(de&&n.prop){const ve=uy(de,n.prop).value;ve&&j.push(...oc(ve))}if(ee!==void 0){const ve=j.map((ie,W)=>[ie,W]).filter(([ie])=>Object.keys(ie).includes("required"));if(ve.length>0)for(const[ie,W]of ve)ie.required!==ee&&(j[W]={...ie,required:ee});else j.push({required:ee})}return j}),E=P(()=>k.value.length>0),D=ee=>k.value.filter(de=>!de.trigger||!ee?!0:Array.isArray(de.trigger)?de.trigger.includes(ee):de.trigger===ee).map(({trigger:de,...ve})=>ve),L=P(()=>k.value.some(ee=>ee.required)),B=P(()=>{var ee;return f.value==="error"&&n.showMessage&&((ee=a==null?void 0:a.showMessage)!=null?ee:!0)}),N=P(()=>`${n.label||""}${(a==null?void 0:a.labelSuffix)||""}`),O=ee=>{c.value=ee},$=ee=>{var j,de;const{errors:ve,fields:ie}=ee;(!ve||!ie)&&console.error(ee),O("error"),d.value=ve?(de=(j=ve==null?void 0:ve[0])==null?void 0:j.message)!=null?de:`${n.prop} is required`:"",a==null||a.emit("validate",n.prop,!1,d.value)},I=()=>{O("success"),a==null||a.emit("validate",n.prop,!0,"")},z=async ee=>{const j=C.value;return new tg({[j]:ee}).validate({[j]:A.value},{firstFields:!0}).then(()=>(I(),!0)).catch(ve=>($(ve),Promise.reject(ve)))},G=async(ee,j)=>{if(p||!n.prop)return!1;const de=it(j);if(!E.value)return j==null||j(!1),!1;const ve=D(ee);return ve.length===0?(j==null||j(!0),!0):(O("validating"),z(ve).then(()=>(j==null||j(!0),!0)).catch(ie=>{const{fields:W}=ie;return j==null||j(!1,W),de?!1:Promise.reject(W)}))},U=()=>{O(""),d.value="",p=!1},Z=async()=>{const ee=a==null?void 0:a.model;if(!ee||!n.prop)return;const j=uy(ee,n.prop);p=!0,j.value=AD(v),await Ue(),U(),p=!1},ae=ee=>{u.value.includes(ee)||u.value.push(ee)},J=ee=>{u.value=u.value.filter(j=>j!==ee)};xe(()=>n.error,ee=>{d.value=ee||"",O(ee?"error":"")},{immediate:!0}),xe(()=>n.validateStatus,ee=>O(ee||""));const Q=jt({...or(n),$el:h,size:o,validateState:c,labelId:l,inputIds:u,isGroup:T,hasLabel:S,addInputId:ae,removeInputId:J,resetField:Z,clearValidate:U,validate:G});return Et(So,Q),yt(()=>{n.prop&&(a==null||a.addField(Q),v=AD(A.value))}),wn(()=>{a==null||a.removeField(Q)}),t({size:o,validateMessage:d,validateState:c,validate:G,clearValidate:U,resetField:Z}),(ee,j)=>{var de;return R(),K("div",{ref_key:"formItemRef",ref:h,class:V(y(b)),role:y(T)?"group":void 0,"aria-labelledby":y(T)?y(l):void 0},[q(y(Ife),{"is-auto-width":y(g).width==="auto","update-all":((de=y(a))==null?void 0:de.labelWidth)==="auto"},{default:re(()=>[y(S)?(R(),ce(Ct(y(x)?"label":"div"),{key:0,id:y(l),for:y(x),class:V(y(s).e("label")),style:Ye(y(g))},{default:re(()=>[_e(ee.$slots,"label",{label:y(N)},()=>[Ut(De(y(N)),1)])]),_:3},8,["id","for","class","style"])):se("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),Y("div",{class:V(y(s).e("content")),style:Ye(y(m))},[_e(ee.$slots,"default"),q(kV,{name:`${y(s).namespace.value}-zoom-in-top`},{default:re(()=>[y(B)?_e(ee.$slots,"error",{key:0,error:d.value},()=>[Y("div",{class:V(y(w))},De(d.value),3)]):se("v-if",!0)]),_:3},8,["name"])],6)],10,Dfe)}}});var Lz=Pe(Lfe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);const Rfe=_t(qce,{FormItem:Lz}),Ofe=Dn(Lz);let gi;const $fe=`
  21. height:0 !important;
  22. visibility:hidden !important;
  23. ${ZV()?"":"overflow:hidden !important;"}
  24. position:absolute !important;
  25. z-index:-1000 !important;
  26. top:0 !important;
  27. right:0 !important;
  28. `,Nfe=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function Bfe(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),a=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:Nfe.map(o=>`${o}:${t.getPropertyValue(o)}`).join(";"),paddingSize:r,borderSize:a,boxSizing:n}}function oP(e,t=1,n){var r;gi||(gi=document.createElement("textarea"),document.body.appendChild(gi));const{paddingSize:a,borderSize:i,boxSizing:o,contextStyle:s}=Bfe(e);gi.setAttribute("style",`${s};${$fe}`),gi.value=e.value||e.placeholder||"";let l=gi.scrollHeight;const u={};o==="border-box"?l=l+i:o==="content-box"&&(l=l-a),gi.value="";const c=gi.scrollHeight-a;if(at(t)){let f=c*t;o==="border-box"&&(f=f+a+i),l=Math.max(f,l),u.minHeight=`${f}px`}if(at(n)){let f=c*n;o==="border-box"&&(f=f+a+i),l=Math.min(f,l)}return u.height=`${l}px`,(r=gi.parentNode)==null||r.removeChild(gi),gi=void 0,u}const Vfe=Le({id:{type:String,default:void 0},size:Sr,disabled:Boolean,modelValue:{type:ue([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:ue([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:fn},prefixIcon:{type:fn},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:ue([Object,Array,String]),default:()=>Cn({})},autofocus:{type:Boolean,default:!1}}),zfe={[wt]:e=>lt(e),input:e=>lt(e),change:e=>lt(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},Ffe=["role"],Hfe=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus"],Gfe=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus"],Wfe=ne({name:"ElInput",inheritAttrs:!1}),Kfe=ne({...Wfe,props:Vfe,emits:zfe,setup(e,{expose:t,emit:n}){const r=e,a=mc(),i=Mr(),o=P(()=>{const Ae={};return r.containerRole==="combobox"&&(Ae["aria-haspopup"]=a["aria-haspopup"],Ae["aria-owns"]=a["aria-owns"],Ae["aria-expanded"]=a["aria-expanded"]),Ae}),s=P(()=>[r.type==="textarea"?g.b():p.b(),p.m(h.value),p.is("disabled",v.value),p.is("exceed",ae.value),{[p.b("group")]:i.prepend||i.append,[p.bm("group","append")]:i.append,[p.bm("group","prepend")]:i.prepend,[p.m("prefix")]:i.prefix||r.prefixIcon,[p.m("suffix")]:i.suffix||r.suffixIcon||r.clearable||r.showPassword,[p.bm("suffix","password-clear")]:z.value&&G.value},a.class]),l=P(()=>[p.e("wrapper"),p.is("focus",A.value)]),u=hM({excludeKeys:P(()=>Object.keys(o.value))}),{form:c,formItem:f}=aa(),{inputId:d}=Il(r,{formItemContext:f}),h=qn(),v=wa(),p=Me("input"),g=Me("textarea"),m=un(),b=un(),_=H(!1),w=H(!1),C=H(!1),S=H(),x=un(r.inputStyle),T=P(()=>m.value||b.value),{wrapperRef:M,isFocused:A,handleFocus:k,handleBlur:E}=yce(T,{afterBlur(){var Ae;r.validateEvent&&((Ae=f==null?void 0:f.validate)==null||Ae.call(f,"blur").catch(Fe=>void 0))}}),D=P(()=>{var Ae;return(Ae=c==null?void 0:c.statusIcon)!=null?Ae:!1}),L=P(()=>(f==null?void 0:f.validateState)||""),B=P(()=>L.value&&dM[L.value]),N=P(()=>C.value?qse:toe),O=P(()=>[a.style,r.inputStyle]),$=P(()=>[r.inputStyle,x.value,{resize:r.resize}]),I=P(()=>Kn(r.modelValue)?"":String(r.modelValue)),z=P(()=>r.clearable&&!v.value&&!r.readonly&&!!I.value&&(A.value||_.value)),G=P(()=>r.showPassword&&!v.value&&!r.readonly&&!!I.value&&(!!I.value||A.value)),U=P(()=>r.showWordLimit&&!!u.value.maxlength&&(r.type==="text"||r.type==="textarea")&&!v.value&&!r.readonly&&!r.showPassword),Z=P(()=>I.value.length),ae=P(()=>!!U.value&&Z.value>Number(u.value.maxlength)),J=P(()=>!!i.suffix||!!r.suffixIcon||z.value||r.showPassword||U.value||!!L.value&&D.value),[Q,ee]=pce(m);$r(b,Ae=>{if(ve(),!U.value||r.resize!=="both")return;const Fe=Ae[0],{width:rt}=Fe.contentRect;S.value={right:`calc(100% - ${rt+15+6}px)`}});const j=()=>{const{type:Ae,autosize:Fe}=r;if(!(!Vt||Ae!=="textarea"||!b.value))if(Fe){const rt=Mt(Fe)?Fe.minRows:void 0,vt=Mt(Fe)?Fe.maxRows:void 0,kt=oP(b.value,rt,vt);x.value={overflowY:"hidden",...kt},Ue(()=>{b.value.offsetHeight,x.value=kt})}else x.value={minHeight:oP(b.value).minHeight}},ve=(Ae=>{let Fe=!1;return()=>{var rt;if(Fe||!r.autosize)return;((rt=b.value)==null?void 0:rt.offsetParent)===null||(Ae(),Fe=!0)}})(j),ie=()=>{const Ae=T.value,Fe=r.formatter?r.formatter(I.value):I.value;!Ae||Ae.value===Fe||(Ae.value=Fe)},W=async Ae=>{Q();let{value:Fe}=Ae.target;if(r.formatter&&(Fe=r.parser?r.parser(Fe):Fe),!w.value){if(Fe===I.value){ie();return}n(wt,Fe),n("input",Fe),await Ue(),ie(),ee()}},X=Ae=>{n("change",Ae.target.value)},oe=Ae=>{n("compositionstart",Ae),w.value=!0},pe=Ae=>{var Fe;n("compositionupdate",Ae);const rt=(Fe=Ae.target)==null?void 0:Fe.value,vt=rt[rt.length-1]||"";w.value=!jb(vt)},Se=Ae=>{n("compositionend",Ae),w.value&&(w.value=!1,W(Ae))},me=()=>{C.value=!C.value,Ee()},Ee=async()=>{var Ae;await Ue(),(Ae=T.value)==null||Ae.focus()},Ce=()=>{var Ae;return(Ae=T.value)==null?void 0:Ae.blur()},we=Ae=>{_.value=!1,n("mouseleave",Ae)},Te=Ae=>{_.value=!0,n("mouseenter",Ae)},$e=Ae=>{n("keydown",Ae)},Be=()=>{var Ae;(Ae=T.value)==null||Ae.select()},We=()=>{n(wt,""),n("change",""),n("clear"),n("input","")};return xe(()=>r.modelValue,()=>{var Ae;Ue(()=>j()),r.validateEvent&&((Ae=f==null?void 0:f.validate)==null||Ae.call(f,"change").catch(Fe=>void 0))}),xe(I,()=>ie()),xe(()=>r.type,async()=>{await Ue(),ie(),j()}),yt(()=>{!r.formatter&&r.parser,ie(),Ue(j)}),t({input:m,textarea:b,ref:T,textareaStyle:$,autosize:kn(r,"autosize"),focus:Ee,blur:Ce,select:Be,clear:We,resizeTextarea:j}),(Ae,Fe)=>dt((R(),K("div",St(y(o),{class:y(s),style:y(O),role:Ae.containerRole,onMouseenter:Te,onMouseleave:we}),[se(" input "),Ae.type!=="textarea"?(R(),K(je,{key:0},[se(" prepend slot "),Ae.$slots.prepend?(R(),K("div",{key:0,class:V(y(p).be("group","prepend"))},[_e(Ae.$slots,"prepend")],2)):se("v-if",!0),Y("div",{ref_key:"wrapperRef",ref:M,class:V(y(l))},[se(" prefix slot "),Ae.$slots.prefix||Ae.prefixIcon?(R(),K("span",{key:0,class:V(y(p).e("prefix"))},[Y("span",{class:V(y(p).e("prefix-inner"))},[_e(Ae.$slots,"prefix"),Ae.prefixIcon?(R(),ce(y(Ke),{key:0,class:V(y(p).e("icon"))},{default:re(()=>[(R(),ce(Ct(Ae.prefixIcon)))]),_:1},8,["class"])):se("v-if",!0)],2)],2)):se("v-if",!0),Y("input",St({id:y(d),ref_key:"input",ref:m,class:y(p).e("inner")},y(u),{type:Ae.showPassword?C.value?"text":"password":Ae.type,disabled:y(v),formatter:Ae.formatter,parser:Ae.parser,readonly:Ae.readonly,autocomplete:Ae.autocomplete,tabindex:Ae.tabindex,"aria-label":Ae.label,placeholder:Ae.placeholder,style:Ae.inputStyle,form:r.form,autofocus:r.autofocus,onCompositionstart:oe,onCompositionupdate:pe,onCompositionend:Se,onInput:W,onFocus:Fe[0]||(Fe[0]=(...rt)=>y(k)&&y(k)(...rt)),onBlur:Fe[1]||(Fe[1]=(...rt)=>y(E)&&y(E)(...rt)),onChange:X,onKeydown:$e}),null,16,Hfe),se(" suffix slot "),y(J)?(R(),K("span",{key:1,class:V(y(p).e("suffix"))},[Y("span",{class:V(y(p).e("suffix-inner"))},[!y(z)||!y(G)||!y(U)?(R(),K(je,{key:0},[_e(Ae.$slots,"suffix"),Ae.suffixIcon?(R(),ce(y(Ke),{key:0,class:V(y(p).e("icon"))},{default:re(()=>[(R(),ce(Ct(Ae.suffixIcon)))]),_:1},8,["class"])):se("v-if",!0)],64)):se("v-if",!0),y(z)?(R(),ce(y(Ke),{key:1,class:V([y(p).e("icon"),y(p).e("clear")]),onMousedown:tt(y(rn),["prevent"]),onClick:We},{default:re(()=>[q(y(Ml))]),_:1},8,["class","onMousedown"])):se("v-if",!0),y(G)?(R(),ce(y(Ke),{key:2,class:V([y(p).e("icon"),y(p).e("password")]),onClick:me},{default:re(()=>[(R(),ce(Ct(y(N))))]),_:1},8,["class"])):se("v-if",!0),y(U)?(R(),K("span",{key:3,class:V(y(p).e("count"))},[Y("span",{class:V(y(p).e("count-inner"))},De(y(Z))+" / "+De(y(u).maxlength),3)],2)):se("v-if",!0),y(L)&&y(B)&&y(D)?(R(),ce(y(Ke),{key:4,class:V([y(p).e("icon"),y(p).e("validateIcon"),y(p).is("loading",y(L)==="validating")])},{default:re(()=>[(R(),ce(Ct(y(B))))]),_:1},8,["class"])):se("v-if",!0)],2)],2)):se("v-if",!0)],2),se(" append slot "),Ae.$slots.append?(R(),K("div",{key:1,class:V(y(p).be("group","append"))},[_e(Ae.$slots,"append")],2)):se("v-if",!0)],64)):(R(),K(je,{key:1},[se(" textarea "),Y("textarea",St({id:y(d),ref_key:"textarea",ref:b,class:y(g).e("inner")},y(u),{tabindex:Ae.tabindex,disabled:y(v),readonly:Ae.readonly,autocomplete:Ae.autocomplete,style:y($),"aria-label":Ae.label,placeholder:Ae.placeholder,form:r.form,autofocus:r.autofocus,onCompositionstart:oe,onCompositionupdate:pe,onCompositionend:Se,onInput:W,onFocus:Fe[2]||(Fe[2]=(...rt)=>y(k)&&y(k)(...rt)),onBlur:Fe[3]||(Fe[3]=(...rt)=>y(E)&&y(E)(...rt)),onChange:X,onKeydown:$e}),null,16,Gfe),y(U)?(R(),K("span",{key:0,style:Ye(S.value),class:V(y(p).e("count"))},De(y(Z))+" / "+De(y(u).maxlength),7)):se("v-if",!0)],64))],16,Ffe)),[[Kt,Ae.type!=="hidden"]])}});var Ufe=Pe(Kfe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]]);const Rr=_t(Ufe),pf=4,Rz={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"}},Yfe=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),Oz=Symbol("scrollbarContextKey"),jfe=Le({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),qfe="Thumb",Xfe=ne({__name:"thumb",props:jfe,setup(e){const t=e,n=Ge(Oz),r=Me("scrollbar");n||jn(qfe,"can not inject scrollbar context");const a=H(),i=H(),o=H({}),s=H(!1);let l=!1,u=!1,c=Vt?document.onselectstart:null;const f=P(()=>Rz[t.vertical?"vertical":"horizontal"]),d=P(()=>Yfe({size:t.size,move:t.move,bar:f.value})),h=P(()=>a.value[f.value.offset]**2/n.wrapElement[f.value.scrollSize]/t.ratio/i.value[f.value.offset]),v=S=>{var x;if(S.stopPropagation(),S.ctrlKey||[1,2].includes(S.button))return;(x=window.getSelection())==null||x.removeAllRanges(),g(S);const T=S.currentTarget;T&&(o.value[f.value.axis]=T[f.value.offset]-(S[f.value.client]-T.getBoundingClientRect()[f.value.direction]))},p=S=>{if(!i.value||!a.value||!n.wrapElement)return;const x=Math.abs(S.target.getBoundingClientRect()[f.value.direction]-S[f.value.client]),T=i.value[f.value.offset]/2,M=(x-T)*100*h.value/a.value[f.value.offset];n.wrapElement[f.value.scroll]=M*n.wrapElement[f.value.scrollSize]/100},g=S=>{S.stopImmediatePropagation(),l=!0,document.addEventListener("mousemove",m),document.addEventListener("mouseup",b),c=document.onselectstart,document.onselectstart=()=>!1},m=S=>{if(!a.value||!i.value||l===!1)return;const x=o.value[f.value.axis];if(!x)return;const T=(a.value.getBoundingClientRect()[f.value.direction]-S[f.value.client])*-1,M=i.value[f.value.offset]-x,A=(T-M)*100*h.value/a.value[f.value.offset];n.wrapElement[f.value.scroll]=A*n.wrapElement[f.value.scrollSize]/100},b=()=>{l=!1,o.value[f.value.axis]=0,document.removeEventListener("mousemove",m),document.removeEventListener("mouseup",b),C(),u&&(s.value=!1)},_=()=>{u=!1,s.value=!!t.size},w=()=>{u=!0,s.value=l};wn(()=>{C(),document.removeEventListener("mouseup",b)});const C=()=>{document.onselectstart!==c&&(document.onselectstart=c)};return bn(kn(n,"scrollbarElement"),"mousemove",_),bn(kn(n,"scrollbarElement"),"mouseleave",w),(S,x)=>(R(),ce(Bn,{name:y(r).b("fade"),persisted:""},{default:re(()=>[dt(Y("div",{ref_key:"instance",ref:a,class:V([y(r).e("bar"),y(r).is(y(f).key)]),onMousedown:p},[Y("div",{ref_key:"thumb",ref:i,class:V(y(r).e("thumb")),style:Ye(y(d)),onMousedown:v},null,38)],34),[[Kt,S.always||s.value]])]),_:1},8,["name"]))}});var sP=Pe(Xfe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const Zfe=Le({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),Jfe=ne({__name:"bar",props:Zfe,setup(e,{expose:t}){const n=e,r=H(0),a=H(0);return t({handleScroll:o=>{if(o){const s=o.offsetHeight-pf,l=o.offsetWidth-pf;a.value=o.scrollTop*100/s*n.ratioY,r.value=o.scrollLeft*100/l*n.ratioX}}}),(o,s)=>(R(),K(je,null,[q(sP,{move:r.value,ratio:o.ratioX,size:o.width,always:o.always},null,8,["move","ratio","size","always"]),q(sP,{move:a.value,ratio:o.ratioY,size:o.height,vertical:"",always:o.always},null,8,["move","ratio","size","always"])],64))}});var Qfe=Pe(Jfe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const ede=Le({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:ue([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}}),tde={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(at)},nde="ElScrollbar",rde=ne({name:nde}),ade=ne({...rde,props:ede,emits:tde,setup(e,{expose:t,emit:n}){const r=e,a=Me("scrollbar");let i,o;const s=H(),l=H(),u=H(),c=H("0"),f=H("0"),d=H(),h=H(1),v=H(1),p=P(()=>{const x={};return r.height&&(x.height=On(r.height)),r.maxHeight&&(x.maxHeight=On(r.maxHeight)),[r.wrapStyle,x]}),g=P(()=>[r.wrapClass,a.e("wrap"),{[a.em("wrap","hidden-default")]:!r.native}]),m=P(()=>[a.e("view"),r.viewClass]),b=()=>{var x;l.value&&((x=d.value)==null||x.handleScroll(l.value),n("scroll",{scrollTop:l.value.scrollTop,scrollLeft:l.value.scrollLeft}))};function _(x,T){Mt(x)?l.value.scrollTo(x):at(x)&&at(T)&&l.value.scrollTo(x,T)}const w=x=>{at(x)&&(l.value.scrollTop=x)},C=x=>{at(x)&&(l.value.scrollLeft=x)},S=()=>{if(!l.value)return;const x=l.value.offsetHeight-pf,T=l.value.offsetWidth-pf,M=x**2/l.value.scrollHeight,A=T**2/l.value.scrollWidth,k=Math.max(M,r.minSize),E=Math.max(A,r.minSize);h.value=M/(x-M)/(k/(x-k)),v.value=A/(T-A)/(E/(T-E)),f.value=k+pf<x?`${k}px`:"",c.value=E+pf<T?`${E}px`:""};return xe(()=>r.noresize,x=>{x?(i==null||i(),o==null||o()):({stop:i}=$r(u,S),o=bn("resize",S))},{immediate:!0}),xe(()=>[r.maxHeight,r.height],()=>{r.native||Ue(()=>{var x;S(),l.value&&((x=d.value)==null||x.handleScroll(l.value))})}),Et(Oz,jt({scrollbarElement:s,wrapElement:l})),yt(()=>{r.native||Ue(()=>{S()})}),cs(()=>S()),t({wrapRef:l,update:S,scrollTo:_,setScrollTop:w,setScrollLeft:C,handleScroll:b}),(x,T)=>(R(),K("div",{ref_key:"scrollbarRef",ref:s,class:V(y(a).b())},[Y("div",{ref_key:"wrapRef",ref:l,class:V(y(g)),style:Ye(y(p)),onScroll:b},[(R(),ce(Ct(x.tag),{ref_key:"resizeRef",ref:u,class:V(y(m)),style:Ye(x.viewStyle)},{default:re(()=>[_e(x.$slots,"default")]),_:3},8,["class","style"]))],38),x.native?se("v-if",!0):(R(),ce(Qfe,{key:0,ref_key:"barRef",ref:d,height:f.value,width:c.value,always:x.always,"ratio-x":v.value,"ratio-y":h.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});var ide=Pe(ade,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);const hs=_t(ide),DM=Symbol("popper"),$z=Symbol("popperContent"),ode=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],Nz=Le({role:{type:String,values:ode,default:"tooltip"}}),sde=ne({name:"ElPopper",inheritAttrs:!1}),lde=ne({...sde,props:Nz,setup(e,{expose:t}){const n=e,r=H(),a=H(),i=H(),o=H(),s=P(()=>n.role),l={triggerRef:r,popperInstanceRef:a,contentRef:i,referenceRef:o,role:s};return t(l),Et(DM,l),(u,c)=>_e(u.$slots,"default")}});var ude=Pe(lde,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const Bz=Le({arrowOffset:{type:Number,default:5}}),cde=ne({name:"ElPopperArrow",inheritAttrs:!1}),fde=ne({...cde,props:Bz,setup(e,{expose:t}){const n=e,r=Me("popper"),{arrowOffset:a,arrowRef:i,arrowStyle:o}=Ge($z,void 0);return xe(()=>n.arrowOffset,s=>{a.value=s}),wn(()=>{i.value=void 0}),t({arrowRef:i}),(s,l)=>(R(),K("span",{ref_key:"arrowRef",ref:i,class:V(y(r).e("arrow")),style:Ye(y(o)),"data-popper-arrow":""},null,6))}});var dde=Pe(fde,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const hde="ElOnlyChild",Vz=ne({name:hde,setup(e,{slots:t,attrs:n}){var r;const a=Ge(vz),i=zue((r=a==null?void 0:a.setForwardRef)!=null?r:rn);return()=>{var o;const s=(o=t.default)==null?void 0:o.call(t,n);if(!s||s.length>1)return null;const l=zz(s);return l?dt(Qo(l,n),[[i]]):null}}});function zz(e){if(!e)return null;const t=e;for(const n of t){if(Mt(n))switch(n.type){case Yr:continue;case Sd:case"svg":return lP(n);case je:return zz(n.children);default:return n}return lP(n)}return null}function lP(e){const t=Me("only-child");return q("span",{class:t.e("content")},[e])}const Fz=Le({virtualRef:{type:ue(Object)},virtualTriggering:Boolean,onMouseenter:{type:ue(Function)},onMouseleave:{type:ue(Function)},onClick:{type:ue(Function)},onKeydown:{type:ue(Function)},onFocus:{type:ue(Function)},onBlur:{type:ue(Function)},onContextmenu:{type:ue(Function)},id:String,open:Boolean}),vde=ne({name:"ElPopperTrigger",inheritAttrs:!1}),pde=ne({...vde,props:Fz,setup(e,{expose:t}){const n=e,{role:r,triggerRef:a}=Ge(DM,void 0);Vue(a);const i=P(()=>s.value?n.id:void 0),o=P(()=>{if(r&&r.value==="tooltip")return n.open&&n.id?n.id:void 0}),s=P(()=>{if(r&&r.value!=="tooltip")return r.value}),l=P(()=>s.value?`${n.open}`:void 0);let u;return yt(()=>{xe(()=>n.virtualRef,c=>{c&&(a.value=ka(c))},{immediate:!0}),xe(a,(c,f)=>{u==null||u(),u=void 0,ri(c)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(d=>{var h;const v=n[d];v&&(c.addEventListener(d.slice(2).toLowerCase(),v),(h=f==null?void 0:f.removeEventListener)==null||h.call(f,d.slice(2).toLowerCase(),v))}),u=xe([i,o,s,l],d=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((h,v)=>{Kn(d[v])?c.removeAttribute(h):c.setAttribute(h,d[v])})},{immediate:!0})),ri(f)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(d=>f.removeAttribute(d))},{immediate:!0})}),wn(()=>{u==null||u(),u=void 0}),t({triggerRef:a}),(c,f)=>c.virtualTriggering?se("v-if",!0):(R(),ce(y(Vz),St({key:0},c.$attrs,{"aria-controls":y(i),"aria-describedby":y(o),"aria-expanded":y(l),"aria-haspopup":y(s)}),{default:re(()=>[_e(c.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var gde=Pe(pde,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]);const y_="focus-trap.focus-after-trapped",b_="focus-trap.focus-after-released",mde="focus-trap.focusout-prevented",uP={cancelable:!0,bubbles:!1},yde={cancelable:!0,bubbles:!1},cP="focusAfterTrapped",fP="focusAfterReleased",PM=Symbol("elFocusTrap"),LM=H(),n1=H(0),RM=H(0);let Hg=0;const Hz=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const a=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||a?NodeFilter.FILTER_SKIP:r.tabIndex>=0||r===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},dP=(e,t)=>{for(const n of e)if(!bde(n,t))return n},bde=(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},_de=e=>{const t=Hz(e),n=dP(t,e),r=dP(t.reverse(),e);return[n,r]},wde=e=>e instanceof HTMLInputElement&&"select"in e,Ds=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),RM.value=window.performance.now(),e!==n&&wde(e)&&t&&e.select()}};function hP(e,t){const n=[...e],r=e.indexOf(t);return r!==-1&&n.splice(r,1),n}const Sde=()=>{let e=[];return{push:r=>{const a=e[0];a&&r!==a&&a.pause(),e=hP(e,r),e.unshift(r)},remove:r=>{var a,i;e=hP(e,r),(i=(a=e[0])==null?void 0:a.resume)==null||i.call(a)}}},Cde=(e,t=!1)=>{const n=document.activeElement;for(const r of e)if(Ds(r,t),document.activeElement!==n)return},vP=Sde(),xde=()=>n1.value>RM.value,Gg=()=>{LM.value="pointer",n1.value=window.performance.now()},pP=()=>{LM.value="keyboard",n1.value=window.performance.now()},Tde=()=>(yt(()=>{Hg===0&&(document.addEventListener("mousedown",Gg),document.addEventListener("touchstart",Gg),document.addEventListener("keydown",pP)),Hg++}),wn(()=>{Hg--,Hg<=0&&(document.removeEventListener("mousedown",Gg),document.removeEventListener("touchstart",Gg),document.removeEventListener("keydown",pP))}),{focusReason:LM,lastUserFocusTimestamp:n1,lastAutomatedFocusTimestamp:RM}),Wg=e=>new CustomEvent(mde,{...yde,detail:e}),Mde=ne({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[cP,fP,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=H();let r,a;const{focusReason:i}=Tde();Oue(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:b,currentTarget:_,shiftKey:w}=v,{loop:C}=e,S=p===Xe.tab&&!g&&!m&&!b,x=document.activeElement;if(S&&x){const T=_,[M,A]=_de(T);if(M&&A){if(!w&&x===A){const E=Wg({focusReason:i.value});t("focusout-prevented",E),E.defaultPrevented||(v.preventDefault(),C&&Ds(M,!0))}else if(w&&[M,T].includes(x)){const E=Wg({focusReason:i.value});t("focusout-prevented",E),E.defaultPrevented||(v.preventDefault(),C&&Ds(A,!0))}}else if(x===T){const E=Wg({focusReason:i.value});t("focusout-prevented",E),E.defaultPrevented||v.preventDefault()}}};Et(PM,{focusTrapRef:n,onKeydown:s}),xe(()=>e.focusTrapEl,v=>{v&&(n.value=v)},{immediate:!0}),xe([n],([v],[p])=>{v&&(v.addEventListener("keydown",s),v.addEventListener("focusin",c),v.addEventListener("focusout",f)),p&&(p.removeEventListener("keydown",s),p.removeEventListener("focusin",c),p.removeEventListener("focusout",f))});const l=v=>{t(cP,v)},u=v=>t(fP,v),c=v=>{const p=y(n);if(!p)return;const g=v.target,m=v.relatedTarget,b=g&&p.contains(g);e.trapped||m&&p.contains(m)||(r=m),b&&t("focusin",v),!o.paused&&e.trapped&&(b?a=g:Ds(a,!0))},f=v=>{const p=y(n);if(!(o.paused||!p))if(e.trapped){const g=v.relatedTarget;!Kn(g)&&!p.contains(g)&&setTimeout(()=>{if(!o.paused&&e.trapped){const m=Wg({focusReason:i.value});t("focusout-prevented",m),m.defaultPrevented||Ds(a,!0)}},0)}else{const g=v.target;g&&p.contains(g)||t("focusout",v)}};async function d(){await Ue();const v=y(n);if(v){vP.push(o);const p=v.contains(document.activeElement)?r:document.activeElement;if(r=p,!v.contains(p)){const m=new Event(y_,uP);v.addEventListener(y_,l),v.dispatchEvent(m),m.defaultPrevented||Ue(()=>{let b=e.focusStartEl;lt(b)||(Ds(b),document.activeElement!==b&&(b="first")),b==="first"&&Cde(Hz(v),!0),(document.activeElement===p||b==="container")&&Ds(v)})}}}function h(){const v=y(n);if(v){v.removeEventListener(y_,l);const p=new CustomEvent(b_,{...uP,detail:{focusReason:i.value}});v.addEventListener(b_,u),v.dispatchEvent(p),!p.defaultPrevented&&(i.value=="keyboard"||!xde()||v.contains(document.activeElement))&&Ds(r??document.body),v.removeEventListener(b_,u),vP.remove(o)}}return yt(()=>{e.trapped&&d(),xe(()=>e.trapped,v=>{v?d():h()})}),wn(()=>{e.trapped&&h()}),{onKeydown:s}}});function kde(e,t,n,r,a,i){return _e(e.$slots,"default",{handleKeydown:e.onKeydown})}var r1=Pe(Mde,[["render",kde],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const Ade=["fixed","absolute"],Ede=Le({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:ue(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:wc,default:"bottom"},popperOptions:{type:ue(Object),default:()=>({})},strategy:{type:String,values:Ade,default:"absolute"}}),Gz=Le({...Ede,id:String,style:{type:ue([String,Array,Object])},className:{type:ue([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:ue([String,Array,Object])},popperStyle:{type:ue([String,Array,Object])},referenceEl:{type:ue(Object)},triggerTargetEl:{type:ue(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),Ide={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},Dde=(e,t=[])=>{const{placement:n,strategy:r,popperOptions:a}=e,i={placement:n,strategy:r,...a,modifiers:[...Lde(e),...t]};return Rde(i,a==null?void 0:a.modifiers),i},Pde=e=>{if(Vt)return ka(e)};function Lde(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:r}=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:r}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function Rde(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const Ode=0,$de=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:r,role:a}=Ge(DM,void 0),i=H(),o=H(),s=P(()=>({name:"eventListeners",enabled:!!e.visible})),l=P(()=>{var m;const b=y(i),_=(m=y(o))!=null?m:Ode;return{name:"arrow",enabled:!Sre(b),options:{element:b,padding:_}}}),u=P(()=>({onFirstUpdate:()=>{v()},...Dde(e,[y(l),y(s)])})),c=P(()=>Pde(e.referenceEl)||y(r)),{attributes:f,state:d,styles:h,update:v,forceUpdate:p,instanceRef:g}=Due(c,n,u);return xe(g,m=>t.value=m),yt(()=>{xe(()=>{var m;return(m=y(c))==null?void 0:m.getBoundingClientRect()},()=>{v()})}),{attributes:f,arrowRef:i,contentRef:n,instanceRef:g,state:d,styles:h,role:a,forceUpdate:p,update:v}},Nde=(e,{attributes:t,styles:n,role:r})=>{const{nextZIndex:a}=Md(),i=Me("popper"),o=P(()=>y(t).popper),s=H(e.zIndex||a()),l=P(()=>[i.b(),i.is("pure",e.pure),i.is(e.effect),e.popperClass]),u=P(()=>[{zIndex:y(s)},y(n).popper,e.popperStyle||{}]),c=P(()=>r.value==="dialog"?"false":void 0),f=P(()=>y(n).arrow||{});return{ariaModal:c,arrowStyle:f,contentAttrs:o,contentClass:l,contentStyle:u,contentZIndex:s,updateZIndex:()=>{s.value=e.zIndex||a()}}},Bde=(e,t)=>{const n=H(!1),r=H();return{focusStartRef:r,trapped:n,onFocusAfterReleased:u=>{var c;((c=u.detail)==null?void 0:c.focusReason)!=="pointer"&&(r.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:u=>{e.visible&&!n.value&&(u.target&&(r.value=u.target),n.value=!0)},onFocusoutPrevented:u=>{e.trapping||(u.detail.focusReason==="pointer"&&u.preventDefault(),n.value=!1)},onReleaseRequested:()=>{n.value=!1,t("close")}}},Vde=ne({name:"ElPopperContent"}),zde=ne({...Vde,props:Gz,emits:Ide,setup(e,{expose:t,emit:n}){const r=e,{focusStartRef:a,trapped:i,onFocusAfterReleased:o,onFocusAfterTrapped:s,onFocusInTrap:l,onFocusoutPrevented:u,onReleaseRequested:c}=Bde(r,n),{attributes:f,arrowRef:d,contentRef:h,styles:v,instanceRef:p,role:g,update:m}=$de(r),{ariaModal:b,arrowStyle:_,contentAttrs:w,contentClass:C,contentStyle:S,updateZIndex:x}=Nde(r,{styles:v,attributes:f,role:g}),T=Ge(So,void 0),M=H();Et($z,{arrowStyle:_,arrowRef:d,arrowOffset:M}),T&&(T.addInputId||T.removeInputId)&&Et(So,{...T,addInputId:rn,removeInputId:rn});let A;const k=(D=!0)=>{m(),D&&x()},E=()=>{k(!1),r.visible&&r.focusOnShow?i.value=!0:r.visible===!1&&(i.value=!1)};return yt(()=>{xe(()=>r.triggerTargetEl,(D,L)=>{A==null||A(),A=void 0;const B=y(D||h.value),N=y(L||h.value);ri(B)&&(A=xe([g,()=>r.ariaLabel,b,()=>r.id],O=>{["role","aria-label","aria-modal","id"].forEach(($,I)=>{Kn(O[I])?B.removeAttribute($):B.setAttribute($,O[I])})},{immediate:!0})),N!==B&&ri(N)&&["role","aria-label","aria-modal","id"].forEach(O=>{N.removeAttribute(O)})},{immediate:!0}),xe(()=>r.visible,E,{immediate:!0})}),wn(()=>{A==null||A(),A=void 0}),t({popperContentRef:h,popperInstanceRef:p,updatePopper:k,contentStyle:S}),(D,L)=>(R(),K("div",St({ref_key:"contentRef",ref:h},y(w),{style:y(S),class:y(C),tabindex:"-1",onMouseenter:L[0]||(L[0]=B=>D.$emit("mouseenter",B)),onMouseleave:L[1]||(L[1]=B=>D.$emit("mouseleave",B))}),[q(y(r1),{trapped:y(i),"trap-on-focus-in":!0,"focus-trap-el":y(h),"focus-start-el":y(a),onFocusAfterTrapped:y(s),onFocusAfterReleased:y(o),onFocusin:y(l),onFocusoutPrevented:y(u),onReleaseRequested:y(c)},{default:re(()=>[_e(D.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var Fde=Pe(zde,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const Wz=_t(ude),a1=Symbol("elTooltip"),cr=Le({...Bue,...Gz,appendTo:{type:ue([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:ue(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean}),Jv=Le({...Fz,disabled:Boolean,trigger:{type:ue([String,Array]),default:"hover"},triggerKeys:{type:ue(Array),default:()=>[Xe.enter,Xe.space]}}),{useModelToggleProps:Hde,useModelToggleEmits:Gde,useModelToggle:Wde}=Z5("visible"),Kde=Le({...Nz,...Hde,...cr,...Jv,...Bz,showArrow:{type:Boolean,default:!0}}),Ude=[...Gde,"before-show","before-hide","show","hide","open","close"],Yde=(e,t)=>He(e)?e.includes(t):e===t,Rc=(e,t,n)=>r=>{Yde(y(e),t)&&n(r)},jde=ne({name:"ElTooltipTrigger"}),qde=ne({...jde,props:Jv,setup(e,{expose:t}){const n=e,r=Me("tooltip"),{controlled:a,id:i,open:o,onOpen:s,onClose:l,onToggle:u}=Ge(a1,void 0),c=H(null),f=()=>{if(y(a)||n.disabled)return!0},d=kn(n,"trigger"),h=In(f,Rc(d,"hover",s)),v=In(f,Rc(d,"hover",l)),p=In(f,Rc(d,"click",w=>{w.button===0&&u(w)})),g=In(f,Rc(d,"focus",s)),m=In(f,Rc(d,"focus",l)),b=In(f,Rc(d,"contextmenu",w=>{w.preventDefault(),u(w)})),_=In(f,w=>{const{code:C}=w;n.triggerKeys.includes(C)&&(w.preventDefault(),u(w))});return t({triggerRef:c}),(w,C)=>(R(),ce(y(gde),{id:y(i),"virtual-ref":w.virtualRef,open:y(o),"virtual-triggering":w.virtualTriggering,class:V(y(r).e("trigger")),onBlur:y(m),onClick:y(p),onContextmenu:y(b),onFocus:y(g),onMouseenter:y(h),onMouseleave:y(v),onKeydown:y(_)},{default:re(()=>[_e(w.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var Xde=Pe(qde,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const Zde=ne({name:"ElTooltipContent",inheritAttrs:!1}),Jde=ne({...Zde,props:cr,setup(e,{expose:t}){const n=e,{selector:r}=dz(),a=Me("tooltip"),i=H(null),o=H(!1),{controlled:s,id:l,open:u,trigger:c,onClose:f,onOpen:d,onShow:h,onHide:v,onBeforeShow:p,onBeforeHide:g}=Ge(a1,void 0),m=P(()=>n.transition||`${a.namespace.value}-fade-in-linear`),b=P(()=>n.persistent);wn(()=>{o.value=!0});const _=P(()=>y(b)?!0:y(u)),w=P(()=>n.disabled?!1:y(u)),C=P(()=>n.appendTo||r.value),S=P(()=>{var O;return(O=n.style)!=null?O:{}}),x=P(()=>!y(u)),T=()=>{v()},M=()=>{if(y(s))return!0},A=In(M,()=>{n.enterable&&y(c)==="hover"&&d()}),k=In(M,()=>{y(c)==="hover"&&f()}),E=()=>{var O,$;($=(O=i.value)==null?void 0:O.updatePopper)==null||$.call(O),p==null||p()},D=()=>{g==null||g()},L=()=>{h(),N=WT(P(()=>{var O;return(O=i.value)==null?void 0:O.popperContentRef}),()=>{if(y(s))return;y(c)!=="hover"&&f()})},B=()=>{n.virtualTriggering||f()};let N;return xe(()=>y(u),O=>{O||N==null||N()},{flush:"post"}),xe(()=>n.content,()=>{var O,$;($=(O=i.value)==null?void 0:O.updatePopper)==null||$.call(O)}),t({contentRef:i}),(O,$)=>(R(),ce(Wp,{disabled:!O.teleported,to:y(C)},[q(Bn,{name:y(m),onAfterLeave:T,onBeforeEnter:E,onAfterEnter:L,onBeforeLeave:D},{default:re(()=>[y(_)?dt((R(),ce(y(Fde),St({key:0,id:y(l),ref_key:"contentRef",ref:i},O.$attrs,{"aria-label":O.ariaLabel,"aria-hidden":y(x),"boundaries-padding":O.boundariesPadding,"fallback-placements":O.fallbackPlacements,"gpu-acceleration":O.gpuAcceleration,offset:O.offset,placement:O.placement,"popper-options":O.popperOptions,strategy:O.strategy,effect:O.effect,enterable:O.enterable,pure:O.pure,"popper-class":O.popperClass,"popper-style":[O.popperStyle,y(S)],"reference-el":O.referenceEl,"trigger-target-el":O.triggerTargetEl,visible:y(w),"z-index":O.zIndex,onMouseenter:y(A),onMouseleave:y(k),onBlur:B,onClose:y(f)}),{default:re(()=>[o.value?se("v-if",!0):_e(O.$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"])),[[Kt,y(w)]]):se("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var Qde=Pe(Jde,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const ehe=["innerHTML"],the={key:1},nhe=ne({name:"ElTooltip"}),rhe=ne({...nhe,props:Kde,emits:Ude,setup(e,{expose:t,emit:n}){const r=e;Nue();const a=oi(),i=H(),o=H(),s=()=>{var m;const b=y(i);b&&((m=b.popperInstanceRef)==null||m.update())},l=H(!1),u=H(),{show:c,hide:f,hasUpdateHandler:d}=Wde({indicator:l,toggleReason:u}),{onOpen:h,onClose:v}=hz({showAfter:kn(r,"showAfter"),hideAfter:kn(r,"hideAfter"),autoClose:kn(r,"autoClose"),open:c,close:f}),p=P(()=>Un(r.visible)&&!d.value);Et(a1,{controlled:p,id:a,open:wd(l),trigger:kn(r,"trigger"),onOpen:m=>{h(m)},onClose:m=>{v(m)},onToggle:m=>{y(l)?v(m):h(m)},onShow:()=>{n("show",u.value)},onHide:()=>{n("hide",u.value)},onBeforeShow:()=>{n("before-show",u.value)},onBeforeHide:()=>{n("before-hide",u.value)},updatePopper:s}),xe(()=>r.disabled,m=>{m&&l.value&&(l.value=!1)});const g=m=>{var b,_;const w=(_=(b=o.value)==null?void 0:b.contentRef)==null?void 0:_.popperContentRef,C=(m==null?void 0:m.relatedTarget)||document.activeElement;return w&&w.contains(C)};return tV(()=>l.value&&f()),t({popperRef:i,contentRef:o,isFocusInsideContent:g,updatePopper:s,onOpen:h,onClose:v,hide:f}),(m,b)=>(R(),ce(y(Wz),{ref_key:"popperRef",ref:i,role:m.role},{default:re(()=>[q(Xde,{disabled:m.disabled,trigger:m.trigger,"trigger-keys":m.triggerKeys,"virtual-ref":m.virtualRef,"virtual-triggering":m.virtualTriggering},{default:re(()=>[m.$slots.default?_e(m.$slots,"default",{key:0}):se("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),q(Qde,{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:re(()=>[_e(m.$slots,"content",{},()=>[m.rawContent?(R(),K("span",{key:0,innerHTML:m.content},null,8,ehe)):(R(),K("span",the,De(m.content),1))]),m.showArrow?(R(),ce(y(dde),{key:0,"arrow-offset":m.arrowOffset},null,8,["arrow-offset"])):se("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 ahe=Pe(rhe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);const ea=_t(ahe),ihe=Le({valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:ue(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:ue([Function,Array]),default:rn},popperClass:{type:String,default:""},triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:{type:Boolean,default:!1},hideLoading:{type:Boolean,default:!1},label:{type:String},teleported:cr.teleported,highlightFirstItem:{type:Boolean,default:!1},fitInputWidth:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},name:String}),ohe={[wt]:e=>lt(e),[qr]:e=>lt(e),[mn]:e=>lt(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,select:e=>Mt(e)},she=["aria-expanded","aria-owns"],lhe={key:0},uhe=["id","aria-selected","onClick"],Kz="ElAutocomplete",che=ne({name:Kz,inheritAttrs:!1}),fhe=ne({...che,props:ihe,emits:ohe,setup(e,{expose:t,emit:n}){const r=e,a=hM(),i=mc(),o=wa(),s=Me("autocomplete"),l=H(),u=H(),c=H(),f=H();let d=!1,h=!1;const v=H([]),p=H(-1),g=H(""),m=H(!1),b=H(!1),_=H(!1),w=P(()=>s.b(String(Xb()))),C=P(()=>i.style),S=P(()=>(v.value.length>0||_.value)&&m.value),x=P(()=>!r.hideLoading&&_.value),T=P(()=>l.value?Array.from(l.value.$el.querySelectorAll("input")):[]),M=()=>{S.value&&(g.value=`${l.value.$el.offsetWidth}px`)},A=()=>{p.value=-1},E=Qr(async Q=>{if(b.value)return;const ee=j=>{_.value=!1,!b.value&&(He(j)?(v.value=j,p.value=r.highlightFirstItem?0:-1):jn(Kz,"autocomplete suggestions must be an array"))};if(_.value=!0,He(r.fetchSuggestions))ee(r.fetchSuggestions);else{const j=await r.fetchSuggestions(Q,ee);He(j)&&ee(j)}},r.debounce),D=Q=>{const ee=!!Q;if(n(qr,Q),n(wt,Q),b.value=!1,m.value||(m.value=ee),!r.triggerOnFocus&&!Q){b.value=!0,v.value=[];return}E(Q)},L=Q=>{var ee;o.value||(((ee=Q.target)==null?void 0:ee.tagName)!=="INPUT"||T.value.includes(document.activeElement))&&(m.value=!0)},B=Q=>{n(mn,Q)},N=Q=>{h?h=!1:(m.value=!0,n("focus",Q),r.triggerOnFocus&&!d&&E(String(r.modelValue)))},O=Q=>{setTimeout(()=>{var ee;if((ee=c.value)!=null&&ee.isFocusInsideContent()){h=!0;return}m.value&&G(),n("blur",Q)})},$=()=>{m.value=!1,n(wt,""),n("clear")},I=async()=>{S.value&&p.value>=0&&p.value<v.value.length?ae(v.value[p.value]):r.selectWhenUnmatched&&(n("select",{value:r.modelValue}),v.value=[],p.value=-1)},z=Q=>{S.value&&(Q.preventDefault(),Q.stopPropagation(),G())},G=()=>{m.value=!1},U=()=>{var Q;(Q=l.value)==null||Q.focus()},Z=()=>{var Q;(Q=l.value)==null||Q.blur()},ae=async Q=>{n(qr,Q[r.valueKey]),n(wt,Q[r.valueKey]),n("select",Q),v.value=[],p.value=-1},J=Q=>{if(!S.value||_.value)return;if(Q<0){p.value=-1;return}Q>=v.value.length&&(Q=v.value.length-1);const ee=u.value.querySelector(`.${s.be("suggestion","wrap")}`),de=ee.querySelectorAll(`.${s.be("suggestion","list")} li`)[Q],ve=ee.scrollTop,{offsetTop:ie,scrollHeight:W}=de;ie+W>ve+ee.clientHeight&&(ee.scrollTop+=W),ie<ve&&(ee.scrollTop-=W),p.value=Q,l.value.ref.setAttribute("aria-activedescendant",`${w.value}-item-${p.value}`)};return WT(f,()=>{S.value&&G()}),yt(()=>{l.value.ref.setAttribute("role","textbox"),l.value.ref.setAttribute("aria-autocomplete","list"),l.value.ref.setAttribute("aria-controls","id"),l.value.ref.setAttribute("aria-activedescendant",`${w.value}-item-${p.value}`),d=l.value.ref.hasAttribute("readonly")}),t({highlightedIndex:p,activated:m,loading:_,inputRef:l,popperRef:c,suggestions:v,handleSelect:ae,handleKeyEnter:I,focus:U,blur:Z,close:G,highlight:J}),(Q,ee)=>(R(),ce(y(ea),{ref_key:"popperRef",ref:c,visible:y(S),placement:Q.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[y(s).e("popper"),Q.popperClass],teleported:Q.teleported,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${y(s).namespace.value}-zoom-in-top`,persistent:"",role:"listbox",onBeforeShow:M,onHide:A},{content:re(()=>[Y("div",{ref_key:"regionRef",ref:u,class:V([y(s).b("suggestion"),y(s).is("loading",y(x))]),style:Ye({[Q.fitInputWidth?"width":"minWidth"]:g.value,outline:"none"}),role:"region"},[q(y(hs),{id:y(w),tag:"ul","wrap-class":y(s).be("suggestion","wrap"),"view-class":y(s).be("suggestion","list"),role:"listbox"},{default:re(()=>[y(x)?(R(),K("li",lhe,[q(y(Ke),{class:V(y(s).is("loading"))},{default:re(()=>[q(y(kl))]),_:1},8,["class"])])):(R(!0),K(je,{key:1},Ot(v.value,(j,de)=>(R(),K("li",{id:`${y(w)}-item-${de}`,key:de,class:V({highlighted:p.value===de}),role:"option","aria-selected":p.value===de,onClick:ve=>ae(j)},[_e(Q.$slots,"default",{item:j},()=>[Ut(De(j[Q.valueKey]),1)])],10,uhe))),128))]),_:3},8,["id","wrap-class","view-class"])],6)]),default:re(()=>[Y("div",{ref_key:"listboxRef",ref:f,class:V([y(s).b(),Q.$attrs.class]),style:Ye(y(C)),role:"combobox","aria-haspopup":"listbox","aria-expanded":y(S),"aria-owns":y(w)},[q(y(Rr),St({ref_key:"inputRef",ref:l},y(a),{clearable:Q.clearable,disabled:y(o),name:Q.name,"model-value":Q.modelValue,onInput:D,onChange:B,onFocus:N,onBlur:O,onClear:$,onKeydown:[ee[0]||(ee[0]=Ft(tt(j=>J(p.value-1),["prevent"]),["up"])),ee[1]||(ee[1]=Ft(tt(j=>J(p.value+1),["prevent"]),["down"])),Ft(I,["enter"]),Ft(G,["tab"]),Ft(z,["esc"])],onMousedown:L}),Jo({_:2},[Q.$slots.prepend?{name:"prepend",fn:re(()=>[_e(Q.$slots,"prepend")])}:void 0,Q.$slots.append?{name:"append",fn:re(()=>[_e(Q.$slots,"append")])}:void 0,Q.$slots.prefix?{name:"prefix",fn:re(()=>[_e(Q.$slots,"prefix")])}:void 0,Q.$slots.suffix?{name:"suffix",fn:re(()=>[_e(Q.$slots,"suffix")])}:void 0]),1040,["clearable","disabled","name","model-value","onKeydown"])],14,she)]),_:3},8,["visible","placement","popper-class","teleported","transition"]))}});var dhe=Pe(fhe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/autocomplete/src/autocomplete.vue"]]);const hhe=_t(dhe),vhe=Le({size:{type:[Number,String],values:Mo,default:"",validator:e=>at(e)},shape:{type:String,values:["circle","square"],default:"circle"},icon:{type:fn},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:ue(String),default:"cover"}}),phe={error:e=>e instanceof Event},ghe=["src","alt","srcset"],mhe=ne({name:"ElAvatar"}),yhe=ne({...mhe,props:vhe,emits:phe,setup(e,{emit:t}){const n=e,r=Me("avatar"),a=H(!1),i=P(()=>{const{size:u,icon:c,shape:f}=n,d=[r.b()];return lt(u)&&d.push(r.m(u)),c&&d.push(r.m("icon")),f&&d.push(r.m(f)),d}),o=P(()=>{const{size:u}=n;return at(u)?r.cssVarBlock({size:On(u)||""}):void 0}),s=P(()=>({objectFit:n.fit}));xe(()=>n.src,()=>a.value=!1);function l(u){a.value=!0,t("error",u)}return(u,c)=>(R(),K("span",{class:V(y(i)),style:Ye(y(o))},[(u.src||u.srcSet)&&!a.value?(R(),K("img",{key:0,src:u.src,alt:u.alt,srcset:u.srcSet,style:Ye(y(s)),onError:l},null,44,ghe)):u.icon?(R(),ce(y(Ke),{key:1},{default:re(()=>[(R(),ce(Ct(u.icon)))]),_:1})):_e(u.$slots,"default",{key:2})],6))}});var bhe=Pe(yhe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/avatar/src/avatar.vue"]]);const _he=_t(bhe),whe={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},She={click:e=>e instanceof MouseEvent},Che=(e,t,n)=>{const r=un(),a=un(),i=H(!1),o=()=>{r.value&&(i.value=r.value.scrollTop>=e.visibilityHeight)},s=u=>{var c;(c=r.value)==null||c.scrollTo({top:0,behavior:"smooth"}),t("click",u)},l=XV(o,300,!0);return bn(a,"scroll",l),yt(()=>{var u;a.value=document,r.value=document.documentElement,e.target&&(r.value=(u=document.querySelector(e.target))!=null?u:void 0,r.value||jn(n,`target does not exist: ${e.target}`),a.value=r.value),o()}),{visible:i,handleClick:s}},Uz="ElBacktop",xhe=ne({name:Uz}),The=ne({...xhe,props:whe,emits:She,setup(e,{emit:t}){const n=e,r=Me("backtop"),{handleClick:a,visible:i}=Che(n,t,Uz),o=P(()=>({right:`${n.right}px`,bottom:`${n.bottom}px`}));return(s,l)=>(R(),ce(Bn,{name:`${y(r).namespace.value}-fade-in`},{default:re(()=>[y(i)?(R(),K("div",{key:0,style:Ye(y(o)),class:V(y(r).b()),onClick:l[0]||(l[0]=tt((...u)=>y(a)&&y(a)(...u),["stop"]))},[_e(s.$slots,"default",{},()=>[q(y(Ke),{class:V(y(r).e("icon"))},{default:re(()=>[q(y(Rae))]),_:1},8,["class"])])],6)):se("v-if",!0)]),_:3},8,["name"]))}});var Mhe=Pe(The,[["__file","/home/runner/work/element-plus/element-plus/packages/components/backtop/src/backtop.vue"]]);const khe=_t(Mhe),Ahe=Le({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"}}),Ehe=["textContent"],Ihe=ne({name:"ElBadge"}),Dhe=ne({...Ihe,props:Ahe,setup(e,{expose:t}){const n=e,r=Me("badge"),a=P(()=>n.isDot?"":at(n.value)&&at(n.max)?n.max<n.value?`${n.max}+`:`${n.value}`:`${n.value}`);return t({content:a}),(i,o)=>(R(),K("div",{class:V(y(r).b())},[_e(i.$slots,"default"),q(Bn,{name:`${y(r).namespace.value}-zoom-in-center`,persisted:""},{default:re(()=>[dt(Y("sup",{class:V([y(r).e("content"),y(r).em("content",i.type),y(r).is("fixed",!!i.$slots.default),y(r).is("dot",i.isDot)]),textContent:De(y(a))},null,10,Ehe),[[Kt,!i.hidden&&(y(a)||i.isDot)]])]),_:1},8,["name"])],2))}});var Phe=Pe(Dhe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);const Yz=_t(Phe),jz=Symbol("breadcrumbKey"),Lhe=Le({separator:{type:String,default:"/"},separatorIcon:{type:fn}}),Rhe=ne({name:"ElBreadcrumb"}),Ohe=ne({...Rhe,props:Lhe,setup(e){const t=e,n=Me("breadcrumb"),r=H();return Et(jz,t),yt(()=>{const a=r.value.querySelectorAll(`.${n.e("item")}`);a.length&&a[a.length-1].setAttribute("aria-current","page")}),(a,i)=>(R(),K("div",{ref_key:"breadcrumb",ref:r,class:V(y(n).b()),"aria-label":"Breadcrumb",role:"navigation"},[_e(a.$slots,"default")],2))}});var $he=Pe(Ohe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb.vue"]]);const Nhe=Le({to:{type:ue([String,Object]),default:""},replace:{type:Boolean,default:!1}}),Bhe=ne({name:"ElBreadcrumbItem"}),Vhe=ne({...Bhe,props:Nhe,setup(e){const t=e,n=gt(),r=Ge(jz,void 0),a=Me("breadcrumb"),i=n.appContext.config.globalProperties.$router,o=H(),s=()=>{!t.to||!i||(t.replace?i.replace(t.to):i.push(t.to))};return(l,u)=>{var c,f;return R(),K("span",{class:V(y(a).e("item"))},[Y("span",{ref_key:"link",ref:o,class:V([y(a).e("inner"),y(a).is("link",!!l.to)]),role:"link",onClick:s},[_e(l.$slots,"default")],2),(c=y(r))!=null&&c.separatorIcon?(R(),ce(y(Ke),{key:0,class:V(y(a).e("separator"))},{default:re(()=>[(R(),ce(Ct(y(r).separatorIcon)))]),_:1},8,["class"])):(R(),K("span",{key:1,class:V(y(a).e("separator")),role:"presentation"},De((f=y(r))==null?void 0:f.separator),3))],2)}}});var qz=Pe(Vhe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb-item.vue"]]);const zhe=_t($he,{BreadcrumbItem:qz}),Fhe=Dn(qz),Xz=Symbol("buttonGroupContextKey"),Hhe=(e,t)=>{bo({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},P(()=>e.type==="text"));const n=Ge(Xz,void 0),r=e1("button"),{form:a}=aa(),i=qn(P(()=>n==null?void 0:n.size)),o=wa(),s=H(),l=Mr(),u=P(()=>e.type||(n==null?void 0:n.type)||""),c=P(()=>{var v,p,g;return(g=(p=e.autoInsertSpace)!=null?p:(v=r.value)==null?void 0:v.autoInsertSpace)!=null?g:!1}),f=P(()=>e.tag==="button"?{ariaDisabled:o.value||e.loading,disabled:o.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),d=P(()=>{var v;const p=(v=l.default)==null?void 0:v.call(l);if(c.value&&(p==null?void 0:p.length)===1){const g=p[0];if((g==null?void 0:g.type)===Sd){const m=g.children;return/^\p{Unified_Ideograph}{2}$/u.test(m.trim())}}return!1});return{_disabled:o,_size:i,_type:u,_ref:s,_props:f,shouldAddSpace:d,handleClick:v=>{e.nativeType==="reset"&&(a==null||a.resetFields()),t("click",v)}}},$C=["default","primary","success","warning","info","danger","text",""],Ghe=["button","submit","reset"],NC=Le({size:Sr,disabled:Boolean,type:{type:String,values:$C,default:""},icon:{type:fn},nativeType:{type:String,values:Ghe,default:"button"},loading:Boolean,loadingIcon:{type:fn,default:()=>kl},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:ue([String,Object]),default:"button"}}),Whe={click:e=>e instanceof MouseEvent};function br(e,t){Khe(e)&&(e="100%");var n=Uhe(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function Kg(e){return Math.min(1,Math.max(0,e))}function Khe(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Uhe(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Zz(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Ug(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Du(e){return e.length===1?"0"+e:String(e)}function Yhe(e,t,n){return{r:br(e,255)*255,g:br(t,255)*255,b:br(n,255)*255}}function gP(e,t,n){e=br(e,255),t=br(t,255),n=br(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),i=0,o=0,s=(r+a)/2;if(r===a)o=0,i=0;else{var l=r-a;switch(o=s>.5?l/(2-r-a):l/(r+a),r){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4;break}i/=6}return{h:i,s:o,l:s}}function __(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function jhe(e,t,n){var r,a,i;if(e=br(e,360),t=br(t,100),n=br(n,100),t===0)a=n,i=n,r=n;else{var o=n<.5?n*(1+t):n+t-n*t,s=2*n-o;r=__(s,o,e+1/3),a=__(s,o,e),i=__(s,o,e-1/3)}return{r:r*255,g:a*255,b:i*255}}function mP(e,t,n){e=br(e,255),t=br(t,255),n=br(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),i=0,o=r,s=r-a,l=r===0?0:s/r;if(r===a)i=0;else{switch(r){case e:i=(t-n)/s+(t<n?6:0);break;case t:i=(n-e)/s+2;break;case n:i=(e-t)/s+4;break}i/=6}return{h:i,s:l,v:o}}function qhe(e,t,n){e=br(e,360)*6,t=br(t,100),n=br(n,100);var r=Math.floor(e),a=e-r,i=n*(1-t),o=n*(1-a*t),s=n*(1-(1-a)*t),l=r%6,u=[n,o,i,i,s,n][l],c=[s,n,n,o,i,i][l],f=[i,i,s,n,n,o][l];return{r:u*255,g:c*255,b:f*255}}function yP(e,t,n,r){var a=[Du(Math.round(e).toString(16)),Du(Math.round(t).toString(16)),Du(Math.round(n).toString(16))];return r&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function Xhe(e,t,n,r,a){var i=[Du(Math.round(e).toString(16)),Du(Math.round(t).toString(16)),Du(Math.round(n).toString(16)),Du(Zhe(r))];return a&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function Zhe(e){return Math.round(parseFloat(e)*255).toString(16)}function bP(e){return Ca(e)/255}function Ca(e){return parseInt(e,16)}function Jhe(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var BC={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 Qhe(e){var t={r:0,g:0,b:0},n=1,r=null,a=null,i=null,o=!1,s=!1;return typeof e=="string"&&(e=nve(e)),typeof e=="object"&&(Do(e.r)&&Do(e.g)&&Do(e.b)?(t=Yhe(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Do(e.h)&&Do(e.s)&&Do(e.v)?(r=Ug(e.s),a=Ug(e.v),t=qhe(e.h,r,a),o=!0,s="hsv"):Do(e.h)&&Do(e.s)&&Do(e.l)&&(r=Ug(e.s),i=Ug(e.l),t=jhe(e.h,r,i),o=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Zz(n),{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:n}}var eve="[-\\+]?\\d+%?",tve="[-\\+]?\\d*\\.\\d+%?",Hs="(?:".concat(tve,")|(?:").concat(eve,")"),w_="[\\s|\\(]+(".concat(Hs,")[,|\\s]+(").concat(Hs,")[,|\\s]+(").concat(Hs,")\\s*\\)?"),S_="[\\s|\\(]+(".concat(Hs,")[,|\\s]+(").concat(Hs,")[,|\\s]+(").concat(Hs,")[,|\\s]+(").concat(Hs,")\\s*\\)?"),bi={CSS_UNIT:new RegExp(Hs),rgb:new RegExp("rgb"+w_),rgba:new RegExp("rgba"+S_),hsl:new RegExp("hsl"+w_),hsla:new RegExp("hsla"+S_),hsv:new RegExp("hsv"+w_),hsva:new RegExp("hsva"+S_),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 nve(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(BC[e])e=BC[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=bi.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=bi.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=bi.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=bi.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=bi.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=bi.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=bi.hex8.exec(e),n?{r:Ca(n[1]),g:Ca(n[2]),b:Ca(n[3]),a:bP(n[4]),format:t?"name":"hex8"}:(n=bi.hex6.exec(e),n?{r:Ca(n[1]),g:Ca(n[2]),b:Ca(n[3]),format:t?"name":"hex"}:(n=bi.hex4.exec(e),n?{r:Ca(n[1]+n[1]),g:Ca(n[2]+n[2]),b:Ca(n[3]+n[3]),a:bP(n[4]+n[4]),format:t?"name":"hex8"}:(n=bi.hex3.exec(e),n?{r:Ca(n[1]+n[1]),g:Ca(n[2]+n[2]),b:Ca(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Do(e){return!!bi.CSS_UNIT.exec(String(e))}var Jz=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=Jhe(t)),this.originalInput=t;var a=Qhe(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:a.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,a,i=t.r/255,o=t.g/255,s=t.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),o<=.03928?r=o/12.92:r=Math.pow((o+.055)/1.055,2.4),s<=.03928?a=s/12.92:a=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*a},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=Zz(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=mP(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=mP(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),a=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(a,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=gP(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=gP(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),a=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(a,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),yP(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),Xhe(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(br(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(br(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+yP(this.r,this.g,this.b,!1),n=0,r=Object.entries(BC);n<r.length;n++){var a=r[n],i=a[0],o=a[1];if(t===o)return i}return!1},e.prototype.toString=function(t){var n=!!t;t=t??this.format;var r=!1,a=this.a<1&&this.a>=0,i=!n&&a&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=Kg(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=Kg(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=Kg(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=Kg(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),a=new e(t).toRgb(),i=n/100,o={r:(a.r-r.r)*i+r.r,g:(a.g-r.g)*i+r.g,b:(a.b-r.b)*i+r.b,a:(a.a-r.a)*i+r.a};return new e(o)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),a=360/n,i=[this];for(r.h=(r.h-(a*t>>1)+720)%360;--t;)r.h=(r.h+a)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,a=n.s,i=n.v,o=[],s=1/t;t--;)o.push(new e({h:r,s:a,v:i})),i=(i+s)%1;return o},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),a=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/a,g:(n.g*n.a+r.g*r.a*(1-n.a))/a,b:(n.b*n.a+r.b*r.a*(1-n.a))/a,a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,a=[this],i=360/t,o=1;o<t;o++)a.push(new e({h:(r+o*i)%360,s:n.s,l:n.l}));return a},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function ws(e,t=20){return e.mix("#141414",t).toString()}function rve(e){const t=wa(),n=Me("button");return P(()=>{let r={};const a=e.color;if(a){const i=new Jz(a),o=e.dark?i.tint(20).toString():ws(i,20);if(e.plain)r=n.cssVarBlock({"bg-color":e.dark?ws(i,90):i.tint(90).toString(),"text-color":a,"border-color":e.dark?ws(i,50):i.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":a,"hover-border-color":a,"active-bg-color":o,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":o}),t.value&&(r[n.cssVarBlockName("disabled-bg-color")]=e.dark?ws(i,90):i.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=e.dark?ws(i,50):i.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=e.dark?ws(i,80):i.tint(80).toString());else{const s=e.dark?ws(i,30):i.tint(30).toString(),l=i.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(r=n.cssVarBlock({"bg-color":a,"text-color":l,"border-color":a,"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?ws(i,50):i.tint(50).toString();r[n.cssVarBlockName("disabled-bg-color")]=u,r[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,r[n.cssVarBlockName("disabled-border-color")]=u}}}return r})}const ave=ne({name:"ElButton"}),ive=ne({...ave,props:NC,emits:Whe,setup(e,{expose:t,emit:n}){const r=e,a=rve(r),i=Me("button"),{_ref:o,_size:s,_type:l,_disabled:u,_props:c,shouldAddSpace:f,handleClick:d}=Hhe(r,n);return t({ref:o,size:s,type:l,disabled:u,shouldAddSpace:f}),(h,v)=>(R(),ce(Ct(h.tag),St({ref_key:"_ref",ref:o},y(c),{class:[y(i).b(),y(i).m(y(l)),y(i).m(y(s)),y(i).is("disabled",y(u)),y(i).is("loading",h.loading),y(i).is("plain",h.plain),y(i).is("round",h.round),y(i).is("circle",h.circle),y(i).is("text",h.text),y(i).is("link",h.link),y(i).is("has-bg",h.bg)],style:y(a),onClick:y(d)}),{default:re(()=>[h.loading?(R(),K(je,{key:0},[h.$slots.loading?_e(h.$slots,"loading",{key:0}):(R(),ce(y(Ke),{key:1,class:V(y(i).is("loading"))},{default:re(()=>[(R(),ce(Ct(h.loadingIcon)))]),_:1},8,["class"]))],64)):h.icon||h.$slots.icon?(R(),ce(y(Ke),{key:1},{default:re(()=>[h.icon?(R(),ce(Ct(h.icon),{key:0})):_e(h.$slots,"icon",{key:1})]),_:3})):se("v-if",!0),h.$slots.default?(R(),K("span",{key:2,class:V({[y(i).em("text","expand")]:y(f)})},[_e(h.$slots,"default")],2)):se("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var ove=Pe(ive,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const sve={size:NC.size,type:NC.type},lve=ne({name:"ElButtonGroup"}),uve=ne({...lve,props:sve,setup(e){const t=e;Et(Xz,jt({size:kn(t,"size"),type:kn(t,"type")}));const n=Me("button");return(r,a)=>(R(),K("div",{class:V(`${y(n).b("group")}`)},[_e(r.$slots,"default")],2))}});var Qz=Pe(uve,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const _r=_t(ove,{ButtonGroup:Qz}),eF=Dn(Qz);var vs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ko(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var tF={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(vs,function(){var n=1e3,r=6e4,a=36e5,i="millisecond",o="second",s="minute",l="hour",u="day",c="week",f="month",d="quarter",h="year",v="date",p="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(L){var B=["th","st","nd","rd"],N=L%100;return"["+L+(B[(N-20)%10]||B[N]||B[0])+"]"}},_=function(L,B,N){var O=String(L);return!O||O.length>=B?L:""+Array(B+1-O.length).join(N)+L},w={s:_,z:function(L){var B=-L.utcOffset(),N=Math.abs(B),O=Math.floor(N/60),$=N%60;return(B<=0?"+":"-")+_(O,2,"0")+":"+_($,2,"0")},m:function L(B,N){if(B.date()<N.date())return-L(N,B);var O=12*(N.year()-B.year())+(N.month()-B.month()),$=B.clone().add(O,f),I=N-$<0,z=B.clone().add(O+(I?-1:1),f);return+(-(O+(N-$)/(I?$-z:z-$))||0)},a:function(L){return L<0?Math.ceil(L)||0:Math.floor(L)},p:function(L){return{M:f,y:h,w:c,d:u,D:v,h:l,m:s,s:o,ms:i,Q:d}[L]||String(L||"").toLowerCase().replace(/s$/,"")},u:function(L){return L===void 0}},C="en",S={};S[C]=b;var x="$isDayjsObject",T=function(L){return L instanceof E||!(!L||!L[x])},M=function L(B,N,O){var $;if(!B)return C;if(typeof B=="string"){var I=B.toLowerCase();S[I]&&($=I),N&&(S[I]=N,$=I);var z=B.split("-");if(!$&&z.length>1)return L(z[0])}else{var G=B.name;S[G]=B,$=G}return!O&&$&&(C=$),$||!O&&C},A=function(L,B){if(T(L))return L.clone();var N=typeof B=="object"?B:{};return N.date=L,N.args=arguments,new E(N)},k=w;k.l=M,k.i=T,k.w=function(L,B){return A(L,{locale:B.$L,utc:B.$u,x:B.$x,$offset:B.$offset})};var E=function(){function L(N){this.$L=M(N.locale,null,!0),this.parse(N),this.$x=this.$x||N.x||{},this[x]=!0}var B=L.prototype;return B.parse=function(N){this.$d=function(O){var $=O.date,I=O.utc;if($===null)return new Date(NaN);if(k.u($))return new Date;if($ instanceof Date)return new Date($);if(typeof $=="string"&&!/Z$/i.test($)){var z=$.match(g);if(z){var G=z[2]-1||0,U=(z[7]||"0").substring(0,3);return I?new Date(Date.UTC(z[1],G,z[3]||1,z[4]||0,z[5]||0,z[6]||0,U)):new Date(z[1],G,z[3]||1,z[4]||0,z[5]||0,z[6]||0,U)}}return new Date($)}(N),this.init()},B.init=function(){var N=this.$d;this.$y=N.getFullYear(),this.$M=N.getMonth(),this.$D=N.getDate(),this.$W=N.getDay(),this.$H=N.getHours(),this.$m=N.getMinutes(),this.$s=N.getSeconds(),this.$ms=N.getMilliseconds()},B.$utils=function(){return k},B.isValid=function(){return this.$d.toString()!==p},B.isSame=function(N,O){var $=A(N);return this.startOf(O)<=$&&$<=this.endOf(O)},B.isAfter=function(N,O){return A(N)<this.startOf(O)},B.isBefore=function(N,O){return this.endOf(O)<A(N)},B.$g=function(N,O,$){return k.u(N)?this[O]:this.set($,N)},B.unix=function(){return Math.floor(this.valueOf()/1e3)},B.valueOf=function(){return this.$d.getTime()},B.startOf=function(N,O){var $=this,I=!!k.u(O)||O,z=k.p(N),G=function(de,ve){var ie=k.w($.$u?Date.UTC($.$y,ve,de):new Date($.$y,ve,de),$);return I?ie:ie.endOf(u)},U=function(de,ve){return k.w($.toDate()[de].apply($.toDate("s"),(I?[0,0,0,0]:[23,59,59,999]).slice(ve)),$)},Z=this.$W,ae=this.$M,J=this.$D,Q="set"+(this.$u?"UTC":"");switch(z){case h:return I?G(1,0):G(31,11);case f:return I?G(1,ae):G(0,ae+1);case c:var ee=this.$locale().weekStart||0,j=(Z<ee?Z+7:Z)-ee;return G(I?J-j:J+(6-j),ae);case u:case v:return U(Q+"Hours",0);case l:return U(Q+"Minutes",1);case s:return U(Q+"Seconds",2);case o:return U(Q+"Milliseconds",3);default:return this.clone()}},B.endOf=function(N){return this.startOf(N,!1)},B.$set=function(N,O){var $,I=k.p(N),z="set"+(this.$u?"UTC":""),G=($={},$[u]=z+"Date",$[v]=z+"Date",$[f]=z+"Month",$[h]=z+"FullYear",$[l]=z+"Hours",$[s]=z+"Minutes",$[o]=z+"Seconds",$[i]=z+"Milliseconds",$)[I],U=I===u?this.$D+(O-this.$W):O;if(I===f||I===h){var Z=this.clone().set(v,1);Z.$d[G](U),Z.init(),this.$d=Z.set(v,Math.min(this.$D,Z.daysInMonth())).$d}else G&&this.$d[G](U);return this.init(),this},B.set=function(N,O){return this.clone().$set(N,O)},B.get=function(N){return this[k.p(N)]()},B.add=function(N,O){var $,I=this;N=Number(N);var z=k.p(O),G=function(ae){var J=A(I);return k.w(J.date(J.date()+Math.round(ae*N)),I)};if(z===f)return this.set(f,this.$M+N);if(z===h)return this.set(h,this.$y+N);if(z===u)return G(1);if(z===c)return G(7);var U=($={},$[s]=r,$[l]=a,$[o]=n,$)[z]||1,Z=this.$d.getTime()+N*U;return k.w(Z,this)},B.subtract=function(N,O){return this.add(-1*N,O)},B.format=function(N){var O=this,$=this.$locale();if(!this.isValid())return $.invalidDate||p;var I=N||"YYYY-MM-DDTHH:mm:ssZ",z=k.z(this),G=this.$H,U=this.$m,Z=this.$M,ae=$.weekdays,J=$.months,Q=$.meridiem,ee=function(ve,ie,W,X){return ve&&(ve[ie]||ve(O,I))||W[ie].slice(0,X)},j=function(ve){return k.s(G%12||12,ve,"0")},de=Q||function(ve,ie,W){var X=ve<12?"AM":"PM";return W?X.toLowerCase():X};return I.replace(m,function(ve,ie){return ie||function(W){switch(W){case"YY":return String(O.$y).slice(-2);case"YYYY":return k.s(O.$y,4,"0");case"M":return Z+1;case"MM":return k.s(Z+1,2,"0");case"MMM":return ee($.monthsShort,Z,J,3);case"MMMM":return ee(J,Z);case"D":return O.$D;case"DD":return k.s(O.$D,2,"0");case"d":return String(O.$W);case"dd":return ee($.weekdaysMin,O.$W,ae,2);case"ddd":return ee($.weekdaysShort,O.$W,ae,3);case"dddd":return ae[O.$W];case"H":return String(G);case"HH":return k.s(G,2,"0");case"h":return j(1);case"hh":return j(2);case"a":return de(G,U,!0);case"A":return de(G,U,!1);case"m":return String(U);case"mm":return k.s(U,2,"0");case"s":return String(O.$s);case"ss":return k.s(O.$s,2,"0");case"SSS":return k.s(O.$ms,3,"0");case"Z":return z}return null}(ve)||z.replace(":","")})},B.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},B.diff=function(N,O,$){var I,z=this,G=k.p(O),U=A(N),Z=(U.utcOffset()-this.utcOffset())*r,ae=this-U,J=function(){return k.m(z,U)};switch(G){case h:I=J()/12;break;case f:I=J();break;case d:I=J()/3;break;case c:I=(ae-Z)/6048e5;break;case u:I=(ae-Z)/864e5;break;case l:I=ae/a;break;case s:I=ae/r;break;case o:I=ae/n;break;default:I=ae}return $?I:k.a(I)},B.daysInMonth=function(){return this.endOf(f).$D},B.$locale=function(){return S[this.$L]},B.locale=function(N,O){if(!N)return this.$L;var $=this.clone(),I=M(N,O,!0);return I&&($.$L=I),$},B.clone=function(){return k.w(this.$d,this)},B.toDate=function(){return new Date(this.valueOf())},B.toJSON=function(){return this.isValid()?this.toISOString():null},B.toISOString=function(){return this.$d.toISOString()},B.toString=function(){return this.$d.toUTCString()},L}(),D=E.prototype;return A.prototype=D,[["$ms",i],["$s",o],["$m",s],["$H",l],["$W",u],["$M",f],["$y",h],["$D",v]].forEach(function(L){D[L[1]]=function(B){return this.$g(B,L[0],L[1])}}),A.extend=function(L,B){return L.$i||(L(B,E,A),L.$i=!0),A},A.locale=M,A.isDayjs=T,A.unix=function(L){return A(1e3*L)},A.en=S[C],A.Ls=S,A.p={},A})})(tF);var cve=tF.exports;const mt=ko(cve);var nF={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(vs,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d\d/,i=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,s={},l=function(p){return(p=+p)+(p>68?1900:2e3)},u=function(p){return function(g){this[p]=+g}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(p){(this.zone||(this.zone={})).offset=function(g){if(!g||g==="Z")return 0;var m=g.match(/([+-]|\d\d)/g),b=60*m[1]+(+m[2]||0);return b===0?0:m[0]==="+"?-b:b}(p)}],f=function(p){var g=s[p];return g&&(g.indexOf?g:g.s.concat(g.f))},d=function(p,g){var m,b=s.meridiem;if(b){for(var _=1;_<=24;_+=1)if(p.indexOf(b(_,0,g))>-1){m=_>12;break}}else m=p===(g?"pm":"PM");return m},h={A:[o,function(p){this.afternoon=d(p,!1)}],a:[o,function(p){this.afternoon=d(p,!0)}],S:[/\d/,function(p){this.milliseconds=100*+p}],SS:[a,function(p){this.milliseconds=10*+p}],SSS:[/\d{3}/,function(p){this.milliseconds=+p}],s:[i,u("seconds")],ss:[i,u("seconds")],m:[i,u("minutes")],mm:[i,u("minutes")],H:[i,u("hours")],h:[i,u("hours")],HH:[i,u("hours")],hh:[i,u("hours")],D:[i,u("day")],DD:[a,u("day")],Do:[o,function(p){var g=s.ordinal,m=p.match(/\d+/);if(this.day=m[0],g)for(var b=1;b<=31;b+=1)g(b).replace(/\[|\]/g,"")===p&&(this.day=b)}],M:[i,u("month")],MM:[a,u("month")],MMM:[o,function(p){var g=f("months"),m=(f("monthsShort")||g.map(function(b){return b.slice(0,3)})).indexOf(p)+1;if(m<1)throw new Error;this.month=m%12||m}],MMMM:[o,function(p){var g=f("months").indexOf(p)+1;if(g<1)throw new Error;this.month=g%12||g}],Y:[/[+-]?\d+/,u("year")],YY:[a,function(p){this.year=l(p)}],YYYY:[/\d{4}/,u("year")],Z:c,ZZ:c};function v(p){var g,m;g=p,m=s&&s.formats;for(var b=(p=g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(M,A,k){var E=k&&k.toUpperCase();return A||m[k]||n[k]||m[E].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(D,L,B){return L||B.slice(1)})})).match(r),_=b.length,w=0;w<_;w+=1){var C=b[w],S=h[C],x=S&&S[0],T=S&&S[1];b[w]=T?{regex:x,parser:T}:C.replace(/^\[|\]$/g,"")}return function(M){for(var A={},k=0,E=0;k<_;k+=1){var D=b[k];if(typeof D=="string")E+=D.length;else{var L=D.regex,B=D.parser,N=M.slice(E),O=L.exec(N)[0];B.call(A,O),M=M.replace(O,"")}}return function($){var I=$.afternoon;if(I!==void 0){var z=$.hours;I?z<12&&($.hours+=12):z===12&&($.hours=0),delete $.afternoon}}(A),A}}return function(p,g,m){m.p.customParseFormat=!0,p&&p.parseTwoDigitYear&&(l=p.parseTwoDigitYear);var b=g.prototype,_=b.parse;b.parse=function(w){var C=w.date,S=w.utc,x=w.args;this.$u=S;var T=x[1];if(typeof T=="string"){var M=x[2]===!0,A=x[3]===!0,k=M||A,E=x[2];A&&(E=x[2]),s=this.$locale(),!M&&E&&(s=m.Ls[E]),this.$d=function(N,O,$){try{if(["x","X"].indexOf(O)>-1)return new Date((O==="X"?1e3:1)*N);var I=v(O)(N),z=I.year,G=I.month,U=I.day,Z=I.hours,ae=I.minutes,J=I.seconds,Q=I.milliseconds,ee=I.zone,j=new Date,de=U||(z||G?1:j.getDate()),ve=z||j.getFullYear(),ie=0;z&&!G||(ie=G>0?G-1:j.getMonth());var W=Z||0,X=ae||0,oe=J||0,pe=Q||0;return ee?new Date(Date.UTC(ve,ie,de,W,X,oe,pe+60*ee.offset*1e3)):$?new Date(Date.UTC(ve,ie,de,W,X,oe,pe)):new Date(ve,ie,de,W,X,oe,pe)}catch{return new Date("")}}(C,T,S),this.init(),E&&E!==!0&&(this.$L=this.locale(E).$L),k&&C!=this.format(T)&&(this.$d=new Date("")),s={}}else if(T instanceof Array)for(var D=T.length,L=1;L<=D;L+=1){x[1]=T[L-1];var B=m.apply(this,x);if(B.isValid()){this.$d=B.$d,this.$L=B.$L,this.init();break}L===D&&(this.$d=new Date(""))}else _.call(this,w)}}})})(nF);var fve=nF.exports;const OM=ko(fve),_P=["hours","minutes","seconds"],VC="HH:mm:ss",sf="YYYY-MM-DD",dve={date:sf,dates:sf,week:"gggg[w]ww",year:"YYYY",month:"YYYY-MM",datetime:`${sf} ${VC}`,monthrange:"YYYY-MM",daterange:sf,datetimerange:`${sf} ${VC}`},C_=(e,t)=>[e>0?e-1:void 0,e,e<t?e+1:void 0],el=e=>Array.from(Array.from({length:e}).keys()),rF=e=>e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),aF=e=>e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),wP=function(e,t){const n=rc(e),r=rc(t);return n&&r?e.getTime()===t.getTime():!n&&!r?e===t:!1},SP=function(e,t){const n=He(e),r=He(t);return n&&r?e.length!==t.length?!1:e.every((a,i)=>wP(a,t[i])):!n&&!r?wP(e,t):!1},CP=function(e,t,n){const r=ja(t)||t==="x"?mt(e).locale(n):mt(e,t).locale(n);return r.isValid()?r:void 0},xP=function(e,t,n){return ja(t)?e:t==="x"?+e:mt(e).locale(n).format(t)},x_=(e,t)=>{var n;const r=[],a=t==null?void 0:t();for(let i=0;i<e;i++)r.push((n=a==null?void 0:a.includes(i))!=null?n:!1);return r},iF=Le({disabledHours:{type:ue(Function)},disabledMinutes:{type:ue(Function)},disabledSeconds:{type:ue(Function)}}),oF=Le({visible:Boolean,actualVisible:{type:Boolean,default:void 0},format:{type:String,default:""}}),$M=Le({id:{type:ue([Array,String])},name:{type:ue([Array,String]),default:""},popperClass:{type:String,default:""},format:String,valueFormat:String,type:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:ue([String,Object]),default:Ml},editable:{type:Boolean,default:!0},prefixIcon:{type:ue([String,Object]),default:""},size:Sr,readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:""},popperOptions:{type:ue(Object),default:()=>({})},modelValue:{type:ue([Date,Array,String,Number]),default:""},rangeSeparator:{type:String,default:"-"},startPlaceholder:String,endPlaceholder:String,defaultValue:{type:ue([Date,Array])},defaultTime:{type:ue([Date,Array])},isRange:{type:Boolean,default:!1},...iF,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:{type:Boolean,default:!1},label:{type:String,default:void 0},tabindex:{type:ue([String,Number]),default:0},validateEvent:{type:Boolean,default:!0},unlinkPanels:Boolean}),hve=["id","name","placeholder","value","disabled","readonly"],vve=["id","name","placeholder","value","disabled","readonly"],pve=ne({name:"Picker"}),gve=ne({...pve,props:$M,emits:["update:modelValue","change","focus","blur","calendar-change","panel-change","visible-change","keydown"],setup(e,{expose:t,emit:n}){const r=e,a=mc(),{lang:i}=Ht(),o=Me("date"),s=Me("input"),l=Me("range"),{form:u,formItem:c}=aa(),f=Ge("ElPopperOptions",{}),d=H(),h=H(),v=H(!1),p=H(!1),g=H(null);let m=!1,b=!1;const _=P(()=>[o.b("editor"),o.bm("editor",r.type),s.e("wrapper"),o.is("disabled",U.value),o.is("active",v.value),l.b("editor"),me?l.bm("editor",me.value):"",a.class]),w=P(()=>[s.e("icon"),l.e("close-icon"),de.value?"":l.e("close-icon--hidden")]);xe(v,te=>{te?Ue(()=>{te&&(g.value=r.modelValue)}):(we.value=null,Ue(()=>{C(r.modelValue)}))});const C=(te,Ve)=>{(Ve||!SP(te,g.value))&&(n("change",te),r.validateEvent&&(c==null||c.validate("change").catch(st=>void 0)))},S=te=>{if(!SP(r.modelValue,te)){let Ve;He(te)?Ve=te.map(st=>xP(st,r.valueFormat,i.value)):te&&(Ve=xP(te,r.valueFormat,i.value)),n("update:modelValue",te&&Ve,i.value)}},x=te=>{n("keydown",te)},T=P(()=>{if(h.value){const te=Se.value?h.value:h.value.$el;return Array.from(te.querySelectorAll("input"))}return[]}),M=(te,Ve,st)=>{const It=T.value;It.length&&(!st||st==="min"?(It[0].setSelectionRange(te,Ve),It[0].focus()):st==="max"&&(It[1].setSelectionRange(te,Ve),It[1].focus()))},A=()=>{$(!0,!0),Ue(()=>{b=!1})},k=(te="",Ve=!1)=>{Ve||(b=!0),v.value=Ve;let st;He(te)?st=te.map(It=>It.toDate()):st=te&&te.toDate(),we.value=null,S(st)},E=()=>{p.value=!0},D=()=>{n("visible-change",!0)},L=te=>{(te==null?void 0:te.key)===Xe.esc&&$(!0,!0)},B=()=>{p.value=!1,v.value=!1,b=!1,n("visible-change",!1)},N=()=>{v.value=!0},O=()=>{v.value=!1},$=(te=!0,Ve=!1)=>{b=Ve;const[st,It]=y(T);let zn=st;!te&&Se.value&&(zn=It),zn&&zn.focus()},I=te=>{r.readonly||U.value||v.value||b||(v.value=!0,n("focus",te))};let z;const G=te=>{const Ve=async()=>{setTimeout(()=>{var st;z===Ve&&(!((st=d.value)!=null&&st.isFocusInsideContent()&&!m)&&T.value.filter(It=>It.contains(document.activeElement)).length===0&&(Te(),v.value=!1,n("blur",te),r.validateEvent&&(c==null||c.validate("blur").catch(It=>void 0))),m=!1)},0)};z=Ve,Ve()},U=P(()=>r.disabled||(u==null?void 0:u.disabled)),Z=P(()=>{let te;if(ie.value?ye.value.getDefaultValue&&(te=ye.value.getDefaultValue()):He(r.modelValue)?te=r.modelValue.map(Ve=>CP(Ve,r.valueFormat,i.value)):te=CP(r.modelValue,r.valueFormat,i.value),ye.value.getRangeAvailableTime){const Ve=ye.value.getRangeAvailableTime(te);pa(Ve,te)||(te=Ve,S(He(te)?te.map(st=>st.toDate()):te.toDate()))}return He(te)&&te.some(Ve=>!Ve)&&(te=[]),te}),ae=P(()=>{if(!ye.value.panelReady)return"";const te=Be(Z.value);return He(we.value)?[we.value[0]||te&&te[0]||"",we.value[1]||te&&te[1]||""]:we.value!==null?we.value:!Q.value&&ie.value||!v.value&&ie.value?"":te?ee.value?te.join(", "):te:""}),J=P(()=>r.type.includes("time")),Q=P(()=>r.type.startsWith("time")),ee=P(()=>r.type==="dates"),j=P(()=>r.prefixIcon||(J.value?z5:yae)),de=H(!1),ve=te=>{r.readonly||U.value||de.value&&(te.stopPropagation(),A(),S(null),C(null,!0),de.value=!1,v.value=!1,ye.value.handleClear&&ye.value.handleClear())},ie=P(()=>{const{modelValue:te}=r;return!te||He(te)&&!te.filter(Boolean).length}),W=async te=>{var Ve;r.readonly||U.value||(((Ve=te.target)==null?void 0:Ve.tagName)!=="INPUT"||T.value.includes(document.activeElement))&&(v.value=!0)},X=()=>{r.readonly||U.value||!ie.value&&r.clearable&&(de.value=!0)},oe=()=>{de.value=!1},pe=te=>{var Ve;r.readonly||U.value||(((Ve=te.touches[0].target)==null?void 0:Ve.tagName)!=="INPUT"||T.value.includes(document.activeElement))&&(v.value=!0)},Se=P(()=>r.type.includes("range")),me=qn(),Ee=P(()=>{var te,Ve;return(Ve=(te=y(d))==null?void 0:te.popperRef)==null?void 0:Ve.contentRef}),Ce=P(()=>{var te;return y(Se)?y(h):(te=y(h))==null?void 0:te.$el});WT(Ce,te=>{const Ve=y(Ee),st=y(Ce);Ve&&(te.target===Ve||te.composedPath().includes(Ve))||te.target===st||te.composedPath().includes(st)||(v.value=!1)});const we=H(null),Te=()=>{if(we.value){const te=$e(ae.value);te&&We(te)&&(S(He(te)?te.map(Ve=>Ve.toDate()):te.toDate()),we.value=null)}we.value===""&&(S(null),C(null),we.value=null)},$e=te=>te?ye.value.parseUserInput(te):null,Be=te=>te?ye.value.formatToString(te):null,We=te=>ye.value.isValidValue(te),Ae=async te=>{if(r.readonly||U.value)return;const{code:Ve}=te;if(x(te),Ve===Xe.esc){v.value===!0&&(v.value=!1,te.preventDefault(),te.stopPropagation());return}if(Ve===Xe.down&&(ye.value.handleFocusPicker&&(te.preventDefault(),te.stopPropagation()),v.value===!1&&(v.value=!0,await Ue()),ye.value.handleFocusPicker)){ye.value.handleFocusPicker();return}if(Ve===Xe.tab){m=!0;return}if(Ve===Xe.enter||Ve===Xe.numpadEnter){(we.value===null||we.value===""||We($e(ae.value)))&&(Te(),v.value=!1),te.stopPropagation();return}if(we.value){te.stopPropagation();return}ye.value.handleKeydownInput&&ye.value.handleKeydownInput(te)},Fe=te=>{we.value=te,v.value||(v.value=!0)},rt=te=>{const Ve=te.target;we.value?we.value=[Ve.value,we.value[1]]:we.value=[Ve.value,null]},vt=te=>{const Ve=te.target;we.value?we.value=[we.value[0],Ve.value]:we.value=[null,Ve.value]},kt=()=>{var te;const Ve=we.value,st=$e(Ve&&Ve[0]),It=y(Z);if(st&&st.isValid()){we.value=[Be(st),((te=ae.value)==null?void 0:te[1])||null];const zn=[st,It&&(It[1]||null)];We(zn)&&(S(zn),we.value=null)}},Qe=()=>{var te;const Ve=y(we),st=$e(Ve&&Ve[1]),It=y(Z);if(st&&st.isValid()){we.value=[((te=y(ae))==null?void 0:te[0])||null,Be(st)];const zn=[It&&It[0],st];We(zn)&&(S(zn),we.value=null)}},ye=H({}),fe=te=>{ye.value[te[0]]=te[1],ye.value.panelReady=!0},le=te=>{n("calendar-change",te)},ke=(te,Ve,st)=>{n("panel-change",te,Ve,st)};return Et("EP_PICKER_BASE",{props:r}),t({focus:$,handleFocusInput:I,handleBlurInput:G,handleOpen:N,handleClose:O,onPick:k}),(te,Ve)=>(R(),ce(y(ea),St({ref_key:"refPopper",ref:d,visible:v.value,effect:"light",pure:"",trigger:"click"},te.$attrs,{role:"dialog",teleported:"",transition:`${y(o).namespace.value}-zoom-in-top`,"popper-class":[`${y(o).namespace.value}-picker__popper`,te.popperClass],"popper-options":y(f),"fallback-placements":["bottom","top","right","left"],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:E,onShow:D,onHide:B}),{default:re(()=>[y(Se)?(R(),K("div",{key:1,ref_key:"inputRef",ref:h,class:V(y(_)),style:Ye(te.$attrs.style),onClick:I,onMouseenter:X,onMouseleave:oe,onTouchstart:pe,onKeydown:Ae},[y(j)?(R(),ce(y(Ke),{key:0,class:V([y(s).e("icon"),y(l).e("icon")]),onMousedown:tt(W,["prevent"]),onTouchstart:pe},{default:re(()=>[(R(),ce(Ct(y(j))))]),_:1},8,["class","onMousedown"])):se("v-if",!0),Y("input",{id:te.id&&te.id[0],autocomplete:"off",name:te.name&&te.name[0],placeholder:te.startPlaceholder,value:y(ae)&&y(ae)[0],disabled:y(U),readonly:!te.editable||te.readonly,class:V(y(l).b("input")),onMousedown:W,onInput:rt,onChange:kt,onFocus:I,onBlur:G},null,42,hve),_e(te.$slots,"range-separator",{},()=>[Y("span",{class:V(y(l).b("separator"))},De(te.rangeSeparator),3)]),Y("input",{id:te.id&&te.id[1],autocomplete:"off",name:te.name&&te.name[1],placeholder:te.endPlaceholder,value:y(ae)&&y(ae)[1],disabled:y(U),readonly:!te.editable||te.readonly,class:V(y(l).b("input")),onMousedown:W,onFocus:I,onBlur:G,onInput:vt,onChange:Qe},null,42,vve),te.clearIcon?(R(),ce(y(Ke),{key:1,class:V(y(w)),onClick:ve},{default:re(()=>[(R(),ce(Ct(te.clearIcon)))]),_:1},8,["class"])):se("v-if",!0)],38)):(R(),ce(y(Rr),{key:0,id:te.id,ref_key:"inputRef",ref:h,"container-role":"combobox","model-value":y(ae),name:te.name,size:y(me),disabled:y(U),placeholder:te.placeholder,class:V([y(o).b("editor"),y(o).bm("editor",te.type),te.$attrs.class]),style:Ye(te.$attrs.style),readonly:!te.editable||te.readonly||y(ee)||te.type==="week",label:te.label,tabindex:te.tabindex,"validate-event":!1,onInput:Fe,onFocus:I,onBlur:G,onKeydown:Ae,onChange:Te,onMousedown:W,onMouseenter:X,onMouseleave:oe,onTouchstart:pe,onClick:Ve[0]||(Ve[0]=tt(()=>{},["stop"]))},{prefix:re(()=>[y(j)?(R(),ce(y(Ke),{key:0,class:V(y(s).e("icon")),onMousedown:tt(W,["prevent"]),onTouchstart:pe},{default:re(()=>[(R(),ce(Ct(y(j))))]),_:1},8,["class","onMousedown"])):se("v-if",!0)]),suffix:re(()=>[de.value&&te.clearIcon?(R(),ce(y(Ke),{key:0,class:V(`${y(s).e("icon")} clear-icon`),onClick:tt(ve,["stop"])},{default:re(()=>[(R(),ce(Ct(te.clearIcon)))]),_:1},8,["class","onClick"])):se("v-if",!0)]),_:1},8,["id","model-value","name","size","disabled","placeholder","class","style","readonly","label","tabindex","onKeydown"]))]),content:re(()=>[_e(te.$slots,"default",{visible:v.value,actualVisible:p.value,parsedValue:y(Z),format:te.format,unlinkPanels:te.unlinkPanels,type:te.type,defaultValue:te.defaultValue,onPick:k,onSelectRange:M,onSetPickerOption:fe,onCalendarChange:le,onPanelChange:ke,onKeydown:L,onMousedown:Ve[1]||(Ve[1]=tt(()=>{},["stop"]))})]),_:3},16,["visible","transition","popper-class","popper-options"]))}});var sF=Pe(gve,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/common/picker.vue"]]);const mve=Le({...oF,datetimeRole:String,parsedValue:{type:ue(Object)}}),lF=({getAvailableHours:e,getAvailableMinutes:t,getAvailableSeconds:n})=>{const r=(o,s,l,u)=>{const c={hour:e,minute:t,second:n};let f=o;return["hour","minute","second"].forEach(d=>{if(c[d]){let h;const v=c[d];switch(d){case"minute":{h=v(f.hour(),s,u);break}case"second":{h=v(f.hour(),f.minute(),s,u);break}default:{h=v(s,u);break}}if(h!=null&&h.length&&!h.includes(f[d]())){const p=l?0:h.length-1;f=f[d](h[p])}}}),f},a={};return{timePickerOptions:a,getAvailableTime:r,onSetOption:([o,s])=>{a[o]=s}}},T_=e=>{const t=(r,a)=>r||a,n=r=>r!==!0;return e.map(t).filter(n)},uF=(e,t,n)=>({getHoursList:(o,s)=>x_(24,e&&(()=>e==null?void 0:e(o,s))),getMinutesList:(o,s,l)=>x_(60,t&&(()=>t==null?void 0:t(o,s,l))),getSecondsList:(o,s,l,u)=>x_(60,n&&(()=>n==null?void 0:n(o,s,l,u)))}),cF=(e,t,n)=>{const{getHoursList:r,getMinutesList:a,getSecondsList:i}=uF(e,t,n);return{getAvailableHours:(u,c)=>T_(r(u,c)),getAvailableMinutes:(u,c,f)=>T_(a(u,c,f)),getAvailableSeconds:(u,c,f,d)=>T_(i(u,c,f,d))}},fF=e=>{const t=H(e.parsedValue);return xe(()=>e.visible,n=>{n||(t.value=e.parsedValue)}),t},Ps=new Map;let TP;Vt&&(document.addEventListener("mousedown",e=>TP=e),document.addEventListener("mouseup",e=>{for(const t of Ps.values())for(const{documentHandler:n}of t)n(e,TP)}));function MP(e,t){let n=[];return Array.isArray(t.arg)?n=t.arg:ri(t.arg)&&n.push(t.arg),function(r,a){const i=t.instance.popperRef,o=r.target,s=a==null?void 0:a.target,l=!t||!t.instance,u=!o||!s,c=e.contains(o)||e.contains(s),f=e===o,d=n.length&&n.some(v=>v==null?void 0:v.contains(o))||n.length&&n.includes(s),h=i&&(i.contains(o)||i.contains(s));l||u||c||f||d||h||t.value(r,a)}}const vl={beforeMount(e,t){Ps.has(e)||Ps.set(e,[]),Ps.get(e).push({documentHandler:MP(e,t),bindingFn:t.value})},updated(e,t){Ps.has(e)||Ps.set(e,[]);const n=Ps.get(e),r=n.findIndex(i=>i.bindingFn===t.oldValue),a={documentHandler:MP(e,t),bindingFn:t.value};r>=0?n.splice(r,1,a):n.push(a)},unmounted(e){Ps.delete(e)}},yve=100,bve=600,h0={beforeMount(e,t){const n=t.value,{interval:r=yve,delay:a=bve}=it(n)?{}:n;let i,o;const s=()=>it(n)?n():n.handler(),l=()=>{o&&(clearTimeout(o),o=void 0),i&&(clearInterval(i),i=void 0)};e.addEventListener("mousedown",u=>{u.button===0&&(l(),s(),document.addEventListener("mouseup",()=>l(),{once:!0}),o=setTimeout(()=>{i=setInterval(()=>{s()},r)},a))})}},zC="_trap-focus-children",Pu=[],kP=e=>{if(Pu.length===0)return;const t=Pu[Pu.length-1][zC];if(t.length>0&&e.code===Xe.tab){if(t.length===1){e.preventDefault(),document.activeElement!==t[0]&&t[0].focus();return}const n=e.shiftKey,r=e.target===t[0],a=e.target===t[t.length-1];r&&n&&(e.preventDefault(),t[t.length-1].focus()),a&&!n&&(e.preventDefault(),t[0].focus())}},_ve={beforeMount(e){e[zC]=FI(e),Pu.push(e),Pu.length<=1&&document.addEventListener("keydown",kP)},updated(e){Ue(()=>{e[zC]=FI(e)})},unmounted(){Pu.shift(),Pu.length===0&&document.removeEventListener("keydown",kP)}};var AP=!1,Cu,FC,HC,dy,hy,dF,vy,GC,WC,KC,hF,UC,YC,vF,pF;function sa(){if(!AP){AP=!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),n=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(UC=/\b(iPhone|iP[ao]d)/.exec(e),YC=/\b(iP[ao]d)/.exec(e),KC=/Android/i.exec(e),vF=/FBAN\/\w+;/i.exec(e),pF=/Mobile/i.exec(e),hF=!!/Win64/.exec(e),t){Cu=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,Cu&&document&&document.documentMode&&(Cu=document.documentMode);var r=/(?:Trident\/(\d+.\d+))/.exec(e);dF=r?parseFloat(r[1])+4:Cu,FC=t[2]?parseFloat(t[2]):NaN,HC=t[3]?parseFloat(t[3]):NaN,dy=t[4]?parseFloat(t[4]):NaN,dy?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),hy=t&&t[1]?parseFloat(t[1]):NaN):hy=NaN}else Cu=FC=HC=hy=dy=NaN;if(n){if(n[1]){var a=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);vy=a?parseFloat(a[1].replace("_",".")):!0}else vy=!1;GC=!!n[2],WC=!!n[3]}else vy=GC=WC=!1}}var jC={ie:function(){return sa()||Cu},ieCompatibilityMode:function(){return sa()||dF>Cu},ie64:function(){return jC.ie()&&hF},firefox:function(){return sa()||FC},opera:function(){return sa()||HC},webkit:function(){return sa()||dy},safari:function(){return jC.webkit()},chrome:function(){return sa()||hy},windows:function(){return sa()||GC},osx:function(){return sa()||vy},linux:function(){return sa()||WC},iphone:function(){return sa()||UC},mobile:function(){return sa()||UC||YC||KC||pF},nativeApp:function(){return sa()||vF},android:function(){return sa()||KC},ipad:function(){return sa()||YC}},wve=jC,Yg=!!(typeof window<"u"&&window.document&&window.document.createElement),Sve={canUseDOM:Yg,canUseWorkers:typeof Worker<"u",canUseEventListeners:Yg&&!!(window.addEventListener||window.attachEvent),canUseViewport:Yg&&!!window.screen,isInWorker:!Yg},gF=Sve,mF;gF.canUseDOM&&(mF=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function Cve(e,t){if(!gF.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var a=document.createElement("div");a.setAttribute(n,"return;"),r=typeof a[n]=="function"}return!r&&mF&&e==="wheel"&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var xve=Cve,EP=10,IP=40,DP=800;function yF(e){var t=0,n=0,r=0,a=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=t*EP,a=n*EP,"deltaY"in e&&(a=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||a)&&e.deltaMode&&(e.deltaMode==1?(r*=IP,a*=IP):(r*=DP,a*=DP)),r&&!t&&(t=r<1?-1:1),a&&!n&&(n=a<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:a}}yF.getEventType=function(){return wve.firefox()?"DOMMouseScroll":xve("wheel")?"wheel":"mousewheel"};var Tve=yF;/**
  29. * Checks if an event is supported in the current execution environment.
  30. *
  31. * NOTE: This will not work correctly for non-generic events such as `change`,
  32. * `reset`, `load`, `error`, and `select`.
  33. *
  34. * Borrows from Modernizr.
  35. *
  36. * @param {string} eventNameSuffix Event name, e.g. "click".
  37. * @param {?boolean} capture Check if the capture phase is supported.
  38. * @return {boolean} True if the event is supported.
  39. * @internal
  40. * @license Modernizr 3.0.0pre (Custom Build) | MIT
  41. */const Mve=function(e,t){if(e&&e.addEventListener){const n=function(r){const a=Tve(r);t&&Reflect.apply(t,this,[r,a])};e.addEventListener("wheel",n,{passive:!0})}},kve={beforeMount(e,t){Mve(e,t.value)}},Ave=Le({role:{type:String,required:!0},spinnerDate:{type:ue(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:ue(String),default:""},...iF}),Eve=["onClick"],Ive=["onMouseenter"],Dve=ne({__name:"basic-time-spinner",props:Ave,emits:["change","select-range","set-option"],setup(e,{emit:t}){const n=e,r=Me("time"),{getHoursList:a,getMinutesList:i,getSecondsList:o}=uF(n.disabledHours,n.disabledMinutes,n.disabledSeconds);let s=!1;const l=H(),u=H(),c=H(),f=H(),d={hours:u,minutes:c,seconds:f},h=P(()=>n.showSeconds?_P:_P.slice(0,2)),v=P(()=>{const{spinnerDate:I}=n,z=I.hour(),G=I.minute(),U=I.second();return{hours:z,minutes:G,seconds:U}}),p=P(()=>{const{hours:I,minutes:z}=y(v);return{hours:a(n.role),minutes:i(I,n.role),seconds:o(I,z,n.role)}}),g=P(()=>{const{hours:I,minutes:z,seconds:G}=y(v);return{hours:C_(I,23),minutes:C_(z,59),seconds:C_(G,59)}}),m=Qr(I=>{s=!1,w(I)},200),b=I=>{if(!!!n.amPmMode)return"";const G=n.amPmMode==="A";let U=I<12?" am":" pm";return G&&(U=U.toUpperCase()),U},_=I=>{let z;switch(I){case"hours":z=[0,2];break;case"minutes":z=[3,5];break;case"seconds":z=[6,8];break}const[G,U]=z;t("select-range",G,U),l.value=I},w=I=>{x(I,y(v)[I])},C=()=>{w("hours"),w("minutes"),w("seconds")},S=I=>I.querySelector(`.${r.namespace.value}-scrollbar__wrap`),x=(I,z)=>{if(n.arrowControl)return;const G=y(d[I]);G&&G.$el&&(S(G.$el).scrollTop=Math.max(0,z*T(I)))},T=I=>{const z=y(d[I]),G=z==null?void 0:z.$el.querySelector("li");return G&&Number.parseFloat(Fs(G,"height"))||0},M=()=>{k(1)},A=()=>{k(-1)},k=I=>{l.value||_("hours");const z=l.value,G=y(v)[z],U=l.value==="hours"?24:60,Z=E(z,G,I,U);D(z,Z),x(z,Z),Ue(()=>_(z))},E=(I,z,G,U)=>{let Z=(z+G+U)%U;const ae=y(p)[I];for(;ae[Z]&&Z!==z;)Z=(Z+G+U)%U;return Z},D=(I,z)=>{if(y(p)[I][z])return;const{hours:Z,minutes:ae,seconds:J}=y(v);let Q;switch(I){case"hours":Q=n.spinnerDate.hour(z).minute(ae).second(J);break;case"minutes":Q=n.spinnerDate.hour(Z).minute(z).second(J);break;case"seconds":Q=n.spinnerDate.hour(Z).minute(ae).second(z);break}t("change",Q)},L=(I,{value:z,disabled:G})=>{G||(D(I,z),_(I),x(I,z))},B=I=>{s=!0,m(I);const z=Math.min(Math.round((S(y(d[I]).$el).scrollTop-(N(I)*.5-10)/T(I)+3)/T(I)),I==="hours"?23:59);D(I,z)},N=I=>y(d[I]).$el.offsetHeight,O=()=>{const I=z=>{const G=y(d[z]);G&&G.$el&&(S(G.$el).onscroll=()=>{B(z)})};I("hours"),I("minutes"),I("seconds")};yt(()=>{Ue(()=>{!n.arrowControl&&O(),C(),n.role==="start"&&_("hours")})});const $=(I,z)=>{d[z].value=I};return t("set-option",[`${n.role}_scrollDown`,k]),t("set-option",[`${n.role}_emitSelectRange`,_]),xe(()=>n.spinnerDate,()=>{s||C()}),(I,z)=>(R(),K("div",{class:V([y(r).b("spinner"),{"has-seconds":I.showSeconds}])},[I.arrowControl?se("v-if",!0):(R(!0),K(je,{key:0},Ot(y(h),G=>(R(),ce(y(hs),{key:G,ref_for:!0,ref:U=>$(U,G),class:V(y(r).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":y(r).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:U=>_(G),onMousemove:U=>w(G)},{default:re(()=>[(R(!0),K(je,null,Ot(y(p)[G],(U,Z)=>(R(),K("li",{key:Z,class:V([y(r).be("spinner","item"),y(r).is("active",Z===y(v)[G]),y(r).is("disabled",U)]),onClick:ae=>L(G,{value:Z,disabled:U})},[G==="hours"?(R(),K(je,{key:0},[Ut(De(("0"+(I.amPmMode?Z%12||12:Z)).slice(-2))+De(b(Z)),1)],64)):(R(),K(je,{key:1},[Ut(De(("0"+Z).slice(-2)),1)],64))],10,Eve))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),I.arrowControl?(R(!0),K(je,{key:1},Ot(y(h),G=>(R(),K("div",{key:G,class:V([y(r).be("spinner","wrapper"),y(r).is("arrow")]),onMouseenter:U=>_(G)},[dt((R(),ce(y(Ke),{class:V(["arrow-up",y(r).be("spinner","arrow")])},{default:re(()=>[q(y(Wb))]),_:1},8,["class"])),[[y(h0),A]]),dt((R(),ce(y(Ke),{class:V(["arrow-down",y(r).be("spinner","arrow")])},{default:re(()=>[q(y(Tl))]),_:1},8,["class"])),[[y(h0),M]]),Y("ul",{class:V(y(r).be("spinner","list"))},[(R(!0),K(je,null,Ot(y(g)[G],(U,Z)=>(R(),K("li",{key:Z,class:V([y(r).be("spinner","item"),y(r).is("active",U===y(v)[G]),y(r).is("disabled",y(p)[G][U])])},[typeof U=="number"?(R(),K(je,{key:0},[G==="hours"?(R(),K(je,{key:0},[Ut(De(("0"+(I.amPmMode?U%12||12:U)).slice(-2))+De(b(U)),1)],64)):(R(),K(je,{key:1},[Ut(De(("0"+U).slice(-2)),1)],64))],64)):se("v-if",!0)],2))),128))],2)],42,Ive))),128)):se("v-if",!0)],2))}});var qC=Pe(Dve,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/basic-time-spinner.vue"]]);const Pve=ne({__name:"panel-time-pick",props:mve,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,r=Ge("EP_PICKER_BASE"),{arrowControl:a,disabledHours:i,disabledMinutes:o,disabledSeconds:s,defaultValue:l}=r.props,{getAvailableHours:u,getAvailableMinutes:c,getAvailableSeconds:f}=cF(i,o,s),d=Me("time"),{t:h,lang:v}=Ht(),p=H([0,2]),g=fF(n),m=P(()=>er(n.actualVisible)?`${d.namespace.value}-zoom-in-top`:""),b=P(()=>n.format.includes("ss")),_=P(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),w=$=>{const I=mt($).locale(v.value),z=L(I);return I.isSame(z)},C=()=>{t("pick",g.value,!1)},S=($=!1,I=!1)=>{I||t("pick",n.parsedValue,$)},x=$=>{if(!n.visible)return;const I=L($).millisecond(0);t("pick",I,!0)},T=($,I)=>{t("select-range",$,I),p.value=[$,I]},M=$=>{const I=[0,3].concat(b.value?[6]:[]),z=["hours","minutes"].concat(b.value?["seconds"]:[]),U=(I.indexOf(p.value[0])+$+I.length)%I.length;k.start_emitSelectRange(z[U])},A=$=>{const I=$.code,{left:z,right:G,up:U,down:Z}=Xe;if([z,G].includes(I)){M(I===z?-1:1),$.preventDefault();return}if([U,Z].includes(I)){const ae=I===U?-1:1;k.start_scrollDown(ae),$.preventDefault();return}},{timePickerOptions:k,onSetOption:E,getAvailableTime:D}=lF({getAvailableHours:u,getAvailableMinutes:c,getAvailableSeconds:f}),L=$=>D($,n.datetimeRole||"",!0),B=$=>$?mt($,n.format).locale(v.value):null,N=$=>$?$.format(n.format):null,O=()=>mt(l).locale(v.value);return t("set-picker-option",["isValidValue",w]),t("set-picker-option",["formatToString",N]),t("set-picker-option",["parseUserInput",B]),t("set-picker-option",["handleKeydownInput",A]),t("set-picker-option",["getRangeAvailableTime",L]),t("set-picker-option",["getDefaultValue",O]),($,I)=>(R(),ce(Bn,{name:y(m)},{default:re(()=>[$.actualVisible||$.visible?(R(),K("div",{key:0,class:V(y(d).b("panel"))},[Y("div",{class:V([y(d).be("panel","content"),{"has-seconds":y(b)}])},[q(qC,{ref:"spinner",role:$.datetimeRole||"start","arrow-control":y(a),"show-seconds":y(b),"am-pm-mode":y(_),"spinner-date":$.parsedValue,"disabled-hours":y(i),"disabled-minutes":y(o),"disabled-seconds":y(s),onChange:x,onSetOption:y(E),onSelectRange:T},null,8,["role","arrow-control","show-seconds","am-pm-mode","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onSetOption"])],2),Y("div",{class:V(y(d).be("panel","footer"))},[Y("button",{type:"button",class:V([y(d).be("panel","btn"),"cancel"]),onClick:C},De(y(h)("el.datepicker.cancel")),3),Y("button",{type:"button",class:V([y(d).be("panel","btn"),"confirm"]),onClick:I[0]||(I[0]=z=>S())},De(y(h)("el.datepicker.confirm")),3)],2)],2)):se("v-if",!0)]),_:1},8,["name"]))}});var v0=Pe(Pve,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/panel-time-pick.vue"]]);const Lve=Le({...oF,parsedValue:{type:ue(Array)}}),Rve=["disabled"],Ove=ne({__name:"panel-time-range",props:Lve,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,r=(ie,W)=>{const X=[];for(let oe=ie;oe<=W;oe++)X.push(oe);return X},{t:a,lang:i}=Ht(),o=Me("time"),s=Me("picker"),l=Ge("EP_PICKER_BASE"),{arrowControl:u,disabledHours:c,disabledMinutes:f,disabledSeconds:d,defaultValue:h}=l.props,v=P(()=>[o.be("range-picker","body"),o.be("panel","content"),o.is("arrow",u),w.value?"has-seconds":""]),p=P(()=>[o.be("range-picker","body"),o.be("panel","content"),o.is("arrow",u),w.value?"has-seconds":""]),g=P(()=>n.parsedValue[0]),m=P(()=>n.parsedValue[1]),b=fF(n),_=()=>{t("pick",b.value,!1)},w=P(()=>n.format.includes("ss")),C=P(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),S=(ie=!1)=>{t("pick",[g.value,m.value],ie)},x=ie=>{A(ie.millisecond(0),m.value)},T=ie=>{A(g.value,ie.millisecond(0))},M=ie=>{const W=ie.map(oe=>mt(oe).locale(i.value)),X=G(W);return W[0].isSame(X[0])&&W[1].isSame(X[1])},A=(ie,W)=>{t("pick",[ie,W],!0)},k=P(()=>g.value>m.value),E=H([0,2]),D=(ie,W)=>{t("select-range",ie,W,"min"),E.value=[ie,W]},L=P(()=>w.value?11:8),B=(ie,W)=>{t("select-range",ie,W,"max");const X=y(L);E.value=[ie+X,W+X]},N=ie=>{const W=w.value?[0,3,6,11,14,17]:[0,3,8,11],X=["hours","minutes"].concat(w.value?["seconds"]:[]),pe=(W.indexOf(E.value[0])+ie+W.length)%W.length,Se=W.length/2;pe<Se?J.start_emitSelectRange(X[pe]):J.end_emitSelectRange(X[pe-Se])},O=ie=>{const W=ie.code,{left:X,right:oe,up:pe,down:Se}=Xe;if([X,oe].includes(W)){N(W===X?-1:1),ie.preventDefault();return}if([pe,Se].includes(W)){const me=W===pe?-1:1,Ee=E.value[0]<L.value?"start":"end";J[`${Ee}_scrollDown`](me),ie.preventDefault();return}},$=(ie,W)=>{const X=c?c(ie):[],oe=ie==="start",Se=(W||(oe?m.value:g.value)).hour(),me=oe?r(Se+1,23):r(0,Se-1);return p_(X,me)},I=(ie,W,X)=>{const oe=f?f(ie,W):[],pe=W==="start",Se=X||(pe?m.value:g.value),me=Se.hour();if(ie!==me)return oe;const Ee=Se.minute(),Ce=pe?r(Ee+1,59):r(0,Ee-1);return p_(oe,Ce)},z=(ie,W,X,oe)=>{const pe=d?d(ie,W,X):[],Se=X==="start",me=oe||(Se?m.value:g.value),Ee=me.hour(),Ce=me.minute();if(ie!==Ee||W!==Ce)return pe;const we=me.second(),Te=Se?r(we+1,59):r(0,we-1);return p_(pe,Te)},G=([ie,W])=>[Q(ie,"start",!0,W),Q(W,"end",!1,ie)],{getAvailableHours:U,getAvailableMinutes:Z,getAvailableSeconds:ae}=cF($,I,z),{timePickerOptions:J,getAvailableTime:Q,onSetOption:ee}=lF({getAvailableHours:U,getAvailableMinutes:Z,getAvailableSeconds:ae}),j=ie=>ie?He(ie)?ie.map(W=>mt(W,n.format).locale(i.value)):mt(ie,n.format).locale(i.value):null,de=ie=>ie?He(ie)?ie.map(W=>W.format(n.format)):ie.format(n.format):null,ve=()=>{if(He(h))return h.map(W=>mt(W).locale(i.value));const ie=mt(h).locale(i.value);return[ie,ie.add(60,"m")]};return t("set-picker-option",["formatToString",de]),t("set-picker-option",["parseUserInput",j]),t("set-picker-option",["isValidValue",M]),t("set-picker-option",["handleKeydownInput",O]),t("set-picker-option",["getDefaultValue",ve]),t("set-picker-option",["getRangeAvailableTime",G]),(ie,W)=>ie.actualVisible?(R(),K("div",{key:0,class:V([y(o).b("range-picker"),y(s).b("panel")])},[Y("div",{class:V(y(o).be("range-picker","content"))},[Y("div",{class:V(y(o).be("range-picker","cell"))},[Y("div",{class:V(y(o).be("range-picker","header"))},De(y(a)("el.datepicker.startTime")),3),Y("div",{class:V(y(v))},[q(qC,{ref:"minSpinner",role:"start","show-seconds":y(w),"am-pm-mode":y(C),"arrow-control":y(u),"spinner-date":y(g),"disabled-hours":$,"disabled-minutes":I,"disabled-seconds":z,onChange:x,onSetOption:y(ee),onSelectRange:D},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2),Y("div",{class:V(y(o).be("range-picker","cell"))},[Y("div",{class:V(y(o).be("range-picker","header"))},De(y(a)("el.datepicker.endTime")),3),Y("div",{class:V(y(p))},[q(qC,{ref:"maxSpinner",role:"end","show-seconds":y(w),"am-pm-mode":y(C),"arrow-control":y(u),"spinner-date":y(m),"disabled-hours":$,"disabled-minutes":I,"disabled-seconds":z,onChange:T,onSetOption:y(ee),onSelectRange:B},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2)],2),Y("div",{class:V(y(o).be("panel","footer"))},[Y("button",{type:"button",class:V([y(o).be("panel","btn"),"cancel"]),onClick:W[0]||(W[0]=X=>_())},De(y(a)("el.datepicker.cancel")),3),Y("button",{type:"button",class:V([y(o).be("panel","btn"),"confirm"]),disabled:y(k),onClick:W[1]||(W[1]=X=>S())},De(y(a)("el.datepicker.confirm")),11,Rve)],2)],2)):se("v-if",!0)}});var $ve=Pe(Ove,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/panel-time-range.vue"]]);mt.extend(OM);var Nve=ne({name:"ElTimePicker",install:null,props:{...$M,isRange:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,t){const n=H(),[r,a]=e.isRange?["timerange",$ve]:["time",v0],i=o=>t.emit("update:modelValue",o);return Et("ElPopperOptions",e.popperOptions),t.expose({focus:o=>{var s;(s=n.value)==null||s.handleFocusInput(o)},blur:o=>{var s;(s=n.value)==null||s.handleBlurInput(o)},handleOpen:()=>{var o;(o=n.value)==null||o.handleOpen()},handleClose:()=>{var o;(o=n.value)==null||o.handleClose()}}),()=>{var o;const s=(o=e.format)!=null?o:VC;return q(sF,St(e,{ref:n,type:r,format:s,"onUpdate:modelValue":i}),{default:l=>q(a,l,null)})}}});const py=Nve;py.install=e=>{e.component(py.name,py)};const Bve=py,Vve=(e,t)=>{const n=e.subtract(1,"month").endOf("month").date();return el(t).map((r,a)=>n-(t-a-1))},zve=e=>{const t=e.daysInMonth();return el(t).map((n,r)=>r+1)},Fve=e=>el(e.length/7).map(t=>{const n=t*7;return e.slice(n,n+7)}),Hve=Le({selectedDay:{type:ue(Object)},range:{type:ue(Array)},date:{type:ue(Object),required:!0},hideHeader:{type:Boolean}}),Gve={pick:e=>Mt(e)};var bF={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(vs,function(){return function(n,r,a){var i=r.prototype,o=function(f){return f&&(f.indexOf?f:f.s)},s=function(f,d,h,v,p){var g=f.name?f:f.$locale(),m=o(g[d]),b=o(g[h]),_=m||b.map(function(C){return C.slice(0,v)});if(!p)return _;var w=g.weekStart;return _.map(function(C,S){return _[(S+(w||0))%7]})},l=function(){return a.Ls[a.locale()]},u=function(f,d){return f.formats[d]||function(h){return h.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(v,p,g){return p||g.slice(1)})}(f.formats[d.toUpperCase()])},c=function(){var f=this;return{months:function(d){return d?d.format("MMMM"):s(f,"months")},monthsShort:function(d){return d?d.format("MMM"):s(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(d){return d?d.format("dddd"):s(f,"weekdays")},weekdaysMin:function(d){return d?d.format("dd"):s(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(d){return d?d.format("ddd"):s(f,"weekdaysShort","weekdays",3)},longDateFormat:function(d){return u(f.$locale(),d)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};i.localeData=function(){return c.bind(this)()},a.localeData=function(){var f=l();return{firstDayOfWeek:function(){return f.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(d){return u(f,d)},meridiem:f.meridiem,ordinal:f.ordinal}},a.months=function(){return s(l(),"months")},a.monthsShort=function(){return s(l(),"monthsShort","months",3)},a.weekdays=function(f){return s(l(),"weekdays",null,null,f)},a.weekdaysShort=function(f){return s(l(),"weekdaysShort","weekdays",3,f)},a.weekdaysMin=function(f){return s(l(),"weekdaysMin","weekdays",2,f)}}})})(bF);var Wve=bF.exports;const _F=ko(Wve),Kve=(e,t)=>{mt.extend(_F);const n=mt.localeData().firstDayOfWeek(),{t:r,lang:a}=Ht(),i=mt().locale(a.value),o=P(()=>!!e.range&&!!e.range.length),s=P(()=>{let d=[];if(o.value){const[h,v]=e.range,p=el(v.date()-h.date()+1).map(b=>({text:h.date()+b,type:"current"}));let g=p.length%7;g=g===0?0:7-g;const m=el(g).map((b,_)=>({text:_+1,type:"next"}));d=p.concat(m)}else{const h=e.date.startOf("month").day(),v=Vve(e.date,(h-n+7)%7).map(b=>({text:b,type:"prev"})),p=zve(e.date).map(b=>({text:b,type:"current"}));d=[...v,...p];const g=7-(d.length%7||7),m=el(g).map((b,_)=>({text:_+1,type:"next"}));d=d.concat(m)}return Fve(d)}),l=P(()=>{const d=n;return d===0?g_.map(h=>r(`el.datepicker.weeks.${h}`)):g_.slice(d).concat(g_.slice(0,d)).map(h=>r(`el.datepicker.weeks.${h}`))}),u=(d,h)=>{switch(h){case"prev":return e.date.startOf("month").subtract(1,"month").date(d);case"next":return e.date.startOf("month").add(1,"month").date(d);case"current":return e.date.date(d)}};return{now:i,isInRange:o,rows:s,weekDays:l,getFormattedDate:u,handlePickDay:({text:d,type:h})=>{const v=u(d,h);t("pick",v)},getSlotData:({text:d,type:h})=>{const v=u(d,h);return{isSelected:v.isSame(e.selectedDay),type:`${h}-month`,day:v.format("YYYY-MM-DD"),date:v.toDate()}}}},Uve={key:0},Yve=["onClick"],jve=ne({name:"DateTable"}),qve=ne({...jve,props:Hve,emits:Gve,setup(e,{expose:t,emit:n}){const r=e,{isInRange:a,now:i,rows:o,weekDays:s,getFormattedDate:l,handlePickDay:u,getSlotData:c}=Kve(r,n),f=Me("calendar-table"),d=Me("calendar-day"),h=({text:v,type:p})=>{const g=[p];if(p==="current"){const m=l(v,p);m.isSame(r.selectedDay,"day")&&g.push(d.is("selected")),m.isSame(i,"day")&&g.push(d.is("today"))}return g};return t({getFormattedDate:l}),(v,p)=>(R(),K("table",{class:V([y(f).b(),y(f).is("range",y(a))]),cellspacing:"0",cellpadding:"0"},[v.hideHeader?se("v-if",!0):(R(),K("thead",Uve,[(R(!0),K(je,null,Ot(y(s),g=>(R(),K("th",{key:g},De(g),1))),128))])),Y("tbody",null,[(R(!0),K(je,null,Ot(y(o),(g,m)=>(R(),K("tr",{key:m,class:V({[y(f).e("row")]:!0,[y(f).em("row","hide-border")]:m===0&&v.hideHeader})},[(R(!0),K(je,null,Ot(g,(b,_)=>(R(),K("td",{key:_,class:V(h(b)),onClick:w=>y(u)(b)},[Y("div",{class:V(y(d).b())},[_e(v.$slots,"date-cell",{data:y(c)(b)},()=>[Y("span",null,De(b.text),1)])],2)],10,Yve))),128))],2))),128))])],2))}});var PP=Pe(qve,[["__file","/home/runner/work/element-plus/element-plus/packages/components/calendar/src/date-table.vue"]]);const Xve=(e,t)=>{const n=e.endOf("month"),r=t.startOf("month"),i=n.isSame(r,"week")?r.add(1,"week"):r;return[[e,n],[i.startOf("week"),t]]},Zve=(e,t)=>{const n=e.endOf("month"),r=e.add(1,"month").startOf("month"),a=n.isSame(r,"week")?r.add(1,"week"):r,i=a.endOf("month"),o=t.startOf("month"),s=i.isSame(o,"week")?o.add(1,"week"):o;return[[e,n],[a.startOf("week"),i],[s.startOf("week"),t]]},Jve=(e,t,n)=>{const r=Mr(),{lang:a}=Ht(),i=H(),o=mt().locale(a.value),s=P({get(){return e.modelValue?u.value:i.value},set(m){if(!m)return;i.value=m;const b=m.toDate();t(qr,b),t(wt,b)}}),l=P(()=>{if(!e.range)return[];const m=e.range.map(w=>mt(w).locale(a.value)),[b,_]=m;return b.isAfter(_)?[]:b.isSame(_,"month")?v(b,_):b.add(1,"month").month()!==_.month()?[]:v(b,_)}),u=P(()=>e.modelValue?mt(e.modelValue).locale(a.value):s.value||(l.value.length?l.value[0][0]:o)),c=P(()=>u.value.subtract(1,"month").date(1)),f=P(()=>u.value.add(1,"month").date(1)),d=P(()=>u.value.subtract(1,"year").date(1)),h=P(()=>u.value.add(1,"year").date(1)),v=(m,b)=>{const _=m.startOf("week"),w=b.endOf("week"),C=_.get("month"),S=w.get("month");return C===S?[[_,w]]:(C+1)%12===S?Xve(_,w):C+2===S||(C+1)%11===S?Zve(_,w):[]},p=m=>{s.value=m},g=m=>{const _={"prev-month":c.value,"next-month":f.value,"prev-year":d.value,"next-year":h.value,today:o}[m];_.isSame(u.value,"day")||p(_)};return bo({from:'"dateCell"',replacement:'"date-cell"',scope:"ElCalendar",version:"2.3.0",ref:"https://element-plus.org/en-US/component/calendar.html#slots",type:"Slot"},P(()=>!!r.dateCell)),{calculateValidatedDateRange:v,date:u,realSelectedDay:s,pickDay:p,selectDate:g,validatedRange:l}},Qve=e=>He(e)&&e.length===2&&e.every(t=>rc(t)),epe=Le({modelValue:{type:Date},range:{type:ue(Array),validator:Qve}}),tpe={[wt]:e=>rc(e),[qr]:e=>rc(e)},npe="ElCalendar",rpe=ne({name:npe}),ape=ne({...rpe,props:epe,emits:tpe,setup(e,{expose:t,emit:n}){const r=e,a=Me("calendar"),{calculateValidatedDateRange:i,date:o,pickDay:s,realSelectedDay:l,selectDate:u,validatedRange:c}=Jve(r,n),{t:f}=Ht(),d=P(()=>{const h=`el.datepicker.month${o.value.format("M")}`;return`${o.value.year()} ${f("el.datepicker.year")} ${f(h)}`});return t({selectedDay:l,pickDay:s,selectDate:u,calculateValidatedDateRange:i}),(h,v)=>(R(),K("div",{class:V(y(a).b())},[Y("div",{class:V(y(a).e("header"))},[_e(h.$slots,"header",{date:y(d)},()=>[Y("div",{class:V(y(a).e("title"))},De(y(d)),3),y(c).length===0?(R(),K("div",{key:0,class:V(y(a).e("button-group"))},[q(y(eF),null,{default:re(()=>[q(y(_r),{size:"small",onClick:v[0]||(v[0]=p=>y(u)("prev-month"))},{default:re(()=>[Ut(De(y(f)("el.datepicker.prevMonth")),1)]),_:1}),q(y(_r),{size:"small",onClick:v[1]||(v[1]=p=>y(u)("today"))},{default:re(()=>[Ut(De(y(f)("el.datepicker.today")),1)]),_:1}),q(y(_r),{size:"small",onClick:v[2]||(v[2]=p=>y(u)("next-month"))},{default:re(()=>[Ut(De(y(f)("el.datepicker.nextMonth")),1)]),_:1})]),_:1})],2)):se("v-if",!0)])],2),y(c).length===0?(R(),K("div",{key:0,class:V(y(a).e("body"))},[q(PP,{date:y(o),"selected-day":y(l),onPick:y(s)},Jo({_:2},[h.$slots["date-cell"]||h.$slots.dateCell?{name:"date-cell",fn:re(p=>[h.$slots["date-cell"]?_e(h.$slots,"date-cell",Mi(St({key:0},p))):_e(h.$slots,"dateCell",Mi(St({key:1},p)))])}:void 0]),1032,["date","selected-day","onPick"])],2)):(R(),K("div",{key:1,class:V(y(a).e("body"))},[(R(!0),K(je,null,Ot(y(c),(p,g)=>(R(),ce(PP,{key:g,date:p[0],"selected-day":y(l),range:p,"hide-header":g!==0,onPick:y(s)},Jo({_:2},[h.$slots["date-cell"]||h.$slots.dateCell?{name:"date-cell",fn:re(m=>[h.$slots["date-cell"]?_e(h.$slots,"date-cell",Mi(St({key:0},m))):_e(h.$slots,"dateCell",Mi(St({key:1},m)))])}:void 0]),1032,["date","selected-day","range","hide-header","onPick"]))),128))],2))],2))}});var ipe=Pe(ape,[["__file","/home/runner/work/element-plus/element-plus/packages/components/calendar/src/calendar.vue"]]);const ope=_t(ipe),spe=Le({header:{type:String,default:""},bodyStyle:{type:ue([String,Object,Array]),default:""},bodyClass:String,shadow:{type:String,values:["always","hover","never"],default:"always"}}),lpe=ne({name:"ElCard"}),upe=ne({...lpe,props:spe,setup(e){const t=Me("card");return(n,r)=>(R(),K("div",{class:V([y(t).b(),y(t).is(`${n.shadow}-shadow`)])},[n.$slots.header||n.header?(R(),K("div",{key:0,class:V(y(t).e("header"))},[_e(n.$slots,"header",{},()=>[Ut(De(n.header),1)])],2)):se("v-if",!0),Y("div",{class:V([y(t).e("body"),n.bodyClass]),style:Ye(n.bodyStyle)},[_e(n.$slots,"default")],6)],2))}});var cpe=Pe(upe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/card/src/card.vue"]]);const fpe=_t(cpe),dpe=Le({initialIndex:{type:Number,default:0},height:{type:String,default:""},trigger:{type:String,values:["hover","click"],default:"hover"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:{type:String,values:["","none","outside"],default:""},arrow:{type:String,values:["always","hover","never"],default:"hover"},type:{type:String,values:["","card"],default:""},loop:{type:Boolean,default:!0},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},pauseOnHover:{type:Boolean,default:!0}}),hpe={change:(e,t)=>[e,t].every(at)},wF=Symbol("carouselContextKey"),LP=300,vpe=(e,t,n)=>{const{children:r,addChild:a,removeChild:i}=EM(gt(),"ElCarouselItem"),o=H(-1),s=H(null),l=H(!1),u=H(),c=H(0),f=P(()=>e.arrow!=="never"&&!y(v)),d=P(()=>r.value.some(I=>I.props.label.toString().length>0)),h=P(()=>e.type==="card"),v=P(()=>e.direction==="vertical"),p=P(()=>e.height!=="auto"?{height:e.height}:{height:`${c.value}px`,overflow:"hidden"}),g=Uu(I=>{C(I)},LP,{trailing:!0}),m=Uu(I=>{D(I)},LP);function b(){s.value&&(clearInterval(s.value),s.value=null)}function _(){e.interval<=0||!e.autoplay||s.value||(s.value=setInterval(()=>w(),e.interval))}const w=()=>{o.value<r.value.length-1?o.value=o.value+1:e.loop&&(o.value=0)};function C(I){if(lt(I)){const U=r.value.filter(Z=>Z.props.name===I);U.length>0&&(I=r.value.indexOf(U[0]))}if(I=Number(I),Number.isNaN(I)||I!==Math.floor(I))return;const z=r.value.length,G=o.value;I<0?o.value=e.loop?z-1:0:I>=z?o.value=e.loop?0:z-1:o.value=I,G===o.value&&S(G),N()}function S(I){r.value.forEach((z,G)=>{z.translateItem(G,o.value,I)})}function x(I,z){var G,U,Z,ae;const J=y(r),Q=J.length;if(Q===0||!I.states.inStage)return!1;const ee=z+1,j=z-1,de=Q-1,ve=J[de].states.active,ie=J[0].states.active,W=(U=(G=J[ee])==null?void 0:G.states)==null?void 0:U.active,X=(ae=(Z=J[j])==null?void 0:Z.states)==null?void 0:ae.active;return z===de&&ie||W?"left":z===0&&ve||X?"right":!1}function T(){l.value=!0,e.pauseOnHover&&b()}function M(){l.value=!1,_()}function A(I){y(v)||r.value.forEach((z,G)=>{I===x(z,G)&&(z.states.hover=!0)})}function k(){y(v)||r.value.forEach(I=>{I.states.hover=!1})}function E(I){o.value=I}function D(I){e.trigger==="hover"&&I!==o.value&&(o.value=I)}function L(){C(o.value-1)}function B(){C(o.value+1)}function N(){b(),_()}function O(I){e.height==="auto"&&(c.value=I)}xe(()=>o.value,(I,z)=>{S(z),z>-1&&t("change",I,z)}),xe(()=>e.autoplay,I=>{I?_():b()}),xe(()=>e.loop,()=>{C(o.value)}),xe(()=>e.interval,()=>{N()}),xe(()=>r.value,()=>{r.value.length>0&&C(e.initialIndex)});const $=un();return yt(()=>{$.value=$r(u.value,()=>{S()}),_()}),wn(()=>{b(),u.value&&$.value&&$.value.stop()}),Et(wF,{root:u,isCardType:h,isVertical:v,items:r,loop:e.loop,addItem:a,removeItem:i,setActiveItem:C,setContainerHeight:O}),{root:u,activeIndex:o,arrowDisplay:f,hasLabel:d,hover:l,isCardType:h,items:r,isVertical:v,containerStyle:p,handleButtonEnter:A,handleButtonLeave:k,handleIndicatorClick:E,handleMouseEnter:T,handleMouseLeave:M,setActiveItem:C,prev:L,next:B,throttledArrowClick:g,throttledIndicatorHover:m}},ppe=["onMouseenter","onClick"],gpe={key:0},mpe="ElCarousel",ype=ne({name:mpe}),bpe=ne({...ype,props:dpe,emits:hpe,setup(e,{expose:t,emit:n}){const r=e,{root:a,activeIndex:i,arrowDisplay:o,hasLabel:s,hover:l,isCardType:u,items:c,isVertical:f,containerStyle:d,handleButtonEnter:h,handleButtonLeave:v,handleIndicatorClick:p,handleMouseEnter:g,handleMouseLeave:m,setActiveItem:b,prev:_,next:w,throttledArrowClick:C,throttledIndicatorHover:S}=vpe(r,n),x=Me("carousel"),T=P(()=>{const A=[x.b(),x.m(r.direction)];return y(u)&&A.push(x.m("card")),A}),M=P(()=>{const A=[x.e("indicators"),x.em("indicators",r.direction)];return y(s)&&A.push(x.em("indicators","labels")),r.indicatorPosition==="outside"&&A.push(x.em("indicators","outside")),y(f)&&A.push(x.em("indicators","right")),A});return t({setActiveItem:b,prev:_,next:w}),(A,k)=>(R(),K("div",{ref_key:"root",ref:a,class:V(y(T)),onMouseenter:k[6]||(k[6]=tt((...E)=>y(g)&&y(g)(...E),["stop"])),onMouseleave:k[7]||(k[7]=tt((...E)=>y(m)&&y(m)(...E),["stop"]))},[Y("div",{class:V(y(x).e("container")),style:Ye(y(d))},[y(o)?(R(),ce(Bn,{key:0,name:"carousel-arrow-left",persisted:""},{default:re(()=>[dt(Y("button",{type:"button",class:V([y(x).e("arrow"),y(x).em("arrow","left")]),onMouseenter:k[0]||(k[0]=E=>y(h)("left")),onMouseleave:k[1]||(k[1]=(...E)=>y(v)&&y(v)(...E)),onClick:k[2]||(k[2]=tt(E=>y(C)(y(i)-1),["stop"]))},[q(y(Ke),null,{default:re(()=>[q(y(cl))]),_:1})],34),[[Kt,(A.arrow==="always"||y(l))&&(r.loop||y(i)>0)]])]),_:1})):se("v-if",!0),y(o)?(R(),ce(Bn,{key:1,name:"carousel-arrow-right",persisted:""},{default:re(()=>[dt(Y("button",{type:"button",class:V([y(x).e("arrow"),y(x).em("arrow","right")]),onMouseenter:k[3]||(k[3]=E=>y(h)("right")),onMouseleave:k[4]||(k[4]=(...E)=>y(v)&&y(v)(...E)),onClick:k[5]||(k[5]=tt(E=>y(C)(y(i)+1),["stop"]))},[q(y(Ke),null,{default:re(()=>[q(y(jr))]),_:1})],34),[[Kt,(A.arrow==="always"||y(l))&&(r.loop||y(i)<y(c).length-1)]])]),_:1})):se("v-if",!0),_e(A.$slots,"default")],6),A.indicatorPosition!=="none"?(R(),K("ul",{key:0,class:V(y(M))},[(R(!0),K(je,null,Ot(y(c),(E,D)=>(R(),K("li",{key:D,class:V([y(x).e("indicator"),y(x).em("indicator",A.direction),y(x).is("active",D===y(i))]),onMouseenter:L=>y(S)(D),onClick:tt(L=>y(p)(D),["stop"])},[Y("button",{class:V(y(x).e("button"))},[y(s)?(R(),K("span",gpe,De(E.props.label),1)):se("v-if",!0)],2)],42,ppe))),128))],2)):se("v-if",!0)],34))}});var _pe=Pe(bpe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel.vue"]]);const wpe=Le({name:{type:String,default:""},label:{type:[String,Number],default:""}}),Spe=(e,t)=>{const n=Ge(wF),r=gt(),a=.83,i=H(),o=H(!1),s=H(0),l=H(1),u=H(!1),c=H(!1),f=H(!1),d=H(!1),{isCardType:h,isVertical:v}=n;function p(w,C,S){const x=S-1,T=C-1,M=C+1,A=S/2;return C===0&&w===x?-1:C===x&&w===0?S:w<T&&C-w>=A?S+1:w>M&&w-C>=A?-2:w}function g(w,C){var S,x;const T=y(v)?((S=n.root.value)==null?void 0:S.offsetHeight)||0:((x=n.root.value)==null?void 0:x.offsetWidth)||0;return f.value?T*((2-a)*(w-C)+1)/4:w<C?-(1+a)*T/4:(3+a)*T/4}function m(w,C,S){const x=n.root.value;return x?((S?x.offsetHeight:x.offsetWidth)||0)*(w-C):0}const b=(w,C,S)=>{var x;const T=y(h),M=(x=n.items.value.length)!=null?x:Number.NaN,A=w===C;!T&&!er(S)&&(d.value=A||w===S),!A&&M>2&&n.loop&&(w=p(w,C,M));const k=y(v);u.value=A,T?(f.value=Math.round(Math.abs(w-C))<=1,s.value=g(w,C),l.value=y(u)?1:a):s.value=m(w,C,k),c.value=!0,A&&i.value&&n.setContainerHeight(i.value.offsetHeight)};function _(){if(n&&y(h)){const w=n.items.value.findIndex(({uid:C})=>C===r.uid);n.setActiveItem(w)}}return yt(()=>{n.addItem({props:e,states:jt({hover:o,translate:s,scale:l,active:u,ready:c,inStage:f,animating:d}),uid:r.uid,translateItem:b})}),xl(()=>{n.removeItem(r.uid)}),{carouselItemRef:i,active:u,animating:d,hover:o,inStage:f,isVertical:v,translate:s,isCardType:h,scale:l,ready:c,handleItemClick:_}},Cpe=ne({name:"ElCarouselItem"}),xpe=ne({...Cpe,props:wpe,setup(e){const t=e,n=Me("carousel"),{carouselItemRef:r,active:a,animating:i,hover:o,inStage:s,isVertical:l,translate:u,isCardType:c,scale:f,ready:d,handleItemClick:h}=Spe(t),v=P(()=>{const g=`${`translate${y(l)?"Y":"X"}`}(${y(u)}px)`,m=`scale(${y(f)})`;return{transform:[g,m].join(" ")}});return(p,g)=>dt((R(),K("div",{ref_key:"carouselItemRef",ref:r,class:V([y(n).e("item"),y(n).is("active",y(a)),y(n).is("in-stage",y(s)),y(n).is("hover",y(o)),y(n).is("animating",y(i)),{[y(n).em("item","card")]:y(c),[y(n).em("item","card-vertical")]:y(c)&&y(l)}]),style:Ye(y(v)),onClick:g[0]||(g[0]=(...m)=>y(h)&&y(h)(...m))},[y(c)?dt((R(),K("div",{key:0,class:V(y(n).e("mask"))},null,2)),[[Kt,!y(a)]]):se("v-if",!0),_e(p.$slots,"default")],6)),[[Kt,y(d)]])}});var SF=Pe(xpe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel-item.vue"]]);const Tpe=_t(_pe,{CarouselItem:SF}),Mpe=Dn(SF),CF={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:Sr,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},xF={[wt]:e=>lt(e)||at(e)||Un(e),change:e=>lt(e)||at(e)||Un(e)},kd=Symbol("checkboxGroupContextKey"),kpe=({model:e,isChecked:t})=>{const n=Ge(kd,void 0),r=P(()=>{var i,o;const s=(i=n==null?void 0:n.max)==null?void 0:i.value,l=(o=n==null?void 0:n.min)==null?void 0:o.value;return!er(s)&&e.value.length>=s&&!t.value||!er(l)&&e.value.length<=l&&t.value});return{isDisabled:wa(P(()=>(n==null?void 0:n.disabled.value)||r.value)),isLimitDisabled:r}},Ape=(e,{model:t,isLimitExceeded:n,hasOwnLabel:r,isDisabled:a,isLabeledByFormItem:i})=>{const o=Ge(kd,void 0),{formItem:s}=aa(),{emit:l}=gt();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 c(v,p){l("change",u(v),p)}function f(v){if(n.value)return;const p=v.target;l("change",u(p.checked),v)}async function d(v){n.value||!r.value&&!a.value&&i.value&&(v.composedPath().some(m=>m.tagName==="LABEL")||(t.value=u([!1,e.falseLabel].includes(t.value)),await Ue(),c(t.value,v)))}const h=P(()=>(o==null?void 0:o.validateEvent)||e.validateEvent);return xe(()=>e.modelValue,()=>{h.value&&(s==null||s.validate("change").catch(v=>void 0))}),{handleChange:f,onClickRoot:d}},Epe=e=>{const t=H(!1),{emit:n}=gt(),r=Ge(kd,void 0),a=P(()=>er(r)===!1),i=H(!1);return{model:P({get(){var s,l;return a.value?(s=r==null?void 0:r.modelValue)==null?void 0:s.value:(l=e.modelValue)!=null?l:t.value},set(s){var l,u;a.value&&He(s)?(i.value=((l=r==null?void 0:r.max)==null?void 0:l.value)!==void 0&&s.length>(r==null?void 0:r.max.value),i.value===!1&&((u=r==null?void 0:r.changeEvent)==null||u.call(r,s))):(n(wt,s),t.value=s)}}),isGroup:a,isLimitExceeded:i}},Ipe=(e,t,{model:n})=>{const r=Ge(kd,void 0),a=H(!1),i=P(()=>{const u=n.value;return Un(u)?u:He(u)?Mt(e.label)?u.map(tn).some(c=>pa(c,e.label)):u.map(tn).includes(e.label):u!=null?u===e.trueLabel:!!u}),o=qn(P(()=>{var u;return(u=r==null?void 0:r.size)==null?void 0:u.value}),{prop:!0}),s=qn(P(()=>{var u;return(u=r==null?void 0:r.size)==null?void 0:u.value})),l=P(()=>!!(t.default||e.label));return{checkboxButtonSize:o,isChecked:i,isFocused:a,checkboxSize:s,hasOwnLabel:l}},Dpe=(e,{model:t})=>{function n(){He(t.value)&&!t.value.includes(e.label)?t.value.push(e.label):t.value=e.trueLabel||!0}e.checked&&n()},TF=(e,t)=>{const{formItem:n}=aa(),{model:r,isGroup:a,isLimitExceeded:i}=Epe(e),{isFocused:o,isChecked:s,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:c}=Ipe(e,t,{model:r}),{isDisabled:f}=kpe({model:r,isChecked:s}),{inputId:d,isLabeledByFormItem:h}=Il(e,{formItemContext:n,disableIdGeneration:c,disableIdManagement:a}),{handleChange:v,onClickRoot:p}=Ape(e,{model:r,isLimitExceeded:i,hasOwnLabel:c,isDisabled:f,isLabeledByFormItem:h});return Dpe(e,{model:r}),{inputId:d,isLabeledByFormItem:h,isChecked:s,isDisabled:f,isFocused:o,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:c,model:r,handleChange:v,onClickRoot:p}},Ppe=["tabindex","role","aria-checked"],Lpe=["id","aria-hidden","name","tabindex","disabled","true-value","false-value"],Rpe=["id","aria-hidden","disabled","value","name","tabindex"],Ope=ne({name:"ElCheckbox"}),$pe=ne({...Ope,props:CF,emits:xF,setup(e){const t=e,n=Mr(),{inputId:r,isLabeledByFormItem:a,isChecked:i,isDisabled:o,isFocused:s,checkboxSize:l,hasOwnLabel:u,model:c,handleChange:f,onClickRoot:d}=TF(t,n),h=Me("checkbox"),v=P(()=>[h.b(),h.m(l.value),h.is("disabled",o.value),h.is("bordered",t.border),h.is("checked",i.value)]),p=P(()=>[h.e("input"),h.is("disabled",o.value),h.is("checked",i.value),h.is("indeterminate",t.indeterminate),h.is("focus",s.value)]);return(g,m)=>(R(),ce(Ct(!y(u)&&y(a)?"span":"label"),{class:V(y(v)),"aria-controls":g.indeterminate?g.controls:null,onClick:y(d)},{default:re(()=>[Y("span",{class:V(y(p)),tabindex:g.indeterminate?0:void 0,role:g.indeterminate?"checkbox":void 0,"aria-checked":g.indeterminate?"mixed":void 0},[g.trueLabel||g.falseLabel?dt((R(),K("input",{key:0,id:y(r),"onUpdate:modelValue":m[0]||(m[0]=b=>cn(c)?c.value=b:null),class:V(y(h).e("original")),type:"checkbox","aria-hidden":g.indeterminate?"true":"false",name:g.name,tabindex:g.tabindex,disabled:y(o),"true-value":g.trueLabel,"false-value":g.falseLabel,onChange:m[1]||(m[1]=(...b)=>y(f)&&y(f)(...b)),onFocus:m[2]||(m[2]=b=>s.value=!0),onBlur:m[3]||(m[3]=b=>s.value=!1),onClick:m[4]||(m[4]=tt(()=>{},["stop"]))},null,42,Lpe)),[[a0,y(c)]]):dt((R(),K("input",{key:1,id:y(r),"onUpdate:modelValue":m[5]||(m[5]=b=>cn(c)?c.value=b:null),class:V(y(h).e("original")),type:"checkbox","aria-hidden":g.indeterminate?"true":"false",disabled:y(o),value:g.label,name:g.name,tabindex:g.tabindex,onChange:m[6]||(m[6]=(...b)=>y(f)&&y(f)(...b)),onFocus:m[7]||(m[7]=b=>s.value=!0),onBlur:m[8]||(m[8]=b=>s.value=!1),onClick:m[9]||(m[9]=tt(()=>{},["stop"]))},null,42,Rpe)),[[a0,y(c)]]),Y("span",{class:V(y(h).e("inner"))},null,2)],10,Ppe),y(u)?(R(),K("span",{key:0,class:V(y(h).e("label"))},[_e(g.$slots,"default"),g.$slots.default?se("v-if",!0):(R(),K(je,{key:0},[Ut(De(g.label),1)],64))],2)):se("v-if",!0)]),_:3},8,["class","aria-controls","onClick"]))}});var Npe=Pe($pe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox.vue"]]);const Bpe=["name","tabindex","disabled","true-value","false-value"],Vpe=["name","tabindex","disabled","value"],zpe=ne({name:"ElCheckboxButton"}),Fpe=ne({...zpe,props:CF,emits:xF,setup(e){const t=e,n=Mr(),{isFocused:r,isChecked:a,isDisabled:i,checkboxButtonSize:o,model:s,handleChange:l}=TF(t,n),u=Ge(kd,void 0),c=Me("checkbox"),f=P(()=>{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=P(()=>[c.b("button"),c.bm("button",o.value),c.is("disabled",i.value),c.is("checked",a.value),c.is("focus",r.value)]);return(h,v)=>(R(),K("label",{class:V(y(d))},[h.trueLabel||h.falseLabel?dt((R(),K("input",{key:0,"onUpdate:modelValue":v[0]||(v[0]=p=>cn(s)?s.value=p:null),class:V(y(c).be("button","original")),type:"checkbox",name:h.name,tabindex:h.tabindex,disabled:y(i),"true-value":h.trueLabel,"false-value":h.falseLabel,onChange:v[1]||(v[1]=(...p)=>y(l)&&y(l)(...p)),onFocus:v[2]||(v[2]=p=>r.value=!0),onBlur:v[3]||(v[3]=p=>r.value=!1),onClick:v[4]||(v[4]=tt(()=>{},["stop"]))},null,42,Bpe)),[[a0,y(s)]]):dt((R(),K("input",{key:1,"onUpdate:modelValue":v[5]||(v[5]=p=>cn(s)?s.value=p:null),class:V(y(c).be("button","original")),type:"checkbox",name:h.name,tabindex:h.tabindex,disabled:y(i),value:h.label,onChange:v[6]||(v[6]=(...p)=>y(l)&&y(l)(...p)),onFocus:v[7]||(v[7]=p=>r.value=!0),onBlur:v[8]||(v[8]=p=>r.value=!1),onClick:v[9]||(v[9]=tt(()=>{},["stop"]))},null,42,Vpe)),[[a0,y(s)]]),h.$slots.default||h.label?(R(),K("span",{key:2,class:V(y(c).be("button","inner")),style:Ye(y(a)?y(f):void 0)},[_e(h.$slots,"default",{},()=>[Ut(De(h.label),1)])],6)):se("v-if",!0)],2))}});var MF=Pe(Fpe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-button.vue"]]);const Hpe=Le({modelValue:{type:ue(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:Sr,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0}}),Gpe={[wt]:e=>He(e),change:e=>He(e)},Wpe=ne({name:"ElCheckboxGroup"}),Kpe=ne({...Wpe,props:Hpe,emits:Gpe,setup(e,{emit:t}){const n=e,r=Me("checkbox"),{formItem:a}=aa(),{inputId:i,isLabeledByFormItem:o}=Il(n,{formItemContext:a}),s=async u=>{t(wt,u),await Ue(),t("change",u)},l=P({get(){return n.modelValue},set(u){s(u)}});return Et(kd,{...Ho(or(n),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:l,changeEvent:s}),xe(()=>n.modelValue,()=>{n.validateEvent&&(a==null||a.validate("change").catch(u=>void 0))}),(u,c)=>{var f;return R(),ce(Ct(u.tag),{id:y(i),class:V(y(r).b("group")),role:"group","aria-label":y(o)?void 0:u.label||"checkbox-group","aria-labelledby":y(o)?(f=y(a))==null?void 0:f.labelId:void 0},{default:re(()=>[_e(u.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var kF=Pe(Kpe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-group.vue"]]);const li=_t(Npe,{CheckboxButton:MF,CheckboxGroup:kF}),Upe=Dn(MF),AF=Dn(kF),EF=Le({size:Sr,disabled:Boolean,label:{type:[String,Number,Boolean],default:""}}),Ype=Le({...EF,modelValue:{type:[String,Number,Boolean],default:""},name:{type:String,default:""},border:Boolean}),IF={[wt]:e=>lt(e)||at(e)||Un(e),[mn]:e=>lt(e)||at(e)||Un(e)},DF=Symbol("radioGroupKey"),PF=(e,t)=>{const n=H(),r=Ge(DF,void 0),a=P(()=>!!r),i=P({get(){return a.value?r.modelValue:e.modelValue},set(c){a.value?r.changeEvent(c):t&&t(wt,c),n.value.checked=e.modelValue===e.label}}),o=qn(P(()=>r==null?void 0:r.size)),s=wa(P(()=>r==null?void 0:r.disabled)),l=H(!1),u=P(()=>s.value||a.value&&i.value!==e.label?-1:0);return{radioRef:n,isGroup:a,radioGroup:r,focus:l,size:o,disabled:s,tabIndex:u,modelValue:i}},jpe=["value","name","disabled"],qpe=ne({name:"ElRadio"}),Xpe=ne({...qpe,props:Ype,emits:IF,setup(e,{emit:t}){const n=e,r=Me("radio"),{radioRef:a,radioGroup:i,focus:o,size:s,disabled:l,modelValue:u}=PF(n,t);function c(){Ue(()=>t("change",u.value))}return(f,d)=>{var h;return R(),K("label",{class:V([y(r).b(),y(r).is("disabled",y(l)),y(r).is("focus",y(o)),y(r).is("bordered",f.border),y(r).is("checked",y(u)===f.label),y(r).m(y(s))])},[Y("span",{class:V([y(r).e("input"),y(r).is("disabled",y(l)),y(r).is("checked",y(u)===f.label)])},[dt(Y("input",{ref_key:"radioRef",ref:a,"onUpdate:modelValue":d[0]||(d[0]=v=>cn(u)?u.value=v:null),class:V(y(r).e("original")),value:f.label,name:f.name||((h=y(i))==null?void 0:h.name),disabled:y(l),type:"radio",onFocus:d[1]||(d[1]=v=>o.value=!0),onBlur:d[2]||(d[2]=v=>o.value=!1),onChange:c,onClick:d[3]||(d[3]=tt(()=>{},["stop"]))},null,42,jpe),[[AV,y(u)]]),Y("span",{class:V(y(r).e("inner"))},null,2)],2),Y("span",{class:V(y(r).e("label")),onKeydown:d[4]||(d[4]=tt(()=>{},["stop"]))},[_e(f.$slots,"default",{},()=>[Ut(De(f.label),1)])],34)],2)}}});var Zpe=Pe(Xpe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio.vue"]]);const Jpe=Le({...EF,name:{type:String,default:""}}),Qpe=["value","name","disabled"],ege=ne({name:"ElRadioButton"}),tge=ne({...ege,props:Jpe,setup(e){const t=e,n=Me("radio"),{radioRef:r,focus:a,size:i,disabled:o,modelValue:s,radioGroup:l}=PF(t),u=P(()=>({backgroundColor:(l==null?void 0:l.fill)||"",borderColor:(l==null?void 0:l.fill)||"",boxShadow:l!=null&&l.fill?`-1px 0 0 0 ${l.fill}`:"",color:(l==null?void 0:l.textColor)||""}));return(c,f)=>{var d;return R(),K("label",{class:V([y(n).b("button"),y(n).is("active",y(s)===c.label),y(n).is("disabled",y(o)),y(n).is("focus",y(a)),y(n).bm("button",y(i))])},[dt(Y("input",{ref_key:"radioRef",ref:r,"onUpdate:modelValue":f[0]||(f[0]=h=>cn(s)?s.value=h:null),class:V(y(n).be("button","original-radio")),value:c.label,type:"radio",name:c.name||((d=y(l))==null?void 0:d.name),disabled:y(o),onFocus:f[1]||(f[1]=h=>a.value=!0),onBlur:f[2]||(f[2]=h=>a.value=!1),onClick:f[3]||(f[3]=tt(()=>{},["stop"]))},null,42,Qpe),[[AV,y(s)]]),Y("span",{class:V(y(n).be("button","inner")),style:Ye(y(s)===c.label?y(u):{}),onKeydown:f[4]||(f[4]=tt(()=>{},["stop"]))},[_e(c.$slots,"default",{},()=>[Ut(De(c.label),1)])],38)],2)}}});var LF=Pe(tge,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-button.vue"]]);const nge=Le({id:{type:String,default:void 0},size:Sr,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:""},fill:{type:String,default:""},label:{type:String,default:void 0},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0}}),rge=IF,age=["id","aria-label","aria-labelledby"],ige=ne({name:"ElRadioGroup"}),oge=ne({...ige,props:nge,emits:rge,setup(e,{emit:t}){const n=e,r=Me("radio"),a=oi(),i=H(),{formItem:o}=aa(),{inputId:s,isLabeledByFormItem:l}=Il(n,{formItemContext:o}),u=f=>{t(wt,f),Ue(()=>t("change",f))};yt(()=>{const f=i.value.querySelectorAll("[type=radio]"),d=f[0];!Array.from(f).some(h=>h.checked)&&d&&(d.tabIndex=0)});const c=P(()=>n.name||a.value);return Et(DF,jt({...or(n),changeEvent:u,name:c})),xe(()=>n.modelValue,()=>{n.validateEvent&&(o==null||o.validate("change").catch(f=>void 0))}),(f,d)=>(R(),K("div",{id:y(s),ref_key:"radioGroupRef",ref:i,class:V(y(r).b("group")),role:"radiogroup","aria-label":y(l)?void 0:f.label||"radio-group","aria-labelledby":y(l)?y(o).labelId:void 0},[_e(f.$slots,"default")],10,age))}});var RF=Pe(oge,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-group.vue"]]);const OF=_t(Zpe,{RadioButton:LF,RadioGroup:RF}),sge=Dn(RF),lge=Dn(LF);var uge=ne({name:"NodeContent",setup(){return{ns:Me("cascader-node")}},render(){const{ns:e}=this,{node:t,panel:n}=this.$parent,{data:r,label:a}=t,{renderLabelFn:i}=n;return Ze("span",{class:e.e("label")},i?i({node:t,data:r}):a)}});const NM=Symbol(),cge=ne({name:"ElCascaderNode",components:{ElCheckbox:li,ElRadio:OF,NodeContent:uge,ElIcon:Ke,Check:Zp,Loading:kl,ArrowRight:jr},props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup(e,{emit:t}){const n=Ge(NM),r=Me("cascader-node"),a=P(()=>n.isHoverMenu),i=P(()=>n.config.multiple),o=P(()=>n.config.checkStrictly),s=P(()=>{var S;return(S=n.checkedNodes[0])==null?void 0:S.uid}),l=P(()=>e.node.isDisabled),u=P(()=>e.node.isLeaf),c=P(()=>o.value&&!u.value||!l.value),f=P(()=>h(n.expandingNode)),d=P(()=>o.value&&n.checkedNodes.some(h)),h=S=>{var x;const{level:T,uid:M}=e.node;return((x=S==null?void 0:S.pathNodes[T-1])==null?void 0:x.uid)===M},v=()=>{f.value||n.expandNode(e.node)},p=S=>{const{node:x}=e;S!==x.checked&&n.handleCheckChange(x,S)},g=()=>{n.lazyLoad(e.node,()=>{u.value||v()})},m=S=>{a.value&&(b(),!u.value&&t("expand",S))},b=()=>{const{node:S}=e;!c.value||S.loading||(S.loaded?v():g())},_=()=>{a.value&&!u.value||(u.value&&!l.value&&!o.value&&!i.value?C(!0):b())},w=S=>{o.value?(p(S),e.node.loaded&&v()):C(S)},C=S=>{e.node.loaded?(p(S),!o.value&&v()):g()};return{panel:n,isHoverMenu:a,multiple:i,checkStrictly:o,checkedNodeId:s,isDisabled:l,isLeaf:u,expandable:c,inExpandingPath:f,inCheckedPath:d,ns:r,handleHoverExpand:m,handleExpand:b,handleClick:_,handleCheck:C,handleSelectCheck:w}}}),fge=["id","aria-haspopup","aria-owns","aria-expanded","tabindex"],dge=Y("span",null,null,-1);function hge(e,t,n,r,a,i){const o=ct("el-checkbox"),s=ct("el-radio"),l=ct("check"),u=ct("el-icon"),c=ct("node-content"),f=ct("loading"),d=ct("arrow-right");return R(),K("li",{id:`${e.menuId}-${e.node.uid}`,role:"menuitem","aria-haspopup":!e.isLeaf,"aria-owns":e.isLeaf?null:e.menuId,"aria-expanded":e.inExpandingPath,tabindex:e.expandable?-1:void 0,class:V([e.ns.b(),e.ns.is("selectable",e.checkStrictly),e.ns.is("active",e.node.checked),e.ns.is("disabled",!e.expandable),e.inExpandingPath&&"in-active-path",e.inCheckedPath&&"in-checked-path"]),onMouseenter:t[2]||(t[2]=(...h)=>e.handleHoverExpand&&e.handleHoverExpand(...h)),onFocus:t[3]||(t[3]=(...h)=>e.handleHoverExpand&&e.handleHoverExpand(...h)),onClick:t[4]||(t[4]=(...h)=>e.handleClick&&e.handleClick(...h))},[se(" prefix "),e.multiple?(R(),ce(o,{key:0,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:e.isDisabled,onClick:t[0]||(t[0]=tt(()=>{},["stop"])),"onUpdate:modelValue":e.handleSelectCheck},null,8,["model-value","indeterminate","disabled","onUpdate:modelValue"])):e.checkStrictly?(R(),ce(s,{key:1,"model-value":e.checkedNodeId,label:e.node.uid,disabled:e.isDisabled,"onUpdate:modelValue":e.handleSelectCheck,onClick:t[1]||(t[1]=tt(()=>{},["stop"]))},{default:re(()=>[se(`
  42. Add an empty element to avoid render label,
  43. do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485
  44. `),dge]),_:1},8,["model-value","label","disabled","onUpdate:modelValue"])):e.isLeaf&&e.node.checked?(R(),ce(u,{key:2,class:V(e.ns.e("prefix"))},{default:re(()=>[q(l)]),_:1},8,["class"])):se("v-if",!0),se(" content "),q(c),se(" postfix "),e.isLeaf?se("v-if",!0):(R(),K(je,{key:3},[e.node.loading?(R(),ce(u,{key:0,class:V([e.ns.is("loading"),e.ns.e("postfix")])},{default:re(()=>[q(f)]),_:1},8,["class"])):(R(),ce(u,{key:1,class:V(["arrow-right",e.ns.e("postfix")])},{default:re(()=>[q(d)]),_:1},8,["class"]))],64))],42,fge)}var vge=Pe(cge,[["render",hge],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/node.vue"]]);const pge=ne({name:"ElCascaderMenu",components:{Loading:kl,ElIcon:Ke,ElScrollbar:hs,ElCascaderNode:vge},props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=gt(),n=Me("cascader-menu"),{t:r}=Ht(),a=Xb();let i=null,o=null;const s=Ge(NM),l=H(null),u=P(()=>!e.nodes.length),c=P(()=>!s.initialLoaded),f=P(()=>`cascader-menu-${a}-${e.index}`),d=g=>{i=g.target},h=g=>{if(!(!s.isHoverMenu||!i||!l.value))if(i.contains(g.target)){v();const m=t.vnode.el,{left:b}=m.getBoundingClientRect(),{offsetWidth:_,offsetHeight:w}=m,C=g.clientX-b,S=i.offsetTop,x=S+i.offsetHeight;l.value.innerHTML=`
  45. <path style="pointer-events: auto;" fill="transparent" d="M${C} ${S} L${_} 0 V${S} Z" />
  46. <path style="pointer-events: auto;" fill="transparent" d="M${C} ${x} L${_} ${w} V${x} Z" />
  47. `}else o||(o=window.setTimeout(p,s.config.hoverThreshold))},v=()=>{o&&(clearTimeout(o),o=null)},p=()=>{l.value&&(l.value.innerHTML="",v())};return{ns:n,panel:s,hoverZone:l,isEmpty:u,isLoading:c,menuId:f,t:r,handleExpand:d,handleMouseMove:h,clearHoverZone:p}}});function gge(e,t,n,r,a,i){const o=ct("el-cascader-node"),s=ct("loading"),l=ct("el-icon"),u=ct("el-scrollbar");return R(),ce(u,{key:e.menuId,tag:"ul",role:"menu",class:V(e.ns.b()),"wrap-class":e.ns.e("wrap"),"view-class":[e.ns.e("list"),e.ns.is("empty",e.isEmpty)],onMousemove:e.handleMouseMove,onMouseleave:e.clearHoverZone},{default:re(()=>{var c;return[(R(!0),K(je,null,Ot(e.nodes,f=>(R(),ce(o,{key:f.uid,node:f,"menu-id":e.menuId,onExpand:e.handleExpand},null,8,["node","menu-id","onExpand"]))),128)),e.isLoading?(R(),K("div",{key:0,class:V(e.ns.e("empty-text"))},[q(l,{size:"14",class:V(e.ns.is("loading"))},{default:re(()=>[q(s)]),_:1},8,["class"]),Ut(" "+De(e.t("el.cascader.loading")),1)],2)):e.isEmpty?(R(),K("div",{key:1,class:V(e.ns.e("empty-text"))},De(e.t("el.cascader.noData")),3)):(c=e.panel)!=null&&c.isHoverMenu?(R(),K("svg",{key:2,ref:"hoverZone",class:V(e.ns.e("hover-zone"))},null,2)):se("v-if",!0)]}),_:1},8,["class","wrap-class","view-class","onMousemove","onMouseleave"])}var mge=Pe(pge,[["render",gge],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/menu.vue"]]);let yge=0;const bge=e=>{const t=[e];let{parent:n}=e;for(;n;)t.unshift(n),n=n.parent;return t};let XC=class ZC{constructor(t,n,r,a=!1){this.data=t,this.config=n,this.parent=r,this.root=a,this.uid=yge++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:i,label:o,children:s}=n,l=t[s],u=bge(this);this.level=a?0:r?r.level+1:1,this.value=t[i],this.label=t[o],this.pathNodes=u,this.pathValues=u.map(c=>c.value),this.pathLabels=u.map(c=>c.label),this.childrenData=l,this.children=(l||[]).map(c=>new ZC(c,n,this)),this.loaded=!n.lazy||this.isLeaf||!ja(l)}get isDisabled(){const{data:t,parent:n,config:r}=this,{disabled:a,checkStrictly:i}=r;return(it(a)?a(t,this):!!t[a])||!i&&(n==null?void 0:n.isDisabled)}get isLeaf(){const{data:t,config:n,childrenData:r,loaded:a}=this,{lazy:i,leaf:o}=n,s=it(o)?o(t,this):t[o];return er(s)?i&&!a?!1:!(Array.isArray(r)&&r.length):!!s}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:n,children:r}=this,a=new ZC(t,this.config,this);return Array.isArray(n)?n.push(t):this.childrenData=[t],r.push(a),a}calcText(t,n){const r=t?this.pathLabels.join(n):this.label;return this.text=r,r}broadcast(t,...n){const r=`onParent${io(t)}`;this.children.forEach(a=>{a&&(a.broadcast(t,...n),a[r]&&a[r](...n))})}emit(t,...n){const{parent:r}=this,a=`onChild${io(t)}`;r&&(r[a]&&r[a](...n),r.emit(t,...n))}onParentCheck(t){this.isDisabled||this.setCheckState(t)}onChildCheck(){const{children:t}=this,n=t.filter(a=>!a.isDisabled),r=n.length?n.every(a=>a.checked):!1;this.setCheckState(r)}setCheckState(t){const n=this.children.length,r=this.children.reduce((a,i)=>{const o=i.checked?1:i.indeterminate?.5:0;return a+o},0);this.checked=this.loaded&&this.children.filter(a=>!a.isDisabled).every(a=>a.loaded&&a.checked)&&t,this.indeterminate=this.loaded&&r!==n&&r>0}doCheck(t){if(this.checked===t)return;const{checkStrictly:n,multiple:r}=this.config;n||!r?this.checked=t:(this.broadcast("check",t),this.setCheckState(t),this.emit("check"))}};const JC=(e,t)=>e.reduce((n,r)=>(r.isLeaf?n.push(r):(!t&&n.push(r),n=n.concat(JC(r.children,t))),n),[]);class RP{constructor(t,n){this.config=n;const r=(t||[]).map(a=>new XC(a,this.config));this.nodes=r,this.allNodes=JC(r,!1),this.leafNodes=JC(r,!0)}getNodes(){return this.nodes}getFlattedNodes(t){return t?this.leafNodes:this.allNodes}appendNode(t,n){const r=n?n.appendChild(t):new XC(t,this.config);n||this.nodes.push(r),this.allNodes.push(r),r.isLeaf&&this.leafNodes.push(r)}appendNodes(t,n){t.forEach(r=>this.appendNode(r,n))}getNodeByValue(t,n=!1){return!t&&t!==0?null:this.getFlattedNodes(n).find(a=>pa(a.value,t)||pa(a.pathValues,t))||null}getSameNode(t){return t&&this.getFlattedNodes(!1).find(({value:r,level:a})=>pa(t.value,r)&&t.level===a)||null}}const $F=Le({modelValue:{type:ue([Number,String,Array])},options:{type:ue(Array),default:()=>[]},props:{type:ue(Object),default:()=>({})}}),_ge={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:rn,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},wge=e=>P(()=>({..._ge,...e.props})),OP=e=>{if(!e)return 0;const t=e.id.split("-");return Number(t[t.length-2])},Sge=e=>{if(!e)return;const t=e.querySelector("input");t?t.click():UV(e)&&e.click()},Cge=(e,t)=>{const n=t.slice(0),r=n.map(i=>i.uid),a=e.reduce((i,o)=>{const s=r.indexOf(o.uid);return s>-1&&(i.push(o),n.splice(s,1),r.splice(s,1)),i},[]);return a.push(...n),a},xge=ne({name:"ElCascaderPanel",components:{ElCascaderMenu:mge},props:{...$F,border:{type:Boolean,default:!0},renderLabel:Function},emits:[wt,mn,"close","expand-change"],setup(e,{emit:t,slots:n}){let r=!1;const a=Me("cascader"),i=wge(e);let o=null;const s=H(!0),l=H([]),u=H(null),c=H([]),f=H(null),d=H([]),h=P(()=>i.value.expandTrigger==="hover"),v=P(()=>e.renderLabel||n.default),p=()=>{const{options:E}=e,D=i.value;r=!1,o=new RP(E,D),c.value=[o.getNodes()],D.lazy&&ja(e.options)?(s.value=!1,g(void 0,L=>{L&&(o=new RP(L,D),c.value=[o.getNodes()]),s.value=!0,T(!1,!0)})):T(!1,!0)},g=(E,D)=>{const L=i.value;E=E||new XC({},L,void 0,!0),E.loading=!0;const B=N=>{const O=E,$=O.root?null:O;N&&(o==null||o.appendNodes(N,$)),O.loading=!1,O.loaded=!0,O.childrenData=O.childrenData||[],D&&D(N)};L.lazyLoad(E,B)},m=(E,D)=>{var L;const{level:B}=E,N=c.value.slice(0,B);let O;E.isLeaf?O=E.pathNodes[B-2]:(O=E,N.push(E.children)),((L=f.value)==null?void 0:L.uid)!==(O==null?void 0:O.uid)&&(f.value=E,c.value=N,!D&&t("expand-change",(E==null?void 0:E.pathValues)||[]))},b=(E,D,L=!0)=>{const{checkStrictly:B,multiple:N}=i.value,O=d.value[0];r=!0,!N&&(O==null||O.doCheck(!1)),E.doCheck(D),x(),L&&!N&&!B&&t("close"),!L&&!N&&!B&&_(E)},_=E=>{E&&(E=E.parent,_(E),E&&m(E))},w=E=>o==null?void 0:o.getFlattedNodes(E),C=E=>{var D;return(D=w(E))==null?void 0:D.filter(L=>L.checked!==!1)},S=()=>{d.value.forEach(E=>E.doCheck(!1)),x(),c.value=c.value.slice(0,1),f.value=null,t("expand-change",[])},x=()=>{var E;const{checkStrictly:D,multiple:L}=i.value,B=d.value,N=C(!D),O=Cge(B,N),$=O.map(I=>I.valueByOption);d.value=O,u.value=L?$:(E=$[0])!=null?E:null},T=(E=!1,D=!1)=>{const{modelValue:L}=e,{lazy:B,multiple:N,checkStrictly:O}=i.value,$=!O;if(!(!s.value||r||!D&&pa(L,u.value)))if(B&&!E){const z=OD(wre(jo(L))).map(G=>o==null?void 0:o.getNodeByValue(G)).filter(G=>!!G&&!G.loaded&&!G.loading);z.length?z.forEach(G=>{g(G,()=>T(!1,D))}):T(!0,D)}else{const I=N?jo(L):[L],z=OD(I.map(G=>o==null?void 0:o.getNodeByValue(G,$)));M(z,D),u.value=l0(L)}},M=(E,D=!0)=>{const{checkStrictly:L}=i.value,B=d.value,N=E.filter(I=>!!I&&(L||I.isLeaf)),O=o==null?void 0:o.getSameNode(f.value),$=D&&O||N[0];$?$.pathNodes.forEach(I=>m(I,!0)):f.value=null,B.forEach(I=>I.doCheck(!1)),e.props.multiple?jt(N).forEach(I=>I.doCheck(!0)):N.forEach(I=>I.doCheck(!0)),d.value=N,Ue(A)},A=()=>{Vt&&l.value.forEach(E=>{const D=E==null?void 0:E.$el;if(D){const L=D.querySelector(`.${a.namespace.value}-scrollbar__wrap`),B=D.querySelector(`.${a.b("node")}.${a.is("active")}`)||D.querySelector(`.${a.b("node")}.in-active-path`);B5(L,B)}})},k=E=>{const D=E.target,{code:L}=E;switch(L){case Xe.up:case Xe.down:{E.preventDefault();const B=L===Xe.up?-1:1;ly(YV(D,B,`.${a.b("node")}[tabindex="-1"]`));break}case Xe.left:{E.preventDefault();const B=l.value[OP(D)-1],N=B==null?void 0:B.$el.querySelector(`.${a.b("node")}[aria-expanded="true"]`);ly(N);break}case Xe.right:{E.preventDefault();const B=l.value[OP(D)+1],N=B==null?void 0:B.$el.querySelector(`.${a.b("node")}[tabindex="-1"]`);ly(N);break}case Xe.enter:Sge(D);break}};return Et(NM,jt({config:i,expandingNode:f,checkedNodes:d,isHoverMenu:h,initialLoaded:s,renderLabelFn:v,lazyLoad:g,expandNode:m,handleCheckChange:b})),xe([i,()=>e.options],p,{deep:!0,immediate:!0}),xe(()=>e.modelValue,()=>{r=!1,T()},{deep:!0}),xe(()=>u.value,E=>{pa(E,e.modelValue)||(t(wt,E),t(mn,E))}),rV(()=>l.value=[]),yt(()=>!ja(e.modelValue)&&T()),{ns:a,menuList:l,menus:c,checkedNodes:d,handleKeyDown:k,handleCheckChange:b,getFlattedNodes:w,getCheckedNodes:C,clearCheckedNodes:S,calculateCheckedValue:x,scrollToExpandingNode:A}}});function Tge(e,t,n,r,a,i){const o=ct("el-cascader-menu");return R(),K("div",{class:V([e.ns.b("panel"),e.ns.is("bordered",e.border)]),onKeydown:t[0]||(t[0]=(...s)=>e.handleKeyDown&&e.handleKeyDown(...s))},[(R(!0),K(je,null,Ot(e.menus,(s,l)=>(R(),ce(o,{key:l,ref_for:!0,ref:u=>e.menuList[l]=u,index:l,nodes:[...s]},null,8,["index","nodes"]))),128))],34)}var gy=Pe(xge,[["render",Tge],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/index.vue"]]);gy.install=e=>{e.component(gy.name,gy)};const NF=gy,Mge=NF,BM=Le({type:{type:String,values:["success","info","warning","danger",""],default:""},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:{type:String,default:""},size:{type:String,values:Mo,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),kge={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},Age=ne({name:"ElTag"}),Ege=ne({...Age,props:BM,emits:kge,setup(e,{emit:t}){const n=e,r=qn(),a=Me("tag"),i=P(()=>{const{type:l,hit:u,effect:c,closable:f,round:d}=n;return[a.b(),a.is("closable",f),a.m(l),a.m(r.value),a.m(c),a.is("hit",u),a.is("round",d)]}),o=l=>{t("close",l)},s=l=>{t("click",l)};return(l,u)=>l.disableTransitions?(R(),K("span",{key:0,class:V(y(i)),style:Ye({backgroundColor:l.color}),onClick:s},[Y("span",{class:V(y(a).e("content"))},[_e(l.$slots,"default")],2),l.closable?(R(),ce(y(Ke),{key:0,class:V(y(a).e("close")),onClick:tt(o,["stop"])},{default:re(()=>[q(y(Bi))]),_:1},8,["class","onClick"])):se("v-if",!0)],6)):(R(),ce(Bn,{key:1,name:`${y(a).namespace.value}-zoom-in-center`,appear:""},{default:re(()=>[Y("span",{class:V(y(i)),style:Ye({backgroundColor:l.color}),onClick:s},[Y("span",{class:V(y(a).e("content"))},[_e(l.$slots,"default")],2),l.closable?(R(),ce(y(Ke),{key:0,class:V(y(a).e("close")),onClick:tt(o,["stop"])},{default:re(()=>[q(y(Bi))]),_:1},8,["class","onClick"])):se("v-if",!0)],6)]),_:3},8,["name"]))}});var Ige=Pe(Ege,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);const Qv=_t(Ige),Dge=Le({...$F,size:Sr,placeholder:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,filterMethod:{type:ue(Function),default:(e,t)=>e.text.includes(t)},separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,maxCollapseTags:{type:Number,default:1},collapseTagsTooltip:{type:Boolean,default:!1},debounce:{type:Number,default:300},beforeFilter:{type:ue(Function),default:()=>!0},popperClass:{type:String,default:""},teleported:cr.teleported,tagType:{...BM.type,default:"info"},validateEvent:{type:Boolean,default:!0}}),Pge={[wt]:e=>!!e||e===null,[mn]:e=>!!e||e===null,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,visibleChange:e=>Un(e),expandChange:e=>!!e,removeTag:e=>!!e},Lge={key:0},Rge=["placeholder","onKeydown"],Oge=["onClick"],$ge="ElCascader",Nge=ne({name:$ge}),Bge=ne({...Nge,props:Dge,emits:Pge,setup(e,{expose:t,emit:n}){const r=e,a={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:fe})=>{const{modifiersData:le,placement:ke}=fe;["right","left","bottom","top"].includes(ke)||(le.arrow.x=35)},requires:["arrow"]}]},i=mc();let o=0,s=0;const l=Me("cascader"),u=Me("input"),{t:c}=Ht(),{form:f,formItem:d}=aa(),h=H(null),v=H(null),p=H(null),g=H(null),m=H(null),b=H(!1),_=H(!1),w=H(!1),C=H(!1),S=H(""),x=H(""),T=H([]),M=H([]),A=H([]),k=H(!1),E=P(()=>i.style),D=P(()=>r.disabled||(f==null?void 0:f.disabled)),L=P(()=>r.placeholder||c("el.cascader.placeholder")),B=P(()=>x.value||T.value.length>0||k.value?"":L.value),N=qn(),O=P(()=>["small"].includes(N.value)?"small":"default"),$=P(()=>!!r.props.multiple),I=P(()=>!r.filterable||$.value),z=P(()=>$.value?x.value:S.value),G=P(()=>{var fe;return((fe=g.value)==null?void 0:fe.checkedNodes)||[]}),U=P(()=>!r.clearable||D.value||w.value||!_.value?!1:!!G.value.length),Z=P(()=>{const{showAllLevels:fe,separator:le}=r,ke=G.value;return ke.length?$.value?"":ke[0].calcText(fe,le):""}),ae=P({get(){return l0(r.modelValue)},set(fe){n(wt,fe),n(mn,fe),r.validateEvent&&(d==null||d.validate("change").catch(le=>void 0))}}),J=P(()=>[l.b(),l.m(N.value),l.is("disabled",D.value),i.class]),Q=P(()=>[u.e("icon"),"icon-arrow-down",l.is("reverse",b.value)]),ee=P(()=>l.is("focus",b.value||C.value)),j=P(()=>{var fe,le;return(le=(fe=h.value)==null?void 0:fe.popperRef)==null?void 0:le.contentRef}),de=fe=>{var le,ke,te;D.value||(fe=fe??!b.value,fe!==b.value&&(b.value=fe,(ke=(le=v.value)==null?void 0:le.input)==null||ke.setAttribute("aria-expanded",`${fe}`),fe?(ve(),Ue((te=g.value)==null?void 0:te.scrollToExpandingNode)):r.filterable&&Be(),n("visibleChange",fe)))},ve=()=>{Ue(()=>{var fe;(fe=h.value)==null||fe.updatePopper()})},ie=()=>{w.value=!1},W=fe=>{const{showAllLevels:le,separator:ke}=r;return{node:fe,key:fe.uid,text:fe.calcText(le,ke),hitState:!1,closable:!D.value&&!fe.isDisabled,isCollapseTag:!1}},X=fe=>{var le;const ke=fe.node;ke.doCheck(!1),(le=g.value)==null||le.calculateCheckedValue(),n("removeTag",ke.valueByOption)},oe=()=>{if(!$.value)return;const fe=G.value,le=[],ke=[];if(fe.forEach(te=>ke.push(W(te))),M.value=ke,fe.length){fe.slice(0,r.maxCollapseTags).forEach(st=>le.push(W(st)));const te=fe.slice(r.maxCollapseTags),Ve=te.length;Ve&&(r.collapseTags?le.push({key:-1,text:`+ ${Ve}`,closable:!1,isCollapseTag:!0}):te.forEach(st=>le.push(W(st))))}T.value=le},pe=()=>{var fe,le;const{filterMethod:ke,showAllLevels:te,separator:Ve}=r,st=(le=(fe=g.value)==null?void 0:fe.getFlattedNodes(!r.props.checkStrictly))==null?void 0:le.filter(It=>It.isDisabled?!1:(It.calcText(te,Ve),ke(It,z.value)));$.value&&(T.value.forEach(It=>{It.hitState=!1}),M.value.forEach(It=>{It.hitState=!1})),w.value=!0,A.value=st,ve()},Se=()=>{var fe;let le;w.value&&m.value?le=m.value.$el.querySelector(`.${l.e("suggestion-item")}`):le=(fe=g.value)==null?void 0:fe.$el.querySelector(`.${l.b("node")}[tabindex="-1"]`),le&&(le.focus(),!w.value&&le.click())},me=()=>{var fe,le;const ke=(fe=v.value)==null?void 0:fe.input,te=p.value,Ve=(le=m.value)==null?void 0:le.$el;if(!(!Vt||!ke)){if(Ve){const st=Ve.querySelector(`.${l.e("suggestion-list")}`);st.style.minWidth=`${ke.offsetWidth}px`}if(te){const{offsetHeight:st}=te,It=T.value.length>0?`${Math.max(st+6,o)}px`:`${o}px`;ke.style.height=It,ve()}}},Ee=fe=>{var le;return(le=g.value)==null?void 0:le.getCheckedNodes(fe)},Ce=fe=>{ve(),n("expandChange",fe)},we=fe=>{var le;const ke=(le=fe.target)==null?void 0:le.value;if(fe.type==="compositionend")k.value=!1,Ue(()=>Qe(ke));else{const te=ke[ke.length-1]||"";k.value=!jb(te)}},Te=fe=>{if(!k.value)switch(fe.code){case Xe.enter:de();break;case Xe.down:de(!0),Ue(Se),fe.preventDefault();break;case Xe.esc:b.value===!0&&(fe.preventDefault(),fe.stopPropagation(),de(!1));break;case Xe.tab:de(!1);break}},$e=()=>{var fe;(fe=g.value)==null||fe.clearCheckedNodes(),!b.value&&r.filterable&&Be(),de(!1)},Be=()=>{const{value:fe}=Z;S.value=fe,x.value=fe},We=fe=>{var le,ke;const{checked:te}=fe;$.value?(le=g.value)==null||le.handleCheckChange(fe,!te,!1):(!te&&((ke=g.value)==null||ke.handleCheckChange(fe,!0,!1)),de(!1))},Ae=fe=>{const le=fe.target,{code:ke}=fe;switch(ke){case Xe.up:case Xe.down:{const te=ke===Xe.up?-1:1;ly(YV(le,te,`.${l.e("suggestion-item")}[tabindex="-1"]`));break}case Xe.enter:le.click();break}},Fe=()=>{const fe=T.value,le=fe[fe.length-1];s=x.value?0:s+1,!(!le||!s||r.collapseTags&&fe.length>1)&&(le.hitState?X(le):le.hitState=!0)},rt=fe=>{const le=fe.target,ke=l.e("search-input");le.className===ke&&(C.value=!0),n("focus",fe)},vt=fe=>{C.value=!1,n("blur",fe)},kt=Qr(()=>{const{value:fe}=z;if(!fe)return;const le=r.beforeFilter(fe);Ev(le)?le.then(pe).catch(()=>{}):le!==!1?pe():ie()},r.debounce),Qe=(fe,le)=>{!b.value&&de(!0),!(le!=null&&le.isComposing)&&(fe?kt():ie())},ye=fe=>Number.parseFloat(hZ(u.cssVarName("input-height"),fe).value)-2;return xe(w,ve),xe([G,D],oe),xe(T,()=>{Ue(()=>me())}),xe(N,async()=>{await Ue();const fe=v.value.input;o=ye(fe)||o,me()}),xe(Z,Be,{immediate:!0}),yt(()=>{const fe=v.value.input,le=ye(fe);o=fe.offsetHeight||le,$r(fe,me)}),t({getCheckedNodes:Ee,cascaderPanelRef:g,togglePopperVisible:de,contentRef:j}),(fe,le)=>(R(),ce(y(ea),{ref_key:"tooltipRef",ref:h,visible:b.value,teleported:fe.teleported,"popper-class":[y(l).e("dropdown"),fe.popperClass],"popper-options":a,"fallback-placements":["bottom-start","bottom","top-start","top","right","left"],"stop-popper-mouse-event":!1,"gpu-acceleration":!1,placement:"bottom-start",transition:`${y(l).namespace.value}-zoom-in-top`,effect:"light",pure:"",persistent:"",onHide:ie},{default:re(()=>[dt((R(),K("div",{class:V(y(J)),style:Ye(y(E)),onClick:le[5]||(le[5]=()=>de(y(I)?void 0:!0)),onKeydown:Te,onMouseenter:le[6]||(le[6]=ke=>_.value=!0),onMouseleave:le[7]||(le[7]=ke=>_.value=!1)},[q(y(Rr),{ref_key:"input",ref:v,modelValue:S.value,"onUpdate:modelValue":le[1]||(le[1]=ke=>S.value=ke),placeholder:y(B),readonly:y(I),disabled:y(D),"validate-event":!1,size:y(N),class:V(y(ee)),tabindex:y($)&&fe.filterable&&!y(D)?-1:void 0,onCompositionstart:we,onCompositionupdate:we,onCompositionend:we,onFocus:rt,onBlur:vt,onInput:Qe},{suffix:re(()=>[y(U)?(R(),ce(y(Ke),{key:"clear",class:V([y(u).e("icon"),"icon-circle-close"]),onClick:tt($e,["stop"])},{default:re(()=>[q(y(Ml))]),_:1},8,["class","onClick"])):(R(),ce(y(Ke),{key:"arrow-down",class:V(y(Q)),onClick:le[0]||(le[0]=tt(ke=>de(),["stop"]))},{default:re(()=>[q(y(Tl))]),_:1},8,["class"]))]),_:1},8,["modelValue","placeholder","readonly","disabled","size","class","tabindex"]),y($)?(R(),K("div",{key:0,ref_key:"tagWrapper",ref:p,class:V(y(l).e("tags"))},[(R(!0),K(je,null,Ot(T.value,ke=>(R(),ce(y(Qv),{key:ke.key,type:fe.tagType,size:y(O),hit:ke.hitState,closable:ke.closable,"disable-transitions":"",onClose:te=>X(ke)},{default:re(()=>[ke.isCollapseTag===!1?(R(),K("span",Lge,De(ke.text),1)):(R(),ce(y(ea),{key:1,disabled:b.value||!fe.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom",effect:"light"},{default:re(()=>[Y("span",null,De(ke.text),1)]),content:re(()=>[Y("div",{class:V(y(l).e("collapse-tags"))},[(R(!0),K(je,null,Ot(M.value.slice(fe.maxCollapseTags),(te,Ve)=>(R(),K("div",{key:Ve,class:V(y(l).e("collapse-tag"))},[(R(),ce(y(Qv),{key:te.key,class:"in-tooltip",type:fe.tagType,size:y(O),hit:te.hitState,closable:te.closable,"disable-transitions":"",onClose:st=>X(te)},{default:re(()=>[Y("span",null,De(te.text),1)]),_:2},1032,["type","size","hit","closable","onClose"]))],2))),128))],2)]),_:2},1032,["disabled"]))]),_:2},1032,["type","size","hit","closable","onClose"]))),128)),fe.filterable&&!y(D)?dt((R(),K("input",{key:0,"onUpdate:modelValue":le[2]||(le[2]=ke=>x.value=ke),type:"text",class:V(y(l).e("search-input")),placeholder:y(Z)?"":y(L),onInput:le[3]||(le[3]=ke=>Qe(x.value,ke)),onClick:le[4]||(le[4]=tt(ke=>de(!0),["stop"])),onKeydown:Ft(Fe,["delete"]),onCompositionstart:we,onCompositionupdate:we,onCompositionend:we,onFocus:rt,onBlur:vt},null,42,Rge)),[[VT,x.value]]):se("v-if",!0)],2)):se("v-if",!0)],38)),[[y(vl),()=>de(!1),y(j)]])]),content:re(()=>[dt(q(y(NF),{ref_key:"cascaderPanelRef",ref:g,modelValue:y(ae),"onUpdate:modelValue":le[8]||(le[8]=ke=>cn(ae)?ae.value=ke:null),options:fe.options,props:r.props,border:!1,"render-label":fe.$slots.default,onExpandChange:Ce,onClose:le[9]||(le[9]=ke=>fe.$nextTick(()=>de(!1)))},null,8,["modelValue","options","props","render-label"]),[[Kt,!w.value]]),fe.filterable?dt((R(),ce(y(hs),{key:0,ref_key:"suggestionPanel",ref:m,tag:"ul",class:V(y(l).e("suggestion-panel")),"view-class":y(l).e("suggestion-list"),onKeydown:Ae},{default:re(()=>[A.value.length?(R(!0),K(je,{key:0},Ot(A.value,ke=>(R(),K("li",{key:ke.uid,class:V([y(l).e("suggestion-item"),y(l).is("checked",ke.checked)]),tabindex:-1,onClick:te=>We(ke)},[Y("span",null,De(ke.text),1),ke.checked?(R(),ce(y(Ke),{key:0},{default:re(()=>[q(y(Zp))]),_:1})):se("v-if",!0)],10,Oge))),128)):_e(fe.$slots,"empty",{key:1},()=>[Y("li",{class:V(y(l).e("empty-text"))},De(y(c)("el.cascader.noMatch")),3)])]),_:3},8,["class","view-class"])),[[Kt,w.value]]):se("v-if",!0)]),_:3},8,["visible","teleported","popper-class","transition"]))}});var my=Pe(Bge,[["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader/src/cascader.vue"]]);my.install=e=>{e.component(my.name,my)};const Vge=my,zge=Vge,Fge=Le({checked:{type:Boolean,default:!1}}),Hge={"update:checked":e=>Un(e),[mn]:e=>Un(e)},Gge=ne({name:"ElCheckTag"}),Wge=ne({...Gge,props:Fge,emits:Hge,setup(e,{emit:t}){const n=e,r=Me("check-tag"),a=P(()=>[r.b(),r.is("checked",n.checked)]),i=()=>{const o=!n.checked;t(mn,o),t("update:checked",o)};return(o,s)=>(R(),K("span",{class:V(y(a)),onClick:i},[_e(o.$slots,"default")],2))}});var Kge=Pe(Wge,[["__file","/home/runner/work/element-plus/element-plus/packages/components/check-tag/src/check-tag.vue"]]);const Uge=_t(Kge),BF=Symbol("rowContextKey"),Yge=["start","center","end","space-around","space-between","space-evenly"],jge=["top","middle","bottom"],qge=Le({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:Yge,default:"start"},align:{type:String,values:jge}}),Xge=ne({name:"ElRow"}),Zge=ne({...Xge,props:qge,setup(e){const t=e,n=Me("row"),r=P(()=>t.gutter);Et(BF,{gutter:r});const a=P(()=>{const o={};return t.gutter&&(o.marginRight=o.marginLeft=`-${t.gutter/2}px`),o}),i=P(()=>[n.b(),n.is(`justify-${t.justify}`,t.justify!=="start"),n.is(`align-${t.align}`,!!t.align)]);return(o,s)=>(R(),ce(Ct(o.tag),{class:V(y(i)),style:Ye(y(a))},{default:re(()=>[_e(o.$slots,"default")]),_:3},8,["class","style"]))}});var Jge=Pe(Zge,[["__file","/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);const Qge=_t(Jge),eme=Le({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:ue([Number,Object]),default:()=>Cn({})},sm:{type:ue([Number,Object]),default:()=>Cn({})},md:{type:ue([Number,Object]),default:()=>Cn({})},lg:{type:ue([Number,Object]),default:()=>Cn({})},xl:{type:ue([Number,Object]),default:()=>Cn({})}}),tme=ne({name:"ElCol"}),nme=ne({...tme,props:eme,setup(e){const t=e,{gutter:n}=Ge(BF,{gutter:P(()=>0)}),r=Me("col"),a=P(()=>{const o={};return n.value&&(o.paddingLeft=o.paddingRight=`${n.value/2}px`),o}),i=P(()=>{const o=[];return["span","offset","pull","push"].forEach(u=>{const c=t[u];at(c)&&(u==="span"?o.push(r.b(`${t[u]}`)):c>0&&o.push(r.b(`${u}-${t[u]}`)))}),["xs","sm","md","lg","xl"].forEach(u=>{at(t[u])?o.push(r.b(`${u}-${t[u]}`)):Mt(t[u])&&Object.entries(t[u]).forEach(([c,f])=>{o.push(c!=="span"?r.b(`${u}-${c}-${f}`):r.b(`${u}-${f}`))})}),n.value&&o.push(r.is("guttered")),[r.b(),o]});return(o,s)=>(R(),ce(Ct(o.tag),{class:V(y(i)),style:Ye(y(a))},{default:re(()=>[_e(o.$slots,"default")]),_:3},8,["class","style"]))}});var rme=Pe(nme,[["__file","/home/runner/work/element-plus/element-plus/packages/components/col/src/col.vue"]]);const ame=_t(rme),$P=e=>typeof at(e),ime=Le({accordion:Boolean,modelValue:{type:ue([Array,String,Number]),default:()=>Cn([])}}),ome={[wt]:$P,[mn]:$P},VF=Symbol("collapseContextKey"),sme=(e,t)=>{const n=H(oc(e.modelValue)),r=i=>{n.value=i;const o=e.accordion?n.value[0]:n.value;t(wt,o),t(mn,o)},a=i=>{if(e.accordion)r([n.value[0]===i?"":i]);else{const o=[...n.value],s=o.indexOf(i);s>-1?o.splice(s,1):o.push(i),r(o)}};return xe(()=>e.modelValue,()=>n.value=oc(e.modelValue),{deep:!0}),Et(VF,{activeNames:n,handleItemClick:a}),{activeNames:n,setActiveNames:r}},lme=()=>{const e=Me("collapse");return{rootKls:P(()=>e.b())}},ume=ne({name:"ElCollapse"}),cme=ne({...ume,props:ime,emits:ome,setup(e,{expose:t,emit:n}){const r=e,{activeNames:a,setActiveNames:i}=sme(r,n),{rootKls:o}=lme();return t({activeNames:a,setActiveNames:i}),(s,l)=>(R(),K("div",{class:V(y(o))},[_e(s.$slots,"default")],2))}});var fme=Pe(cme,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse.vue"]]);const dme=ne({name:"ElCollapseTransition"}),hme=ne({...dme,setup(e){const t=Me("collapse-transition"),n=a=>{a.style.maxHeight="",a.style.overflow=a.dataset.oldOverflow,a.style.paddingTop=a.dataset.oldPaddingTop,a.style.paddingBottom=a.dataset.oldPaddingBottom},r={beforeEnter(a){a.dataset||(a.dataset={}),a.dataset.oldPaddingTop=a.style.paddingTop,a.dataset.oldPaddingBottom=a.style.paddingBottom,a.style.maxHeight=0,a.style.paddingTop=0,a.style.paddingBottom=0},enter(a){a.dataset.oldOverflow=a.style.overflow,a.scrollHeight!==0?a.style.maxHeight=`${a.scrollHeight}px`:a.style.maxHeight=0,a.style.paddingTop=a.dataset.oldPaddingTop,a.style.paddingBottom=a.dataset.oldPaddingBottom,a.style.overflow="hidden"},afterEnter(a){a.style.maxHeight="",a.style.overflow=a.dataset.oldOverflow},enterCancelled(a){n(a)},beforeLeave(a){a.dataset||(a.dataset={}),a.dataset.oldPaddingTop=a.style.paddingTop,a.dataset.oldPaddingBottom=a.style.paddingBottom,a.dataset.oldOverflow=a.style.overflow,a.style.maxHeight=`${a.scrollHeight}px`,a.style.overflow="hidden"},leave(a){a.scrollHeight!==0&&(a.style.maxHeight=0,a.style.paddingTop=0,a.style.paddingBottom=0)},afterLeave(a){n(a)},leaveCancelled(a){n(a)}};return(a,i)=>(R(),ce(Bn,St({name:y(t).b()},gj(r)),{default:re(()=>[_e(a.$slots,"default")]),_:3},16,["name"]))}});var yy=Pe(hme,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse-transition/src/collapse-transition.vue"]]);yy.install=e=>{e.component(yy.name,yy)};const i1=yy,vme=i1,pme=Le({title:{type:String,default:""},name:{type:ue([String,Number]),default:()=>Xb()},disabled:Boolean}),gme=e=>{const t=Ge(VF),n=H(!1),r=H(!1),a=H(Xb()),i=P(()=>t==null?void 0:t.activeNames.value.includes(e.name));return{focusing:n,id:a,isActive:i,handleFocus:()=>{setTimeout(()=>{r.value?r.value=!1:n.value=!0},50)},handleHeaderClick:()=>{e.disabled||(t==null||t.handleItemClick(e.name),n.value=!1,r.value=!0)},handleEnterClick:()=>{t==null||t.handleItemClick(e.name)}}},mme=(e,{focusing:t,isActive:n,id:r})=>{const a=Me("collapse"),i=P(()=>[a.b("item"),a.is("active",y(n)),a.is("disabled",e.disabled)]),o=P(()=>[a.be("item","header"),a.is("active",y(n)),{focusing:y(t)&&!e.disabled}]),s=P(()=>[a.be("item","arrow"),a.is("active",y(n))]),l=P(()=>a.be("item","wrap")),u=P(()=>a.be("item","content")),c=P(()=>a.b(`content-${y(r)}`)),f=P(()=>a.b(`head-${y(r)}`));return{arrowKls:s,headKls:o,rootKls:i,itemWrapperKls:l,itemContentKls:u,scopedContentId:c,scopedHeadId:f}},yme=["id","aria-expanded","aria-controls","aria-describedby","tabindex"],bme=["id","aria-hidden","aria-labelledby"],_me=ne({name:"ElCollapseItem"}),wme=ne({..._me,props:pme,setup(e,{expose:t}){const n=e,{focusing:r,id:a,isActive:i,handleFocus:o,handleHeaderClick:s,handleEnterClick:l}=gme(n),{arrowKls:u,headKls:c,rootKls:f,itemWrapperKls:d,itemContentKls:h,scopedContentId:v,scopedHeadId:p}=mme(n,{focusing:r,isActive:i,id:a});return t({isActive:i}),(g,m)=>(R(),K("div",{class:V(y(f))},[Y("button",{id:y(p),class:V(y(c)),"aria-expanded":y(i),"aria-controls":y(v),"aria-describedby":y(v),tabindex:g.disabled?-1:0,onClick:m[0]||(m[0]=(...b)=>y(s)&&y(s)(...b)),onKeydown:m[1]||(m[1]=Ft(tt((...b)=>y(l)&&y(l)(...b),["stop","prevent"]),["space","enter"])),onFocus:m[2]||(m[2]=(...b)=>y(o)&&y(o)(...b)),onBlur:m[3]||(m[3]=b=>r.value=!1)},[_e(g.$slots,"title",{},()=>[Ut(De(g.title),1)]),q(y(Ke),{class:V(y(u))},{default:re(()=>[q(y(jr))]),_:1},8,["class"])],42,yme),q(y(i1),null,{default:re(()=>[dt(Y("div",{id:y(v),role:"region",class:V(y(d)),"aria-hidden":!y(i),"aria-labelledby":y(p)},[Y("div",{class:V(y(h))},[_e(g.$slots,"default")],2)],10,bme),[[Kt,y(i)]])]),_:3})],2))}});var zF=Pe(wme,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse-item.vue"]]);const Sme=_t(fme,{CollapseItem:zF}),Cme=Dn(zF),xme=Le({color:{type:ue(Object),required:!0},vertical:{type:Boolean,default:!1}});let M_=!1;function ep(e,t){if(!Vt)return;const n=function(i){var o;(o=t.drag)==null||o.call(t,i)},r=function(i){var o;document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",r),document.removeEventListener("touchmove",n),document.removeEventListener("touchend",r),document.onselectstart=null,document.ondragstart=null,M_=!1,(o=t.end)==null||o.call(t,i)},a=function(i){var o;M_||(i.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",n),document.addEventListener("mouseup",r),document.addEventListener("touchmove",n),document.addEventListener("touchend",r),M_=!0,(o=t.start)==null||o.call(t,i))};e.addEventListener("mousedown",a),e.addEventListener("touchstart",a)}const Tme=e=>{const t=gt(),n=un(),r=un();function a(o){o.target!==n.value&&i(o)}function i(o){if(!r.value||!n.value)return;const l=t.vnode.el.getBoundingClientRect(),{clientX:u,clientY:c}=KT(o);if(e.vertical){let f=c-l.top;f=Math.max(n.value.offsetHeight/2,f),f=Math.min(f,l.height-n.value.offsetHeight/2),e.color.set("alpha",Math.round((f-n.value.offsetHeight/2)/(l.height-n.value.offsetHeight)*100))}else{let f=u-l.left;f=Math.max(n.value.offsetWidth/2,f),f=Math.min(f,l.width-n.value.offsetWidth/2),e.color.set("alpha",Math.round((f-n.value.offsetWidth/2)/(l.width-n.value.offsetWidth)*100))}}return{thumb:n,bar:r,handleDrag:i,handleClick:a}},Mme=(e,{bar:t,thumb:n,handleDrag:r})=>{const a=gt(),i=Me("color-alpha-slider"),o=H(0),s=H(0),l=H();function u(){if(!n.value||e.vertical)return 0;const b=a.vnode.el,_=e.color.get("alpha");return b?Math.round(_*(b.offsetWidth-n.value.offsetWidth/2)/100):0}function c(){if(!n.value)return 0;const b=a.vnode.el;if(!e.vertical)return 0;const _=e.color.get("alpha");return b?Math.round(_*(b.offsetHeight-n.value.offsetHeight/2)/100):0}function f(){if(e.color&&e.color.value){const{r:b,g:_,b:w}=e.color.toRgb();return`linear-gradient(to right, rgba(${b}, ${_}, ${w}, 0) 0%, rgba(${b}, ${_}, ${w}, 1) 100%)`}return""}function d(){o.value=u(),s.value=c(),l.value=f()}yt(()=>{if(!t.value||!n.value)return;const b={drag:_=>{r(_)},end:_=>{r(_)}};ep(t.value,b),ep(n.value,b),d()}),xe(()=>e.color.get("alpha"),()=>d()),xe(()=>e.color.value,()=>d());const h=P(()=>[i.b(),i.is("vertical",e.vertical)]),v=P(()=>i.e("bar")),p=P(()=>i.e("thumb")),g=P(()=>({background:l.value})),m=P(()=>({left:On(o.value),top:On(s.value)}));return{rootKls:h,barKls:v,barStyle:g,thumbKls:p,thumbStyle:m,update:d}},kme="ElColorAlphaSlider",Ame=ne({name:kme}),Eme=ne({...Ame,props:xme,setup(e,{expose:t}){const n=e,{bar:r,thumb:a,handleDrag:i,handleClick:o}=Tme(n),{rootKls:s,barKls:l,barStyle:u,thumbKls:c,thumbStyle:f,update:d}=Mme(n,{bar:r,thumb:a,handleDrag:i});return t({update:d,bar:r,thumb:a}),(h,v)=>(R(),K("div",{class:V(y(s))},[Y("div",{ref_key:"bar",ref:r,class:V(y(l)),style:Ye(y(u)),onClick:v[0]||(v[0]=(...p)=>y(o)&&y(o)(...p))},null,6),Y("div",{ref_key:"thumb",ref:a,class:V(y(c)),style:Ye(y(f))},null,6)],2))}});var Ime=Pe(Eme,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/alpha-slider.vue"]]);const Dme=ne({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(e){const t=Me("color-hue-slider"),n=gt(),r=H(),a=H(),i=H(0),o=H(0),s=P(()=>e.color.get("hue"));xe(()=>s.value,()=>{d()});function l(h){h.target!==r.value&&u(h)}function u(h){if(!a.value||!r.value)return;const p=n.vnode.el.getBoundingClientRect(),{clientX:g,clientY:m}=KT(h);let b;if(e.vertical){let _=m-p.top;_=Math.min(_,p.height-r.value.offsetHeight/2),_=Math.max(r.value.offsetHeight/2,_),b=Math.round((_-r.value.offsetHeight/2)/(p.height-r.value.offsetHeight)*360)}else{let _=g-p.left;_=Math.min(_,p.width-r.value.offsetWidth/2),_=Math.max(r.value.offsetWidth/2,_),b=Math.round((_-r.value.offsetWidth/2)/(p.width-r.value.offsetWidth)*360)}e.color.set("hue",b)}function c(){if(!r.value)return 0;const h=n.vnode.el;if(e.vertical)return 0;const v=e.color.get("hue");return h?Math.round(v*(h.offsetWidth-r.value.offsetWidth/2)/360):0}function f(){if(!r.value)return 0;const h=n.vnode.el;if(!e.vertical)return 0;const v=e.color.get("hue");return h?Math.round(v*(h.offsetHeight-r.value.offsetHeight/2)/360):0}function d(){i.value=c(),o.value=f()}return yt(()=>{if(!a.value||!r.value)return;const h={drag:v=>{u(v)},end:v=>{u(v)}};ep(a.value,h),ep(r.value,h),d()}),{bar:a,thumb:r,thumbLeft:i,thumbTop:o,hueValue:s,handleClick:l,update:d,ns:t}}});function Pme(e,t,n,r,a,i){return R(),K("div",{class:V([e.ns.b(),e.ns.is("vertical",e.vertical)])},[Y("div",{ref:"bar",class:V(e.ns.e("bar")),onClick:t[0]||(t[0]=(...o)=>e.handleClick&&e.handleClick(...o))},null,2),Y("div",{ref:"thumb",class:V(e.ns.e("thumb")),style:Ye({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}var Lme=Pe(Dme,[["render",Pme],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/hue-slider.vue"]]);const Rme=Le({modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:Sr,popperClass:{type:String,default:""},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},predefine:{type:ue(Array)},validateEvent:{type:Boolean,default:!0}}),Ome={[wt]:e=>lt(e)||Kn(e),[mn]:e=>lt(e)||Kn(e),activeChange:e=>lt(e)||Kn(e)},FF=Symbol("colorPickerContextKey"),NP=function(e,t,n){return[e,t*n/((e=(2-t)*n)<1?e:2-e)||0,e/2]},$me=function(e){return typeof e=="string"&&e.includes(".")&&Number.parseFloat(e)===1},Nme=function(e){return typeof e=="string"&&e.includes("%")},Df=function(e,t){$me(e)&&(e="100%");const n=Nme(e);return e=Math.min(t,Math.max(0,Number.parseFloat(`${e}`))),n&&(e=Number.parseInt(`${e*t}`,10)/100),Math.abs(e-t)<1e-6?1:e%t/Number.parseFloat(t)},BP={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},by=e=>{e=Math.min(Math.round(e),255);const t=Math.floor(e/16),n=e%16;return`${BP[t]||t}${BP[n]||n}`},VP=function({r:e,g:t,b:n}){return Number.isNaN(+e)||Number.isNaN(+t)||Number.isNaN(+n)?"":`#${by(e)}${by(t)}${by(n)}`},k_={A:10,B:11,C:12,D:13,E:14,F:15},Fl=function(e){return e.length===2?(k_[e[0].toUpperCase()]||+e[0])*16+(k_[e[1].toUpperCase()]||+e[1]):k_[e[1].toUpperCase()]||+e[1]},Bme=function(e,t,n){t=t/100,n=n/100;let r=t;const a=Math.max(n,.01);n*=2,t*=n<=1?n:2-n,r*=a<=1?a:2-a;const i=(n+t)/2,o=n===0?2*r/(a+r):2*t/(n+t);return{h:e,s:o*100,v:i*100}},zP=(e,t,n)=>{e=Df(e,255),t=Df(t,255),n=Df(n,255);const r=Math.max(e,t,n),a=Math.min(e,t,n);let i;const o=r,s=r-a,l=r===0?0:s/r;if(r===a)i=0;else{switch(r){case e:{i=(t-n)/s+(t<n?6:0);break}case t:{i=(n-e)/s+2;break}case n:{i=(e-t)/s+4;break}}i/=6}return{h:i*360,s:l*100,v:o*100}},th=function(e,t,n){e=Df(e,360)*6,t=Df(t,100),n=Df(n,100);const r=Math.floor(e),a=e-r,i=n*(1-t),o=n*(1-a*t),s=n*(1-(1-a)*t),l=r%6,u=[n,o,i,i,s,n][l],c=[s,n,n,o,i,i][l],f=[i,i,s,n,n,o][l];return{r:Math.round(u*255),g:Math.round(c*255),b:Math.round(f*255)}};class lv{constructor(t={}){this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this.enableAlpha=!1,this.format="hex",this.value="";for(const n in t)Nt(t,n)&&(this[n]=t[n]);t.value?this.fromString(t.value):this.doOnChange()}set(t,n){if(arguments.length===1&&typeof t=="object"){for(const r in t)Nt(t,r)&&this.set(r,t[r]);return}this[`_${t}`]=n,this.doOnChange()}get(t){return t==="alpha"?Math.floor(this[`_${t}`]):this[`_${t}`]}toRgb(){return th(this._hue,this._saturation,this._value)}fromString(t){if(!t){this._hue=0,this._saturation=100,this._value=100,this.doOnChange();return}const n=(r,a,i)=>{this._hue=Math.max(0,Math.min(360,r)),this._saturation=Math.max(0,Math.min(100,a)),this._value=Math.max(0,Math.min(100,i)),this.doOnChange()};if(t.includes("hsl")){const r=t.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter(a=>a!=="").map((a,i)=>i>2?Number.parseFloat(a):Number.parseInt(a,10));if(r.length===4?this._alpha=Number.parseFloat(r[3])*100:r.length===3&&(this._alpha=100),r.length>=3){const{h:a,s:i,v:o}=Bme(r[0],r[1],r[2]);n(a,i,o)}}else if(t.includes("hsv")){const r=t.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter(a=>a!=="").map((a,i)=>i>2?Number.parseFloat(a):Number.parseInt(a,10));r.length===4?this._alpha=Number.parseFloat(r[3])*100:r.length===3&&(this._alpha=100),r.length>=3&&n(r[0],r[1],r[2])}else if(t.includes("rgb")){const r=t.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter(a=>a!=="").map((a,i)=>i>2?Number.parseFloat(a):Number.parseInt(a,10));if(r.length===4?this._alpha=Number.parseFloat(r[3])*100:r.length===3&&(this._alpha=100),r.length>=3){const{h:a,s:i,v:o}=zP(r[0],r[1],r[2]);n(a,i,o)}}else if(t.includes("#")){const r=t.replace("#","").trim();if(!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(r))return;let a,i,o;r.length===3?(a=Fl(r[0]+r[0]),i=Fl(r[1]+r[1]),o=Fl(r[2]+r[2])):(r.length===6||r.length===8)&&(a=Fl(r.slice(0,2)),i=Fl(r.slice(2,4)),o=Fl(r.slice(4,6))),r.length===8?this._alpha=Fl(r.slice(6))/255*100:(r.length===3||r.length===6)&&(this._alpha=100);const{h:s,s:l,v:u}=zP(a,i,o);n(s,l,u)}}compare(t){return Math.abs(t._hue-this._hue)<2&&Math.abs(t._saturation-this._saturation)<1&&Math.abs(t._value-this._value)<1&&Math.abs(t._alpha-this._alpha)<1}doOnChange(){const{_hue:t,_saturation:n,_value:r,_alpha:a,format:i}=this;if(this.enableAlpha)switch(i){case"hsl":{const o=NP(t,n/100,r/100);this.value=`hsla(${t}, ${Math.round(o[1]*100)}%, ${Math.round(o[2]*100)}%, ${this.get("alpha")/100})`;break}case"hsv":{this.value=`hsva(${t}, ${Math.round(n)}%, ${Math.round(r)}%, ${this.get("alpha")/100})`;break}case"hex":{this.value=`${VP(th(t,n,r))}${by(a*255/100)}`;break}default:{const{r:o,g:s,b:l}=th(t,n,r);this.value=`rgba(${o}, ${s}, ${l}, ${this.get("alpha")/100})`}}else switch(i){case"hsl":{const o=NP(t,n/100,r/100);this.value=`hsl(${t}, ${Math.round(o[1]*100)}%, ${Math.round(o[2]*100)}%)`;break}case"hsv":{this.value=`hsv(${t}, ${Math.round(n)}%, ${Math.round(r)}%)`;break}case"rgb":{const{r:o,g:s,b:l}=th(t,n,r);this.value=`rgb(${o}, ${s}, ${l})`;break}default:this.value=VP(th(t,n,r))}}}const Vme=ne({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0}},setup(e){const t=Me("color-predefine"),{currentColor:n}=Ge(FF),r=H(i(e.colors,e.color));xe(()=>n.value,o=>{const s=new lv;s.fromString(o),r.value.forEach(l=>{l.selected=s.compare(l)})}),Ia(()=>{r.value=i(e.colors,e.color)});function a(o){e.color.fromString(e.colors[o])}function i(o,s){return o.map(l=>{const u=new lv;return u.enableAlpha=!0,u.format="rgba",u.fromString(l),u.selected=u.value===s.value,u})}return{rgbaColors:r,handleSelect:a,ns:t}}}),zme=["onClick"];function Fme(e,t,n,r,a,i){return R(),K("div",{class:V(e.ns.b())},[Y("div",{class:V(e.ns.e("colors"))},[(R(!0),K(je,null,Ot(e.rgbaColors,(o,s)=>(R(),K("div",{key:e.colors[s],class:V([e.ns.e("color-selector"),e.ns.is("alpha",o._alpha<100),{selected:o.selected}]),onClick:l=>e.handleSelect(s)},[Y("div",{style:Ye({backgroundColor:o.value})},null,4)],10,zme))),128))],2)],2)}var Hme=Pe(Vme,[["render",Fme],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/predefine.vue"]]);const Gme=ne({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(e){const t=Me("color-svpanel"),n=gt(),r=H(0),a=H(0),i=H("hsl(0, 100%, 50%)"),o=P(()=>{const u=e.color.get("hue"),c=e.color.get("value");return{hue:u,value:c}});function s(){const u=e.color.get("saturation"),c=e.color.get("value"),f=n.vnode.el,{clientWidth:d,clientHeight:h}=f;a.value=u*d/100,r.value=(100-c)*h/100,i.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}function l(u){const f=n.vnode.el.getBoundingClientRect(),{clientX:d,clientY:h}=KT(u);let v=d-f.left,p=h-f.top;v=Math.max(0,v),v=Math.min(v,f.width),p=Math.max(0,p),p=Math.min(p,f.height),a.value=v,r.value=p,e.color.set({saturation:v/f.width*100,value:100-p/f.height*100})}return xe(()=>o.value,()=>{s()}),yt(()=>{ep(n.vnode.el,{drag:u=>{l(u)},end:u=>{l(u)}}),s()}),{cursorTop:r,cursorLeft:a,background:i,colorValue:o,handleDrag:l,update:s,ns:t}}}),Wme=Y("div",null,null,-1),Kme=[Wme];function Ume(e,t,n,r,a,i){return R(),K("div",{class:V(e.ns.b()),style:Ye({backgroundColor:e.background})},[Y("div",{class:V(e.ns.e("white"))},null,2),Y("div",{class:V(e.ns.e("black"))},null,2),Y("div",{class:V(e.ns.e("cursor")),style:Ye({top:e.cursorTop+"px",left:e.cursorLeft+"px"})},Kme,6)],6)}var Yme=Pe(Gme,[["render",Ume],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/sv-panel.vue"]]);const jme=["id","aria-label","aria-labelledby","aria-description","tabindex","onKeydown"],qme=ne({name:"ElColorPicker"}),Xme=ne({...qme,props:Rme,emits:Ome,setup(e,{expose:t,emit:n}){const r=e,{t:a}=Ht(),i=Me("color"),{formItem:o}=aa(),s=qn(),l=wa(),{inputId:u,isLabeledByFormItem:c}=Il(r,{formItemContext:o}),f=H(),d=H(),h=H(),v=H();let p=!0;const g=jt(new lv({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue})),m=H(!1),b=H(!1),_=H(""),w=P(()=>!r.modelValue&&!b.value?"transparent":M(g,r.showAlpha)),C=P(()=>!r.modelValue&&!b.value?"":g.value),S=P(()=>c.value?void 0:r.label||a("el.colorpicker.defaultLabel")),x=P(()=>c.value?o==null?void 0:o.labelId:void 0),T=P(()=>[i.b("picker"),i.is("disabled",l.value),i.bm("picker",s.value)]);function M(I,z){if(!(I instanceof lv))throw new TypeError("color should be instance of _color Class");const{r:G,g:U,b:Z}=I.toRgb();return z?`rgba(${G}, ${U}, ${Z}, ${I.get("alpha")/100})`:`rgb(${G}, ${U}, ${Z})`}function A(I){m.value=I}const k=Qr(A,100);function E(){l.value||A(!0)}function D(){k(!1),L()}function L(){Ue(()=>{r.modelValue?g.fromString(r.modelValue):(g.value="",Ue(()=>{b.value=!1}))})}function B(){l.value||k(!m.value)}function N(){g.fromString(_.value)}function O(){const I=g.value;n(wt,I),n("change",I),r.validateEvent&&(o==null||o.validate("change").catch(z=>void 0)),k(!1),Ue(()=>{const z=new lv({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue});g.compare(z)||L()})}function $(){k(!1),n(wt,null),n("change",null),r.modelValue!==null&&r.validateEvent&&(o==null||o.validate("change").catch(I=>void 0)),L()}return yt(()=>{r.modelValue&&(_.value=C.value)}),xe(()=>r.modelValue,I=>{I?I&&I!==g.value&&(p=!1,g.fromString(I)):b.value=!1}),xe(()=>C.value,I=>{_.value=I,p&&n("activeChange",I),p=!0}),xe(()=>g.value,()=>{!r.modelValue&&!b.value&&(b.value=!0)}),xe(()=>m.value,()=>{Ue(()=>{var I,z,G;(I=f.value)==null||I.update(),(z=d.value)==null||z.update(),(G=h.value)==null||G.update()})}),Et(FF,{currentColor:C}),t({color:g,show:E,hide:D}),(I,z)=>(R(),ce(y(ea),{ref_key:"popper",ref:v,visible:m.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[y(i).be("picker","panel"),y(i).b("dropdown"),I.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",transition:`${y(i).namespace.value}-zoom-in-top`,persistent:""},{content:re(()=>[dt((R(),K("div",null,[Y("div",{class:V(y(i).be("dropdown","main-wrapper"))},[q(Lme,{ref_key:"hue",ref:f,class:"hue-slider",color:y(g),vertical:""},null,8,["color"]),q(Yme,{ref_key:"sv",ref:d,color:y(g)},null,8,["color"])],2),I.showAlpha?(R(),ce(Ime,{key:0,ref_key:"alpha",ref:h,color:y(g)},null,8,["color"])):se("v-if",!0),I.predefine?(R(),ce(Hme,{key:1,ref:"predefine",color:y(g),colors:I.predefine},null,8,["color","colors"])):se("v-if",!0),Y("div",{class:V(y(i).be("dropdown","btns"))},[Y("span",{class:V(y(i).be("dropdown","value"))},[q(y(Rr),{modelValue:_.value,"onUpdate:modelValue":z[0]||(z[0]=G=>_.value=G),"validate-event":!1,size:"small",onKeyup:Ft(N,["enter"]),onBlur:N},null,8,["modelValue","onKeyup"])],2),q(y(_r),{class:V(y(i).be("dropdown","link-btn")),text:"",size:"small",onClick:$},{default:re(()=>[Ut(De(y(a)("el.colorpicker.clear")),1)]),_:1},8,["class"]),q(y(_r),{plain:"",size:"small",class:V(y(i).be("dropdown","btn")),onClick:O},{default:re(()=>[Ut(De(y(a)("el.colorpicker.confirm")),1)]),_:1},8,["class"])],2)])),[[y(vl),D]])]),default:re(()=>[Y("div",{id:y(u),class:V(y(T)),role:"button","aria-label":y(S),"aria-labelledby":y(x),"aria-description":y(a)("el.colorpicker.description",{color:I.modelValue||""}),tabindex:I.tabindex,onKeydown:Ft(B,["enter"])},[y(l)?(R(),K("div",{key:0,class:V(y(i).be("picker","mask"))},null,2)):se("v-if",!0),Y("div",{class:V(y(i).be("picker","trigger")),onClick:B},[Y("span",{class:V([y(i).be("picker","color"),y(i).is("alpha",I.showAlpha)])},[Y("span",{class:V(y(i).be("picker","color-inner")),style:Ye({backgroundColor:y(w)})},[dt(q(y(Ke),{class:V([y(i).be("picker","icon"),y(i).is("icon-arrow-down")])},{default:re(()=>[q(y(Tl))]),_:1},8,["class"]),[[Kt,I.modelValue||b.value]]),dt(q(y(Ke),{class:V([y(i).be("picker","empty"),y(i).is("icon-close")])},{default:re(()=>[q(y(Bi))]),_:1},8,["class"]),[[Kt,!I.modelValue&&!b.value]])],6)],2)],2)],42,jme)]),_:1},8,["visible","popper-class","transition"]))}});var Zme=Pe(Xme,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/color-picker.vue"]]);const Jme=_t(Zme),Qme=ne({name:"ElContainer"}),eye=ne({...Qme,props:{direction:{type:String}},setup(e){const t=e,n=Mr(),r=Me("container"),a=P(()=>t.direction==="vertical"?!0:t.direction==="horizontal"?!1:n&&n.default?n.default().some(o=>{const s=o.type.name;return s==="ElHeader"||s==="ElFooter"}):!1);return(i,o)=>(R(),K("section",{class:V([y(r).b(),y(r).is("vertical",y(a))])},[_e(i.$slots,"default")],2))}});var tye=Pe(eye,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/container.vue"]]);const nye=ne({name:"ElAside"}),rye=ne({...nye,props:{width:{type:String,default:null}},setup(e){const t=e,n=Me("aside"),r=P(()=>t.width?n.cssVarBlock({width:t.width}):{});return(a,i)=>(R(),K("aside",{class:V(y(n).b()),style:Ye(y(r))},[_e(a.$slots,"default")],6))}});var HF=Pe(rye,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/aside.vue"]]);const aye=ne({name:"ElFooter"}),iye=ne({...aye,props:{height:{type:String,default:null}},setup(e){const t=e,n=Me("footer"),r=P(()=>t.height?n.cssVarBlock({height:t.height}):{});return(a,i)=>(R(),K("footer",{class:V(y(n).b()),style:Ye(y(r))},[_e(a.$slots,"default")],6))}});var GF=Pe(iye,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/footer.vue"]]);const oye=ne({name:"ElHeader"}),sye=ne({...oye,props:{height:{type:String,default:null}},setup(e){const t=e,n=Me("header"),r=P(()=>t.height?n.cssVarBlock({height:t.height}):{});return(a,i)=>(R(),K("header",{class:V(y(n).b()),style:Ye(y(r))},[_e(a.$slots,"default")],6))}});var WF=Pe(sye,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/header.vue"]]);const lye=ne({name:"ElMain"}),uye=ne({...lye,setup(e){const t=Me("main");return(n,r)=>(R(),K("main",{class:V(y(t).b())},[_e(n.$slots,"default")],2))}});var KF=Pe(uye,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/main.vue"]]);const cye=_t(tye,{Aside:HF,Footer:GF,Header:WF,Main:KF}),fye=Dn(HF),dye=Dn(GF),hye=Dn(WF),vye=Dn(KF);var UF={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(vs,function(){return function(n,r){var a=r.prototype,i=a.format;a.format=function(o){var s=this,l=this.$locale();if(!this.isValid())return i.bind(this)(o);var u=this.$utils(),c=(o||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(f){switch(f){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return l.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return l.ordinal(s.week(),"W");case"w":case"ww":return u.s(s.week(),f==="w"?1:2,"0");case"W":case"WW":return u.s(s.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return u.s(String(s.$H===0?24:s.$H),f==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1e3);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return f}});return i.bind(this)(c)}}})})(UF);var pye=UF.exports;const gye=ko(pye);var YF={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(vs,function(){var n="week",r="year";return function(a,i,o){var s=i.prototype;s.week=function(l){if(l===void 0&&(l=null),l!==null)return this.add(7*(l-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var c=o(this).startOf(r).add(1,r).date(u),f=o(this).endOf(n);if(c.isBefore(f))return 1}var d=o(this).startOf(r).date(u).startOf(n).subtract(1,"millisecond"),h=this.diff(d,n,!0);return h<0?o(this).startOf("week").week():Math.ceil(h)},s.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})})(YF);var mye=YF.exports;const yye=ko(mye);var jF={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(vs,function(){return function(n,r){r.prototype.weekYear=function(){var a=this.month(),i=this.week(),o=this.year();return i===1&&a===11?o+1:a===0&&i>=52?o-1:o}}})})(jF);var bye=jF.exports;const _ye=ko(bye);var qF={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(vs,function(){return function(n,r,a){r.prototype.dayOfYear=function(i){var o=Math.round((a(this).startOf("day")-a(this).startOf("year"))/864e5)+1;return i==null?o:this.add(i-o,"day")}}})})(qF);var wye=qF.exports;const Sye=ko(wye);var XF={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(vs,function(){return function(n,r){r.prototype.isSameOrAfter=function(a,i){return this.isSame(a,i)||this.isAfter(a,i)}}})})(XF);var Cye=XF.exports;const xye=ko(Cye);var ZF={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(vs,function(){return function(n,r){r.prototype.isSameOrBefore=function(a,i){return this.isSame(a,i)||this.isBefore(a,i)}}})})(ZF);var Tye=ZF.exports;const Mye=ko(Tye),VM=Symbol(),kye=Le({...$M,type:{type:ue(String),default:"date"}}),Aye=["date","dates","year","month","week","range"],zM=Le({disabledDate:{type:ue(Function)},date:{type:ue(Object),required:!0},minDate:{type:ue(Object)},maxDate:{type:ue(Object)},parsedValue:{type:ue([Object,Array])},rangeState:{type:ue(Object),default:()=>({endDate:null,selecting:!1})}}),JF=Le({type:{type:ue(String),required:!0,values:vle}}),QF=Le({unlinkPanels:Boolean,parsedValue:{type:ue(Array)}}),e8=e=>({type:String,values:Aye,default:e}),Eye=Le({...JF,parsedValue:{type:ue([Object,Array])},visible:{type:Boolean},format:{type:String,default:""}}),Iye=Le({...zM,cellClassName:{type:ue(Function)},showWeekNumber:Boolean,selectionMode:e8("date")}),Dye=["changerange","pick","select"],QC=e=>{if(!He(e))return!1;const[t,n]=e;return mt.isDayjs(t)&&mt.isDayjs(n)&&t.isSameOrBefore(n)},t8=(e,{lang:t,unit:n,unlinkPanels:r})=>{let a;if(He(e)){let[i,o]=e.map(s=>mt(s).locale(t));return r||(o=i.add(1,n)),[i,o]}else e?a=mt(e):a=mt();return a=a.locale(t),[a,a.add(1,n)]},Pye=(e,t,{columnIndexOffset:n,startDate:r,nextEndDate:a,now:i,unit:o,relativeDateGetter:s,setCellMetadata:l,setRowMetadata:u})=>{for(let c=0;c<e.row;c++){const f=t[c];for(let d=0;d<e.column;d++){let h=f[d+n];h||(h={row:c,column:d,type:"normal",inRange:!1,start:!1,end:!1});const v=c*e.column+d,p=s(v);h.dayjs=p,h.date=p.toDate(),h.timestamp=p.valueOf(),h.type="normal",h.inRange=!!(r&&p.isSameOrAfter(r,o)&&a&&p.isSameOrBefore(a,o))||!!(r&&p.isSameOrBefore(r,o)&&a&&p.isSameOrAfter(a,o)),r!=null&&r.isSameOrAfter(a)?(h.start=!!a&&p.isSame(a,o),h.end=r&&p.isSame(r,o)):(h.start=!!r&&p.isSame(r,o),h.end=!!a&&p.isSame(a,o)),p.isSame(i,o)&&(h.type="today"),l==null||l(h,{rowIndex:c,columnIndex:d}),f[d+n]=h}u==null||u(f)}},ex=(e="")=>["normal","today"].includes(e),Lye=(e,t)=>{const{lang:n}=Ht(),r=H(),a=H(),i=H(),o=H(),s=H([[],[],[],[],[],[]]);let l=!1;const u=e.date.$locale().weekStart||7,c=e.date.locale("en").localeData().weekdaysShort().map(I=>I.toLowerCase()),f=P(()=>u>3?7-u:-u),d=P(()=>{const I=e.date.startOf("month");return I.subtract(I.day()||7,"day")}),h=P(()=>c.concat(c).slice(u,u+7)),v=P(()=>d5(y(w)).some(I=>I.isCurrent)),p=P(()=>{const I=e.date.startOf("month"),z=I.day()||7,G=I.daysInMonth(),U=I.subtract(1,"month").daysInMonth();return{startOfMonthDay:z,dateCountOfMonth:G,dateCountOfLastMonth:U}}),g=P(()=>e.selectionMode==="dates"?jo(e.parsedValue):[]),m=(I,{count:z,rowIndex:G,columnIndex:U})=>{const{startOfMonthDay:Z,dateCountOfMonth:ae,dateCountOfLastMonth:J}=y(p),Q=y(f);if(G>=0&&G<=1){const ee=Z+Q<0?7+Z+Q:Z+Q;if(U+G*7>=ee)return I.text=z,!0;I.text=J-(ee-U%7)+1+G*7,I.type="prev-month"}else return z<=ae?I.text=z:(I.text=z-ae,I.type="next-month"),!0;return!1},b=(I,{columnIndex:z,rowIndex:G},U)=>{const{disabledDate:Z,cellClassName:ae}=e,J=y(g),Q=m(I,{count:U,rowIndex:G,columnIndex:z}),ee=I.dayjs.toDate();return I.selected=J.find(j=>j.valueOf()===I.dayjs.valueOf()),I.isSelected=!!I.selected,I.isCurrent=S(I),I.disabled=Z==null?void 0:Z(ee),I.customClass=ae==null?void 0:ae(ee),Q},_=I=>{if(e.selectionMode==="week"){const[z,G]=e.showWeekNumber?[1,7]:[0,6],U=$(I[z+1]);I[z].inRange=U,I[z].start=U,I[G].inRange=U,I[G].end=U}},w=P(()=>{const{minDate:I,maxDate:z,rangeState:G,showWeekNumber:U}=e,Z=y(f),ae=y(s),J="day";let Q=1;if(U)for(let ee=0;ee<6;ee++)ae[ee][0]||(ae[ee][0]={type:"week",text:y(d).add(ee*7+1,J).week()});return Pye({row:6,column:7},ae,{startDate:I,columnIndexOffset:U?1:0,nextEndDate:G.endDate||z||G.selecting&&I||null,now:mt().locale(y(n)).startOf(J),unit:J,relativeDateGetter:ee=>y(d).add(ee-Z,J),setCellMetadata:(...ee)=>{b(...ee,Q)&&(Q+=1)},setRowMetadata:_}),ae});xe(()=>e.date,async()=>{var I;(I=y(r))!=null&&I.contains(document.activeElement)&&(await Ue(),await C())});const C=async()=>{var I;return(I=y(a))==null?void 0:I.focus()},S=I=>e.selectionMode==="date"&&ex(I.type)&&x(I,e.parsedValue),x=(I,z)=>z?mt(z).locale(y(n)).isSame(e.date.date(Number(I.text)),"day"):!1,T=(I,z)=>{const G=I*7+(z-(e.showWeekNumber?1:0))-y(f);return y(d).add(G,"day")},M=I=>{var z;if(!e.rangeState.selecting)return;let G=I.target;if(G.tagName==="SPAN"&&(G=(z=G.parentNode)==null?void 0:z.parentNode),G.tagName==="DIV"&&(G=G.parentNode),G.tagName!=="TD")return;const U=G.parentNode.rowIndex-1,Z=G.cellIndex;y(w)[U][Z].disabled||(U!==y(i)||Z!==y(o))&&(i.value=U,o.value=Z,t("changerange",{selecting:!0,endDate:T(U,Z)}))},A=I=>!y(v)&&(I==null?void 0:I.text)===1&&I.type==="normal"||I.isCurrent,k=I=>{l||y(v)||e.selectionMode!=="date"||O(I,!0)},E=I=>{I.target.closest("td")&&(l=!0)},D=I=>{I.target.closest("td")&&(l=!1)},L=I=>{!e.rangeState.selecting||!e.minDate?(t("pick",{minDate:I,maxDate:null}),t("select",!0)):(I>=e.minDate?t("pick",{minDate:e.minDate,maxDate:I}):t("pick",{minDate:I,maxDate:e.minDate}),t("select",!1))},B=I=>{const z=I.week(),G=`${I.year()}w${z}`;t("pick",{year:I.year(),week:z,value:G,date:I.startOf("week")})},N=(I,z)=>{const G=z?jo(e.parsedValue).filter(U=>(U==null?void 0:U.valueOf())!==I.valueOf()):jo(e.parsedValue).concat([I]);t("pick",G)},O=(I,z=!1)=>{const G=I.target.closest("td");if(!G)return;const U=G.parentNode.rowIndex-1,Z=G.cellIndex,ae=y(w)[U][Z];if(ae.disabled||ae.type==="week")return;const J=T(U,Z);switch(e.selectionMode){case"range":{L(J);break}case"date":{t("pick",J,z);break}case"week":{B(J);break}case"dates":{N(J,!!ae.selected);break}}},$=I=>{if(e.selectionMode!=="week")return!1;let z=e.date.startOf("day");if(I.type==="prev-month"&&(z=z.subtract(1,"month")),I.type==="next-month"&&(z=z.add(1,"month")),z=z.date(Number.parseInt(I.text,10)),e.parsedValue&&!Array.isArray(e.parsedValue)){const G=(e.parsedValue.day()-u+7)%7-1;return e.parsedValue.subtract(G,"day").isSame(z,"day")}return!1};return{WEEKS:h,rows:w,tbodyRef:r,currentCellRef:a,focus:C,isCurrent:S,isWeekActive:$,isSelectedCell:A,handlePickDate:O,handleMouseUp:D,handleMouseDown:E,handleMouseMove:M,handleFocus:k}},Rye=(e,{isCurrent:t,isWeekActive:n})=>{const r=Me("date-table"),{t:a}=Ht(),i=P(()=>[r.b(),{"is-week-mode":e.selectionMode==="week"}]),o=P(()=>a("el.datepicker.dateTablePrompt")),s=P(()=>a("el.datepicker.week"));return{tableKls:i,tableLabel:o,weekLabel:s,getCellClasses:c=>{const f=[];return ex(c.type)&&!c.disabled?(f.push("available"),c.type==="today"&&f.push("today")):f.push(c.type),t(c)&&f.push("current"),c.inRange&&(ex(c.type)||e.selectionMode==="week")&&(f.push("in-range"),c.start&&f.push("start-date"),c.end&&f.push("end-date")),c.disabled&&f.push("disabled"),c.selected&&f.push("selected"),c.customClass&&f.push(c.customClass),f.join(" ")},getRowKls:c=>[r.e("row"),{current:n(c)}],t:a}},Oye=Le({cell:{type:ue(Object)}});var $ye=ne({name:"ElDatePickerCell",props:Oye,setup(e){const t=Me("date-table-cell"),{slots:n}=Ge(VM);return()=>{const{cell:r}=e;if(n.default){const a=n.default(r).filter(i=>i.patchFlag!==-2&&i.type.toString()!=="Symbol(Comment)");if(a.length)return a}return q("div",{class:t.b()},[q("span",{class:t.e("text")},[r==null?void 0:r.text])])}}});const Nye=["aria-label"],Bye={key:0,scope:"col"},Vye=["aria-label"],zye=["aria-current","aria-selected","tabindex"],Fye=ne({__name:"basic-date-table",props:Iye,emits:Dye,setup(e,{expose:t,emit:n}){const r=e,{WEEKS:a,rows:i,tbodyRef:o,currentCellRef:s,focus:l,isCurrent:u,isWeekActive:c,isSelectedCell:f,handlePickDate:d,handleMouseUp:h,handleMouseDown:v,handleMouseMove:p,handleFocus:g}=Lye(r,n),{tableLabel:m,tableKls:b,weekLabel:_,getCellClasses:w,getRowKls:C,t:S}=Rye(r,{isCurrent:u,isWeekActive:c});return t({focus:l}),(x,T)=>(R(),K("table",{"aria-label":y(m),class:V(y(b)),cellspacing:"0",cellpadding:"0",role:"grid",onClick:T[1]||(T[1]=(...M)=>y(d)&&y(d)(...M)),onMousemove:T[2]||(T[2]=(...M)=>y(p)&&y(p)(...M)),onMousedown:T[3]||(T[3]=tt((...M)=>y(v)&&y(v)(...M),["prevent"])),onMouseup:T[4]||(T[4]=(...M)=>y(h)&&y(h)(...M))},[Y("tbody",{ref_key:"tbodyRef",ref:o},[Y("tr",null,[x.showWeekNumber?(R(),K("th",Bye,De(y(_)),1)):se("v-if",!0),(R(!0),K(je,null,Ot(y(a),(M,A)=>(R(),K("th",{key:A,"aria-label":y(S)("el.datepicker.weeksFull."+M),scope:"col"},De(y(S)("el.datepicker.weeks."+M)),9,Vye))),128))]),(R(!0),K(je,null,Ot(y(i),(M,A)=>(R(),K("tr",{key:A,class:V(y(C)(M[1]))},[(R(!0),K(je,null,Ot(M,(k,E)=>(R(),K("td",{key:`${A}.${E}`,ref_for:!0,ref:D=>y(f)(k)&&(s.value=D),class:V(y(w)(k)),"aria-current":k.isCurrent?"date":void 0,"aria-selected":k.isCurrent,tabindex:y(f)(k)?0:-1,onFocus:T[0]||(T[0]=(...D)=>y(g)&&y(g)(...D))},[q(y($ye),{cell:k},null,8,["cell"])],42,zye))),128))],2))),128))],512)],42,Nye))}});var tx=Pe(Fye,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-date-table.vue"]]);const Hye=Le({...zM,selectionMode:e8("month")}),Gye=["aria-label"],Wye=["aria-selected","aria-label","tabindex","onKeydown"],Kye={class:"cell"},Uye=ne({__name:"basic-month-table",props:Hye,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const r=e,a=(w,C,S)=>{const x=mt().locale(S).startOf("month").month(C).year(w),T=x.daysInMonth();return el(T).map(M=>x.add(M,"day").toDate())},i=Me("month-table"),{t:o,lang:s}=Ht(),l=H(),u=H(),c=H(r.date.locale("en").localeData().monthsShort().map(w=>w.toLowerCase())),f=H([[],[],[]]),d=H(),h=H(),v=P(()=>{var w,C;const S=f.value,x=mt().locale(s.value).startOf("month");for(let T=0;T<3;T++){const M=S[T];for(let A=0;A<4;A++){const k=M[A]||(M[A]={row:T,column:A,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1});k.type="normal";const E=T*4+A,D=r.date.startOf("year").month(E),L=r.rangeState.endDate||r.maxDate||r.rangeState.selecting&&r.minDate||null;k.inRange=!!(r.minDate&&D.isSameOrAfter(r.minDate,"month")&&L&&D.isSameOrBefore(L,"month"))||!!(r.minDate&&D.isSameOrBefore(r.minDate,"month")&&L&&D.isSameOrAfter(L,"month")),(w=r.minDate)!=null&&w.isSameOrAfter(L)?(k.start=!!(L&&D.isSame(L,"month")),k.end=r.minDate&&D.isSame(r.minDate,"month")):(k.start=!!(r.minDate&&D.isSame(r.minDate,"month")),k.end=!!(L&&D.isSame(L,"month"))),x.isSame(D)&&(k.type="today"),k.text=E,k.disabled=((C=r.disabledDate)==null?void 0:C.call(r,D.toDate()))||!1}}return S}),p=()=>{var w;(w=u.value)==null||w.focus()},g=w=>{const C={},S=r.date.year(),x=new Date,T=w.text;return C.disabled=r.disabledDate?a(S,T,s.value).every(r.disabledDate):!1,C.current=jo(r.parsedValue).findIndex(M=>mt.isDayjs(M)&&M.year()===S&&M.month()===T)>=0,C.today=x.getFullYear()===S&&x.getMonth()===T,w.inRange&&(C["in-range"]=!0,w.start&&(C["start-date"]=!0),w.end&&(C["end-date"]=!0)),C},m=w=>{const C=r.date.year(),S=w.text;return jo(r.date).findIndex(x=>x.year()===C&&x.month()===S)>=0},b=w=>{var C;if(!r.rangeState.selecting)return;let S=w.target;if(S.tagName==="A"&&(S=(C=S.parentNode)==null?void 0:C.parentNode),S.tagName==="DIV"&&(S=S.parentNode),S.tagName!=="TD")return;const x=S.parentNode.rowIndex,T=S.cellIndex;v.value[x][T].disabled||(x!==d.value||T!==h.value)&&(d.value=x,h.value=T,n("changerange",{selecting:!0,endDate:r.date.startOf("year").month(x*4+T)}))},_=w=>{var C;const S=(C=w.target)==null?void 0:C.closest("td");if((S==null?void 0:S.tagName)!=="TD"||Li(S,"disabled"))return;const x=S.cellIndex,M=S.parentNode.rowIndex*4+x,A=r.date.startOf("year").month(M);r.selectionMode==="range"?r.rangeState.selecting?(r.minDate&&A>=r.minDate?n("pick",{minDate:r.minDate,maxDate:A}):n("pick",{minDate:A,maxDate:r.minDate}),n("select",!1)):(n("pick",{minDate:A,maxDate:null}),n("select",!0)):n("pick",M)};return xe(()=>r.date,async()=>{var w,C;(w=l.value)!=null&&w.contains(document.activeElement)&&(await Ue(),(C=u.value)==null||C.focus())}),t({focus:p}),(w,C)=>(R(),K("table",{role:"grid","aria-label":y(o)("el.datepicker.monthTablePrompt"),class:V(y(i).b()),onClick:_,onMousemove:b},[Y("tbody",{ref_key:"tbodyRef",ref:l},[(R(!0),K(je,null,Ot(y(v),(S,x)=>(R(),K("tr",{key:x},[(R(!0),K(je,null,Ot(S,(T,M)=>(R(),K("td",{key:M,ref_for:!0,ref:A=>m(T)&&(u.value=A),class:V(g(T)),"aria-selected":`${m(T)}`,"aria-label":y(o)(`el.datepicker.month${+T.text+1}`),tabindex:m(T)?0:-1,onKeydown:[Ft(tt(_,["prevent","stop"]),["space"]),Ft(tt(_,["prevent","stop"]),["enter"])]},[Y("div",null,[Y("span",Kye,De(y(o)("el.datepicker.months."+c.value[T.text])),1)])],42,Wye))),128))]))),128))],512)],42,Gye))}});var nx=Pe(Uye,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-month-table.vue"]]);const{date:Yye,disabledDate:jye,parsedValue:qye}=zM,Xye=Le({date:Yye,disabledDate:jye,parsedValue:qye}),Zye=["aria-label"],Jye=["aria-selected","tabindex","onKeydown"],Qye={class:"cell"},e0e={key:1},t0e=ne({__name:"basic-year-table",props:Xye,emits:["pick"],setup(e,{expose:t,emit:n}){const r=e,a=(p,g)=>{const m=mt(String(p)).locale(g).startOf("year"),_=m.endOf("year").dayOfYear();return el(_).map(w=>m.add(w,"day").toDate())},i=Me("year-table"),{t:o,lang:s}=Ht(),l=H(),u=H(),c=P(()=>Math.floor(r.date.year()/10)*10),f=()=>{var p;(p=u.value)==null||p.focus()},d=p=>{const g={},m=mt().locale(s.value);return g.disabled=r.disabledDate?a(p,s.value).every(r.disabledDate):!1,g.current=jo(r.parsedValue).findIndex(b=>b.year()===p)>=0,g.today=m.year()===p,g},h=p=>p===c.value&&r.date.year()<c.value&&r.date.year()>c.value+9||jo(r.date).findIndex(g=>g.year()===p)>=0,v=p=>{const m=p.target.closest("td");if(m&&m.textContent){if(Li(m,"disabled"))return;const b=m.textContent||m.innerText;n("pick",Number(b))}};return xe(()=>r.date,async()=>{var p,g;(p=l.value)!=null&&p.contains(document.activeElement)&&(await Ue(),(g=u.value)==null||g.focus())}),t({focus:f}),(p,g)=>(R(),K("table",{role:"grid","aria-label":y(o)("el.datepicker.yearTablePrompt"),class:V(y(i).b()),onClick:v},[Y("tbody",{ref_key:"tbodyRef",ref:l},[(R(),K(je,null,Ot(3,(m,b)=>Y("tr",{key:b},[(R(),K(je,null,Ot(4,(_,w)=>(R(),K(je,{key:b+"_"+w},[b*4+w<10?(R(),K("td",{key:0,ref_for:!0,ref:C=>h(y(c)+b*4+w)&&(u.value=C),class:V(["available",d(y(c)+b*4+w)]),"aria-selected":`${h(y(c)+b*4+w)}`,tabindex:h(y(c)+b*4+w)?0:-1,onKeydown:[Ft(tt(v,["prevent","stop"]),["space"]),Ft(tt(v,["prevent","stop"]),["enter"])]},[Y("span",Qye,De(y(c)+b*4+w),1)],42,Jye)):(R(),K("td",e0e))],64))),64))])),64))],512)],10,Zye))}});var n0e=Pe(t0e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-year-table.vue"]]);const r0e=["onClick"],a0e=["aria-label"],i0e=["aria-label"],o0e=["aria-label"],s0e=["aria-label"],l0e=ne({__name:"panel-date-pick",props:Eye,emits:["pick","set-picker-option","panel-change"],setup(e,{emit:t}){const n=e,r=(ye,fe,le)=>!0,a=Me("picker-panel"),i=Me("date-picker"),o=mc(),s=Mr(),{t:l,lang:u}=Ht(),c=Ge("EP_PICKER_BASE"),f=Ge(a1),{shortcuts:d,disabledDate:h,cellClassName:v,defaultTime:p}=c.props,g=kn(c.props,"defaultValue"),m=H(),b=H(mt().locale(u.value)),_=H(!1);let w=!1;const C=P(()=>mt(p).locale(u.value)),S=P(()=>b.value.month()),x=P(()=>b.value.year()),T=H([]),M=H(null),A=H(null),k=ye=>T.value.length>0?r(ye,T.value,n.format||"HH:mm:ss"):!0,E=ye=>p&&!oe.value&&!_.value&&!w?C.value.year(ye.year()).month(ye.month()).date(ye.date()):Q.value?ye.millisecond(0):ye.startOf("day"),D=(ye,...fe)=>{if(!ye)t("pick",ye,...fe);else if(He(ye)){const le=ye.map(E);t("pick",le,...fe)}else t("pick",E(ye),...fe);M.value=null,A.value=null,_.value=!1,w=!1},L=(ye,fe)=>{if(z.value==="date"){ye=ye;let le=n.parsedValue?n.parsedValue.year(ye.year()).month(ye.month()).date(ye.date()):ye;k(le)||(le=T.value[0][0].year(ye.year()).month(ye.month()).date(ye.date())),b.value=le,D(le,Q.value||fe)}else z.value==="week"?D(ye.date):z.value==="dates"&&D(ye,!0)},B=ye=>{const fe=ye?"add":"subtract";b.value=b.value[fe](1,"month"),Qe("month")},N=ye=>{const fe=b.value,le=ye?"add":"subtract";b.value=O.value==="year"?fe[le](10,"year"):fe[le](1,"year"),Qe("year")},O=H("date"),$=P(()=>{const ye=l("el.datepicker.year");if(O.value==="year"){const fe=Math.floor(x.value/10)*10;return ye?`${fe} ${ye} - ${fe+9} ${ye}`:`${fe} - ${fe+9}`}return`${x.value} ${ye}`}),I=ye=>{const fe=it(ye.value)?ye.value():ye.value;if(fe){w=!0,D(mt(fe).locale(u.value));return}ye.onClick&&ye.onClick({attrs:o,slots:s,emit:t})},z=P(()=>{const{type:ye}=n;return["week","month","year","dates"].includes(ye)?ye:"date"}),G=P(()=>z.value==="date"?O.value:z.value),U=P(()=>!!d.length),Z=async ye=>{b.value=b.value.startOf("month").month(ye),z.value==="month"?D(b.value,!1):(O.value="date",["month","year","date","week"].includes(z.value)&&(D(b.value,!0),await Ue(),rt())),Qe("month")},ae=async ye=>{z.value==="year"?(b.value=b.value.startOf("year").year(ye),D(b.value,!1)):(b.value=b.value.year(ye),O.value="month",["month","year","date","week"].includes(z.value)&&(D(b.value,!0),await Ue(),rt())),Qe("year")},J=async ye=>{O.value=ye,await Ue(),rt()},Q=P(()=>n.type==="datetime"||n.type==="datetimerange"),ee=P(()=>Q.value||z.value==="dates"),j=P(()=>h?n.parsedValue?He(n.parsedValue)?h(n.parsedValue[0].toDate()):h(n.parsedValue.toDate()):!0:!1),de=()=>{if(z.value==="dates")D(n.parsedValue);else{let ye=n.parsedValue;if(!ye){const fe=mt(p).locale(u.value),le=Fe();ye=fe.year(le.year()).month(le.month()).date(le.date())}b.value=ye,D(ye)}},ve=P(()=>h?h(mt().locale(u.value).toDate()):!1),ie=()=>{const fe=mt().locale(u.value).toDate();_.value=!0,(!h||!h(fe))&&k(fe)&&(b.value=mt().locale(u.value),D(b.value))},W=P(()=>aF(n.format)),X=P(()=>rF(n.format)),oe=P(()=>{if(A.value)return A.value;if(!(!n.parsedValue&&!g.value))return(n.parsedValue||b.value).format(W.value)}),pe=P(()=>{if(M.value)return M.value;if(!(!n.parsedValue&&!g.value))return(n.parsedValue||b.value).format(X.value)}),Se=H(!1),me=()=>{Se.value=!0},Ee=()=>{Se.value=!1},Ce=ye=>({hour:ye.hour(),minute:ye.minute(),second:ye.second(),year:ye.year(),month:ye.month(),date:ye.date()}),we=(ye,fe,le)=>{const{hour:ke,minute:te,second:Ve}=Ce(ye),st=n.parsedValue?n.parsedValue.hour(ke).minute(te).second(Ve):ye;b.value=st,D(b.value,!0),le||(Se.value=fe)},Te=ye=>{const fe=mt(ye,W.value).locale(u.value);if(fe.isValid()&&k(fe)){const{year:le,month:ke,date:te}=Ce(b.value);b.value=fe.year(le).month(ke).date(te),A.value=null,Se.value=!1,D(b.value,!0)}},$e=ye=>{const fe=mt(ye,X.value).locale(u.value);if(fe.isValid()){if(h&&h(fe.toDate()))return;const{hour:le,minute:ke,second:te}=Ce(b.value);b.value=fe.hour(le).minute(ke).second(te),M.value=null,D(b.value,!0)}},Be=ye=>mt.isDayjs(ye)&&ye.isValid()&&(h?!h(ye.toDate()):!0),We=ye=>z.value==="dates"?ye.map(fe=>fe.format(n.format)):ye.format(n.format),Ae=ye=>mt(ye,n.format).locale(u.value),Fe=()=>{const ye=mt(g.value).locale(u.value);if(!g.value){const fe=C.value;return mt().hour(fe.hour()).minute(fe.minute()).second(fe.second()).locale(u.value)}return ye},rt=async()=>{var ye;["week","month","year","date"].includes(z.value)&&((ye=m.value)==null||ye.focus(),z.value==="week"&&kt(Xe.down))},vt=ye=>{const{code:fe}=ye;[Xe.up,Xe.down,Xe.left,Xe.right,Xe.home,Xe.end,Xe.pageUp,Xe.pageDown].includes(fe)&&(kt(fe),ye.stopPropagation(),ye.preventDefault()),[Xe.enter,Xe.space,Xe.numpadEnter].includes(fe)&&M.value===null&&A.value===null&&(ye.preventDefault(),D(b.value,!1))},kt=ye=>{var fe;const{up:le,down:ke,left:te,right:Ve,home:st,end:It,pageUp:zn,pageDown:Zn}=Xe,oa={year:{[le]:-4,[ke]:4,[te]:-1,[Ve]:1,offset:(be,Ne)=>be.setFullYear(be.getFullYear()+Ne)},month:{[le]:-4,[ke]:4,[te]:-1,[Ve]:1,offset:(be,Ne)=>be.setMonth(be.getMonth()+Ne)},week:{[le]:-1,[ke]:1,[te]:-1,[Ve]:1,offset:(be,Ne)=>be.setDate(be.getDate()+Ne*7)},date:{[le]:-7,[ke]:7,[te]:-1,[Ve]:1,[st]:be=>-be.getDay(),[It]:be=>-be.getDay()+6,[zn]:be=>-new Date(be.getFullYear(),be.getMonth(),0).getDate(),[Zn]:be=>new Date(be.getFullYear(),be.getMonth()+1,0).getDate(),offset:(be,Ne)=>be.setDate(be.getDate()+Ne)}},pr=b.value.toDate();for(;Math.abs(b.value.diff(pr,"year",!0))<1;){const be=oa[G.value];if(!be)return;if(be.offset(pr,it(be[ye])?be[ye](pr):(fe=be[ye])!=null?fe:0),h&&h(pr))break;const Ne=mt(pr).locale(u.value);b.value=Ne,t("pick",Ne,!0);break}},Qe=ye=>{t("panel-change",b.value.toDate(),ye,O.value)};return xe(()=>z.value,ye=>{if(["month","year"].includes(ye)){O.value=ye;return}O.value="date"},{immediate:!0}),xe(()=>O.value,()=>{f==null||f.updatePopper()}),xe(()=>g.value,ye=>{ye&&(b.value=Fe())},{immediate:!0}),xe(()=>n.parsedValue,ye=>{if(ye){if(z.value==="dates"||Array.isArray(ye))return;b.value=ye}else b.value=Fe()},{immediate:!0}),t("set-picker-option",["isValidValue",Be]),t("set-picker-option",["formatToString",We]),t("set-picker-option",["parseUserInput",Ae]),t("set-picker-option",["handleFocusPicker",rt]),(ye,fe)=>(R(),K("div",{class:V([y(a).b(),y(i).b(),{"has-sidebar":ye.$slots.sidebar||y(U),"has-time":y(Q)}])},[Y("div",{class:V(y(a).e("body-wrapper"))},[_e(ye.$slots,"sidebar",{class:V(y(a).e("sidebar"))}),y(U)?(R(),K("div",{key:0,class:V(y(a).e("sidebar"))},[(R(!0),K(je,null,Ot(y(d),(le,ke)=>(R(),K("button",{key:ke,type:"button",class:V(y(a).e("shortcut")),onClick:te=>I(le)},De(le.text),11,r0e))),128))],2)):se("v-if",!0),Y("div",{class:V(y(a).e("body"))},[y(Q)?(R(),K("div",{key:0,class:V(y(i).e("time-header"))},[Y("span",{class:V(y(i).e("editor-wrap"))},[q(y(Rr),{placeholder:y(l)("el.datepicker.selectDate"),"model-value":y(pe),size:"small","validate-event":!1,onInput:fe[0]||(fe[0]=le=>M.value=le),onChange:$e},null,8,["placeholder","model-value"])],2),dt((R(),K("span",{class:V(y(i).e("editor-wrap"))},[q(y(Rr),{placeholder:y(l)("el.datepicker.selectTime"),"model-value":y(oe),size:"small","validate-event":!1,onFocus:me,onInput:fe[1]||(fe[1]=le=>A.value=le),onChange:Te},null,8,["placeholder","model-value"]),q(y(v0),{visible:Se.value,format:y(W),"parsed-value":b.value,onPick:we},null,8,["visible","format","parsed-value"])],2)),[[y(vl),Ee]])],2)):se("v-if",!0),dt(Y("div",{class:V([y(i).e("header"),(O.value==="year"||O.value==="month")&&y(i).e("header--bordered")])},[Y("span",{class:V(y(i).e("prev-btn"))},[Y("button",{type:"button","aria-label":y(l)("el.datepicker.prevYear"),class:V(["d-arrow-left",y(a).e("icon-btn")]),onClick:fe[2]||(fe[2]=le=>N(!1))},[q(y(Ke),null,{default:re(()=>[q(y(Xf))]),_:1})],10,a0e),dt(Y("button",{type:"button","aria-label":y(l)("el.datepicker.prevMonth"),class:V([y(a).e("icon-btn"),"arrow-left"]),onClick:fe[3]||(fe[3]=le=>B(!1))},[q(y(Ke),null,{default:re(()=>[q(y(cl))]),_:1})],10,i0e),[[Kt,O.value==="date"]])],2),Y("span",{role:"button",class:V(y(i).e("header-label")),"aria-live":"polite",tabindex:"0",onKeydown:fe[4]||(fe[4]=Ft(le=>J("year"),["enter"])),onClick:fe[5]||(fe[5]=le=>J("year"))},De(y($)),35),dt(Y("span",{role:"button","aria-live":"polite",tabindex:"0",class:V([y(i).e("header-label"),{active:O.value==="month"}]),onKeydown:fe[6]||(fe[6]=Ft(le=>J("month"),["enter"])),onClick:fe[7]||(fe[7]=le=>J("month"))},De(y(l)(`el.datepicker.month${y(S)+1}`)),35),[[Kt,O.value==="date"]]),Y("span",{class:V(y(i).e("next-btn"))},[dt(Y("button",{type:"button","aria-label":y(l)("el.datepicker.nextMonth"),class:V([y(a).e("icon-btn"),"arrow-right"]),onClick:fe[8]||(fe[8]=le=>B(!0))},[q(y(Ke),null,{default:re(()=>[q(y(jr))]),_:1})],10,o0e),[[Kt,O.value==="date"]]),Y("button",{type:"button","aria-label":y(l)("el.datepicker.nextYear"),class:V([y(a).e("icon-btn"),"d-arrow-right"]),onClick:fe[9]||(fe[9]=le=>N(!0))},[q(y(Ke),null,{default:re(()=>[q(y(Zf))]),_:1})],10,s0e)],2)],2),[[Kt,O.value!=="time"]]),Y("div",{class:V(y(a).e("content")),onKeydown:vt},[O.value==="date"?(R(),ce(tx,{key:0,ref_key:"currentViewRef",ref:m,"selection-mode":y(z),date:b.value,"parsed-value":ye.parsedValue,"disabled-date":y(h),"cell-class-name":y(v),onPick:L},null,8,["selection-mode","date","parsed-value","disabled-date","cell-class-name"])):se("v-if",!0),O.value==="year"?(R(),ce(n0e,{key:1,ref_key:"currentViewRef",ref:m,date:b.value,"disabled-date":y(h),"parsed-value":ye.parsedValue,onPick:ae},null,8,["date","disabled-date","parsed-value"])):se("v-if",!0),O.value==="month"?(R(),ce(nx,{key:2,ref_key:"currentViewRef",ref:m,date:b.value,"parsed-value":ye.parsedValue,"disabled-date":y(h),onPick:Z},null,8,["date","parsed-value","disabled-date"])):se("v-if",!0)],34)],2)],2),dt(Y("div",{class:V(y(a).e("footer"))},[dt(q(y(_r),{text:"",size:"small",class:V(y(a).e("link-btn")),disabled:y(ve),onClick:ie},{default:re(()=>[Ut(De(y(l)("el.datepicker.now")),1)]),_:1},8,["class","disabled"]),[[Kt,y(z)!=="dates"]]),q(y(_r),{plain:"",size:"small",class:V(y(a).e("link-btn")),disabled:y(j),onClick:de},{default:re(()=>[Ut(De(y(l)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])],2),[[Kt,y(ee)&&O.value==="date"]])],2))}});var u0e=Pe(l0e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-date-pick.vue"]]);const c0e=Le({...JF,...QF}),f0e=e=>{const{emit:t}=gt(),n=mc(),r=Mr();return i=>{const o=it(i.value)?i.value():i.value;if(o){t("pick",[mt(o[0]).locale(e.value),mt(o[1]).locale(e.value)]);return}i.onClick&&i.onClick({attrs:n,slots:r,emit:t})}},n8=(e,{defaultValue:t,leftDate:n,rightDate:r,unit:a,onParsedValueChanged:i})=>{const{emit:o}=gt(),{pickerNs:s}=Ge(VM),l=Me("date-range-picker"),{t:u,lang:c}=Ht(),f=f0e(c),d=H(),h=H(),v=H({endDate:null,selecting:!1}),p=_=>{v.value=_},g=(_=!1)=>{const w=y(d),C=y(h);QC([w,C])&&o("pick",[w,C],_)},m=_=>{v.value.selecting=_,_||(v.value.endDate=null)},b=()=>{const[_,w]=t8(y(t),{lang:y(c),unit:a,unlinkPanels:e.unlinkPanels});d.value=void 0,h.value=void 0,n.value=_,r.value=w};return xe(t,_=>{_&&b()},{immediate:!0}),xe(()=>e.parsedValue,_=>{if(He(_)&&_.length===2){const[w,C]=_;d.value=w,n.value=w,h.value=C,i(y(d),y(h))}else b()},{immediate:!0}),{minDate:d,maxDate:h,rangeState:v,lang:c,ppNs:s,drpNs:l,handleChangeRange:p,handleRangeConfirm:g,handleShortcutClick:f,onSelect:m,t:u}},d0e=["onClick"],h0e=["aria-label"],v0e=["aria-label"],p0e=["disabled","aria-label"],g0e=["disabled","aria-label"],m0e=["disabled","aria-label"],y0e=["disabled","aria-label"],b0e=["aria-label"],_0e=["aria-label"],jg="month",w0e=ne({__name:"panel-date-range",props:c0e,emits:["pick","set-picker-option","calendar-change","panel-change"],setup(e,{emit:t}){const n=e,r=Ge("EP_PICKER_BASE"),{disabledDate:a,cellClassName:i,format:o,defaultTime:s,clearable:l}=r.props,u=kn(r.props,"shortcuts"),c=kn(r.props,"defaultValue"),{lang:f}=Ht(),d=H(mt().locale(f.value)),h=H(mt().locale(f.value).add(1,jg)),{minDate:v,maxDate:p,rangeState:g,ppNs:m,drpNs:b,handleChangeRange:_,handleRangeConfirm:w,handleShortcutClick:C,onSelect:S,t:x}=n8(n,{defaultValue:c,leftDate:d,rightDate:h,unit:jg,onParsedValueChanged:fe}),T=H({min:null,max:null}),M=H({min:null,max:null}),A=P(()=>`${d.value.year()} ${x("el.datepicker.year")} ${x(`el.datepicker.month${d.value.month()+1}`)}`),k=P(()=>`${h.value.year()} ${x("el.datepicker.year")} ${x(`el.datepicker.month${h.value.month()+1}`)}`),E=P(()=>d.value.year()),D=P(()=>d.value.month()),L=P(()=>h.value.year()),B=P(()=>h.value.month()),N=P(()=>!!u.value.length),O=P(()=>T.value.min!==null?T.value.min:v.value?v.value.format(U.value):""),$=P(()=>T.value.max!==null?T.value.max:p.value||v.value?(p.value||v.value).format(U.value):""),I=P(()=>M.value.min!==null?M.value.min:v.value?v.value.format(G.value):""),z=P(()=>M.value.max!==null?M.value.max:p.value||v.value?(p.value||v.value).format(G.value):""),G=P(()=>aF(o)),U=P(()=>rF(o)),Z=le=>QC(le)&&(a?!a(le[0].toDate())&&!a(le[1].toDate()):!0),ae=()=>{d.value=d.value.subtract(1,"year"),n.unlinkPanels||(h.value=d.value.add(1,"month")),W("year")},J=()=>{d.value=d.value.subtract(1,"month"),n.unlinkPanels||(h.value=d.value.add(1,"month")),W("month")},Q=()=>{n.unlinkPanels?h.value=h.value.add(1,"year"):(d.value=d.value.add(1,"year"),h.value=d.value.add(1,"month")),W("year")},ee=()=>{n.unlinkPanels?h.value=h.value.add(1,"month"):(d.value=d.value.add(1,"month"),h.value=d.value.add(1,"month")),W("month")},j=()=>{d.value=d.value.add(1,"year"),W("year")},de=()=>{d.value=d.value.add(1,"month"),W("month")},ve=()=>{h.value=h.value.subtract(1,"year"),W("year")},ie=()=>{h.value=h.value.subtract(1,"month"),W("month")},W=le=>{t("panel-change",[d.value.toDate(),h.value.toDate()],le)},X=P(()=>{const le=(D.value+1)%12,ke=D.value+1>=12?1:0;return n.unlinkPanels&&new Date(E.value+ke,le)<new Date(L.value,B.value)}),oe=P(()=>n.unlinkPanels&&L.value*12+B.value-(E.value*12+D.value+1)>=12),pe=P(()=>!(v.value&&p.value&&!g.value.selecting&&QC([v.value,p.value]))),Se=P(()=>n.type==="datetime"||n.type==="datetimerange"),me=(le,ke)=>{if(le)return s?mt(s[ke]||s).locale(f.value).year(le.year()).month(le.month()).date(le.date()):le},Ee=(le,ke=!0)=>{const te=le.minDate,Ve=le.maxDate,st=me(te,0),It=me(Ve,1);p.value===It&&v.value===st||(t("calendar-change",[te.toDate(),Ve&&Ve.toDate()]),p.value=It,v.value=st,!(!ke||Se.value)&&w())},Ce=H(!1),we=H(!1),Te=()=>{Ce.value=!1},$e=()=>{we.value=!1},Be=(le,ke)=>{T.value[ke]=le;const te=mt(le,U.value).locale(f.value);if(te.isValid()){if(a&&a(te.toDate()))return;ke==="min"?(d.value=te,v.value=(v.value||d.value).year(te.year()).month(te.month()).date(te.date()),!n.unlinkPanels&&(!p.value||p.value.isBefore(v.value))&&(h.value=te.add(1,"month"),p.value=v.value.add(1,"month"))):(h.value=te,p.value=(p.value||h.value).year(te.year()).month(te.month()).date(te.date()),!n.unlinkPanels&&(!v.value||v.value.isAfter(p.value))&&(d.value=te.subtract(1,"month"),v.value=p.value.subtract(1,"month")))}},We=(le,ke)=>{T.value[ke]=null},Ae=(le,ke)=>{M.value[ke]=le;const te=mt(le,G.value).locale(f.value);te.isValid()&&(ke==="min"?(Ce.value=!0,v.value=(v.value||d.value).hour(te.hour()).minute(te.minute()).second(te.second()),(!p.value||p.value.isBefore(v.value))&&(p.value=v.value)):(we.value=!0,p.value=(p.value||h.value).hour(te.hour()).minute(te.minute()).second(te.second()),h.value=p.value,p.value&&p.value.isBefore(v.value)&&(v.value=p.value)))},Fe=(le,ke)=>{M.value[ke]=null,ke==="min"?(d.value=v.value,Ce.value=!1):(h.value=p.value,we.value=!1)},rt=(le,ke,te)=>{M.value.min||(le&&(d.value=le,v.value=(v.value||d.value).hour(le.hour()).minute(le.minute()).second(le.second())),te||(Ce.value=ke),(!p.value||p.value.isBefore(v.value))&&(p.value=v.value,h.value=le))},vt=(le,ke,te)=>{M.value.max||(le&&(h.value=le,p.value=(p.value||h.value).hour(le.hour()).minute(le.minute()).second(le.second())),te||(we.value=ke),p.value&&p.value.isBefore(v.value)&&(v.value=p.value))},kt=()=>{d.value=t8(y(c),{lang:y(f),unit:"month",unlinkPanels:n.unlinkPanels})[0],h.value=d.value.add(1,"month"),t("pick",null)},Qe=le=>He(le)?le.map(ke=>ke.format(o)):le.format(o),ye=le=>He(le)?le.map(ke=>mt(ke,o).locale(f.value)):mt(le,o).locale(f.value);function fe(le,ke){if(n.unlinkPanels&&ke){const te=(le==null?void 0:le.year())||0,Ve=(le==null?void 0:le.month())||0,st=ke.year(),It=ke.month();h.value=te===st&&Ve===It?ke.add(1,jg):ke}else h.value=d.value.add(1,jg),ke&&(h.value=h.value.hour(ke.hour()).minute(ke.minute()).second(ke.second()))}return t("set-picker-option",["isValidValue",Z]),t("set-picker-option",["parseUserInput",ye]),t("set-picker-option",["formatToString",Qe]),t("set-picker-option",["handleClear",kt]),(le,ke)=>(R(),K("div",{class:V([y(m).b(),y(b).b(),{"has-sidebar":le.$slots.sidebar||y(N),"has-time":y(Se)}])},[Y("div",{class:V(y(m).e("body-wrapper"))},[_e(le.$slots,"sidebar",{class:V(y(m).e("sidebar"))}),y(N)?(R(),K("div",{key:0,class:V(y(m).e("sidebar"))},[(R(!0),K(je,null,Ot(y(u),(te,Ve)=>(R(),K("button",{key:Ve,type:"button",class:V(y(m).e("shortcut")),onClick:st=>y(C)(te)},De(te.text),11,d0e))),128))],2)):se("v-if",!0),Y("div",{class:V(y(m).e("body"))},[y(Se)?(R(),K("div",{key:0,class:V(y(b).e("time-header"))},[Y("span",{class:V(y(b).e("editors-wrap"))},[Y("span",{class:V(y(b).e("time-picker-wrap"))},[q(y(Rr),{size:"small",disabled:y(g).selecting,placeholder:y(x)("el.datepicker.startDate"),class:V(y(b).e("editor")),"model-value":y(O),"validate-event":!1,onInput:ke[0]||(ke[0]=te=>Be(te,"min")),onChange:ke[1]||(ke[1]=te=>We(te,"min"))},null,8,["disabled","placeholder","class","model-value"])],2),dt((R(),K("span",{class:V(y(b).e("time-picker-wrap"))},[q(y(Rr),{size:"small",class:V(y(b).e("editor")),disabled:y(g).selecting,placeholder:y(x)("el.datepicker.startTime"),"model-value":y(I),"validate-event":!1,onFocus:ke[2]||(ke[2]=te=>Ce.value=!0),onInput:ke[3]||(ke[3]=te=>Ae(te,"min")),onChange:ke[4]||(ke[4]=te=>Fe(te,"min"))},null,8,["class","disabled","placeholder","model-value"]),q(y(v0),{visible:Ce.value,format:y(G),"datetime-role":"start","parsed-value":d.value,onPick:rt},null,8,["visible","format","parsed-value"])],2)),[[y(vl),Te]])],2),Y("span",null,[q(y(Ke),null,{default:re(()=>[q(y(jr))]),_:1})]),Y("span",{class:V([y(b).e("editors-wrap"),"is-right"])},[Y("span",{class:V(y(b).e("time-picker-wrap"))},[q(y(Rr),{size:"small",class:V(y(b).e("editor")),disabled:y(g).selecting,placeholder:y(x)("el.datepicker.endDate"),"model-value":y($),readonly:!y(v),"validate-event":!1,onInput:ke[5]||(ke[5]=te=>Be(te,"max")),onChange:ke[6]||(ke[6]=te=>We(te,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"])],2),dt((R(),K("span",{class:V(y(b).e("time-picker-wrap"))},[q(y(Rr),{size:"small",class:V(y(b).e("editor")),disabled:y(g).selecting,placeholder:y(x)("el.datepicker.endTime"),"model-value":y(z),readonly:!y(v),"validate-event":!1,onFocus:ke[7]||(ke[7]=te=>y(v)&&(we.value=!0)),onInput:ke[8]||(ke[8]=te=>Ae(te,"max")),onChange:ke[9]||(ke[9]=te=>Fe(te,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"]),q(y(v0),{"datetime-role":"end",visible:we.value,format:y(G),"parsed-value":h.value,onPick:vt},null,8,["visible","format","parsed-value"])],2)),[[y(vl),$e]])],2)],2)):se("v-if",!0),Y("div",{class:V([[y(m).e("content"),y(b).e("content")],"is-left"])},[Y("div",{class:V(y(b).e("header"))},[Y("button",{type:"button",class:V([y(m).e("icon-btn"),"d-arrow-left"]),"aria-label":y(x)("el.datepicker.prevYear"),onClick:ae},[q(y(Ke),null,{default:re(()=>[q(y(Xf))]),_:1})],10,h0e),Y("button",{type:"button",class:V([y(m).e("icon-btn"),"arrow-left"]),"aria-label":y(x)("el.datepicker.prevMonth"),onClick:J},[q(y(Ke),null,{default:re(()=>[q(y(cl))]),_:1})],10,v0e),le.unlinkPanels?(R(),K("button",{key:0,type:"button",disabled:!y(oe),class:V([[y(m).e("icon-btn"),{"is-disabled":!y(oe)}],"d-arrow-right"]),"aria-label":y(x)("el.datepicker.nextYear"),onClick:j},[q(y(Ke),null,{default:re(()=>[q(y(Zf))]),_:1})],10,p0e)):se("v-if",!0),le.unlinkPanels?(R(),K("button",{key:1,type:"button",disabled:!y(X),class:V([[y(m).e("icon-btn"),{"is-disabled":!y(X)}],"arrow-right"]),"aria-label":y(x)("el.datepicker.nextMonth"),onClick:de},[q(y(Ke),null,{default:re(()=>[q(y(jr))]),_:1})],10,g0e)):se("v-if",!0),Y("div",null,De(y(A)),1)],2),q(tx,{"selection-mode":"range",date:d.value,"min-date":y(v),"max-date":y(p),"range-state":y(g),"disabled-date":y(a),"cell-class-name":y(i),onChangerange:y(_),onPick:Ee,onSelect:y(S)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2),Y("div",{class:V([[y(m).e("content"),y(b).e("content")],"is-right"])},[Y("div",{class:V(y(b).e("header"))},[le.unlinkPanels?(R(),K("button",{key:0,type:"button",disabled:!y(oe),class:V([[y(m).e("icon-btn"),{"is-disabled":!y(oe)}],"d-arrow-left"]),"aria-label":y(x)("el.datepicker.prevYear"),onClick:ve},[q(y(Ke),null,{default:re(()=>[q(y(Xf))]),_:1})],10,m0e)):se("v-if",!0),le.unlinkPanels?(R(),K("button",{key:1,type:"button",disabled:!y(X),class:V([[y(m).e("icon-btn"),{"is-disabled":!y(X)}],"arrow-left"]),"aria-label":y(x)("el.datepicker.prevMonth"),onClick:ie},[q(y(Ke),null,{default:re(()=>[q(y(cl))]),_:1})],10,y0e)):se("v-if",!0),Y("button",{type:"button","aria-label":y(x)("el.datepicker.nextYear"),class:V([y(m).e("icon-btn"),"d-arrow-right"]),onClick:Q},[q(y(Ke),null,{default:re(()=>[q(y(Zf))]),_:1})],10,b0e),Y("button",{type:"button",class:V([y(m).e("icon-btn"),"arrow-right"]),"aria-label":y(x)("el.datepicker.nextMonth"),onClick:ee},[q(y(Ke),null,{default:re(()=>[q(y(jr))]),_:1})],10,_0e),Y("div",null,De(y(k)),1)],2),q(tx,{"selection-mode":"range",date:h.value,"min-date":y(v),"max-date":y(p),"range-state":y(g),"disabled-date":y(a),"cell-class-name":y(i),onChangerange:y(_),onPick:Ee,onSelect:y(S)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2)],2)],2),y(Se)?(R(),K("div",{key:0,class:V(y(m).e("footer"))},[y(l)?(R(),ce(y(_r),{key:0,text:"",size:"small",class:V(y(m).e("link-btn")),onClick:kt},{default:re(()=>[Ut(De(y(x)("el.datepicker.clear")),1)]),_:1},8,["class"])):se("v-if",!0),q(y(_r),{plain:"",size:"small",class:V(y(m).e("link-btn")),disabled:y(pe),onClick:ke[10]||(ke[10]=te=>y(w)(!1))},{default:re(()=>[Ut(De(y(x)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])],2)):se("v-if",!0)],2))}});var S0e=Pe(w0e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-date-range.vue"]]);const C0e=Le({...QF}),x0e=["pick","set-picker-option","calendar-change"],T0e=({unlinkPanels:e,leftDate:t,rightDate:n})=>{const{t:r}=Ht(),a=()=>{t.value=t.value.subtract(1,"year"),e.value||(n.value=n.value.subtract(1,"year"))},i=()=>{e.value||(t.value=t.value.add(1,"year")),n.value=n.value.add(1,"year")},o=()=>{t.value=t.value.add(1,"year")},s=()=>{n.value=n.value.subtract(1,"year")},l=P(()=>`${t.value.year()} ${r("el.datepicker.year")}`),u=P(()=>`${n.value.year()} ${r("el.datepicker.year")}`),c=P(()=>t.value.year()),f=P(()=>n.value.year()===t.value.year()?t.value.year()+1:n.value.year());return{leftPrevYear:a,rightNextYear:i,leftNextYear:o,rightPrevYear:s,leftLabel:l,rightLabel:u,leftYear:c,rightYear:f}},M0e=["onClick"],k0e=["disabled"],A0e=["disabled"],qg="year",E0e=ne({name:"DatePickerMonthRange"}),I0e=ne({...E0e,props:C0e,emits:x0e,setup(e,{emit:t}){const n=e,{lang:r}=Ht(),a=Ge("EP_PICKER_BASE"),{shortcuts:i,disabledDate:o,format:s}=a.props,l=kn(a.props,"defaultValue"),u=H(mt().locale(r.value)),c=H(mt().locale(r.value).add(1,qg)),{minDate:f,maxDate:d,rangeState:h,ppNs:v,drpNs:p,handleChangeRange:g,handleRangeConfirm:m,handleShortcutClick:b,onSelect:_}=n8(n,{defaultValue:l,leftDate:u,rightDate:c,unit:qg,onParsedValueChanged:N}),w=P(()=>!!i.length),{leftPrevYear:C,rightNextYear:S,leftNextYear:x,rightPrevYear:T,leftLabel:M,rightLabel:A,leftYear:k,rightYear:E}=T0e({unlinkPanels:kn(n,"unlinkPanels"),leftDate:u,rightDate:c}),D=P(()=>n.unlinkPanels&&E.value>k.value+1),L=(O,$=!0)=>{const I=O.minDate,z=O.maxDate;d.value===z&&f.value===I||(t("calendar-change",[I.toDate(),z&&z.toDate()]),d.value=z,f.value=I,$&&m())},B=O=>O.map($=>$.format(s));function N(O,$){if(n.unlinkPanels&&$){const I=(O==null?void 0:O.year())||0,z=$.year();c.value=I===z?$.add(1,qg):$}else c.value=u.value.add(1,qg)}return t("set-picker-option",["formatToString",B]),(O,$)=>(R(),K("div",{class:V([y(v).b(),y(p).b(),{"has-sidebar":!!O.$slots.sidebar||y(w)}])},[Y("div",{class:V(y(v).e("body-wrapper"))},[_e(O.$slots,"sidebar",{class:V(y(v).e("sidebar"))}),y(w)?(R(),K("div",{key:0,class:V(y(v).e("sidebar"))},[(R(!0),K(je,null,Ot(y(i),(I,z)=>(R(),K("button",{key:z,type:"button",class:V(y(v).e("shortcut")),onClick:G=>y(b)(I)},De(I.text),11,M0e))),128))],2)):se("v-if",!0),Y("div",{class:V(y(v).e("body"))},[Y("div",{class:V([[y(v).e("content"),y(p).e("content")],"is-left"])},[Y("div",{class:V(y(p).e("header"))},[Y("button",{type:"button",class:V([y(v).e("icon-btn"),"d-arrow-left"]),onClick:$[0]||($[0]=(...I)=>y(C)&&y(C)(...I))},[q(y(Ke),null,{default:re(()=>[q(y(Xf))]),_:1})],2),O.unlinkPanels?(R(),K("button",{key:0,type:"button",disabled:!y(D),class:V([[y(v).e("icon-btn"),{[y(v).is("disabled")]:!y(D)}],"d-arrow-right"]),onClick:$[1]||($[1]=(...I)=>y(x)&&y(x)(...I))},[q(y(Ke),null,{default:re(()=>[q(y(Zf))]),_:1})],10,k0e)):se("v-if",!0),Y("div",null,De(y(M)),1)],2),q(nx,{"selection-mode":"range",date:u.value,"min-date":y(f),"max-date":y(d),"range-state":y(h),"disabled-date":y(o),onChangerange:y(g),onPick:L,onSelect:y(_)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2),Y("div",{class:V([[y(v).e("content"),y(p).e("content")],"is-right"])},[Y("div",{class:V(y(p).e("header"))},[O.unlinkPanels?(R(),K("button",{key:0,type:"button",disabled:!y(D),class:V([[y(v).e("icon-btn"),{"is-disabled":!y(D)}],"d-arrow-left"]),onClick:$[2]||($[2]=(...I)=>y(T)&&y(T)(...I))},[q(y(Ke),null,{default:re(()=>[q(y(Xf))]),_:1})],10,A0e)):se("v-if",!0),Y("button",{type:"button",class:V([y(v).e("icon-btn"),"d-arrow-right"]),onClick:$[3]||($[3]=(...I)=>y(S)&&y(S)(...I))},[q(y(Ke),null,{default:re(()=>[q(y(Zf))]),_:1})],2),Y("div",null,De(y(A)),1)],2),q(nx,{"selection-mode":"range",date:c.value,"min-date":y(f),"max-date":y(d),"range-state":y(h),"disabled-date":y(o),onChangerange:y(g),onPick:L,onSelect:y(_)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2)],2)],2)],2))}});var D0e=Pe(I0e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-month-range.vue"]]);const P0e=function(e){switch(e){case"daterange":case"datetimerange":return S0e;case"monthrange":return D0e;default:return u0e}};mt.extend(_F);mt.extend(gye);mt.extend(OM);mt.extend(yye);mt.extend(_ye);mt.extend(Sye);mt.extend(xye);mt.extend(Mye);var L0e=ne({name:"ElDatePicker",install:null,props:kye,emits:["update:modelValue"],setup(e,{expose:t,emit:n,slots:r}){const a=Me("picker-panel");Et("ElPopperOptions",jt(kn(e,"popperOptions"))),Et(VM,{slots:r,pickerNs:a});const i=H();t({focus:(l=!0)=>{var u;(u=i.value)==null||u.focus(l)},handleOpen:()=>{var l;(l=i.value)==null||l.handleOpen()},handleClose:()=>{var l;(l=i.value)==null||l.handleClose()}});const s=l=>{n("update:modelValue",l)};return()=>{var l;const u=(l=e.format)!=null?l:dve[e.type]||sf,c=P0e(e.type);return q(sF,St(e,{format:u,type:e.type,ref:i,"onUpdate:modelValue":s}),{default:f=>q(c,f,null),"range-separator":r["range-separator"]})}}});const _y=L0e;_y.install=e=>{e.component(_y.name,_y)};const R0e=_y,FM=Symbol("elDescriptions");var nh=ne({name:"ElDescriptionsCell",props:{cell:{type:Object},tag:{type:String},type:{type:String}},setup(){return{descriptions:Ge(FM,{})}},render(){var e,t,n,r,a,i;const o=ble(this.cell),{border:s,direction:l}=this.descriptions,u=l==="vertical",c=((n=(t=(e=this.cell)==null?void 0:e.children)==null?void 0:t.label)==null?void 0:n.call(t))||o.label,f=(i=(a=(r=this.cell)==null?void 0:r.children)==null?void 0:a.default)==null?void 0:i.call(a),d=o.span,h=o.align?`is-${o.align}`:"",v=o.labelAlign?`is-${o.labelAlign}`:h,p=o.className,g=o.labelClassName,m={width:On(o.width),minWidth:On(o.minWidth)},b=Me("descriptions");switch(this.type){case"label":return Ze(this.tag,{style:m,class:[b.e("cell"),b.e("label"),b.is("bordered-label",s),b.is("vertical-label",u),v,g],colSpan:u?d:1},c);case"content":return Ze(this.tag,{style:m,class:[b.e("cell"),b.e("content"),b.is("bordered-content",s),b.is("vertical-content",u),h,p],colSpan:u?d:d*2-1},f);default:return Ze("td",{style:m,class:[b.e("cell"),h],colSpan:d},[Kn(c)?void 0:Ze("span",{class:[b.e("label"),g]},c),Ze("span",{class:[b.e("content"),p]},f)])}}});const O0e=Le({row:{type:Array,default:()=>[]}}),$0e={key:1},N0e=ne({name:"ElDescriptionsRow"}),B0e=ne({...N0e,props:O0e,setup(e){const t=Ge(FM,{});return(n,r)=>y(t).direction==="vertical"?(R(),K(je,{key:0},[Y("tr",null,[(R(!0),K(je,null,Ot(n.row,(a,i)=>(R(),ce(y(nh),{key:`tr1-${i}`,cell:a,tag:"th",type:"label"},null,8,["cell"]))),128))]),Y("tr",null,[(R(!0),K(je,null,Ot(n.row,(a,i)=>(R(),ce(y(nh),{key:`tr2-${i}`,cell:a,tag:"td",type:"content"},null,8,["cell"]))),128))])],64)):(R(),K("tr",$0e,[(R(!0),K(je,null,Ot(n.row,(a,i)=>(R(),K(je,{key:`tr3-${i}`},[y(t).border?(R(),K(je,{key:0},[q(y(nh),{cell:a,tag:"td",type:"label"},null,8,["cell"]),q(y(nh),{cell:a,tag:"td",type:"content"},null,8,["cell"])],64)):(R(),ce(y(nh),{key:1,cell:a,tag:"td",type:"both"},null,8,["cell"]))],64))),128))]))}});var V0e=Pe(B0e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/descriptions-row.vue"]]);const z0e=Le({border:{type:Boolean,default:!1},column:{type:Number,default:3},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},size:Sr,title:{type:String,default:""},extra:{type:String,default:""}}),F0e=ne({name:"ElDescriptions"}),H0e=ne({...F0e,props:z0e,setup(e){const t=e,n=Me("descriptions"),r=qn(),a=Mr();Et(FM,t);const i=P(()=>[n.b(),n.m(r.value)]),o=(l,u,c,f=!1)=>(l.props||(l.props={}),u>c&&(l.props.span=c),f&&(l.props.span=u),l),s=()=>{var l;const u=Af((l=a.default)==null?void 0:l.call(a)).filter(v=>{var p;return((p=v==null?void 0:v.type)==null?void 0:p.name)==="ElDescriptionsItem"}),c=[];let f=[],d=t.column,h=0;return u.forEach((v,p)=>{var g;const m=((g=v.props)==null?void 0:g.span)||1;if(p<u.length-1&&(h+=m>d?d:m),p===u.length-1){const b=t.column-h%t.column;f.push(o(v,b,d,!0)),c.push(f);return}m<d?(d-=m,f.push(v)):(f.push(o(v,m,d)),c.push(f),d=t.column,f=[])}),c};return(l,u)=>(R(),K("div",{class:V(y(i))},[l.title||l.extra||l.$slots.title||l.$slots.extra?(R(),K("div",{key:0,class:V(y(n).e("header"))},[Y("div",{class:V(y(n).e("title"))},[_e(l.$slots,"title",{},()=>[Ut(De(l.title),1)])],2),Y("div",{class:V(y(n).e("extra"))},[_e(l.$slots,"extra",{},()=>[Ut(De(l.extra),1)])],2)],2)):se("v-if",!0),Y("div",{class:V(y(n).e("body"))},[Y("table",{class:V([y(n).e("table"),y(n).is("bordered",l.border)])},[Y("tbody",null,[(R(!0),K(je,null,Ot(s(),(c,f)=>(R(),ce(V0e,{key:f,row:c},null,8,["row"]))),128))])],2)],2)],2))}});var G0e=Pe(H0e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/description.vue"]]),r8=ne({name:"ElDescriptionsItem",props:{label:{type:String,default:""},span:{type:Number,default:1},width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},align:{type:String,default:"left"},labelAlign:{type:String,default:""},className:{type:String,default:""},labelClassName:{type:String,default:""}}});const W0e=_t(G0e,{DescriptionsItem:r8}),K0e=Dn(r8),U0e=Le({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:ue([String,Array,Object])},zIndex:{type:ue([String,Number])}}),Y0e={click:e=>e instanceof MouseEvent},j0e="overlay";var q0e=ne({name:"ElOverlay",props:U0e,emits:Y0e,setup(e,{slots:t,emit:n}){const r=Me(j0e),a=l=>{n("click",l)},{onClick:i,onMousedown:o,onMouseup:s}=CM(e.customMaskEvent?void 0:a);return()=>e.mask?q("div",{class:[r.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:i,onMousedown:o,onMouseup:s},[_e(t,"default")],Ga.STYLE|Ga.CLASS|Ga.PROPS,["onClick","onMouseup","onMousedown"]):Ze("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[_e(t,"default")])}});const HM=q0e,a8=Symbol("dialogInjectionKey"),i8=Le({center:Boolean,alignCenter:Boolean,closeIcon:{type:fn},customClass:{type:String,default:""},draggable:Boolean,fullscreen:Boolean,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),X0e={close:()=>!0},Z0e=["aria-level"],J0e=["aria-label"],Q0e=["id"],ebe=ne({name:"ElDialogContent"}),tbe=ne({...ebe,props:i8,emits:X0e,setup(e){const t=e,{t:n}=Ht(),{Close:r}=K5,{dialogRef:a,headerRef:i,bodyId:o,ns:s,style:l}=Ge(a8),{focusTrapRef:u}=Ge(PM),c=P(()=>[s.b(),s.is("fullscreen",t.fullscreen),s.is("draggable",t.draggable),s.is("align-center",t.alignCenter),{[s.m("center")]:t.center},t.customClass]),f=Ub(u,a),d=P(()=>t.draggable);return Y5(a,i,d),(h,v)=>(R(),K("div",{ref:y(f),class:V(y(c)),style:Ye(y(l)),tabindex:"-1"},[Y("header",{ref_key:"headerRef",ref:i,class:V(y(s).e("header"))},[_e(h.$slots,"header",{},()=>[Y("span",{role:"heading","aria-level":h.ariaLevel,class:V(y(s).e("title"))},De(h.title),11,Z0e)]),h.showClose?(R(),K("button",{key:0,"aria-label":y(n)("el.dialog.close"),class:V(y(s).e("headerbtn")),type:"button",onClick:v[0]||(v[0]=p=>h.$emit("close"))},[q(y(Ke),{class:V(y(s).e("close"))},{default:re(()=>[(R(),ce(Ct(h.closeIcon||y(r))))]),_:1},8,["class"])],10,J0e)):se("v-if",!0)],2),Y("div",{id:y(o),class:V(y(s).e("body"))},[_e(h.$slots,"default")],10,Q0e),h.$slots.footer?(R(),K("footer",{key:0,class:V(y(s).e("footer"))},[_e(h.$slots,"footer")],2)):se("v-if",!0)],6))}});var nbe=Pe(tbe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog-content.vue"]]);const o8=Le({...i8,appendToBody:Boolean,beforeClose:{type:ue(Function)},destroyOnClose:Boolean,closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:Boolean,modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1},headerAriaLevel:{type:String,default:"2"}}),s8={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[wt]:e=>Un(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},l8=(e,t)=>{const r=gt().emit,{nextZIndex:a}=Md();let i="";const o=oi(),s=oi(),l=H(!1),u=H(!1),c=H(!1),f=H(e.zIndex||a());let d,h;const v=e1("namespace",av),p=P(()=>{const L={},B=`--${v.value}-dialog`;return e.fullscreen||(e.top&&(L[`${B}-margin-top`]=e.top),e.width&&(L[`${B}-width`]=On(e.width))),L}),g=P(()=>e.alignCenter?{display:"flex"}:{});function m(){r("opened")}function b(){r("closed"),r(wt,!1),e.destroyOnClose&&(c.value=!1)}function _(){r("close")}function w(){h==null||h(),d==null||d(),e.openDelay&&e.openDelay>0?{stop:d}=ac(()=>T(),e.openDelay):T()}function C(){d==null||d(),h==null||h(),e.closeDelay&&e.closeDelay>0?{stop:h}=ac(()=>M(),e.closeDelay):M()}function S(){function L(B){B||(u.value=!0,l.value=!1)}e.beforeClose?e.beforeClose(L):C()}function x(){e.closeOnClickModal&&S()}function T(){Vt&&(l.value=!0)}function M(){l.value=!1}function A(){r("openAutoFocus")}function k(){r("closeAutoFocus")}function E(L){var B;((B=L.detail)==null?void 0:B.focusReason)==="pointer"&&L.preventDefault()}e.lockScroll&&X5(l);function D(){e.closeOnPressEscape&&S()}return xe(()=>e.modelValue,L=>{L?(u.value=!1,w(),c.value=!0,f.value=e.zIndex?f.value++:a(),Ue(()=>{r("open"),t.value&&(t.value.scrollTop=0)})):l.value&&C()}),xe(()=>e.fullscreen,L=>{t.value&&(L?(i=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=i)}),yt(()=>{e.modelValue&&(l.value=!0,c.value=!0,w())}),{afterEnter:m,afterLeave:b,beforeLeave:_,handleClose:S,onModalClick:x,close:C,doClose:M,onOpenAutoFocus:A,onCloseAutoFocus:k,onCloseRequested:D,onFocusoutPrevented:E,titleId:o,bodyId:s,closed:u,style:p,overlayDialogStyle:g,rendered:c,visible:l,zIndex:f}},rbe=["aria-label","aria-labelledby","aria-describedby"],abe=ne({name:"ElDialog",inheritAttrs:!1}),ibe=ne({...abe,props:o8,emits:s8,setup(e,{expose:t}){const n=e,r=Mr();bo({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},P(()=>!!r.title)),bo({scope:"el-dialog",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/dialog.html#attributes",type:"Attribute"},P(()=>!!n.customClass));const a=Me("dialog"),i=H(),o=H(),s=H(),{visible:l,titleId:u,bodyId:c,style:f,overlayDialogStyle:d,rendered:h,zIndex:v,afterEnter:p,afterLeave:g,beforeLeave:m,handleClose:b,onModalClick:_,onOpenAutoFocus:w,onCloseAutoFocus:C,onCloseRequested:S,onFocusoutPrevented:x}=l8(n,i);Et(a8,{dialogRef:i,headerRef:o,bodyId:c,ns:a,rendered:h,style:f});const T=CM(_),M=P(()=>n.draggable&&!n.fullscreen);return t({visible:l,dialogContentRef:s}),(A,k)=>(R(),ce(Wp,{to:"body",disabled:!A.appendToBody},[q(Bn,{name:"dialog-fade",onAfterEnter:y(p),onAfterLeave:y(g),onBeforeLeave:y(m),persisted:""},{default:re(()=>[dt(q(y(HM),{"custom-mask-event":"",mask:A.modal,"overlay-class":A.modalClass,"z-index":y(v)},{default:re(()=>[Y("div",{role:"dialog","aria-modal":"true","aria-label":A.title||void 0,"aria-labelledby":A.title?void 0:y(u),"aria-describedby":y(c),class:V(`${y(a).namespace.value}-overlay-dialog`),style:Ye(y(d)),onClick:k[0]||(k[0]=(...E)=>y(T).onClick&&y(T).onClick(...E)),onMousedown:k[1]||(k[1]=(...E)=>y(T).onMousedown&&y(T).onMousedown(...E)),onMouseup:k[2]||(k[2]=(...E)=>y(T).onMouseup&&y(T).onMouseup(...E))},[q(y(r1),{loop:"",trapped:y(l),"focus-start-el":"container",onFocusAfterTrapped:y(w),onFocusAfterReleased:y(C),onFocusoutPrevented:y(x),onReleaseRequested:y(S)},{default:re(()=>[y(h)?(R(),ce(nbe,St({key:0,ref_key:"dialogContentRef",ref:s},A.$attrs,{"custom-class":A.customClass,center:A.center,"align-center":A.alignCenter,"close-icon":A.closeIcon,draggable:y(M),fullscreen:A.fullscreen,"show-close":A.showClose,title:A.title,"aria-level":A.headerAriaLevel,onClose:y(b)}),Jo({header:re(()=>[A.$slots.title?_e(A.$slots,"title",{key:1}):_e(A.$slots,"header",{key:0,close:y(b),titleId:y(u),titleClass:y(a).e("title")})]),default:re(()=>[_e(A.$slots,"default")]),_:2},[A.$slots.footer?{name:"footer",fn:re(()=>[_e(A.$slots,"footer")])}:void 0]),1040,["custom-class","center","align-center","close-icon","draggable","fullscreen","show-close","title","aria-level","onClose"])):se("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,rbe)]),_:3},8,["mask","overlay-class","z-index"]),[[Kt,y(l)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"]))}});var obe=Pe(ibe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog.vue"]]);const sbe=_t(obe),lbe=Le({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:ue(String),default:"solid"}}),ube=ne({name:"ElDivider"}),cbe=ne({...ube,props:lbe,setup(e){const t=e,n=Me("divider"),r=P(()=>n.cssVar({"border-style":t.borderStyle}));return(a,i)=>(R(),K("div",{class:V([y(n).b(),y(n).m(a.direction)]),style:Ye(y(r)),role:"separator"},[a.$slots.default&&a.direction!=="vertical"?(R(),K("div",{key:0,class:V([y(n).e("text"),y(n).is(a.contentPosition)])},[_e(a.$slots,"default")],2)):se("v-if",!0)],6))}});var fbe=Pe(cbe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/divider/src/divider.vue"]]);const u8=_t(fbe),dbe=Le({...o8,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0},headerAriaLevel:{type:String,default:"2"}}),hbe=s8,vbe=ne({name:"ElDrawer",components:{ElOverlay:HM,ElFocusTrap:r1,ElIcon:Ke,Close:Bi},inheritAttrs:!1,props:dbe,emits:hbe,setup(e,{slots:t}){bo({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},P(()=>!!t.title)),bo({scope:"el-drawer",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/drawer.html#attributes",type:"Attribute"},P(()=>!!e.customClass));const n=H(),r=H(),a=Me("drawer"),{t:i}=Ht(),o=P(()=>e.direction==="rtl"||e.direction==="ltr"),s=P(()=>On(e.size));return{...l8(e,n),drawerRef:n,focusStartRef:r,isHorizontal:o,drawerSize:s,ns:a,t:i}}}),pbe=["aria-label","aria-labelledby","aria-describedby"],gbe=["id","aria-level"],mbe=["aria-label"],ybe=["id"];function bbe(e,t,n,r,a,i){const o=ct("close"),s=ct("el-icon"),l=ct("el-focus-trap"),u=ct("el-overlay");return R(),ce(Wp,{to:"body",disabled:!e.appendToBody},[q(Bn,{name:e.ns.b("fade"),onAfterEnter:e.afterEnter,onAfterLeave:e.afterLeave,onBeforeLeave:e.beforeLeave,persisted:""},{default:re(()=>[dt(q(u,{mask:e.modal,"overlay-class":e.modalClass,"z-index":e.zIndex,onClick:e.onModalClick},{default:re(()=>[q(l,{loop:"",trapped:e.visible,"focus-trap-el":e.drawerRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:re(()=>[Y("div",St({ref:"drawerRef","aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:e.titleId,"aria-describedby":e.bodyId},e.$attrs,{class:[e.ns.b(),e.direction,e.visible&&"open",e.customClass],style:e.isHorizontal?"width: "+e.drawerSize:"height: "+e.drawerSize,role:"dialog",onClick:t[1]||(t[1]=tt(()=>{},["stop"]))}),[Y("span",{ref:"focusStartRef",class:V(e.ns.e("sr-focus")),tabindex:"-1"},null,2),e.withHeader?(R(),K("header",{key:0,class:V(e.ns.e("header"))},[e.$slots.title?_e(e.$slots,"title",{key:1},()=>[se(" DEPRECATED SLOT ")]):_e(e.$slots,"header",{key:0,close:e.handleClose,titleId:e.titleId,titleClass:e.ns.e("title")},()=>[e.$slots.title?se("v-if",!0):(R(),K("span",{key:0,id:e.titleId,role:"heading","aria-level":e.headerAriaLevel,class:V(e.ns.e("title"))},De(e.title),11,gbe))]),e.showClose?(R(),K("button",{key:2,"aria-label":e.t("el.drawer.close"),class:V(e.ns.e("close-btn")),type:"button",onClick:t[0]||(t[0]=(...c)=>e.handleClose&&e.handleClose(...c))},[q(s,{class:V(e.ns.e("close"))},{default:re(()=>[q(o)]),_:1},8,["class"])],10,mbe)):se("v-if",!0)],2)):se("v-if",!0),e.rendered?(R(),K("div",{key:1,id:e.bodyId,class:V(e.ns.e("body"))},[_e(e.$slots,"default")],10,ybe)):se("v-if",!0),e.$slots.footer?(R(),K("div",{key:2,class:V(e.ns.e("footer"))},[_e(e.$slots,"footer")],2)):se("v-if",!0)],16,pbe)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[Kt,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"])}var _be=Pe(vbe,[["render",bbe],["__file","/home/runner/work/element-plus/element-plus/packages/components/drawer/src/drawer.vue"]]);const wbe=_t(_be),Sbe=ne({inheritAttrs:!1});function Cbe(e,t,n,r,a,i){return _e(e.$slots,"default")}var xbe=Pe(Sbe,[["render",Cbe],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);const Tbe=ne({name:"ElCollectionItem",inheritAttrs:!1});function Mbe(e,t,n,r,a,i){return _e(e.$slots,"default")}var kbe=Pe(Tbe,[["render",Mbe],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);const c8="data-el-collection-item",f8=e=>{const t=`El${e}Collection`,n=`${t}Item`,r=Symbol(t),a=Symbol(n),i={...xbe,name:t,setup(){const s=H(null),l=new Map;Et(r,{itemMap:l,getItems:()=>{const c=y(s);if(!c)return[];const f=Array.from(c.querySelectorAll(`[${c8}]`));return[...l.values()].sort((h,v)=>f.indexOf(h.ref)-f.indexOf(v.ref))},collectionRef:s})}},o={...kbe,name:n,setup(s,{attrs:l}){const u=H(null),c=Ge(r,void 0);Et(a,{collectionItemRef:u}),yt(()=>{const f=y(u);f&&c.itemMap.set(f,{ref:f,...l})}),wn(()=>{const f=y(u);c.itemMap.delete(f)})}};return{COLLECTION_INJECTION_KEY:r,COLLECTION_ITEM_INJECTION_KEY:a,ElCollection:i,ElCollectionItem:o}},Abe=Le({style:{type:ue([String,Array,Object])},currentTabId:{type:ue(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:ue(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:Ebe,ElCollectionItem:Ibe,COLLECTION_INJECTION_KEY:GM,COLLECTION_ITEM_INJECTION_KEY:Dbe}=f8("RovingFocusGroup"),WM=Symbol("elRovingFocusGroup"),d8=Symbol("elRovingFocusGroupItem"),Pbe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},Lbe=(e,t)=>{if(t!=="rtl")return e;switch(e){case Xe.right:return Xe.left;case Xe.left:return Xe.right;default:return e}},Rbe=(e,t,n)=>{const r=Lbe(e.key,n);if(!(t==="vertical"&&[Xe.left,Xe.right].includes(r))&&!(t==="horizontal"&&[Xe.up,Xe.down].includes(r)))return Pbe[r]},Obe=(e,t)=>e.map((n,r)=>e[(r+t)%e.length]),KM=e=>{const{activeElement:t}=document;for(const n of e)if(n===t||(n.focus(),t!==document.activeElement))return},FP="currentTabIdChange",HP="rovingFocusGroup.entryFocus",$be={bubbles:!1,cancelable:!0},Nbe=ne({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:Abe,emits:[FP,"entryFocus"],setup(e,{emit:t}){var n;const r=H((n=e.currentTabId||e.defaultCurrentTabId)!=null?n:null),a=H(!1),i=H(!1),o=H(null),{getItems:s}=Ge(GM,void 0),l=P(()=>[{outline:"none"},e.style]),u=p=>{t(FP,p)},c=()=>{a.value=!0},f=In(p=>{var g;(g=e.onMousedown)==null||g.call(e,p)},()=>{i.value=!0}),d=In(p=>{var g;(g=e.onFocus)==null||g.call(e,p)},p=>{const g=!y(i),{target:m,currentTarget:b}=p;if(m===b&&g&&!y(a)){const _=new Event(HP,$be);if(b==null||b.dispatchEvent(_),!_.defaultPrevented){const w=s().filter(M=>M.focusable),C=w.find(M=>M.active),S=w.find(M=>M.id===y(r)),T=[C,S,...w].filter(Boolean).map(M=>M.ref);KM(T)}}i.value=!1}),h=In(p=>{var g;(g=e.onBlur)==null||g.call(e,p)},()=>{a.value=!1}),v=(...p)=>{t("entryFocus",...p)};Et(WM,{currentTabbedId:wd(r),loop:kn(e,"loop"),tabIndex:P(()=>y(a)?-1:0),rovingFocusGroupRef:o,rovingFocusGroupRootStyle:l,orientation:kn(e,"orientation"),dir:kn(e,"dir"),onItemFocus:u,onItemShiftTab:c,onBlur:h,onFocus:d,onMousedown:f}),xe(()=>e.currentTabId,p=>{r.value=p??null}),bn(o,HP,v)}});function Bbe(e,t,n,r,a,i){return _e(e.$slots,"default")}var Vbe=Pe(Nbe,[["render",Bbe],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group-impl.vue"]]);const zbe=ne({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:Ebe,ElRovingFocusGroupImpl:Vbe}});function Fbe(e,t,n,r,a,i){const o=ct("el-roving-focus-group-impl"),s=ct("el-focus-group-collection");return R(),ce(s,null,{default:re(()=>[q(o,Mi(Lb(e.$attrs)),{default:re(()=>[_e(e.$slots,"default")]),_:3},16)]),_:3})}var Hbe=Pe(zbe,[["render",Fbe],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group.vue"]]);const Gbe=ne({components:{ElRovingFocusCollectionItem:Ibe},props:{focusable:{type:Boolean,default:!0},active:{type:Boolean,default:!1}},emits:["mousedown","focus","keydown"],setup(e,{emit:t}){const{currentTabbedId:n,loop:r,onItemFocus:a,onItemShiftTab:i}=Ge(WM,void 0),{getItems:o}=Ge(GM,void 0),s=oi(),l=H(null),u=In(h=>{t("mousedown",h)},h=>{e.focusable?a(y(s)):h.preventDefault()}),c=In(h=>{t("focus",h)},()=>{a(y(s))}),f=In(h=>{t("keydown",h)},h=>{const{key:v,shiftKey:p,target:g,currentTarget:m}=h;if(v===Xe.tab&&p){i();return}if(g!==m)return;const b=Rbe(h);if(b){h.preventDefault();let w=o().filter(C=>C.focusable).map(C=>C.ref);switch(b){case"last":{w.reverse();break}case"prev":case"next":{b==="prev"&&w.reverse();const C=w.indexOf(m);w=r.value?Obe(w,C+1):w.slice(C+1);break}}Ue(()=>{KM(w)})}}),d=P(()=>n.value===y(s));return Et(d8,{rovingFocusGroupItemRef:l,tabIndex:P(()=>y(d)?0:-1),handleMousedown:u,handleFocus:c,handleKeydown:f}),{id:s,handleKeydown:f,handleFocus:c,handleMousedown:u}}});function Wbe(e,t,n,r,a,i){const o=ct("el-roving-focus-collection-item");return R(),ce(o,{id:e.id,focusable:e.focusable,active:e.active},{default:re(()=>[_e(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var Kbe=Pe(Gbe,[["render",Wbe],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-item.vue"]]);const wy=Le({trigger:Jv.trigger,effect:{...cr.effect,default:"light"},type:{type:ue(String)},placement:{type:ue(String),default:"bottom"},popperOptions:{type:ue(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:ue([Number,String]),default:0},maxHeight:{type:ue([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:ue(Object)},teleported:cr.teleported}),h8=Le({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:fn}}),Ube=Le({onKeydown:{type:ue(Function)}}),Ybe=[Xe.down,Xe.pageDown,Xe.home],v8=[Xe.up,Xe.pageUp,Xe.end],jbe=[...Ybe,...v8],{ElCollection:qbe,ElCollectionItem:Xbe,COLLECTION_INJECTION_KEY:Zbe,COLLECTION_ITEM_INJECTION_KEY:Jbe}=f8("Dropdown"),o1=Symbol("elDropdown"),{ButtonGroup:Qbe}=_r,e1e=ne({name:"ElDropdown",components:{ElButton:_r,ElButtonGroup:Qbe,ElScrollbar:hs,ElDropdownCollection:qbe,ElTooltip:ea,ElRovingFocusGroup:Hbe,ElOnlyChild:Vz,ElIcon:Ke,ArrowDown:Tl},props:wy,emits:["visible-change","click","command"],setup(e,{emit:t}){const n=gt(),r=Me("dropdown"),{t:a}=Ht(),i=H(),o=H(),s=H(null),l=H(null),u=H(null),c=H(null),f=H(!1),d=[Xe.enter,Xe.space,Xe.down],h=P(()=>({maxHeight:On(e.maxHeight)})),v=P(()=>[r.m(C.value)]),p=P(()=>oc(e.trigger)),g=oi().value,m=P(()=>e.id||g);xe([i,p],([O,$],[I])=>{var z,G,U;(z=I==null?void 0:I.$el)!=null&&z.removeEventListener&&I.$el.removeEventListener("pointerenter",x),(G=O==null?void 0:O.$el)!=null&&G.removeEventListener&&O.$el.removeEventListener("pointerenter",x),(U=O==null?void 0:O.$el)!=null&&U.addEventListener&&$.includes("hover")&&O.$el.addEventListener("pointerenter",x)},{immediate:!0}),wn(()=>{var O,$;($=(O=i.value)==null?void 0:O.$el)!=null&&$.removeEventListener&&i.value.$el.removeEventListener("pointerenter",x)});function b(){_()}function _(){var O;(O=s.value)==null||O.onClose()}function w(){var O;(O=s.value)==null||O.onOpen()}const C=qn();function S(...O){t("command",...O)}function x(){var O,$;($=(O=i.value)==null?void 0:O.$el)==null||$.focus()}function T(){}function M(){const O=y(l);p.value.includes("hover")&&(O==null||O.focus()),c.value=null}function A(O){c.value=O}function k(O){f.value||(O.preventDefault(),O.stopImmediatePropagation())}function E(){t("visible-change",!0)}function D(O){(O==null?void 0:O.type)==="keydown"&&l.value.focus()}function L(){t("visible-change",!1)}return Et(o1,{contentRef:l,role:P(()=>e.role),triggerId:m,isUsingKeyboard:f,onItemEnter:T,onItemLeave:M}),Et("elDropdown",{instance:n,dropdownSize:C,handleClick:b,commandHandler:S,trigger:kn(e,"trigger"),hideOnClick:kn(e,"hideOnClick")}),{t:a,ns:r,scrollbar:u,wrapStyle:h,dropdownTriggerKls:v,dropdownSize:C,triggerId:m,triggerKeys:d,currentTabId:c,handleCurrentTabIdChange:A,handlerMainButtonClick:O=>{t("click",O)},handleEntryFocus:k,handleClose:_,handleOpen:w,handleBeforeShowTooltip:E,handleShowTooltip:D,handleBeforeHideTooltip:L,onFocusAfterTrapped:O=>{var $,I;O.preventDefault(),(I=($=l.value)==null?void 0:$.focus)==null||I.call($,{preventScroll:!0})},popperRef:s,contentRef:l,triggeringElementRef:i,referenceElementRef:o}}});function t1e(e,t,n,r,a,i){var o;const s=ct("el-dropdown-collection"),l=ct("el-roving-focus-group"),u=ct("el-scrollbar"),c=ct("el-only-child"),f=ct("el-tooltip"),d=ct("el-button"),h=ct("arrow-down"),v=ct("el-icon"),p=ct("el-button-group");return R(),K("div",{class:V([e.ns.b(),e.ns.is("disabled",e.disabled)])},[q(f,{ref:"popperRef",role:e.role,effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,"hide-after":e.trigger==="hover"?e.hideTimeout:0,"manual-mode":!0,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"reference-element":(o=e.referenceElementRef)==null?void 0:o.$el,trigger:e.trigger,"trigger-keys":e.triggerKeys,"trigger-target-el":e.contentRef,"show-after":e.trigger==="hover"?e.showTimeout:0,"stop-popper-mouse-event":!1,"virtual-ref":e.triggeringElementRef,"virtual-triggering":e.splitButton,disabled:e.disabled,transition:`${e.ns.namespace.value}-zoom-in-top`,teleported:e.teleported,pure:"",persistent:"",onBeforeShow:e.handleBeforeShowTooltip,onShow:e.handleShowTooltip,onBeforeHide:e.handleBeforeHideTooltip},Jo({content:re(()=>[q(u,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:re(()=>[q(l,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange,onEntryFocus:e.handleEntryFocus},{default:re(()=>[q(s,null,{default:re(()=>[_e(e.$slots,"dropdown")]),_:3})]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange","onEntryFocus"])]),_:3},8,["wrap-style","view-class"])]),_:2},[e.splitButton?void 0:{name:"default",fn:re(()=>[q(c,{id:e.triggerId,ref:"triggeringElementRef",role:"button",tabindex:e.tabindex},{default:re(()=>[_e(e.$slots,"default")]),_:3},8,["id","tabindex"])])}]),1032,["role","effect","popper-options","hide-after","placement","popper-class","reference-element","trigger","trigger-keys","trigger-target-el","show-after","virtual-ref","virtual-triggering","disabled","transition","teleported","onBeforeShow","onShow","onBeforeHide"]),e.splitButton?(R(),ce(p,{key:0},{default:re(()=>[q(d,St({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:re(()=>[_e(e.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),q(d,St({id:e.triggerId,ref:"triggeringElementRef"},e.buttonProps,{role:"button",size:e.dropdownSize,type:e.type,class:e.ns.e("caret-button"),disabled:e.disabled,tabindex:e.tabindex,"aria-label":e.t("el.dropdown.toggleDropdown")}),{default:re(()=>[q(v,{class:V(e.ns.e("icon"))},{default:re(()=>[q(h)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):se("v-if",!0)],2)}var n1e=Pe(e1e,[["render",t1e],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown.vue"]]);const r1e=ne({name:"DropdownItemImpl",components:{ElIcon:Ke},props:h8,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const n=Me("dropdown"),{role:r}=Ge(o1,void 0),{collectionItemRef:a}=Ge(Jbe,void 0),{collectionItemRef:i}=Ge(Dbe,void 0),{rovingFocusGroupItemRef:o,tabIndex:s,handleFocus:l,handleKeydown:u,handleMousedown:c}=Ge(d8,void 0),f=Ub(a,i,o),d=P(()=>r.value==="menu"?"menuitem":r.value==="navigation"?"link":"button"),h=In(v=>{const{code:p}=v;if(p===Xe.enter||p===Xe.space)return v.preventDefault(),v.stopImmediatePropagation(),t("clickimpl",v),!0},u);return{ns:n,itemRef:f,dataset:{[c8]:""},role:d,tabIndex:s,handleFocus:l,handleKeydown:h,handleMousedown:c}}}),a1e=["aria-disabled","tabindex","role"];function i1e(e,t,n,r,a,i){const o=ct("el-icon");return R(),K(je,null,[e.divided?(R(),K("li",St({key:0,role:"separator",class:e.ns.bem("menu","item","divided")},e.$attrs),null,16)):se("v-if",!0),Y("li",St({ref:e.itemRef},{...e.dataset,...e.$attrs},{"aria-disabled":e.disabled,class:[e.ns.be("menu","item"),e.ns.is("disabled",e.disabled)],tabindex:e.tabIndex,role:e.role,onClick:t[0]||(t[0]=s=>e.$emit("clickimpl",s)),onFocus:t[1]||(t[1]=(...s)=>e.handleFocus&&e.handleFocus(...s)),onKeydown:t[2]||(t[2]=tt((...s)=>e.handleKeydown&&e.handleKeydown(...s),["self"])),onMousedown:t[3]||(t[3]=(...s)=>e.handleMousedown&&e.handleMousedown(...s)),onPointermove:t[4]||(t[4]=s=>e.$emit("pointermove",s)),onPointerleave:t[5]||(t[5]=s=>e.$emit("pointerleave",s))}),[e.icon?(R(),ce(o,{key:0},{default:re(()=>[(R(),ce(Ct(e.icon)))]),_:1})):se("v-if",!0),_e(e.$slots,"default")],16,a1e)],64)}var o1e=Pe(r1e,[["render",i1e],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item-impl.vue"]]);const p8=()=>{const e=Ge("elDropdown",{}),t=P(()=>e==null?void 0:e.dropdownSize);return{elDropdown:e,_elDropdownSize:t}},s1e=ne({name:"ElDropdownItem",components:{ElDropdownCollectionItem:Xbe,ElRovingFocusItem:Kbe,ElDropdownItemImpl:o1e},inheritAttrs:!1,props:h8,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:n}){const{elDropdown:r}=p8(),a=gt(),i=H(null),o=P(()=>{var h,v;return(v=(h=y(i))==null?void 0:h.textContent)!=null?v:""}),{onItemEnter:s,onItemLeave:l}=Ge(o1,void 0),u=In(h=>(t("pointermove",h),h.defaultPrevented),HI(h=>{if(e.disabled){l(h);return}const v=h.currentTarget;v===document.activeElement||v.contains(document.activeElement)||(s(h),h.defaultPrevented||v==null||v.focus())})),c=In(h=>(t("pointerleave",h),h.defaultPrevented),HI(h=>{l(h)})),f=In(h=>{if(!e.disabled)return t("click",h),h.type!=="keydown"&&h.defaultPrevented},h=>{var v,p,g;if(e.disabled){h.stopImmediatePropagation();return}(v=r==null?void 0:r.hideOnClick)!=null&&v.value&&((p=r.handleClick)==null||p.call(r)),(g=r.commandHandler)==null||g.call(r,e.command,a,h)}),d=P(()=>({...e,...n}));return{handleClick:f,handlePointerMove:u,handlePointerLeave:c,textContent:o,propsAndAttrs:d}}});function l1e(e,t,n,r,a,i){var o;const s=ct("el-dropdown-item-impl"),l=ct("el-roving-focus-item"),u=ct("el-dropdown-collection-item");return R(),ce(u,{disabled:e.disabled,"text-value":(o=e.textValue)!=null?o:e.textContent},{default:re(()=>[q(l,{focusable:!e.disabled},{default:re(()=>[q(s,St(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),{default:re(()=>[_e(e.$slots,"default")]),_:3},16,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])]),_:3},8,["disabled","text-value"])}var g8=Pe(s1e,[["render",l1e],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item.vue"]]);const u1e=ne({name:"ElDropdownMenu",props:Ube,setup(e){const t=Me("dropdown"),{_elDropdownSize:n}=p8(),r=n.value,{focusTrapRef:a,onKeydown:i}=Ge(PM,void 0),{contentRef:o,role:s,triggerId:l}=Ge(o1,void 0),{collectionRef:u,getItems:c}=Ge(Zbe,void 0),{rovingFocusGroupRef:f,rovingFocusGroupRootStyle:d,tabIndex:h,onBlur:v,onFocus:p,onMousedown:g}=Ge(WM,void 0),{collectionRef:m}=Ge(GM,void 0),b=P(()=>[t.b("menu"),t.bm("menu",r==null?void 0:r.value)]),_=Ub(o,u,a,f,m),w=In(S=>{var x;(x=e.onKeydown)==null||x.call(e,S)},S=>{const{currentTarget:x,code:T,target:M}=S;if(x.contains(M),Xe.tab===T&&S.stopImmediatePropagation(),S.preventDefault(),M!==y(o)||!jbe.includes(T))return;const k=c().filter(E=>!E.disabled).map(E=>E.ref);v8.includes(T)&&k.reverse(),KM(k)});return{size:r,rovingFocusGroupRootStyle:d,tabIndex:h,dropdownKls:b,role:s,triggerId:l,dropdownListWrapperRef:_,handleKeydown:S=>{w(S),i(S)},onBlur:v,onFocus:p,onMousedown:g}}}),c1e=["role","aria-labelledby"];function f1e(e,t,n,r,a,i){return R(),K("ul",{ref:e.dropdownListWrapperRef,class:V(e.dropdownKls),style:Ye(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,onBlur:t[0]||(t[0]=(...o)=>e.onBlur&&e.onBlur(...o)),onFocus:t[1]||(t[1]=(...o)=>e.onFocus&&e.onFocus(...o)),onKeydown:t[2]||(t[2]=tt((...o)=>e.handleKeydown&&e.handleKeydown(...o),["self"])),onMousedown:t[3]||(t[3]=tt((...o)=>e.onMousedown&&e.onMousedown(...o),["self"]))},[_e(e.$slots,"default")],46,c1e)}var m8=Pe(u1e,[["render",f1e],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-menu.vue"]]);const d1e=_t(n1e,{DropdownItem:g8,DropdownMenu:m8}),h1e=Dn(g8),v1e=Dn(m8),p1e={viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},g1e=["id"],m1e=["stop-color"],y1e=["stop-color"],b1e=["id"],_1e=["stop-color"],w1e=["stop-color"],S1e=["id"],C1e={id:"Illustrations",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},x1e={id:"B-type",transform:"translate(-1268.000000, -535.000000)"},T1e={id:"Group-2",transform:"translate(1268.000000, 535.000000)"},M1e=["fill"],k1e=["fill"],A1e={id:"Group-Copy",transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},E1e=["fill"],I1e=["fill"],D1e=["fill"],P1e=["fill"],L1e=["fill"],R1e={id:"Rectangle-Copy-17",transform:"translate(53.000000, 45.000000)"},O1e=["fill","xlink:href"],$1e=["fill","mask"],N1e=["fill"],B1e=ne({name:"ImgEmpty"}),V1e=ne({...B1e,setup(e){const t=Me("empty"),n=oi();return(r,a)=>(R(),K("svg",p1e,[Y("defs",null,[Y("linearGradient",{id:`linearGradient-1-${y(n)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[Y("stop",{"stop-color":`var(${y(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,m1e),Y("stop",{"stop-color":`var(${y(t).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,y1e)],8,g1e),Y("linearGradient",{id:`linearGradient-2-${y(n)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[Y("stop",{"stop-color":`var(${y(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,_1e),Y("stop",{"stop-color":`var(${y(t).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,w1e)],8,b1e),Y("rect",{id:`path-3-${y(n)}`,x:"0",y:"0",width:"17",height:"36"},null,8,S1e)]),Y("g",C1e,[Y("g",x1e,[Y("g",T1e,[Y("path",{id:"Oval-Copy-2",d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:`var(${y(t).cssVarBlockName("fill-color-3")})`},null,8,M1e),Y("polygon",{id:"Rectangle-Copy-14",fill:`var(${y(t).cssVarBlockName("fill-color-7")})`,transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"},null,8,k1e),Y("g",A1e,[Y("polygon",{id:"Rectangle-Copy-10",fill:`var(${y(t).cssVarBlockName("fill-color-7")})`,transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"},null,8,E1e),Y("polygon",{id:"Rectangle-Copy-11",fill:`var(${y(t).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,I1e),Y("rect",{id:"Rectangle-Copy-12",fill:`url(#linearGradient-1-${y(n)})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,D1e),Y("polygon",{id:"Rectangle-Copy-13",fill:`var(${y(t).cssVarBlockName("fill-color-2")})`,transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"},null,8,P1e)]),Y("rect",{id:"Rectangle-Copy-15",fill:`url(#linearGradient-2-${y(n)})`,x:"13",y:"45",width:"40",height:"36"},null,8,L1e),Y("g",R1e,[Y("use",{id:"Mask",fill:`var(${y(t).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${y(n)}`},null,8,O1e),Y("polygon",{id:"Rectangle-Copy",fill:`var(${y(t).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${y(n)})`,transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 7 16.5"},null,8,$1e)]),Y("polygon",{id:"Rectangle-Copy-18",fill:`var(${y(t).cssVarBlockName("fill-color-2")})`,transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"},null,8,N1e)])])])]))}});var z1e=Pe(V1e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/img-empty.vue"]]);const F1e=Le({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),H1e=["src"],G1e={key:1},W1e=ne({name:"ElEmpty"}),K1e=ne({...W1e,props:F1e,setup(e){const t=e,{t:n}=Ht(),r=Me("empty"),a=P(()=>t.description||n("el.table.emptyText")),i=P(()=>({width:On(t.imageSize)}));return(o,s)=>(R(),K("div",{class:V(y(r).b())},[Y("div",{class:V(y(r).e("image")),style:Ye(y(i))},[o.image?(R(),K("img",{key:0,src:o.image,ondragstart:"return false"},null,8,H1e)):_e(o.$slots,"image",{key:1},()=>[q(z1e)])],6),Y("div",{class:V(y(r).e("description"))},[o.$slots.description?_e(o.$slots,"description",{key:0}):(R(),K("p",G1e,De(y(a)),1))],2),o.$slots.default?(R(),K("div",{key:0,class:V(y(r).e("bottom"))},[_e(o.$slots,"default")],2)):se("v-if",!0)],2))}});var U1e=Pe(K1e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/empty.vue"]]);const y8=_t(U1e),Y1e=Le({urlList:{type:ue(Array),default:()=>Cn([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:Boolean,teleported:Boolean,closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2}}),j1e={close:()=>!0,switch:e=>at(e),rotate:e=>at(e)},q1e=["src"],X1e=ne({name:"ElImageViewer"}),Z1e=ne({...X1e,props:Y1e,emits:j1e,setup(e,{expose:t,emit:n}){const r=e,a={CONTAIN:{name:"contain",icon:Js(jie)},ORIGINAL:{name:"original",icon:Js(use)}},{t:i}=Ht(),o=Me("image-viewer"),{nextZIndex:s}=Md(),l=H(),u=H([]),c=MB(),f=H(!0),d=H(r.initialIndex),h=un(a.CONTAIN),v=H({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),p=P(()=>{const{urlList:I}=r;return I.length<=1}),g=P(()=>d.value===0),m=P(()=>d.value===r.urlList.length-1),b=P(()=>r.urlList[d.value]),_=P(()=>[o.e("btn"),o.e("prev"),o.is("disabled",!r.infinite&&g.value)]),w=P(()=>[o.e("btn"),o.e("next"),o.is("disabled",!r.infinite&&m.value)]),C=P(()=>{const{scale:I,deg:z,offsetX:G,offsetY:U,enableTransition:Z}=v.value;let ae=G/I,J=U/I;switch(z%360){case 90:case-270:[ae,J]=[J,-ae];break;case 180:case-180:[ae,J]=[-ae,-J];break;case 270:case-90:[ae,J]=[-J,ae];break}const Q={transform:`scale(${I}) rotate(${z}deg) translate(${ae}px, ${J}px)`,transition:Z?"transform .3s":""};return h.value.name===a.CONTAIN.name&&(Q.maxWidth=Q.maxHeight="100%"),Q}),S=P(()=>at(r.zIndex)?r.zIndex:s());function x(){M(),n("close")}function T(){const I=Uu(G=>{switch(G.code){case Xe.esc:r.closeOnPressEscape&&x();break;case Xe.space:L();break;case Xe.left:N();break;case Xe.up:$("zoomIn");break;case Xe.right:O();break;case Xe.down:$("zoomOut");break}}),z=Uu(G=>{const U=G.deltaY||G.deltaX;$(U<0?"zoomIn":"zoomOut",{zoomRate:r.zoomRate,enableTransition:!1})});c.run(()=>{bn(document,"keydown",I),bn(document,"wheel",z)})}function M(){c.stop()}function A(){f.value=!1}function k(I){f.value=!1,I.target.alt=i("el.image.error")}function E(I){if(f.value||I.button!==0||!l.value)return;v.value.enableTransition=!1;const{offsetX:z,offsetY:G}=v.value,U=I.pageX,Z=I.pageY,ae=Uu(Q=>{v.value={...v.value,offsetX:z+Q.pageX-U,offsetY:G+Q.pageY-Z}}),J=bn(document,"mousemove",ae);bn(document,"mouseup",()=>{J()}),I.preventDefault()}function D(){v.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function L(){if(f.value)return;const I=Uv(a),z=Object.values(a),G=h.value.name,Z=(z.findIndex(ae=>ae.name===G)+1)%I.length;h.value=a[I[Z]],D()}function B(I){const z=r.urlList.length;d.value=(I+z)%z}function N(){g.value&&!r.infinite||B(d.value-1)}function O(){m.value&&!r.infinite||B(d.value+1)}function $(I,z={}){if(f.value)return;const{zoomRate:G,rotateDeg:U,enableTransition:Z}={zoomRate:r.zoomRate,rotateDeg:90,enableTransition:!0,...z};switch(I){case"zoomOut":v.value.scale>.2&&(v.value.scale=Number.parseFloat((v.value.scale/G).toFixed(3)));break;case"zoomIn":v.value.scale<7&&(v.value.scale=Number.parseFloat((v.value.scale*G).toFixed(3)));break;case"clockwise":v.value.deg+=U,n("rotate",v.value.deg);break;case"anticlockwise":v.value.deg-=U,n("rotate",v.value.deg);break}v.value.enableTransition=Z}return xe(b,()=>{Ue(()=>{const I=u.value[0];I!=null&&I.complete||(f.value=!0)})}),xe(d,I=>{D(),n("switch",I)}),yt(()=>{var I,z;T(),(z=(I=l.value)==null?void 0:I.focus)==null||z.call(I)}),t({setActiveItem:B}),(I,z)=>(R(),ce(Wp,{to:"body",disabled:!I.teleported},[q(Bn,{name:"viewer-fade",appear:""},{default:re(()=>[Y("div",{ref_key:"wrapper",ref:l,tabindex:-1,class:V(y(o).e("wrapper")),style:Ye({zIndex:y(S)})},[Y("div",{class:V(y(o).e("mask")),onClick:z[0]||(z[0]=tt(G=>I.hideOnClickModal&&x(),["self"]))},null,2),se(" CLOSE "),Y("span",{class:V([y(o).e("btn"),y(o).e("close")]),onClick:x},[q(y(Ke),null,{default:re(()=>[q(y(Bi))]),_:1})],2),se(" ARROW "),y(p)?se("v-if",!0):(R(),K(je,{key:0},[Y("span",{class:V(y(_)),onClick:N},[q(y(Ke),null,{default:re(()=>[q(y(cl))]),_:1})],2),Y("span",{class:V(y(w)),onClick:O},[q(y(Ke),null,{default:re(()=>[q(y(jr))]),_:1})],2)],64)),se(" ACTIONS "),Y("div",{class:V([y(o).e("btn"),y(o).e("actions")])},[Y("div",{class:V(y(o).e("actions__inner"))},[q(y(Ke),{onClick:z[1]||(z[1]=G=>$("zoomOut"))},{default:re(()=>[q(y(fle))]),_:1}),q(y(Ke),{onClick:z[2]||(z[2]=G=>$("zoomIn"))},{default:re(()=>[q(y(G5))]),_:1}),Y("i",{class:V(y(o).e("actions__divider"))},null,2),q(y(Ke),{onClick:L},{default:re(()=>[(R(),ce(Ct(y(h).icon)))]),_:1}),Y("i",{class:V(y(o).e("actions__divider"))},null,2),q(y(Ke),{onClick:z[3]||(z[3]=G=>$("anticlockwise"))},{default:re(()=>[q(y(Zoe))]),_:1}),q(y(Ke),{onClick:z[4]||(z[4]=G=>$("clockwise"))},{default:re(()=>[q(y(rse))]),_:1})],2)],2),se(" CANVAS "),Y("div",{class:V(y(o).e("canvas"))},[(R(!0),K(je,null,Ot(I.urlList,(G,U)=>dt((R(),K("img",{ref_for:!0,ref:Z=>u.value[U]=Z,key:G,src:G,style:Ye(y(C)),class:V(y(o).e("img")),onLoad:A,onError:k,onMousedown:E},null,46,q1e)),[[Kt,U===d.value]])),128))],2),_e(I.$slots,"default")],6)]),_:3})],8,["disabled"]))}});var J1e=Pe(Z1e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image-viewer/src/image-viewer.vue"]]);const b8=_t(J1e),Q1e=Le({hideOnClickModal:Boolean,src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:Boolean,scrollContainer:{type:ue([String,Object])},previewSrcList:{type:ue(Array),default:()=>Cn([])},previewTeleported:Boolean,zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2}}),e_e={load:e=>e instanceof Event,error:e=>e instanceof Event,switch:e=>at(e),close:()=>!0,show:()=>!0},t_e=["src","loading"],n_e={key:0},r_e=ne({name:"ElImage",inheritAttrs:!1}),a_e=ne({...r_e,props:Q1e,emits:e_e,setup(e,{emit:t}){const n=e;let r="";const{t:a}=Ht(),i=Me("image"),o=mc(),s=hM(),l=H(),u=H(!1),c=H(!0),f=H(!1),d=H(),h=H(),v=Vt&&"loading"in HTMLImageElement.prototype;let p,g;const m=P(()=>[i.e("inner"),w.value&&i.e("preview"),c.value&&i.is("loading")]),b=P(()=>o.style),_=P(()=>{const{fit:$}=n;return Vt&&$?{objectFit:$}:{}}),w=P(()=>{const{previewSrcList:$}=n;return Array.isArray($)&&$.length>0}),C=P(()=>{const{previewSrcList:$,initialIndex:I}=n;let z=I;return I>$.length-1&&(z=0),z}),S=P(()=>n.loading==="eager"?!1:!v&&n.loading==="lazy"||n.lazy),x=()=>{Vt&&(c.value=!0,u.value=!1,l.value=n.src)};function T($){c.value=!1,u.value=!1,t("load",$)}function M($){c.value=!1,u.value=!0,t("error",$)}function A(){MZ(d.value,h.value)&&(x(),D())}const k=XV(A,200,!0);async function E(){var $;if(!Vt)return;await Ue();const{scrollContainer:I}=n;ri(I)?h.value=I:lt(I)&&I!==""?h.value=($=document.querySelector(I))!=null?$:void 0:d.value&&(h.value=sM(d.value)),h.value&&(p=bn(h,"scroll",k),setTimeout(()=>A(),100))}function D(){!Vt||!h.value||!k||(p==null||p(),h.value=void 0)}function L($){if($.ctrlKey){if($.deltaY<0)return $.preventDefault(),!1;if($.deltaY>0)return $.preventDefault(),!1}}function B(){w.value&&(g=bn("wheel",L,{passive:!1}),r=document.body.style.overflow,document.body.style.overflow="hidden",f.value=!0,t("show"))}function N(){g==null||g(),document.body.style.overflow=r,f.value=!1,t("close")}function O($){t("switch",$)}return xe(()=>n.src,()=>{S.value?(c.value=!0,u.value=!1,D(),E()):x()}),yt(()=>{S.value?E():x()}),($,I)=>(R(),K("div",{ref_key:"container",ref:d,class:V([y(i).b(),$.$attrs.class]),style:Ye(y(b))},[u.value?_e($.$slots,"error",{key:0},()=>[Y("div",{class:V(y(i).e("error"))},De(y(a)("el.image.error")),3)]):(R(),K(je,{key:1},[l.value!==void 0?(R(),K("img",St({key:0},y(s),{src:l.value,loading:$.loading,style:y(_),class:y(m),onClick:B,onLoad:T,onError:M}),null,16,t_e)):se("v-if",!0),c.value?(R(),K("div",{key:1,class:V(y(i).e("wrapper"))},[_e($.$slots,"placeholder",{},()=>[Y("div",{class:V(y(i).e("placeholder"))},null,2)])],2)):se("v-if",!0)],64)),y(w)?(R(),K(je,{key:2},[f.value?(R(),ce(y(b8),{key:0,"z-index":$.zIndex,"initial-index":y(C),infinite:$.infinite,"zoom-rate":$.zoomRate,"url-list":$.previewSrcList,"hide-on-click-modal":$.hideOnClickModal,teleported:$.previewTeleported,"close-on-press-escape":$.closeOnPressEscape,onClose:N,onSwitch:O},{default:re(()=>[$.$slots.viewer?(R(),K("div",n_e,[_e($.$slots,"viewer")])):se("v-if",!0)]),_:3},8,["z-index","initial-index","infinite","zoom-rate","url-list","hide-on-click-modal","teleported","close-on-press-escape"])):se("v-if",!0)],64)):se("v-if",!0)],6))}});var i_e=Pe(a_e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image/src/image.vue"]]);const o_e=_t(i_e),s_e=Le({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.POSITIVE_INFINITY},min:{type:Number,default:Number.NEGATIVE_INFINITY},modelValue:Number,readonly:Boolean,disabled:Boolean,size:Sr,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:e=>e===null||at(e)||["min","max"].includes(e),default:null},name:String,label:String,placeholder:String,precision:{type:Number,validator:e=>e>=0&&e===Number.parseInt(`${e}`,10)},validateEvent:{type:Boolean,default:!0}}),l_e={[mn]:(e,t)=>t!==e,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[qr]:e=>at(e)||Kn(e),[wt]:e=>at(e)||Kn(e)},u_e=["aria-label","onKeydown"],c_e=["aria-label","onKeydown"],f_e=ne({name:"ElInputNumber"}),d_e=ne({...f_e,props:s_e,emits:l_e,setup(e,{expose:t,emit:n}){const r=e,{t:a}=Ht(),i=Me("input-number"),o=H(),s=jt({currentValue:r.modelValue,userInput:null}),{formItem:l}=aa(),u=P(()=>at(r.modelValue)&&r.modelValue<=r.min),c=P(()=>at(r.modelValue)&&r.modelValue>=r.max),f=P(()=>{const D=m(r.step);return er(r.precision)?Math.max(m(r.modelValue),D):(D>r.precision,r.precision)}),d=P(()=>r.controls&&r.controlsPosition==="right"),h=qn(),v=wa(),p=P(()=>{if(s.userInput!==null)return s.userInput;let D=s.currentValue;if(Kn(D))return"";if(at(D)){if(Number.isNaN(D))return"";er(r.precision)||(D=D.toFixed(r.precision))}return D}),g=(D,L)=>{if(er(L)&&(L=f.value),L===0)return Math.round(D);let B=String(D);const N=B.indexOf(".");if(N===-1||!B.replace(".","").split("")[N+L])return D;const I=B.length;return B.charAt(I-1)==="5"&&(B=`${B.slice(0,Math.max(0,I-1))}6`),Number.parseFloat(Number(B).toFixed(L))},m=D=>{if(Kn(D))return 0;const L=D.toString(),B=L.indexOf(".");let N=0;return B!==-1&&(N=L.length-B-1),N},b=(D,L=1)=>at(D)?g(D+r.step*L):s.currentValue,_=()=>{if(r.readonly||v.value||c.value)return;const D=Number(p.value)||0,L=b(D);S(L),n(qr,s.currentValue)},w=()=>{if(r.readonly||v.value||u.value)return;const D=Number(p.value)||0,L=b(D,-1);S(L),n(qr,s.currentValue)},C=(D,L)=>{const{max:B,min:N,step:O,precision:$,stepStrictly:I,valueOnClear:z}=r;B<N&&jn("InputNumber","min should not be greater than max.");let G=Number(D);if(Kn(D)||Number.isNaN(G))return null;if(D===""){if(z===null)return null;G=lt(z)?{min:N,max:B}[z]:z}return I&&(G=g(Math.round(G/O)*O,$)),er($)||(G=g(G,$)),(G>B||G<N)&&(G=G>B?B:N,L&&n(wt,G)),G},S=(D,L=!0)=>{var B;const N=s.currentValue,O=C(D);if(!L){n(wt,O);return}N!==O&&(s.userInput=null,n(wt,O),n(mn,O,N),r.validateEvent&&((B=l==null?void 0:l.validate)==null||B.call(l,"change").catch($=>void 0)),s.currentValue=O)},x=D=>{s.userInput=D;const L=D===""?null:Number(D);n(qr,L),S(L,!1)},T=D=>{const L=D!==""?Number(D):"";(at(L)&&!Number.isNaN(L)||D==="")&&S(L),s.userInput=null},M=()=>{var D,L;(L=(D=o.value)==null?void 0:D.focus)==null||L.call(D)},A=()=>{var D,L;(L=(D=o.value)==null?void 0:D.blur)==null||L.call(D)},k=D=>{n("focus",D)},E=D=>{var L;n("blur",D),r.validateEvent&&((L=l==null?void 0:l.validate)==null||L.call(l,"blur").catch(B=>void 0))};return xe(()=>r.modelValue,D=>{const L=C(s.userInput),B=C(D,!0);!at(L)&&(!L||L!==B)&&(s.currentValue=B,s.userInput=null)},{immediate:!0}),yt(()=>{var D;const{min:L,max:B,modelValue:N}=r,O=(D=o.value)==null?void 0:D.input;if(O.setAttribute("role","spinbutton"),Number.isFinite(B)?O.setAttribute("aria-valuemax",String(B)):O.removeAttribute("aria-valuemax"),Number.isFinite(L)?O.setAttribute("aria-valuemin",String(L)):O.removeAttribute("aria-valuemin"),O.setAttribute("aria-valuenow",s.currentValue||s.currentValue===0?String(s.currentValue):""),O.setAttribute("aria-disabled",String(v.value)),!at(N)&&N!=null){let $=Number(N);Number.isNaN($)&&($=null),n(wt,$)}}),cs(()=>{var D,L;const B=(D=o.value)==null?void 0:D.input;B==null||B.setAttribute("aria-valuenow",`${(L=s.currentValue)!=null?L:""}`)}),t({focus:M,blur:A}),(D,L)=>(R(),K("div",{class:V([y(i).b(),y(i).m(y(h)),y(i).is("disabled",y(v)),y(i).is("without-controls",!D.controls),y(i).is("controls-right",y(d))]),onDragstart:L[1]||(L[1]=tt(()=>{},["prevent"]))},[D.controls?dt((R(),K("span",{key:0,role:"button","aria-label":y(a)("el.inputNumber.decrease"),class:V([y(i).e("decrease"),y(i).is("disabled",y(u))]),onKeydown:Ft(w,["enter"])},[q(y(Ke),null,{default:re(()=>[y(d)?(R(),ce(y(Tl),{key:0})):(R(),ce(y(moe),{key:1}))]),_:1})],42,u_e)),[[y(h0),w]]):se("v-if",!0),D.controls?dt((R(),K("span",{key:1,role:"button","aria-label":y(a)("el.inputNumber.increase"),class:V([y(i).e("increase"),y(i).is("disabled",y(c))]),onKeydown:Ft(_,["enter"])},[q(y(Ke),null,{default:re(()=>[y(d)?(R(),ce(y(Wb),{key:0})):(R(),ce(y(F5),{key:1}))]),_:1})],42,c_e)),[[y(h0),_]]):se("v-if",!0),q(y(Rr),{id:D.id,ref_key:"input",ref:o,type:"number",step:D.step,"model-value":y(p),placeholder:D.placeholder,readonly:D.readonly,disabled:y(v),size:y(h),max:D.max,min:D.min,name:D.name,label:D.label,"validate-event":!1,onWheel:L[0]||(L[0]=tt(()=>{},["prevent"])),onKeydown:[Ft(tt(_,["prevent"]),["up"]),Ft(tt(w,["prevent"]),["down"])],onBlur:E,onFocus:k,onInput:x,onChange:T},null,8,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","label","onKeydown"])],34))}});var h_e=Pe(d_e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input-number/src/input-number.vue"]]);const _8=_t(h_e),v_e=Le({type:{type:String,values:["primary","success","warning","info","danger","default"],default:"default"},underline:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},href:{type:String,default:""},icon:{type:fn}}),p_e={click:e=>e instanceof MouseEvent},g_e=["href"],m_e=ne({name:"ElLink"}),y_e=ne({...m_e,props:v_e,emits:p_e,setup(e,{emit:t}){const n=e,r=Me("link"),a=P(()=>[r.b(),r.m(n.type),r.is("disabled",n.disabled),r.is("underline",n.underline&&!n.disabled)]);function i(o){n.disabled||t("click",o)}return(o,s)=>(R(),K("a",{class:V(y(a)),href:o.disabled||!o.href?void 0:o.href,onClick:i},[o.icon?(R(),ce(y(Ke),{key:0},{default:re(()=>[(R(),ce(Ct(o.icon)))]),_:1})):se("v-if",!0),o.$slots.default?(R(),K("span",{key:1,class:V(y(r).e("inner"))},[_e(o.$slots,"default")],2)):se("v-if",!0),o.$slots.icon?_e(o.$slots,"icon",{key:2}):se("v-if",!0)],10,g_e))}});var b_e=Pe(y_e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/link/src/link.vue"]]);const __e=_t(b_e);let w_e=class{constructor(t,n){this.parent=t,this.domNode=n,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(t){t===this.subMenuItems.length?t=0:t<0&&(t=this.subMenuItems.length-1),this.subMenuItems[t].focus(),this.subIndex=t}addListeners(){const t=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,n=>{n.addEventListener("keydown",r=>{let a=!1;switch(r.code){case Xe.down:{this.gotoSubIndex(this.subIndex+1),a=!0;break}case Xe.up:{this.gotoSubIndex(this.subIndex-1),a=!0;break}case Xe.tab:{sy(t,"mouseleave");break}case Xe.enter:case Xe.space:{a=!0,r.currentTarget.click();break}}return a&&(r.preventDefault(),r.stopPropagation()),!1})})}},S_e=class{constructor(t,n){this.domNode=t,this.submenu=null,this.submenu=null,this.init(n)}init(t){this.domNode.setAttribute("tabindex","0");const n=this.domNode.querySelector(`.${t}-menu`);n&&(this.submenu=new w_e(this,n)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{let n=!1;switch(t.code){case Xe.down:{sy(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),n=!0;break}case Xe.up:{sy(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),n=!0;break}case Xe.tab:{sy(t.currentTarget,"mouseleave");break}case Xe.enter:case Xe.space:{n=!0,t.currentTarget.click();break}}n&&t.preventDefault()})}},C_e=class{constructor(t,n){this.domNode=t,this.init(n)}init(t){const n=this.domNode.childNodes;Array.from(n).forEach(r=>{r.nodeType===1&&new S_e(r,t)})}};const x_e=ne({name:"ElMenuCollapseTransition",setup(){const e=Me("menu");return{listeners:{onBeforeEnter:n=>n.style.opacity="0.2",onEnter(n,r){lo(n,`${e.namespace.value}-opacity-transition`),n.style.opacity="1",r()},onAfterEnter(n){ga(n,`${e.namespace.value}-opacity-transition`),n.style.opacity=""},onBeforeLeave(n){n.dataset||(n.dataset={}),Li(n,e.m("collapse"))?(ga(n,e.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),lo(n,e.m("collapse"))):(lo(n,e.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),ga(n,e.m("collapse"))),n.style.width=`${n.scrollWidth}px`,n.style.overflow="hidden"},onLeave(n){lo(n,"horizontal-collapse-transition"),n.style.width=`${n.dataset.scrollWidth}px`}}}}});function T_e(e,t,n,r,a,i){return R(),ce(Bn,St({mode:"out-in"},e.listeners),{default:re(()=>[_e(e.$slots,"default")]),_:3},16)}var M_e=Pe(x_e,[["render",T_e],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-collapse-transition.vue"]]);function w8(e,t){const n=P(()=>{let a=e.parent;const i=[t.value];for(;a.type.name!=="ElMenu";)a.props.index&&i.unshift(a.props.index),a=a.parent;return i});return{parentMenu:P(()=>{let a=e.parent;for(;a&&!["ElMenu","ElSubMenu"].includes(a.type.name);)a=a.parent;return a}),indexPath:n}}function k_e(e){return P(()=>{const n=e.backgroundColor;return n?new Jz(n).shade(20).toString():""})}const S8=(e,t)=>{const n=Me("menu");return P(()=>n.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":k_e(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},A_e=Le({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},teleported:{type:Boolean,default:void 0},popperOffset:{type:Number,default:6},expandCloseIcon:{type:fn},expandOpenIcon:{type:fn},collapseCloseIcon:{type:fn},collapseOpenIcon:{type:fn}}),Xg="ElSubMenu";var UM=ne({name:Xg,props:A_e,setup(e,{slots:t,expose:n}){bo({from:"popper-append-to-body",replacement:"teleported",scope:Xg,version:"2.3.0",ref:"https://element-plus.org/en-US/component/menu.html#submenu-attributes"},P(()=>e.popperAppendToBody!==void 0));const r=gt(),{indexPath:a,parentMenu:i}=w8(r,P(()=>e.index)),o=Me("menu"),s=Me("sub-menu"),l=Ge("rootMenu");l||jn(Xg,"can not inject root menu");const u=Ge(`subMenu:${i.value.uid}`);u||jn(Xg,"can not inject sub menu");const c=H({}),f=H({});let d;const h=H(!1),v=H(),p=H(null),g=P(()=>k.value==="horizontal"&&b.value?"bottom-start":"right-start"),m=P(()=>k.value==="horizontal"&&b.value||k.value==="vertical"&&!l.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?S.value?e.expandOpenIcon:e.expandCloseIcon:Tl:e.collapseCloseIcon&&e.collapseOpenIcon?S.value?e.collapseOpenIcon:e.collapseCloseIcon:jr),b=P(()=>u.level===0),_=P(()=>{var z;const G=(z=e.teleported)!=null?z:e.popperAppendToBody;return G===void 0?b.value:G}),w=P(()=>l.props.collapse?`${o.namespace.value}-zoom-in-left`:`${o.namespace.value}-zoom-in-top`),C=P(()=>k.value==="horizontal"&&b.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","right","right-end","left-start","bottom-start","bottom-end","top-start","top-end"]),S=P(()=>l.openedMenus.includes(e.index)),x=P(()=>{let z=!1;return Object.values(c.value).forEach(G=>{G.active&&(z=!0)}),Object.values(f.value).forEach(G=>{G.active&&(z=!0)}),z}),T=P(()=>l.props.backgroundColor||""),M=P(()=>l.props.activeTextColor||""),A=P(()=>l.props.textColor||""),k=P(()=>l.props.mode),E=jt({index:e.index,indexPath:a,active:x}),D=S8(l.props,u.level+1),L=P(()=>k.value!=="horizontal"?{color:A.value}:{borderBottomColor:x.value?l.props.activeTextColor?M.value:"":"transparent",color:x.value?M.value:A.value}),B=()=>{var z,G,U;return(U=(G=(z=p.value)==null?void 0:z.popperRef)==null?void 0:G.popperInstanceRef)==null?void 0:U.destroy()},N=z=>{z||B()},O=()=>{l.props.menuTrigger==="hover"&&l.props.mode==="horizontal"||l.props.collapse&&l.props.mode==="vertical"||e.disabled||l.handleSubMenuClick({index:e.index,indexPath:a.value,active:x.value})},$=(z,G=e.showTimeout)=>{var U;z.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}=ac(()=>{l.openMenu(e.index,a.value)},G),_.value&&((U=i.value.vnode.el)==null||U.dispatchEvent(new MouseEvent("mouseenter")))))},I=(z=!1)=>{var G,U;l.props.menuTrigger==="click"&&l.props.mode==="horizontal"||!l.props.collapse&&l.props.mode==="vertical"||(d==null||d(),u.mouseInChild.value=!1,{stop:d}=ac(()=>!h.value&&l.closeMenu(e.index,a.value),e.hideTimeout),_.value&&z&&((G=r.parent)==null?void 0:G.type.name)==="ElSubMenu"&&((U=u.handleMouseleave)==null||U.call(u,!0)))};xe(()=>l.props.collapse,z=>N(!!z));{const z=U=>{f.value[U.index]=U},G=U=>{delete f.value[U.index]};Et(`subMenu:${r.uid}`,{addSubMenu:z,removeSubMenu:G,handleMouseleave:I,mouseInChild:h,level:u.level+1})}return n({opened:S}),yt(()=>{l.addSubMenu(E),u.addSubMenu(E)}),wn(()=>{u.removeSubMenu(E),l.removeSubMenu(E)}),()=>{var z;const G=[(z=t.title)==null?void 0:z.call(t),Ze(Ke,{class:s.e("icon-arrow"),style:{transform:S.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&l.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>lt(m.value)?Ze(r.appContext.components[m.value]):Ze(m.value)})],U=l.isMenuPopup?Ze(ea,{ref:p,visible:S.value,effect:"light",pure:!0,offset:e.popperOffset,showArrow:!1,persistent:!0,popperClass:e.popperClass,placement:g.value,teleported:_.value,fallbackPlacements:C.value,transition:w.value,gpuAcceleration:!1},{content:()=>{var Z;return Ze("div",{class:[o.m(k.value),o.m("popup-container"),e.popperClass],onMouseenter:ae=>$(ae,100),onMouseleave:()=>I(!0),onFocus:ae=>$(ae,100)},[Ze("ul",{class:[o.b(),o.m("popup"),o.m(`popup-${g.value}`)],style:D.value},[(Z=t.default)==null?void 0:Z.call(t)])])},default:()=>Ze("div",{class:s.e("title"),style:[L.value,{backgroundColor:T.value}],onClick:O},G)}):Ze(je,{},[Ze("div",{class:s.e("title"),style:[L.value,{backgroundColor:T.value}],ref:v,onClick:O},G),Ze(i1,{},{default:()=>{var Z;return dt(Ze("ul",{role:"menu",class:[o.b(),o.m("inline")],style:D.value},[(Z=t.default)==null?void 0:Z.call(t)]),[[Kt,S.value]])}})]);return Ze("li",{class:[s.b(),s.is("active",x.value),s.is("opened",S.value),s.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:S.value,onMouseenter:$,onMouseleave:()=>I(!0),onFocus:$},[U])}}});const E_e=Le({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:ue(Array),default:()=>Cn([])},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"}}),A_=e=>Array.isArray(e)&&e.every(t=>lt(t)),I_e={close:(e,t)=>lt(e)&&A_(t),open:(e,t)=>lt(e)&&A_(t),select:(e,t,n,r)=>lt(e)&&A_(t)&&Mt(n)&&(r===void 0||r instanceof Promise)};var D_e=ne({name:"ElMenu",props:E_e,emits:I_e,setup(e,{emit:t,slots:n,expose:r}){const a=gt(),i=a.appContext.config.globalProperties.$router,o=H(),s=Me("menu"),l=Me("sub-menu"),u=H(-1),c=H(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),f=H(e.defaultActive),d=H({}),h=H({}),v=P(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),p=()=>{const k=f.value&&d.value[f.value];if(!k||e.mode==="horizontal"||e.collapse)return;k.indexPath.forEach(D=>{const L=h.value[D];L&&g(D,L.indexPath)})},g=(k,E)=>{c.value.includes(k)||(e.uniqueOpened&&(c.value=c.value.filter(D=>E.includes(D))),c.value.push(k),t("open",k,E))},m=k=>{const E=c.value.indexOf(k);E!==-1&&c.value.splice(E,1)},b=(k,E)=>{m(k),t("close",k,E)},_=({index:k,indexPath:E})=>{c.value.includes(k)?b(k,E):g(k,E)},w=k=>{(e.mode==="horizontal"||e.collapse)&&(c.value=[]);const{index:E,indexPath:D}=k;if(!(Kn(E)||Kn(D)))if(e.router&&i){const L=k.route||E,B=i.push(L).then(N=>(N||(f.value=E),N));t("select",E,D,{index:E,indexPath:D,route:L},B)}else f.value=E,t("select",E,D,{index:E,indexPath:D})},C=k=>{const E=d.value,D=E[k]||f.value&&E[f.value]||E[e.defaultActive];D?f.value=D.index:f.value=k},S=()=>{var k,E;if(!o.value)return-1;const D=Array.from((E=(k=o.value)==null?void 0:k.childNodes)!=null?E:[]).filter(z=>z.nodeName!=="#comment"&&(z.nodeName!=="#text"||z.nodeValue)),L=64,B=Number.parseInt(getComputedStyle(o.value).paddingLeft,10),N=Number.parseInt(getComputedStyle(o.value).paddingRight,10),O=o.value.clientWidth-B-N;let $=0,I=0;return D.forEach((z,G)=>{$+=z.offsetWidth||0,$<=O-L&&(I=G+1)}),I===D.length?-1:I},x=(k,E=33.34)=>{let D;return()=>{D&&clearTimeout(D),D=setTimeout(()=>{k()},E)}};let T=!0;const M=()=>{const k=()=>{u.value=-1,Ue(()=>{u.value=S()})};T?k():x(k)(),T=!1};xe(()=>e.defaultActive,k=>{d.value[k]||(f.value=""),C(k)}),xe(()=>e.collapse,k=>{k&&(c.value=[])}),xe(d.value,p);let A;Ia(()=>{e.mode==="horizontal"&&e.ellipsis?A=$r(o,M).stop:A==null||A()});{const k=B=>{h.value[B.index]=B},E=B=>{delete h.value[B.index]};Et("rootMenu",jt({props:e,openedMenus:c,items:d,subMenus:h,activeIndex:f,isMenuPopup:v,addMenuItem:B=>{d.value[B.index]=B},removeMenuItem:B=>{delete d.value[B.index]},addSubMenu:k,removeSubMenu:E,openMenu:g,closeMenu:b,handleMenuItemClick:w,handleSubMenuClick:_})),Et(`subMenu:${a.uid}`,{addSubMenu:k,removeSubMenu:E,mouseInChild:H(!1),level:0})}return yt(()=>{e.mode==="horizontal"&&new C_e(a.vnode.el,s.namespace.value)}),r({open:E=>{const{indexPath:D}=h.value[E];D.forEach(L=>g(L,D))},close:m,handleResize:M}),()=>{var k,E;let D=(E=(k=n.default)==null?void 0:k.call(n))!=null?E:[];const L=[];if(e.mode==="horizontal"&&o.value){const O=Af(D),$=u.value===-1?O:O.slice(0,u.value),I=u.value===-1?[]:O.slice(u.value);I!=null&&I.length&&e.ellipsis&&(D=$,L.push(Ze(UM,{index:"sub-menu-more",class:l.e("hide-arrow")},{title:()=>Ze(Ke,{class:l.e("icon-more")},{default:()=>Ze(Aoe)}),default:()=>I})))}const B=S8(e,0),N=Ze("ul",{key:String(e.collapse),role:"menubar",ref:o,style:B.value,class:{[s.b()]:!0,[s.m(e.mode)]:!0,[s.m("collapse")]:e.collapse}},[...D,...L]);return e.collapseTransition&&e.mode==="vertical"?Ze(M_e,()=>N):N}}});const P_e=Le({index:{type:ue([String,null]),default:null},route:{type:ue([String,Object])},disabled:Boolean}),L_e={click:e=>lt(e.index)&&Array.isArray(e.indexPath)},E_="ElMenuItem",R_e=ne({name:E_,components:{ElTooltip:ea},props:P_e,emits:L_e,setup(e,{emit:t}){const n=gt(),r=Ge("rootMenu"),a=Me("menu"),i=Me("menu-item");r||jn(E_,"can not inject root menu");const{parentMenu:o,indexPath:s}=w8(n,kn(e,"index")),l=Ge(`subMenu:${o.value.uid}`);l||jn(E_,"can not inject sub menu");const u=P(()=>e.index===r.activeIndex),c=jt({index:e.index,indexPath:s,active:u}),f=()=>{e.disabled||(r.handleMenuItemClick({index:e.index,indexPath:s.value,route:e.route}),t("click",c))};return yt(()=>{l.addSubMenu(c),r.addMenuItem(c)}),wn(()=>{l.removeSubMenu(c),r.removeMenuItem(c)}),{parentMenu:o,rootMenu:r,active:u,nsMenu:a,nsMenuItem:i,handleClick:f}}});function O_e(e,t,n,r,a,i){const o=ct("el-tooltip");return R(),K("li",{class:V([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?(R(),ce(o,{key:0,effect:e.rootMenu.props.popperEffect,placement:"right","fallback-placements":["left"],persistent:""},{content:re(()=>[_e(e.$slots,"title")]),default:re(()=>[Y("div",{class:V(e.nsMenu.be("tooltip","trigger"))},[_e(e.$slots,"default")],2)]),_:3},8,["effect"])):(R(),K(je,{key:1},[_e(e.$slots,"default"),_e(e.$slots,"title")],64))],2)}var C8=Pe(R_e,[["render",O_e],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item.vue"]]);const $_e={title:String},N_e="ElMenuItemGroup",B_e=ne({name:N_e,props:$_e,setup(){return{ns:Me("menu-item-group")}}});function V_e(e,t,n,r,a,i){return R(),K("li",{class:V(e.ns.b())},[Y("div",{class:V(e.ns.e("title"))},[e.$slots.title?_e(e.$slots,"title",{key:1}):(R(),K(je,{key:0},[Ut(De(e.title),1)],64))],2),Y("ul",null,[_e(e.$slots,"default")])],2)}var x8=Pe(B_e,[["render",V_e],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item-group.vue"]]);const z_e=_t(D_e,{MenuItem:C8,MenuItemGroup:x8,SubMenu:UM}),F_e=Dn(C8),H_e=Dn(x8),G_e=Dn(UM),W_e=Le({icon:{type:fn,default:()=>dae},title:String,content:{type:String,default:""}}),K_e={back:()=>!0},U_e=["aria-label"],Y_e=ne({name:"ElPageHeader"}),j_e=ne({...Y_e,props:W_e,emits:K_e,setup(e,{emit:t}){const n=Mr(),{t:r}=Ht(),a=Me("page-header"),i=P(()=>[a.b(),{[a.m("has-breadcrumb")]:!!n.breadcrumb,[a.m("has-extra")]:!!n.extra,[a.is("contentful")]:!!n.default}]);function o(){t("back")}return(s,l)=>(R(),K("div",{class:V(y(i))},[s.$slots.breadcrumb?(R(),K("div",{key:0,class:V(y(a).e("breadcrumb"))},[_e(s.$slots,"breadcrumb")],2)):se("v-if",!0),Y("div",{class:V(y(a).e("header"))},[Y("div",{class:V(y(a).e("left"))},[Y("div",{class:V(y(a).e("back")),role:"button",tabindex:"0",onClick:o},[s.icon||s.$slots.icon?(R(),K("div",{key:0,"aria-label":s.title||y(r)("el.pageHeader.title"),class:V(y(a).e("icon"))},[_e(s.$slots,"icon",{},()=>[s.icon?(R(),ce(y(Ke),{key:0},{default:re(()=>[(R(),ce(Ct(s.icon)))]),_:1})):se("v-if",!0)])],10,U_e)):se("v-if",!0),Y("div",{class:V(y(a).e("title"))},[_e(s.$slots,"title",{},()=>[Ut(De(s.title||y(r)("el.pageHeader.title")),1)])],2)],2),q(y(u8),{direction:"vertical"}),Y("div",{class:V(y(a).e("content"))},[_e(s.$slots,"content",{},()=>[Ut(De(s.content),1)])],2)],2),s.$slots.extra?(R(),K("div",{key:0,class:V(y(a).e("extra"))},[_e(s.$slots,"extra")],2)):se("v-if",!0)],2),s.$slots.default?(R(),K("div",{key:1,class:V(y(a).e("main"))},[_e(s.$slots,"default")],2)):se("v-if",!0)],2))}});var q_e=Pe(j_e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/page-header/src/page-header.vue"]]);const X_e=_t(q_e),T8=Symbol("elPaginationKey"),Z_e=Le({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:fn}}),J_e={click:e=>e instanceof MouseEvent},Q_e=["disabled","aria-label","aria-disabled"],ewe={key:0},twe=ne({name:"ElPaginationPrev"}),nwe=ne({...twe,props:Z_e,emits:J_e,setup(e){const t=e,{t:n}=Ht(),r=P(()=>t.disabled||t.currentPage<=1);return(a,i)=>(R(),K("button",{type:"button",class:"btn-prev",disabled:y(r),"aria-label":a.prevText||y(n)("el.pagination.prev"),"aria-disabled":y(r),onClick:i[0]||(i[0]=o=>a.$emit("click",o))},[a.prevText?(R(),K("span",ewe,De(a.prevText),1)):(R(),ce(y(Ke),{key:1},{default:re(()=>[(R(),ce(Ct(a.prevIcon)))]),_:1}))],8,Q_e))}});var rwe=Pe(nwe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/prev.vue"]]);const awe=Le({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:fn}}),iwe=["disabled","aria-label","aria-disabled"],owe={key:0},swe=ne({name:"ElPaginationNext"}),lwe=ne({...swe,props:awe,emits:["click"],setup(e){const t=e,{t:n}=Ht(),r=P(()=>t.disabled||t.currentPage===t.pageCount||t.pageCount===0);return(a,i)=>(R(),K("button",{type:"button",class:"btn-next",disabled:y(r),"aria-label":a.nextText||y(n)("el.pagination.next"),"aria-disabled":y(r),onClick:i[0]||(i[0]=o=>a.$emit("click",o))},[a.nextText?(R(),K("span",owe,De(a.nextText),1)):(R(),ce(y(Ke),{key:1},{default:re(()=>[(R(),ce(Ct(a.nextIcon)))]),_:1}))],8,iwe))}});var uwe=Pe(lwe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/next.vue"]]);const M8=Symbol("ElSelectGroup"),ng=Symbol("ElSelect");function cwe(e,t){const n=Ge(ng),r=Ge(M8,{disabled:!1}),a=P(()=>Object.prototype.toString.call(e.value).toLowerCase()==="[object object]"),i=P(()=>n.props.multiple?f(n.props.modelValue,e.value):d(e.value,n.props.modelValue)),o=P(()=>{if(n.props.multiple){const p=n.props.modelValue||[];return!i.value&&p.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),s=P(()=>e.label||(a.value?"":e.value)),l=P(()=>e.value||e.label||""),u=P(()=>e.disabled||t.groupDisabled||o.value),c=gt(),f=(p=[],g)=>{if(a.value){const m=n.props.valueKey;return p&&p.some(b=>tn(Sn(b,m))===Sn(g,m))}else return p&&p.includes(g)},d=(p,g)=>{if(a.value){const{valueKey:m}=n.props;return Sn(p,m)===Sn(g,m)}else return p===g},h=()=>{!e.disabled&&!r.disabled&&(n.hoverIndex=n.optionsArray.indexOf(c.proxy))};xe(()=>s.value,()=>{!e.created&&!n.props.remote&&n.setSelected()}),xe(()=>e.value,(p,g)=>{const{remote:m,valueKey:b}=n.props;if(Object.is(p,g)||(n.onOptionDestroy(g,c.proxy),n.onOptionCreate(c.proxy)),!e.created&&!m){if(b&&typeof p=="object"&&typeof g=="object"&&p[b]===g[b])return;n.setSelected()}}),xe(()=>r.disabled,()=>{t.groupDisabled=r.disabled},{immediate:!0});const{queryChange:v}=tn(n);return xe(v,p=>{const{query:g}=y(p),m=new RegExp(O5(g),"i");t.visible=m.test(s.value)||e.created,t.visible||n.filteredOptionsCount--},{immediate:!0}),{select:n,currentLabel:s,currentValue:l,itemSelected:i,isDisabled:u,hoverItem:h}}const fwe=ne({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:Boolean},setup(e){const t=Me("select"),n=P(()=>[t.be("dropdown","item"),t.is("disabled",y(o)),{selected:y(i),hover:y(c)}]),r=jt({index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}),{currentLabel:a,itemSelected:i,isDisabled:o,select:s,hoverItem:l}=cwe(e,r),{visible:u,hover:c}=or(r),f=gt().proxy;s.onOptionCreate(f),wn(()=>{const h=f.value,{selected:v}=s,g=(s.props.multiple?v:[v]).some(m=>m.value===f.value);Ue(()=>{s.cachedOptions.get(h)===f&&!g&&s.cachedOptions.delete(h)}),s.onOptionDestroy(h,f)});function d(){e.disabled!==!0&&r.groupDisabled!==!0&&s.handleOptionSelect(f)}return{ns:t,containerKls:n,currentLabel:a,itemSelected:i,isDisabled:o,select:s,hoverItem:l,visible:u,hover:c,selectOptionClick:d,states:r}}});function dwe(e,t,n,r,a,i){return dt((R(),K("li",{class:V(e.containerKls),onMouseenter:t[0]||(t[0]=(...o)=>e.hoverItem&&e.hoverItem(...o)),onClick:t[1]||(t[1]=tt((...o)=>e.selectOptionClick&&e.selectOptionClick(...o),["stop"]))},[_e(e.$slots,"default",{},()=>[Y("span",null,De(e.currentLabel),1)])],34)),[[Kt,e.visible]])}var YM=Pe(fwe,[["render",dwe],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option.vue"]]);const hwe=ne({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=Ge(ng),t=Me("select"),n=P(()=>e.props.popperClass),r=P(()=>e.props.multiple),a=P(()=>e.props.fitInputWidth),i=H("");function o(){var s;i.value=`${(s=e.selectWrapper)==null?void 0:s.offsetWidth}px`}return yt(()=>{o(),$r(e.selectWrapper,o)}),{ns:t,minWidth:i,popperClass:n,isMultiple:r,isFitInputWidth:a}}});function vwe(e,t,n,r,a,i){return R(),K("div",{class:V([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:Ye({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[_e(e.$slots,"default")],6)}var pwe=Pe(hwe,[["render",vwe],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select-dropdown.vue"]]);function gwe(e){const{t}=Ht();return jt({options:new Map,cachedOptions:new Map,disabledOptions:new Map,createdLabel:null,createdSelected:!1,selected:e.multiple?[]:{},inputLength:20,inputWidth:0,optionsCount:0,filteredOptionsCount:0,visible:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,cachedPlaceHolder:"",currentPlaceholder:t("el.select.placeholder"),menuVisibleOnFocus:!1,isOnComposition:!1,prefixWidth:11,mouseEnter:!1,focused:!1})}const mwe=(e,t,n)=>{const{t:r}=Ht(),a=Me("select");bo({from:"suffixTransition",replacement:"override style scheme",version:"2.3.0",scope:"props",ref:"https://element-plus.org/en-US/component/select.html#select-attributes"},P(()=>e.suffixTransition===!1));const i=H(null),o=H(null),s=H(null),l=H(null),u=H(null),c=H(null),f=H(null),d=H(null),h=H(-1),v=un({query:""}),p=un(""),g=H([]);let m=0;const{form:b,formItem:_}=aa(),w=P(()=>!e.filterable||e.multiple||!t.visible),C=P(()=>e.disabled||(b==null?void 0:b.disabled)),S=P(()=>{const be=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:e.modelValue!==void 0&&e.modelValue!==null&&e.modelValue!=="";return e.clearable&&!C.value&&t.inputHovering&&be}),x=P(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),T=P(()=>a.is("reverse",x.value&&t.visible&&e.suffixTransition)),M=P(()=>(b==null?void 0:b.statusIcon)&&(_==null?void 0:_.validateState)&&dM[_==null?void 0:_.validateState]),A=P(()=>e.remote?300:0),k=P(()=>e.loading?e.loadingText||r("el.select.loading"):e.remote&&t.query===""&&t.options.size===0?!1:e.filterable&&t.query&&t.options.size>0&&t.filteredOptionsCount===0?e.noMatchText||r("el.select.noMatch"):t.options.size===0?e.noDataText||r("el.select.noData"):null),E=P(()=>{const be=Array.from(t.options.values()),Ne=[];return g.value.forEach(he=>{const ze=be.findIndex(At=>At.currentLabel===he);ze>-1&&Ne.push(be[ze])}),Ne.length>=be.length?Ne:be}),D=P(()=>Array.from(t.cachedOptions.values())),L=P(()=>{const be=E.value.filter(Ne=>!Ne.created).some(Ne=>Ne.currentLabel===t.query);return e.filterable&&e.allowCreate&&t.query!==""&&!be}),B=qn(),N=P(()=>["small"].includes(B.value)?"small":"default"),O=P({get(){return t.visible&&k.value!==!1},set(be){t.visible=be}});xe([()=>C.value,()=>B.value,()=>b==null?void 0:b.size],()=>{Ue(()=>{$()})}),xe(()=>e.placeholder,be=>{t.cachedPlaceHolder=t.currentPlaceholder=be,e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(t.currentPlaceholder="")}),xe(()=>e.modelValue,(be,Ne)=>{e.multiple&&($(),be&&be.length>0||o.value&&t.query!==""?t.currentPlaceholder="":t.currentPlaceholder=t.cachedPlaceHolder,e.filterable&&!e.reserveKeyword&&(t.query="",I(t.query))),U(),e.filterable&&!e.multiple&&(t.inputLength=20),!pa(be,Ne)&&e.validateEvent&&(_==null||_.validate("change").catch(he=>void 0))},{flush:"post",deep:!0}),xe(()=>t.visible,be=>{var Ne,he,ze,At,Wt;be?((he=(Ne=l.value)==null?void 0:Ne.updatePopper)==null||he.call(Ne),e.filterable&&(t.filteredOptionsCount=t.optionsCount,t.query=e.remote?"":t.selectedLabel,(At=(ze=s.value)==null?void 0:ze.focus)==null||At.call(ze),e.multiple?(Wt=o.value)==null||Wt.focus():t.selectedLabel&&(t.currentPlaceholder=`${t.selectedLabel}`,t.selectedLabel=""),I(t.query),!e.multiple&&!e.remote&&(v.value.query="",qd(v),qd(p)))):(e.filterable&&(it(e.filterMethod)&&e.filterMethod(""),it(e.remoteMethod)&&e.remoteMethod("")),t.query="",t.previousQuery=null,t.selectedLabel="",t.inputLength=20,t.menuVisibleOnFocus=!1,ae(),Ue(()=>{o.value&&o.value.value===""&&t.selected.length===0&&(t.currentPlaceholder=t.cachedPlaceHolder)}),e.multiple||(t.selected&&(e.filterable&&e.allowCreate&&t.createdSelected&&t.createdLabel?t.selectedLabel=t.createdLabel:t.selectedLabel=t.selected.currentLabel,e.filterable&&(t.query=t.selectedLabel)),e.filterable&&(t.currentPlaceholder=t.cachedPlaceHolder))),n.emit("visible-change",be)}),xe(()=>t.options.entries(),()=>{var be,Ne,he;if(!Vt)return;(Ne=(be=l.value)==null?void 0:be.updatePopper)==null||Ne.call(be),e.multiple&&$();const ze=((he=f.value)==null?void 0:he.querySelectorAll("input"))||[];(!e.filterable&&!e.defaultFirstOption&&!er(e.modelValue)||!Array.from(ze).includes(document.activeElement))&&U(),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&G()},{flush:"post"}),xe(()=>t.hoverIndex,be=>{at(be)&&be>-1?h.value=E.value[be]||{}:h.value={},E.value.forEach(Ne=>{Ne.hover=h.value===Ne})});const $=()=>{Ue(()=>{var be,Ne;if(!i.value)return;const he=i.value.$el.querySelector("input");m=m||(he.clientHeight>0?he.clientHeight+2:0);const ze=c.value,At=gle(B.value||(b==null?void 0:b.size)),Wt=B.value||At===m||m<=0?At:m;!(he.offsetParent===null)&&(he.style.height=`${(t.selected.length===0?Wt:Math.max(ze?ze.clientHeight+(ze.clientHeight>Wt?6:0):0,Wt))-2}px`),t.visible&&k.value!==!1&&((Ne=(be=l.value)==null?void 0:be.updatePopper)==null||Ne.call(be))})},I=async be=>{if(!(t.previousQuery===be||t.isOnComposition)){if(t.previousQuery===null&&(it(e.filterMethod)||it(e.remoteMethod))){t.previousQuery=be;return}t.previousQuery=be,Ue(()=>{var Ne,he;t.visible&&((he=(Ne=l.value)==null?void 0:Ne.updatePopper)==null||he.call(Ne))}),t.hoverIndex=-1,e.multiple&&e.filterable&&Ue(()=>{if(!C.value){const Ne=o.value.value.length*15+20;t.inputLength=e.collapseTags?Math.min(50,Ne):Ne,z()}$()}),e.remote&&it(e.remoteMethod)?(t.hoverIndex=-1,e.remoteMethod(be)):it(e.filterMethod)?(e.filterMethod(be),qd(p)):(t.filteredOptionsCount=t.optionsCount,v.value.query=be,qd(v),qd(p)),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&(await Ue(),G())}},z=()=>{t.currentPlaceholder!==""&&(t.currentPlaceholder=o.value.value?"":t.cachedPlaceHolder)},G=()=>{const be=E.value.filter(ze=>ze.visible&&!ze.disabled&&!ze.states.groupDisabled),Ne=be.find(ze=>ze.created),he=be[0];t.hoverIndex=Se(E.value,Ne||he)},U=()=>{var be;if(e.multiple)t.selectedLabel="";else{const he=Z(e.modelValue);(be=he.props)!=null&&be.created?(t.createdLabel=he.props.value,t.createdSelected=!0):t.createdSelected=!1,t.selectedLabel=he.currentLabel,t.selected=he,e.filterable&&(t.query=t.selectedLabel);return}const Ne=[];Array.isArray(e.modelValue)&&e.modelValue.forEach(he=>{Ne.push(Z(he))}),t.selected=Ne,Ue(()=>{$()})},Z=be=>{let Ne;const he=ny(be).toLowerCase()==="object",ze=ny(be).toLowerCase()==="null",At=ny(be).toLowerCase()==="undefined";for(let Qn=t.cachedOptions.size-1;Qn>=0;Qn--){const kr=D.value[Qn];if(he?Sn(kr.value,e.valueKey)===Sn(be,e.valueKey):kr.value===be){Ne={value:be,currentLabel:kr.currentLabel,isDisabled:kr.isDisabled};break}}if(Ne)return Ne;const Wt=he?be.label:!ze&&!At?be:"",Jn={value:be,currentLabel:Wt};return e.multiple&&(Jn.hitState=!1),Jn},ae=()=>{setTimeout(()=>{const be=e.valueKey;e.multiple?t.selected.length>0?t.hoverIndex=Math.min.apply(null,t.selected.map(Ne=>E.value.findIndex(he=>Sn(he,be)===Sn(Ne,be)))):t.hoverIndex=-1:t.hoverIndex=E.value.findIndex(Ne=>ke(Ne)===ke(t.selected))},300)},J=()=>{var be,Ne;Q(),(Ne=(be=l.value)==null?void 0:be.updatePopper)==null||Ne.call(be),e.multiple&&$()},Q=()=>{var be;t.inputWidth=(be=i.value)==null?void 0:be.$el.offsetWidth},ee=()=>{e.filterable&&t.query!==t.selectedLabel&&(t.query=t.selectedLabel,I(t.query))},j=Qr(()=>{ee()},A.value),de=Qr(be=>{I(be.target.value)},A.value),ve=be=>{pa(e.modelValue,be)||n.emit(mn,be)},ie=be=>gre(be,Ne=>!t.disabledOptions.has(Ne)),W=be=>{if(be.code!==Xe.delete){if(be.target.value.length<=0&&!$e()){const Ne=e.modelValue.slice(),he=ie(Ne);if(he<0)return;Ne.splice(he,1),n.emit(wt,Ne),ve(Ne)}be.target.value.length===1&&e.modelValue.length===0&&(t.currentPlaceholder=t.cachedPlaceHolder)}},X=(be,Ne)=>{const he=t.selected.indexOf(Ne);if(he>-1&&!C.value){const ze=e.modelValue.slice();ze.splice(he,1),n.emit(wt,ze),ve(ze),n.emit("remove-tag",Ne.value)}be.stopPropagation(),Fe()},oe=be=>{be.stopPropagation();const Ne=e.multiple?[]:"";if(!lt(Ne))for(const he of t.selected)he.isDisabled&&Ne.push(he.value);n.emit(wt,Ne),ve(Ne),t.hoverIndex=-1,t.visible=!1,n.emit("clear"),Fe()},pe=be=>{var Ne;if(e.multiple){const he=(e.modelValue||[]).slice(),ze=Se(he,be.value);ze>-1?he.splice(ze,1):(e.multipleLimit<=0||he.length<e.multipleLimit)&&he.push(be.value),n.emit(wt,he),ve(he),be.created&&(t.query="",I(""),t.inputLength=20),e.filterable&&((Ne=o.value)==null||Ne.focus())}else n.emit(wt,be.value),ve(be.value),t.visible=!1;me(),!t.visible&&Ue(()=>{Ee(be)})},Se=(be=[],Ne)=>{if(!Mt(Ne))return be.indexOf(Ne);const he=e.valueKey;let ze=-1;return be.some((At,Wt)=>tn(Sn(At,he))===Sn(Ne,he)?(ze=Wt,!0):!1),ze},me=()=>{const be=o.value||i.value;be&&(be==null||be.focus())},Ee=be=>{var Ne,he,ze,At,Wt;const Jn=Array.isArray(be)?be[0]:be;let Qn=null;if(Jn!=null&&Jn.value){const kr=E.value.filter(Ar=>Ar.value===Jn.value);kr.length>0&&(Qn=kr[0].$el)}if(l.value&&Qn){const kr=(At=(ze=(he=(Ne=l.value)==null?void 0:Ne.popperRef)==null?void 0:he.contentRef)==null?void 0:ze.querySelector)==null?void 0:At.call(ze,`.${a.be("dropdown","wrap")}`);kr&&B5(kr,Qn)}(Wt=d.value)==null||Wt.handleScroll()},Ce=be=>{t.optionsCount++,t.filteredOptionsCount++,t.options.set(be.value,be),t.cachedOptions.set(be.value,be),be.disabled&&t.disabledOptions.set(be.value,be)},we=(be,Ne)=>{t.options.get(be)===Ne&&(t.optionsCount--,t.filteredOptionsCount--,t.options.delete(be))},Te=be=>{be.code!==Xe.backspace&&$e(!1),t.inputLength=o.value.value.length*15+20,$()},$e=be=>{if(!Array.isArray(t.selected))return;const Ne=ie(t.selected.map(ze=>ze.value)),he=t.selected[Ne];if(he)return be===!0||be===!1?(he.hitState=be,be):(he.hitState=!he.hitState,he.hitState)},Be=be=>{const Ne=be.target.value;if(be.type==="compositionend")t.isOnComposition=!1,Ue(()=>I(Ne));else{const he=Ne[Ne.length-1]||"";t.isOnComposition=!jb(he)}},We=()=>{Ue(()=>Ee(t.selected))},Ae=be=>{t.focused||((e.automaticDropdown||e.filterable)&&(e.filterable&&!t.visible&&(t.menuVisibleOnFocus=!0),t.visible=!0),t.focused=!0,n.emit("focus",be))},Fe=()=>{var be,Ne;t.visible?(be=o.value||i.value)==null||be.focus():(Ne=i.value)==null||Ne.focus()},rt=()=>{var be,Ne,he;t.visible=!1,(be=i.value)==null||be.blur(),(he=(Ne=s.value)==null?void 0:Ne.blur)==null||he.call(Ne)},vt=be=>{var Ne,he,ze;(Ne=l.value)!=null&&Ne.isFocusInsideContent(be)||(he=u.value)!=null&&he.isFocusInsideContent(be)||(ze=f.value)!=null&&ze.contains(be.relatedTarget)||(t.visible&&Qe(),t.focused=!1,n.emit("blur",be))},kt=be=>{oe(be)},Qe=()=>{t.visible=!1},ye=be=>{t.visible&&(be.preventDefault(),be.stopPropagation(),t.visible=!1)},fe=be=>{be&&!t.mouseEnter||C.value||(t.menuVisibleOnFocus?t.menuVisibleOnFocus=!1:(!l.value||!l.value.isFocusInsideContent())&&(t.visible=!t.visible),Fe())},le=()=>{t.visible?E.value[t.hoverIndex]&&pe(E.value[t.hoverIndex]):fe()},ke=be=>Mt(be.value)?Sn(be.value,e.valueKey):be.value,te=P(()=>E.value.filter(be=>be.visible).every(be=>be.disabled)),Ve=P(()=>e.multiple?t.selected.slice(0,e.maxCollapseTags):[]),st=P(()=>e.multiple?t.selected.slice(e.maxCollapseTags):[]),It=be=>{if(!t.visible){t.visible=!0;return}if(!(t.options.size===0||t.filteredOptionsCount===0)&&!t.isOnComposition&&!te.value){be==="next"?(t.hoverIndex++,t.hoverIndex===t.options.size&&(t.hoverIndex=0)):be==="prev"&&(t.hoverIndex--,t.hoverIndex<0&&(t.hoverIndex=t.options.size-1));const Ne=E.value[t.hoverIndex];(Ne.disabled===!0||Ne.states.groupDisabled===!0||!Ne.visible)&&It(be),Ue(()=>Ee(h.value))}},zn=()=>{t.mouseEnter=!0},Zn=()=>{t.mouseEnter=!1},oa=(be,Ne)=>{var he,ze;X(be,Ne),(ze=(he=u.value)==null?void 0:he.updatePopper)==null||ze.call(he)},pr=P(()=>({maxWidth:`${y(t.inputWidth)-32-(M.value?22:0)}px`,width:"100%"}));return{optionList:g,optionsArray:E,selectSize:B,handleResize:J,debouncedOnInputChange:j,debouncedQueryChange:de,deletePrevTag:W,deleteTag:X,deleteSelected:oe,handleOptionSelect:pe,scrollToOption:Ee,readonly:w,resetInputHeight:$,showClose:S,iconComponent:x,iconReverse:T,showNewOption:L,collapseTagSize:N,setSelected:U,managePlaceholder:z,selectDisabled:C,emptyText:k,toggleLastOptionHitState:$e,resetInputState:Te,handleComposition:Be,onOptionCreate:Ce,onOptionDestroy:we,handleMenuEnter:We,handleFocus:Ae,focus:Fe,blur:rt,handleBlur:vt,handleClearClick:kt,handleClose:Qe,handleKeydownEscape:ye,toggleMenu:fe,selectOption:le,getValueKey:ke,navigateOptions:It,handleDeleteTooltipTag:oa,dropMenuVisible:O,queryChange:v,groupQueryChange:p,showTagList:Ve,collapseTagList:st,selectTagsStyle:pr,reference:i,input:o,iOSInput:s,tooltipRef:l,tagTooltipRef:u,tags:c,selectWrapper:f,scrollbar:d,handleMouseEnter:zn,handleMouseLeave:Zn}};var ywe=ne({name:"ElOptions",emits:["update-options"],setup(e,{slots:t,emit:n}){let r=[];function a(i,o){if(i.length!==o.length)return!1;for(const[s]of i.entries())if(i[s]!=o[s])return!1;return!0}return()=>{var i,o;const s=(i=t.default)==null?void 0:i.call(t),l=[];function u(c){Array.isArray(c)&&c.forEach(f=>{var d,h,v,p;const g=(d=(f==null?void 0:f.type)||{})==null?void 0:d.name;g==="ElOptionGroup"?u(!lt(f.children)&&!Array.isArray(f.children)&&it((h=f.children)==null?void 0:h.default)?(v=f.children)==null?void 0:v.default():f.children):g==="ElOption"?l.push((p=f.props)==null?void 0:p.label):Array.isArray(f.children)&&u(f.children)})}return s.length&&u((o=s[0])==null?void 0:o.children),a(l,r)||(r=l,n("update-options",l)),s}}});const GP="ElSelect",bwe=ne({name:GP,componentName:GP,components:{ElInput:Rr,ElSelectMenu:pwe,ElOption:YM,ElOptions:ywe,ElTag:Qv,ElScrollbar:hs,ElTooltip:ea,ElIcon:Ke},directives:{ClickOutside:vl},props:{name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:{type:String,validator:Yb},effect:{type:String,default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:Object,default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},teleported:cr.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:fn,default:Ml},fitInputWidth:Boolean,suffixIcon:{type:fn,default:Tl},tagType:{...BM.type,default:"info"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,suffixTransition:{type:Boolean,default:!0},placement:{type:String,values:wc,default:"bottom-start"},ariaLabel:{type:String,default:void 0}},emits:[wt,mn,"remove-tag","clear","visible-change","focus","blur"],setup(e,t){const n=Me("select"),r=Me("input"),{t:a}=Ht(),i=gwe(e),{optionList:o,optionsArray:s,selectSize:l,readonly:u,handleResize:c,collapseTagSize:f,debouncedOnInputChange:d,debouncedQueryChange:h,deletePrevTag:v,deleteTag:p,deleteSelected:g,handleOptionSelect:m,scrollToOption:b,setSelected:_,resetInputHeight:w,managePlaceholder:C,showClose:S,selectDisabled:x,iconComponent:T,iconReverse:M,showNewOption:A,emptyText:k,toggleLastOptionHitState:E,resetInputState:D,handleComposition:L,onOptionCreate:B,onOptionDestroy:N,handleMenuEnter:O,handleFocus:$,focus:I,blur:z,handleBlur:G,handleClearClick:U,handleClose:Z,handleKeydownEscape:ae,toggleMenu:J,selectOption:Q,getValueKey:ee,navigateOptions:j,handleDeleteTooltipTag:de,dropMenuVisible:ve,reference:ie,input:W,iOSInput:X,tooltipRef:oe,tagTooltipRef:pe,tags:Se,selectWrapper:me,scrollbar:Ee,queryChange:Ce,groupQueryChange:we,handleMouseEnter:Te,handleMouseLeave:$e,showTagList:Be,collapseTagList:We,selectTagsStyle:Ae}=mwe(e,i,t),{inputWidth:Fe,selected:rt,inputLength:vt,filteredOptionsCount:kt,visible:Qe,selectedLabel:ye,hoverIndex:fe,query:le,inputHovering:ke,currentPlaceholder:te,menuVisibleOnFocus:Ve,isOnComposition:st,options:It,cachedOptions:zn,optionsCount:Zn,prefixWidth:oa}=or(i),pr=P(()=>{const Ar=[n.b()],$l=y(l);return $l&&Ar.push(n.m($l)),e.disabled&&Ar.push(n.m("disabled")),Ar}),be=P(()=>[n.e("tags"),n.is("disabled",y(x))]),Ne=P(()=>[n.b("tags-wrapper"),{"has-prefix":y(oa)&&y(rt).length}]),he=P(()=>[n.e("input"),n.is(y(l)),n.is("disabled",y(x))]),ze=P(()=>[n.e("input"),n.is(y(l)),n.em("input","iOS")]),At=P(()=>[n.is("empty",!e.allowCreate&&!!y(le)&&y(kt)===0)]),Wt=P(()=>({maxWidth:`${y(Fe)>123?y(Fe)-123:y(Fe)-75}px`})),Jn=P(()=>({marginLeft:`${y(oa)}px`,flexGrow:1,width:`${y(vt)/(y(Fe)-32)}%`,maxWidth:`${y(Fe)-42}px`}));Et(ng,jt({props:e,options:It,optionsArray:s,cachedOptions:zn,optionsCount:Zn,filteredOptionsCount:kt,hoverIndex:fe,handleOptionSelect:m,onOptionCreate:B,onOptionDestroy:N,selectWrapper:me,selected:rt,setSelected:_,queryChange:Ce,groupQueryChange:we})),yt(()=>{i.cachedPlaceHolder=te.value=e.placeholder||(()=>a("el.select.placeholder")),e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(te.value=""),$r(me,c),e.remote&&e.multiple&&w(),Ue(()=>{const Ar=ie.value&&ie.value.$el;if(Ar&&(Fe.value=Ar.getBoundingClientRect().width,t.slots.prefix)){const $l=Ar.querySelector(`.${r.e("prefix")}`);oa.value=Math.max($l.getBoundingClientRect().width+11,30)}}),_()}),e.multiple&&!Array.isArray(e.modelValue)&&t.emit(wt,[]),!e.multiple&&Array.isArray(e.modelValue)&&t.emit(wt,"");const Qn=P(()=>{var Ar,$l;return($l=(Ar=oe.value)==null?void 0:Ar.popperRef)==null?void 0:$l.contentRef});return{isIOS:jV,onOptionsRendered:Ar=>{o.value=Ar},prefixWidth:oa,selectSize:l,readonly:u,handleResize:c,collapseTagSize:f,debouncedOnInputChange:d,debouncedQueryChange:h,deletePrevTag:v,deleteTag:p,handleDeleteTooltipTag:de,deleteSelected:g,handleOptionSelect:m,scrollToOption:b,inputWidth:Fe,selected:rt,inputLength:vt,filteredOptionsCount:kt,visible:Qe,selectedLabel:ye,hoverIndex:fe,query:le,inputHovering:ke,currentPlaceholder:te,menuVisibleOnFocus:Ve,isOnComposition:st,options:It,resetInputHeight:w,managePlaceholder:C,showClose:S,selectDisabled:x,iconComponent:T,iconReverse:M,showNewOption:A,emptyText:k,toggleLastOptionHitState:E,resetInputState:D,handleComposition:L,handleMenuEnter:O,handleFocus:$,focus:I,blur:z,handleBlur:G,handleClearClick:U,handleClose:Z,handleKeydownEscape:ae,toggleMenu:J,selectOption:Q,getValueKey:ee,navigateOptions:j,dropMenuVisible:ve,reference:ie,input:W,iOSInput:X,tooltipRef:oe,popperPaneRef:Qn,tags:Se,selectWrapper:me,scrollbar:Ee,wrapperKls:pr,tagsKls:be,tagWrapperKls:Ne,inputKls:he,iOSInputKls:ze,scrollbarKls:At,selectTagsStyle:Ae,nsSelect:n,tagTextStyle:Wt,inputStyle:Jn,handleMouseEnter:Te,handleMouseLeave:$e,showTagList:Be,collapseTagList:We,tagTooltipRef:pe}}}),_we=["disabled","autocomplete","aria-label"],wwe=["disabled"],Swe={style:{height:"100%",display:"flex","justify-content":"center","align-items":"center"}};function Cwe(e,t,n,r,a,i){const o=ct("el-tag"),s=ct("el-tooltip"),l=ct("el-icon"),u=ct("el-input"),c=ct("el-option"),f=ct("el-options"),d=ct("el-scrollbar"),h=ct("el-select-menu"),v=$v("click-outside");return dt((R(),K("div",{ref:"selectWrapper",class:V(e.wrapperKls),onMouseenter:t[22]||(t[22]=(...p)=>e.handleMouseEnter&&e.handleMouseEnter(...p)),onMouseleave:t[23]||(t[23]=(...p)=>e.handleMouseLeave&&e.handleMouseLeave(...p)),onClick:t[24]||(t[24]=tt((...p)=>e.toggleMenu&&e.toggleMenu(...p),["stop"]))},[q(s,{ref:"tooltipRef",visible:e.dropMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,onShow:e.handleMenuEnter},{default:re(()=>[Y("div",{class:"select-trigger",onMouseenter:t[20]||(t[20]=p=>e.inputHovering=!0),onMouseleave:t[21]||(t[21]=p=>e.inputHovering=!1)},[e.multiple?(R(),K("div",{key:0,ref:"tags",tabindex:"-1",class:V(e.tagsKls),style:Ye(e.selectTagsStyle),onClick:t[15]||(t[15]=(...p)=>e.focus&&e.focus(...p))},[e.collapseTags&&e.selected.length?(R(),ce(Bn,{key:0,onAfterLeave:e.resetInputHeight},{default:re(()=>[Y("span",{class:V(e.tagWrapperKls)},[(R(!0),K(je,null,Ot(e.showTagList,p=>(R(),ce(o,{key:e.getValueKey(p),closable:!e.selectDisabled&&!p.isDisabled,size:e.collapseTagSize,hit:p.hitState,type:e.tagType,"disable-transitions":"",onClose:g=>e.deleteTag(g,p)},{default:re(()=>[Y("span",{class:V(e.nsSelect.e("tags-text")),style:Ye(e.tagTextStyle)},De(p.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128)),e.selected.length>e.maxCollapseTags?(R(),ce(o,{key:0,closable:!1,size:e.collapseTagSize,type:e.tagType,"disable-transitions":""},{default:re(()=>[e.collapseTagsTooltip?(R(),ce(s,{key:0,ref:"tagTooltipRef",disabled:e.dropMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:re(()=>[Y("span",{class:V(e.nsSelect.e("tags-text"))},"+ "+De(e.selected.length-e.maxCollapseTags),3)]),content:re(()=>[Y("div",{class:V(e.nsSelect.e("collapse-tags"))},[(R(!0),K(je,null,Ot(e.collapseTagList,p=>(R(),K("div",{key:e.getValueKey(p),class:V(e.nsSelect.e("collapse-tag"))},[q(o,{class:"in-tooltip",closable:!e.selectDisabled&&!p.isDisabled,size:e.collapseTagSize,hit:p.hitState,type:e.tagType,"disable-transitions":"",style:{margin:"2px"},onClose:g=>e.handleDeleteTooltipTag(g,p)},{default:re(()=>[Y("span",{class:V(e.nsSelect.e("tags-text")),style:Ye({maxWidth:e.inputWidth-75+"px"})},De(p.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect","teleported"])):(R(),K("span",{key:1,class:V(e.nsSelect.e("tags-text"))},"+ "+De(e.selected.length-e.maxCollapseTags),3))]),_:1},8,["size","type"])):se("v-if",!0)],2)]),_:1},8,["onAfterLeave"])):se("v-if",!0),e.collapseTags?se("v-if",!0):(R(),ce(Bn,{key:1,onAfterLeave:e.resetInputHeight},{default:re(()=>[Y("span",{class:V(e.tagWrapperKls),style:Ye(e.prefixWidth&&e.selected.length?{marginLeft:`${e.prefixWidth}px`}:"")},[(R(!0),K(je,null,Ot(e.selected,p=>(R(),ce(o,{key:e.getValueKey(p),closable:!e.selectDisabled&&!p.isDisabled,size:e.collapseTagSize,hit:p.hitState,type:e.tagType,"disable-transitions":"",onClose:g=>e.deleteTag(g,p)},{default:re(()=>[Y("span",{class:V(e.nsSelect.e("tags-text")),style:Ye({maxWidth:e.inputWidth-75+"px"})},De(p.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128))],6)]),_:1},8,["onAfterLeave"])),e.filterable&&!e.selectDisabled?dt((R(),K("input",{key:2,ref:"input","onUpdate:modelValue":t[0]||(t[0]=p=>e.query=p),type:"text",class:V(e.inputKls),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:Ye(e.inputStyle),"aria-label":e.ariaLabel,onFocus:t[1]||(t[1]=(...p)=>e.handleFocus&&e.handleFocus(...p)),onBlur:t[2]||(t[2]=(...p)=>e.handleBlur&&e.handleBlur(...p)),onKeyup:t[3]||(t[3]=(...p)=>e.managePlaceholder&&e.managePlaceholder(...p)),onKeydown:[t[4]||(t[4]=(...p)=>e.resetInputState&&e.resetInputState(...p)),t[5]||(t[5]=Ft(tt(p=>e.navigateOptions("next"),["prevent"]),["down"])),t[6]||(t[6]=Ft(tt(p=>e.navigateOptions("prev"),["prevent"]),["up"])),t[7]||(t[7]=Ft((...p)=>e.handleKeydownEscape&&e.handleKeydownEscape(...p),["esc"])),t[8]||(t[8]=Ft(tt((...p)=>e.selectOption&&e.selectOption(...p),["stop","prevent"]),["enter"])),t[9]||(t[9]=Ft((...p)=>e.deletePrevTag&&e.deletePrevTag(...p),["delete"])),t[10]||(t[10]=Ft(p=>e.visible=!1,["tab"]))],onCompositionstart:t[11]||(t[11]=(...p)=>e.handleComposition&&e.handleComposition(...p)),onCompositionupdate:t[12]||(t[12]=(...p)=>e.handleComposition&&e.handleComposition(...p)),onCompositionend:t[13]||(t[13]=(...p)=>e.handleComposition&&e.handleComposition(...p)),onInput:t[14]||(t[14]=(...p)=>e.debouncedQueryChange&&e.debouncedQueryChange(...p))},null,46,_we)),[[VT,e.query]]):se("v-if",!0)],6)):se("v-if",!0),se(" fix: https://github.com/element-plus/element-plus/issues/11415 "),e.isIOS&&!e.multiple&&e.filterable&&e.readonly?(R(),K("input",{key:1,ref:"iOSInput",class:V(e.iOSInputKls),disabled:e.selectDisabled,type:"text"},null,10,wwe)):se("v-if",!0),q(u,{id:e.id,ref:"reference",modelValue:e.selectedLabel,"onUpdate:modelValue":t[16]||(t[16]=p=>e.selectedLabel=p),type:"text",placeholder:typeof e.currentPlaceholder=="function"?e.currentPlaceholder():e.currentPlaceholder,name:e.name,autocomplete:e.autocomplete,size:e.selectSize,disabled:e.selectDisabled,readonly:e.readonly,"validate-event":!1,class:V([e.nsSelect.is("focus",e.visible)]),tabindex:e.multiple&&e.filterable?-1:void 0,label:e.ariaLabel,onFocus:e.handleFocus,onBlur:e.handleBlur,onInput:e.debouncedOnInputChange,onPaste:e.debouncedOnInputChange,onCompositionstart:e.handleComposition,onCompositionupdate:e.handleComposition,onCompositionend:e.handleComposition,onKeydown:[t[17]||(t[17]=Ft(tt(p=>e.navigateOptions("next"),["stop","prevent"]),["down"])),t[18]||(t[18]=Ft(tt(p=>e.navigateOptions("prev"),["stop","prevent"]),["up"])),Ft(tt(e.selectOption,["stop","prevent"]),["enter"]),Ft(e.handleKeydownEscape,["esc"]),t[19]||(t[19]=Ft(p=>e.visible=!1,["tab"]))]},Jo({suffix:re(()=>[e.iconComponent&&!e.showClose?(R(),ce(l,{key:0,class:V([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:re(()=>[(R(),ce(Ct(e.iconComponent)))]),_:1},8,["class"])):se("v-if",!0),e.showClose&&e.clearIcon?(R(),ce(l,{key:1,class:V([e.nsSelect.e("caret"),e.nsSelect.e("icon")]),onClick:e.handleClearClick},{default:re(()=>[(R(),ce(Ct(e.clearIcon)))]),_:1},8,["class","onClick"])):se("v-if",!0)]),_:2},[e.$slots.prefix?{name:"prefix",fn:re(()=>[Y("div",Swe,[_e(e.$slots,"prefix")])])}:void 0]),1032,["id","modelValue","placeholder","name","autocomplete","size","disabled","readonly","class","tabindex","label","onFocus","onBlur","onInput","onPaste","onCompositionstart","onCompositionupdate","onCompositionend","onKeydown"])],32)]),content:re(()=>[q(h,null,{default:re(()=>[dt(q(d,{ref:"scrollbar",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:V(e.scrollbarKls)},{default:re(()=>[e.showNewOption?(R(),ce(c,{key:0,value:e.query,created:!0},null,8,["value"])):se("v-if",!0),q(f,{onUpdateOptions:e.onOptionsRendered},{default:re(()=>[_e(e.$slots,"default")]),_:3},8,["onUpdateOptions"])]),_:3},8,["wrap-class","view-class","class"]),[[Kt,e.options.size>0&&!e.loading]]),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&e.options.size===0)?(R(),K(je,{key:0},[e.$slots.empty?_e(e.$slots,"empty",{key:0}):(R(),K("p",{key:1,class:V(e.nsSelect.be("dropdown","empty"))},De(e.emptyText),3))],64)):se("v-if",!0)]),_:3})]),_:3},8,["visible","placement","teleported","popper-class","popper-options","effect","transition","persistent","onShow"])],34)),[[v,e.handleClose,e.popperPaneRef]])}var xwe=Pe(bwe,[["render",Cwe],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select.vue"]]);const Twe=ne({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=Me("select"),n=H(!0),r=gt(),a=H([]);Et(M8,jt({...or(e)}));const i=Ge(ng);yt(()=>{a.value=o(r.subTree)});const o=l=>{const u=[];return Array.isArray(l.children)&&l.children.forEach(c=>{var f;c.type&&c.type.name==="ElOption"&&c.component&&c.component.proxy?u.push(c.component.proxy):(f=c.children)!=null&&f.length&&u.push(...o(c))}),u},{groupQueryChange:s}=tn(i);return xe(s,()=>{n.value=a.value.some(l=>l.visible===!0)},{flush:"post"}),{visible:n,ns:t}}});function Mwe(e,t,n,r,a,i){return dt((R(),K("ul",{class:V(e.ns.be("group","wrap"))},[Y("li",{class:V(e.ns.be("group","title"))},De(e.label),3),Y("li",null,[Y("ul",{class:V(e.ns.b("group"))},[_e(e.$slots,"default")],2)])],2)),[[Kt,e.visible]])}var k8=Pe(Twe,[["render",Mwe],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option-group.vue"]]);const sc=_t(xwe,{Option:YM,OptionGroup:k8}),p0=Dn(YM),kwe=Dn(k8),jM=()=>Ge(T8,{}),Awe=Le({pageSize:{type:Number,required:!0},pageSizes:{type:ue(Array),default:()=>Cn([10,20,30,40,50,100])},popperClass:{type:String},disabled:Boolean,teleported:Boolean,size:{type:String,values:Mo}}),Ewe=ne({name:"ElPaginationSizes"}),Iwe=ne({...Ewe,props:Awe,emits:["page-size-change"],setup(e,{emit:t}){const n=e,{t:r}=Ht(),a=Me("pagination"),i=jM(),o=H(n.pageSize);xe(()=>n.pageSizes,(u,c)=>{if(!pa(u,c)&&Array.isArray(u)){const f=u.includes(n.pageSize)?n.pageSize:n.pageSizes[0];t("page-size-change",f)}}),xe(()=>n.pageSize,u=>{o.value=u});const s=P(()=>n.pageSizes);function l(u){var c;u!==o.value&&(o.value=u,(c=i.handleSizeChange)==null||c.call(i,Number(u)))}return(u,c)=>(R(),K("span",{class:V(y(a).e("sizes"))},[q(y(sc),{"model-value":o.value,disabled:u.disabled,"popper-class":u.popperClass,size:u.size,teleported:u.teleported,"validate-event":!1,onChange:l},{default:re(()=>[(R(!0),K(je,null,Ot(y(s),f=>(R(),ce(y(p0),{key:f,value:f,label:f+y(r)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","size","teleported"])],2))}});var Dwe=Pe(Iwe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/sizes.vue"]]);const Pwe=Le({size:{type:String,values:Mo}}),Lwe=["disabled"],Rwe=ne({name:"ElPaginationJumper"}),Owe=ne({...Rwe,props:Pwe,setup(e){const{t}=Ht(),n=Me("pagination"),{pageCount:r,disabled:a,currentPage:i,changeEvent:o}=jM(),s=H(),l=P(()=>{var f;return(f=s.value)!=null?f:i==null?void 0:i.value});function u(f){s.value=f?+f:""}function c(f){f=Math.trunc(+f),o==null||o(f),s.value=void 0}return(f,d)=>(R(),K("span",{class:V(y(n).e("jump")),disabled:y(a)},[Y("span",{class:V([y(n).e("goto")])},De(y(t)("el.pagination.goto")),3),q(y(Rr),{size:f.size,class:V([y(n).e("editor"),y(n).is("in-pagination")]),min:1,max:y(r),disabled:y(a),"model-value":y(l),"validate-event":!1,label:y(t)("el.pagination.page"),type:"number","onUpdate:modelValue":u,onChange:c},null,8,["size","class","max","disabled","model-value","label"]),Y("span",{class:V([y(n).e("classifier")])},De(y(t)("el.pagination.pageClassifier")),3)],10,Lwe))}});var $we=Pe(Owe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/jumper.vue"]]);const Nwe=Le({total:{type:Number,default:1e3}}),Bwe=["disabled"],Vwe=ne({name:"ElPaginationTotal"}),zwe=ne({...Vwe,props:Nwe,setup(e){const{t}=Ht(),n=Me("pagination"),{disabled:r}=jM();return(a,i)=>(R(),K("span",{class:V(y(n).e("total")),disabled:y(r)},De(y(t)("el.pagination.total",{total:a.total})),11,Bwe))}});var Fwe=Pe(zwe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/total.vue"]]);const Hwe=Le({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),Gwe=["onKeyup"],Wwe=["aria-current","aria-label","tabindex"],Kwe=["tabindex","aria-label"],Uwe=["aria-current","aria-label","tabindex"],Ywe=["tabindex","aria-label"],jwe=["aria-current","aria-label","tabindex"],qwe=ne({name:"ElPaginationPager"}),Xwe=ne({...qwe,props:Hwe,emits:["change"],setup(e,{emit:t}){const n=e,r=Me("pager"),a=Me("icon"),{t:i}=Ht(),o=H(!1),s=H(!1),l=H(!1),u=H(!1),c=H(!1),f=H(!1),d=P(()=>{const w=n.pagerCount,C=(w-1)/2,S=Number(n.currentPage),x=Number(n.pageCount);let T=!1,M=!1;x>w&&(S>w-C&&(T=!0),S<x-C&&(M=!0));const A=[];if(T&&!M){const k=x-(w-2);for(let E=k;E<x;E++)A.push(E)}else if(!T&&M)for(let k=2;k<w;k++)A.push(k);else if(T&&M){const k=Math.floor(w/2)-1;for(let E=S-k;E<=S+k;E++)A.push(E)}else for(let k=2;k<x;k++)A.push(k);return A}),h=P(()=>["more","btn-quickprev",a.b(),r.is("disabled",n.disabled)]),v=P(()=>["more","btn-quicknext",a.b(),r.is("disabled",n.disabled)]),p=P(()=>n.disabled?-1:0);Ia(()=>{const w=(n.pagerCount-1)/2;o.value=!1,s.value=!1,n.pageCount>n.pagerCount&&(n.currentPage>n.pagerCount-w&&(o.value=!0),n.currentPage<n.pageCount-w&&(s.value=!0))});function g(w=!1){n.disabled||(w?l.value=!0:u.value=!0)}function m(w=!1){w?c.value=!0:f.value=!0}function b(w){const C=w.target;if(C.tagName.toLowerCase()==="li"&&Array.from(C.classList).includes("number")){const S=Number(C.textContent);S!==n.currentPage&&t("change",S)}else C.tagName.toLowerCase()==="li"&&Array.from(C.classList).includes("more")&&_(w)}function _(w){const C=w.target;if(C.tagName.toLowerCase()==="ul"||n.disabled)return;let S=Number(C.textContent);const x=n.pageCount,T=n.currentPage,M=n.pagerCount-2;C.className.includes("more")&&(C.className.includes("quickprev")?S=T-M:C.className.includes("quicknext")&&(S=T+M)),Number.isNaN(+S)||(S<1&&(S=1),S>x&&(S=x)),S!==T&&t("change",S)}return(w,C)=>(R(),K("ul",{class:V(y(r).b()),onClick:_,onKeyup:Ft(b,["enter"])},[w.pageCount>0?(R(),K("li",{key:0,class:V([[y(r).is("active",w.currentPage===1),y(r).is("disabled",w.disabled)],"number"]),"aria-current":w.currentPage===1,"aria-label":y(i)("el.pagination.currentPage",{pager:1}),tabindex:y(p)}," 1 ",10,Wwe)):se("v-if",!0),o.value?(R(),K("li",{key:1,class:V(y(h)),tabindex:y(p),"aria-label":y(i)("el.pagination.prevPages",{pager:w.pagerCount-2}),onMouseenter:C[0]||(C[0]=S=>g(!0)),onMouseleave:C[1]||(C[1]=S=>l.value=!1),onFocus:C[2]||(C[2]=S=>m(!0)),onBlur:C[3]||(C[3]=S=>c.value=!1)},[(l.value||c.value)&&!w.disabled?(R(),ce(y(Xf),{key:0})):(R(),ce(y(LD),{key:1}))],42,Kwe)):se("v-if",!0),(R(!0),K(je,null,Ot(y(d),S=>(R(),K("li",{key:S,class:V([[y(r).is("active",w.currentPage===S),y(r).is("disabled",w.disabled)],"number"]),"aria-current":w.currentPage===S,"aria-label":y(i)("el.pagination.currentPage",{pager:S}),tabindex:y(p)},De(S),11,Uwe))),128)),s.value?(R(),K("li",{key:2,class:V(y(v)),tabindex:y(p),"aria-label":y(i)("el.pagination.nextPages",{pager:w.pagerCount-2}),onMouseenter:C[4]||(C[4]=S=>g()),onMouseleave:C[5]||(C[5]=S=>u.value=!1),onFocus:C[6]||(C[6]=S=>m()),onBlur:C[7]||(C[7]=S=>f.value=!1)},[(u.value||f.value)&&!w.disabled?(R(),ce(y(Zf),{key:0})):(R(),ce(y(LD),{key:1}))],42,Ywe)):se("v-if",!0),w.pageCount>1?(R(),K("li",{key:3,class:V([[y(r).is("active",w.currentPage===w.pageCount),y(r).is("disabled",w.disabled)],"number"]),"aria-current":w.currentPage===w.pageCount,"aria-label":y(i)("el.pagination.currentPage",{pager:w.pageCount}),tabindex:y(p)},De(w.pageCount),11,jwe)):se("v-if",!0)],42,Gwe))}});var Zwe=Pe(Xwe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/pager.vue"]]);const Vr=e=>typeof e!="number",Jwe=Le({pageSize:Number,defaultPageSize:Number,total:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>at(e)&&Math.trunc(e)===e&&e>4&&e<22&&e%2===1,default:7},currentPage:Number,defaultCurrentPage:Number,layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:ue(Array),default:()=>Cn([10,20,30,40,50,100])},popperClass:{type:String,default:""},prevText:{type:String,default:""},prevIcon:{type:fn,default:()=>cl},nextText:{type:String,default:""},nextIcon:{type:fn,default:()=>jr},teleported:{type:Boolean,default:!0},small:Boolean,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean}),Qwe={"update:current-page":e=>at(e),"update:page-size":e=>at(e),"size-change":e=>at(e),"current-change":e=>at(e),"prev-click":e=>at(e),"next-click":e=>at(e)},WP="ElPagination";var eSe=ne({name:WP,props:Jwe,emits:Qwe,setup(e,{emit:t,slots:n}){const{t:r}=Ht(),a=Me("pagination"),i=gt().vnode.props||{},o="onUpdate:currentPage"in i||"onUpdate:current-page"in i||"onCurrentChange"in i,s="onUpdate:pageSize"in i||"onUpdate:page-size"in i||"onSizeChange"in i,l=P(()=>{if(Vr(e.total)&&Vr(e.pageCount)||!Vr(e.currentPage)&&!o)return!1;if(e.layout.includes("sizes")){if(Vr(e.pageCount)){if(!Vr(e.total)&&!Vr(e.pageSize)&&!s)return!1}else if(!s)return!1}return!0}),u=H(Vr(e.defaultPageSize)?10:e.defaultPageSize),c=H(Vr(e.defaultCurrentPage)?1:e.defaultCurrentPage),f=P({get(){return Vr(e.pageSize)?u.value:e.pageSize},set(_){Vr(e.pageSize)&&(u.value=_),s&&(t("update:page-size",_),t("size-change",_))}}),d=P(()=>{let _=0;return Vr(e.pageCount)?Vr(e.total)||(_=Math.max(1,Math.ceil(e.total/f.value))):_=e.pageCount,_}),h=P({get(){return Vr(e.currentPage)?c.value:e.currentPage},set(_){let w=_;_<1?w=1:_>d.value&&(w=d.value),Vr(e.currentPage)&&(c.value=w),o&&(t("update:current-page",w),t("current-change",w))}});xe(d,_=>{h.value>_&&(h.value=_)});function v(_){h.value=_}function p(_){f.value=_;const w=d.value;h.value>w&&(h.value=w)}function g(){e.disabled||(h.value-=1,t("prev-click",h.value))}function m(){e.disabled||(h.value+=1,t("next-click",h.value))}function b(_,w){_&&(_.props||(_.props={}),_.props.class=[_.props.class,w].join(" "))}return Et(T8,{pageCount:d,disabled:P(()=>e.disabled),currentPage:h,changeEvent:v,handleSizeChange:p}),()=>{var _,w;if(!l.value)return r("el.pagination.deprecationWarning"),null;if(!e.layout||e.hideOnSinglePage&&d.value<=1)return null;const C=[],S=[],x=Ze("div",{class:a.e("rightwrapper")},S),T={prev:Ze(rwe,{disabled:e.disabled,currentPage:h.value,prevText:e.prevText,prevIcon:e.prevIcon,onClick:g}),jumper:Ze($we,{size:e.small?"small":"default"}),pager:Ze(Zwe,{currentPage:h.value,pageCount:d.value,pagerCount:e.pagerCount,onChange:v,disabled:e.disabled}),next:Ze(uwe,{disabled:e.disabled,currentPage:h.value,pageCount:d.value,nextText:e.nextText,nextIcon:e.nextIcon,onClick:m}),sizes:Ze(Dwe,{pageSize:f.value,pageSizes:e.pageSizes,popperClass:e.popperClass,disabled:e.disabled,teleported:e.teleported,size:e.small?"small":"default"}),slot:(w=(_=n==null?void 0:n.default)==null?void 0:_.call(n))!=null?w:null,total:Ze(Fwe,{total:Vr(e.total)?0:e.total})},M=e.layout.split(",").map(k=>k.trim());let A=!1;return M.forEach(k=>{if(k==="->"){A=!0;return}A?S.push(T[k]):C.push(T[k])}),b(C[0],a.is("first")),b(C[C.length-1],a.is("last")),A&&S.length>0&&(b(S[0],a.is("first")),b(S[S.length-1],a.is("last")),C.push(x)),Ze("div",{class:[a.b(),a.is("background",e.background),{[a.m("small")]:e.small}]},C)}}});const tSe=_t(eSe),nSe=Le({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:$C,default:"primary"},cancelButtonType:{type:String,values:$C,default:"text"},icon:{type:fn,default:()=>Koe},iconColor:{type:String,default:"#f90"},hideIcon:{type:Boolean,default:!1},hideAfter:{type:Number,default:200},teleported:cr.teleported,persistent:cr.persistent,width:{type:[String,Number],default:150}}),rSe={confirm:e=>e instanceof MouseEvent,cancel:e=>e instanceof MouseEvent},aSe=ne({name:"ElPopconfirm"}),iSe=ne({...aSe,props:nSe,emits:rSe,setup(e,{emit:t}){const n=e,{t:r}=Ht(),a=Me("popconfirm"),i=H(),o=()=>{var d,h;(h=(d=i.value)==null?void 0:d.onClose)==null||h.call(d)},s=P(()=>({width:On(n.width)})),l=d=>{t("confirm",d),o()},u=d=>{t("cancel",d),o()},c=P(()=>n.confirmButtonText||r("el.popconfirm.confirmButtonText")),f=P(()=>n.cancelButtonText||r("el.popconfirm.cancelButtonText"));return(d,h)=>(R(),ce(y(ea),St({ref_key:"tooltipRef",ref:i,trigger:"click",effect:"light"},d.$attrs,{"popper-class":`${y(a).namespace.value}-popover`,"popper-style":y(s),teleported:d.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":d.hideAfter,persistent:d.persistent}),{content:re(()=>[Y("div",{class:V(y(a).b())},[Y("div",{class:V(y(a).e("main"))},[!d.hideIcon&&d.icon?(R(),ce(y(Ke),{key:0,class:V(y(a).e("icon")),style:Ye({color:d.iconColor})},{default:re(()=>[(R(),ce(Ct(d.icon)))]),_:1},8,["class","style"])):se("v-if",!0),Ut(" "+De(d.title),1)],2),Y("div",{class:V(y(a).e("action"))},[q(y(_r),{size:"small",type:d.cancelButtonType==="text"?"":d.cancelButtonType,text:d.cancelButtonType==="text",onClick:u},{default:re(()=>[Ut(De(y(f)),1)]),_:1},8,["type","text"]),q(y(_r),{size:"small",type:d.confirmButtonType==="text"?"":d.confirmButtonType,text:d.confirmButtonType==="text",onClick:l},{default:re(()=>[Ut(De(y(c)),1)]),_:1},8,["type","text"])],2)],2)]),default:re(()=>[d.$slots.reference?_e(d.$slots,"reference",{key:0}):se("v-if",!0)]),_:3},16,["popper-class","popper-style","teleported","hide-after","persistent"]))}});var oSe=Pe(iSe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popconfirm/src/popconfirm.vue"]]);const sSe=_t(oSe),lSe=Le({trigger:Jv.trigger,placement:wy.placement,disabled:Jv.disabled,visible:cr.visible,transition:cr.transition,popperOptions:wy.popperOptions,tabindex:wy.tabindex,content:cr.content,popperStyle:cr.popperStyle,popperClass:cr.popperClass,enterable:{...cr.enterable,default:!0},effect:{...cr.effect,default:"light"},teleported:cr.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}}),uSe={"update:visible":e=>Un(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},cSe="onUpdate:visible",fSe=ne({name:"ElPopover"}),dSe=ne({...fSe,props:lSe,emits:uSe,setup(e,{expose:t,emit:n}){const r=e,a=P(()=>r[cSe]),i=Me("popover"),o=H(),s=P(()=>{var g;return(g=y(o))==null?void 0:g.popperRef}),l=P(()=>[{width:On(r.width)},r.popperStyle]),u=P(()=>[i.b(),r.popperClass,{[i.m("plain")]:!!r.content}]),c=P(()=>r.transition===`${i.namespace.value}-fade-in-linear`),f=()=>{var g;(g=o.value)==null||g.hide()},d=()=>{n("before-enter")},h=()=>{n("before-leave")},v=()=>{n("after-enter")},p=()=>{n("update:visible",!1),n("after-leave")};return t({popperRef:s,hide:f}),(g,m)=>(R(),ce(y(ea),St({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":y(u),"popper-style":y(l),teleported:g.teleported,persistent:g.persistent,"gpu-acceleration":y(c),"onUpdate:visible":y(a),onBeforeShow:d,onBeforeHide:h,onShow:v,onHide:p}),{content:re(()=>[g.title?(R(),K("div",{key:0,class:V(y(i).e("title")),role:"title"},De(g.title),3)):se("v-if",!0),_e(g.$slots,"default",{},()=>[Ut(De(g.content),1)])]),default:re(()=>[g.$slots.reference?_e(g.$slots,"reference",{key:0}):se("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 hSe=Pe(dSe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popover/src/popover.vue"]]);const KP=(e,t)=>{const n=t.arg||t.value,r=n==null?void 0:n.popperRef;r&&(r.triggerRef=e)};var vSe={mounted(e,t){KP(e,t)},updated(e,t){KP(e,t)}};const pSe="popover",A8=hle(vSe,pSe),gSe=_t(hSe,{directive:A8}),mSe=Le({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:e=>e>=0&&e<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:{type:Boolean,default:!1},duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:ue(String),default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:ue([String,Array,Function]),default:""},striped:Boolean,stripedFlow:Boolean,format:{type:ue(Function),default:e=>`${e}%`}}),ySe=["aria-valuenow"],bSe={viewBox:"0 0 100 100"},_Se=["d","stroke","stroke-linecap","stroke-width"],wSe=["d","stroke","opacity","stroke-linecap","stroke-width"],SSe={key:0},CSe=ne({name:"ElProgress"}),xSe=ne({...CSe,props:mSe,setup(e){const t=e,n={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},r=Me("progress"),a=P(()=>({width:`${t.percentage}%`,animationDuration:`${t.duration}s`,backgroundColor:b(t.percentage)})),i=P(()=>(t.strokeWidth/t.width*100).toFixed(1)),o=P(()=>["circle","dashboard"].includes(t.type)?Number.parseInt(`${50-Number.parseFloat(i.value)/2}`,10):0),s=P(()=>{const _=o.value,w=t.type==="dashboard";return`
  48. M 50 50
  49. m 0 ${w?"":"-"}${_}
  50. a ${_} ${_} 0 1 1 0 ${w?"-":""}${_*2}
  51. a ${_} ${_} 0 1 1 0 ${w?"":"-"}${_*2}
  52. `}),l=P(()=>2*Math.PI*o.value),u=P(()=>t.type==="dashboard"?.75:1),c=P(()=>`${-1*l.value*(1-u.value)/2}px`),f=P(()=>({strokeDasharray:`${l.value*u.value}px, ${l.value}px`,strokeDashoffset:c.value})),d=P(()=>({strokeDasharray:`${l.value*u.value*(t.percentage/100)}px, ${l.value}px`,strokeDashoffset:c.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),h=P(()=>{let _;return t.color?_=b(t.percentage):_=n[t.status]||n.default,_}),v=P(()=>t.status==="warning"?Kb:t.type==="line"?t.status==="success"?lM:Ml:t.status==="success"?Zp:Bi),p=P(()=>t.type==="line"?12+t.strokeWidth*.4:t.width*.111111+2),g=P(()=>t.format(t.percentage));function m(_){const w=100/_.length;return _.map((S,x)=>lt(S)?{color:S,percentage:(x+1)*w}:S).sort((S,x)=>S.percentage-x.percentage)}const b=_=>{var w;const{color:C}=t;if(it(C))return C(_);if(lt(C))return C;{const S=m(C);for(const x of S)if(x.percentage>_)return x.color;return(w=S[S.length-1])==null?void 0:w.color}};return(_,w)=>(R(),K("div",{class:V([y(r).b(),y(r).m(_.type),y(r).is(_.status),{[y(r).m("without-text")]:!_.showText,[y(r).m("text-inside")]:_.textInside}]),role:"progressbar","aria-valuenow":_.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[_.type==="line"?(R(),K("div",{key:0,class:V(y(r).b("bar"))},[Y("div",{class:V(y(r).be("bar","outer")),style:Ye({height:`${_.strokeWidth}px`})},[Y("div",{class:V([y(r).be("bar","inner"),{[y(r).bem("bar","inner","indeterminate")]:_.indeterminate},{[y(r).bem("bar","inner","striped")]:_.striped},{[y(r).bem("bar","inner","striped-flow")]:_.stripedFlow}]),style:Ye(y(a))},[(_.showText||_.$slots.default)&&_.textInside?(R(),K("div",{key:0,class:V(y(r).be("bar","innerText"))},[_e(_.$slots,"default",{percentage:_.percentage},()=>[Y("span",null,De(y(g)),1)])],2)):se("v-if",!0)],6)],6)],2)):(R(),K("div",{key:1,class:V(y(r).b("circle")),style:Ye({height:`${_.width}px`,width:`${_.width}px`})},[(R(),K("svg",bSe,[Y("path",{class:V(y(r).be("circle","track")),d:y(s),stroke:`var(${y(r).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":_.strokeLinecap,"stroke-width":y(i),fill:"none",style:Ye(y(f))},null,14,_Se),Y("path",{class:V(y(r).be("circle","path")),d:y(s),stroke:y(h),fill:"none",opacity:_.percentage?1:0,"stroke-linecap":_.strokeLinecap,"stroke-width":y(i),style:Ye(y(d))},null,14,wSe)]))],6)),(_.showText||_.$slots.default)&&!_.textInside?(R(),K("div",{key:2,class:V(y(r).e("text")),style:Ye({fontSize:`${y(p)}px`})},[_e(_.$slots,"default",{percentage:_.percentage},()=>[_.status?(R(),ce(y(Ke),{key:1},{default:re(()=>[(R(),ce(Ct(y(v))))]),_:1})):(R(),K("span",SSe,De(y(g)),1))])],6)):se("v-if",!0)],10,ySe))}});var TSe=Pe(xSe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/progress/src/progress.vue"]]);const E8=_t(TSe),MSe=Le({modelValue:{type:Number,default:0},id:{type:String,default:void 0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:ue([Array,Object]),default:()=>Cn(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:ue([Array,Object]),default:()=>[Bg,Bg,Bg]},voidIcon:{type:fn,default:()=>Bse},disabledVoidIcon:{type:fn,default:()=>Bg},disabled:Boolean,allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:ue(Array),default:()=>Cn(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:Sr,label:{type:String,default:void 0},clearable:{type:Boolean,default:!1}}),kSe={[mn]:e=>at(e),[wt]:e=>at(e)},ASe=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"],ESe=["onMousemove","onClick"],ISe=ne({name:"ElRate"}),DSe=ne({...ISe,props:MSe,emits:kSe,setup(e,{expose:t,emit:n}){const r=e;function a(N,O){const $=G=>Mt(G),I=Object.keys(O).map(G=>+G).filter(G=>{const U=O[G];return($(U)?U.excluded:!1)?N<G:N<=G}).sort((G,U)=>G-U),z=O[I[0]];return $(z)&&z.value||z}const i=Ge(Sc,void 0),o=Ge(So,void 0),s=qn(),l=Me("rate"),{inputId:u,isLabeledByFormItem:c}=Il(r,{formItemContext:o}),f=H(r.modelValue),d=H(-1),h=H(!0),v=P(()=>[l.b(),l.m(s.value)]),p=P(()=>r.disabled||(i==null?void 0:i.disabled)),g=P(()=>l.cssVarBlock({"void-color":r.voidColor,"disabled-void-color":r.disabledVoidColor,"fill-color":w.value})),m=P(()=>{let N="";return r.showScore?N=r.scoreTemplate.replace(/\{\s*value\s*\}/,p.value?`${r.modelValue}`:`${f.value}`):r.showText&&(N=r.texts[Math.ceil(f.value)-1]),N}),b=P(()=>r.modelValue*100-Math.floor(r.modelValue)*100),_=P(()=>He(r.colors)?{[r.lowThreshold]:r.colors[0],[r.highThreshold]:{value:r.colors[1],excluded:!0},[r.max]:r.colors[2]}:r.colors),w=P(()=>{const N=a(f.value,_.value);return Mt(N)?"":N}),C=P(()=>{let N="";return p.value?N=`${b.value}%`:r.allowHalf&&(N="50%"),{color:w.value,width:N}}),S=P(()=>{let N=He(r.icons)?[...r.icons]:{...r.icons};return N=Js(N),He(N)?{[r.lowThreshold]:N[0],[r.highThreshold]:{value:N[1],excluded:!0},[r.max]:N[2]}:N}),x=P(()=>a(r.modelValue,S.value)),T=P(()=>p.value?lt(r.disabledVoidIcon)?r.disabledVoidIcon:Js(r.disabledVoidIcon):lt(r.voidIcon)?r.voidIcon:Js(r.voidIcon)),M=P(()=>a(f.value,S.value));function A(N){const O=p.value&&b.value>0&&N-1<r.modelValue&&N>r.modelValue,$=r.allowHalf&&h.value&&N-.5<=f.value&&N>f.value;return O||$}function k(N){r.clearable&&N===r.modelValue&&(N=0),n(wt,N),r.modelValue!==N&&n("change",N)}function E(N){p.value||(r.allowHalf&&h.value?k(f.value):k(N))}function D(N){if(p.value)return;let O=f.value;const $=N.code;return $===Xe.up||$===Xe.right?(r.allowHalf?O+=.5:O+=1,N.stopPropagation(),N.preventDefault()):($===Xe.left||$===Xe.down)&&(r.allowHalf?O-=.5:O-=1,N.stopPropagation(),N.preventDefault()),O=O<0?0:O,O=O>r.max?r.max:O,n(wt,O),n("change",O),O}function L(N,O){if(!p.value){if(r.allowHalf&&O){let $=O.target;Li($,l.e("item"))&&($=$.querySelector(`.${l.e("icon")}`)),($.clientWidth===0||Li($,l.e("decimal")))&&($=$.parentNode),h.value=O.offsetX*2<=$.clientWidth,f.value=h.value?N-.5:N}else f.value=N;d.value=N}}function B(){p.value||(r.allowHalf&&(h.value=r.modelValue!==Math.floor(r.modelValue)),f.value=r.modelValue,d.value=-1)}return xe(()=>r.modelValue,N=>{f.value=N,h.value=r.modelValue!==Math.floor(r.modelValue)}),r.modelValue||n(wt,0),t({setCurrentValue:L,resetCurrentValue:B}),(N,O)=>{var $;return R(),K("div",{id:y(u),class:V([y(v),y(l).is("disabled",y(p))]),role:"slider","aria-label":y(c)?void 0:N.label||"rating","aria-labelledby":y(c)?($=y(o))==null?void 0:$.labelId:void 0,"aria-valuenow":f.value,"aria-valuetext":y(m)||void 0,"aria-valuemin":"0","aria-valuemax":N.max,tabindex:"0",style:Ye(y(g)),onKeydown:D},[(R(!0),K(je,null,Ot(N.max,(I,z)=>(R(),K("span",{key:z,class:V(y(l).e("item")),onMousemove:G=>L(I,G),onMouseleave:B,onClick:G=>E(I)},[q(y(Ke),{class:V([y(l).e("icon"),{hover:d.value===I},y(l).is("active",I<=f.value)])},{default:re(()=>[A(I)?se("v-if",!0):(R(),K(je,{key:0},[dt((R(),ce(Ct(y(M)),null,null,512)),[[Kt,I<=f.value]]),dt((R(),ce(Ct(y(T)),null,null,512)),[[Kt,!(I<=f.value)]])],64)),A(I)?(R(),ce(y(Ke),{key:1,style:Ye(y(C)),class:V([y(l).e("icon"),y(l).e("decimal")])},{default:re(()=>[(R(),ce(Ct(y(x))))]),_:1},8,["style","class"])):se("v-if",!0)]),_:2},1032,["class"])],42,ESe))),128)),N.showText||N.showScore?(R(),K("span",{key:0,class:V(y(l).e("text")),style:Ye({color:N.textColor})},De(y(m)),7)):se("v-if",!0)],46,ASe)}}});var PSe=Pe(DSe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/rate/src/rate.vue"]]);const LSe=_t(PSe),gf={success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},UP={[gf.success]:Kae,[gf.warning]:Kb,[gf.error]:uM,[gf.info]:cM},RSe=Le({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["success","warning","info","error"],default:"info"}}),OSe=ne({name:"ElResult"}),$Se=ne({...OSe,props:RSe,setup(e){const t=e,n=Me("result"),r=P(()=>{const a=t.icon,i=a&&gf[a]?gf[a]:"icon-info",o=UP[i]||UP["icon-info"];return{class:i,component:o}});return(a,i)=>(R(),K("div",{class:V(y(n).b())},[Y("div",{class:V(y(n).e("icon"))},[_e(a.$slots,"icon",{},()=>[y(r).component?(R(),ce(Ct(y(r).component),{key:0,class:V(y(r).class)},null,8,["class"])):se("v-if",!0)])],2),a.title||a.$slots.title?(R(),K("div",{key:0,class:V(y(n).e("title"))},[_e(a.$slots,"title",{},()=>[Y("p",null,De(a.title),1)])],2)):se("v-if",!0),a.subTitle||a.$slots["sub-title"]?(R(),K("div",{key:1,class:V(y(n).e("subtitle"))},[_e(a.$slots,"sub-title",{},()=>[Y("p",null,De(a.subTitle),1)])],2)):se("v-if",!0),a.$slots.extra?(R(),K("div",{key:2,class:V(y(n).e("extra"))},[_e(a.$slots,"extra")],2)):se("v-if",!0)],2))}});var NSe=Pe($Se,[["__file","/home/runner/work/element-plus/element-plus/packages/components/result/src/result.vue"]]);const BSe=_t(NSe);var YP=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function VSe(e,t){return!!(e===t||YP(e)&&YP(t))}function zSe(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!VSe(e[n],t[n]))return!1;return!0}function FSe(e,t){t===void 0&&(t=zSe);var n=null;function r(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];if(n&&n.lastThis===this&&t(a,n.lastArgs))return n.lastResult;var o=e.apply(this,a);return n={lastResult:o,lastArgs:a,lastThis:this},o}return r.clear=function(){n=null},r}const I8=()=>{const t=gt().proxy.$props;return P(()=>{const n=(r,a,i)=>({});return t.perfMode?Fb(n):FSe(n)})},rx=50,g0="itemRendered",m0="scroll",mf="forward",y0="backward",Xa="auto",s1="smart",tp="start",uo="center",np="end",id="horizontal",qM="vertical",HSe="ltr",Pf="rtl",rp="negative",XM="positive-ascending",ZM="positive-descending",GSe={[id]:"left",[qM]:"top"},WSe=20,KSe={[id]:"deltaX",[qM]:"deltaY"},USe=({atEndEdge:e,atStartEdge:t,layout:n},r)=>{let a,i=0;const o=l=>l<0&&t.value||l>0&&e.value;return{hasReachedEdge:o,onWheel:l=>{qb(a);const u=l[KSe[n.value]];o(i)&&o(i+u)||(i+=u,ZV()||l.preventDefault(),a=Jf(()=>{r(i),i=0}))}}},ax=Ki({type:ue([Number,Function]),required:!0}),ix=Ki({type:Number}),ox=Ki({type:Number,default:2}),YSe=Ki({type:String,values:["ltr","rtl"],default:"ltr"}),sx=Ki({type:Number,default:0}),b0=Ki({type:Number,required:!0}),D8=Ki({type:String,values:["horizontal","vertical"],default:qM}),P8=Le({className:{type:String,default:""},containerElement:{type:ue([String,Object]),default:"div"},data:{type:ue(Array),default:()=>Cn([])},direction:YSe,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},style:{type:ue([Object,String,Array])},useIsScrolling:{type:Boolean,default:!1},width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:{type:Boolean,default:!1}}),L8=Le({cache:ox,estimatedItemSize:ix,layout:D8,initScrollOffset:sx,total:b0,itemSize:ax,...P8}),lx={type:Number,default:6},R8={type:Number,default:0},O8={type:Number,default:2},ju=Le({columnCache:ox,columnWidth:ax,estimatedColumnWidth:ix,estimatedRowHeight:ix,initScrollLeft:sx,initScrollTop:sx,itemKey:{type:ue(Function),default:({columnIndex:e,rowIndex:t})=>`${t}:${e}`},rowCache:ox,rowHeight:ax,totalColumn:b0,totalRow:b0,hScrollbarSize:lx,vScrollbarSize:lx,scrollbarStartGap:R8,scrollbarEndGap:O8,role:String,...P8}),$8=Le({alwaysOn:Boolean,class:String,layout:D8,total:b0,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:lx,startGap:R8,endGap:O8,visible:Boolean}),Lu=(e,t)=>e<t?mf:y0,ap=e=>e===HSe||e===Pf||e===id,jP=e=>e===Pf;let Oc=null;function _0(e=!1){if(Oc===null||e){const t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";const r=document.createElement("div"),a=r.style;return a.width="100px",a.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?Oc=ZM:(t.scrollLeft=1,t.scrollLeft===0?Oc=rp:Oc=XM),document.body.removeChild(t),Oc}return Oc}function jSe({move:e,size:t,bar:n},r){const a={},i=`translate${n.axis}(${e}px)`;return a[n.size]=t,a.transform=i,a.msTransform=i,a.webkitTransform=i,r==="horizontal"?a.height="100%":a.width="100%",a}const ux=ne({name:"ElVirtualScrollBar",props:$8,emits:["scroll","start-move","stop-move"],setup(e,{emit:t}){const n=P(()=>e.startGap+e.endGap),r=Me("virtual-scrollbar"),a=Me("scrollbar"),i=H(),o=H();let s=null,l=null;const u=jt({isDragging:!1,traveled:0}),c=P(()=>Rz[e.layout]),f=P(()=>e.clientSize-y(n)),d=P(()=>({position:"absolute",width:`${id===e.layout?f.value:e.scrollbarSize}px`,height:`${id===e.layout?e.scrollbarSize:f.value}px`,[GSe[e.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),h=P(()=>{const S=e.ratio,x=e.clientSize;if(S>=100)return Number.POSITIVE_INFINITY;if(S>=50)return S*x/100;const T=x/3;return Math.floor(Math.min(Math.max(S*x,WSe),T))}),v=P(()=>{if(!Number.isFinite(h.value))return{display:"none"};const S=`${h.value}px`;return jSe({bar:c.value,size:S,move:u.traveled},e.layout)}),p=P(()=>Math.floor(e.clientSize-h.value-y(n))),g=()=>{window.addEventListener("mousemove",w),window.addEventListener("mouseup",_);const S=y(o);S&&(l=document.onselectstart,document.onselectstart=()=>!1,S.addEventListener("touchmove",w),S.addEventListener("touchend",_))},m=()=>{window.removeEventListener("mousemove",w),window.removeEventListener("mouseup",_),document.onselectstart=l,l=null;const S=y(o);S&&(S.removeEventListener("touchmove",w),S.removeEventListener("touchend",_))},b=S=>{S.stopImmediatePropagation(),!(S.ctrlKey||[1,2].includes(S.button))&&(u.isDragging=!0,u[c.value.axis]=S.currentTarget[c.value.offset]-(S[c.value.client]-S.currentTarget.getBoundingClientRect()[c.value.direction]),t("start-move"),g())},_=()=>{u.isDragging=!1,u[c.value.axis]=0,t("stop-move"),m()},w=S=>{const{isDragging:x}=u;if(!x||!o.value||!i.value)return;const T=u[c.value.axis];if(!T)return;qb(s);const M=(i.value.getBoundingClientRect()[c.value.direction]-S[c.value.client])*-1,A=o.value[c.value.offset]-T,k=M-A;s=Jf(()=>{u.traveled=Math.max(e.startGap,Math.min(k,p.value)),t("scroll",k,p.value)})},C=S=>{const x=Math.abs(S.target.getBoundingClientRect()[c.value.direction]-S[c.value.client]),T=o.value[c.value.offset]/2,M=x-T;u.traveled=Math.max(0,Math.min(M,p.value)),t("scroll",M,p.value)};return xe(()=>e.scrollFrom,S=>{u.isDragging||(u.traveled=Math.ceil(S*p.value))}),wn(()=>{m()}),()=>Ze("div",{role:"presentation",ref:i,class:[r.b(),e.class,(e.alwaysOn||u.isDragging)&&"always-on"],style:d.value,onMousedown:tt(C,["stop","prevent"]),onTouchstartPrevent:b},Ze("div",{ref:o,class:a.e("thumb"),style:v.value,onMousedown:b},[]))}}),N8=({name:e,getOffset:t,getItemSize:n,getItemOffset:r,getEstimatedTotalSize:a,getStartIndexForOffset:i,getStopIndexForStartIndex:o,initCache:s,clearCache:l,validateProps:u})=>ne({name:e??"ElVirtualList",props:L8,emits:[g0,m0],setup(c,{emit:f,expose:d}){u(c);const h=gt(),v=Me("vl"),p=H(s(c,h)),g=I8(),m=H(),b=H(),_=H(),w=H({isScrolling:!1,scrollDir:"forward",scrollOffset:at(c.initScrollOffset)?c.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:c.scrollbarAlwaysOn}),C=P(()=>{const{total:Z,cache:ae}=c,{isScrolling:J,scrollDir:Q,scrollOffset:ee}=y(w);if(Z===0)return[0,0,0,0];const j=i(c,ee,y(p)),de=o(c,j,ee,y(p)),ve=!J||Q===y0?Math.max(1,ae):1,ie=!J||Q===mf?Math.max(1,ae):1;return[Math.max(0,j-ve),Math.max(0,Math.min(Z-1,de+ie)),j,de]}),S=P(()=>a(c,y(p))),x=P(()=>ap(c.layout)),T=P(()=>[{position:"relative",[`overflow-${x.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:c.direction,height:at(c.height)?`${c.height}px`:c.height,width:at(c.width)?`${c.width}px`:c.width},c.style]),M=P(()=>{const Z=y(S),ae=y(x);return{height:ae?"100%":`${Z}px`,pointerEvents:y(w).isScrolling?"none":void 0,width:ae?`${Z}px`:"100%"}}),A=P(()=>x.value?c.width:c.height),{onWheel:k}=USe({atStartEdge:P(()=>w.value.scrollOffset<=0),atEndEdge:P(()=>w.value.scrollOffset>=S.value),layout:P(()=>c.layout)},Z=>{var ae,J;(J=(ae=_.value).onMouseUp)==null||J.call(ae),O(Math.min(w.value.scrollOffset+Z,S.value-A.value))}),E=()=>{const{total:Z}=c;if(Z>0){const[ee,j,de,ve]=y(C);f(g0,ee,j,de,ve)}const{scrollDir:ae,scrollOffset:J,updateRequested:Q}=y(w);f(m0,ae,J,Q)},D=Z=>{const{clientHeight:ae,scrollHeight:J,scrollTop:Q}=Z.currentTarget,ee=y(w);if(ee.scrollOffset===Q)return;const j=Math.max(0,Math.min(Q,J-ae));w.value={...ee,isScrolling:!0,scrollDir:Lu(ee.scrollOffset,j),scrollOffset:j,updateRequested:!1},Ue(z)},L=Z=>{const{clientWidth:ae,scrollLeft:J,scrollWidth:Q}=Z.currentTarget,ee=y(w);if(ee.scrollOffset===J)return;const{direction:j}=c;let de=J;if(j===Pf)switch(_0()){case rp:{de=-J;break}case ZM:{de=Q-ae-J;break}}de=Math.max(0,Math.min(de,Q-ae)),w.value={...ee,isScrolling:!0,scrollDir:Lu(ee.scrollOffset,de),scrollOffset:de,updateRequested:!1},Ue(z)},B=Z=>{y(x)?L(Z):D(Z),E()},N=(Z,ae)=>{const J=(S.value-A.value)/ae*Z;O(Math.min(S.value-A.value,J))},O=Z=>{Z=Math.max(Z,0),Z!==y(w).scrollOffset&&(w.value={...y(w),scrollOffset:Z,scrollDir:Lu(y(w).scrollOffset,Z),updateRequested:!0},Ue(z))},$=(Z,ae=Xa)=>{const{scrollOffset:J}=y(w);Z=Math.max(0,Math.min(Z,c.total-1)),O(t(c,Z,ae,J,y(p)))},I=Z=>{const{direction:ae,itemSize:J,layout:Q}=c,ee=g.value(l&&J,l&&Q,l&&ae);let j;if(Nt(ee,String(Z)))j=ee[Z];else{const de=r(c,Z,y(p)),ve=n(c,Z,y(p)),ie=y(x),W=ae===Pf,X=ie?de:0;ee[Z]=j={position:"absolute",left:W?void 0:`${X}px`,right:W?`${X}px`:void 0,top:ie?0:`${de}px`,height:ie?"100%":`${ve}px`,width:ie?`${ve}px`:"100%"}}return j},z=()=>{w.value.isScrolling=!1,Ue(()=>{g.value(-1,null,null)})},G=()=>{const Z=m.value;Z&&(Z.scrollTop=0)};yt(()=>{if(!Vt)return;const{initScrollOffset:Z}=c,ae=y(m);at(Z)&&ae&&(y(x)?ae.scrollLeft=Z:ae.scrollTop=Z),E()}),cs(()=>{const{direction:Z,layout:ae}=c,{scrollOffset:J,updateRequested:Q}=y(w),ee=y(m);if(Q&&ee)if(ae===id)if(Z===Pf)switch(_0()){case rp:{ee.scrollLeft=-J;break}case XM:{ee.scrollLeft=J;break}default:{const{clientWidth:j,scrollWidth:de}=ee;ee.scrollLeft=de-j-J;break}}else ee.scrollLeft=J;else ee.scrollTop=J});const U={ns:v,clientSize:A,estimatedTotalSize:S,windowStyle:T,windowRef:m,innerRef:b,innerStyle:M,itemsToRender:C,scrollbarRef:_,states:w,getItemStyle:I,onScroll:B,onScrollbarScroll:N,onWheel:k,scrollTo:O,scrollToItem:$,resetScrollTop:G};return d({windowRef:m,innerRef:b,getItemStyleCache:g,scrollTo:O,scrollToItem:$,resetScrollTop:G,states:w}),U},render(c){var f;const{$slots:d,className:h,clientSize:v,containerElement:p,data:g,getItemStyle:m,innerElement:b,itemsToRender:_,innerStyle:w,layout:C,total:S,onScroll:x,onScrollbarScroll:T,onWheel:M,states:A,useIsScrolling:k,windowStyle:E,ns:D}=c,[L,B]=_,N=Ct(p),O=Ct(b),$=[];if(S>0)for(let U=L;U<=B;U++)$.push((f=d.default)==null?void 0:f.call(d,{data:g,key:U,index:U,isScrolling:k?A.isScrolling:void 0,style:m(U)}));const I=[Ze(O,{style:w,ref:"innerRef"},lt(O)?$:{default:()=>$})],z=Ze(ux,{ref:"scrollbarRef",clientSize:v,layout:C,onScroll:T,ratio:v*100/this.estimatedTotalSize,scrollFrom:A.scrollOffset/(this.estimatedTotalSize-v),total:S}),G=Ze(N,{class:[D.e("window"),h],style:E,onScroll:x,onWheel:M,ref:"windowRef",key:0},lt(N)?[I]:{default:()=>[I]});return Ze("div",{key:0,class:[D.e("wrapper"),A.scrollbarAlwaysOn?"always-on":""]},[G,z])}}),B8=N8({name:"ElFixedSizeList",getItemOffset:({itemSize:e},t)=>t*e,getItemSize:({itemSize:e})=>e,getEstimatedTotalSize:({total:e,itemSize:t})=>t*e,getOffset:({height:e,total:t,itemSize:n,layout:r,width:a},i,o,s)=>{const l=ap(r)?a:e,u=Math.max(0,t*n-l),c=Math.min(u,i*n),f=Math.max(0,(i+1)*n-l);switch(o===s1&&(s>=f-l&&s<=c+l?o=Xa:o=uo),o){case tp:return c;case np:return f;case uo:{const d=Math.round(f+(c-f)/2);return d<Math.ceil(l/2)?0:d>u+Math.floor(l/2)?u:d}case Xa:default:return s>=f&&s<=c?s:s<f?f:c}},getStartIndexForOffset:({total:e,itemSize:t},n)=>Math.max(0,Math.min(e-1,Math.floor(n/t))),getStopIndexForStartIndex:({height:e,total:t,itemSize:n,layout:r,width:a},i,o)=>{const s=i*n,l=ap(r)?a:e,u=Math.ceil((l+o-s)/n);return Math.max(0,Math.min(t-1,i+u-1))},initCache(){},clearCache:!0,validateProps(){}}),yf=(e,t,n)=>{const{itemSize:r}=e,{items:a,lastVisitedIndex:i}=n;if(t>i){let o=0;if(i>=0){const s=a[i];o=s.offset+s.size}for(let s=i+1;s<=t;s++){const l=r(s);a[s]={offset:o,size:l},o+=l}n.lastVisitedIndex=t}return a[t]},qSe=(e,t,n)=>{const{items:r,lastVisitedIndex:a}=t;return(a>0?r[a].offset:0)>=n?V8(e,t,0,a,n):XSe(e,t,Math.max(0,a),n)},V8=(e,t,n,r,a)=>{for(;n<=r;){const i=n+Math.floor((r-n)/2),o=yf(e,i,t).offset;if(o===a)return i;o<a?n=i+1:o>a&&(r=i-1)}return Math.max(0,n-1)},XSe=(e,t,n,r)=>{const{total:a}=e;let i=1;for(;n<a&&yf(e,n,t).offset<r;)n+=i,i*=2;return V8(e,t,Math.floor(n/2),Math.min(n,a-1),r)},qP=({total:e},{items:t,estimatedItemSize:n,lastVisitedIndex:r})=>{let a=0;if(r>=e&&(r=e-1),r>=0){const s=t[r];a=s.offset+s.size}const o=(e-r-1)*n;return a+o},ZSe=N8({name:"ElDynamicSizeList",getItemOffset:(e,t,n)=>yf(e,t,n).offset,getItemSize:(e,t,{items:n})=>n[t].size,getEstimatedTotalSize:qP,getOffset:(e,t,n,r,a)=>{const{height:i,layout:o,width:s}=e,l=ap(o)?s:i,u=yf(e,t,a),c=qP(e,a),f=Math.max(0,Math.min(c-l,u.offset)),d=Math.max(0,u.offset-l+u.size);switch(n===s1&&(r>=d-l&&r<=f+l?n=Xa:n=uo),n){case tp:return f;case np:return d;case uo:return Math.round(d+(f-d)/2);case Xa:default:return r>=d&&r<=f?r:r<d?d:f}},getStartIndexForOffset:(e,t,n)=>qSe(e,n,t),getStopIndexForStartIndex:(e,t,n,r)=>{const{height:a,total:i,layout:o,width:s}=e,l=ap(o)?s:a,u=yf(e,t,r),c=n+l;let f=u.offset+u.size,d=t;for(;d<i-1&&f<c;)d++,f+=yf(e,d,r).size;return d},initCache({estimatedItemSize:e=rx},t){const n={items:{},estimatedItemSize:e,lastVisitedIndex:-1};return n.clearCacheAfterIndex=(r,a=!0)=>{var i,o;n.lastVisitedIndex=Math.min(n.lastVisitedIndex,r-1),(i=t.exposed)==null||i.getItemStyleCache(-1),a&&((o=t.proxy)==null||o.$forceUpdate())},n},clearCache:!1,validateProps:({itemSize:e})=>{}}),JSe=({atXEndEdge:e,atXStartEdge:t,atYEndEdge:n,atYStartEdge:r},a)=>{let i=null,o=0,s=0;const l=(c,f)=>{const d=c<=0&&t.value||c>=0&&e.value,h=f<=0&&r.value||f>=0&&n.value;return d&&h};return{hasReachedEdge:l,onWheel:c=>{qb(i);let f=c.deltaX,d=c.deltaY;Math.abs(f)>Math.abs(d)?d=0:f=0,c.shiftKey&&d!==0&&(f=d,d=0),!(l(o,s)&&l(o+f,s+d))&&(o+=f,s+=d,c.preventDefault(),i=Jf(()=>{a(o,s),o=0,s=0}))}}},z8=({name:e,clearCache:t,getColumnPosition:n,getColumnStartIndexForOffset:r,getColumnStopIndexForStartIndex:a,getEstimatedTotalHeight:i,getEstimatedTotalWidth:o,getColumnOffset:s,getRowOffset:l,getRowPosition:u,getRowStartIndexForOffset:c,getRowStopIndexForStartIndex:f,initCache:d,injectToInstance:h,validateProps:v})=>ne({name:e??"ElVirtualList",props:ju,emits:[g0,m0],setup(p,{emit:g,expose:m,slots:b}){const _=Me("vl");v(p);const w=gt(),C=H(d(p,w));h==null||h(w,C);const S=H(),x=H(),T=H(),M=H(null),A=H({isScrolling:!1,scrollLeft:at(p.initScrollLeft)?p.initScrollLeft:0,scrollTop:at(p.initScrollTop)?p.initScrollTop:0,updateRequested:!1,xAxisScrollDir:mf,yAxisScrollDir:mf}),k=I8(),E=P(()=>Number.parseInt(`${p.height}`,10)),D=P(()=>Number.parseInt(`${p.width}`,10)),L=P(()=>{const{totalColumn:me,totalRow:Ee,columnCache:Ce}=p,{isScrolling:we,xAxisScrollDir:Te,scrollLeft:$e}=y(A);if(me===0||Ee===0)return[0,0,0,0];const Be=r(p,$e,y(C)),We=a(p,Be,$e,y(C)),Ae=!we||Te===y0?Math.max(1,Ce):1,Fe=!we||Te===mf?Math.max(1,Ce):1;return[Math.max(0,Be-Ae),Math.max(0,Math.min(me-1,We+Fe)),Be,We]}),B=P(()=>{const{totalColumn:me,totalRow:Ee,rowCache:Ce}=p,{isScrolling:we,yAxisScrollDir:Te,scrollTop:$e}=y(A);if(me===0||Ee===0)return[0,0,0,0];const Be=c(p,$e,y(C)),We=f(p,Be,$e,y(C)),Ae=!we||Te===y0?Math.max(1,Ce):1,Fe=!we||Te===mf?Math.max(1,Ce):1;return[Math.max(0,Be-Ae),Math.max(0,Math.min(Ee-1,We+Fe)),Be,We]}),N=P(()=>i(p,y(C))),O=P(()=>o(p,y(C))),$=P(()=>{var me;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:p.direction,height:at(p.height)?`${p.height}px`:p.height,width:at(p.width)?`${p.width}px`:p.width},(me=p.style)!=null?me:{}]}),I=P(()=>{const me=`${y(O)}px`;return{height:`${y(N)}px`,pointerEvents:y(A).isScrolling?"none":void 0,width:me}}),z=()=>{const{totalColumn:me,totalRow:Ee}=p;if(me>0&&Ee>0){const[We,Ae,Fe,rt]=y(L),[vt,kt,Qe,ye]=y(B);g(g0,{columnCacheStart:We,columnCacheEnd:Ae,rowCacheStart:vt,rowCacheEnd:kt,columnVisibleStart:Fe,columnVisibleEnd:rt,rowVisibleStart:Qe,rowVisibleEnd:ye})}const{scrollLeft:Ce,scrollTop:we,updateRequested:Te,xAxisScrollDir:$e,yAxisScrollDir:Be}=y(A);g(m0,{xAxisScrollDir:$e,scrollLeft:Ce,yAxisScrollDir:Be,scrollTop:we,updateRequested:Te})},G=me=>{const{clientHeight:Ee,clientWidth:Ce,scrollHeight:we,scrollLeft:Te,scrollTop:$e,scrollWidth:Be}=me.currentTarget,We=y(A);if(We.scrollTop===$e&&We.scrollLeft===Te)return;let Ae=Te;if(jP(p.direction))switch(_0()){case rp:Ae=-Te;break;case ZM:Ae=Be-Ce-Te;break}A.value={...We,isScrolling:!0,scrollLeft:Ae,scrollTop:Math.max(0,Math.min($e,we-Ee)),updateRequested:!0,xAxisScrollDir:Lu(We.scrollLeft,Ae),yAxisScrollDir:Lu(We.scrollTop,$e)},Ue(()=>j()),de(),z()},U=(me,Ee)=>{const Ce=y(E),we=(N.value-Ce)/Ee*me;J({scrollTop:Math.min(N.value-Ce,we)})},Z=(me,Ee)=>{const Ce=y(D),we=(O.value-Ce)/Ee*me;J({scrollLeft:Math.min(O.value-Ce,we)})},{onWheel:ae}=JSe({atXStartEdge:P(()=>A.value.scrollLeft<=0),atXEndEdge:P(()=>A.value.scrollLeft>=O.value-y(D)),atYStartEdge:P(()=>A.value.scrollTop<=0),atYEndEdge:P(()=>A.value.scrollTop>=N.value-y(E))},(me,Ee)=>{var Ce,we,Te,$e;(we=(Ce=x.value)==null?void 0:Ce.onMouseUp)==null||we.call(Ce),($e=(Te=T.value)==null?void 0:Te.onMouseUp)==null||$e.call(Te);const Be=y(D),We=y(E);J({scrollLeft:Math.min(A.value.scrollLeft+me,O.value-Be),scrollTop:Math.min(A.value.scrollTop+Ee,N.value-We)})}),J=({scrollLeft:me=A.value.scrollLeft,scrollTop:Ee=A.value.scrollTop})=>{me=Math.max(me,0),Ee=Math.max(Ee,0);const Ce=y(A);Ee===Ce.scrollTop&&me===Ce.scrollLeft||(A.value={...Ce,xAxisScrollDir:Lu(Ce.scrollLeft,me),yAxisScrollDir:Lu(Ce.scrollTop,Ee),scrollLeft:me,scrollTop:Ee,updateRequested:!0},Ue(()=>j()),de(),z())},Q=(me=0,Ee=0,Ce=Xa)=>{const we=y(A);Ee=Math.max(0,Math.min(Ee,p.totalColumn-1)),me=Math.max(0,Math.min(me,p.totalRow-1));const Te=N5(_.namespace.value),$e=y(C),Be=i(p,$e),We=o(p,$e);J({scrollLeft:s(p,Ee,Ce,we.scrollLeft,$e,We>p.width?Te:0),scrollTop:l(p,me,Ce,we.scrollTop,$e,Be>p.height?Te:0)})},ee=(me,Ee)=>{const{columnWidth:Ce,direction:we,rowHeight:Te}=p,$e=k.value(t&&Ce,t&&Te,t&&we),Be=`${me},${Ee}`;if(Nt($e,Be))return $e[Be];{const[,We]=n(p,Ee,y(C)),Ae=y(C),Fe=jP(we),[rt,vt]=u(p,me,Ae),[kt]=n(p,Ee,Ae);return $e[Be]={position:"absolute",left:Fe?void 0:`${We}px`,right:Fe?`${We}px`:void 0,top:`${vt}px`,height:`${rt}px`,width:`${kt}px`},$e[Be]}},j=()=>{A.value.isScrolling=!1,Ue(()=>{k.value(-1,null,null)})};yt(()=>{if(!Vt)return;const{initScrollLeft:me,initScrollTop:Ee}=p,Ce=y(S);Ce&&(at(me)&&(Ce.scrollLeft=me),at(Ee)&&(Ce.scrollTop=Ee)),z()});const de=()=>{const{direction:me}=p,{scrollLeft:Ee,scrollTop:Ce,updateRequested:we}=y(A),Te=y(S);if(we&&Te){if(me===Pf)switch(_0()){case rp:{Te.scrollLeft=-Ee;break}case XM:{Te.scrollLeft=Ee;break}default:{const{clientWidth:$e,scrollWidth:Be}=Te;Te.scrollLeft=Be-$e-Ee;break}}else Te.scrollLeft=Math.max(0,Ee);Te.scrollTop=Math.max(0,Ce)}},{resetAfterColumnIndex:ve,resetAfterRowIndex:ie,resetAfter:W}=w.proxy;m({windowRef:S,innerRef:M,getItemStyleCache:k,scrollTo:J,scrollToItem:Q,states:A,resetAfterColumnIndex:ve,resetAfterRowIndex:ie,resetAfter:W});const X=()=>{const{scrollbarAlwaysOn:me,scrollbarStartGap:Ee,scrollbarEndGap:Ce,totalColumn:we,totalRow:Te}=p,$e=y(D),Be=y(E),We=y(O),Ae=y(N),{scrollLeft:Fe,scrollTop:rt}=y(A),vt=Ze(ux,{ref:x,alwaysOn:me,startGap:Ee,endGap:Ce,class:_.e("horizontal"),clientSize:$e,layout:"horizontal",onScroll:Z,ratio:$e*100/We,scrollFrom:Fe/(We-$e),total:Te,visible:!0}),kt=Ze(ux,{ref:T,alwaysOn:me,startGap:Ee,endGap:Ce,class:_.e("vertical"),clientSize:Be,layout:"vertical",onScroll:U,ratio:Be*100/Ae,scrollFrom:rt/(Ae-Be),total:we,visible:!0});return{horizontalScrollbar:vt,verticalScrollbar:kt}},oe=()=>{var me;const[Ee,Ce]=y(L),[we,Te]=y(B),{data:$e,totalColumn:Be,totalRow:We,useIsScrolling:Ae,itemKey:Fe}=p,rt=[];if(We>0&&Be>0)for(let vt=we;vt<=Te;vt++)for(let kt=Ee;kt<=Ce;kt++)rt.push((me=b.default)==null?void 0:me.call(b,{columnIndex:kt,data:$e,key:Fe({columnIndex:kt,data:$e,rowIndex:vt}),isScrolling:Ae?y(A).isScrolling:void 0,style:ee(vt,kt),rowIndex:vt}));return rt},pe=()=>{const me=Ct(p.innerElement),Ee=oe();return[Ze(me,{style:y(I),ref:M},lt(me)?Ee:{default:()=>Ee})]};return()=>{const me=Ct(p.containerElement),{horizontalScrollbar:Ee,verticalScrollbar:Ce}=X(),we=pe();return Ze("div",{key:0,class:_.e("wrapper"),role:p.role},[Ze(me,{class:p.className,style:y($),onScroll:G,onWheel:ae,ref:S},lt(me)?we:{default:()=>we}),Ee,Ce])}}}),QSe=z8({name:"ElFixedSizeGrid",getColumnPosition:({columnWidth:e},t)=>[e,t*e],getRowPosition:({rowHeight:e},t)=>[e,t*e],getEstimatedTotalHeight:({totalRow:e,rowHeight:t})=>t*e,getEstimatedTotalWidth:({totalColumn:e,columnWidth:t})=>t*e,getColumnOffset:({totalColumn:e,columnWidth:t,width:n},r,a,i,o,s)=>{n=Number(n);const l=Math.max(0,e*t-n),u=Math.min(l,r*t),c=Math.max(0,r*t-n+s+t);switch(a==="smart"&&(i>=c-n&&i<=u+n?a=Xa:a=uo),a){case tp:return u;case np:return c;case uo:{const f=Math.round(c+(u-c)/2);return f<Math.ceil(n/2)?0:f>l+Math.floor(n/2)?l:f}case Xa:default:return i>=c&&i<=u?i:c>u||i<c?c:u}},getRowOffset:({rowHeight:e,height:t,totalRow:n},r,a,i,o,s)=>{t=Number(t);const l=Math.max(0,n*e-t),u=Math.min(l,r*e),c=Math.max(0,r*e-t+s+e);switch(a===s1&&(i>=c-t&&i<=u+t?a=Xa:a=uo),a){case tp:return u;case np:return c;case uo:{const f=Math.round(c+(u-c)/2);return f<Math.ceil(t/2)?0:f>l+Math.floor(t/2)?l:f}case Xa:default:return i>=c&&i<=u?i:c>u||i<c?c:u}},getColumnStartIndexForOffset:({columnWidth:e,totalColumn:t},n)=>Math.max(0,Math.min(t-1,Math.floor(n/e))),getColumnStopIndexForStartIndex:({columnWidth:e,totalColumn:t,width:n},r,a)=>{const i=r*e,o=Math.ceil((n+a-i)/e);return Math.max(0,Math.min(t-1,r+o-1))},getRowStartIndexForOffset:({rowHeight:e,totalRow:t},n)=>Math.max(0,Math.min(t-1,Math.floor(n/e))),getRowStopIndexForStartIndex:({rowHeight:e,totalRow:t,height:n},r,a)=>{const i=r*e,o=Math.ceil((n+a-i)/e);return Math.max(0,Math.min(t-1,r+o-1))},initCache:()=>{},clearCache:!0,validateProps:({columnWidth:e,rowHeight:t})=>{}}),{max:w0,min:F8,floor:H8}=Math,eCe={column:"columnWidth",row:"rowHeight"},cx={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},zo=(e,t,n,r)=>{const[a,i,o]=[n[r],e[eCe[r]],n[cx[r]]];if(t>o){let s=0;if(o>=0){const l=a[o];s=l.offset+l.size}for(let l=o+1;l<=t;l++){const u=i(l);a[l]={offset:s,size:u},s+=u}n[cx[r]]=t}return a[t]},G8=(e,t,n,r,a,i)=>{for(;n<=r;){const o=n+H8((r-n)/2),s=zo(e,o,t,i).offset;if(s===a)return o;s<a?n=o+1:r=o-1}return w0(0,n-1)},tCe=(e,t,n,r,a)=>{const i=a==="column"?e.totalColumn:e.totalRow;let o=1;for(;n<i&&zo(e,n,t,a).offset<r;)n+=o,o*=2;return G8(e,t,H8(n/2),F8(n,i-1),r,a)},XP=(e,t,n,r)=>{const[a,i]=[t[r],t[cx[r]]];return(i>0?a[i].offset:0)>=n?G8(e,t,0,i,n,r):tCe(e,t,w0(0,i),n,r)},W8=({totalRow:e},{estimatedRowHeight:t,lastVisitedRowIndex:n,row:r})=>{let a=0;if(n>=e&&(n=e-1),n>=0){const s=r[n];a=s.offset+s.size}const o=(e-n-1)*t;return a+o},K8=({totalColumn:e},{column:t,estimatedColumnWidth:n,lastVisitedColumnIndex:r})=>{let a=0;if(r>e&&(r=e-1),r>=0){const s=t[r];a=s.offset+s.size}const o=(e-r-1)*n;return a+o},nCe={column:K8,row:W8},ZP=(e,t,n,r,a,i,o)=>{const[s,l]=[i==="row"?e.height:e.width,nCe[i]],u=zo(e,t,a,i),c=l(e,a),f=w0(0,F8(c-s,u.offset)),d=w0(0,u.offset-s+o+u.size);switch(n===s1&&(r>=d-s&&r<=f+s?n=Xa:n=uo),n){case tp:return f;case np:return d;case uo:return Math.round(d+(f-d)/2);case Xa:default:return r>=d&&r<=f?r:d>f||r<d?d:f}},rCe=z8({name:"ElDynamicSizeGrid",getColumnPosition:(e,t,n)=>{const r=zo(e,t,n,"column");return[r.size,r.offset]},getRowPosition:(e,t,n)=>{const r=zo(e,t,n,"row");return[r.size,r.offset]},getColumnOffset:(e,t,n,r,a,i)=>ZP(e,t,n,r,a,"column",i),getRowOffset:(e,t,n,r,a,i)=>ZP(e,t,n,r,a,"row",i),getColumnStartIndexForOffset:(e,t,n)=>XP(e,n,t,"column"),getColumnStopIndexForStartIndex:(e,t,n,r)=>{const a=zo(e,t,r,"column"),i=n+e.width;let o=a.offset+a.size,s=t;for(;s<e.totalColumn-1&&o<i;)s++,o+=zo(e,t,r,"column").size;return s},getEstimatedTotalHeight:W8,getEstimatedTotalWidth:K8,getRowStartIndexForOffset:(e,t,n)=>XP(e,n,t,"row"),getRowStopIndexForStartIndex:(e,t,n,r)=>{const{totalRow:a,height:i}=e,o=zo(e,t,r,"row"),s=n+i;let l=o.size+o.offset,u=t;for(;u<a-1&&l<s;)u++,l+=zo(e,u,r,"row").size;return u},injectToInstance:(e,t)=>{const n=({columnIndex:i,rowIndex:o},s)=>{var l,u;s=er(s)?!0:s,at(i)&&(t.value.lastVisitedColumnIndex=Math.min(t.value.lastVisitedColumnIndex,i-1)),at(o)&&(t.value.lastVisitedRowIndex=Math.min(t.value.lastVisitedRowIndex,o-1)),(l=e.exposed)==null||l.getItemStyleCache.value(-1,null,null),s&&((u=e.proxy)==null||u.$forceUpdate())},r=(i,o)=>{n({columnIndex:i},o)},a=(i,o)=>{n({rowIndex:i},o)};Object.assign(e.proxy,{resetAfterColumnIndex:r,resetAfterRowIndex:a,resetAfter:n})},initCache:({estimatedColumnWidth:e=rx,estimatedRowHeight:t=rx})=>({column:{},estimatedColumnWidth:e,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:e,rowHeight:t})=>{}}),aCe=ne({props:{item:{type:Object,required:!0},style:Object,height:Number},setup(){return{ns:Me("select")}}});function iCe(e,t,n,r,a,i){return e.item.isTitle?(R(),K("div",{key:0,class:V(e.ns.be("group","title")),style:Ye([e.style,{lineHeight:`${e.height}px`}])},De(e.item.label),7)):(R(),K("div",{key:1,class:V(e.ns.be("group","split")),style:Ye(e.style)},[Y("span",{class:V(e.ns.be("group","split-dash")),style:Ye({top:`${e.height/2}px`})},null,6)],6))}var oCe=Pe(aCe,[["render",iCe],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/group-item.vue"]]);function sCe(e,{emit:t}){return{hoverItem:()=>{e.disabled||t("hover",e.index)},selectOptionClick:()=>{e.disabled||t("select",e.item,e.index)}}}const lCe={allowCreate:Boolean,autocomplete:{type:String,default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:[String,Object],default:Ml},effect:{type:String,default:"light"},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},maxCollapseTags:{type:Number,default:1},defaultFirstOption:Boolean,disabled:Boolean,estimatedOptionHeight:{type:Number,default:void 0},filterable:Boolean,filterMethod:Function,height:{type:Number,default:170},itemHeight:{type:Number,default:34},id:String,loading:Boolean,loadingText:String,label:String,modelValue:[Array,String,Number,Boolean,Object],multiple:Boolean,multipleLimit:{type:Number,default:0},name:String,noDataText:String,noMatchText:String,remoteMethod:Function,reserveKeyword:{type:Boolean,default:!0},options:{type:Array,required:!0},placeholder:{type:String},teleported:cr.teleported,persistent:{type:Boolean,default:!0},popperClass:{type:String,default:""},popperOptions:{type:Object,default:()=>({})},remote:Boolean,size:{type:String,validator:Yb},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:{type:Boolean,default:!1},validateEvent:{type:Boolean,default:!0},placement:{type:ue(String),values:wc,default:"bottom-start"}},uCe={data:Array,disabled:Boolean,hovering:Boolean,item:Object,index:Number,style:Object,selected:Boolean,created:Boolean},cCe=ne({props:uCe,emits:["select","hover"],setup(e,{emit:t}){const n=Me("select"),{hoverItem:r,selectOptionClick:a}=sCe(e,{emit:t});return{ns:n,hoverItem:r,selectOptionClick:a}}}),fCe=["aria-selected"];function dCe(e,t,n,r,a,i){return R(),K("li",{"aria-selected":e.selected,style:Ye(e.style),class:V([e.ns.be("dropdown","option-item"),e.ns.is("selected",e.selected),e.ns.is("disabled",e.disabled),e.ns.is("created",e.created),{hover:e.hovering}]),onMouseenter:t[0]||(t[0]=(...o)=>e.hoverItem&&e.hoverItem(...o)),onClick:t[1]||(t[1]=tt((...o)=>e.selectOptionClick&&e.selectOptionClick(...o),["stop"]))},[_e(e.$slots,"default",{item:e.item,index:e.index,disabled:e.disabled},()=>[Y("span",null,De(e.item.label),1)])],46,fCe)}var hCe=Pe(cCe,[["render",dCe],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/option-item.vue"]]);const U8=Symbol("ElSelectV2Injection");var vCe=ne({name:"ElSelectDropdown",props:{data:{type:Array,required:!0},hoveringIndex:Number,width:Number},setup(e,{slots:t,expose:n}){const r=Ge(U8),a=Me("select"),i=H([]),o=H(),s=P(()=>e.data.length);xe(()=>s.value,()=>{var T,M;(M=(T=r.popper.value).updatePopper)==null||M.call(T)});const l=P(()=>er(r.props.estimatedOptionHeight)),u=P(()=>l.value?{itemSize:r.props.itemHeight}:{estimatedSize:r.props.estimatedOptionHeight,itemSize:T=>i.value[T]}),c=(T=[],M)=>{const{props:{valueKey:A}}=r;return Mt(M)?T&&T.some(k=>Sn(k,A)===Sn(M,A)):T.includes(M)},f=(T,M)=>{if(Mt(M)){const{valueKey:A}=r.props;return Sn(T,A)===Sn(M,A)}else return T===M},d=(T,M)=>{const{valueKey:A}=r.props;return r.props.multiple?c(T,Sn(M,A)):f(T,Sn(M,A))},h=(T,M)=>{const{disabled:A,multiple:k,multipleLimit:E}=r.props;return A||!M&&(k?E>0&&T.length>=E:!1)},v=T=>e.hoveringIndex===T;n({listRef:o,isSized:l,isItemDisabled:h,isItemHovering:v,isItemSelected:d,scrollToItem:T=>{const M=o.value;M&&M.scrollToItem(T)},resetScrollTop:()=>{const T=o.value;T&&T.resetScrollTop()}});const m=T=>{const{index:M,data:A,style:k}=T,E=y(l),{itemSize:D,estimatedSize:L}=y(u),{modelValue:B}=r.props,{onSelect:N,onHover:O}=r,$=A[M];if($.type==="Group")return q(oCe,{item:$,style:k,height:E?D:L},null);const I=d(B,$),z=h(B,I),G=v(M);return q(hCe,St(T,{selected:I,disabled:$.disabled||z,created:!!$.created,hovering:G,item:$,onSelect:N,onHover:O}),{default:U=>{var Z;return((Z=t.default)==null?void 0:Z.call(t,U))||q("span",null,[$.label])}})},{onKeyboardNavigate:b,onKeyboardSelect:_}=r,w=()=>{b("forward")},C=()=>{b("backward")},S=()=>{r.expanded=!1},x=T=>{const{code:M}=T,{tab:A,esc:k,down:E,up:D,enter:L}=Xe;switch(M!==A&&(T.preventDefault(),T.stopPropagation()),M){case A:case k:{S();break}case E:{w();break}case D:{C();break}case L:{_();break}}};return()=>{var T;const{data:M,width:A}=e,{height:k,multiple:E,scrollbarAlwaysOn:D}=r.props;if(M.length===0)return q("div",{class:a.b("dropdown"),style:{width:`${A}px`}},[(T=t.empty)==null?void 0:T.call(t)]);const L=y(l)?B8:ZSe;return q("div",{class:[a.b("dropdown"),a.is("multiple",E)]},[q(L,St({ref:o},y(u),{className:a.be("dropdown","list"),scrollbarAlwaysOn:D,data:M,height:k,width:A,total:M.length,onKeydown:x}),{default:B=>q(m,B,null)})])}}});function pCe(e,t){const n=H(0),r=H(null),a=P(()=>e.allowCreate&&e.filterable);function i(c){const f=d=>d.value===c;return e.options&&e.options.some(f)||t.createdOptions.some(f)}function o(c){a.value&&(e.multiple&&c.created?n.value++:r.value=c)}function s(c){if(a.value)if(c&&c.length>0&&!i(c)){const f={value:c,label:c,created:!0,disabled:!1};t.createdOptions.length>=n.value?t.createdOptions[n.value]=f:t.createdOptions.push(f)}else if(e.multiple)t.createdOptions.length=n.value;else{const f=r.value;t.createdOptions.length=0,f&&f.created&&t.createdOptions.push(f)}}function l(c){if(!a.value||!c||!c.created||c.created&&e.reserveKeyword&&t.inputValue===c.label)return;const f=t.createdOptions.findIndex(d=>d.value===c.value);~f&&(t.createdOptions.splice(f,1),n.value--)}function u(){a.value&&(t.createdOptions.length=0,n.value=0)}return{createNewOption:s,removeNewOption:l,selectNewOption:o,clearAllNewOption:u}}const gCe=e=>{const t=[];return e.forEach(n=>{He(n.options)?(t.push({label:n.label,isTitle:!0,type:"Group"}),n.options.forEach(r=>{t.push(r)}),t.push({type:"Group"})):t.push(n)}),t};function mCe(e){const t=H(!1);return{handleCompositionStart:()=>{t.value=!0},handleCompositionUpdate:i=>{const o=i.target.value,s=o[o.length-1]||"";t.value=!jb(s)},handleCompositionEnd:i=>{t.value&&(t.value=!1,it(e)&&e(i))}}}const JP="",QP=11,yCe={larget:51,default:42,small:33},bCe=(e,t)=>{const{t:n}=Ht(),r=Me("select-v2"),a=Me("input"),{form:i,formItem:o}=aa(),s=jt({inputValue:JP,displayInputValue:JP,calculatedWidth:0,cachedPlaceholder:"",cachedOptions:[],createdOptions:[],createdLabel:"",createdSelected:!1,currentPlaceholder:"",hoveringIndex:-1,comboBoxHovering:!1,isOnComposition:!1,isSilentBlur:!1,isComposing:!1,inputLength:20,selectWidth:200,initialInputHeight:0,previousQuery:null,previousValue:void 0,query:"",selectedLabel:"",softFocus:!1,tagInMultiLine:!1}),l=H(-1),u=H(-1),c=H(null),f=H(null),d=H(null),h=H(null),v=H(null),p=H(null),g=H(null),m=H(!1),b=P(()=>e.disabled||(i==null?void 0:i.disabled)),_=P(()=>{const he=E.value.length*34;return he>e.height?e.height:he}),w=P(()=>!Kn(e.modelValue)),C=P(()=>{const he=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:w.value;return e.clearable&&!b.value&&s.comboBoxHovering&&he}),S=P(()=>e.remote&&e.filterable?"":Wb),x=P(()=>S.value&&r.is("reverse",m.value)),T=P(()=>(o==null?void 0:o.validateState)||""),M=P(()=>dM[T.value]),A=P(()=>e.remote?300:0),k=P(()=>{const he=E.value;return e.loading?e.loadingText||n("el.select.loading"):e.remote&&s.inputValue===""&&he.length===0?!1:e.filterable&&s.inputValue&&he.length>0?e.noMatchText||n("el.select.noMatch"):he.length===0?e.noDataText||n("el.select.noData"):null}),E=P(()=>{const he=ze=>{const At=s.inputValue,Wt=new RegExp(O5(At),"i");return At?Wt.test(ze.label||""):!0};return e.loading?[]:gCe(e.options.concat(s.createdOptions).map(ze=>{if(He(ze.options)){const At=ze.options.filter(he);if(At.length>0)return{...ze,options:At}}else if(e.remote||he(ze))return ze;return null}).filter(ze=>ze!==null))}),D=P(()=>{const he=new Map;return E.value.forEach((ze,At)=>{he.set($e(ze),{option:ze,index:At})}),he}),L=P(()=>E.value.every(he=>he.disabled)),B=qn(),N=P(()=>B.value==="small"?"small":"default"),O=P(()=>{const he=p.value,ze=N.value||"default",At=he?Number.parseInt(getComputedStyle(he).paddingLeft):0,Wt=he?Number.parseInt(getComputedStyle(he).paddingRight):0;return s.selectWidth-Wt-At-yCe[ze]}),$=()=>{var he;u.value=((he=v.value)==null?void 0:he.offsetWidth)||200},I=P(()=>({width:`${s.calculatedWidth===0?QP:Math.ceil(s.calculatedWidth)+QP}px`})),z=P(()=>He(e.modelValue)?e.modelValue.length===0&&!s.displayInputValue:e.filterable?s.displayInputValue.length===0:!0),G=P(()=>{const he=e.placeholder||n("el.select.placeholder");return e.multiple||Kn(e.modelValue)?he:s.selectedLabel}),U=P(()=>{var he,ze;return(ze=(he=h.value)==null?void 0:he.popperRef)==null?void 0:ze.contentRef}),Z=P(()=>{if(e.multiple){const he=e.modelValue.length;if(e.modelValue.length>0&&D.value.has(e.modelValue[he-1])){const{index:ze}=D.value.get(e.modelValue[he-1]);return ze}}else if(e.modelValue&&D.value.has(e.modelValue)){const{index:he}=D.value.get(e.modelValue);return he}return-1}),ae=P({get(){return m.value&&k.value!==!1},set(he){m.value=he}}),J=P(()=>s.cachedOptions.slice(0,e.maxCollapseTags)),Q=P(()=>s.cachedOptions.slice(e.maxCollapseTags)),{createNewOption:ee,removeNewOption:j,selectNewOption:de,clearAllNewOption:ve}=pCe(e,s),{handleCompositionStart:ie,handleCompositionUpdate:W,handleCompositionEnd:X}=mCe(he=>Zn(he)),oe=()=>{var he,ze,At;(ze=(he=f.value)==null?void 0:he.focus)==null||ze.call(he),(At=h.value)==null||At.updatePopper()},pe=()=>{if(!e.automaticDropdown&&!b.value)return s.isComposing&&(s.softFocus=!0),Ue(()=>{var he,ze;m.value=!m.value,(ze=(he=f.value)==null?void 0:he.focus)==null||ze.call(he)})},Se=()=>(e.filterable&&s.inputValue!==s.selectedLabel&&(s.query=s.selectedLabel),Ee(s.inputValue),Ue(()=>{ee(s.inputValue)})),me=Qr(Se,A.value),Ee=he=>{s.previousQuery!==he&&(s.previousQuery=he,e.filterable&&it(e.filterMethod)?e.filterMethod(he):e.filterable&&e.remote&&it(e.remoteMethod)&&e.remoteMethod(he))},Ce=he=>{pa(e.modelValue,he)||t(mn,he)},we=he=>{t(wt,he),Ce(he),s.previousValue=he==null?void 0:he.toString()},Te=(he=[],ze)=>{if(!Mt(ze))return he.indexOf(ze);const At=e.valueKey;let Wt=-1;return he.some((Jn,Qn)=>Sn(Jn,At)===Sn(ze,At)?(Wt=Qn,!0):!1),Wt},$e=he=>Mt(he)?Sn(he,e.valueKey):he,Be=he=>Mt(he)?he.label:he,We=()=>Ue(()=>{var he,ze;if(!f.value)return;const At=p.value;v.value.height=At.offsetHeight,m.value&&k.value!==!1&&((ze=(he=h.value)==null?void 0:he.updatePopper)==null||ze.call(he))}),Ae=()=>{var he,ze;if(Fe(),$(),(ze=(he=h.value)==null?void 0:he.updatePopper)==null||ze.call(he),e.multiple)return We()},Fe=()=>{const he=p.value;he&&(s.selectWidth=he.getBoundingClientRect().width)},rt=(he,ze,At=!0)=>{var Wt,Jn;if(e.multiple){let Qn=e.modelValue.slice();const kr=Te(Qn,$e(he));kr>-1?(Qn=[...Qn.slice(0,kr),...Qn.slice(kr+1)],s.cachedOptions.splice(kr,1),j(he)):(e.multipleLimit<=0||Qn.length<e.multipleLimit)&&(Qn=[...Qn,$e(he)],s.cachedOptions.push(he),de(he),st(ze)),we(Qn),he.created&&(s.query="",Ee(""),s.inputLength=20),e.filterable&&!e.reserveKeyword&&((Jn=(Wt=f.value).focus)==null||Jn.call(Wt),ke("")),e.filterable&&(s.calculatedWidth=g.value.getBoundingClientRect().width),We(),zn()}else l.value=ze,s.selectedLabel=he.label,we($e(he)),m.value=!1,s.isComposing=!1,s.isSilentBlur=At,de(he),he.created||ve(),st(ze)},vt=(he,ze)=>{const{valueKey:At}=e,Wt=e.modelValue.indexOf(Sn(ze,At));if(Wt>-1&&!b.value){const Jn=[...e.modelValue.slice(0,Wt),...e.modelValue.slice(Wt+1)];return s.cachedOptions.splice(Wt,1),we(Jn),t("remove-tag",Sn(ze,At)),s.softFocus=!0,j(ze),Ue(oe)}he.stopPropagation()},kt=he=>{const ze=s.isComposing;s.isComposing=!0,s.softFocus?s.softFocus=!1:ze||t("focus",he)},Qe=he=>(s.softFocus=!1,Ue(()=>{var ze,At;(At=(ze=f.value)==null?void 0:ze.blur)==null||At.call(ze),g.value&&(s.calculatedWidth=g.value.getBoundingClientRect().width),s.isSilentBlur?s.isSilentBlur=!1:s.isComposing&&t("blur",he),s.isComposing=!1})),ye=()=>{s.displayInputValue.length>0?ke(""):m.value=!1},fe=he=>{if(s.displayInputValue.length===0){he.preventDefault();const ze=e.modelValue.slice();ze.pop(),j(s.cachedOptions.pop()),we(ze)}},le=()=>{let he;return He(e.modelValue)?he=[]:he=void 0,s.softFocus=!0,e.multiple?s.cachedOptions=[]:s.selectedLabel="",m.value=!1,we(he),t("clear"),ve(),Ue(oe)},ke=he=>{s.displayInputValue=he,s.inputValue=he},te=(he,ze=void 0)=>{const At=E.value;if(!["forward","backward"].includes(he)||b.value||At.length<=0||L.value)return;if(!m.value)return pe();ze===void 0&&(ze=s.hoveringIndex);let Wt=-1;he==="forward"?(Wt=ze+1,Wt>=At.length&&(Wt=0)):he==="backward"&&(Wt=ze-1,(Wt<0||Wt>=At.length)&&(Wt=At.length-1));const Jn=At[Wt];if(Jn.disabled||Jn.type==="Group")return te(he,Wt);st(Wt),be(Wt)},Ve=()=>{if(m.value)~s.hoveringIndex&&E.value[s.hoveringIndex]&&rt(E.value[s.hoveringIndex],s.hoveringIndex,!1);else return pe()},st=he=>{s.hoveringIndex=he},It=()=>{s.hoveringIndex=-1},zn=()=>{var he;const ze=f.value;ze&&((he=ze.focus)==null||he.call(ze))},Zn=he=>{const ze=he.target.value;if(ke(ze),s.displayInputValue.length>0&&!m.value&&(m.value=!0),s.calculatedWidth=g.value.getBoundingClientRect().width,e.multiple&&We(),e.remote)me();else return Se()},oa=()=>(m.value=!1,Qe()),pr=()=>(s.inputValue=s.displayInputValue,Ue(()=>{~Z.value&&(st(Z.value),be(s.hoveringIndex))})),be=he=>{d.value.scrollToItem(he)},Ne=()=>{if(It(),e.multiple)if(e.modelValue.length>0){let he=!1;s.cachedOptions.length=0,s.previousValue=e.modelValue.toString();for(const ze of e.modelValue)if(D.value.has(ze)){const{index:At,option:Wt}=D.value.get(ze);s.cachedOptions.push(Wt),he||st(At),he=!0}}else s.cachedOptions=[],s.previousValue=void 0;else if(w.value){s.previousValue=e.modelValue;const he=E.value,ze=he.findIndex(At=>$e(At)===$e(e.modelValue));~ze?(s.selectedLabel=he[ze].label,st(ze)):s.selectedLabel=`${e.modelValue}`}else s.selectedLabel="",s.previousValue=void 0;ve(),$()};return xe(m,he=>{var ze,At;t("visible-change",he),he?(At=(ze=h.value).update)==null||At.call(ze):(s.displayInputValue="",s.previousQuery=null,ee(""))}),xe(()=>e.modelValue,(he,ze)=>{var At;(!he||he.toString()!==s.previousValue)&&Ne(),!pa(he,ze)&&e.validateEvent&&((At=o==null?void 0:o.validate)==null||At.call(o,"change").catch(Wt=>void 0))},{deep:!0}),xe(()=>e.options,()=>{const he=f.value;(!he||he&&document.activeElement!==he)&&Ne()},{deep:!0}),xe(E,()=>Ue(d.value.resetScrollTop)),xe(()=>ae.value,he=>{he||It()}),yt(()=>{Ne()}),$r(v,Ae),{collapseTagSize:N,currentPlaceholder:G,expanded:m,emptyText:k,popupHeight:_,debounce:A,filteredOptions:E,iconComponent:S,iconReverse:x,inputWrapperStyle:I,popperSize:u,dropdownMenuVisible:ae,hasModelValue:w,shouldShowPlaceholder:z,selectDisabled:b,selectSize:B,showClearBtn:C,states:s,tagMaxWidth:O,nsSelectV2:r,nsInput:a,calculatorRef:g,controlRef:c,inputRef:f,menuRef:d,popper:h,selectRef:v,selectionRef:p,popperRef:U,validateState:T,validateIcon:M,showTagList:J,collapseTagList:Q,debouncedOnInputChange:me,deleteTag:vt,getLabel:Be,getValueKey:$e,handleBlur:Qe,handleClear:le,handleClickOutside:oa,handleDel:fe,handleEsc:ye,handleFocus:kt,handleMenuEnter:pr,handleResize:Ae,toggleMenu:pe,scrollTo:be,onInput:Zn,onKeyboardNavigate:te,onKeyboardSelect:Ve,onSelect:rt,onHover:st,onUpdateInputValue:ke,handleCompositionStart:ie,handleCompositionEnd:X,handleCompositionUpdate:W}},_Ce=ne({name:"ElSelectV2",components:{ElSelectMenu:vCe,ElTag:Qv,ElTooltip:ea,ElIcon:Ke},directives:{ClickOutside:vl,ModelText:VT},props:lCe,emits:[wt,mn,"remove-tag","clear","visible-change","focus","blur"],setup(e,{emit:t}){const n=P(()=>{const{modelValue:a,multiple:i}=e,o=i?[]:void 0;return He(a)?i?a:o:i?o:a}),r=bCe(jt({...or(e),modelValue:n}),t);return Et(U8,{props:jt({...or(e),height:r.popupHeight,modelValue:n}),popper:r.popper,onSelect:r.onSelect,onHover:r.onHover,onKeyboardNavigate:r.onKeyboardNavigate,onKeyboardSelect:r.onKeyboardSelect}),{...r,modelValue:n}}}),wCe={key:0},SCe=["id","autocomplete","aria-expanded","aria-labelledby","disabled","readonly","name","unselectable"],CCe=["textContent"],xCe=["id","aria-labelledby","aria-expanded","autocomplete","disabled","name","readonly","unselectable"],TCe=["textContent"];function MCe(e,t,n,r,a,i){const o=ct("el-tag"),s=ct("el-tooltip"),l=ct("el-icon"),u=ct("el-select-menu"),c=$v("model-text"),f=$v("click-outside");return dt((R(),K("div",{ref:"selectRef",class:V([e.nsSelectV2.b(),e.nsSelectV2.m(e.selectSize)]),onClick:t[24]||(t[24]=tt((...d)=>e.toggleMenu&&e.toggleMenu(...d),["stop"])),onMouseenter:t[25]||(t[25]=d=>e.states.comboBoxHovering=!0),onMouseleave:t[26]||(t[26]=d=>e.states.comboBoxHovering=!1)},[q(s,{ref:"popper",visible:e.dropdownMenuVisible,teleported:e.teleported,"popper-class":[e.nsSelectV2.e("popper"),e.popperClass],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"popper-options":e.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],effect:e.effect,placement:e.placement,pure:"",transition:`${e.nsSelectV2.namespace.value}-zoom-in-top`,trigger:"click",persistent:e.persistent,onBeforeShow:e.handleMenuEnter,onHide:t[23]||(t[23]=d=>e.states.inputValue=e.states.displayInputValue)},{default:re(()=>[Y("div",{ref:"selectionRef",class:V([e.nsSelectV2.e("wrapper"),e.nsSelectV2.is("focused",e.states.isComposing||e.expanded),e.nsSelectV2.is("hovering",e.states.comboBoxHovering),e.nsSelectV2.is("filterable",e.filterable),e.nsSelectV2.is("disabled",e.selectDisabled)])},[e.$slots.prefix?(R(),K("div",wCe,[_e(e.$slots,"prefix")])):se("v-if",!0),e.multiple?(R(),K("div",{key:1,class:V(e.nsSelectV2.e("selection"))},[e.collapseTags&&e.modelValue.length>0?(R(),K(je,{key:0},[(R(!0),K(je,null,Ot(e.showTagList,d=>(R(),K("div",{key:e.getValueKey(d),class:V(e.nsSelectV2.e("selected-item"))},[q(o,{closable:!e.selectDisabled&&!(d!=null&&d.disable),size:e.collapseTagSize,type:"info","disable-transitions":"",onClose:h=>e.deleteTag(h,d)},{default:re(()=>[Y("span",{class:V(e.nsSelectV2.e("tags-text")),style:Ye({maxWidth:`${e.tagMaxWidth}px`})},De(d==null?void 0:d.label),7)]),_:2},1032,["closable","size","onClose"])],2))),128)),Y("div",{class:V(e.nsSelectV2.e("selected-item"))},[e.modelValue.length>e.maxCollapseTags?(R(),ce(o,{key:0,closable:!1,size:e.collapseTagSize,type:"info","disable-transitions":""},{default:re(()=>[e.collapseTagsTooltip?(R(),ce(s,{key:0,disabled:e.dropdownMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:!1},{default:re(()=>[Y("span",{class:V(e.nsSelectV2.e("tags-text")),style:Ye({maxWidth:`${e.tagMaxWidth}px`})},"+ "+De(e.modelValue.length-e.maxCollapseTags),7)]),content:re(()=>[Y("div",{class:V(e.nsSelectV2.e("selection"))},[(R(!0),K(je,null,Ot(e.collapseTagList,d=>(R(),K("div",{key:e.getValueKey(d),class:V(e.nsSelectV2.e("selected-item"))},[q(o,{closable:!e.selectDisabled&&!d.disabled,size:e.collapseTagSize,class:"in-tooltip",type:"info","disable-transitions":"",onClose:h=>e.deleteTag(h,d)},{default:re(()=>[Y("span",{class:V(e.nsSelectV2.e("tags-text")),style:Ye({maxWidth:`${e.tagMaxWidth}px`})},De(e.getLabel(d)),7)]),_:2},1032,["closable","size","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect"])):(R(),K("span",{key:1,class:V(e.nsSelectV2.e("tags-text")),style:Ye({maxWidth:`${e.tagMaxWidth}px`})},"+ "+De(e.modelValue.length-e.maxCollapseTags),7))]),_:1},8,["size"])):se("v-if",!0)],2)],64)):(R(!0),K(je,{key:1},Ot(e.states.cachedOptions,d=>(R(),K("div",{key:e.getValueKey(d),class:V(e.nsSelectV2.e("selected-item"))},[q(o,{closable:!e.selectDisabled&&!d.disabled,size:e.collapseTagSize,type:"info","disable-transitions":"",onClose:h=>e.deleteTag(h,d)},{default:re(()=>[Y("span",{class:V(e.nsSelectV2.e("tags-text")),style:Ye({maxWidth:`${e.tagMaxWidth}px`})},De(e.getLabel(d)),7)]),_:2},1032,["closable","size","onClose"])],2))),128)),Y("div",{class:V([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-wrapper")]),style:Ye(e.inputWrapperStyle)},[dt(Y("input",{id:e.id,ref:"inputRef",autocomplete:e.autocomplete,"aria-autocomplete":"list","aria-haspopup":"listbox",autocapitalize:"off","aria-expanded":e.expanded,"aria-labelledby":e.label,class:V([e.nsSelectV2.is(e.selectSize),e.nsSelectV2.e("combobox-input")]),disabled:e.disabled,role:"combobox",readonly:!e.filterable,spellcheck:"false",type:"text",name:e.name,unselectable:e.expanded?"on":void 0,"onUpdate:modelValue":t[0]||(t[0]=(...d)=>e.onUpdateInputValue&&e.onUpdateInputValue(...d)),onFocus:t[1]||(t[1]=(...d)=>e.handleFocus&&e.handleFocus(...d)),onBlur:t[2]||(t[2]=(...d)=>e.handleBlur&&e.handleBlur(...d)),onInput:t[3]||(t[3]=(...d)=>e.onInput&&e.onInput(...d)),onCompositionstart:t[4]||(t[4]=(...d)=>e.handleCompositionStart&&e.handleCompositionStart(...d)),onCompositionupdate:t[5]||(t[5]=(...d)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...d)),onCompositionend:t[6]||(t[6]=(...d)=>e.handleCompositionEnd&&e.handleCompositionEnd(...d)),onKeydown:[t[7]||(t[7]=Ft(tt(d=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),t[8]||(t[8]=Ft(tt(d=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),t[9]||(t[9]=Ft(tt((...d)=>e.onKeyboardSelect&&e.onKeyboardSelect(...d),["stop","prevent"]),["enter"])),t[10]||(t[10]=Ft(tt((...d)=>e.handleEsc&&e.handleEsc(...d),["stop","prevent"]),["esc"])),t[11]||(t[11]=Ft(tt((...d)=>e.handleDel&&e.handleDel(...d),["stop"]),["delete"]))]},null,42,SCe),[[c,e.states.displayInputValue]]),e.filterable?(R(),K("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:V(e.nsSelectV2.e("input-calculator")),textContent:De(e.states.displayInputValue)},null,10,CCe)):se("v-if",!0)],6)],2)):(R(),K(je,{key:2},[Y("div",{class:V([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-wrapper")])},[dt(Y("input",{id:e.id,ref:"inputRef","aria-autocomplete":"list","aria-haspopup":"listbox","aria-labelledby":e.label,"aria-expanded":e.expanded,autocapitalize:"off",autocomplete:e.autocomplete,class:V(e.nsSelectV2.e("combobox-input")),disabled:e.disabled,name:e.name,role:"combobox",readonly:!e.filterable,spellcheck:"false",type:"text",unselectable:e.expanded?"on":void 0,onCompositionstart:t[12]||(t[12]=(...d)=>e.handleCompositionStart&&e.handleCompositionStart(...d)),onCompositionupdate:t[13]||(t[13]=(...d)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...d)),onCompositionend:t[14]||(t[14]=(...d)=>e.handleCompositionEnd&&e.handleCompositionEnd(...d)),onFocus:t[15]||(t[15]=(...d)=>e.handleFocus&&e.handleFocus(...d)),onBlur:t[16]||(t[16]=(...d)=>e.handleBlur&&e.handleBlur(...d)),onInput:t[17]||(t[17]=(...d)=>e.onInput&&e.onInput(...d)),onKeydown:[t[18]||(t[18]=Ft(tt(d=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),t[19]||(t[19]=Ft(tt(d=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),t[20]||(t[20]=Ft(tt((...d)=>e.onKeyboardSelect&&e.onKeyboardSelect(...d),["stop","prevent"]),["enter"])),t[21]||(t[21]=Ft(tt((...d)=>e.handleEsc&&e.handleEsc(...d),["stop","prevent"]),["esc"]))],"onUpdate:modelValue":t[22]||(t[22]=(...d)=>e.onUpdateInputValue&&e.onUpdateInputValue(...d))},null,42,xCe),[[c,e.states.displayInputValue]])],2),e.filterable?(R(),K("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:V([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-calculator")]),textContent:De(e.states.displayInputValue)},null,10,TCe)):se("v-if",!0)],64)),e.shouldShowPlaceholder?(R(),K("span",{key:3,class:V([e.nsSelectV2.e("placeholder"),e.nsSelectV2.is("transparent",e.multiple?e.modelValue.length===0:!e.hasModelValue)])},De(e.currentPlaceholder),3)):se("v-if",!0),Y("span",{class:V(e.nsSelectV2.e("suffix"))},[e.iconComponent?dt((R(),ce(l,{key:0,class:V([e.nsSelectV2.e("caret"),e.nsInput.e("icon"),e.iconReverse])},{default:re(()=>[(R(),ce(Ct(e.iconComponent)))]),_:1},8,["class"])),[[Kt,!e.showClearBtn]]):se("v-if",!0),e.showClearBtn&&e.clearIcon?(R(),ce(l,{key:1,class:V([e.nsSelectV2.e("caret"),e.nsInput.e("icon")]),onClick:tt(e.handleClear,["prevent","stop"])},{default:re(()=>[(R(),ce(Ct(e.clearIcon)))]),_:1},8,["class","onClick"])):se("v-if",!0),e.validateState&&e.validateIcon?(R(),ce(l,{key:2,class:V([e.nsInput.e("icon"),e.nsInput.e("validateIcon")])},{default:re(()=>[(R(),ce(Ct(e.validateIcon)))]),_:1},8,["class"])):se("v-if",!0)],2)],2)]),content:re(()=>[q(u,{ref:"menuRef",data:e.filteredOptions,width:e.popperSize,"hovering-index":e.states.hoveringIndex,"scrollbar-always-on":e.scrollbarAlwaysOn},{default:re(d=>[_e(e.$slots,"default",Mi(Lb(d)))]),empty:re(()=>[_e(e.$slots,"empty",{},()=>[Y("p",{class:V(e.nsSelectV2.e("empty"))},De(e.emptyText?e.emptyText:""),3)])]),_:3},8,["data","width","hovering-index","scrollbar-always-on"])]),_:3},8,["visible","teleported","popper-class","popper-options","effect","placement","transition","persistent","onBeforeShow"])],34)),[[f,e.handleClickOutside,e.popperRef]])}var Sy=Pe(_Ce,[["render",MCe],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/select.vue"]]);Sy.install=e=>{e.component(Sy.name,Sy)};const kCe=Sy,ACe=kCe,ECe=Le({animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:Number}}),ICe=Le({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),DCe=ne({name:"ElSkeletonItem"}),PCe=ne({...DCe,props:ICe,setup(e){const t=Me("skeleton");return(n,r)=>(R(),K("div",{class:V([y(t).e("item"),y(t).e(n.variant)])},[n.variant==="image"?(R(),ce(y(Roe),{key:0})):se("v-if",!0)],2))}});var S0=Pe(PCe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton-item.vue"]]);const LCe=ne({name:"ElSkeleton"}),RCe=ne({...LCe,props:ECe,setup(e,{expose:t}){const n=e,r=Me("skeleton"),a=Lue(kn(n,"loading"),n.throttle);return t({uiLoading:a}),(i,o)=>y(a)?(R(),K("div",St({key:0,class:[y(r).b(),y(r).is("animated",i.animated)]},i.$attrs),[(R(!0),K(je,null,Ot(i.count,s=>(R(),K(je,{key:s},[i.loading?_e(i.$slots,"template",{key:s},()=>[q(S0,{class:V(y(r).is("first")),variant:"p"},null,8,["class"]),(R(!0),K(je,null,Ot(i.rows,l=>(R(),ce(S0,{key:l,class:V([y(r).e("paragraph"),y(r).is("last",l===i.rows&&i.rows>1)]),variant:"p"},null,8,["class"]))),128))]):se("v-if",!0)],64))),128))],16)):_e(i.$slots,"default",Mi(St({key:1},i.$attrs)))}});var OCe=Pe(RCe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton.vue"]]);const $Ce=_t(OCe,{SkeletonItem:S0}),NCe=Dn(S0),Y8=Symbol("sliderContextKey"),BCe=Le({modelValue:{type:ue([Number,Array]),default:0},id:{type:String,default:void 0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},showInput:Boolean,showInputControls:{type:Boolean,default:!0},size:Sr,inputSize:Sr,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:ue(Function),default:void 0},disabled:Boolean,range:Boolean,vertical:Boolean,height:String,debounce:{type:Number,default:300},label:{type:String,default:void 0},rangeStartLabel:{type:String,default:void 0},rangeEndLabel:{type:String,default:void 0},formatValueText:{type:ue(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:wc,default:"top"},marks:{type:ue(Object)},validateEvent:{type:Boolean,default:!0}}),I_=e=>at(e)||He(e)&&e.every(at),VCe={[wt]:I_,[qr]:I_,[mn]:I_},zCe=(e,t,n)=>{const r=H();return yt(async()=>{e.range?(Array.isArray(e.modelValue)?(t.firstValue=Math.max(e.min,e.modelValue[0]),t.secondValue=Math.min(e.max,e.modelValue[1])):(t.firstValue=e.min,t.secondValue=e.max),t.oldValue=[t.firstValue,t.secondValue]):(typeof e.modelValue!="number"||Number.isNaN(e.modelValue)?t.firstValue=e.min:t.firstValue=Math.min(e.max,Math.max(e.min,e.modelValue)),t.oldValue=t.firstValue),bn(window,"resize",n),await Ue(),n()}),{sliderWrapper:r}},FCe=e=>P(()=>e.marks?Object.keys(e.marks).map(Number.parseFloat).sort((n,r)=>n-r).filter(n=>n<=e.max&&n>=e.min).map(n=>({point:n,position:(n-e.min)*100/(e.max-e.min),mark:e.marks[n]})):[]),HCe=(e,t,n)=>{const{form:r,formItem:a}=aa(),i=un(),o=H(),s=H(),l={firstButton:o,secondButton:s},u=P(()=>e.disabled||(r==null?void 0:r.disabled)||!1),c=P(()=>Math.min(t.firstValue,t.secondValue)),f=P(()=>Math.max(t.firstValue,t.secondValue)),d=P(()=>e.range?`${100*(f.value-c.value)/(e.max-e.min)}%`:`${100*(t.firstValue-e.min)/(e.max-e.min)}%`),h=P(()=>e.range?`${100*(c.value-e.min)/(e.max-e.min)}%`:"0%"),v=P(()=>e.vertical?{height:e.height}:{}),p=P(()=>e.vertical?{height:d.value,bottom:h.value}:{width:d.value,left:h.value}),g=()=>{i.value&&(t.sliderSize=i.value[`client${e.vertical?"Height":"Width"}`])},m=k=>{const E=e.min+k*(e.max-e.min)/100;if(!e.range)return o;let D;return Math.abs(c.value-E)<Math.abs(f.value-E)?D=t.firstValue<t.secondValue?"firstButton":"secondButton":D=t.firstValue>t.secondValue?"firstButton":"secondButton",l[D]},b=k=>{const E=m(k);return E.value.setPosition(k),E},_=k=>{t.firstValue=k,C(e.range?[c.value,f.value]:k)},w=k=>{t.secondValue=k,e.range&&C([c.value,f.value])},C=k=>{n(wt,k),n(qr,k)},S=async()=>{await Ue(),n(mn,e.range?[c.value,f.value]:e.modelValue)},x=k=>{var E,D,L,B,N,O;if(u.value||t.dragging)return;g();let $=0;if(e.vertical){const I=(L=(D=(E=k.touches)==null?void 0:E.item(0))==null?void 0:D.clientY)!=null?L:k.clientY;$=(i.value.getBoundingClientRect().bottom-I)/t.sliderSize*100}else{const I=(O=(N=(B=k.touches)==null?void 0:B.item(0))==null?void 0:N.clientX)!=null?O:k.clientX,z=i.value.getBoundingClientRect().left;$=(I-z)/t.sliderSize*100}if(!($<0||$>100))return b($)};return{elFormItem:a,slider:i,firstButton:o,secondButton:s,sliderDisabled:u,minValue:c,maxValue:f,runwayStyle:v,barStyle:p,resetSize:g,setPosition:b,emitChange:S,onSliderWrapperPrevent:k=>{var E,D;((E=l.firstButton.value)!=null&&E.dragging||(D=l.secondButton.value)!=null&&D.dragging)&&k.preventDefault()},onSliderClick:k=>{x(k)&&S()},onSliderDown:async k=>{const E=x(k);E&&(await Ue(),E.value.onButtonDown(k))},setFirstValue:_,setSecondValue:w}},{left:GCe,down:WCe,right:KCe,up:UCe,home:YCe,end:jCe,pageUp:qCe,pageDown:XCe}=Xe,ZCe=(e,t,n)=>{const r=H(),a=H(!1),i=P(()=>t.value instanceof Function),o=P(()=>i.value&&t.value(e.modelValue)||e.modelValue),s=Qr(()=>{n.value&&(a.value=!0)},50),l=Qr(()=>{n.value&&(a.value=!1)},50);return{tooltip:r,tooltipVisible:a,formatValue:o,displayTooltip:s,hideTooltip:l}},JCe=(e,t,n)=>{const{disabled:r,min:a,max:i,step:o,showTooltip:s,precision:l,sliderSize:u,formatTooltip:c,emitChange:f,resetSize:d,updateDragging:h}=Ge(Y8),{tooltip:v,tooltipVisible:p,formatValue:g,displayTooltip:m,hideTooltip:b}=ZCe(e,c,s),_=H(),w=P(()=>`${(e.modelValue-a.value)/(i.value-a.value)*100}%`),C=P(()=>e.vertical?{bottom:w.value}:{left:w.value}),S=()=>{t.hovering=!0,m()},x=()=>{t.hovering=!1,t.dragging||b()},T=U=>{r.value||(U.preventDefault(),$(U),window.addEventListener("mousemove",I),window.addEventListener("touchmove",I),window.addEventListener("mouseup",z),window.addEventListener("touchend",z),window.addEventListener("contextmenu",z),_.value.focus())},M=U=>{r.value||(t.newPosition=Number.parseFloat(w.value)+U/(i.value-a.value)*100,G(t.newPosition),f())},A=()=>{M(-o.value)},k=()=>{M(o.value)},E=()=>{M(-o.value*4)},D=()=>{M(o.value*4)},L=()=>{r.value||(G(0),f())},B=()=>{r.value||(G(100),f())},N=U=>{let Z=!0;[GCe,WCe].includes(U.key)?A():[KCe,UCe].includes(U.key)?k():U.key===YCe?L():U.key===jCe?B():U.key===XCe?E():U.key===qCe?D():Z=!1,Z&&U.preventDefault()},O=U=>{let Z,ae;return U.type.startsWith("touch")?(ae=U.touches[0].clientY,Z=U.touches[0].clientX):(ae=U.clientY,Z=U.clientX),{clientX:Z,clientY:ae}},$=U=>{t.dragging=!0,t.isClick=!0;const{clientX:Z,clientY:ae}=O(U);e.vertical?t.startY=ae:t.startX=Z,t.startPosition=Number.parseFloat(w.value),t.newPosition=t.startPosition},I=U=>{if(t.dragging){t.isClick=!1,m(),d();let Z;const{clientX:ae,clientY:J}=O(U);e.vertical?(t.currentY=J,Z=(t.startY-t.currentY)/u.value*100):(t.currentX=ae,Z=(t.currentX-t.startX)/u.value*100),t.newPosition=t.startPosition+Z,G(t.newPosition)}},z=()=>{t.dragging&&(setTimeout(()=>{t.dragging=!1,t.hovering||b(),t.isClick||G(t.newPosition),f()},0),window.removeEventListener("mousemove",I),window.removeEventListener("touchmove",I),window.removeEventListener("mouseup",z),window.removeEventListener("touchend",z),window.removeEventListener("contextmenu",z))},G=async U=>{if(U===null||Number.isNaN(+U))return;U<0?U=0:U>100&&(U=100);const Z=100/((i.value-a.value)/o.value);let J=Math.round(U/Z)*Z*(i.value-a.value)*.01+a.value;J=Number.parseFloat(J.toFixed(l.value)),J!==e.modelValue&&n(wt,J),!t.dragging&&e.modelValue!==t.oldValue&&(t.oldValue=e.modelValue),await Ue(),t.dragging&&m(),v.value.updatePopper()};return xe(()=>t.dragging,U=>{h(U)}),{disabled:r,button:_,tooltip:v,tooltipVisible:p,showTooltip:s,wrapperStyle:C,formatValue:g,handleMouseEnter:S,handleMouseLeave:x,onButtonDown:T,onKeyDown:N,setPosition:G}},QCe=(e,t,n,r)=>({stops:P(()=>{if(!e.showStops||e.min>e.max)return[];if(e.step===0)return[];const o=(e.max-e.min)/e.step,s=100*e.step/(e.max-e.min),l=Array.from({length:o-1}).map((u,c)=>(c+1)*s);return e.range?l.filter(u=>u<100*(n.value-e.min)/(e.max-e.min)||u>100*(r.value-e.min)/(e.max-e.min)):l.filter(u=>u>100*(t.firstValue-e.min)/(e.max-e.min))}),getStopStyle:o=>e.vertical?{bottom:`${o}%`}:{left:`${o}%`}}),exe=(e,t,n,r,a,i)=>{const o=u=>{a(wt,u),a(qr,u)},s=()=>e.range?![n.value,r.value].every((u,c)=>u===t.oldValue[c]):e.modelValue!==t.oldValue,l=()=>{var u,c;e.min>e.max&&jn("Slider","min should not be greater than max.");const f=e.modelValue;e.range&&Array.isArray(f)?f[1]<e.min?o([e.min,e.min]):f[0]>e.max?o([e.max,e.max]):f[0]<e.min?o([e.min,f[1]]):f[1]>e.max?o([f[0],e.max]):(t.firstValue=f[0],t.secondValue=f[1],s()&&(e.validateEvent&&((u=i==null?void 0:i.validate)==null||u.call(i,"change").catch(d=>void 0)),t.oldValue=f.slice())):!e.range&&typeof f=="number"&&!Number.isNaN(f)&&(f<e.min?o(e.min):f>e.max?o(e.max):(t.firstValue=f,s()&&(e.validateEvent&&((c=i==null?void 0:i.validate)==null||c.call(i,"change").catch(d=>void 0)),t.oldValue=f)))};l(),xe(()=>t.dragging,u=>{u||l()}),xe(()=>e.modelValue,(u,c)=>{t.dragging||Array.isArray(u)&&Array.isArray(c)&&u.every((f,d)=>f===c[d])&&t.firstValue===u[0]&&t.secondValue===u[1]||l()},{deep:!0}),xe(()=>[e.min,e.max],()=>{l()})},txe=Le({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:wc,default:"top"}}),nxe={[wt]:e=>at(e)},rxe=["tabindex"],axe=ne({name:"ElSliderButton"}),ixe=ne({...axe,props:txe,emits:nxe,setup(e,{expose:t,emit:n}){const r=e,a=Me("slider"),i=jt({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:r.modelValue}),{disabled:o,button:s,tooltip:l,showTooltip:u,tooltipVisible:c,wrapperStyle:f,formatValue:d,handleMouseEnter:h,handleMouseLeave:v,onButtonDown:p,onKeyDown:g,setPosition:m}=JCe(r,i,n),{hovering:b,dragging:_}=or(i);return t({onButtonDown:p,onKeyDown:g,setPosition:m,hovering:b,dragging:_}),(w,C)=>(R(),K("div",{ref_key:"button",ref:s,class:V([y(a).e("button-wrapper"),{hover:y(b),dragging:y(_)}]),style:Ye(y(f)),tabindex:y(o)?-1:0,onMouseenter:C[0]||(C[0]=(...S)=>y(h)&&y(h)(...S)),onMouseleave:C[1]||(C[1]=(...S)=>y(v)&&y(v)(...S)),onMousedown:C[2]||(C[2]=(...S)=>y(p)&&y(p)(...S)),onTouchstart:C[3]||(C[3]=(...S)=>y(p)&&y(p)(...S)),onFocus:C[4]||(C[4]=(...S)=>y(h)&&y(h)(...S)),onBlur:C[5]||(C[5]=(...S)=>y(v)&&y(v)(...S)),onKeydown:C[6]||(C[6]=(...S)=>y(g)&&y(g)(...S))},[q(y(ea),{ref_key:"tooltip",ref:l,visible:y(c),placement:w.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":w.tooltipClass,disabled:!y(u),persistent:""},{content:re(()=>[Y("span",null,De(y(d)),1)]),default:re(()=>[Y("div",{class:V([y(a).e("button"),{hover:y(b),dragging:y(_)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled"])],46,rxe))}});var eL=Pe(ixe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/button.vue"]]);const oxe=Le({mark:{type:ue([String,Object]),default:void 0}});var sxe=ne({name:"ElSliderMarker",props:oxe,setup(e){const t=Me("slider"),n=P(()=>lt(e.mark)?e.mark:e.mark.label),r=P(()=>lt(e.mark)?void 0:e.mark.style);return()=>Ze("div",{class:t.e("marks-text"),style:r.value},n.value)}});const lxe=["id","role","aria-label","aria-labelledby"],uxe={key:1},cxe=ne({name:"ElSlider"}),fxe=ne({...cxe,props:BCe,emits:VCe,setup(e,{expose:t,emit:n}){const r=e,a=Me("slider"),{t:i}=Ht(),o=jt({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:s,slider:l,firstButton:u,secondButton:c,sliderDisabled:f,minValue:d,maxValue:h,runwayStyle:v,barStyle:p,resetSize:g,emitChange:m,onSliderWrapperPrevent:b,onSliderClick:_,onSliderDown:w,setFirstValue:C,setSecondValue:S}=HCe(r,o,n),{stops:x,getStopStyle:T}=QCe(r,o,d,h),{inputId:M,isLabeledByFormItem:A}=Il(r,{formItemContext:s}),k=qn(),E=P(()=>r.inputSize||k.value),D=P(()=>r.label||i("el.slider.defaultLabel",{min:r.min,max:r.max})),L=P(()=>r.range?r.rangeStartLabel||i("el.slider.defaultRangeStartLabel"):D.value),B=P(()=>r.formatValueText?r.formatValueText(U.value):`${U.value}`),N=P(()=>r.rangeEndLabel||i("el.slider.defaultRangeEndLabel")),O=P(()=>r.formatValueText?r.formatValueText(Z.value):`${Z.value}`),$=P(()=>[a.b(),a.m(k.value),a.is("vertical",r.vertical),{[a.m("with-input")]:r.showInput}]),I=FCe(r);exe(r,o,d,h,n,s);const z=P(()=>{const Q=[r.min,r.max,r.step].map(ee=>{const j=`${ee}`.split(".")[1];return j?j.length:0});return Math.max.apply(null,Q)}),{sliderWrapper:G}=zCe(r,o,g),{firstValue:U,secondValue:Z,sliderSize:ae}=or(o),J=Q=>{o.dragging=Q};return Et(Y8,{...or(r),sliderSize:ae,disabled:f,precision:z,emitChange:m,resetSize:g,updateDragging:J}),t({onSliderClick:_}),(Q,ee)=>{var j,de;return R(),K("div",{id:Q.range?y(M):void 0,ref_key:"sliderWrapper",ref:G,class:V(y($)),role:Q.range?"group":void 0,"aria-label":Q.range&&!y(A)?y(D):void 0,"aria-labelledby":Q.range&&y(A)?(j=y(s))==null?void 0:j.labelId:void 0,onTouchstart:ee[2]||(ee[2]=(...ve)=>y(b)&&y(b)(...ve)),onTouchmove:ee[3]||(ee[3]=(...ve)=>y(b)&&y(b)(...ve))},[Y("div",{ref_key:"slider",ref:l,class:V([y(a).e("runway"),{"show-input":Q.showInput&&!Q.range},y(a).is("disabled",y(f))]),style:Ye(y(v)),onMousedown:ee[0]||(ee[0]=(...ve)=>y(w)&&y(w)(...ve)),onTouchstart:ee[1]||(ee[1]=(...ve)=>y(w)&&y(w)(...ve))},[Y("div",{class:V(y(a).e("bar")),style:Ye(y(p))},null,6),q(eL,{id:Q.range?void 0:y(M),ref_key:"firstButton",ref:u,"model-value":y(U),vertical:Q.vertical,"tooltip-class":Q.tooltipClass,placement:Q.placement,role:"slider","aria-label":Q.range||!y(A)?y(L):void 0,"aria-labelledby":!Q.range&&y(A)?(de=y(s))==null?void 0:de.labelId:void 0,"aria-valuemin":Q.min,"aria-valuemax":Q.range?y(Z):Q.max,"aria-valuenow":y(U),"aria-valuetext":y(B),"aria-orientation":Q.vertical?"vertical":"horizontal","aria-disabled":y(f),"onUpdate:modelValue":y(C)},null,8,["id","model-value","vertical","tooltip-class","placement","aria-label","aria-labelledby","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"]),Q.range?(R(),ce(eL,{key:0,ref_key:"secondButton",ref:c,"model-value":y(Z),vertical:Q.vertical,"tooltip-class":Q.tooltipClass,placement:Q.placement,role:"slider","aria-label":y(N),"aria-valuemin":y(U),"aria-valuemax":Q.max,"aria-valuenow":y(Z),"aria-valuetext":y(O),"aria-orientation":Q.vertical?"vertical":"horizontal","aria-disabled":y(f),"onUpdate:modelValue":y(S)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):se("v-if",!0),Q.showStops?(R(),K("div",uxe,[(R(!0),K(je,null,Ot(y(x),(ve,ie)=>(R(),K("div",{key:ie,class:V(y(a).e("stop")),style:Ye(y(T)(ve))},null,6))),128))])):se("v-if",!0),y(I).length>0?(R(),K(je,{key:2},[Y("div",null,[(R(!0),K(je,null,Ot(y(I),(ve,ie)=>(R(),K("div",{key:ie,style:Ye(y(T)(ve.position)),class:V([y(a).e("stop"),y(a).e("marks-stop")])},null,6))),128))]),Y("div",{class:V(y(a).e("marks"))},[(R(!0),K(je,null,Ot(y(I),(ve,ie)=>(R(),ce(y(sxe),{key:ie,mark:ve.mark,style:Ye(y(T)(ve.position))},null,8,["mark","style"]))),128))],2)],64)):se("v-if",!0)],38),Q.showInput&&!Q.range?(R(),ce(y(_8),{key:0,ref:"input","model-value":y(U),class:V(y(a).e("input")),step:Q.step,disabled:y(f),controls:Q.showInputControls,min:Q.min,max:Q.max,debounce:Q.debounce,size:y(E),"onUpdate:modelValue":y(C),onChange:y(m)},null,8,["model-value","class","step","disabled","controls","min","max","debounce","size","onUpdate:modelValue","onChange"])):se("v-if",!0)],42,lxe)}}});var dxe=Pe(fxe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/slider.vue"]]);const hxe=_t(dxe),vxe=Le({prefixCls:{type:String}}),tL=ne({name:"ElSpaceItem",props:vxe,setup(e,{slots:t}){const n=Me("space"),r=P(()=>`${e.prefixCls||n.b()}__item`);return()=>Ze("div",{class:r.value},_e(t,"default"))}}),nL={small:8,default:12,large:16};function pxe(e){const t=Me("space"),n=P(()=>[t.b(),t.m(e.direction),e.class]),r=H(0),a=H(0),i=P(()=>{const s=e.wrap||e.fill?{flexWrap:"wrap",marginBottom:`-${a.value}px`}:{},l={alignItems:e.alignment};return[s,l,e.style]}),o=P(()=>{const s={paddingBottom:`${a.value}px`,marginRight:`${r.value}px`},l=e.fill?{flexGrow:1,minWidth:`${e.fillRatio}%`}:{};return[s,l]});return Ia(()=>{const{size:s="small",wrap:l,direction:u,fill:c}=e;if(He(s)){const[f=0,d=0]=s;r.value=f,a.value=d}else{let f;at(s)?f=s:f=nL[s||"small"]||nL.small,(l||c)&&u==="horizontal"?r.value=a.value=f:u==="horizontal"?(r.value=f,a.value=0):(a.value=f,r.value=0)}}),{classes:n,containerStyle:i,itemStyle:o}}const gxe=Le({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:ue([String,Object,Array]),default:""},style:{type:ue([String,Array,Object]),default:""},alignment:{type:ue(String),default:"center"},prefixCls:{type:String},spacer:{type:ue([Object,String,Number,Array]),default:null,validator:e=>Tn(e)||at(e)||lt(e)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:Mo,validator:e=>at(e)||He(e)&&e.length===2&&e.every(at)}}),mxe=ne({name:"ElSpace",props:gxe,setup(e,{slots:t}){const{classes:n,containerStyle:r,itemStyle:a}=pxe(e);function i(o,s="",l=[]){const{prefixCls:u}=e;return o.forEach((c,f)=>{kC(c)?He(c.children)&&c.children.forEach((d,h)=>{kC(d)&&He(d.children)?i(d.children,`${s+h}-`,l):l.push(q(tL,{style:a.value,prefixCls:u,key:`nested-${s+h}`},{default:()=>[d]},Ga.PROPS|Ga.STYLE,["style","prefixCls"]))}):yle(c)&&l.push(q(tL,{style:a.value,prefixCls:u,key:`LoopKey${s+f}`},{default:()=>[c]},Ga.PROPS|Ga.STYLE,["style","prefixCls"]))}),l}return()=>{var o;const{spacer:s,direction:l}=e,u=_e(t,"default",{key:0},()=>[]);if(((o=u.children)!=null?o:[]).length===0)return null;if(He(u.children)){let c=i(u.children);if(s){const f=c.length-1;c=c.reduce((d,h,v)=>{const p=[...d,h];return v!==f&&p.push(q("span",{style:[a.value,l==="vertical"?"width: 100%":null],key:v},[Tn(s)?s:Ut(s,Ga.TEXT)],Ga.STYLE)),p},[])}return q("div",{class:n.value,style:r.value},c,Ga.STYLE|Ga.CLASS)}return u.children}}}),yxe=_t(mxe),bxe=Le({decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},precision:{type:Number,default:0},formatter:Function,value:{type:ue([Number,Object]),default:0},prefix:String,suffix:String,title:String,valueStyle:{type:ue([String,Object,Array])}}),_xe=ne({name:"ElStatistic"}),wxe=ne({..._xe,props:bxe,setup(e,{expose:t}){const n=e,r=Me("statistic"),a=P(()=>{const{value:i,formatter:o,precision:s,decimalSeparator:l,groupSeparator:u}=n;if(it(o))return o(i);if(!at(i))return i;let[c,f=""]=String(i).split(".");return f=f.padEnd(s,"0").slice(0,s>0?s:0),c=c.replace(/\B(?=(\d{3})+(?!\d))/g,u),[c,f].join(f?l:"")});return t({displayValue:a}),(i,o)=>(R(),K("div",{class:V(y(r).b())},[i.$slots.title||i.title?(R(),K("div",{key:0,class:V(y(r).e("head"))},[_e(i.$slots,"title",{},()=>[Ut(De(i.title),1)])],2)):se("v-if",!0),Y("div",{class:V(y(r).e("content"))},[i.$slots.prefix||i.prefix?(R(),K("div",{key:0,class:V(y(r).e("prefix"))},[_e(i.$slots,"prefix",{},()=>[Y("span",null,De(i.prefix),1)])],2)):se("v-if",!0),Y("span",{class:V(y(r).e("number")),style:Ye(i.valueStyle)},De(y(a)),7),i.$slots.suffix||i.suffix?(R(),K("div",{key:1,class:V(y(r).e("suffix"))},[_e(i.$slots,"suffix",{},()=>[Y("span",null,De(i.suffix),1)])],2)):se("v-if",!0)],2)],2))}});var Sxe=Pe(wxe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/statistic/src/statistic.vue"]]);const j8=_t(Sxe),Cxe=Le({format:{type:String,default:"HH:mm:ss"},prefix:String,suffix:String,title:String,value:{type:ue([Number,Object]),default:0},valueStyle:{type:ue([String,Object,Array])}}),xxe={finish:()=>!0,[mn]:e=>at(e)},Txe=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]],rL=e=>at(e)?new Date(e).getTime():e.valueOf(),aL=(e,t)=>{let n=e;const r=/\[([^\]]*)]/g;return Txe.reduce((i,[o,s])=>{const l=new RegExp(`${o}+(?![^\\[\\]]*\\])`,"g");if(l.test(i)){const u=Math.floor(n/s);return n-=u*s,i.replace(l,c=>String(u).padStart(c.length,"0"))}return i},t).replace(r,"$1")},Mxe=ne({name:"ElCountdown"}),kxe=ne({...Mxe,props:Cxe,emits:xxe,setup(e,{expose:t,emit:n}){const r=e;let a;const i=H(rL(r.value)-Date.now()),o=P(()=>aL(i.value,r.format)),s=c=>aL(c,r.format),l=()=>{a&&(qb(a),a=void 0)},u=()=>{const c=rL(r.value),f=()=>{let d=c-Date.now();n("change",d),d<=0?(d=0,l(),n("finish")):a=Jf(f),i.value=d};a=Jf(f)};return xe(()=>[r.value,r.format],()=>{l(),u()},{immediate:!0}),wn(()=>{l()}),t({displayValue:o}),(c,f)=>(R(),ce(y(j8),{value:i.value,title:c.title,prefix:c.prefix,suffix:c.suffix,"value-style":c.valueStyle,formatter:s},Jo({_:2},[Ot(c.$slots,(d,h)=>({name:h,fn:re(()=>[_e(c.$slots,h)])}))]),1032,["value","title","prefix","suffix","value-style"]))}});var Axe=Pe(kxe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/countdown/src/countdown.vue"]]);const Exe=_t(Axe),Ixe=Le({space:{type:[Number,String],default:""},active:{type:Number,default:0},direction:{type:String,default:"horizontal",values:["horizontal","vertical"]},alignCenter:{type:Boolean},simple:{type:Boolean},finishStatus:{type:String,values:["wait","process","finish","error","success"],default:"finish"},processStatus:{type:String,values:["wait","process","finish","error","success"],default:"process"}}),Dxe={[mn]:(e,t)=>[e,t].every(at)},Pxe=ne({name:"ElSteps"}),Lxe=ne({...Pxe,props:Ixe,emits:Dxe,setup(e,{emit:t}){const n=e,r=Me("steps"),{children:a,addChild:i,removeChild:o}=EM(gt(),"ElStep");return xe(a,()=>{a.value.forEach((s,l)=>{s.setIndex(l)})}),Et("ElSteps",{props:n,steps:a,addStep:i,removeStep:o}),xe(()=>n.active,(s,l)=>{t(mn,s,l)}),(s,l)=>(R(),K("div",{class:V([y(r).b(),y(r).m(s.simple?"simple":s.direction)])},[_e(s.$slots,"default")],2))}});var Rxe=Pe(Lxe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/steps.vue"]]);const Oxe=Le({title:{type:String,default:""},icon:{type:fn},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}}),$xe=ne({name:"ElStep"}),Nxe=ne({...$xe,props:Oxe,setup(e){const t=e,n=Me("step"),r=H(-1),a=H({}),i=H(""),o=Ge("ElSteps"),s=gt();yt(()=>{xe([()=>o.props.active,()=>o.props.processStatus,()=>o.props.finishStatus],([S])=>{w(S)},{immediate:!0})}),wn(()=>{o.removeStep(C.uid)});const l=P(()=>t.status||i.value),u=P(()=>{const S=o.steps.value[r.value-1];return S?S.currentStatus:"wait"}),c=P(()=>o.props.alignCenter),f=P(()=>o.props.direction==="vertical"),d=P(()=>o.props.simple),h=P(()=>o.steps.value.length),v=P(()=>{var S;return((S=o.steps.value[h.value-1])==null?void 0:S.uid)===(s==null?void 0:s.uid)}),p=P(()=>d.value?"":o.props.space),g=P(()=>[n.b(),n.is(d.value?"simple":o.props.direction),n.is("flex",v.value&&!p.value&&!c.value),n.is("center",c.value&&!f.value&&!d.value)]),m=P(()=>{const S={flexBasis:at(p.value)?`${p.value}px`:p.value?p.value:`${100/(h.value-(c.value?0:1))}%`};return f.value||v.value&&(S.maxWidth=`${100/h.value}%`),S}),b=S=>{r.value=S},_=S=>{const x=S==="wait",T={transitionDelay:`${x?"-":""}${150*r.value}ms`},M=S===o.props.processStatus||x?0:100;T.borderWidth=M&&!d.value?"1px":0,T[o.props.direction==="vertical"?"height":"width"]=`${M}%`,a.value=T},w=S=>{S>r.value?i.value=o.props.finishStatus:S===r.value&&u.value!=="error"?i.value=o.props.processStatus:i.value="wait";const x=o.steps.value[r.value-1];x&&x.calcProgress(i.value)},C=jt({uid:s.uid,currentStatus:l,setIndex:b,calcProgress:_});return o.addStep(C),(S,x)=>(R(),K("div",{style:Ye(y(m)),class:V(y(g))},[se(" icon & line "),Y("div",{class:V([y(n).e("head"),y(n).is(y(l))])},[y(d)?se("v-if",!0):(R(),K("div",{key:0,class:V(y(n).e("line"))},[Y("i",{class:V(y(n).e("line-inner")),style:Ye(a.value)},null,6)],2)),Y("div",{class:V([y(n).e("icon"),y(n).is(S.icon||S.$slots.icon?"icon":"text")])},[_e(S.$slots,"icon",{},()=>[S.icon?(R(),ce(y(Ke),{key:0,class:V(y(n).e("icon-inner"))},{default:re(()=>[(R(),ce(Ct(S.icon)))]),_:1},8,["class"])):y(l)==="success"?(R(),ce(y(Ke),{key:1,class:V([y(n).e("icon-inner"),y(n).is("status")])},{default:re(()=>[q(y(Zp))]),_:1},8,["class"])):y(l)==="error"?(R(),ce(y(Ke),{key:2,class:V([y(n).e("icon-inner"),y(n).is("status")])},{default:re(()=>[q(y(Bi))]),_:1},8,["class"])):y(d)?se("v-if",!0):(R(),K("div",{key:3,class:V(y(n).e("icon-inner"))},De(r.value+1),3))])],2)],2),se(" title & description "),Y("div",{class:V(y(n).e("main"))},[Y("div",{class:V([y(n).e("title"),y(n).is(y(l))])},[_e(S.$slots,"title",{},()=>[Ut(De(S.title),1)])],2),y(d)?(R(),K("div",{key:0,class:V(y(n).e("arrow"))},null,2)):(R(),K("div",{key:1,class:V([y(n).e("description"),y(n).is(y(l))])},[_e(S.$slots,"description",{},()=>[Ut(De(S.description),1)])],2))],2)],6))}});var q8=Pe(Nxe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/item.vue"]]);const Bxe=_t(Rxe,{Step:q8}),Vxe=Dn(q8),zxe=Le({modelValue:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},size:{type:String,validator:Yb},width:{type:[String,Number],default:""},inlinePrompt:{type:Boolean,default:!1},inactiveActionIcon:{type:fn},activeActionIcon:{type:fn},activeIcon:{type:fn},inactiveIcon:{type:fn},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},borderColor:{type:String,default:""},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},beforeChange:{type:ue(Function)},id:String,tabindex:{type:[String,Number]},value:{type:[Boolean,String,Number],default:!1}}),Fxe={[wt]:e=>Un(e)||lt(e)||at(e),[mn]:e=>Un(e)||lt(e)||at(e),[qr]:e=>Un(e)||lt(e)||at(e)},Hxe=["onClick"],Gxe=["id","aria-checked","aria-disabled","name","true-value","false-value","disabled","tabindex","onKeydown"],Wxe=["aria-hidden"],Kxe=["aria-hidden"],Uxe=["aria-hidden"],fx="ElSwitch",Yxe=ne({name:fx}),jxe=ne({...Yxe,props:zxe,emits:Fxe,setup(e,{expose:t,emit:n}){const r=e,a=gt(),{formItem:i}=aa(),o=qn(),s=Me("switch");(T=>{T.forEach(M=>{bo({from:M[0],replacement:M[1],scope:fx,version:"2.3.0",ref:"https://element-plus.org/en-US/component/switch.html#attributes",type:"Attribute"},P(()=>{var A;return!!((A=a.vnode.props)!=null&&A[M[2]])}))})})([['"value"','"model-value" or "v-model"',"value"],['"active-color"',"CSS var `--el-switch-on-color`","activeColor"],['"inactive-color"',"CSS var `--el-switch-off-color`","inactiveColor"],['"border-color"',"CSS var `--el-switch-border-color`","borderColor"]]);const{inputId:u}=Il(r,{formItemContext:i}),c=wa(P(()=>r.loading)),f=H(r.modelValue!==!1),d=H(),h=H(),v=P(()=>[s.b(),s.m(o.value),s.is("disabled",c.value),s.is("checked",_.value)]),p=P(()=>[s.e("label"),s.em("label","left"),s.is("active",!_.value)]),g=P(()=>[s.e("label"),s.em("label","right"),s.is("active",_.value)]),m=P(()=>({width:On(r.width)}));xe(()=>r.modelValue,()=>{f.value=!0}),xe(()=>r.value,()=>{f.value=!1});const b=P(()=>f.value?r.modelValue:r.value),_=P(()=>b.value===r.activeValue);[r.activeValue,r.inactiveValue].includes(b.value)||(n(wt,r.inactiveValue),n(mn,r.inactiveValue),n(qr,r.inactiveValue)),xe(_,T=>{var M;d.value.checked=T,r.validateEvent&&((M=i==null?void 0:i.validate)==null||M.call(i,"change").catch(A=>void 0))});const w=()=>{const T=_.value?r.inactiveValue:r.activeValue;n(wt,T),n(mn,T),n(qr,T),Ue(()=>{d.value.checked=_.value})},C=()=>{if(c.value)return;const{beforeChange:T}=r;if(!T){w();return}const M=T();[Ev(M),Un(M)].includes(!0)||jn(fx,"beforeChange must return type `Promise<boolean>` or `boolean`"),Ev(M)?M.then(k=>{k&&w()}).catch(k=>{}):M&&w()},S=P(()=>s.cssVarBlock({...r.activeColor?{"on-color":r.activeColor}:null,...r.inactiveColor?{"off-color":r.inactiveColor}:null,...r.borderColor?{"border-color":r.borderColor}:null})),x=()=>{var T,M;(M=(T=d.value)==null?void 0:T.focus)==null||M.call(T)};return yt(()=>{d.value.checked=_.value}),t({focus:x,checked:_}),(T,M)=>(R(),K("div",{class:V(y(v)),style:Ye(y(S)),onClick:tt(C,["prevent"])},[Y("input",{id:y(u),ref_key:"input",ref:d,class:V(y(s).e("input")),type:"checkbox",role:"switch","aria-checked":y(_),"aria-disabled":y(c),name:T.name,"true-value":T.activeValue,"false-value":T.inactiveValue,disabled:y(c),tabindex:T.tabindex,onChange:w,onKeydown:Ft(C,["enter"])},null,42,Gxe),!T.inlinePrompt&&(T.inactiveIcon||T.inactiveText)?(R(),K("span",{key:0,class:V(y(p))},[T.inactiveIcon?(R(),ce(y(Ke),{key:0},{default:re(()=>[(R(),ce(Ct(T.inactiveIcon)))]),_:1})):se("v-if",!0),!T.inactiveIcon&&T.inactiveText?(R(),K("span",{key:1,"aria-hidden":y(_)},De(T.inactiveText),9,Wxe)):se("v-if",!0)],2)):se("v-if",!0),Y("span",{ref_key:"core",ref:h,class:V(y(s).e("core")),style:Ye(y(m))},[T.inlinePrompt?(R(),K("div",{key:0,class:V(y(s).e("inner"))},[T.activeIcon||T.inactiveIcon?(R(),ce(y(Ke),{key:0,class:V(y(s).is("icon"))},{default:re(()=>[(R(),ce(Ct(y(_)?T.activeIcon:T.inactiveIcon)))]),_:1},8,["class"])):T.activeText||T.inactiveText?(R(),K("span",{key:1,class:V(y(s).is("text")),"aria-hidden":!y(_)},De(y(_)?T.activeText:T.inactiveText),11,Kxe)):se("v-if",!0)],2)):se("v-if",!0),Y("div",{class:V(y(s).e("action"))},[T.loading?(R(),ce(y(Ke),{key:0,class:V(y(s).is("loading"))},{default:re(()=>[q(y(kl))]),_:1},8,["class"])):T.activeActionIcon&&y(_)?(R(),ce(y(Ke),{key:1},{default:re(()=>[(R(),ce(Ct(T.activeActionIcon)))]),_:1})):T.inactiveActionIcon&&!y(_)?(R(),ce(y(Ke),{key:2},{default:re(()=>[(R(),ce(Ct(T.inactiveActionIcon)))]),_:1})):se("v-if",!0)],2)],6),!T.inlinePrompt&&(T.activeIcon||T.activeText)?(R(),K("span",{key:1,class:V(y(g))},[T.activeIcon?(R(),ce(y(Ke),{key:0},{default:re(()=>[(R(),ce(Ct(T.activeIcon)))]),_:1})):se("v-if",!0),!T.activeIcon&&T.activeText?(R(),K("span",{key:1,"aria-hidden":!y(_)},De(T.activeText),9,Uxe)):se("v-if",!0)],2)):se("v-if",!0)],14,Hxe))}});var qxe=Pe(jxe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/switch/src/switch.vue"]]);const Xxe=_t(qxe);/*!
  53. * escape-html
  54. * Copyright(c) 2012-2013 TJ Holowaychuk
  55. * Copyright(c) 2015 Andreas Lubbe
  56. * Copyright(c) 2015 Tiancheng "Timothy" Gu
  57. * MIT Licensed
  58. */var Zxe=/["'&<>]/,Jxe=Qxe;function Qxe(e){var t=""+e,n=Zxe.exec(t);if(!n)return t;var r,a="",i=0,o=0;for(i=n.index;i<t.length;i++){switch(t.charCodeAt(i)){case 34:r="&quot;";break;case 38:r="&amp;";break;case 39:r="&#39;";break;case 60:r="&lt;";break;case 62:r="&gt;";break;default:continue}o!==i&&(a+=t.substring(o,i)),o=i+1,a+=r}return o!==i?a+t.substring(o,i):a}const e2e=ko(Jxe),D_=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},t2e=function(e,t,n,r,a){if(!t&&!r&&(!a||Array.isArray(a)&&!a.length))return e;typeof n=="string"?n=n==="descending"?-1:1:n=n&&n<0?-1:1;const i=r?null:function(s,l){return a?(Array.isArray(a)||(a=[a]),a.map(u=>typeof u=="string"?Sn(s,u):u(s,l,e))):(t!=="$key"&&Mt(s)&&"$value"in s&&(s=s.$value),[Mt(s)?Sn(s,t):s])},o=function(s,l){if(r)return r(s.value,l.value);for(let u=0,c=s.key.length;u<c;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:i?i(s,l):null})).sort((s,l)=>{let u=o(s,l);return u||(u=s.index-l.index),u*+n}).map(s=>s.value)},X8=function(e,t){let n=null;return e.columns.forEach(r=>{r.id===t&&(n=r)}),n},n2e=function(e,t){let n=null;for(let r=0;r<e.columns.length;r++){const a=e.columns[r];if(a.columnKey===t){n=a;break}}return n||jn("ElTable",`No column matching with column-key: ${t}`),n},iL=function(e,t,n){const r=(t.className||"").match(new RegExp(`${n}-table_[^\\s]+`,"gm"));return r?X8(e,r[0]):null},mr=(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 n=t.split(".");let r=e;for(const a of n)r=r[a];return`${r}`}else if(typeof t=="function")return t.call(null,e)},Ru=function(e,t){const n={};return(e||[]).forEach((r,a)=>{n[mr(r,t)]={row:r,index:a}}),n};function r2e(e,t){const n={};let r;for(r in e)n[r]=e[r];for(r in t)if(Nt(t,r)){const a=t[r];typeof a<"u"&&(n[r]=a)}return n}function JM(e){return e===""||e!==void 0&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function Z8(e){return e===""||e!==void 0&&(e=JM(e),Number.isNaN(e)&&(e=80)),e}function a2e(e){return typeof e=="number"?e:typeof e=="string"?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function i2e(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function uv(e,t,n){let r=!1;const a=e.indexOf(t),i=a!==-1,o=s=>{s==="add"?e.push(t):e.splice(a,1),r=!0,He(t.children)&&t.children.forEach(l=>{uv(e,l,n??!i)})};return Un(n)?n&&!i?o("add"):!n&&i&&o("remove"):o(i?"remove":"add"),r}function o2e(e,t,n="children",r="hasChildren"){const a=o=>!(Array.isArray(o)&&o.length);function i(o,s,l){t(o,s,l),s.forEach(u=>{if(u[r]){t(u,null,l+1);return}const c=u[n];a(c)||i(u,c,l+1)})}e.forEach(o=>{if(o[r]){t(o,null,0);return}const s=o[n];a(s)||i(o,s,0)})}let $o;function s2e(e,t,n,r,a){a=L5({enterable:!0,showArrow:!0},a);const i=e==null?void 0:e.dataset.prefix,o=e==null?void 0:e.querySelector(`.${i}-scrollbar__wrap`);function s(){const g=a.effect==="light",m=document.createElement("div");return m.className=[`${i}-popper`,g?"is-light":"is-dark",a.popperClass||""].join(" "),n=e2e(n),m.innerHTML=n,m.style.zIndex=String(r()),e==null||e.appendChild(m),m}function l(){const g=document.createElement("div");return g.className=`${i}-popper__arrow`,g}function u(){c&&c.update()}$o==null||$o(),$o=()=>{try{c&&c.destroy(),h&&(e==null||e.removeChild(h)),t.removeEventListener("mouseenter",f),t.removeEventListener("mouseleave",d),o==null||o.removeEventListener("scroll",$o),$o=void 0}catch{}};let c=null,f=u,d=$o;a.enterable&&({onOpen:f,onClose:d}=hz({showAfter:a.showAfter,hideAfter:a.hideAfter,open:u,close:$o}));const h=s();h.onmouseenter=f,h.onmouseleave=d;const v=[];if(a.offset&&v.push({name:"offset",options:{offset:[0,a.offset]}}),a.showArrow){const g=h.appendChild(l());v.push({name:"arrow",options:{element:g,padding:10}})}const p=a.popperOptions||{};return c=cz(t,h,{placement:a.placement||"top",strategy:"fixed",...p,modifiers:p.modifiers?v.concat(p.modifiers):v}),t.addEventListener("mouseenter",f),t.addEventListener("mouseleave",d),o==null||o.addEventListener("scroll",$o),c}function J8(e){return e.children?bre(e.children,J8):[e]}function oL(e,t){return e+t.colSpan}const Q8=(e,t,n,r)=>{let a=0,i=e;const o=n.states.columns.value;if(r){const l=J8(r[e]);a=o.slice(0,o.indexOf(l[0])).reduce(oL,0),i=a+l.reduce(oL,0)-1}else a=e;let s;switch(t){case"left":i<n.states.fixedLeafColumnsLength.value&&(s="left");break;case"right":a>=o.length-n.states.rightFixedLeafColumnsLength.value&&(s="right");break;default:i<n.states.fixedLeafColumnsLength.value?s="left":a>=o.length-n.states.rightFixedLeafColumnsLength.value&&(s="right")}return s?{direction:s,start:a,after:i}:{}},QM=(e,t,n,r,a,i=0)=>{const o=[],{direction:s,start:l,after:u}=Q8(t,n,r,a);if(s){const c=s==="left";o.push(`${e}-fixed-column--${s}`),c&&u+i===r.states.fixedLeafColumnsLength.value-1?o.push("is-last-column"):!c&&l-i===r.states.columns.value.length-r.states.rightFixedLeafColumnsLength.value&&o.push("is-first-column")}return o};function sL(e,t){return e+(t.realWidth===null||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const ek=(e,t,n,r)=>{const{direction:a,start:i=0,after:o=0}=Q8(e,t,n,r);if(!a)return;const s={},l=a==="left",u=n.states.columns.value;return l?s.left=u.slice(0,i).reduce(sL,0):s.right=u.slice(o+1).reverse().reduce(sL,0),s},od=(e,t)=>{e&&(Number.isNaN(e[t])||(e[t]=`${e[t]}px`))};function l2e(e){const t=gt(),n=H(!1),r=H([]);return{updateExpandRows:()=>{const l=e.data.value||[],u=e.rowKey.value;if(n.value)r.value=l.slice();else if(u){const c=Ru(r.value,u);r.value=l.reduce((f,d)=>{const h=mr(d,u);return c[h]&&f.push(d),f},[])}else r.value=[]},toggleRowExpansion:(l,u)=>{uv(r.value,l,u)&&t.emit("expand-change",l,r.value.slice())},setExpandRowKeys:l=>{t.store.assertRowKey();const u=e.data.value||[],c=e.rowKey.value,f=Ru(u,c);r.value=l.reduce((d,h)=>{const v=f[h];return v&&d.push(v.row),d},[])},isRowExpanded:l=>{const u=e.rowKey.value;return u?!!Ru(r.value,u)[mr(l,u)]:r.value.includes(l)},states:{expandRows:r,defaultExpandAll:n}}}function u2e(e){const t=gt(),n=H(null),r=H(null),a=u=>{t.store.assertRowKey(),n.value=u,o(u)},i=()=>{n.value=null},o=u=>{const{data:c,rowKey:f}=e;let d=null;f.value&&(d=(y(c)||[]).find(h=>mr(h,f.value)===u)),r.value=d,t.emit("current-change",r.value,null)};return{setCurrentRowKey:a,restoreCurrentRowKey:i,setCurrentRowByKey:o,updateCurrentRow:u=>{const c=r.value;if(u&&u!==c){r.value=u,t.emit("current-change",r.value,c);return}!u&&c&&(r.value=null,t.emit("current-change",null,c))},updateCurrentRowData:()=>{const u=e.rowKey.value,c=e.data.value||[],f=r.value;if(!c.includes(f)&&f){if(u){const d=mr(f,u);o(d)}else r.value=null;r.value===null&&t.emit("current-change",null,f)}else n.value&&(o(n.value),i())},states:{_currentRowKey:n,currentRow:r}}}function c2e(e){const t=H([]),n=H({}),r=H(16),a=H(!1),i=H({}),o=H("hasChildren"),s=H("children"),l=gt(),u=P(()=>{if(!e.rowKey.value)return{};const m=e.data.value||[];return f(m)}),c=P(()=>{const m=e.rowKey.value,b=Object.keys(i.value),_={};return b.length&&b.forEach(w=>{if(i.value[w].length){const C={children:[]};i.value[w].forEach(S=>{const x=mr(S,m);C.children.push(x),S[o.value]&&!_[x]&&(_[x]={children:[]})}),_[w]=C}}),_}),f=m=>{const b=e.rowKey.value,_={};return o2e(m,(w,C,S)=>{const x=mr(w,b);Array.isArray(C)?_[x]={children:C.map(T=>mr(T,b)),level:S}:a.value&&(_[x]={children:[],lazy:!0,level:S})},s.value,o.value),_},d=(m=!1,b=(_=>(_=l.store)==null?void 0:_.states.defaultExpandAll.value)())=>{var _;const w=u.value,C=c.value,S=Object.keys(w),x={};if(S.length){const T=y(n),M=[],A=(E,D)=>{if(m)return t.value?b||t.value.includes(D):!!(b||E!=null&&E.expanded);{const L=b||t.value&&t.value.includes(D);return!!(E!=null&&E.expanded||L)}};S.forEach(E=>{const D=T[E],L={...w[E]};if(L.expanded=A(D,E),L.lazy){const{loaded:B=!1,loading:N=!1}=D||{};L.loaded=!!B,L.loading=!!N,M.push(E)}x[E]=L});const k=Object.keys(C);a.value&&k.length&&M.length&&k.forEach(E=>{const D=T[E],L=C[E].children;if(M.includes(E)){if(x[E].children.length!==0)throw new Error("[ElTable]children must be an empty array.");x[E].children=L}else{const{loaded:B=!1,loading:N=!1}=D||{};x[E]={lazy:!0,loaded:!!B,loading:!!N,expanded:A(D,E),children:L,level:""}}})}n.value=x,(_=l.store)==null||_.updateTableScrollY()};xe(()=>t.value,()=>{d(!0)}),xe(()=>u.value,()=>{d()}),xe(()=>c.value,()=>{d()});const h=m=>{t.value=m,d()},v=(m,b)=>{l.store.assertRowKey();const _=e.rowKey.value,w=mr(m,_),C=w&&n.value[w];if(w&&C&&"expanded"in C){const S=C.expanded;b=typeof b>"u"?!C.expanded:b,n.value[w].expanded=b,S!==b&&l.emit("expand-change",m,b),l.store.updateTableScrollY()}},p=m=>{l.store.assertRowKey();const b=e.rowKey.value,_=mr(m,b),w=n.value[_];a.value&&w&&"loaded"in w&&!w.loaded?g(m,_,w):v(m,void 0)},g=(m,b,_)=>{const{load:w}=l.props;w&&!n.value[b].loaded&&(n.value[b].loading=!0,w(m,_,C=>{if(!Array.isArray(C))throw new TypeError("[ElTable] data must be an array");n.value[b].loading=!1,n.value[b].loaded=!0,n.value[b].expanded=!0,C.length&&(i.value[b]=C),l.emit("expand-change",m,!0)}))};return{loadData:g,loadOrToggle:p,toggleTreeExpansion:v,updateTreeExpandKeys:h,updateTreeData:d,normalize:f,states:{expandRowKeys:t,treeData:n,indent:r,lazy:a,lazyTreeNodeMap:i,lazyColumnIdentifier:o,childrenColumnName:s}}}const f2e=(e,t)=>{const n=t.sortingColumn;return!n||typeof n.sortable=="string"?e:t2e(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy)},Cy=e=>{const t=[];return e.forEach(n=>{n.children&&n.children.length>0?t.push.apply(t,Cy(n.children)):t.push(n)}),t};function d2e(){var e;const t=gt(),{size:n}=or((e=t.proxy)==null?void 0:e.$props),r=H(null),a=H([]),i=H([]),o=H(!1),s=H([]),l=H([]),u=H([]),c=H([]),f=H([]),d=H([]),h=H([]),v=H([]),p=[],g=H(0),m=H(0),b=H(0),_=H(!1),w=H([]),C=H(!1),S=H(!1),x=H(null),T=H({}),M=H(null),A=H(null),k=H(null),E=H(null),D=H(null);xe(a,()=>t.state&&O(!1),{deep:!0});const L=()=>{if(!r.value)throw new Error("[ElTable] prop row-key is required")},B=Qe=>{var ye;(ye=Qe.children)==null||ye.forEach(fe=>{fe.fixed=Qe.fixed,B(fe)})},N=()=>{s.value.forEach(ke=>{B(ke)}),c.value=s.value.filter(ke=>ke.fixed===!0||ke.fixed==="left"),f.value=s.value.filter(ke=>ke.fixed==="right"),c.value.length>0&&s.value[0]&&s.value[0].type==="selection"&&!s.value[0].fixed&&(s.value[0].fixed=!0,c.value.unshift(s.value[0]));const Qe=s.value.filter(ke=>!ke.fixed);l.value=[].concat(c.value).concat(Qe).concat(f.value);const ye=Cy(Qe),fe=Cy(c.value),le=Cy(f.value);g.value=ye.length,m.value=fe.length,b.value=le.length,u.value=[].concat(fe).concat(ye).concat(le),o.value=c.value.length>0||f.value.length>0},O=(Qe,ye=!1)=>{Qe&&N(),ye?t.state.doLayout():t.state.debouncedUpdateLayout()},$=Qe=>w.value.includes(Qe),I=()=>{_.value=!1,w.value.length&&(w.value=[],t.emit("selection-change",[]))},z=()=>{let Qe;if(r.value){Qe=[];const ye=Ru(w.value,r.value),fe=Ru(a.value,r.value);for(const le in ye)Nt(ye,le)&&!fe[le]&&Qe.push(ye[le].row)}else Qe=w.value.filter(ye=>!a.value.includes(ye));if(Qe.length){const ye=w.value.filter(fe=>!Qe.includes(fe));w.value=ye,t.emit("selection-change",ye.slice())}},G=()=>(w.value||[]).slice(),U=(Qe,ye=void 0,fe=!0)=>{if(uv(w.value,Qe,ye)){const ke=(w.value||[]).slice();fe&&t.emit("select",ke,Qe),t.emit("selection-change",ke)}},Z=()=>{var Qe,ye;const fe=S.value?!_.value:!(_.value||w.value.length);_.value=fe;let le=!1,ke=0;const te=(ye=(Qe=t==null?void 0:t.store)==null?void 0:Qe.states)==null?void 0:ye.rowKey.value;a.value.forEach((Ve,st)=>{const It=st+ke;x.value?x.value.call(null,Ve,It)&&uv(w.value,Ve,fe)&&(le=!0):uv(w.value,Ve,fe)&&(le=!0),ke+=Q(mr(Ve,te))}),le&&t.emit("selection-change",w.value?w.value.slice():[]),t.emit("select-all",w.value)},ae=()=>{const Qe=Ru(w.value,r.value);a.value.forEach(ye=>{const fe=mr(ye,r.value),le=Qe[fe];le&&(w.value[le.index]=ye)})},J=()=>{var Qe,ye,fe;if(((Qe=a.value)==null?void 0:Qe.length)===0){_.value=!1;return}let le;r.value&&(le=Ru(w.value,r.value));const ke=function(It){return le?!!le[mr(It,r.value)]:w.value.includes(It)};let te=!0,Ve=0,st=0;for(let It=0,zn=(a.value||[]).length;It<zn;It++){const Zn=(fe=(ye=t==null?void 0:t.store)==null?void 0:ye.states)==null?void 0:fe.rowKey.value,oa=It+st,pr=a.value[It],be=x.value&&x.value.call(null,pr,oa);if(ke(pr))Ve++;else if(!x.value||be){te=!1;break}st+=Q(mr(pr,Zn))}Ve===0&&(te=!1),_.value=te},Q=Qe=>{var ye;if(!t||!t.store)return 0;const{treeData:fe}=t.store.states;let le=0;const ke=(ye=fe.value[Qe])==null?void 0:ye.children;return ke&&(le+=ke.length,ke.forEach(te=>{le+=Q(te)})),le},ee=(Qe,ye)=>{Array.isArray(Qe)||(Qe=[Qe]);const fe={};return Qe.forEach(le=>{T.value[le.id]=ye,fe[le.columnKey||le.id]=ye}),fe},j=(Qe,ye,fe)=>{A.value&&A.value!==Qe&&(A.value.order=null),A.value=Qe,k.value=ye,E.value=fe},de=()=>{let Qe=y(i);Object.keys(T.value).forEach(ye=>{const fe=T.value[ye];if(!fe||fe.length===0)return;const le=X8({columns:u.value},ye);le&&le.filterMethod&&(Qe=Qe.filter(ke=>fe.some(te=>le.filterMethod.call(null,te,ke,le))))}),M.value=Qe},ve=()=>{a.value=f2e(M.value,{sortingColumn:A.value,sortProp:k.value,sortOrder:E.value})},ie=(Qe=void 0)=>{Qe&&Qe.filter||de(),ve()},W=Qe=>{const{tableHeaderRef:ye}=t.refs;if(!ye)return;const fe=Object.assign({},ye.filterPanels),le=Object.keys(fe);if(le.length)if(typeof Qe=="string"&&(Qe=[Qe]),Array.isArray(Qe)){const ke=Qe.map(te=>n2e({columns:u.value},te));le.forEach(te=>{const Ve=ke.find(st=>st.id===te);Ve&&(Ve.filteredValue=[])}),t.store.commit("filterChange",{column:ke,values:[],silent:!0,multi:!0})}else le.forEach(ke=>{const te=u.value.find(Ve=>Ve.id===ke);te&&(te.filteredValue=[])}),T.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},X=()=>{A.value&&(j(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:oe,toggleRowExpansion:pe,updateExpandRows:Se,states:me,isRowExpanded:Ee}=l2e({data:a,rowKey:r}),{updateTreeExpandKeys:Ce,toggleTreeExpansion:we,updateTreeData:Te,loadOrToggle:$e,states:Be}=c2e({data:a,rowKey:r}),{updateCurrentRowData:We,updateCurrentRow:Ae,setCurrentRowKey:Fe,states:rt}=u2e({data:a,rowKey:r});return{assertRowKey:L,updateColumns:N,scheduleLayout:O,isSelected:$,clearSelection:I,cleanSelection:z,getSelectionRows:G,toggleRowSelection:U,_toggleAllSelection:Z,toggleAllSelection:null,updateSelectionByRowKey:ae,updateAllSelected:J,updateFilters:ee,updateCurrentRow:Ae,updateSort:j,execFilter:de,execSort:ve,execQuery:ie,clearFilter:W,clearSort:X,toggleRowExpansion:pe,setExpandRowKeysAdapter:Qe=>{oe(Qe),Ce(Qe)},setCurrentRowKey:Fe,toggleRowExpansionAdapter:(Qe,ye)=>{u.value.some(({type:le})=>le==="expand")?pe(Qe,ye):we(Qe,ye)},isRowExpanded:Ee,updateExpandRows:Se,updateCurrentRowData:We,loadOrToggle:$e,updateTreeData:Te,states:{tableSize:n,rowKey:r,data:a,_data:i,isComplex:o,_columns:s,originColumns:l,columns:u,fixedColumns:c,rightFixedColumns:f,leafColumns:d,fixedLeafColumns:h,rightFixedLeafColumns:v,updateOrderFns:p,leafColumnsLength:g,fixedLeafColumnsLength:m,rightFixedLeafColumnsLength:b,isAllSelected:_,selection:w,reserveSelection:C,selectOnIndeterminate:S,selectable:x,filters:T,filteredData:M,sortingColumn:A,sortProp:k,sortOrder:E,hoverRow:D,...me,...Be,...rt}}}function dx(e,t){return e.map(n=>{var r;return n.id===t.id?t:((r=n.children)!=null&&r.length&&(n.children=dx(n.children,t)),n)})}function hx(e){e.forEach(t=>{var n,r;t.no=(n=t.getColumnIndex)==null?void 0:n.call(t),(r=t.children)!=null&&r.length&&hx(t.children)}),e.sort((t,n)=>t.no-n.no)}function h2e(){const e=gt(),t=d2e();return{ns:Me("table"),...t,mutations:{setData(o,s){const l=y(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),y(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,u){const c=y(o._columns);let f=[];l?(l&&!l.children&&(l.children=[]),l.children.push(s),f=dx(c,l)):(c.push(s),f=c),hx(f),o._columns.value=f,o.updateOrderFns.push(u),s.type==="selection"&&(o.selectable.value=s.selectable,o.reserveSelection.value=s.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},updateColumnOrder(o,s){var l;((l=s.getColumnIndex)==null?void 0:l.call(s))!==s.no&&(hx(o._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(o,s,l,u){const c=y(o._columns)||[];if(l)l.children.splice(l.children.findIndex(d=>d.id===s.id),1),Ue(()=>{var d;((d=l.children)==null?void 0:d.length)===0&&delete l.children}),o._columns.value=dx(c,l);else{const d=c.indexOf(s);d>-1&&(c.splice(d,1),o._columns.value=c)}const f=o.updateOrderFns.indexOf(u);f>-1&&o.updateOrderFns.splice(f,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(o,s){const{prop:l,order:u,init:c}=s;if(l){const f=y(o.columns).find(d=>d.property===l);f&&(f.order=u,e.store.updateSort(f,l,u),e.store.commit("changeSortCondition",{init:c}))}},changeSortCondition(o,s){const{sortingColumn:l,sortProp:u,sortOrder:c}=o,f=y(l),d=y(u),h=y(c);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:f,prop:d,order:h}),e.store.updateTableScrollY()},filterChange(o,s){const{column:l,values:u,silent:c}=s,f=e.store.updateFilters(l,u);e.store.execQuery(),c||e.emit("filter-change",f),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(){Ue(()=>e.layout.updateScrollY.apply(e.layout))}}}const cv={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 v2e(e,t){if(!e)throw new Error("Table is required.");const n=h2e();return n.toggleAllSelection=Qr(n._toggleAllSelection,10),Object.keys(cv).forEach(r=>{e6(t6(t,r),r,n)}),p2e(n,t),n}function p2e(e,t){Object.keys(cv).forEach(n=>{xe(()=>t6(t,n),r=>{e6(r,n,e)})})}function e6(e,t,n){let r=e,a=cv[t];typeof cv[t]=="object"&&(a=a.key,r=r||cv[t].default),n.states[a].value=r}function t6(e,t){if(t.includes(".")){const n=t.split(".");let r=e;return n.forEach(a=>{r=r[a]}),r}else return e[t]}class g2e{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 n in t)Nt(t,n)&&(cn(this[n])?this[n].value=t[n]:this[n]=t[n]);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 n=this.table.refs.scrollBarRef;if(this.table.vnode.el&&(n!=null&&n.wrapRef)){let r=!0;const a=this.scrollY.value;return r=n.wrapRef.scrollHeight>n.wrapRef.clientHeight,this.scrollY.value=r,a!==r}return!1}setHeight(t,n="height"){if(!Vt)return;const r=this.table.vnode.el;if(t=a2e(t),this.height.value=Number(t),!r&&(t||t===0))return Ue(()=>this.setHeight(t,n));typeof t=="number"?(r.style[n]=`${t}px`,this.updateElsHeight()):typeof t=="string"&&(r.style[n]=t,this.updateElsHeight())}setMaxHeight(t){this.setHeight(t,"max-height")}getFlattenColumns(){const t=[];return this.table.store.states.columns.value.forEach(r=>{r.isColumnGroup?t.push.apply(t,r.columns):t.push(r)}),t}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(t){if(!t)return!0;let n=t;for(;n.tagName!=="DIV";){if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}updateColumnsWidth(){if(!Vt)return;const t=this.fit,n=this.table.vnode.el.clientWidth;let r=0;const a=this.getFlattenColumns(),i=a.filter(l=>typeof l.width!="number");if(a.forEach(l=>{typeof l.width=="number"&&l.realWidth&&(l.realWidth=null)}),i.length>0&&t){if(a.forEach(l=>{r+=Number(l.width||l.minWidth||80)}),r<=n){this.scrollX.value=!1;const l=n-r;if(i.length===1)i[0].realWidth=Number(i[0].minWidth||80)+l;else{const u=i.reduce((d,h)=>d+Number(h.minWidth||80),0),c=l/u;let f=0;i.forEach((d,h)=>{if(h===0)return;const v=Math.floor(Number(d.minWidth||80)*c);f+=v,d.realWidth=Number(d.minWidth||80)+v}),i[0].realWidth=Number(i[0].minWidth||80)+l-f}}else this.scrollX.value=!0,i.forEach(l=>{l.realWidth=Number(l.minWidth)});this.bodyWidth.value=Math.max(r,n),this.table.state.resizeState.value.width=this.bodyWidth.value}else a.forEach(l=>{!l.width&&!l.minWidth?l.realWidth=80:l.realWidth=Number(l.width||l.minWidth),r+=l.realWidth}),this.scrollX.value=r>n,this.bodyWidth.value=r;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 n=this.observers.indexOf(t);n!==-1&&this.observers.splice(n,1)}notifyObservers(t){this.observers.forEach(r=>{var a,i;switch(t){case"columns":(a=r.state)==null||a.onColumnsChange(this);break;case"scrollable":(i=r.state)==null||i.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${t}.`)}})}}const{CheckboxGroup:m2e}=li,y2e=ne({name:"ElTableFilterPanel",components:{ElCheckbox:li,ElCheckboxGroup:m2e,ElScrollbar:hs,ElTooltip:ea,ElIcon:Ke,ArrowDown:Tl,ArrowUp:Wb},directives:{ClickOutside:vl},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup(e){const t=gt(),{t:n}=Ht(),r=Me("table-filter"),a=t==null?void 0:t.parent;a.filterPanels.value[e.column.id]||(a.filterPanels.value[e.column.id]=t);const i=H(!1),o=H(null),s=P(()=>e.column&&e.column.filters),l=P({get:()=>{var w;return(((w=e.column)==null?void 0:w.filteredValue)||[])[0]},set:w=>{u.value&&(typeof w<"u"&&w!==null?u.value.splice(0,1,w):u.value.splice(0,1))}}),u=P({get(){return e.column?e.column.filteredValue||[]:[]},set(w){e.column&&e.upDataColumn("filteredValue",w)}}),c=P(()=>e.column?e.column.filterMultiple:!0),f=w=>w.value===l.value,d=()=>{i.value=!1},h=w=>{w.stopPropagation(),i.value=!i.value},v=()=>{i.value=!1},p=()=>{b(u.value),d()},g=()=>{u.value=[],b(u.value),d()},m=w=>{l.value=w,b(typeof w<"u"&&w!==null?u.value:[]),d()},b=w=>{e.store.commit("filterChange",{column:e.column,values:w}),e.store.updateAllSelected()};xe(i,w=>{e.column&&e.upDataColumn("filterOpened",w)},{immediate:!0});const _=P(()=>{var w,C;return(C=(w=o.value)==null?void 0:w.popperRef)==null?void 0:C.contentRef});return{tooltipVisible:i,multiple:c,filteredValue:u,filterValue:l,filters:s,handleConfirm:p,handleReset:g,handleSelect:m,isActive:f,t:n,ns:r,showFilterPanel:h,hideFilterPanel:v,popperPaneRef:_,tooltip:o}}}),b2e={key:0},_2e=["disabled"],w2e=["label","onClick"];function S2e(e,t,n,r,a,i){const o=ct("el-checkbox"),s=ct("el-checkbox-group"),l=ct("el-scrollbar"),u=ct("arrow-up"),c=ct("arrow-down"),f=ct("el-icon"),d=ct("el-tooltip"),h=$v("click-outside");return R(),ce(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:re(()=>[e.multiple?(R(),K("div",b2e,[Y("div",{class:V(e.ns.e("content"))},[q(l,{"wrap-class":e.ns.e("wrap")},{default:re(()=>[q(s,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=v=>e.filteredValue=v),class:V(e.ns.e("checkbox-group"))},{default:re(()=>[(R(!0),K(je,null,Ot(e.filters,v=>(R(),ce(o,{key:v.value,label:v.value},{default:re(()=>[Ut(De(v.text),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),Y("div",{class:V(e.ns.e("bottom"))},[Y("button",{class:V({[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))},De(e.t("el.table.confirmFilter")),11,_2e),Y("button",{type:"button",onClick:t[2]||(t[2]=(...v)=>e.handleReset&&e.handleReset(...v))},De(e.t("el.table.resetFilter")),1)],2)])):(R(),K("ul",{key:1,class:V(e.ns.e("list"))},[Y("li",{class:V([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))},De(e.t("el.table.clearFilter")),3),(R(!0),K(je,null,Ot(e.filters,v=>(R(),K("li",{key:v.value,class:V([e.ns.e("list-item"),e.ns.is("active",e.isActive(v))]),label:v.value,onClick:p=>e.handleSelect(v.value)},De(v.text),11,w2e))),128))],2))]),default:re(()=>[dt((R(),K("span",{class:V([`${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))},[q(f,null,{default:re(()=>[e.column.filterOpened?(R(),ce(u,{key:0})):(R(),ce(c,{key:1}))]),_:1})],2)),[[h,e.hideFilterPanel,e.popperPaneRef]])]),_:1},8,["visible","placement","popper-class"])}var C2e=Pe(y2e,[["render",S2e],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/filter-panel.vue"]]);function n6(e){const t=gt();Db(()=>{n.value.addObserver(t)}),yt(()=>{r(n.value),a(n.value)}),cs(()=>{r(n.value),a(n.value)}),xl(()=>{n.value.removeObserver(t)});const n=P(()=>{const i=e.layout;if(!i)throw new Error("Can not find table layout.");return i}),r=i=>{var o;const s=((o=e.vnode.el)==null?void 0:o.querySelectorAll("colgroup > col"))||[];if(!s.length)return;const l=i.getFlattenColumns(),u={};l.forEach(c=>{u[c.id]=c});for(let c=0,f=s.length;c<f;c++){const d=s[c],h=d.getAttribute("name"),v=u[h];v&&d.setAttribute("width",v.realWidth||v.width)}},a=i=>{var o,s;const l=((o=e.vnode.el)==null?void 0:o.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let c=0,f=l.length;c<f;c++)l[c].setAttribute("width",i.scrollY.value?i.gutterWidth:"0");const u=((s=e.vnode.el)==null?void 0:s.querySelectorAll("th.gutter"))||[];for(let c=0,f=u.length;c<f;c++){const d=u[c];d.style.width=i.scrollY.value?`${i.gutterWidth}px`:"0",d.style.display=i.scrollY.value?"":"none"}};return{tableLayout:n.value,onColumnsChange:r,onScrollableChange:a}}const Ao=Symbol("ElTable");function x2e(e,t){const n=gt(),r=Ge(Ao),a=p=>{p.stopPropagation()},i=(p,g)=>{!g.filters&&g.sortable?v(p,g,!1):g.filterable&&!g.sortable&&a(p),r==null||r.emit("header-click",g,p)},o=(p,g)=>{r==null||r.emit("header-contextmenu",g,p)},s=H(null),l=H(!1),u=H({}),c=(p,g)=>{if(Vt&&!(g.children&&g.children.length>0)&&s.value&&e.border){l.value=!0;const m=r;t("set-drag-visible",!0);const _=(m==null?void 0:m.vnode.el).getBoundingClientRect().left,w=n.vnode.el.querySelector(`th.${g.id}`),C=w.getBoundingClientRect(),S=C.left-_+30;lo(w,"noclick"),u.value={startMouseLeft:p.clientX,startLeft:C.right-_,startColumnLeft:C.left-_,tableLeft:_};const x=m==null?void 0:m.refs.resizeProxy;x.style.left=`${u.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const T=A=>{const k=A.clientX-u.value.startMouseLeft,E=u.value.startLeft+k;x.style.left=`${Math.max(S,E)}px`},M=()=>{if(l.value){const{startColumnLeft:A,startLeft:k}=u.value,D=Number.parseInt(x.style.left,10)-A;g.width=g.realWidth=D,m==null||m.emit("header-dragend",g.width,k-A,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",T),document.removeEventListener("mouseup",M),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{ga(w,"noclick")},0)};document.addEventListener("mousemove",T),document.addEventListener("mouseup",M)}},f=(p,g)=>{if(g.children&&g.children.length>0)return;const m=p.target;if(!ri(m))return;const b=m==null?void 0:m.closest("th");if(!(!g||!g.resizable)&&!l.value&&e.border){const _=b.getBoundingClientRect(),w=document.body.style;_.width>12&&_.right-p.pageX<8?(w.cursor="col-resize",Li(b,"is-sortable")&&(b.style.cursor="col-resize"),s.value=g):l.value||(w.cursor="",Li(b,"is-sortable")&&(b.style.cursor="pointer"),s.value=null)}},d=()=>{Vt&&(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 b;p.stopPropagation();const _=g.order===m?null:m||h(g),w=(b=p.target)==null?void 0:b.closest("th");if(w&&Li(w,"noclick")){ga(w,"noclick");return}if(!g.sortable)return;const C=e.store.states;let S=C.sortProp.value,x;const T=C.sortingColumn.value;(T!==g||T===g&&T.order===null)&&(T&&(T.order=null),C.sortingColumn.value=g,S=g.property),_?x=g.order=_:x=g.order=null,C.sortProp.value=S,C.sortOrder.value=x,r==null||r.store.commit("changeSortCondition")};return{handleHeaderClick:i,handleHeaderContextMenu:o,handleMouseDown:c,handleMouseMove:f,handleMouseOut:d,handleSortClick:v,handleFilterClick:a}}function T2e(e){const t=Ge(Ao),n=Me("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,c)=>{var f;let d=(f=t==null?void 0:t.props.headerCellStyle)!=null?f:{};typeof d=="function"&&(d=d.call(null,{rowIndex:s,columnIndex:l,row:u,column:c}));const h=ek(l,c.fixed,e.store,u);return od(h,"left"),od(h,"right"),Object.assign({},d,h)},getHeaderCellClass:(s,l,u,c)=>{const f=QM(n.b(),l,c.fixed,e.store,u),d=[c.id,c.order,c.headerAlign,c.className,c.labelClassName,...f];c.children||d.push("is-leaf"),c.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:c})),d.push(n.e("cell")),d.filter(v=>!!v).join(" ")}}}const r6=e=>{const t=[];return e.forEach(n=>{n.children?(t.push(n),t.push.apply(t,r6(n.children))):t.push(n)}),t},M2e=e=>{let t=1;const n=(i,o)=>{if(o&&(i.level=o.level+1,t<i.level&&(t=i.level)),i.children){let s=0;i.children.forEach(l=>{n(l,i),s+=l.colSpan}),i.colSpan=s}else i.colSpan=1};e.forEach(i=>{i.level=1,n(i,void 0)});const r=[];for(let i=0;i<t;i++)r.push([]);return r6(e).forEach(i=>{i.children?(i.rowSpan=1,i.children.forEach(o=>o.isSubColumn=!0)):i.rowSpan=t-i.level+1,r[i.level-1].push(i)}),r};function k2e(e){const t=Ge(Ao),n=P(()=>M2e(e.store.states.originColumns.value));return{isGroup:P(()=>{const i=n.value.length>1;return i&&t&&(t.state.isGroup.value=!0),i}),toggleAllSelection:i=>{i.stopPropagation(),t==null||t.store.commit("toggleAllSelection")},columnRows:n}}var A2e=ne({name:"ElTableHeader",components:{ElCheckbox:li},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e,{emit:t}){const n=gt(),r=Ge(Ao),a=Me("table"),i=H({}),{onColumnsChange:o,onScrollableChange:s}=n6(r);yt(async()=>{await Ue(),await Ue();const{prop:S,order:x}=e.defaultSort;r==null||r.store.commit("sort",{prop:S,order:x,init:!0})});const{handleHeaderClick:l,handleHeaderContextMenu:u,handleMouseDown:c,handleMouseMove:f,handleMouseOut:d,handleSortClick:h,handleFilterClick:v}=x2e(e,t),{getHeaderRowStyle:p,getHeaderRowClass:g,getHeaderCellStyle:m,getHeaderCellClass:b}=T2e(e),{isGroup:_,toggleAllSelection:w,columnRows:C}=k2e(e);return n.state={onColumnsChange:o,onScrollableChange:s},n.filterPanels=i,{ns:a,filterPanels:i,onColumnsChange:o,onScrollableChange:s,columnRows:C,getHeaderRowClass:g,getHeaderRowStyle:p,getHeaderCellClass:b,getHeaderCellStyle:m,handleHeaderClick:l,handleHeaderContextMenu:u,handleMouseDown:c,handleMouseMove:f,handleMouseOut:d,handleSortClick:h,handleFilterClick:v,isGroup:_,toggleAllSelection:w}},render(){const{ns:e,isGroup:t,columnRows:n,getHeaderCellStyle:r,getHeaderCellClass:a,getHeaderRowClass:i,getHeaderRowStyle:o,handleHeaderClick:s,handleHeaderContextMenu:l,handleMouseDown:u,handleMouseMove:c,handleSortClick:f,handleMouseOut:d,store:h,$parent:v}=this;let p=1;return Ze("thead",{class:{[e.is("group")]:t}},n.map((g,m)=>Ze("tr",{class:i(m),key:m,style:o(m)},g.map((b,_)=>(b.rowSpan>p&&(p=b.rowSpan),Ze("th",{class:a(m,_,g,b),colspan:b.colSpan,key:`${b.id}-thead`,rowspan:b.rowSpan,style:r(m,_,g,b),onClick:w=>s(w,b),onContextmenu:w=>l(w,b),onMousedown:w=>u(w,b),onMousemove:w=>c(w,b),onMouseout:d},[Ze("div",{class:["cell",b.filteredValue&&b.filteredValue.length>0?"highlight":""]},[b.renderHeader?b.renderHeader({column:b,$index:_,store:h,_self:v}):b.label,b.sortable&&Ze("span",{onClick:w=>f(w,b),class:"caret-wrapper"},[Ze("i",{onClick:w=>f(w,b,"ascending"),class:"sort-caret ascending"}),Ze("i",{onClick:w=>f(w,b,"descending"),class:"sort-caret descending"})]),b.filterable&&Ze(C2e,{store:h,placement:b.filterPlacement||"bottom-start",column:b,upDataColumn:(w,C)=>{b[w]=C}})])]))))))}});function E2e(e){const t=Ge(Ao),n=H(""),r=H(Ze("div")),{nextZIndex:a}=Md(),i=(v,p,g)=>{var m;const b=t,_=D_(v);let w;const C=(m=b==null?void 0:b.vnode.el)==null?void 0:m.dataset.prefix;_&&(w=iL({columns:e.store.states.columns.value},_,C),w&&(b==null||b.emit(`cell-${g}`,p,w,_,v))),b==null||b.emit(`row-${g}`,p,w,v)},o=(v,p)=>{i(v,p,"dblclick")},s=(v,p)=>{e.store.commit("setCurrentRow",p),i(v,p,"click")},l=(v,p)=>{i(v,p,"contextmenu")},u=Qr(v=>{e.store.commit("setHoverRow",v)},30),c=Qr(()=>{e.store.commit("setHoverRow",null)},30),f=v=>{const p=window.getComputedStyle(v,null),g=Number.parseInt(p.paddingLeft,10)||0,m=Number.parseInt(p.paddingRight,10)||0,b=Number.parseInt(p.paddingTop,10)||0,_=Number.parseInt(p.paddingBottom,10)||0;return{left:g,right:m,top:b,bottom:_}};return{handleDoubleClick:o,handleClick:s,handleContextMenu:l,handleMouseEnter:u,handleMouseLeave:c,handleCellMouseEnter:(v,p,g)=>{var m;const b=t,_=D_(v),w=(m=b==null?void 0:b.vnode.el)==null?void 0:m.dataset.prefix;if(_){const O=iL({columns:e.store.states.columns.value},_,w),$=b.hoverState={cell:_,column:O,row:p};b==null||b.emit("cell-mouse-enter",$.row,$.column,$.cell,v)}if(!g)return;const C=v.target.querySelector(".cell");if(!(Li(C,`${w}-tooltip`)&&C.childNodes.length))return;const S=document.createRange();S.setStart(C,0),S.setEnd(C,C.childNodes.length);let x=S.getBoundingClientRect().width,T=S.getBoundingClientRect().height;x-Math.floor(x)<.001&&(x=Math.floor(x)),T-Math.floor(T)<.001&&(T=Math.floor(T));const{top:k,left:E,right:D,bottom:L}=f(C),B=E+D,N=k+L;(x+B>C.offsetWidth||T+N>C.offsetHeight||C.scrollWidth>C.offsetWidth)&&s2e(t==null?void 0:t.refs.tableWrapper,_,_.innerText||_.textContent,a,g)},handleCellMouseLeave:v=>{if(!D_(v))return;const g=t==null?void 0:t.hoverState;t==null||t.emit("cell-mouse-leave",g==null?void 0:g.row,g==null?void 0:g.column,g==null?void 0:g.cell,v)},tooltipContent:n,tooltipTrigger:r}}function I2e(e){const t=Ge(Ao),n=Me("table");return{getRowStyle:(u,c)=>{const f=t==null?void 0:t.props.rowStyle;return typeof f=="function"?f.call(null,{row:u,rowIndex:c}):f||null},getRowClass:(u,c)=>{const f=[n.e("row")];t!=null&&t.props.highlightCurrentRow&&u===e.store.states.currentRow.value&&f.push("current-row"),e.stripe&&c%2===1&&f.push(n.em("row","striped"));const d=t==null?void 0:t.props.rowClassName;return typeof d=="string"?f.push(d):typeof d=="function"&&f.push(d.call(null,{row:u,rowIndex:c})),f},getCellStyle:(u,c,f,d)=>{const h=t==null?void 0:t.props.cellStyle;let v=h??{};typeof h=="function"&&(v=h.call(null,{rowIndex:u,columnIndex:c,row:f,column:d}));const p=ek(c,e==null?void 0:e.fixed,e.store);return od(p,"left"),od(p,"right"),Object.assign({},v,p)},getCellClass:(u,c,f,d,h)=>{const v=QM(n.b(),c,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:c,row:f,column:d})),p.push(n.e("cell")),p.filter(m=>!!m).join(" ")},getSpan:(u,c,f,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:c,rowIndex:f,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,c,f)=>{if(c<1)return u[f].realWidth;const d=u.map(({realWidth:h,width:v})=>h||v).slice(f,f+c);return Number(d.reduce((h,v)=>Number(h)+Number(v),-1))}}}function D2e(e){const t=Ge(Ao),n=Me("table"),{handleDoubleClick:r,handleClick:a,handleContextMenu:i,handleMouseEnter:o,handleMouseLeave:s,handleCellMouseEnter:l,handleCellMouseLeave:u,tooltipContent:c,tooltipTrigger:f}=E2e(e),{getRowStyle:d,getRowClass:h,getCellStyle:v,getCellClass:p,getSpan:g,getColspanRealWidth:m}=I2e(e),b=P(()=>e.store.states.columns.value.findIndex(({type:x})=>x==="default")),_=(x,T)=>{const M=t.props.rowKey;return M?mr(x,M):T},w=(x,T,M,A=!1)=>{const{tooltipEffect:k,tooltipOptions:E,store:D}=e,{indent:L,columns:B}=D.states,N=h(x,T);let O=!0;return M&&(N.push(n.em("row",`level-${M.level}`)),O=M.display),Ze("tr",{style:[O?null:{display:"none"},d(x,T)],class:N,key:_(x,T),onDblclick:I=>r(I,x),onClick:I=>a(I,x),onContextmenu:I=>i(I,x),onMouseenter:()=>o(T),onMouseleave:s},B.value.map((I,z)=>{const{rowspan:G,colspan:U}=g(x,I,T,z);if(!G||!U)return null;const Z=Object.assign({},I);Z.realWidth=m(B.value,U,z);const ae={store:e.store,_self:e.context||t,column:Z,row:x,$index:T,cellIndex:z,expanded:A};z===b.value&&M&&(ae.treeNode={indent:M.level*L.value,level:M.level},typeof M.expanded=="boolean"&&(ae.treeNode.expanded=M.expanded,"loading"in M&&(ae.treeNode.loading=M.loading),"noLazyChildren"in M&&(ae.treeNode.noLazyChildren=M.noLazyChildren)));const J=`${T},${z}`,Q=Z.columnKey||Z.rawColumnKey||"",ee=C(z,I,ae),j=I.showOverflowTooltip&&L5({effect:k},E,I.showOverflowTooltip);return Ze("td",{style:v(T,z,x,I),class:p(T,z,x,I,U-1),key:`${Q}${J}`,rowspan:G,colspan:U,onMouseenter:de=>l(de,x,j),onMouseleave:u},[ee])}))},C=(x,T,M)=>T.renderCell(M);return{wrappedRowRender:(x,T)=>{const M=e.store,{isRowExpanded:A,assertRowKey:k}=M,{treeData:E,lazyTreeNodeMap:D,childrenColumnName:L,rowKey:B}=M.states,N=M.states.columns.value;if(N.some(({type:$})=>$==="expand")){const $=A(x),I=w(x,T,void 0,$),z=t.renderExpanded;return $?z?[[I,Ze("tr",{key:`expanded-row__${I.key}`},[Ze("td",{colspan:N.length,class:`${n.e("cell")} ${n.e("expanded-cell")}`},[z({row:x,$index:T,store:M,expanded:$})])])]]:(console.error("[Element Error]renderExpanded is required."),I):[[I]]}else if(Object.keys(E.value).length){k();const $=mr(x,B.value);let I=E.value[$],z=null;I&&(z={expanded:I.expanded,level:I.level,display:!0},typeof I.lazy=="boolean"&&(typeof I.loaded=="boolean"&&I.loaded&&(z.noLazyChildren=!(I.children&&I.children.length)),z.loading=I.loading));const G=[w(x,T,z)];if(I){let U=0;const Z=(J,Q)=>{J&&J.length&&Q&&J.forEach(ee=>{const j={display:Q.display&&Q.expanded,level:Q.level+1,expanded:!1,noLazyChildren:!1,loading:!1},de=mr(ee,B.value);if(de==null)throw new Error("For nested data item, row-key is required.");if(I={...E.value[de]},I&&(j.expanded=I.expanded,I.level=I.level||j.level,I.display=!!(I.expanded&&j.display),typeof I.lazy=="boolean"&&(typeof I.loaded=="boolean"&&I.loaded&&(j.noLazyChildren=!(I.children&&I.children.length)),j.loading=I.loading)),U++,G.push(w(ee,T+U,j)),I){const ve=D.value[de]||ee[L.value];Z(ve,I)}})};I.display=!0;const ae=D.value[$]||x[L.value];Z(ae,I)}return G}else return w(x,T,void 0)},tooltipContent:c,tooltipTrigger:f}}const P2e={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 L2e=ne({name:"ElTableBody",props:P2e,setup(e){const t=gt(),n=Ge(Ao),r=Me("table"),{wrappedRowRender:a,tooltipContent:i,tooltipTrigger:o}=D2e(e),{onColumnsChange:s,onScrollableChange:l}=n6(n);return xe(e.store.states.hoverRow,(u,c)=>{!e.store.states.isComplex.value||!Vt||Jf(()=>{const f=t==null?void 0:t.vnode.el,d=Array.from((f==null?void 0:f.children)||[]).filter(p=>p==null?void 0:p.classList.contains(`${r.e("row")}`)),h=d[c],v=d[u];h&&ga(h,"hover-row"),v&&lo(v,"hover-row")})}),xl(()=>{var u;(u=$o)==null||u()}),{ns:r,onColumnsChange:s,onScrollableChange:l,wrappedRowRender:a,tooltipContent:i,tooltipTrigger:o}},render(){const{wrappedRowRender:e,store:t}=this,n=t.states.data.value||[];return Ze("tbody",{tabIndex:-1},[n.reduce((r,a)=>r.concat(e(a,r.length)),[])])}});function tk(e){const t=e.tableLayout==="auto";let n=e.columns||[];t&&n.every(a=>a.width===void 0)&&(n=[]);const r=a=>{const i={key:`${e.tableLayout}_${a.id}`,style:{},name:void 0};return t?i.style={width:`${a.width}px`}:i.name=a.id,i};return Ze("colgroup",{},n.map(a=>Ze("col",r(a))))}tk.props=["columns","tableLayout"];function R2e(){const e=Ge(Ao),t=e==null?void 0:e.store,n=P(()=>t.states.fixedLeafColumnsLength.value),r=P(()=>t.states.rightFixedColumns.value.length),a=P(()=>t.states.columns.value.length),i=P(()=>t.states.fixedColumns.value.length),o=P(()=>t.states.rightFixedColumns.value.length);return{leftFixedLeafCount:n,rightFixedLeafCount:r,columnsCount:a,leftFixedCount:i,rightFixedCount:o,columns:t.states.columns}}function O2e(e){const{columns:t}=R2e(),n=Me("table");return{getCellClasses:(i,o)=>{const s=i[o],l=[n.e("cell"),s.id,s.align,s.labelClassName,...QM(n.b(),o,s.fixed,e.store)];return s.className&&l.push(s.className),s.children||l.push(n.is("leaf")),l},getCellStyles:(i,o)=>{const s=ek(o,i.fixed,e.store);return od(s,"left"),od(s,"right"),s},columns:t}}var $2e=ne({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:n,columns:r}=O2e(e);return{ns:Me("table"),getCellClasses:t,getCellStyles:n,columns:r}},render(){const{columns:e,getCellStyles:t,getCellClasses:n,summaryMethod:r,sumText:a,ns:i}=this,o=this.store.states.data.value;let s=[];return r?s=r({columns:e,data:o}):e.forEach((l,u)=>{if(u===0){s[u]=a;return}const c=o.map(v=>Number(v[l.property])),f=[];let d=!0;c.forEach(v=>{if(!Number.isNaN(+v)){d=!1;const p=`${v}`.split(".")[1];f.push(p?p.length:0)}});const h=Math.max.apply(null,f);d?s[u]="":s[u]=c.reduce((v,p)=>{const g=Number(p);return Number.isNaN(+g)?v:Number.parseFloat((v+p).toFixed(Math.min(h,20)))},0)}),Ze("table",{class:i.e("footer"),cellspacing:"0",cellpadding:"0",border:"0"},[tk({columns:e}),Ze("tbody",[Ze("tr",{},[...e.map((l,u)=>Ze("td",{key:u,colspan:l.colSpan,rowspan:l.rowSpan,class:n(e,u),style:t(l,u)},[Ze("div",{class:["cell",l.labelClassName]},[s[u]])]))])])])}});function N2e(e){return{setCurrentRow:c=>{e.commit("setCurrentRow",c)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(c,f)=>{e.toggleRowSelection(c,f,!1),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:c=>{e.clearFilter(c)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(c,f)=>{e.toggleRowExpansionAdapter(c,f)},clearSort:()=>{e.clearSort()},sort:(c,f)=>{e.commit("sort",{prop:c,order:f})}}}function B2e(e,t,n,r){const a=H(!1),i=H(null),o=H(!1),s=I=>{o.value=I},l=H({width:null,height:null,headerHeight:null}),u=H(!1),c={display:"inline-block",verticalAlign:"middle"},f=H(),d=H(0),h=H(0),v=H(0),p=H(0),g=H(0);Ia(()=>{t.setHeight(e.height)}),Ia(()=>{t.setMaxHeight(e.maxHeight)}),xe(()=>[e.currentRowKey,n.states.rowKey],([I,z])=>{!y(z)||!y(I)||n.setCurrentRowKey(`${I}`)},{immediate:!0}),xe(()=>e.data,I=>{r.store.commit("setData",I)},{immediate:!0,deep:!0}),Ia(()=>{e.expandRowKeys&&n.setExpandRowKeysAdapter(e.expandRowKeys)});const m=()=>{r.store.commit("setHoverRow",null),r.hoverState&&(r.hoverState=null)},b=(I,z)=>{const{pixelX:G,pixelY:U}=z;Math.abs(G)>=Math.abs(U)&&(r.refs.bodyWrapper.scrollLeft+=z.pixelX/5)},_=P(()=>e.height||e.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0),w=P(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),C=()=>{_.value&&t.updateElsHeight(),t.updateColumnsWidth(),requestAnimationFrame(M)};yt(async()=>{await Ue(),n.updateColumns(),A(),requestAnimationFrame(C);const I=r.vnode.el,z=r.refs.headerWrapper;e.flexible&&I&&I.parentElement&&(I.parentElement.style.minWidth="0"),l.value={width:f.value=I.offsetWidth,height:I.offsetHeight,headerHeight:e.showHeader&&z?z.offsetHeight:null},n.states.columns.value.forEach(G=>{G.filteredValue&&G.filteredValue.length&&r.store.commit("filterChange",{column:G,values:G.filteredValue,silent:!0})}),r.$ready=!0});const S=(I,z)=>{if(!I)return;const G=Array.from(I.classList).filter(U=>!U.startsWith("is-scrolling-"));G.push(t.scrollX.value?z:"is-scrolling-none"),I.className=G.join(" ")},x=I=>{const{tableWrapper:z}=r.refs;S(z,I)},T=I=>{const{tableWrapper:z}=r.refs;return!!(z&&z.classList.contains(I))},M=function(){if(!r.refs.scrollBarRef)return;if(!t.scrollX.value){const Q="is-scrolling-none";T(Q)||x(Q);return}const I=r.refs.scrollBarRef.wrapRef;if(!I)return;const{scrollLeft:z,offsetWidth:G,scrollWidth:U}=I,{headerWrapper:Z,footerWrapper:ae}=r.refs;Z&&(Z.scrollLeft=z),ae&&(ae.scrollLeft=z);const J=U-G-1;z>=J?x("is-scrolling-right"):x(z===0?"is-scrolling-left":"is-scrolling-middle")},A=()=>{r.refs.scrollBarRef&&(r.refs.scrollBarRef.wrapRef&&bn(r.refs.scrollBarRef.wrapRef,"scroll",M,{passive:!0}),e.fit?$r(r.vnode.el,k):bn(window,"resize",k),$r(r.refs.bodyWrapper,()=>{var I,z;k(),(z=(I=r.refs)==null?void 0:I.scrollBarRef)==null||z.update()}))},k=()=>{var I,z,G,U;const Z=r.vnode.el;if(!r.$ready||!Z)return;let ae=!1;const{width:J,height:Q,headerHeight:ee}=l.value,j=f.value=Z.offsetWidth;J!==j&&(ae=!0);const de=Z.offsetHeight;(e.height||_.value)&&Q!==de&&(ae=!0);const ve=e.tableLayout==="fixed"?r.refs.headerWrapper:(I=r.refs.tableHeaderRef)==null?void 0:I.$el;e.showHeader&&(ve==null?void 0:ve.offsetHeight)!==ee&&(ae=!0),d.value=((z=r.refs.tableWrapper)==null?void 0:z.scrollHeight)||0,v.value=(ve==null?void 0:ve.scrollHeight)||0,p.value=((G=r.refs.footerWrapper)==null?void 0:G.offsetHeight)||0,g.value=((U=r.refs.appendWrapper)==null?void 0:U.offsetHeight)||0,h.value=d.value-v.value-p.value-g.value,ae&&(l.value={width:j,height:de,headerHeight:e.showHeader&&(ve==null?void 0:ve.offsetHeight)||0},C())},E=qn(),D=P(()=>{const{bodyWidth:I,scrollY:z,gutterWidth:G}=t;return I.value?`${I.value-(z.value?G:0)}px`:""}),L=P(()=>e.maxHeight?"fixed":e.tableLayout),B=P(()=>{if(e.data&&e.data.length)return null;let I="100%";e.height&&h.value&&(I=`${h.value}px`);const z=f.value;return{width:z?`${z}px`:"",height:I}}),N=P(()=>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`}:{}),O=P(()=>e.height?{height:"100%"}:e.maxHeight?Number.isNaN(Number(e.maxHeight))?{maxHeight:`calc(${e.maxHeight} - ${v.value+p.value}px)`}:{maxHeight:`${e.maxHeight-v.value-p.value}px`}:{});return{isHidden:a,renderExpanded:i,setDragVisible:s,isGroup:u,handleMouseLeave:m,handleHeaderFooterMousewheel:b,tableSize:E,emptyBlockStyle:B,handleFixedMousewheel:(I,z)=>{const G=r.refs.bodyWrapper;if(Math.abs(z.spinY)>0){const U=G.scrollTop;z.pixelY<0&&U!==0&&I.preventDefault(),z.pixelY>0&&G.scrollHeight-G.clientHeight>U&&I.preventDefault(),G.scrollTop+=Math.ceil(z.pixelY/5)}else G.scrollLeft+=Math.ceil(z.pixelX/5)},resizeProxyVisible:o,bodyWidth:D,resizeState:l,doLayout:C,tableBodyStyles:w,tableLayout:L,scrollbarViewStyle:c,tableInnerStyle:N,scrollbarStyle:O}}function V2e(e){const t=H(),n=()=>{const a=e.vnode.el.querySelector(".hidden-columns"),i={childList:!0,subtree:!0},o=e.store.states.updateOrderFns;t.value=new MutationObserver(()=>{o.forEach(s=>s())}),t.value.observe(a,i)};yt(()=>{n()}),xl(()=>{var r;(r=t.value)==null||r.disconnect()})}var z2e={data:{type:Array,default:()=>[]},size:Sr,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,showOverflowTooltip:[Boolean,Object]};const F2e=()=>{const e=H(),t=(i,o)=>{const s=e.value;s&&s.scrollTo(i,o)},n=(i,o)=>{const s=e.value;s&&at(o)&&["Top","Left"].includes(i)&&s[`setScroll${i}`](o)};return{scrollBarRef:e,scrollTo:t,setScrollTop:i=>n("Top",i),setScrollLeft:i=>n("Left",i)}};let H2e=1;const G2e=ne({name:"ElTable",directives:{Mousewheel:kve},components:{TableHeader:A2e,TableBody:L2e,TableFooter:$2e,ElScrollbar:hs,hColgroup:tk},props:z2e,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(),n=Me("table"),r=gt();Et(Ao,r);const a=v2e(r,e);r.store=a;const i=new g2e({store:r.store,table:r,fit:e.fit,showHeader:e.showHeader});r.layout=i;const o=P(()=>(a.states.data.value||[]).length===0),{setCurrentRow:s,getSelectionRows:l,toggleRowSelection:u,clearSelection:c,clearFilter:f,toggleAllSelection:d,toggleRowExpansion:h,clearSort:v,sort:p}=N2e(a),{isHidden:g,renderExpanded:m,setDragVisible:b,isGroup:_,handleMouseLeave:w,handleHeaderFooterMousewheel:C,tableSize:S,emptyBlockStyle:x,handleFixedMousewheel:T,resizeProxyVisible:M,bodyWidth:A,resizeState:k,doLayout:E,tableBodyStyles:D,tableLayout:L,scrollbarViewStyle:B,tableInnerStyle:N,scrollbarStyle:O}=B2e(e,i,a,r),{scrollBarRef:$,scrollTo:I,setScrollLeft:z,setScrollTop:G}=F2e(),U=Qr(E,50),Z=`${n.namespace.value}-table_${H2e++}`;r.tableId=Z,r.state={isGroup:_,resizeState:k,doLayout:E,debouncedUpdateLayout:U};const ae=P(()=>e.sumText||t("el.table.sumText")),J=P(()=>e.emptyText||t("el.table.emptyText"));return V2e(r),{ns:n,layout:i,store:a,handleHeaderFooterMousewheel:C,handleMouseLeave:w,tableId:Z,tableSize:S,isHidden:g,isEmpty:o,renderExpanded:m,resizeProxyVisible:M,resizeState:k,isGroup:_,bodyWidth:A,tableBodyStyles:D,emptyBlockStyle:x,debouncedUpdateLayout:U,handleFixedMousewheel:T,setCurrentRow:s,getSelectionRows:l,toggleRowSelection:u,clearSelection:c,clearFilter:f,toggleAllSelection:d,toggleRowExpansion:h,clearSort:v,doLayout:E,sort:p,t,setDragVisible:b,context:r,computedSumText:ae,computedEmptyText:J,tableLayout:L,scrollbarViewStyle:B,tableInnerStyle:N,scrollbarStyle:O,scrollBarRef:$,scrollTo:I,setScrollLeft:z,setScrollTop:G}}}),W2e=["data-prefix"],K2e={ref:"hiddenColumns",class:"hidden-columns"};function U2e(e,t,n,r,a,i){const o=ct("hColgroup"),s=ct("table-header"),l=ct("table-body"),u=ct("el-scrollbar"),c=ct("table-footer"),f=$v("mousewheel");return R(),K("div",{ref:"tableWrapper",class:V([{[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:Ye(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[0]||(t[0]=(...d)=>e.handleMouseLeave&&e.handleMouseLeave(...d))},[Y("div",{class:V(e.ns.e("inner-wrapper")),style:Ye(e.tableInnerStyle)},[Y("div",K2e,[_e(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?dt((R(),K("div",{key:0,ref:"headerWrapper",class:V(e.ns.e("header-wrapper"))},[Y("table",{ref:"tableHeader",class:V(e.ns.e("header")),style:Ye(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[q(o,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),q(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)),[[f,e.handleHeaderFooterMousewheel]]):se("v-if",!0),Y("div",{ref:"bodyWrapper",class:V(e.ns.e("body-wrapper"))},[q(u,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn},{default:re(()=>[Y("table",{ref:"tableBody",class:V(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:Ye({width:e.bodyWidth,tableLayout:e.tableLayout})},[q(o,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(R(),ce(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"])):se("v-if",!0),q(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?(R(),K("div",{key:0,ref:"emptyBlock",style:Ye(e.emptyBlockStyle),class:V(e.ns.e("empty-block"))},[Y("span",{class:V(e.ns.e("empty-text"))},[_e(e.$slots,"empty",{},()=>[Ut(De(e.computedEmptyText),1)])],2)],6)):se("v-if",!0),e.$slots.append?(R(),K("div",{key:1,ref:"appendWrapper",class:V(e.ns.e("append-wrapper"))},[_e(e.$slots,"append")],2)):se("v-if",!0)]),_:3},8,["view-style","wrap-style","always"])],2),e.showSummary?dt((R(),K("div",{key:1,ref:"footerWrapper",class:V(e.ns.e("footer-wrapper"))},[q(c,{border:e.border,"default-sort":e.defaultSort,store:e.store,style:Ye(e.tableBodyStyles),"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","style","sum-text","summary-method"])],2)),[[Kt,!e.isEmpty],[f,e.handleHeaderFooterMousewheel]]):se("v-if",!0),e.border||e.isGroup?(R(),K("div",{key:2,class:V(e.ns.e("border-left-patch"))},null,2)):se("v-if",!0)],6),dt(Y("div",{ref:"resizeProxy",class:V(e.ns.e("column-resize-proxy"))},null,2),[[Kt,e.resizeProxyVisible]])],46,W2e)}var Y2e=Pe(G2e,[["render",U2e],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/table.vue"]]);const j2e={selection:"table-column--selection",expand:"table__expand-column"},q2e={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:""}},X2e=e=>j2e[e]||"",Z2e={selection:{renderHeader({store:e,column:t}){function n(){return e.states.data.value&&e.states.data.value.length===0}return Ze(li,{disabled:n(),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,ariaLabel:t.label})},renderCell({row:e,column:t,store:n,$index:r}){return Ze(li,{disabled:t.selectable?!t.selectable.call(null,e,r):!1,size:n.states.tableSize.value,onChange:()=>{n.commit("rowSelectedChanged",e)},onClick:a=>a.stopPropagation(),modelValue:n.isSelected(e),ariaLabel:t.label})},sortable:!1,resizable:!1},index:{renderHeader({column:e}){return e.label||"#"},renderCell({column:e,$index:t}){let n=t+1;const r=e.index;return typeof r=="number"?n=t+r:typeof r=="function"&&(n=r(t)),Ze("div",{},[n])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({row:e,store:t,expanded:n}){const{ns:r}=t,a=[r.e("expand-icon")];return n&&a.push(r.em("expand-icon","expanded")),Ze("div",{class:a,onClick:function(o){o.stopPropagation(),t.toggleRowExpansion(e)}},{default:()=>[Ze(Ke,null,{default:()=>[Ze(jr)]})]})},sortable:!1,resizable:!1}};function J2e({row:e,column:t,$index:n}){var r;const a=t.property,i=a&&uy(e,a).value;return t&&t.formatter?t.formatter(e,t,i,n):((r=i==null?void 0:i.toString)==null?void 0:r.call(i))||""}function Q2e({row:e,treeNode:t,store:n},r=!1){const{ns:a}=n;if(!t)return r?[Ze("span",{class:a.e("placeholder")})]:null;const i=[],o=function(s){s.stopPropagation(),!t.loading&&n.loadOrToggle(e)};if(t.indent&&i.push(Ze("span",{class:a.e("indent"),style:{"padding-left":`${t.indent}px`}})),typeof t.expanded=="boolean"&&!t.noLazyChildren){const s=[a.e("expand-icon"),t.expanded?a.em("expand-icon","expanded"):""];let l=jr;t.loading&&(l=kl),i.push(Ze("div",{class:s,onClick:o},{default:()=>[Ze(Ke,{class:{[a.is("loading")]:t.loading}},{default:()=>[Ze(l)]})]}))}else i.push(Ze("span",{class:a.e("placeholder")}));return i}function lL(e,t){return e.reduce((n,r)=>(n[r]=r,n),t)}function eTe(e,t){const n=gt();return{registerComplexWatchers:()=>{const i=["fixed"],o={realWidth:"width",realMinWidth:"minWidth"},s=lL(i,o);Object.keys(s).forEach(l=>{const u=o[l];Nt(t,u)&&xe(()=>t[u],c=>{let f=c;u==="width"&&l==="realWidth"&&(f=JM(c)),u==="minWidth"&&l==="realMinWidth"&&(f=Z8(c)),n.columnConfig.value[u]=f,n.columnConfig.value[l]=f;const d=u==="fixed";e.value.store.scheduleLayout(d)})})},registerNormalWatchers:()=>{const i=["label","filters","filterMultiple","filteredValue","sortable","index","formatter","className","labelClassName","showOverflowTooltip"],o={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},s=lL(i,o);Object.keys(s).forEach(l=>{const u=o[l];Nt(t,u)&&xe(()=>t[u],c=>{n.columnConfig.value[l]=c})})}}}function tTe(e,t,n){const r=gt(),a=H(""),i=H(!1),o=H(),s=H(),l=Me("table");Ia(()=>{o.value=e.align?`is-${e.align}`:null,o.value}),Ia(()=>{s.value=e.headerAlign?`is-${e.headerAlign}`:o.value,s.value});const u=P(()=>{let w=r.vnode.vParent||r.parent;for(;w&&!w.tableId&&!w.columnId;)w=w.vnode.vParent||w.parent;return w}),c=P(()=>{const{store:w}=r.parent;if(!w)return!1;const{treeData:C}=w.states,S=C.value;return S&&Object.keys(S).length>0}),f=H(JM(e.width)),d=H(Z8(e.minWidth)),h=w=>(f.value&&(w.width=f.value),d.value&&(w.minWidth=d.value),!f.value&&d.value&&(w.width=void 0),w.minWidth||(w.minWidth=80),w.realWidth=Number(w.width===void 0?w.minWidth:w.width),w),v=w=>{const C=w.type,S=Z2e[C]||{};Object.keys(S).forEach(T=>{const M=S[T];T!=="className"&&M!==void 0&&(w[T]=M)});const x=X2e(C);if(x){const T=`${y(l.namespace)}-${x}`;w.className=w.className?`${w.className} ${T}`:T}return w},p=w=>{Array.isArray(w)?w.forEach(S=>C(S)):C(w);function C(S){var x;((x=S==null?void 0:S.type)==null?void 0:x.name)==="ElTableColumn"&&(S.vParent=r)}};return{columnId:a,realAlign:o,isSubColumn:i,realHeaderAlign:s,columnOrTableParent:u,setColumnWidth:h,setColumnForcedProps:v,setColumnRenders:w=>{e.renderHeader||w.type!=="selection"&&(w.renderHeader=S=>{r.columnConfig.value.label;const x=t.header;return x?x(S):w.label});let C=w.renderCell;return w.type==="expand"?(w.renderCell=S=>Ze("div",{class:"cell"},[C(S)]),n.value.renderExpanded=S=>t.default?t.default(S):t.default):(C=C||J2e,w.renderCell=S=>{let x=null;if(t.default){const D=t.default(S);x=D.some(L=>L.type!==Yr)?D:C(S)}else x=C(S);const{columns:T}=n.value.store.states,M=T.value.findIndex(D=>D.type==="default"),A=c.value&&S.cellIndex===M,k=Q2e(S,A),E={class:"cell",style:{}};return w.showOverflowTooltip&&(E.class=`${E.class} ${y(l.namespace)}-tooltip`,E.style={width:`${(S.column.realWidth||Number(S.column.width))-1}px`}),p(x),Ze("div",E,[k,x])}),w},getPropsData:(...w)=>w.reduce((C,S)=>(Array.isArray(S)&&S.forEach(x=>{C[x]=e[x]}),C),{}),getColumnElIndex:(w,C)=>Array.prototype.indexOf.call(w,C),updateColumnOrder:()=>{n.value.store.commit("updateColumnOrder",r.columnConfig.value)}}}var nTe={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:{type:[Boolean,Object],default:void 0},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 rTe=1;var a6=ne({name:"ElTableColumn",components:{ElCheckbox:li},props:nTe,setup(e,{slots:t}){const n=gt(),r=H({}),a=P(()=>{let _=n.parent;for(;_&&!_.tableId;)_=_.parent;return _}),{registerNormalWatchers:i,registerComplexWatchers:o}=eTe(a,e),{columnId:s,isSubColumn:l,realHeaderAlign:u,columnOrTableParent:c,setColumnWidth:f,setColumnForcedProps:d,setColumnRenders:h,getPropsData:v,getColumnElIndex:p,realAlign:g,updateColumnOrder:m}=tTe(e,t,a),b=c.value;s.value=`${b.tableId||b.columnId}_column_${rTe++}`,Db(()=>{l.value=a.value!==b;const _=e.type||"default",w=e.sortable===""?!0:e.sortable,C=er(e.showOverflowTooltip)?b.props.showOverflowTooltip:e.showOverflowTooltip,S={...q2e[_],id:s.value,type:_,property:e.prop||e.property,align:g,headerAlign:u,showOverflowTooltip:C,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:w,index:e.index,rawColumnKey:n.vnode.key};let k=v(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement"]);k=r2e(S,k),k=i2e(h,f,d)(k),r.value=k,i(),o()}),yt(()=>{var _;const w=c.value,C=l.value?w.vnode.el.children:(_=w.refs.hiddenColumns)==null?void 0:_.children,S=()=>p(C||[],n.vnode.el);r.value.getColumnIndex=S,S()>-1&&a.value.store.commit("insertColumn",r.value,l.value?w.columnConfig.value:null,m)}),wn(()=>{a.value.store.commit("removeColumn",r.value,l.value?b.columnConfig.value:null,m)}),n.columnId=s.value,n.columnConfig=r},render(){var e,t,n;try{const r=(t=(e=this.$slots).default)==null?void 0:t.call(e,{row:{},column:{},$index:-1}),a=[];if(Array.isArray(r))for(const o of r)((n=o.type)==null?void 0:n.name)==="ElTableColumn"||o.shapeFlag&2?a.push(o):o.type===je&&Array.isArray(o.children)&&o.children.forEach(s=>{(s==null?void 0:s.patchFlag)!==1024&&!lt(s==null?void 0:s.children)&&a.push(s)});return Ze("div",a)}catch{return Ze("div",[])}}});const aTe=_t(Y2e,{TableColumn:a6}),iTe=Dn(a6);var ip=(e=>(e.ASC="asc",e.DESC="desc",e))(ip||{}),op=(e=>(e.CENTER="center",e.RIGHT="right",e))(op||{}),i6=(e=>(e.LEFT="left",e.RIGHT="right",e))(i6||{});const vx={asc:"desc",desc:"asc"},sp=Symbol("placeholder"),oTe=(e,t,n)=>{var r;const a={flexGrow:0,flexShrink:0,...n?{}:{flexGrow:e.flexGrow||0,flexShrink:e.flexShrink||1}};n||(a.flexShrink=1);const i={...(r=e.style)!=null?r:{},...a,flexBasis:"auto",width:e.width};return t||(e.maxWidth&&(i.maxWidth=e.maxWidth),e.minWidth&&(i.minWidth=e.minWidth)),i};function sTe(e,t,n){const r=P(()=>y(t).filter(p=>!p.hidden)),a=P(()=>y(r).filter(p=>p.fixed==="left"||p.fixed===!0)),i=P(()=>y(r).filter(p=>p.fixed==="right")),o=P(()=>y(r).filter(p=>!p.fixed)),s=P(()=>{const p=[];return y(a).forEach(g=>{p.push({...g,placeholderSign:sp})}),y(o).forEach(g=>{p.push(g)}),y(i).forEach(g=>{p.push({...g,placeholderSign:sp})}),p}),l=P(()=>y(a).length||y(i).length),u=P(()=>y(t).reduce((g,m)=>(g[m.key]=oTe(m,y(n),e.fixed),g),{})),c=P(()=>y(r).reduce((p,g)=>p+g.width,0)),f=p=>y(t).find(g=>g.key===p),d=p=>y(u)[p],h=(p,g)=>{p.width=g};function v(p){var g;const{key:m}=p.currentTarget.dataset;if(!m)return;const{sortState:b,sortBy:_}=e;let w=ip.ASC;Mt(b)?w=vx[b[m]]:w=vx[_.order],(g=e.onColumnSort)==null||g.call(e,{column:f(m),key:m,order:w})}return{columns:t,columnsStyles:u,columnsTotalWidth:c,fixedColumnsOnLeft:a,fixedColumnsOnRight:i,hasFixedColumns:l,mainColumns:s,normalColumns:o,visibleColumns:r,getColumn:f,getColumnStyle:d,updateColumnWidth:h,onColumnSorted:v}}const lTe=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r,onMaybeEndReached:a})=>{const i=H({scrollLeft:0,scrollTop:0});function o(h){var v,p,g;const{scrollTop:m}=h;(v=t.value)==null||v.scrollTo(h),(p=n.value)==null||p.scrollToTop(m),(g=r.value)==null||g.scrollToTop(m)}function s(h){i.value=h,o(h)}function l(h){i.value.scrollTop=h,o(y(i))}function u(h){var v,p;i.value.scrollLeft=h,(p=(v=t.value)==null?void 0:v.scrollTo)==null||p.call(v,y(i))}function c(h){var v;s(h),(v=e.onScroll)==null||v.call(e,h)}function f({scrollTop:h}){const{scrollTop:v}=y(i);h!==v&&l(h)}function d(h,v="auto"){var p;(p=t.value)==null||p.scrollToRow(h,v)}return xe(()=>y(i).scrollTop,(h,v)=>{h>v&&a()}),{scrollPos:i,scrollTo:s,scrollToLeft:u,scrollToTop:l,scrollToRow:d,onScroll:c,onVerticalScroll:f}},uTe=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r})=>{const a=gt(),{emit:i}=a,o=un(!1),s=un(null),l=H(e.defaultExpandedRowKeys||[]),u=H(-1),c=un(null),f=H({}),d=H({}),h=un({}),v=un({}),p=un({}),g=P(()=>at(e.estimatedRowHeight));function m(T){var M;(M=e.onRowsRendered)==null||M.call(e,T),T.rowCacheEnd>y(u)&&(u.value=T.rowCacheEnd)}function b({hovered:T,rowKey:M}){s.value=T?M:null}function _({expanded:T,rowData:M,rowIndex:A,rowKey:k}){var E,D;const L=[...y(l)],B=L.indexOf(k);T?B===-1&&L.push(k):B>-1&&L.splice(B,1),l.value=L,i("update:expandedRowKeys",L),(E=e.onRowExpand)==null||E.call(e,{expanded:T,rowData:M,rowIndex:A,rowKey:k}),(D=e.onExpandedRowsChange)==null||D.call(e,L)}const w=Qr(()=>{var T,M,A,k;o.value=!0,f.value={...y(f),...y(d)},C(y(c),!1),d.value={},c.value=null,(T=t.value)==null||T.forceUpdate(),(M=n.value)==null||M.forceUpdate(),(A=r.value)==null||A.forceUpdate(),(k=a.proxy)==null||k.$forceUpdate(),o.value=!1},0);function C(T,M=!1){y(g)&&[t,n,r].forEach(A=>{const k=y(A);k&&k.resetAfterRowIndex(T,M)})}function S(T,M,A){const k=y(c);(k===null||k>A)&&(c.value=A),d.value[T]=M}function x({rowKey:T,height:M,rowIndex:A},k){k?k===i6.RIGHT?p.value[T]=M:h.value[T]=M:v.value[T]=M;const E=Math.max(...[h,p,v].map(D=>D.value[T]||0));y(f)[T]!==E&&(S(T,E,A),w())}return{hoveringRowKey:s,expandedRowKeys:l,lastRenderedRowIndex:u,isDynamic:g,isResetting:o,rowHeights:f,resetAfterIndex:C,onRowExpanded:_,onRowHovered:b,onRowsRendered:m,onRowHeightChange:x}},cTe=(e,{expandedRowKeys:t,lastRenderedRowIndex:n,resetAfterIndex:r})=>{const a=H({}),i=P(()=>{const s={},{data:l,rowKey:u}=e,c=y(t);if(!c||!c.length)return l;const f=[],d=new Set;c.forEach(v=>d.add(v));let h=l.slice();for(h.forEach(v=>s[v[u]]=0);h.length>0;){const v=h.shift();f.push(v),d.has(v[u])&&Array.isArray(v.children)&&v.children.length>0&&(h=[...v.children,...h],v.children.forEach(p=>s[p[u]]=s[v[u]]+1))}return a.value=s,f}),o=P(()=>{const{data:s,expandColumnKey:l}=e;return l?y(i):s});return xe(o,(s,l)=>{s!==l&&(n.value=-1,r(0,!0))}),{data:o,depthMap:a}},fTe=(e,t)=>e+t,xy=e=>He(e)?e.reduce(fTe,0):e,lc=(e,t,n={})=>it(e)?e(t):e??n,Gs=e=>(["width","maxWidth","minWidth","height"].forEach(t=>{e[t]=On(e[t])}),e),o6=e=>Tn(e)?t=>Ze(e,t):e,dTe=(e,{columnsTotalWidth:t,data:n,fixedColumnsOnLeft:r,fixedColumnsOnRight:a})=>{const i=P(()=>{const{fixed:_,width:w,vScrollbarSize:C}=e,S=w-C;return _?Math.max(Math.round(y(t)),S):S}),o=P(()=>y(i)+(e.fixed?e.vScrollbarSize:0)),s=P(()=>{const{height:_=0,maxHeight:w=0,footerHeight:C,hScrollbarSize:S}=e;if(w>0){const x=y(v),T=y(l),A=y(h)+x+T+S;return Math.min(A,w-C)}return _-C}),l=P(()=>{const{rowHeight:_,estimatedRowHeight:w}=e,C=y(n);return at(w)?C.length*w:C.length*_}),u=P(()=>{const{maxHeight:_}=e,w=y(s);if(at(_)&&_>0)return w;const C=y(l)+y(h)+y(v);return Math.min(w,C)}),c=_=>_.width,f=P(()=>xy(y(r).map(c))),d=P(()=>xy(y(a).map(c))),h=P(()=>xy(e.headerHeight)),v=P(()=>{var _;return(((_=e.fixedData)==null?void 0:_.length)||0)*e.rowHeight}),p=P(()=>y(s)-y(h)-y(v)),g=P(()=>{const{style:_={},height:w,width:C}=e;return Gs({..._,height:w,width:C})}),m=P(()=>Gs({height:e.footerHeight})),b=P(()=>({top:On(y(h)),bottom:On(e.footerHeight),width:On(e.width)}));return{bodyWidth:i,fixedTableHeight:u,mainTableHeight:s,leftTableWidth:f,rightTableWidth:d,headerWidth:o,rowsHeight:l,windowHeight:p,footerHeight:m,emptyStyle:b,rootStyle:g,headerHeight:h}},hTe=e=>{const t=H(),n=H(0),r=H(0);let a;return yt(()=>{a=$r(t,([i])=>{const{width:o,height:s}=i.contentRect,{paddingLeft:l,paddingRight:u,paddingTop:c,paddingBottom:f}=getComputedStyle(i.target),d=Number.parseInt(l)||0,h=Number.parseInt(u)||0,v=Number.parseInt(c)||0,p=Number.parseInt(f)||0;n.value=o-d-h,r.value=s-v-p}).stop}),wn(()=>{a==null||a()}),xe([n,r],([i,o])=>{var s;(s=e.onResize)==null||s.call(e,{width:i,height:o})}),{sizer:t,width:n,height:r}};function vTe(e){const t=H(),n=H(),r=H(),{columns:a,columnsStyles:i,columnsTotalWidth:o,fixedColumnsOnLeft:s,fixedColumnsOnRight:l,hasFixedColumns:u,mainColumns:c,onColumnSorted:f}=sTe(e,kn(e,"columns"),kn(e,"fixed")),{scrollTo:d,scrollToLeft:h,scrollToTop:v,scrollToRow:p,onScroll:g,onVerticalScroll:m,scrollPos:b}=lTe(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r,onMaybeEndReached:W}),{expandedRowKeys:_,hoveringRowKey:w,lastRenderedRowIndex:C,isDynamic:S,isResetting:x,rowHeights:T,resetAfterIndex:M,onRowExpanded:A,onRowHeightChange:k,onRowHovered:E,onRowsRendered:D}=uTe(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r}),{data:L,depthMap:B}=cTe(e,{expandedRowKeys:_,lastRenderedRowIndex:C,resetAfterIndex:M}),{bodyWidth:N,fixedTableHeight:O,mainTableHeight:$,leftTableWidth:I,rightTableWidth:z,headerWidth:G,rowsHeight:U,windowHeight:Z,footerHeight:ae,emptyStyle:J,rootStyle:Q,headerHeight:ee}=dTe(e,{columnsTotalWidth:o,data:L,fixedColumnsOnLeft:s,fixedColumnsOnRight:l}),j=un(!1),de=H(),ve=P(()=>{const X=y(L).length===0;return He(e.fixedData)?e.fixedData.length===0&&X:X});function ie(X){const{estimatedRowHeight:oe,rowHeight:pe,rowKey:Se}=e;return oe?y(T)[y(L)[X][Se]]||oe:pe}function W(){const{onEndReached:X}=e;if(!X)return;const{scrollTop:oe}=y(b),pe=y(U),Se=y(Z),me=pe-(oe+Se)+e.hScrollbarSize;y(C)>=0&&pe===oe+y($)-y(ee)&&X(me)}return xe(()=>e.expandedRowKeys,X=>_.value=X,{deep:!0}),{columns:a,containerRef:de,mainTableRef:t,leftTableRef:n,rightTableRef:r,isDynamic:S,isResetting:x,isScrolling:j,hoveringRowKey:w,hasFixedColumns:u,columnsStyles:i,columnsTotalWidth:o,data:L,expandedRowKeys:_,depthMap:B,fixedColumnsOnLeft:s,fixedColumnsOnRight:l,mainColumns:c,bodyWidth:N,emptyStyle:J,rootStyle:Q,headerWidth:G,footerHeight:ae,mainTableHeight:$,fixedTableHeight:O,leftTableWidth:I,rightTableWidth:z,showEmpty:ve,getRowHeight:ie,onColumnSorted:f,onRowHovered:E,onRowExpanded:A,onRowsRendered:D,onRowHeightChange:k,scrollTo:d,scrollToLeft:h,scrollToTop:v,scrollToRow:p,onScroll:g,onVerticalScroll:m}}const nk=Symbol("tableV2"),s6=String,rg={type:ue(Array),required:!0},rk={type:ue(Array)},l6={...rk,required:!0},pTe=String,uL={type:ue(Array),default:()=>Cn([])},xu={type:Number,required:!0},u6={type:ue([String,Number,Symbol]),default:"id"},cL={type:ue(Object)},Ou=Le({class:String,columns:rg,columnsStyles:{type:ue(Object),required:!0},depth:Number,expandColumnKey:pTe,estimatedRowHeight:{...ju.estimatedRowHeight,default:void 0},isScrolling:Boolean,onRowExpand:{type:ue(Function)},onRowHover:{type:ue(Function)},onRowHeightChange:{type:ue(Function)},rowData:{type:ue(Object),required:!0},rowEventHandlers:{type:ue(Object)},rowIndex:{type:Number,required:!0},rowKey:u6,style:{type:ue(Object)}}),P_={type:Number,required:!0},ak=Le({class:String,columns:rg,fixedHeaderData:{type:ue(Array)},headerData:{type:ue(Array),required:!0},headerHeight:{type:ue([Number,Array]),default:50},rowWidth:P_,rowHeight:{type:Number,default:50},height:P_,width:P_}),Ty=Le({columns:rg,data:l6,fixedData:rk,estimatedRowHeight:Ou.estimatedRowHeight,width:xu,height:xu,headerWidth:xu,headerHeight:ak.headerHeight,bodyWidth:xu,rowHeight:xu,cache:L8.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:ju.scrollbarAlwaysOn,scrollbarStartGap:ju.scrollbarStartGap,scrollbarEndGap:ju.scrollbarEndGap,class:s6,style:cL,containerStyle:cL,getRowHeight:{type:ue(Function),required:!0},rowKey:Ou.rowKey,onRowsRendered:{type:ue(Function)},onScroll:{type:ue(Function)}}),gTe=Le({cache:Ty.cache,estimatedRowHeight:Ou.estimatedRowHeight,rowKey:u6,headerClass:{type:ue([String,Function])},headerProps:{type:ue([Object,Function])},headerCellProps:{type:ue([Object,Function])},headerHeight:ak.headerHeight,footerHeight:{type:Number,default:0},rowClass:{type:ue([String,Function])},rowProps:{type:ue([Object,Function])},rowHeight:{type:Number,default:50},cellProps:{type:ue([Object,Function])},columns:rg,data:l6,dataGetter:{type:ue(Function)},fixedData:rk,expandColumnKey:Ou.expandColumnKey,expandedRowKeys:uL,defaultExpandedRowKeys:uL,class:s6,fixed:Boolean,style:{type:ue(Object)},width:xu,height:xu,maxHeight:Number,useIsScrolling:Boolean,indentSize:{type:Number,default:12},iconSize:{type:Number,default:12},hScrollbarSize:ju.hScrollbarSize,vScrollbarSize:ju.vScrollbarSize,scrollbarAlwaysOn:$8.alwaysOn,sortBy:{type:ue(Object),default:()=>({})},sortState:{type:ue(Object),default:void 0},onColumnSort:{type:ue(Function)},onExpandedRowsChange:{type:ue(Function)},onEndReached:{type:ue(Function)},onRowExpand:Ou.onRowExpand,onScroll:Ty.onScroll,onRowsRendered:Ty.onRowsRendered,rowEventHandlers:Ou.rowEventHandlers}),ik=(e,{slots:t})=>{var n;const{cellData:r,style:a}=e,i=((n=r==null?void 0:r.toString)==null?void 0:n.call(r))||"";return q("div",{class:e.class,title:i,style:a},[t.default?t.default(e):i])};ik.displayName="ElTableV2Cell";ik.inheritAttrs=!1;const ok=(e,{slots:t})=>{var n,r;return t.default?t.default(e):q("div",{class:e.class,title:(n=e.column)==null?void 0:n.title},[(r=e.column)==null?void 0:r.title])};ok.displayName="ElTableV2HeaderCell";ok.inheritAttrs=!1;const mTe=Le({class:String,columns:rg,columnsStyles:{type:ue(Object),required:!0},headerIndex:Number,style:{type:ue(Object)}}),yTe=ne({name:"ElTableV2HeaderRow",props:mTe,setup(e,{slots:t}){return()=>{const{columns:n,columnsStyles:r,headerIndex:a,style:i}=e;let o=n.map((s,l)=>t.cell({columns:n,column:s,columnIndex:l,headerIndex:a,style:r[s.key]}));return t.header&&(o=t.header({cells:o.map(s=>He(s)&&s.length===1?s[0]:s),columns:n,headerIndex:a})),q("div",{class:e.class,style:i,role:"row"},[o])}}}),bTe="ElTableV2Header",_Te=ne({name:bTe,props:ak,setup(e,{slots:t,expose:n}){const r=Me("table-v2"),a=H(),i=P(()=>Gs({width:e.width,height:e.height})),o=P(()=>Gs({width:e.rowWidth,height:e.height})),s=P(()=>oc(y(e.headerHeight))),l=f=>{const d=y(a);Ue(()=>{d!=null&&d.scroll&&d.scroll({left:f})})},u=()=>{const f=r.e("fixed-header-row"),{columns:d,fixedHeaderData:h,rowHeight:v}=e;return h==null?void 0:h.map((p,g)=>{var m;const b=Gs({height:v,width:"100%"});return(m=t.fixed)==null?void 0:m.call(t,{class:f,columns:d,rowData:p,rowIndex:-(g+1),style:b})})},c=()=>{const f=r.e("dynamic-header-row"),{columns:d}=e;return y(s).map((h,v)=>{var p;const g=Gs({width:"100%",height:h});return(p=t.dynamic)==null?void 0:p.call(t,{class:f,columns:d,headerIndex:v,style:g})})};return n({scrollToLeft:l}),()=>{if(!(e.height<=0))return q("div",{ref:a,class:e.class,style:y(i),role:"rowgroup"},[q("div",{style:y(o),class:r.e("header")},[c(),u()])])}}}),wTe=e=>{const{isScrolling:t}=Ge(nk),n=H(!1),r=H(),a=P(()=>at(e.estimatedRowHeight)&&e.rowIndex>=0),i=(l=!1)=>{const u=y(r);if(!u)return;const{columns:c,onRowHeightChange:f,rowKey:d,rowIndex:h,style:v}=e,{height:p}=u.getBoundingClientRect();n.value=!0,Ue(()=>{if(l||p!==Number.parseInt(v.height)){const g=c[0],m=(g==null?void 0:g.placeholderSign)===sp;f==null||f({rowKey:d,height:p,rowIndex:h},g&&!m&&g.fixed)}})},o=P(()=>{const{rowData:l,rowIndex:u,rowKey:c,onRowHover:f}=e,d=e.rowEventHandlers||{},h={};return Object.entries(d).forEach(([v,p])=>{it(p)&&(h[v]=g=>{p({event:g,rowData:l,rowIndex:u,rowKey:c})})}),f&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach(({name:v,hovered:p})=>{const g=h[v];h[v]=m=>{f({event:m,hovered:p,rowData:l,rowIndex:u,rowKey:c}),g==null||g(m)}}),h}),s=l=>{const{onRowExpand:u,rowData:c,rowIndex:f,rowKey:d}=e;u==null||u({expanded:l,rowData:c,rowIndex:f,rowKey:d})};return yt(()=>{y(a)&&i(!0)}),{isScrolling:t,measurable:a,measured:n,rowRef:r,eventHandlers:o,onExpand:s}},STe="ElTableV2TableRow",CTe=ne({name:STe,props:Ou,setup(e,{expose:t,slots:n,attrs:r}){const{eventHandlers:a,isScrolling:i,measurable:o,measured:s,rowRef:l,onExpand:u}=wTe(e);return t({onExpand:u}),()=>{const{columns:c,columnsStyles:f,expandColumnKey:d,depth:h,rowData:v,rowIndex:p,style:g}=e;let m=c.map((b,_)=>{const w=He(v.children)&&v.children.length>0&&b.key===d;return n.cell({column:b,columns:c,columnIndex:_,depth:h,style:f[b.key],rowData:v,rowIndex:p,isScrolling:y(i),expandIconProps:w?{rowData:v,rowIndex:p,onExpand:u}:void 0})});if(n.row&&(m=n.row({cells:m.map(b=>He(b)&&b.length===1?b[0]:b),style:g,columns:c,depth:h,rowData:v,rowIndex:p,isScrolling:y(i)})),y(o)){const{height:b,..._}=g||{},w=y(s);return q("div",St({ref:l,class:e.class,style:w?g:_,role:"row"},r,y(a)),[m])}return q("div",St(r,{ref:l,class:e.class,style:g,role:"row"},y(a)),[m])}}}),xTe=e=>{const{sortOrder:t}=e;return q(Ke,{size:14,class:e.class},{default:()=>[t===ip.ASC?q(kse,null,null):q(wse,null,null)]})},TTe=e=>{const{expanded:t,expandable:n,onExpand:r,style:a,size:i}=e,o={onClick:n?()=>r(!t):void 0,class:e.class};return q(Ke,St(o,{size:i,style:a}),{default:()=>[q(jr,null,null)]})},MTe="ElTableV2Grid",kTe=e=>{const t=H(),n=H(),r=P(()=>{const{data:p,rowHeight:g,estimatedRowHeight:m}=e;if(!m)return p.length*g}),a=P(()=>{const{fixedData:p,rowHeight:g}=e;return((p==null?void 0:p.length)||0)*g}),i=P(()=>xy(e.headerHeight)),o=P(()=>{const{height:p}=e;return Math.max(0,p-y(i)-y(a))}),s=P(()=>y(i)+y(a)>0),l=({data:p,rowIndex:g})=>p[g][e.rowKey];function u({rowCacheStart:p,rowCacheEnd:g,rowVisibleStart:m,rowVisibleEnd:b}){var _;(_=e.onRowsRendered)==null||_.call(e,{rowCacheStart:p,rowCacheEnd:g,rowVisibleStart:m,rowVisibleEnd:b})}function c(p,g){var m;(m=n.value)==null||m.resetAfterRowIndex(p,g)}function f(p,g){const m=y(t),b=y(n);!m||!b||(Mt(p)?(m.scrollToLeft(p.scrollLeft),b.scrollTo(p)):(m.scrollToLeft(p),b.scrollTo({scrollLeft:p,scrollTop:g})))}function d(p){var g;(g=y(n))==null||g.scrollTo({scrollTop:p})}function h(p,g){var m;(m=y(n))==null||m.scrollToItem(p,1,g)}function v(){var p,g;(p=y(n))==null||p.$forceUpdate(),(g=y(t))==null||g.$forceUpdate()}return{bodyRef:n,forceUpdate:v,fixedRowHeight:a,gridHeight:o,hasHeader:s,headerHeight:i,headerRef:t,totalHeight:r,itemKey:l,onItemRendered:u,resetAfterRowIndex:c,scrollTo:f,scrollToTop:d,scrollToRow:h}},sk=ne({name:MTe,props:Ty,setup(e,{slots:t,expose:n}){const{ns:r}=Ge(nk),{bodyRef:a,fixedRowHeight:i,gridHeight:o,hasHeader:s,headerRef:l,headerHeight:u,totalHeight:c,forceUpdate:f,itemKey:d,onItemRendered:h,resetAfterRowIndex:v,scrollTo:p,scrollToTop:g,scrollToRow:m}=kTe(e);n({forceUpdate:f,totalHeight:c,scrollTo:p,scrollToTop:g,scrollToRow:m,resetAfterRowIndex:v});const b=()=>e.bodyWidth;return()=>{const{cache:_,columns:w,data:C,fixedData:S,useIsScrolling:x,scrollbarAlwaysOn:T,scrollbarEndGap:M,scrollbarStartGap:A,style:k,rowHeight:E,bodyWidth:D,estimatedRowHeight:L,headerWidth:B,height:N,width:O,getRowHeight:$,onScroll:I}=e,z=at(L),G=z?rCe:QSe,U=y(u);return q("div",{role:"table",class:[r.e("table"),e.class],style:k},[q(G,{ref:a,data:C,useIsScrolling:x,itemKey:d,columnCache:0,columnWidth:z?b:D,totalColumn:1,totalRow:C.length,rowCache:_,rowHeight:z?$:E,width:O,height:y(o),class:r.e("body"),role:"rowgroup",scrollbarStartGap:A,scrollbarEndGap:M,scrollbarAlwaysOn:T,onScroll:I,onItemRendered:h,perfMode:!1},{default:Z=>{var ae;const J=C[Z.rowIndex];return(ae=t.row)==null?void 0:ae.call(t,{...Z,columns:w,rowData:J})}}),y(s)&&q(_Te,{ref:l,class:r.e("header-wrapper"),columns:w,headerData:C,headerHeight:e.headerHeight,fixedHeaderData:S,rowWidth:B,rowHeight:E,width:O,height:Math.min(U+y(i),N)},{dynamic:t.header,fixed:t.row})])}}});function ATe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Tn(e)}const ETe=(e,{slots:t})=>{const{mainTableRef:n,...r}=e;return q(sk,St({ref:n},r),ATe(t)?t:{default:()=>[t]})};function ITe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Tn(e)}const DTe=(e,{slots:t})=>{if(!e.columns.length)return;const{leftTableRef:n,...r}=e;return q(sk,St({ref:n},r),ITe(t)?t:{default:()=>[t]})};function PTe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Tn(e)}const LTe=(e,{slots:t})=>{if(!e.columns.length)return;const{rightTableRef:n,...r}=e;return q(sk,St({ref:n},r),PTe(t)?t:{default:()=>[t]})};function RTe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Tn(e)}const OTe=(e,{slots:t})=>{const{columns:n,columnsStyles:r,depthMap:a,expandColumnKey:i,expandedRowKeys:o,estimatedRowHeight:s,hasFixedColumns:l,hoveringRowKey:u,rowData:c,rowIndex:f,style:d,isScrolling:h,rowProps:v,rowClass:p,rowKey:g,rowEventHandlers:m,ns:b,onRowHovered:_,onRowExpanded:w}=e,C=lc(p,{columns:n,rowData:c,rowIndex:f},""),S=lc(v,{columns:n,rowData:c,rowIndex:f}),x=c[g],T=a[x]||0,M=!!i,A=f<0,k=[b.e("row"),C,{[b.e(`row-depth-${T}`)]:M&&f>=0,[b.is("expanded")]:M&&o.includes(x),[b.is("hovered")]:!h&&x===u,[b.is("fixed")]:!T&&A,[b.is("customized")]:!!t.row}],E=l?_:void 0,D={...S,columns:n,columnsStyles:r,class:k,depth:T,expandColumnKey:i,estimatedRowHeight:A?void 0:s,isScrolling:h,rowIndex:f,rowData:c,rowKey:x,rowEventHandlers:m,style:d};return q(CTe,St(D,{onRowHover:E,onRowExpand:w}),RTe(t)?t:{default:()=>[t]})},px=({columns:e,column:t,columnIndex:n,depth:r,expandIconProps:a,isScrolling:i,rowData:o,rowIndex:s,style:l,expandedRowKeys:u,ns:c,cellProps:f,expandColumnKey:d,indentSize:h,iconSize:v,rowKey:p},{slots:g})=>{const m=Gs(l);if(t.placeholderSign===sp)return q("div",{class:c.em("row-cell","placeholder"),style:m},null);const{cellRenderer:b,dataKey:_,dataGetter:w}=t,S=o6(b)||g.default||(N=>q(ik,N,null)),x=it(w)?w({columns:e,column:t,columnIndex:n,rowData:o,rowIndex:s}):Sn(o,_??""),T=lc(f,{cellData:x,columns:e,column:t,columnIndex:n,rowIndex:s,rowData:o}),M={class:c.e("cell-text"),columns:e,column:t,columnIndex:n,cellData:x,isScrolling:i,rowData:o,rowIndex:s},A=S(M),k=[c.e("row-cell"),t.class,t.align===op.CENTER&&c.is("align-center"),t.align===op.RIGHT&&c.is("align-right")],E=s>=0&&d&&t.key===d,D=s>=0&&u.includes(o[p]);let L;const B=`margin-inline-start: ${r*h}px;`;return E&&(Mt(a)?L=q(TTe,St(a,{class:[c.e("expand-icon"),c.is("expanded",D)],size:v,expanded:D,style:B,expandable:!0}),null):L=q("div",{style:[B,`width: ${v}px; height: ${v}px;`].join(" ")},null)),q("div",St({class:k,style:m},T,{role:"cell"}),[L,A])};px.inheritAttrs=!1;function $Te(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Tn(e)}const NTe=({columns:e,columnsStyles:t,headerIndex:n,style:r,headerClass:a,headerProps:i,ns:o},{slots:s})=>{const l={columns:e,headerIndex:n},u=[o.e("header-row"),lc(a,l,""),{[o.is("customized")]:!!s.header}],c={...lc(i,l),columnsStyles:t,class:u,columns:e,headerIndex:n,style:r};return q(yTe,c,$Te(s)?s:{default:()=>[s]})},fL=(e,{slots:t})=>{const{column:n,ns:r,style:a,onColumnSorted:i}=e,o=Gs(a);if(n.placeholderSign===sp)return q("div",{class:r.em("header-row-cell","placeholder"),style:o},null);const{headerCellRenderer:s,headerClass:l,sortable:u}=n,c={...e,class:r.e("header-cell-text")},d=(o6(s)||t.default||(w=>q(ok,w,null)))(c),{sortBy:h,sortState:v,headerCellProps:p}=e;let g,m;if(v){const w=v[n.key];g=!!vx[w],m=g?w:ip.ASC}else g=n.key===h.key,m=g?h.order:ip.ASC;const b=[r.e("header-cell"),lc(l,e,""),n.align===op.CENTER&&r.is("align-center"),n.align===op.RIGHT&&r.is("align-right"),u&&r.is("sortable")],_={...lc(p,e),onClick:n.sortable?i:void 0,class:b,style:o,"data-key":n.key};return q("div",St(_,{role:"columnheader"}),[d,u&&q(xTe,{class:[r.e("sort-icon"),g&&r.is("sorting")],sortOrder:m},null)])},c6=(e,{slots:t})=>{var n;return q("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};c6.displayName="ElTableV2Footer";const f6=(e,{slots:t})=>q("div",{class:e.class,style:e.style},[t.default?t.default():q(y8,null,null)]);f6.displayName="ElTableV2Empty";const d6=(e,{slots:t})=>{var n;return q("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};d6.displayName="ElTableV2Overlay";function rh(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Tn(e)}const BTe="ElTableV2",VTe=ne({name:BTe,props:gTe,setup(e,{slots:t,expose:n}){const r=Me("table-v2"),{columnsStyles:a,fixedColumnsOnLeft:i,fixedColumnsOnRight:o,mainColumns:s,mainTableHeight:l,fixedTableHeight:u,leftTableWidth:c,rightTableWidth:f,data:d,depthMap:h,expandedRowKeys:v,hasFixedColumns:p,hoveringRowKey:g,mainTableRef:m,leftTableRef:b,rightTableRef:_,isDynamic:w,isResetting:C,isScrolling:S,bodyWidth:x,emptyStyle:T,rootStyle:M,headerWidth:A,footerHeight:k,showEmpty:E,scrollTo:D,scrollToLeft:L,scrollToTop:B,scrollToRow:N,getRowHeight:O,onColumnSorted:$,onRowHeightChange:I,onRowHovered:z,onRowExpanded:G,onRowsRendered:U,onScroll:Z,onVerticalScroll:ae}=vTe(e);return n({scrollTo:D,scrollToLeft:L,scrollToTop:B,scrollToRow:N}),Et(nk,{ns:r,isResetting:C,hoveringRowKey:g,isScrolling:S}),()=>{const{cache:J,cellProps:Q,estimatedRowHeight:ee,expandColumnKey:j,fixedData:de,headerHeight:ve,headerClass:ie,headerProps:W,headerCellProps:X,sortBy:oe,sortState:pe,rowHeight:Se,rowClass:me,rowEventHandlers:Ee,rowKey:Ce,rowProps:we,scrollbarAlwaysOn:Te,indentSize:$e,iconSize:Be,useIsScrolling:We,vScrollbarSize:Ae,width:Fe}=e,rt=y(d),vt={cache:J,class:r.e("main"),columns:y(s),data:rt,fixedData:de,estimatedRowHeight:ee,bodyWidth:y(x)+Ae,headerHeight:ve,headerWidth:y(A),height:y(l),mainTableRef:m,rowKey:Ce,rowHeight:Se,scrollbarAlwaysOn:Te,scrollbarStartGap:2,scrollbarEndGap:Ae,useIsScrolling:We,width:Fe,getRowHeight:O,onRowsRendered:U,onScroll:Z},kt=y(c),Qe=y(u),ye={cache:J,class:r.e("left"),columns:y(i),data:rt,estimatedRowHeight:ee,leftTableRef:b,rowHeight:Se,bodyWidth:kt,headerWidth:kt,headerHeight:ve,height:Qe,rowKey:Ce,scrollbarAlwaysOn:Te,scrollbarStartGap:2,scrollbarEndGap:Ae,useIsScrolling:We,width:kt,getRowHeight:O,onScroll:ae},le=y(f)+Ae,ke={cache:J,class:r.e("right"),columns:y(o),data:rt,estimatedRowHeight:ee,rightTableRef:_,rowHeight:Se,bodyWidth:le,headerWidth:le,headerHeight:ve,height:Qe,rowKey:Ce,scrollbarAlwaysOn:Te,scrollbarStartGap:2,scrollbarEndGap:Ae,width:le,style:`--${y(r.namespace)}-table-scrollbar-size: ${Ae}px`,useIsScrolling:We,getRowHeight:O,onScroll:ae},te=y(a),Ve={ns:r,depthMap:y(h),columnsStyles:te,expandColumnKey:j,expandedRowKeys:y(v),estimatedRowHeight:ee,hasFixedColumns:y(p),hoveringRowKey:y(g),rowProps:we,rowClass:me,rowKey:Ce,rowEventHandlers:Ee,onRowHovered:z,onRowExpanded:G,onRowHeightChange:I},st={cellProps:Q,expandColumnKey:j,indentSize:$e,iconSize:Be,rowKey:Ce,expandedRowKeys:y(v),ns:r},It={ns:r,headerClass:ie,headerProps:W,columnsStyles:te},zn={ns:r,sortBy:oe,sortState:pe,headerCellProps:X,onColumnSorted:$},Zn={row:be=>q(OTe,St(be,Ve),{row:t.row,cell:Ne=>{let he;return t.cell?q(px,St(Ne,st,{style:te[Ne.column.key]}),rh(he=t.cell(Ne))?he:{default:()=>[he]}):q(px,St(Ne,st,{style:te[Ne.column.key]}),null)}}),header:be=>q(NTe,St(be,It),{header:t.header,cell:Ne=>{let he;return t["header-cell"]?q(fL,St(Ne,zn,{style:te[Ne.column.key]}),rh(he=t["header-cell"](Ne))?he:{default:()=>[he]}):q(fL,St(Ne,zn,{style:te[Ne.column.key]}),null)}})},oa=[e.class,r.b(),r.e("root"),{[r.is("dynamic")]:y(w)}],pr={class:r.e("footer"),style:y(k)};return q("div",{class:oa,style:y(M)},[q(ETe,vt,rh(Zn)?Zn:{default:()=>[Zn]}),q(DTe,ye,rh(Zn)?Zn:{default:()=>[Zn]}),q(LTe,ke,rh(Zn)?Zn:{default:()=>[Zn]}),t.footer&&q(c6,pr,{default:t.footer}),y(E)&&q(f6,{class:r.e("empty"),style:y(T)},{default:t.empty}),t.overlay&&q(d6,{class:r.e("overlay")},{default:t.overlay})])}}}),zTe=Le({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:ue(Function)}}),FTe=ne({name:"ElAutoResizer",props:zTe,setup(e,{slots:t}){const n=Me("auto-resizer"),{height:r,width:a,sizer:i}=hTe(e),o={width:"100%",height:"100%"};return()=>{var s;return q("div",{ref:i,class:n.b(),style:o},[(s=t.default)==null?void 0:s.call(t,{height:r.value,width:a.value})])}}}),HTe=_t(VTe),GTe=_t(FTe),l1=Symbol("tabsRootContextKey"),WTe=Le({tabs:{type:ue(Array),default:()=>Cn([])}}),h6="ElTabBar",KTe=ne({name:h6}),UTe=ne({...KTe,props:WTe,setup(e,{expose:t}){const n=e,r=gt(),a=Ge(l1);a||jn(h6,"<el-tabs><el-tab-bar /></el-tabs>");const i=Me("tabs"),o=H(),s=H(),l=()=>{let c=0,f=0;const d=["top","bottom"].includes(a.props.tabPosition)?"width":"height",h=d==="width"?"x":"y",v=h==="x"?"left":"top";return n.tabs.every(p=>{var g,m;const b=(m=(g=r.parent)==null?void 0:g.refs)==null?void 0:m[`tab-${p.uid}`];if(!b)return!1;if(!p.active)return!0;c=b[`offset${io(v)}`],f=b[`client${io(d)}`];const _=window.getComputedStyle(b);return d==="width"&&(n.tabs.length>1&&(f-=Number.parseFloat(_.paddingLeft)+Number.parseFloat(_.paddingRight)),c+=Number.parseFloat(_.paddingLeft)),!1}),{[d]:`${f}px`,transform:`translate${io(h)}(${c}px)`}},u=()=>s.value=l();return xe(()=>n.tabs,async()=>{await Ue(),u()},{immediate:!0}),$r(o,()=>u()),t({ref:o,update:u}),(c,f)=>(R(),K("div",{ref_key:"barRef",ref:o,class:V([y(i).e("active-bar"),y(i).is(y(a).props.tabPosition)]),style:Ye(s.value)},null,6))}});var YTe=Pe(UTe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-bar.vue"]]);const jTe=Le({panes:{type:ue(Array),default:()=>Cn([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),qTe={tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},dL="ElTabNav",XTe=ne({name:dL,props:jTe,emits:qTe,setup(e,{expose:t,emit:n}){const r=gt(),a=Ge(l1);a||jn(dL,"<el-tabs><tab-nav /></el-tabs>");const i=Me("tabs"),o=vZ(),s=xZ(),l=H(),u=H(),c=H(),f=H(),d=H(!1),h=H(0),v=H(!1),p=H(!0),g=P(()=>["top","bottom"].includes(a.props.tabPosition)?"width":"height"),m=P(()=>({transform:`translate${g.value==="width"?"X":"Y"}(-${h.value}px)`})),b=()=>{if(!l.value)return;const M=l.value[`offset${io(g.value)}`],A=h.value;if(!A)return;const k=A>M?A-M:0;h.value=k},_=()=>{if(!l.value||!u.value)return;const M=u.value[`offset${io(g.value)}`],A=l.value[`offset${io(g.value)}`],k=h.value;if(M-k<=A)return;const E=M-k>A*2?k+A:M-A;h.value=E},w=async()=>{const M=u.value;if(!d.value||!c.value||!l.value||!M)return;await Ue();const A=c.value.querySelector(".is-active");if(!A)return;const k=l.value,E=["top","bottom"].includes(a.props.tabPosition),D=A.getBoundingClientRect(),L=k.getBoundingClientRect(),B=E?M.offsetWidth-L.width:M.offsetHeight-L.height,N=h.value;let O=N;E?(D.left<L.left&&(O=N-(L.left-D.left)),D.right>L.right&&(O=N+D.right-L.right)):(D.top<L.top&&(O=N-(L.top-D.top)),D.bottom>L.bottom&&(O=N+(D.bottom-L.bottom))),O=Math.max(O,0),h.value=Math.min(O,B)},C=()=>{var M;if(!u.value||!l.value)return;e.stretch&&((M=f.value)==null||M.update());const A=u.value[`offset${io(g.value)}`],k=l.value[`offset${io(g.value)}`],E=h.value;k<A?(d.value=d.value||{},d.value.prev=E,d.value.next=E+k<A,A-E<k&&(h.value=A-k)):(d.value=!1,E>0&&(h.value=0))},S=M=>{const A=M.code,{up:k,down:E,left:D,right:L}=Xe;if(![k,E,D,L].includes(A))return;const B=Array.from(M.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")),N=B.indexOf(M.target);let O;A===D||A===k?N===0?O=B.length-1:O=N-1:N<B.length-1?O=N+1:O=0,B[O].focus({preventScroll:!0}),B[O].click(),x()},x=()=>{p.value&&(v.value=!0)},T=()=>v.value=!1;return xe(o,M=>{M==="hidden"?p.value=!1:M==="visible"&&setTimeout(()=>p.value=!0,50)}),xe(s,M=>{M?setTimeout(()=>p.value=!0,50):p.value=!1}),$r(c,C),yt(()=>setTimeout(()=>w(),0)),cs(()=>C()),t({scrollToActiveTab:w,removeFocus:T}),xe(()=>e.panes,()=>r.update(),{flush:"post",deep:!0}),()=>{const M=d.value?[q("span",{class:[i.e("nav-prev"),i.is("disabled",!d.value.prev)],onClick:b},[q(Ke,null,{default:()=>[q(cl,null,null)]})]),q("span",{class:[i.e("nav-next"),i.is("disabled",!d.value.next)],onClick:_},[q(Ke,null,{default:()=>[q(jr,null,null)]})])]:null,A=e.panes.map((k,E)=>{var D,L,B,N;const O=k.uid,$=k.props.disabled,I=(L=(D=k.props.name)!=null?D:k.index)!=null?L:`${E}`,z=!$&&(k.isClosable||e.editable);k.index=`${E}`;const G=z?q(Ke,{class:"is-icon-close",onClick:ae=>n("tabRemove",k,ae)},{default:()=>[q(Bi,null,null)]}):null,U=((N=(B=k.slots).label)==null?void 0:N.call(B))||k.props.label,Z=!$&&k.active?0:-1;return q("div",{ref:`tab-${O}`,class:[i.e("item"),i.is(a.props.tabPosition),i.is("active",k.active),i.is("disabled",$),i.is("closable",z),i.is("focus",v.value)],id:`tab-${I}`,key:`tab-${O}`,"aria-controls":`pane-${I}`,role:"tab","aria-selected":k.active,tabindex:Z,onFocus:()=>x(),onBlur:()=>T(),onClick:ae=>{T(),n("tabClick",k,I,ae)},onKeydown:ae=>{z&&(ae.code===Xe.delete||ae.code===Xe.backspace)&&n("tabRemove",k,ae)}},[U,G])});return q("div",{ref:c,class:[i.e("nav-wrap"),i.is("scrollable",!!d.value),i.is(a.props.tabPosition)]},[M,q("div",{class:i.e("nav-scroll"),ref:l},[q("div",{class:[i.e("nav"),i.is(a.props.tabPosition),i.is("stretch",e.stretch&&["top","bottom"].includes(a.props.tabPosition))],ref:u,style:m.value,role:"tablist",onKeydown:S},[e.type?null:q(YTe,{ref:f,tabs:[...e.panes]},null),A])])])}}}),ZTe=Le({type:{type:String,values:["card","border-card",""],default:""},activeName:{type:[String,Number]},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:ue(Function),default:()=>!0},stretch:Boolean}),L_=e=>lt(e)||at(e),JTe={[wt]:e=>L_(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>L_(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>L_(e),tabAdd:()=>!0};var QTe=ne({name:"ElTabs",props:ZTe,emits:JTe,setup(e,{emit:t,slots:n,expose:r}){var a,i;const o=Me("tabs"),{children:s,addChild:l,removeChild:u}=EM(gt(),"ElTabPane"),c=H(),f=H((i=(a=e.modelValue)!=null?a:e.activeName)!=null?i:"0"),d=m=>{f.value=m,t(wt,m),t("tabChange",m)},h=async m=>{var b,_,w;if(!(f.value===m||er(m)))try{await((b=e.beforeLeave)==null?void 0:b.call(e,m,f.value))!==!1&&(d(m),(w=(_=c.value)==null?void 0:_.removeFocus)==null||w.call(_))}catch{}},v=(m,b,_)=>{m.props.disabled||(h(b),t("tabClick",m,_))},p=(m,b)=>{m.props.disabled||er(m.props.name)||(b.stopPropagation(),t("edit",m.props.name,"remove"),t("tabRemove",m.props.name))},g=()=>{t("edit",void 0,"add"),t("tabAdd")};return bo({from:'"activeName"',replacement:'"model-value" or "v-model"',scope:"ElTabs",version:"2.3.0",ref:"https://element-plus.org/en-US/component/tabs.html#attributes",type:"Attribute"},P(()=>!!e.activeName)),xe(()=>e.activeName,m=>h(m)),xe(()=>e.modelValue,m=>h(m)),xe(f,async()=>{var m;await Ue(),(m=c.value)==null||m.scrollToActiveTab()}),Et(l1,{props:e,currentName:f,registerPane:l,unregisterPane:u}),r({currentName:f}),()=>{const m=e.editable||e.addable?q("span",{class:o.e("new-tab"),tabindex:"0",onClick:g,onKeydown:w=>{w.code===Xe.enter&&g()}},[q(Ke,{class:o.is("icon-plus")},{default:()=>[q(F5,null,null)]})]):null,b=q("div",{class:[o.e("header"),o.is(e.tabPosition)]},[m,q(XTe,{ref:c,currentName:f.value,editable:e.editable,type:e.type,panes:s.value,stretch:e.stretch,onTabClick:v,onTabRemove:p},null)]),_=q("div",{class:o.e("content")},[_e(n,"default")]);return q("div",{class:[o.b(),o.m(e.tabPosition),{[o.m("card")]:e.type==="card",[o.m("border-card")]:e.type==="border-card"}]},[...e.tabPosition!=="bottom"?[b,_]:[_,b]])}}});const eMe=Le({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),tMe=["id","aria-hidden","aria-labelledby"],v6="ElTabPane",nMe=ne({name:v6}),rMe=ne({...nMe,props:eMe,setup(e){const t=e,n=gt(),r=Mr(),a=Ge(l1);a||jn(v6,"usage: <el-tabs><el-tab-pane /></el-tabs/>");const i=Me("tab-pane"),o=H(),s=P(()=>t.closable||a.props.closable),l=KI(()=>{var h;return a.currentName.value===((h=t.name)!=null?h:o.value)}),u=H(l.value),c=P(()=>{var h;return(h=t.name)!=null?h:o.value}),f=KI(()=>!t.lazy||u.value||l.value);xe(l,h=>{h&&(u.value=!0)});const d=jt({uid:n.uid,slots:r,props:t,paneName:c,active:l,index:o,isClosable:s});return yt(()=>{a.registerPane(d)}),xl(()=>{a.unregisterPane(d.uid)}),(h,v)=>y(f)?dt((R(),K("div",{key:0,id:`pane-${y(c)}`,class:V(y(i).b()),role:"tabpanel","aria-hidden":!y(l),"aria-labelledby":`tab-${y(c)}`},[_e(h.$slots,"default")],10,tMe)),[[Kt,y(l)]]):se("v-if",!0)}});var p6=Pe(rMe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-pane.vue"]]);const aMe=_t(QTe,{TabPane:p6}),iMe=Dn(p6),oMe=Le({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:Mo,default:""},truncated:{type:Boolean},tag:{type:String,default:"span"}}),sMe=ne({name:"ElText"}),lMe=ne({...sMe,props:oMe,setup(e){const t=e,n=qn(),r=Me("text"),a=P(()=>[r.b(),r.m(t.type),r.m(n.value),r.is("truncated",t.truncated)]);return(i,o)=>(R(),ce(Ct(i.tag),{class:V(y(a))},{default:re(()=>[_e(i.$slots,"default")]),_:3},8,["class"]))}});var uMe=Pe(lMe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/text/src/text.vue"]]);const cMe=_t(uMe),fMe=Le({format:{type:String,default:"HH:mm"},modelValue:String,disabled:Boolean,editable:{type:Boolean,default:!0},effect:{type:String,default:"light"},clearable:{type:Boolean,default:!0},size:Sr,placeholder:String,start:{type:String,default:"09:00"},end:{type:String,default:"18:00"},step:{type:String,default:"00:30"},minTime:String,maxTime:String,name:String,prefixIcon:{type:ue([String,Object]),default:()=>z5},clearIcon:{type:ue([String,Object]),default:()=>Ml}}),Fo=e=>{const t=(e||"").split(":");if(t.length>=2){let n=Number.parseInt(t[0],10);const r=Number.parseInt(t[1],10),a=e.toUpperCase();return a.includes("AM")&&n===12?n=0:a.includes("PM")&&n!==12&&(n+=12),{hours:n,minutes:r}}return null},R_=(e,t)=>{const n=Fo(e);if(!n)return-1;const r=Fo(t);if(!r)return-1;const a=n.minutes+n.hours*60,i=r.minutes+r.hours*60;return a===i?0:a>i?1:-1},hL=e=>`${e}`.padStart(2,"0"),lf=e=>`${hL(e.hours)}:${hL(e.minutes)}`,dMe=(e,t)=>{const n=Fo(e);if(!n)return"";const r=Fo(t);if(!r)return"";const a={hours:n.hours,minutes:n.minutes};return a.minutes+=r.minutes,a.hours+=r.hours,a.hours+=Math.floor(a.minutes/60),a.minutes=a.minutes%60,lf(a)},hMe=ne({name:"ElTimeSelect"}),vMe=ne({...hMe,props:fMe,emits:["change","blur","focus","update:modelValue"],setup(e,{expose:t}){const n=e;mt.extend(OM);const{Option:r}=sc,a=Me("input"),i=H(),o=wa(),s=P(()=>n.modelValue),l=P(()=>{const g=Fo(n.start);return g?lf(g):null}),u=P(()=>{const g=Fo(n.end);return g?lf(g):null}),c=P(()=>{const g=Fo(n.step);return g?lf(g):null}),f=P(()=>{const g=Fo(n.minTime||"");return g?lf(g):null}),d=P(()=>{const g=Fo(n.maxTime||"");return g?lf(g):null}),h=P(()=>{const g=[];if(n.start&&n.end&&n.step){let m=l.value,b;for(;m&&u.value&&R_(m,u.value)<=0;)b=mt(m,"HH:mm").format(n.format),g.push({value:b,disabled:R_(m,f.value||"-1:-1")<=0||R_(m,d.value||"100:100")>=0}),m=dMe(m,c.value)}return g});return t({blur:()=>{var g,m;(m=(g=i.value)==null?void 0:g.blur)==null||m.call(g)},focus:()=>{var g,m;(m=(g=i.value)==null?void 0:g.focus)==null||m.call(g)}}),(g,m)=>(R(),ce(y(sc),{ref_key:"select",ref:i,"model-value":y(s),disabled:y(o),clearable:g.clearable,"clear-icon":g.clearIcon,size:g.size,effect:g.effect,placeholder:g.placeholder,"default-first-option":"",filterable:g.editable,"onUpdate:modelValue":m[0]||(m[0]=b=>g.$emit("update:modelValue",b)),onChange:m[1]||(m[1]=b=>g.$emit("change",b)),onBlur:m[2]||(m[2]=b=>g.$emit("blur",b)),onFocus:m[3]||(m[3]=b=>g.$emit("focus",b))},{prefix:re(()=>[g.prefixIcon?(R(),ce(y(Ke),{key:0,class:V(y(a).e("prefix-icon"))},{default:re(()=>[(R(),ce(Ct(g.prefixIcon)))]),_:1},8,["class"])):se("v-if",!0)]),default:re(()=>[(R(!0),K(je,null,Ot(y(h),b=>(R(),ce(y(r),{key:b.value,label:b.value,value:b.value,disabled:b.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["model-value","disabled","clearable","clear-icon","size","effect","placeholder","filterable"]))}});var My=Pe(vMe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-select/src/time-select.vue"]]);My.install=e=>{e.component(My.name,My)};const pMe=My,gMe=pMe,mMe=ne({name:"ElTimeline",setup(e,{slots:t}){const n=Me("timeline");return Et("timeline",t),()=>Ze("ul",{class:[n.b()]},[_e(t,"default")])}}),yMe=Le({timestamp:{type:String,default:""},hideTimestamp:{type:Boolean,default:!1},center:{type:Boolean,default:!1},placement:{type:String,values:["top","bottom"],default:"bottom"},type:{type:String,values:["primary","success","warning","danger","info"],default:""},color:{type:String,default:""},size:{type:String,values:["normal","large"],default:"normal"},icon:{type:fn},hollow:{type:Boolean,default:!1}}),bMe=ne({name:"ElTimelineItem"}),_Me=ne({...bMe,props:yMe,setup(e){const t=e,n=Me("timeline-item"),r=P(()=>[n.e("node"),n.em("node",t.size||""),n.em("node",t.type||""),n.is("hollow",t.hollow)]);return(a,i)=>(R(),K("li",{class:V([y(n).b(),{[y(n).e("center")]:a.center}])},[Y("div",{class:V(y(n).e("tail"))},null,2),a.$slots.dot?se("v-if",!0):(R(),K("div",{key:0,class:V(y(r)),style:Ye({backgroundColor:a.color})},[a.icon?(R(),ce(y(Ke),{key:0,class:V(y(n).e("icon"))},{default:re(()=>[(R(),ce(Ct(a.icon)))]),_:1},8,["class"])):se("v-if",!0)],6)),a.$slots.dot?(R(),K("div",{key:1,class:V(y(n).e("dot"))},[_e(a.$slots,"dot")],2)):se("v-if",!0),Y("div",{class:V(y(n).e("wrapper"))},[!a.hideTimestamp&&a.placement==="top"?(R(),K("div",{key:0,class:V([y(n).e("timestamp"),y(n).is("top")])},De(a.timestamp),3)):se("v-if",!0),Y("div",{class:V(y(n).e("content"))},[_e(a.$slots,"default")],2),!a.hideTimestamp&&a.placement==="bottom"?(R(),K("div",{key:1,class:V([y(n).e("timestamp"),y(n).is("bottom")])},De(a.timestamp),3)):se("v-if",!0)],2)],2))}});var g6=Pe(_Me,[["__file","/home/runner/work/element-plus/element-plus/packages/components/timeline/src/timeline-item.vue"]]);const wMe=_t(mMe,{TimelineItem:g6}),SMe=Dn(g6),m6=Le({nowrap:Boolean});var y6=(e=>(e.top="top",e.bottom="bottom",e.left="left",e.right="right",e))(y6||{});const CMe=Object.values(y6),lk=Le({width:{type:Number,default:10},height:{type:Number,default:10},style:{type:ue(Object),default:null}}),xMe=Le({side:{type:ue(String),values:CMe,required:!0}}),TMe=["absolute","fixed"],MMe=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],uk=Le({ariaLabel:String,arrowPadding:{type:ue(Number),default:5},effect:{type:String,default:""},contentClass:String,placement:{type:ue(String),values:MMe,default:"bottom"},reference:{type:ue(Object),default:null},offset:{type:Number,default:8},strategy:{type:ue(String),values:TMe,default:"absolute"},showArrow:{type:Boolean,default:!1}}),ck=Le({delayDuration:{type:Number,default:300},defaultOpen:Boolean,open:{type:Boolean,default:void 0},onOpenChange:{type:ue(Function)},"onUpdate:open":{type:ue(Function)}}),$c={type:ue(Function)},fk=Le({onBlur:$c,onClick:$c,onFocus:$c,onMouseDown:$c,onMouseEnter:$c,onMouseLeave:$c}),kMe=Le({...ck,...lk,...fk,...uk,alwaysOn:Boolean,fullTransition:Boolean,transitionProps:{type:ue(Object),default:null},teleported:Boolean,to:{type:ue(String),default:"body"}}),u1=Symbol("tooltipV2"),b6=Symbol("tooltipV2Content"),O_="tooltip_v2.open",AMe=ne({name:"ElTooltipV2Root"}),EMe=ne({...AMe,props:ck,setup(e,{expose:t}){const n=e,r=H(n.defaultOpen),a=H(null),i=P({get:()=>Ore(n.open)?r.value:n.open,set:g=>{var m;r.value=g,(m=n["onUpdate:open"])==null||m.call(n,g)}}),o=P(()=>at(n.delayDuration)&&n.delayDuration>0),{start:s,stop:l}=ac(()=>{i.value=!0},P(()=>n.delayDuration),{immediate:!1}),u=Me("tooltip-v2"),c=oi(),f=()=>{l(),i.value=!0},d=()=>{y(o)?s():f()},h=f,v=()=>{l(),i.value=!1};return xe(i,g=>{var m;g&&(document.dispatchEvent(new CustomEvent(O_)),h()),(m=n.onOpenChange)==null||m.call(n,g)}),yt(()=>{document.addEventListener(O_,v)}),wn(()=>{l(),document.removeEventListener(O_,v)}),Et(u1,{contentId:c,triggerRef:a,ns:u,onClose:v,onDelayOpen:d,onOpen:h}),t({onOpen:h,onClose:v}),(g,m)=>_e(g.$slots,"default",{open:y(i)})}});var IMe=Pe(EMe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/root.vue"]]);const DMe=ne({name:"ElTooltipV2Arrow"}),PMe=ne({...DMe,props:{...lk,...xMe},setup(e){const t=e,{ns:n}=Ge(u1),{arrowRef:r}=Ge(b6),a=P(()=>{const{style:i,width:o,height:s}=t,l=n.namespace.value;return{[`--${l}-tooltip-v2-arrow-width`]:`${o}px`,[`--${l}-tooltip-v2-arrow-height`]:`${s}px`,[`--${l}-tooltip-v2-arrow-border-width`]:`${o/2}px`,[`--${l}-tooltip-v2-arrow-cover-width`]:o/2-1,...i||{}}});return(i,o)=>(R(),K("span",{ref_key:"arrowRef",ref:r,style:Ye(y(a)),class:V(y(n).e("arrow"))},null,6))}});var vL=Pe(PMe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/arrow.vue"]]);const LMe=Le({style:{type:ue([String,Object,Array]),default:()=>({})}}),RMe=ne({name:"ElVisuallyHidden"}),OMe=ne({...RMe,props:LMe,setup(e){const t=e,n=P(()=>[t.style,{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}]);return(r,a)=>(R(),K("span",St(r.$attrs,{style:y(n)}),[_e(r.$slots,"default")],16))}});var $Me=Pe(OMe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/visual-hidden/src/visual-hidden.vue"]]);const NMe=["data-side"],BMe=ne({name:"ElTooltipV2Content"}),VMe=ne({...BMe,props:{...uk,...m6},setup(e){const t=e,{triggerRef:n,contentId:r}=Ge(u1),a=H(t.placement),i=H(t.strategy),o=H(null),{referenceRef:s,contentRef:l,middlewareData:u,x:c,y:f,update:d}=hce({placement:a,strategy:i,middleware:P(()=>{const _=[jue(t.offset)];return t.showArrow&&_.push(vce({arrowRef:o})),_})}),h=Md().nextZIndex(),v=Me("tooltip-v2"),p=P(()=>a.value.split("-")[0]),g=P(()=>({position:y(i),top:`${y(f)||0}px`,left:`${y(c)||0}px`,zIndex:h})),m=P(()=>{if(!t.showArrow)return{};const{arrow:_}=y(u);return{[`--${v.namespace.value}-tooltip-v2-arrow-x`]:`${_==null?void 0:_.x}px`||"",[`--${v.namespace.value}-tooltip-v2-arrow-y`]:`${_==null?void 0:_.y}px`||""}}),b=P(()=>[v.e("content"),v.is("dark",t.effect==="dark"),v.is(y(i)),t.contentClass]);return xe(o,()=>d()),xe(()=>t.placement,_=>a.value=_),yt(()=>{xe(()=>t.reference||n.value,_=>{s.value=_||void 0},{immediate:!0})}),Et(b6,{arrowRef:o}),(_,w)=>(R(),K("div",{ref_key:"contentRef",ref:l,style:Ye(y(g)),"data-tooltip-v2-root":""},[_.nowrap?se("v-if",!0):(R(),K("div",{key:0,"data-side":y(p),class:V(y(b))},[_e(_.$slots,"default",{contentStyle:y(g),contentClass:y(b)}),q(y($Me),{id:y(r),role:"tooltip"},{default:re(()=>[_.ariaLabel?(R(),K(je,{key:0},[Ut(De(_.ariaLabel),1)],64)):_e(_.$slots,"default",{key:1})]),_:3},8,["id"]),_e(_.$slots,"arrow",{style:Ye(y(m)),side:y(p)})],10,NMe))],4))}});var pL=Pe(VMe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/content.vue"]]);const zMe=Le({setRef:{type:ue(Function),required:!0},onlyChild:Boolean});var FMe=ne({props:zMe,setup(e,{slots:t}){const n=H(),r=Ub(n,a=>{a?e.setRef(a.nextElementSibling):e.setRef(null)});return()=>{var a;const[i]=((a=t.default)==null?void 0:a.call(t))||[],o=e.onlyChild?_le(i.children):i.children;return q(je,{ref:r},[o])}}});const HMe=ne({name:"ElTooltipV2Trigger"}),GMe=ne({...HMe,props:{...m6,...fk},setup(e){const t=e,{onClose:n,onOpen:r,onDelayOpen:a,triggerRef:i,contentId:o}=Ge(u1);let s=!1;const l=b=>{i.value=b},u=()=>{s=!1},c=In(t.onMouseEnter,a),f=In(t.onMouseLeave,n),d=In(t.onMouseDown,()=>{n(),s=!0,document.addEventListener("mouseup",u,{once:!0})}),h=In(t.onFocus,()=>{s||r()}),v=In(t.onBlur,n),p=In(t.onClick,b=>{b.detail===0&&n()}),g={blur:v,click:p,focus:h,mousedown:d,mouseenter:c,mouseleave:f},m=(b,_,w)=>{b&&Object.entries(_).forEach(([C,S])=>{b[w](C,S)})};return xe(i,(b,_)=>{m(b,g,"addEventListener"),m(_,g,"removeEventListener"),b&&b.setAttribute("aria-describedby",o.value)}),wn(()=>{m(i.value,g,"removeEventListener"),document.removeEventListener("mouseup",u)}),(b,_)=>b.nowrap?(R(),ce(y(FMe),{key:0,"set-ref":l,"only-child":""},{default:re(()=>[_e(b.$slots,"default")]),_:3})):(R(),K("button",St({key:1,ref_key:"triggerRef",ref:i},b.$attrs),[_e(b.$slots,"default")],16))}});var WMe=Pe(GMe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/trigger.vue"]]);const KMe=ne({name:"ElTooltipV2"}),UMe=ne({...KMe,props:kMe,setup(e){const n=or(e),r=jt(Ho(n,Object.keys(lk))),a=jt(Ho(n,Object.keys(uk))),i=jt(Ho(n,Object.keys(ck))),o=jt(Ho(n,Object.keys(fk)));return(s,l)=>(R(),ce(IMe,Mi(Lb(i)),{default:re(({open:u})=>[q(WMe,St(o,{nowrap:""}),{default:re(()=>[_e(s.$slots,"trigger")]),_:3},16),(R(),ce(Wp,{to:s.to,disabled:!s.teleported},[s.fullTransition?(R(),ce(Bn,Mi(St({key:0},s.transitionProps)),{default:re(()=>[s.alwaysOn||u?(R(),ce(pL,Mi(St({key:0},a)),{arrow:re(({style:c,side:f})=>[s.showArrow?(R(),ce(vL,St({key:0},r,{style:c,side:f}),null,16,["style","side"])):se("v-if",!0)]),default:re(()=>[_e(s.$slots,"default")]),_:3},16)):se("v-if",!0)]),_:2},1040)):(R(),K(je,{key:1},[s.alwaysOn||u?(R(),ce(pL,Mi(St({key:0},a)),{arrow:re(({style:c,side:f})=>[s.showArrow?(R(),ce(vL,St({key:0},r,{style:c,side:f}),null,16,["style","side"])):se("v-if",!0)]),default:re(()=>[_e(s.$slots,"default")]),_:3},16)):se("v-if",!0)],64))],8,["to","disabled"]))]),_:3},16))}});var YMe=Pe(UMe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/tooltip.vue"]]);const jMe=_t(YMe),_6="left-check-change",w6="right-check-change",uf=Le({data:{type:ue(Array),default:()=>[]},titles:{type:ue(Array),default:()=>[]},buttonTexts:{type:ue(Array),default:()=>[]},filterPlaceholder:String,filterMethod:{type:ue(Function)},leftDefaultChecked:{type:ue(Array),default:()=>[]},rightDefaultChecked:{type:ue(Array),default:()=>[]},renderContent:{type:ue(Function)},modelValue:{type:ue(Array),default:()=>[]},format:{type:ue(Object),default:()=>({})},filterable:Boolean,props:{type:ue(Object),default:()=>Cn({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),gx=(e,t)=>[e,t].every(He)||He(e)&&Kn(t),qMe={[mn]:(e,t,n)=>[e,n].every(He)&&["left","right"].includes(t),[wt]:e=>He(e),[_6]:gx,[w6]:gx},mx="checked-change",XMe=Le({data:uf.data,optionRender:{type:ue(Function)},placeholder:String,title:String,filterable:Boolean,format:uf.format,filterMethod:uf.filterMethod,defaultChecked:uf.leftDefaultChecked,props:uf.props}),ZMe={[mx]:gx},ag=e=>{const t={label:"label",key:"key",disabled:"disabled"};return P(()=>({...t,...e.props}))},JMe=(e,t,n)=>{const r=ag(e),a=P(()=>e.data.filter(c=>it(e.filterMethod)?e.filterMethod(t.query,c):String(c[r.value.label]||c[r.value.key]).toLowerCase().includes(t.query.toLowerCase()))),i=P(()=>a.value.filter(c=>!c[r.value.disabled])),o=P(()=>{const c=t.checked.length,f=e.data.length,{noChecked:d,hasChecked:h}=e.format;return d&&h?c>0?h.replace(/\${checked}/g,c.toString()).replace(/\${total}/g,f.toString()):d.replace(/\${total}/g,f.toString()):`${c}/${f}`}),s=P(()=>{const c=t.checked.length;return c>0&&c<i.value.length}),l=()=>{const c=i.value.map(f=>f[r.value.key]);t.allChecked=c.length>0&&c.every(f=>t.checked.includes(f))},u=c=>{t.checked=c?i.value.map(f=>f[r.value.key]):[]};return xe(()=>t.checked,(c,f)=>{if(l(),t.checkChangeByUser){const d=c.concat(f).filter(h=>!c.includes(h)||!f.includes(h));n(mx,c,d)}else n(mx,c),t.checkChangeByUser=!0}),xe(i,()=>{l()}),xe(()=>e.data,()=>{const c=[],f=a.value.map(d=>d[r.value.key]);t.checked.forEach(d=>{f.includes(d)&&c.push(d)}),t.checkChangeByUser=!1,t.checked=c}),xe(()=>e.defaultChecked,(c,f)=>{if(f&&c.length===f.length&&c.every(v=>f.includes(v)))return;const d=[],h=i.value.map(v=>v[r.value.key]);c.forEach(v=>{h.includes(v)&&d.push(v)}),t.checkChangeByUser=!1,t.checked=d},{immediate:!0}),{filteredData:a,checkableData:i,checkedSummary:o,isIndeterminate:s,updateAllChecked:l,handleAllCheckedChange:u}},QMe=(e,t)=>({onSourceCheckedChange:(a,i)=>{e.leftChecked=a,i&&t(_6,a,i)},onTargetCheckedChange:(a,i)=>{e.rightChecked=a,i&&t(w6,a,i)}}),eke=e=>{const t=ag(e),n=P(()=>e.data.reduce((i,o)=>(i[o[t.value.key]]=o)&&i,{})),r=P(()=>e.data.filter(i=>!e.modelValue.includes(i[t.value.key]))),a=P(()=>e.targetOrder==="original"?e.data.filter(i=>e.modelValue.includes(i[t.value.key])):e.modelValue.reduce((i,o)=>{const s=n.value[o];return s&&i.push(s),i},[]));return{sourceData:r,targetData:a}},tke=(e,t,n)=>{const r=ag(e),a=(s,l,u)=>{n(wt,s),n(mn,s,l,u)};return{addToLeft:()=>{const s=e.modelValue.slice();t.rightChecked.forEach(l=>{const u=s.indexOf(l);u>-1&&s.splice(u,1)}),a(s,"left",t.rightChecked)},addToRight:()=>{let s=e.modelValue.slice();const l=e.data.filter(u=>{const c=u[r.value.key];return t.leftChecked.includes(c)&&!e.modelValue.includes(c)}).map(u=>u[r.value.key]);s=e.targetOrder==="unshift"?l.concat(s):s.concat(l),e.targetOrder==="original"&&(s=e.data.filter(u=>s.includes(u[r.value.key])).map(u=>u[r.value.key])),a(s,"right",t.leftChecked)}}},nke=ne({name:"ElTransferPanel"}),rke=ne({...nke,props:XMe,emits:ZMe,setup(e,{expose:t,emit:n}){const r=e,a=Mr(),i=({option:_})=>_,{t:o}=Ht(),s=Me("transfer"),l=jt({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),u=ag(r),{filteredData:c,checkedSummary:f,isIndeterminate:d,handleAllCheckedChange:h}=JMe(r,l,n),v=P(()=>!ja(l.query)&&ja(c.value)),p=P(()=>!ja(a.default()[0].children)),{checked:g,allChecked:m,query:b}=or(l);return t({query:b}),(_,w)=>(R(),K("div",{class:V(y(s).b("panel"))},[Y("p",{class:V(y(s).be("panel","header"))},[q(y(li),{modelValue:y(m),"onUpdate:modelValue":w[0]||(w[0]=C=>cn(m)?m.value=C:null),indeterminate:y(d),"validate-event":!1,onChange:y(h)},{default:re(()=>[Ut(De(_.title)+" ",1),Y("span",null,De(y(f)),1)]),_:1},8,["modelValue","indeterminate","onChange"])],2),Y("div",{class:V([y(s).be("panel","body"),y(s).is("with-footer",y(p))])},[_.filterable?(R(),ce(y(Rr),{key:0,modelValue:y(b),"onUpdate:modelValue":w[1]||(w[1]=C=>cn(b)?b.value=C:null),class:V(y(s).be("panel","filter")),size:"default",placeholder:_.placeholder,"prefix-icon":y(pse),clearable:"","validate-event":!1},null,8,["modelValue","class","placeholder","prefix-icon"])):se("v-if",!0),dt(q(y(AF),{modelValue:y(g),"onUpdate:modelValue":w[2]||(w[2]=C=>cn(g)?g.value=C:null),"validate-event":!1,class:V([y(s).is("filterable",_.filterable),y(s).be("panel","list")])},{default:re(()=>[(R(!0),K(je,null,Ot(y(c),C=>(R(),ce(y(li),{key:C[y(u).key],class:V(y(s).be("panel","item")),label:C[y(u).key],disabled:C[y(u).disabled],"validate-event":!1},{default:re(()=>{var S;return[q(i,{option:(S=_.optionRender)==null?void 0:S.call(_,C)},null,8,["option"])]}),_:2},1032,["class","label","disabled"]))),128))]),_:1},8,["modelValue","class"]),[[Kt,!y(v)&&!y(ja)(_.data)]]),dt(Y("p",{class:V(y(s).be("panel","empty"))},De(y(v)?y(o)("el.transfer.noMatch"):y(o)("el.transfer.noData")),3),[[Kt,y(v)||y(ja)(_.data)]])],2),y(p)?(R(),K("p",{key:0,class:V(y(s).be("panel","footer"))},[_e(_.$slots,"default")],2)):se("v-if",!0)],2))}});var gL=Pe(rke,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer-panel.vue"]]);const ake={key:0},ike={key:0},oke=ne({name:"ElTransfer"}),ske=ne({...oke,props:uf,emits:qMe,setup(e,{expose:t,emit:n}){const r=e,a=Mr(),{t:i}=Ht(),o=Me("transfer"),{formItem:s}=aa(),l=jt({leftChecked:[],rightChecked:[]}),u=ag(r),{sourceData:c,targetData:f}=eke(r),{onSourceCheckedChange:d,onTargetCheckedChange:h}=QMe(l,n),{addToLeft:v,addToRight:p}=tke(r,l,n),g=H(),m=H(),b=T=>{switch(T){case"left":g.value.query="";break;case"right":m.value.query="";break}},_=P(()=>r.buttonTexts.length===2),w=P(()=>r.titles[0]||i("el.transfer.titles.0")),C=P(()=>r.titles[1]||i("el.transfer.titles.1")),S=P(()=>r.filterPlaceholder||i("el.transfer.filterPlaceholder"));xe(()=>r.modelValue,()=>{var T;r.validateEvent&&((T=s==null?void 0:s.validate)==null||T.call(s,"change").catch(M=>void 0))});const x=P(()=>T=>r.renderContent?r.renderContent(Ze,T):a.default?a.default({option:T}):Ze("span",T[u.value.label]||T[u.value.key]));return t({clearQuery:b,leftPanel:g,rightPanel:m}),(T,M)=>(R(),K("div",{class:V(y(o).b())},[q(gL,{ref_key:"leftPanel",ref:g,data:y(c),"option-render":y(x),placeholder:y(S),title:y(w),filterable:T.filterable,format:T.format,"filter-method":T.filterMethod,"default-checked":T.leftDefaultChecked,props:r.props,onCheckedChange:y(d)},{default:re(()=>[_e(T.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),Y("div",{class:V(y(o).e("buttons"))},[q(y(_r),{type:"primary",class:V([y(o).e("button"),y(o).is("with-texts",y(_))]),disabled:y(ja)(l.rightChecked),onClick:y(v)},{default:re(()=>[q(y(Ke),null,{default:re(()=>[q(y(cl))]),_:1}),y(er)(T.buttonTexts[0])?se("v-if",!0):(R(),K("span",ake,De(T.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),q(y(_r),{type:"primary",class:V([y(o).e("button"),y(o).is("with-texts",y(_))]),disabled:y(ja)(l.leftChecked),onClick:y(p)},{default:re(()=>[y(er)(T.buttonTexts[1])?se("v-if",!0):(R(),K("span",ike,De(T.buttonTexts[1]),1)),q(y(Ke),null,{default:re(()=>[q(y(jr))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),q(gL,{ref_key:"rightPanel",ref:m,data:y(f),"option-render":y(x),placeholder:y(S),filterable:T.filterable,format:T.format,"filter-method":T.filterMethod,title:y(C),"default-checked":T.rightDefaultChecked,props:r.props,onCheckedChange:y(h)},{default:re(()=>[_e(T.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}});var lke=Pe(ske,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer.vue"]]);const uke=_t(lke),Lf="$treeNodeId",mL=function(e,t){!t||t[Lf]||Object.defineProperty(t,Lf,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},dk=function(e,t){return e?t[e]:t[Lf]},yx=(e,t,n)=>{const r=e.value.currentNode;n();const a=e.value.currentNode;r!==a&&t("current-change",a?a.data:null,a)},bx=e=>{let t=!0,n=!0,r=!0;for(let a=0,i=e.length;a<i;a++){const o=e[a];(o.checked!==!0||o.indeterminate)&&(t=!1,o.disabled||(r=!1)),(o.checked!==!1||o.indeterminate)&&(n=!1)}return{all:t,none:n,allWithoutDisable:r,half:!t&&!n}},ky=function(e){if(e.childNodes.length===0||e.loading)return;const{all:t,none:n,half:r}=bx(e.childNodes);t?(e.checked=!0,e.indeterminate=!1):r?(e.checked=!1,e.indeterminate=!0):n&&(e.checked=!1,e.indeterminate=!1);const a=e.parent;!a||a.level===0||e.store.checkStrictly||ky(a)},Zg=function(e,t){const n=e.store.props,r=e.data||{},a=n[t];if(typeof a=="function")return a(r,e);if(typeof a=="string")return r[a];if(typeof a>"u"){const i=r[t];return i===void 0?"":i}};let cke=0,_x=class Ay{constructor(t){this.id=cke++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,this.canFocus=!1;for(const n in t)Nt(t,n)&&(this[n]=t[n]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1)}initialize(){const t=this.store;if(!t)throw new Error("[Node]store is required!");t.registerNode(this);const n=t.props;if(n&&typeof n.isLeaf<"u"){const i=Zg(this,"isLeaf");typeof i=="boolean"&&(this.isLeafByUser=i)}if(t.lazy!==!0&&this.data?(this.setData(this.data),t.defaultExpandAll&&(this.expanded=!0,this.canFocus=!0)):this.level>0&&t.lazy&&t.defaultExpandAll&&this.expand(),Array.isArray(this.data)||mL(this,this.data),!this.data)return;const r=t.defaultExpandedKeys,a=t.key;a&&r&&r.includes(this.key)&&this.expand(null,t.autoExpandParent),a&&t.currentNodeKey!==void 0&&this.key===t.currentNodeKey&&(t.currentNode=this,t.currentNode.isCurrent=!0),t.lazy&&t._initDefaultCheckedNode(this),this.updateLeafState(),this.parent&&(this.level===1||this.parent.expanded===!0)&&(this.canFocus=!0)}setData(t){Array.isArray(t)||mL(this,t),this.data=t,this.childNodes=[];let n;this.level===0&&Array.isArray(this.data)?n=this.data:n=Zg(this,"children")||[];for(let r=0,a=n.length;r<a;r++)this.insertChild({data:n[r]})}get label(){return Zg(this,"label")}get key(){const t=this.store.key;return this.data?this.data[t]:null}get disabled(){return Zg(this,"disabled")}get nextSibling(){const t=this.parent;if(t){const n=t.childNodes.indexOf(this);if(n>-1)return t.childNodes[n+1]}return null}get previousSibling(){const t=this.parent;if(t){const n=t.childNodes.indexOf(this);if(n>-1)return n>0?t.childNodes[n-1]:null}return null}contains(t,n=!0){return(this.childNodes||[]).some(r=>r===t||n&&r.contains(t))}remove(){const t=this.parent;t&&t.removeChild(this)}insertChild(t,n,r){if(!t)throw new Error("InsertChild error: child is required.");if(!(t instanceof Ay)){if(!r){const a=this.getChildren(!0);a.includes(t.data)||(typeof n>"u"||n<0?a.push(t.data):a.splice(n,0,t.data))}Object.assign(t,{parent:this,store:this.store}),t=jt(new Ay(t)),t instanceof Ay&&t.initialize()}t.level=this.level+1,typeof n>"u"||n<0?this.childNodes.push(t):this.childNodes.splice(n,0,t),this.updateLeafState()}insertBefore(t,n){let r;n&&(r=this.childNodes.indexOf(n)),this.insertChild(t,r)}insertAfter(t,n){let r;n&&(r=this.childNodes.indexOf(n),r!==-1&&(r+=1)),this.insertChild(t,r)}removeChild(t){const n=this.getChildren()||[],r=n.indexOf(t.data);r>-1&&n.splice(r,1);const a=this.childNodes.indexOf(t);a>-1&&(this.store&&this.store.deregisterNode(t),t.parent=null,this.childNodes.splice(a,1)),this.updateLeafState()}removeChildByData(t){let n=null;for(let r=0;r<this.childNodes.length;r++)if(this.childNodes[r].data===t){n=this.childNodes[r];break}n&&this.removeChild(n)}expand(t,n){const r=()=>{if(n){let a=this.parent;for(;a.level>0;)a.expanded=!0,a=a.parent}this.expanded=!0,t&&t(),this.childNodes.forEach(a=>{a.canFocus=!0})};this.shouldLoadData()?this.loadData(a=>{Array.isArray(a)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||ky(this),r())}):r()}doCreateChildren(t,n={}){t.forEach(r=>{this.insertChild(Object.assign({data:r},n),void 0,!0)})}collapse(){this.expanded=!1,this.childNodes.forEach(t=>{t.canFocus=!1})}shouldLoadData(){return this.store.lazy===!0&&this.store.load&&!this.loaded}updateLeafState(){if(this.store.lazy===!0&&this.loaded!==!0&&typeof this.isLeafByUser<"u"){this.isLeaf=this.isLeafByUser;return}const t=this.childNodes;if(!this.store.lazy||this.store.lazy===!0&&this.loaded===!0){this.isLeaf=!t||t.length===0;return}this.isLeaf=!1}setChecked(t,n,r,a){if(this.indeterminate=t==="half",this.checked=t===!0,this.store.checkStrictly)return;if(!(this.shouldLoadData()&&!this.store.checkDescendants)){const{all:o,allWithoutDisable:s}=bx(this.childNodes);!this.isLeaf&&!o&&s&&(this.checked=!1,t=!1);const l=()=>{if(n){const u=this.childNodes;for(let d=0,h=u.length;d<h;d++){const v=u[d];a=a||t!==!1;const p=v.disabled?v.checked:a;v.setChecked(p,n,!0,a)}const{half:c,all:f}=bx(u);f||(this.checked=f,this.indeterminate=c)}};if(this.shouldLoadData()){this.loadData(()=>{l(),ky(this)},{checked:t!==!1});return}else l()}const i=this.parent;!i||i.level===0||r||ky(i)}getChildren(t=!1){if(this.level===0)return this.data;const n=this.data;if(!n)return null;const r=this.store.props;let a="children";return r&&(a=r.children||"children"),n[a]===void 0&&(n[a]=null),t&&!n[a]&&(n[a]=[]),n[a]}updateChildren(){const t=this.getChildren()||[],n=this.childNodes.map(i=>i.data),r={},a=[];t.forEach((i,o)=>{const s=i[Lf];!!s&&n.findIndex(u=>u[Lf]===s)>=0?r[s]={index:o,data:i}:a.push({index:o,data:i})}),this.store.lazy||n.forEach(i=>{r[i[Lf]]||this.removeChildByData(i)}),a.forEach(({index:i,data:o})=>{this.insertChild({data:o},i)}),this.updateLeafState()}loadData(t,n={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(n).length)){this.loading=!0;const r=a=>{this.childNodes=[],this.doCreateChildren(a,n),this.loaded=!0,this.loading=!1,this.updateLeafState(),t&&t.call(this,a)};this.store.load(this,r)}else t&&t.call(this)}};class fke{constructor(t){this.currentNode=null,this.currentNodeKey=null;for(const n in t)Nt(t,n)&&(this[n]=t[n]);this.nodesMap={}}initialize(){if(this.root=new _x({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const t=this.load;t(this.root,n=>{this.root.doCreateChildren(n),this._initDefaultCheckedNodes()})}else this._initDefaultCheckedNodes()}filter(t){const n=this.filterNodeMethod,r=this.lazy,a=function(i){const o=i.root?i.root.childNodes:i.childNodes;if(o.forEach(s=>{s.visible=n.call(s,t,s.data,s),a(s)}),!i.visible&&o.length){let s=!0;s=!o.some(l=>l.visible),i.root?i.root.visible=s===!1:i.visible=s===!1}t&&i.visible&&!i.isLeaf&&!r&&i.expand()};a(this)}setData(t){t!==this.root.data?(this.root.setData(t),this._initDefaultCheckedNodes()):this.root.updateChildren()}getNode(t){if(t instanceof _x)return t;const n=Mt(t)?dk(this.key,t):t;return this.nodesMap[n]||null}insertBefore(t,n){const r=this.getNode(n);r.parent.insertBefore({data:t},r)}insertAfter(t,n){const r=this.getNode(n);r.parent.insertAfter({data:t},r)}remove(t){const n=this.getNode(t);n&&n.parent&&(n===this.currentNode&&(this.currentNode=null),n.parent.removeChild(n))}append(t,n){const r=n?this.getNode(n):this.root;r&&r.insertChild({data:t})}_initDefaultCheckedNodes(){const t=this.defaultCheckedKeys||[],n=this.nodesMap;t.forEach(r=>{const a=n[r];a&&a.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(t){(this.defaultCheckedKeys||[]).includes(t.key)&&t.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(t){t!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=t,this._initDefaultCheckedNodes())}registerNode(t){const n=this.key;!t||!t.data||(n?t.key!==void 0&&(this.nodesMap[t.key]=t):this.nodesMap[t.id]=t)}deregisterNode(t){!this.key||!t||!t.data||(t.childNodes.forEach(r=>{this.deregisterNode(r)}),delete this.nodesMap[t.key])}getCheckedNodes(t=!1,n=!1){const r=[],a=function(i){(i.root?i.root.childNodes:i.childNodes).forEach(s=>{(s.checked||n&&s.indeterminate)&&(!t||t&&s.isLeaf)&&r.push(s.data),a(s)})};return a(this),r}getCheckedKeys(t=!1){return this.getCheckedNodes(t).map(n=>(n||{})[this.key])}getHalfCheckedNodes(){const t=[],n=function(r){(r.root?r.root.childNodes:r.childNodes).forEach(i=>{i.indeterminate&&t.push(i.data),n(i)})};return n(this),t}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(t=>(t||{})[this.key])}_getAllNodes(){const t=[],n=this.nodesMap;for(const r in n)Nt(n,r)&&t.push(n[r]);return t}updateChildren(t,n){const r=this.nodesMap[t];if(!r)return;const a=r.childNodes;for(let i=a.length-1;i>=0;i--){const o=a[i];this.remove(o.data)}for(let i=0,o=n.length;i<o;i++){const s=n[i];this.append(s,r.data)}}_setCheckedKeys(t,n=!1,r){const a=this._getAllNodes().sort((s,l)=>l.level-s.level),i=Object.create(null),o=Object.keys(r);a.forEach(s=>s.setChecked(!1,!1));for(let s=0,l=a.length;s<l;s++){const u=a[s],c=u.data[t].toString();if(!o.includes(c)){u.checked&&!i[c]&&u.setChecked(!1,!1);continue}let d=u.parent;for(;d&&d.level>0;)i[d.data[t]]=!0,d=d.parent;if(u.isLeaf||this.checkStrictly){u.setChecked(!0,!1);continue}if(u.setChecked(!0,!0),n){u.setChecked(!1,!1);const h=function(v){v.childNodes.forEach(g=>{g.isLeaf||g.setChecked(!1,!1),h(g)})};h(u)}}}setCheckedNodes(t,n=!1){const r=this.key,a={};t.forEach(i=>{a[(i||{})[r]]=!0}),this._setCheckedKeys(r,n,a)}setCheckedKeys(t,n=!1){this.defaultCheckedKeys=t;const r=this.key,a={};t.forEach(i=>{a[i]=!0}),this._setCheckedKeys(r,n,a)}setDefaultExpandedKeys(t){t=t||[],this.defaultExpandedKeys=t,t.forEach(n=>{const r=this.getNode(n);r&&r.expand(null,this.autoExpandParent)})}setChecked(t,n,r){const a=this.getNode(t);a&&a.setChecked(!!n,r)}getCurrentNode(){return this.currentNode}setCurrentNode(t){const n=this.currentNode;n&&(n.isCurrent=!1),this.currentNode=t,this.currentNode.isCurrent=!0}setUserCurrentNode(t,n=!0){const r=t[this.key],a=this.nodesMap[r];this.setCurrentNode(a),n&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0)}setCurrentNodeKey(t,n=!0){if(t==null){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const r=this.getNode(t);r&&(this.setCurrentNode(r),n&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0))}}const dke=ne({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=Me("tree"),n=Ge("NodeInstance"),r=Ge("RootTree");return()=>{const a=e.node,{data:i,store:o}=a;return e.renderContent?e.renderContent(Ze,{_self:n,node:a,data:i,store:o}):r.ctx.slots.default?r.ctx.slots.default({node:a,data:i}):Ze("span",{class:t.be("node","label")},[a.label])}}});var hke=Pe(dke,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node-content.vue"]]);function S6(e){const t=Ge("TreeNodeMap",null),n={treeNodeExpand:r=>{e.node!==r&&e.node.collapse()},children:[]};return t&&t.children.push(n),Et("TreeNodeMap",n),{broadcastExpanded:r=>{if(e.accordion)for(const a of n.children)a.treeNodeExpand(r)}}}const C6=Symbol("dragEvents");function vke({props:e,ctx:t,el$:n,dropIndicator$:r,store:a}){const i=Me("tree"),o=H({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return Et(C6,{treeNodeDragStart:({event:c,treeNode:f})=>{if(typeof e.allowDrag=="function"&&!e.allowDrag(f.node))return c.preventDefault(),!1;c.dataTransfer.effectAllowed="move";try{c.dataTransfer.setData("text/plain","")}catch{}o.value.draggingNode=f,t.emit("node-drag-start",f.node,c)},treeNodeDragOver:({event:c,treeNode:f})=>{const d=f,h=o.value.dropNode;h&&h.node.id!==d.node.id&&ga(h.$el,i.is("drop-inner"));const v=o.value.draggingNode;if(!v||!d)return;let p=!0,g=!0,m=!0,b=!0;typeof e.allowDrop=="function"&&(p=e.allowDrop(v.node,d.node,"prev"),b=g=e.allowDrop(v.node,d.node,"inner"),m=e.allowDrop(v.node,d.node,"next")),c.dataTransfer.dropEffect=g||p||m?"move":"none",(p||g||m)&&(h==null?void 0:h.node.id)!==d.node.id&&(h&&t.emit("node-drag-leave",v.node,h.node,c),t.emit("node-drag-enter",v.node,d.node,c)),(p||g||m)&&(o.value.dropNode=d),d.node.nextSibling===v.node&&(m=!1),d.node.previousSibling===v.node&&(p=!1),d.node.contains(v.node,!1)&&(g=!1),(v.node===d.node||v.node.contains(d.node))&&(p=!1,g=!1,m=!1);const _=d.$el.querySelector(`.${i.be("node","content")}`).getBoundingClientRect(),w=n.value.getBoundingClientRect();let C;const S=p?g?.25:m?.45:1:-1,x=m?g?.75:p?.55:0:1;let T=-9999;const M=c.clientY-_.top;M<_.height*S?C="before":M>_.height*x?C="after":g?C="inner":C="none";const A=d.$el.querySelector(`.${i.be("node","expand-icon")}`).getBoundingClientRect(),k=r.value;C==="before"?T=A.top-w.top:C==="after"&&(T=A.bottom-w.top),k.style.top=`${T}px`,k.style.left=`${A.right-w.left}px`,C==="inner"?lo(d.$el,i.is("drop-inner")):ga(d.$el,i.is("drop-inner")),o.value.showDropIndicator=C==="before"||C==="after",o.value.allowDrop=o.value.showDropIndicator||b,o.value.dropType=C,t.emit("node-drag-over",v.node,d.node,c)},treeNodeDragEnd:c=>{const{draggingNode:f,dropType:d,dropNode:h}=o.value;if(c.preventDefault(),c.dataTransfer.dropEffect="move",f&&h){const v={data:f.node.data};d!=="none"&&f.node.remove(),d==="before"?h.node.parent.insertBefore(v,h.node):d==="after"?h.node.parent.insertAfter(v,h.node):d==="inner"&&h.node.insertChild(v),d!=="none"&&a.value.registerNode(v),ga(h.$el,i.is("drop-inner")),t.emit("node-drag-end",f.node,h.node,d,c),d!=="none"&&t.emit("node-drop",f.node,h.node,d,c)}f&&!h&&t.emit("node-drag-end",f.node,null,d,c),o.value.showDropIndicator=!1,o.value.draggingNode=null,o.value.dropNode=null,o.value.allowDrop=!0}}),{dragState:o}}const pke=ne({name:"ElTreeNode",components:{ElCollapseTransition:i1,ElCheckbox:li,NodeContent:hke,ElIcon:Ke,Loading:kl},props:{node:{type:_x,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:{type:Boolean,default:!1}},emits:["node-expand"],setup(e,t){const n=Me("tree"),{broadcastExpanded:r}=S6(e),a=Ge("RootTree"),i=H(!1),o=H(!1),s=H(null),l=H(null),u=H(null),c=Ge(C6),f=gt();Et("NodeInstance",f),e.node.expanded&&(i.value=!0,o.value=!0);const d=a.props.props.children||"children";xe(()=>{const M=e.node.data[d];return M&&[...M]},()=>{e.node.updateChildren()}),xe(()=>e.node.indeterminate,M=>{p(e.node.checked,M)}),xe(()=>e.node.checked,M=>{p(M,e.node.indeterminate)}),xe(()=>e.node.expanded,M=>{Ue(()=>i.value=M),M&&(o.value=!0)});const h=M=>dk(a.props.nodeKey,M.data),v=M=>{const A=e.props.class;if(!A)return{};let k;if(it(A)){const{data:E}=M;k=A(E,M)}else k=A;return lt(k)?{[k]:!0}:k},p=(M,A)=>{(s.value!==M||l.value!==A)&&a.ctx.emit("check-change",e.node.data,M,A),s.value=M,l.value=A},g=M=>{yx(a.store,a.ctx.emit,()=>a.store.value.setCurrentNode(e.node)),a.currentNode.value=e.node,a.props.expandOnClickNode&&b(),a.props.checkOnClickNode&&!e.node.disabled&&_(null,{target:{checked:!e.node.checked}}),a.ctx.emit("node-click",e.node.data,e.node,f,M)},m=M=>{a.instance.vnode.props.onNodeContextmenu&&(M.stopPropagation(),M.preventDefault()),a.ctx.emit("node-contextmenu",M,e.node.data,e.node,f)},b=()=>{e.node.isLeaf||(i.value?(a.ctx.emit("node-collapse",e.node.data,e.node,f),e.node.collapse()):(e.node.expand(),t.emit("node-expand",e.node.data,e.node,f)))},_=(M,A)=>{e.node.setChecked(A.target.checked,!a.props.checkStrictly),Ue(()=>{const k=a.store.value;a.ctx.emit("check",e.node.data,{checkedNodes:k.getCheckedNodes(),checkedKeys:k.getCheckedKeys(),halfCheckedNodes:k.getHalfCheckedNodes(),halfCheckedKeys:k.getHalfCheckedKeys()})})};return{ns:n,node$:u,tree:a,expanded:i,childNodeRendered:o,oldChecked:s,oldIndeterminate:l,getNodeKey:h,getNodeClass:v,handleSelectChange:p,handleClick:g,handleContextMenu:m,handleExpandIconClick:b,handleCheckChange:_,handleChildNodeExpand:(M,A,k)=>{r(A),a.ctx.emit("node-expand",M,A,k)},handleDragStart:M=>{a.props.draggable&&c.treeNodeDragStart({event:M,treeNode:e})},handleDragOver:M=>{M.preventDefault(),a.props.draggable&&c.treeNodeDragOver({event:M,treeNode:{$el:u.value,node:e.node}})},handleDrop:M=>{M.preventDefault()},handleDragEnd:M=>{a.props.draggable&&c.treeNodeDragEnd(M)},CaretRight:V5}}}),gke=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],mke=["aria-expanded"];function yke(e,t,n,r,a,i){const o=ct("el-icon"),s=ct("el-checkbox"),l=ct("loading"),u=ct("node-content"),c=ct("el-tree-node"),f=ct("el-collapse-transition");return dt((R(),K("div",{ref:"node$",class:V([e.ns.b("node"),e.ns.is("expanded",e.expanded),e.ns.is("current",e.node.isCurrent),e.ns.is("hidden",!e.node.visible),e.ns.is("focusable",!e.node.disabled),e.ns.is("checked",!e.node.disabled&&e.node.checked),e.getNodeClass(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.node.disabled,"aria-checked":e.node.checked,draggable:e.tree.props.draggable,"data-key":e.getNodeKey(e.node),onClick:t[1]||(t[1]=tt((...d)=>e.handleClick&&e.handleClick(...d),["stop"])),onContextmenu:t[2]||(t[2]=(...d)=>e.handleContextMenu&&e.handleContextMenu(...d)),onDragstart:t[3]||(t[3]=tt((...d)=>e.handleDragStart&&e.handleDragStart(...d),["stop"])),onDragover:t[4]||(t[4]=tt((...d)=>e.handleDragOver&&e.handleDragOver(...d),["stop"])),onDragend:t[5]||(t[5]=tt((...d)=>e.handleDragEnd&&e.handleDragEnd(...d),["stop"])),onDrop:t[6]||(t[6]=tt((...d)=>e.handleDrop&&e.handleDrop(...d),["stop"]))},[Y("div",{class:V(e.ns.be("node","content")),style:Ye({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?(R(),ce(o,{key:0,class:V([e.ns.be("node","expand-icon"),e.ns.is("leaf",e.node.isLeaf),{expanded:!e.node.isLeaf&&e.expanded}]),onClick:tt(e.handleExpandIconClick,["stop"])},{default:re(()=>[(R(),ce(Ct(e.tree.props.icon||e.CaretRight)))]),_:1},8,["class","onClick"])):se("v-if",!0),e.showCheckbox?(R(),ce(s,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:t[0]||(t[0]=tt(()=>{},["stop"])),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):se("v-if",!0),e.node.loading?(R(),ce(o,{key:2,class:V([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:re(()=>[q(l)]),_:1},8,["class"])):se("v-if",!0),q(u,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),q(f,null,{default:re(()=>[!e.renderAfterExpand||e.childNodeRendered?dt((R(),K("div",{key:0,class:V(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded},[(R(!0),K(je,null,Ot(e.node.childNodes,d=>(R(),ce(c,{key:e.getNodeKey(d),"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,node:d,accordion:e.accordion,props:e.props,onNodeExpand:e.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,mke)),[[Kt,e.expanded]]):se("v-if",!0)]),_:1})],42,gke)),[[Kt,e.node.visible]])}var bke=Pe(pke,[["render",yke],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node.vue"]]);function _ke({el$:e},t){const n=Me("tree"),r=un([]),a=un([]);yt(()=>{o()}),cs(()=>{r.value=Array.from(e.value.querySelectorAll("[role=treeitem]")),a.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"))}),xe(a,s=>{s.forEach(l=>{l.setAttribute("tabindex","-1")})}),bn(e,"keydown",s=>{const l=s.target;if(!l.className.includes(n.b("node")))return;const u=s.code;r.value=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`));const c=r.value.indexOf(l);let f;if([Xe.up,Xe.down].includes(u)){if(s.preventDefault(),u===Xe.up){f=c===-1?0:c!==0?c-1:r.value.length-1;const h=f;for(;!t.value.getNode(r.value[f].dataset.key).canFocus;){if(f--,f===h){f=-1;break}f<0&&(f=r.value.length-1)}}else{f=c===-1?0:c<r.value.length-1?c+1:0;const h=f;for(;!t.value.getNode(r.value[f].dataset.key).canFocus;){if(f++,f===h){f=-1;break}f>=r.value.length&&(f=0)}}f!==-1&&r.value[f].focus()}[Xe.left,Xe.right].includes(u)&&(s.preventDefault(),l.click());const d=l.querySelector('[type="checkbox"]');[Xe.enter,Xe.space].includes(u)&&d&&(s.preventDefault(),d.click())});const o=()=>{var s;r.value=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`)),a.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"));const l=e.value.querySelectorAll(`.${n.is("checked")}[role=treeitem]`);if(l.length){l[0].setAttribute("tabindex","0");return}(s=r.value[0])==null||s.setAttribute("tabindex","0")}}const wke=ne({name:"ElTree",components:{ElTreeNode:bke},props:{data:{type:Array,default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkDescendants:{type:Boolean,default:!1},autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:Function,showCheckbox:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},allowDrag:Function,allowDrop:Function,props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:{type:Boolean,default:!1},highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},icon:{type:fn}},emits:["check-change","current-change","node-click","node-contextmenu","node-collapse","node-expand","check","node-drag-start","node-drag-end","node-drop","node-drag-leave","node-drag-enter","node-drag-over"],setup(e,t){const{t:n}=Ht(),r=Me("tree"),a=H(new fke({key:e.nodeKey,data:e.data,lazy:e.lazy,props:e.props,load:e.load,currentNodeKey:e.currentNodeKey,checkStrictly:e.checkStrictly,checkDescendants:e.checkDescendants,defaultCheckedKeys:e.defaultCheckedKeys,defaultExpandedKeys:e.defaultExpandedKeys,autoExpandParent:e.autoExpandParent,defaultExpandAll:e.defaultExpandAll,filterNodeMethod:e.filterNodeMethod}));a.value.initialize();const i=H(a.value.root),o=H(null),s=H(null),l=H(null),{broadcastExpanded:u}=S6(e),{dragState:c}=vke({props:e,ctx:t,el$:s,dropIndicator$:l,store:a});_ke({el$:s},a);const f=P(()=>{const{childNodes:O}=i.value;return!O||O.length===0||O.every(({visible:$})=>!$)});xe(()=>e.currentNodeKey,O=>{a.value.setCurrentNodeKey(O)}),xe(()=>e.defaultCheckedKeys,O=>{a.value.setDefaultCheckedKey(O)}),xe(()=>e.defaultExpandedKeys,O=>{a.value.setDefaultExpandedKeys(O)}),xe(()=>e.data,O=>{a.value.setData(O)},{deep:!0}),xe(()=>e.checkStrictly,O=>{a.value.checkStrictly=O});const d=O=>{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");a.value.filter(O)},h=O=>dk(e.nodeKey,O.data),v=O=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const $=a.value.getNode(O);if(!$)return[];const I=[$.data];let z=$.parent;for(;z&&z!==i.value;)I.push(z.data),z=z.parent;return I.reverse()},p=(O,$)=>a.value.getCheckedNodes(O,$),g=O=>a.value.getCheckedKeys(O),m=()=>{const O=a.value.getCurrentNode();return O?O.data:null},b=()=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const O=m();return O?O[e.nodeKey]:null},_=(O,$)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");a.value.setCheckedNodes(O,$)},w=(O,$)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");a.value.setCheckedKeys(O,$)},C=(O,$,I)=>{a.value.setChecked(O,$,I)},S=()=>a.value.getHalfCheckedNodes(),x=()=>a.value.getHalfCheckedKeys(),T=(O,$=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");yx(a,t.emit,()=>a.value.setUserCurrentNode(O,$))},M=(O,$=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");yx(a,t.emit,()=>a.value.setCurrentNodeKey(O,$))},A=O=>a.value.getNode(O),k=O=>{a.value.remove(O)},E=(O,$)=>{a.value.append(O,$)},D=(O,$)=>{a.value.insertBefore(O,$)},L=(O,$)=>{a.value.insertAfter(O,$)},B=(O,$,I)=>{u($),t.emit("node-expand",O,$,I)},N=(O,$)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");a.value.updateChildren(O,$)};return Et("RootTree",{ctx:t,props:e,store:a,root:i,currentNode:o,instance:gt()}),Et(So,void 0),{ns:r,store:a,root:i,currentNode:o,dragState:c,el$:s,dropIndicator$:l,isEmpty:f,filter:d,getNodeKey:h,getNodePath:v,getCheckedNodes:p,getCheckedKeys:g,getCurrentNode:m,getCurrentKey:b,setCheckedNodes:_,setCheckedKeys:w,setChecked:C,getHalfCheckedNodes:S,getHalfCheckedKeys:x,setCurrentNode:T,setCurrentKey:M,t:n,getNode:A,remove:k,append:E,insertBefore:D,insertAfter:L,handleNodeExpand:B,updateKeyChildren:N}}});function Ske(e,t,n,r,a,i){const o=ct("el-tree-node");return R(),K("div",{ref:"el$",class:V([e.ns.b(),e.ns.is("dragging",!!e.dragState.draggingNode),e.ns.is("drop-not-allow",!e.dragState.allowDrop),e.ns.is("drop-inner",e.dragState.dropType==="inner"),{[e.ns.m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[(R(!0),K(je,null,Ot(e.root.childNodes,s=>(R(),ce(o,{key:e.getNodeKey(s),node:s,props:e.props,accordion:e.accordion,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent,onNodeExpand:e.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),e.isEmpty?(R(),K("div",{key:0,class:V(e.ns.e("empty-block"))},[_e(e.$slots,"empty",{},()=>{var s;return[Y("span",{class:V(e.ns.e("empty-text"))},De((s=e.emptyText)!=null?s:e.t("el.tree.emptyText")),3)]})],2)):se("v-if",!0),dt(Y("div",{ref:"dropIndicator$",class:V(e.ns.e("drop-indicator"))},null,2),[[Kt,e.dragState.showDropIndicator]])],2)}var Ey=Pe(wke,[["render",Ske],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree.vue"]]);Ey.install=e=>{e.component(Ey.name,Ey)};const C0=Ey,Cke=C0,xke=(e,{attrs:t},{tree:n,key:r})=>{const a=Me("tree-select"),i={...Ho(or(e),Object.keys(sc.props)),...t,valueKey:r,popperClass:P(()=>{const o=[a.e("popper")];return e.popperClass&&o.push(e.popperClass),o.join(" ")}),filterMethod:(o="")=>{e.filterMethod&&e.filterMethod(o),Ue(()=>{var s;(s=n.value)==null||s.filter(o)})},onVisibleChange:o=>{var s;(s=t.onVisibleChange)==null||s.call(t,o),e.filterable&&o&&i.filterMethod()}};return i},Tke=ne({extends:p0,setup(e,t){const n=p0.setup(e,t);delete n.selectOptionClick;const r=gt().proxy;return Ue(()=>{n.select.cachedOptions.get(r.value)||n.select.onOptionCreate(r)}),n},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function Sx(e){return e||e===0}function hk(e){return Array.isArray(e)&&e.length}function ah(e){return Array.isArray(e)?e:Sx(e)?[e]:[]}function Iy(e,t,n,r,a){for(let i=0;i<e.length;i++){const o=e[i];if(t(o,i,e,a))return r?r(o,i,e,a):o;{const s=n(o);if(hk(s)){const l=Iy(s,t,n,r,o);if(l)return l}}}}function x6(e,t,n,r){for(let a=0;a<e.length;a++){const i=e[a];t(i,a,e,r);const o=n(i);hk(o)&&x6(o,t,n,i)}}const Mke=(e,{attrs:t,slots:n,emit:r},{select:a,tree:i,key:o})=>{xe(()=>e.modelValue,()=>{e.showCheckbox&&Ue(()=>{const d=i.value;d&&!pa(d.getCheckedKeys(),ah(e.modelValue))&&d.setCheckedKeys(ah(e.modelValue))})},{immediate:!0,deep:!0});const s=P(()=>({value:o.value,label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",...e.props})),l=(d,h)=>{var v;const p=s.value[d];return it(p)?p(h,(v=i.value)==null?void 0:v.getNode(l("value",h))):h[p]},u=ah(e.modelValue).map(d=>Iy(e.data||[],h=>l("value",h)===d,h=>l("children",h),(h,v,p,g)=>g&&l("value",g))).filter(d=>Sx(d)),c=P(()=>{if(!e.renderAfterExpand&&!e.lazy)return[];const d=[];return x6(e.data.concat(e.cacheData),h=>{const v=l("value",h);d.push({value:v,currentLabel:l("label",h),isDisabled:l("disabled",h)})},h=>l("children",h)),d}),f=P(()=>c.value.reduce((d,h)=>({...d,[h.value]:h}),{}));return{...Ho(or(e),Object.keys(C0.props)),...t,nodeKey:o,expandOnClickNode:P(()=>!e.checkStrictly&&e.expandOnClickNode),defaultExpandedKeys:P(()=>e.defaultExpandedKeys?e.defaultExpandedKeys.concat(u):u),renderContent:(d,{node:h,data:v,store:p})=>d(Tke,{value:l("value",v),label:l("label",v),disabled:l("disabled",v)},e.renderContent?()=>e.renderContent(d,{node:h,data:v,store:p}):n.default?()=>n.default({node:h,data:v,store:p}):void 0),filterNodeMethod:(d,h,v)=>{var p;return e.filterNodeMethod?e.filterNodeMethod(d,h,v):d?(p=l("label",h))==null?void 0:p.includes(d):!0},onNodeClick:(d,h,v)=>{var p,g,m;if((p=t.onNodeClick)==null||p.call(t,d,h,v),!(e.showCheckbox&&e.checkOnClickNode))if(!e.showCheckbox&&(e.checkStrictly||h.isLeaf)){if(!l("disabled",d)){const b=(g=a.value)==null?void 0:g.options.get(l("value",d));(m=a.value)==null||m.handleOptionSelect(b)}}else e.expandOnClickNode&&v.proxy.handleExpandIconClick()},onCheck:(d,h)=>{if(!e.showCheckbox)return;const v=l("value",d),p=h.checkedKeys,g=e.multiple?ah(e.modelValue).filter(b=>b in f.value&&!i.value.getNode(b)&&!p.includes(b)):[],m=p.concat(g);if(e.checkStrictly)r(wt,e.multiple?m:m.includes(v)?v:void 0);else if(e.multiple)r(wt,i.value.getCheckedKeys(!0));else{const b=Iy([d],C=>!hk(l("children",C))&&!l("disabled",C),C=>l("children",C)),_=b?l("value",b):void 0,w=Sx(e.modelValue)&&!!Iy([d],C=>l("value",C)===e.modelValue,C=>l("children",C));r(wt,_===e.modelValue||w?void 0:_)}Ue(()=>{var b;const _=ah(e.modelValue);i.value.setCheckedKeys(_),(b=t.onCheck)==null||b.call(t,d,{checkedKeys:i.value.getCheckedKeys(),checkedNodes:i.value.getCheckedNodes(),halfCheckedKeys:i.value.getHalfCheckedKeys(),halfCheckedNodes:i.value.getHalfCheckedNodes()})})},cacheOptions:c}};var kke=ne({props:{data:{type:Array,default:()=>[]}},setup(e){const t=Ge(ng);return xe(()=>e.data,()=>{var n;e.data.forEach(a=>{t.cachedOptions.has(a.value)||t.cachedOptions.set(a.value,a)});const r=((n=t.selectWrapper)==null?void 0:n.querySelectorAll("input"))||[];Array.from(r).includes(document.activeElement)||t.setSelected()},{flush:"post",immediate:!0}),()=>{}}});const Ake=ne({name:"ElTreeSelect",inheritAttrs:!1,props:{...sc.props,...C0.props,cacheData:{type:Array,default:()=>[]}},setup(e,t){const{slots:n,expose:r}=t,a=H(),i=H(),o=P(()=>e.nodeKey||e.valueKey||"value"),s=xke(e,t,{select:a,tree:i,key:o}),{cacheOptions:l,...u}=Mke(e,t,{select:a,tree:i,key:o}),c=jt({});return r(c),yt(()=>{Object.assign(c,{...Ho(i.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...Ho(a.value,["focus","blur"])})}),()=>Ze(sc,jt({...s,ref:f=>a.value=f}),{...n,default:()=>[Ze(kke,{data:l.value}),Ze(C0,jt({...u,ref:f=>i.value=f}))]})}});var Dy=Pe(Ake,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-select/src/tree-select.vue"]]);Dy.install=e=>{e.component(Dy.name,Dy)};const Eke=Dy,Ike=Eke,vk=Symbol(),Dke={key:-1,level:-1,data:{}};var Nh=(e=>(e.KEY="id",e.LABEL="label",e.CHILDREN="children",e.DISABLED="disabled",e))(Nh||{}),Cx=(e=>(e.ADD="add",e.DELETE="delete",e))(Cx||{});const T6={type:Number,default:26},Pke=Le({data:{type:ue(Array),default:()=>Cn([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:ue(Object),default:()=>Cn({children:"children",label:"label",disabled:"disabled",value:"id"})},highlightCurrent:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},defaultCheckedKeys:{type:ue(Array),default:()=>Cn([])},checkStrictly:{type:Boolean,default:!1},defaultExpandedKeys:{type:ue(Array),default:()=>Cn([])},indent:{type:Number,default:16},itemSize:T6,icon:{type:fn},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:{type:Boolean,default:!1},currentNodeKey:{type:ue([String,Number])},accordion:{type:Boolean,default:!1},filterMethod:{type:ue(Function)},perfMode:{type:Boolean,default:!0}}),Lke=Le({node:{type:ue(Object),default:()=>Cn(Dke)},expanded:{type:Boolean,default:!1},checked:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},current:{type:Boolean,default:!1},hiddenExpandIcon:{type:Boolean,default:!1},itemSize:T6}),Rke=Le({node:{type:ue(Object),required:!0}}),M6="node-click",k6="node-expand",A6="node-collapse",E6="current-change",I6="check",D6="check-change",P6="node-contextmenu",Oke={[M6]:(e,t,n)=>e&&t&&n,[k6]:(e,t)=>e&&t,[A6]:(e,t)=>e&&t,[E6]:(e,t)=>e&&t,[I6]:(e,t)=>e&&t,[D6]:(e,t)=>e&&typeof t=="boolean",[P6]:(e,t,n)=>e&&t&&n},$ke={click:(e,t)=>!!(e&&t),toggle:e=>!!e,check:(e,t)=>e&&typeof t=="boolean"};function Nke(e,t){const n=H(new Set),r=H(new Set),{emit:a}=gt();xe([()=>t.value,()=>e.defaultCheckedKeys],()=>Ue(()=>{b(e.defaultCheckedKeys)}),{immediate:!0});const i=()=>{if(!t.value||!e.showCheckbox||e.checkStrictly)return;const{levelTreeNodeMap:_,maxLevel:w}=t.value,C=n.value,S=new Set;for(let x=w-1;x>=1;--x){const T=_.get(x);T&&T.forEach(M=>{const A=M.children;if(A){let k=!0,E=!1;for(const D of A){const L=D.key;if(C.has(L))E=!0;else if(S.has(L)){k=!1,E=!0;break}else k=!1}k?C.add(M.key):E?(S.add(M.key),C.delete(M.key)):(C.delete(M.key),S.delete(M.key))}})}r.value=S},o=_=>n.value.has(_.key),s=_=>r.value.has(_.key),l=(_,w,C=!0)=>{const S=n.value,x=(T,M)=>{S[M?Cx.ADD:Cx.DELETE](T.key);const A=T.children;!e.checkStrictly&&A&&A.forEach(k=>{k.disabled||x(k,M)})};x(_,w),i(),C&&u(_,w)},u=(_,w)=>{const{checkedNodes:C,checkedKeys:S}=v(),{halfCheckedNodes:x,halfCheckedKeys:T}=p();a(I6,_.data,{checkedKeys:S,checkedNodes:C,halfCheckedKeys:T,halfCheckedNodes:x}),a(D6,_.data,w)};function c(_=!1){return v(_).checkedKeys}function f(_=!1){return v(_).checkedNodes}function d(){return p().halfCheckedKeys}function h(){return p().halfCheckedNodes}function v(_=!1){const w=[],C=[];if(t!=null&&t.value&&e.showCheckbox){const{treeNodeMap:S}=t.value;n.value.forEach(x=>{const T=S.get(x);T&&(!_||_&&T.isLeaf)&&(C.push(x),w.push(T.data))})}return{checkedKeys:C,checkedNodes:w}}function p(){const _=[],w=[];if(t!=null&&t.value&&e.showCheckbox){const{treeNodeMap:C}=t.value;r.value.forEach(S=>{const x=C.get(S);x&&(w.push(S),_.push(x.data))})}return{halfCheckedNodes:_,halfCheckedKeys:w}}function g(_){n.value.clear(),r.value.clear(),b(_)}function m(_,w){if(t!=null&&t.value&&e.showCheckbox){const C=t.value.treeNodeMap.get(_);C&&l(C,w,!1)}}function b(_){if(t!=null&&t.value){const{treeNodeMap:w}=t.value;if(e.showCheckbox&&w&&_)for(const C of _){const S=w.get(C);S&&!o(S)&&l(S,!0,!1)}}}return{updateCheckedKeys:i,toggleCheckbox:l,isChecked:o,isIndeterminate:s,getCheckedKeys:c,getCheckedNodes:f,getHalfCheckedKeys:d,getHalfCheckedNodes:h,setChecked:m,setCheckedKeys:g}}function Bke(e,t){const n=H(new Set([])),r=H(new Set([])),a=P(()=>it(e.filterMethod));function i(s){var l;if(!a.value)return;const u=new Set,c=r.value,f=n.value,d=[],h=((l=t.value)==null?void 0:l.treeNodes)||[],v=e.filterMethod;f.clear();function p(g){g.forEach(m=>{d.push(m),v!=null&&v(s,m.data)?d.forEach(_=>{u.add(_.key)}):m.isLeaf&&f.add(m.key);const b=m.children;if(b&&p(b),!m.isLeaf){if(!u.has(m.key))f.add(m.key);else if(b){let _=!0;for(const w of b)if(!f.has(w.key)){_=!1;break}_?c.add(m.key):c.delete(m.key)}}d.pop()})}return p(h),u}function o(s){return r.value.has(s.key)}return{hiddenExpandIconKeySet:r,hiddenNodeKeySet:n,doFilter:i,isForceHiddenExpandIcon:o}}function Vke(e,t){const n=H(new Set(e.defaultExpandedKeys)),r=H(),a=un();xe(()=>e.currentNodeKey,j=>{r.value=j},{immediate:!0}),xe(()=>e.data,j=>{Q(j)},{immediate:!0});const{isIndeterminate:i,isChecked:o,toggleCheckbox:s,getCheckedKeys:l,getCheckedNodes:u,getHalfCheckedKeys:c,getHalfCheckedNodes:f,setChecked:d,setCheckedKeys:h}=Nke(e,a),{doFilter:v,hiddenNodeKeySet:p,isForceHiddenExpandIcon:g}=Bke(e,a),m=P(()=>{var j;return((j=e.props)==null?void 0:j.value)||Nh.KEY}),b=P(()=>{var j;return((j=e.props)==null?void 0:j.children)||Nh.CHILDREN}),_=P(()=>{var j;return((j=e.props)==null?void 0:j.disabled)||Nh.DISABLED}),w=P(()=>{var j;return((j=e.props)==null?void 0:j.label)||Nh.LABEL}),C=P(()=>{const j=n.value,de=p.value,ve=[],ie=a.value&&a.value.treeNodes||[];function W(){const X=[];for(let oe=ie.length-1;oe>=0;--oe)X.push(ie[oe]);for(;X.length;){const oe=X.pop();if(oe&&(de.has(oe.key)||ve.push(oe),j.has(oe.key))){const pe=oe.children;if(pe){const Se=pe.length;for(let me=Se-1;me>=0;--me)X.push(pe[me])}}}}return W(),ve}),S=P(()=>C.value.length>0);function x(j){const de=new Map,ve=new Map;let ie=1;function W(oe,pe=1,Se=void 0){var me;const Ee=[];for(const Ce of oe){const we=A(Ce),Te={level:pe,key:we,data:Ce};Te.label=E(Ce),Te.parent=Se;const $e=M(Ce);Te.disabled=k(Ce),Te.isLeaf=!$e||$e.length===0,$e&&$e.length&&(Te.children=W($e,pe+1,Te)),Ee.push(Te),de.set(we,Te),ve.has(pe)||ve.set(pe,[]),(me=ve.get(pe))==null||me.push(Te)}return pe>ie&&(ie=pe),Ee}const X=W(j);return{treeNodeMap:de,levelTreeNodeMap:ve,maxLevel:ie,treeNodes:X}}function T(j){const de=v(j);de&&(n.value=de)}function M(j){return j[b.value]}function A(j){return j?j[m.value]:""}function k(j){return j[_.value]}function E(j){return j[w.value]}function D(j){n.value.has(j.key)?I(j):$(j)}function L(j){n.value=new Set(j)}function B(j,de){t(M6,j.data,j,de),N(j),e.expandOnClickNode&&D(j),e.showCheckbox&&e.checkOnClickNode&&!j.disabled&&s(j,!o(j),!0)}function N(j){U(j)||(r.value=j.key,t(E6,j.data,j))}function O(j,de){s(j,de)}function $(j){const de=n.value;if(a.value&&e.accordion){const{treeNodeMap:ve}=a.value;de.forEach(ie=>{const W=ve.get(ie);j&&j.level===(W==null?void 0:W.level)&&de.delete(ie)})}de.add(j.key),t(k6,j.data,j)}function I(j){n.value.delete(j.key),t(A6,j.data,j)}function z(j){return n.value.has(j.key)}function G(j){return!!j.disabled}function U(j){const de=r.value;return de!==void 0&&de===j.key}function Z(){var j,de;if(r.value)return(de=(j=a.value)==null?void 0:j.treeNodeMap.get(r.value))==null?void 0:de.data}function ae(){return r.value}function J(j){r.value=j}function Q(j){Ue(()=>a.value=x(j))}function ee(j){var de;const ve=Mt(j)?A(j):j;return(de=a.value)==null?void 0:de.treeNodeMap.get(ve)}return{tree:a,flattenTree:C,isNotEmpty:S,getKey:A,getChildren:M,toggleExpand:D,toggleCheckbox:s,isExpanded:z,isChecked:o,isIndeterminate:i,isDisabled:G,isCurrent:U,isForceHiddenExpandIcon:g,handleNodeClick:B,handleNodeCheck:O,getCurrentNode:Z,getCurrentKey:ae,setCurrentKey:J,getCheckedKeys:l,getCheckedNodes:u,getHalfCheckedKeys:c,getHalfCheckedNodes:f,setChecked:d,setCheckedKeys:h,filter:T,setData:Q,getNode:ee,expandNode:$,collapseNode:I,setExpandedKeys:L}}var zke=ne({name:"ElTreeNodeContent",props:Rke,setup(e){const t=Ge(vk),n=Me("tree");return()=>{const r=e.node,{data:a}=r;return t!=null&&t.ctx.slots.default?t.ctx.slots.default({node:r,data:a}):Ze("span",{class:n.be("node","label")},[r==null?void 0:r.label])}}});const Fke=["aria-expanded","aria-disabled","aria-checked","data-key","onClick"],Hke=ne({name:"ElTreeNode"}),Gke=ne({...Hke,props:Lke,emits:$ke,setup(e,{emit:t}){const n=e,r=Ge(vk),a=Me("tree"),i=P(()=>{var f;return(f=r==null?void 0:r.props.indent)!=null?f:16}),o=P(()=>{var f;return(f=r==null?void 0:r.props.icon)!=null?f:V5}),s=f=>{t("click",n.node,f)},l=()=>{t("toggle",n.node)},u=f=>{t("check",n.node,f)},c=f=>{var d,h,v,p;(v=(h=(d=r==null?void 0:r.instance)==null?void 0:d.vnode)==null?void 0:h.props)!=null&&v.onNodeContextmenu&&(f.stopPropagation(),f.preventDefault()),r==null||r.ctx.emit(P6,f,(p=n.node)==null?void 0:p.data,n.node)};return(f,d)=>{var h,v,p;return R(),K("div",{ref:"node$",class:V([y(a).b("node"),y(a).is("expanded",f.expanded),y(a).is("current",f.current),y(a).is("focusable",!f.disabled),y(a).is("checked",!f.disabled&&f.checked)]),role:"treeitem",tabindex:"-1","aria-expanded":f.expanded,"aria-disabled":f.disabled,"aria-checked":f.checked,"data-key":(h=f.node)==null?void 0:h.key,onClick:tt(s,["stop"]),onContextmenu:c},[Y("div",{class:V(y(a).be("node","content")),style:Ye({paddingLeft:`${(f.node.level-1)*y(i)}px`,height:f.itemSize+"px"})},[y(o)?(R(),ce(y(Ke),{key:0,class:V([y(a).is("leaf",!!((v=f.node)!=null&&v.isLeaf)),y(a).is("hidden",f.hiddenExpandIcon),{expanded:!((p=f.node)!=null&&p.isLeaf)&&f.expanded},y(a).be("node","expand-icon")]),onClick:tt(l,["stop"])},{default:re(()=>[(R(),ce(Ct(y(o))))]),_:1},8,["class","onClick"])):se("v-if",!0),f.showCheckbox?(R(),ce(y(li),{key:1,"model-value":f.checked,indeterminate:f.indeterminate,disabled:f.disabled,onChange:u,onClick:d[0]||(d[0]=tt(()=>{},["stop"]))},null,8,["model-value","indeterminate","disabled"])):se("v-if",!0),q(y(zke),{node:f.node},null,8,["node"])],6)],42,Fke)}}});var Wke=Pe(Gke,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree-node.vue"]]);const Kke=ne({name:"ElTreeV2"}),Uke=ne({...Kke,props:Pke,emits:Oke,setup(e,{expose:t,emit:n}){const r=e,a=Mr(),i=P(()=>r.itemSize);Et(vk,{ctx:{emit:n,slots:a},props:r,instance:gt()}),Et(So,void 0);const{t:o}=Ht(),s=Me("tree"),{flattenTree:l,isNotEmpty:u,toggleExpand:c,isExpanded:f,isIndeterminate:d,isChecked:h,isDisabled:v,isCurrent:p,isForceHiddenExpandIcon:g,handleNodeClick:m,handleNodeCheck:b,toggleCheckbox:_,getCurrentNode:w,getCurrentKey:C,setCurrentKey:S,getCheckedKeys:x,getCheckedNodes:T,getHalfCheckedKeys:M,getHalfCheckedNodes:A,setChecked:k,setCheckedKeys:E,filter:D,setData:L,getNode:B,expandNode:N,collapseNode:O,setExpandedKeys:$}=Vke(r,n);return t({toggleCheckbox:_,getCurrentNode:w,getCurrentKey:C,setCurrentKey:S,getCheckedKeys:x,getCheckedNodes:T,getHalfCheckedKeys:M,getHalfCheckedNodes:A,setChecked:k,setCheckedKeys:E,filter:D,setData:L,getNode:B,expandNode:N,collapseNode:O,setExpandedKeys:$}),(I,z)=>{var G;return R(),K("div",{class:V([y(s).b(),{[y(s).m("highlight-current")]:I.highlightCurrent}]),role:"tree"},[y(u)?(R(),ce(y(B8),{key:0,"class-name":y(s).b("virtual-list"),data:y(l),total:y(l).length,height:I.height,"item-size":y(i),"perf-mode":I.perfMode},{default:re(({data:U,index:Z,style:ae})=>[(R(),ce(Wke,{key:U[Z].key,style:Ye(ae),node:U[Z],expanded:y(f)(U[Z]),"show-checkbox":I.showCheckbox,checked:y(h)(U[Z]),indeterminate:y(d)(U[Z]),"item-size":y(i),disabled:y(v)(U[Z]),current:y(p)(U[Z]),"hidden-expand-icon":y(g)(U[Z]),onClick:y(m),onToggle:y(c),onCheck:y(b)},null,8,["style","node","expanded","show-checkbox","checked","indeterminate","item-size","disabled","current","hidden-expand-icon","onClick","onToggle","onCheck"]))]),_:1},8,["class-name","data","total","height","item-size","perf-mode"])):(R(),K("div",{key:1,class:V(y(s).e("empty-block"))},[Y("span",{class:V(y(s).e("empty-text"))},De((G=I.emptyText)!=null?G:y(o)("el.tree.emptyText")),3)],2))],2)}}});var Yke=Pe(Uke,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree.vue"]]);const jke=_t(Yke),L6=Symbol("uploadContextKey"),qke="ElUpload";class Xke extends Error{constructor(t,n,r,a){super(t),this.name="UploadAjaxError",this.status=n,this.method=r,this.url=a}}function yL(e,t,n){let r;return n.response?r=`${n.response.error||n.response}`:n.responseText?r=`${n.responseText}`:r=`fail to ${t.method} ${e} ${n.status}`,new Xke(r,n.status,t.method,e)}function Zke(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const Jke=e=>{typeof XMLHttpRequest>"u"&&jn(qke,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,n=e.action;t.upload&&t.upload.addEventListener("progress",i=>{const o=i;o.percent=i.total>0?i.loaded/i.total*100:0,e.onProgress(o)});const r=new FormData;if(e.data)for(const[i,o]of Object.entries(e.data))He(o)&&o.length?r.append(i,...o):r.append(i,o);r.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{e.onError(yL(n,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(yL(n,e,t));e.onSuccess(Zke(t))}),t.open(e.method,n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const a=e.headers||{};if(a instanceof Headers)a.forEach((i,o)=>t.setRequestHeader(o,i));else for(const[i,o]of Object.entries(a))Kn(o)||t.setRequestHeader(i,String(o));return t.send(r),t},R6=["text","picture","picture-card"];let Qke=1;const xx=()=>Date.now()+Qke++,O6=Le({action:{type:String,default:"#"},headers:{type:ue(Object)},method:{type:String,default:"post"},data:{type:ue([Object,Function,Promise]),default:()=>Cn({})},multiple:{type:Boolean,default:!1},name:{type:String,default:"file"},drag:{type:Boolean,default:!1},withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},type:{type:String,default:"select"},fileList:{type:ue(Array),default:()=>Cn([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:R6,default:"text"},httpRequest:{type:ue(Function),default:Jke},disabled:Boolean,limit:Number}),eAe=Le({...O6,beforeUpload:{type:ue(Function),default:rn},beforeRemove:{type:ue(Function)},onRemove:{type:ue(Function),default:rn},onChange:{type:ue(Function),default:rn},onPreview:{type:ue(Function),default:rn},onSuccess:{type:ue(Function),default:rn},onProgress:{type:ue(Function),default:rn},onError:{type:ue(Function),default:rn},onExceed:{type:ue(Function),default:rn}}),tAe=Le({files:{type:ue(Array),default:()=>Cn([])},disabled:{type:Boolean,default:!1},handlePreview:{type:ue(Function),default:rn},listType:{type:String,values:R6,default:"text"}}),nAe={remove:e=>!!e},rAe=["onKeydown"],aAe=["src"],iAe=["onClick"],oAe=["title"],sAe=["onClick"],lAe=["onClick"],uAe=ne({name:"ElUploadList"}),cAe=ne({...uAe,props:tAe,emits:nAe,setup(e,{emit:t}){const{t:n}=Ht(),r=Me("upload"),a=Me("icon"),i=Me("list"),o=wa(),s=H(!1),l=u=>{t("remove",u)};return(u,c)=>(R(),ce(kV,{tag:"ul",class:V([y(r).b("list"),y(r).bm("list",u.listType),y(r).is("disabled",y(o))]),name:y(i).b()},{default:re(()=>[(R(!0),K(je,null,Ot(u.files,f=>(R(),K("li",{key:f.uid||f.name,class:V([y(r).be("list","item"),y(r).is(f.status),{focusing:s.value}]),tabindex:"0",onKeydown:Ft(d=>!y(o)&&l(f),["delete"]),onFocus:c[0]||(c[0]=d=>s.value=!0),onBlur:c[1]||(c[1]=d=>s.value=!1),onClick:c[2]||(c[2]=d=>s.value=!1)},[_e(u.$slots,"default",{file:f},()=>[u.listType==="picture"||f.status!=="uploading"&&u.listType==="picture-card"?(R(),K("img",{key:0,class:V(y(r).be("list","item-thumbnail")),src:f.url,alt:""},null,10,aAe)):se("v-if",!0),f.status==="uploading"||u.listType!=="picture-card"?(R(),K("div",{key:1,class:V(y(r).be("list","item-info"))},[Y("a",{class:V(y(r).be("list","item-name")),onClick:tt(d=>u.handlePreview(f),["prevent"])},[q(y(Ke),{class:V(y(a).m("document"))},{default:re(()=>[q(y(Hie))]),_:1},8,["class"]),Y("span",{class:V(y(r).be("list","item-file-name")),title:f.name},De(f.name),11,oAe)],10,iAe),f.status==="uploading"?(R(),ce(y(E8),{key:0,type:u.listType==="picture-card"?"circle":"line","stroke-width":u.listType==="picture-card"?6:2,percentage:Number(f.percentage),style:Ye(u.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):se("v-if",!0)],2)):se("v-if",!0),Y("label",{class:V(y(r).be("list","item-status-label"))},[u.listType==="text"?(R(),ce(y(Ke),{key:0,class:V([y(a).m("upload-success"),y(a).m("circle-check")])},{default:re(()=>[q(y(lM))]),_:1},8,["class"])):["picture-card","picture"].includes(u.listType)?(R(),ce(y(Ke),{key:1,class:V([y(a).m("upload-success"),y(a).m("check")])},{default:re(()=>[q(y(Zp))]),_:1},8,["class"])):se("v-if",!0)],2),y(o)?se("v-if",!0):(R(),ce(y(Ke),{key:2,class:V(y(a).m("close")),onClick:d=>l(f)},{default:re(()=>[q(y(Bi))]),_:2},1032,["class","onClick"])),se(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),se(" This is a bug which needs to be fixed "),se(" TODO: Fix the incorrect navigation interaction "),y(o)?se("v-if",!0):(R(),K("i",{key:3,class:V(y(a).m("close-tip"))},De(y(n)("el.upload.deleteTip")),3)),u.listType==="picture-card"?(R(),K("span",{key:4,class:V(y(r).be("list","item-actions"))},[Y("span",{class:V(y(r).be("list","item-preview")),onClick:d=>u.handlePreview(f)},[q(y(Ke),{class:V(y(a).m("zoom-in"))},{default:re(()=>[q(y(G5))]),_:1},8,["class"])],10,sAe),y(o)?se("v-if",!0):(R(),K("span",{key:0,class:V(y(r).be("list","item-delete")),onClick:d=>l(f)},[q(y(Ke),{class:V(y(a).m("delete"))},{default:re(()=>[q(y($ie))]),_:1},8,["class"])],10,lAe))],2)):se("v-if",!0)])],42,rAe))),128)),_e(u.$slots,"append")]),_:3},8,["class","name"]))}});var bL=Pe(cAe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-list.vue"]]);const fAe=Le({disabled:{type:Boolean,default:!1}}),dAe={file:e=>He(e)},hAe=["onDrop","onDragover"],$6="ElUploadDrag",vAe=ne({name:$6}),pAe=ne({...vAe,props:fAe,emits:dAe,setup(e,{emit:t}){const n=Ge(L6);n||jn($6,"usage: <el-upload><el-upload-dragger /></el-upload>");const r=Me("upload"),a=H(!1),i=wa(),o=l=>{if(i.value)return;a.value=!1,l.stopPropagation();const u=Array.from(l.dataTransfer.files),c=n.accept.value;if(!c){t("file",u);return}const f=u.filter(d=>{const{type:h,name:v}=d,p=v.includes(".")?`.${v.split(".").pop()}`:"",g=h.replace(/\/.*$/,"");return c.split(",").map(m=>m.trim()).filter(m=>m).some(m=>m.startsWith(".")?p===m:/\/\*$/.test(m)?g===m.replace(/\/\*$/,""):/^[^/]+\/[^/]+$/.test(m)?h===m:!1)});t("file",f)},s=()=>{i.value||(a.value=!0)};return(l,u)=>(R(),K("div",{class:V([y(r).b("dragger"),y(r).is("dragover",a.value)]),onDrop:tt(o,["prevent"]),onDragover:tt(s,["prevent"]),onDragleave:u[0]||(u[0]=tt(c=>a.value=!1,["prevent"]))},[_e(l.$slots,"default")],42,hAe))}});var gAe=Pe(pAe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-dragger.vue"]]);const mAe=Le({...O6,beforeUpload:{type:ue(Function),default:rn},onRemove:{type:ue(Function),default:rn},onStart:{type:ue(Function),default:rn},onSuccess:{type:ue(Function),default:rn},onProgress:{type:ue(Function),default:rn},onError:{type:ue(Function),default:rn},onExceed:{type:ue(Function),default:rn}}),yAe=["onKeydown"],bAe=["name","multiple","accept"],_Ae=ne({name:"ElUploadContent",inheritAttrs:!1}),wAe=ne({..._Ae,props:mAe,setup(e,{expose:t}){const n=e,r=Me("upload"),a=wa(),i=un({}),o=un(),s=p=>{if(p.length===0)return;const{autoUpload:g,limit:m,fileList:b,multiple:_,onStart:w,onExceed:C}=n;if(m&&b.length+p.length>m){C(p,b);return}_||(p=p.slice(0,1));for(const S of p){const x=S;x.uid=xx(),w(x),g&&l(x)}},l=async p=>{if(o.value.value="",!n.beforeUpload)return c(p);let g,m={};try{const _=n.data,w=n.beforeUpload(p);m=Zy(n.data)?l0(n.data):n.data,g=await w,Zy(n.data)&&pa(_,m)&&(m=l0(n.data))}catch{g=!1}if(g===!1){n.onRemove(p);return}let b=p;g instanceof Blob&&(g instanceof File?b=g:b=new File([g],p.name,{type:p.type})),c(Object.assign(b,{uid:p.uid}),m)},u=async(p,g)=>it(p)?p(g):p,c=async(p,g)=>{const{headers:m,data:b,method:_,withCredentials:w,name:C,action:S,onProgress:x,onSuccess:T,onError:M,httpRequest:A}=n;try{g=await u(g??b,p)}catch{n.onRemove(p);return}const{uid:k}=p,E={headers:m||{},withCredentials:w,file:p,data:g,method:_,filename:C,action:S,onProgress:L=>{x(L,p)},onSuccess:L=>{T(L,p),delete i.value[k]},onError:L=>{M(L,p),delete i.value[k]}},D=A(E);i.value[k]=D,D instanceof Promise&&D.then(E.onSuccess,E.onError)},f=p=>{const g=p.target.files;g&&s(Array.from(g))},d=()=>{a.value||(o.value.value="",o.value.click())},h=()=>{d()};return t({abort:p=>{Nre(i.value).filter(p?([m])=>String(p.uid)===m:()=>!0).forEach(([m,b])=>{b instanceof XMLHttpRequest&&b.abort(),delete i.value[m]})},upload:l}),(p,g)=>(R(),K("div",{class:V([y(r).b(),y(r).m(p.listType),y(r).is("drag",p.drag)]),tabindex:"0",onClick:d,onKeydown:Ft(tt(h,["self"]),["enter","space"])},[p.drag?(R(),ce(gAe,{key:0,disabled:y(a),onFile:s},{default:re(()=>[_e(p.$slots,"default")]),_:3},8,["disabled"])):_e(p.$slots,"default",{key:1}),Y("input",{ref_key:"inputRef",ref:o,class:V(y(r).e("input")),name:p.name,multiple:p.multiple,accept:p.accept,type:"file",onChange:f,onClick:g[0]||(g[0]=tt(()=>{},["stop"]))},null,42,bAe)],42,yAe))}});var _L=Pe(wAe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-content.vue"]]);const wL="ElUpload",SL=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},SAe=(e,t)=>{const n=CZ(e,"fileList",void 0,{passive:!0}),r=d=>n.value.find(h=>h.uid===d.uid);function a(d){var h;(h=t.value)==null||h.abort(d)}function i(d=["ready","uploading","success","fail"]){n.value=n.value.filter(h=>!d.includes(h.status))}const o=(d,h)=>{const v=r(h);v&&(console.error(d),v.status="fail",n.value.splice(n.value.indexOf(v),1),e.onError(d,v,n.value),e.onChange(v,n.value))},s=(d,h)=>{const v=r(h);v&&(e.onProgress(d,v,n.value),v.status="uploading",v.percentage=Math.round(d.percent))},l=(d,h)=>{const v=r(h);v&&(v.status="success",v.response=d,e.onSuccess(d,v,n.value),e.onChange(v,n.value))},u=d=>{Kn(d.uid)&&(d.uid=xx());const h={name:d.name,percentage:0,status:"ready",size:d.size,raw:d,uid:d.uid};if(e.listType==="picture-card"||e.listType==="picture")try{h.url=URL.createObjectURL(d)}catch(v){v.message,e.onError(v,h,n.value)}n.value=[...n.value,h],e.onChange(h,n.value)},c=async d=>{const h=d instanceof File?r(d):d;h||jn(wL,"file to be removed not found");const v=p=>{a(p);const g=n.value;g.splice(g.indexOf(p),1),e.onRemove(p,g),SL(p)};e.beforeRemove?await e.beforeRemove(h,n.value)!==!1&&v(h):v(h)};function f(){n.value.filter(({status:d})=>d==="ready").forEach(({raw:d})=>{var h;return d&&((h=t.value)==null?void 0:h.upload(d))})}return xe(()=>e.listType,d=>{d!=="picture-card"&&d!=="picture"||(n.value=n.value.map(h=>{const{raw:v,url:p}=h;if(!p&&v)try{h.url=URL.createObjectURL(v)}catch(g){e.onError(g,h,n.value)}return h}))}),xe(n,d=>{for(const h of d)h.uid||(h.uid=xx()),h.status||(h.status="success")},{immediate:!0,deep:!0}),{uploadFiles:n,abort:a,clearFiles:i,handleError:o,handleProgress:s,handleStart:u,handleSuccess:l,handleRemove:c,submit:f,revokeFileObjectURL:SL}},CAe=ne({name:"ElUpload"}),xAe=ne({...CAe,props:eAe,setup(e,{expose:t}){const n=e,r=wa(),a=un(),{abort:i,submit:o,clearFiles:s,uploadFiles:l,handleStart:u,handleError:c,handleRemove:f,handleSuccess:d,handleProgress:h,revokeFileObjectURL:v}=SAe(n,a),p=P(()=>n.listType==="picture-card"),g=P(()=>({...n,fileList:l.value,onStart:u,onProgress:h,onSuccess:d,onError:c,onRemove:f}));return wn(()=>{l.value.forEach(v)}),Et(L6,{accept:kn(n,"accept")}),t({abort:i,submit:o,clearFiles:s,handleStart:u,handleRemove:f}),(m,b)=>(R(),K("div",null,[y(p)&&m.showFileList?(R(),ce(bL,{key:0,disabled:y(r),"list-type":m.listType,files:y(l),"handle-preview":m.onPreview,onRemove:y(f)},Jo({append:re(()=>[q(_L,St({ref_key:"uploadRef",ref:a},y(g)),{default:re(()=>[m.$slots.trigger?_e(m.$slots,"trigger",{key:0}):se("v-if",!0),!m.$slots.trigger&&m.$slots.default?_e(m.$slots,"default",{key:1}):se("v-if",!0)]),_:3},16)]),_:2},[m.$slots.file?{name:"default",fn:re(({file:_})=>[_e(m.$slots,"file",{file:_})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):se("v-if",!0),!y(p)||y(p)&&!m.showFileList?(R(),ce(_L,St({key:1,ref_key:"uploadRef",ref:a},y(g)),{default:re(()=>[m.$slots.trigger?_e(m.$slots,"trigger",{key:0}):se("v-if",!0),!m.$slots.trigger&&m.$slots.default?_e(m.$slots,"default",{key:1}):se("v-if",!0)]),_:3},16)):se("v-if",!0),m.$slots.trigger?_e(m.$slots,"default",{key:2}):se("v-if",!0),_e(m.$slots,"tip"),!y(p)&&m.showFileList?(R(),ce(bL,{key:3,disabled:y(r),"list-type":m.listType,files:y(l),"handle-preview":m.onPreview,onRemove:y(f)},Jo({_:2},[m.$slots.file?{name:"default",fn:re(({file:_})=>[_e(m.$slots,"file",{file:_})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):se("v-if",!0)]))}});var TAe=Pe(xAe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload.vue"]]);const MAe=_t(TAe);var kAe=[Ice,Fce,hhe,GTe,_he,khe,Yz,zhe,Fhe,_r,eF,ope,fpe,Tpe,Mpe,zge,Mge,Uge,li,Upe,AF,ame,Sme,Cme,vme,Jme,Sce,cye,fye,dye,hye,vye,R0e,W0e,K0e,sbe,u8,wbe,d1e,h1e,v1e,y8,Rfe,Ofe,Ke,o_e,b8,Rr,_8,__e,z_e,F_e,H_e,G_e,X_e,tSe,sSe,gSe,Wz,E8,OF,lge,sge,LSe,BSe,Qge,hs,sc,p0,kwe,ACe,$Ce,NCe,hxe,yxe,j8,Exe,Bxe,Vxe,Xxe,aTe,iTe,HTe,aMe,iMe,Qv,cMe,Bve,gMe,wMe,SMe,ea,jMe,uke,Cke,Ike,jke,MAe];const xi="ElInfiniteScroll",AAe=50,EAe=200,IAe=0,DAe={delay:{type:Number,default:EAe},distance:{type:Number,default:IAe},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},pk=(e,t)=>Object.entries(DAe).reduce((n,[r,a])=>{var i,o;const{type:s,default:l}=a,u=e.getAttribute(`infinite-scroll-${r}`);let c=(o=(i=t[u])!=null?i:u)!=null?o:l;return c=c==="false"?!1:c,c=s(c),n[r]=Number.isNaN(c)?l:c,n},{}),N6=e=>{const{observer:t}=e[xi];t&&(t.disconnect(),delete e[xi].observer)},PAe=(e,t)=>{const{container:n,containerEl:r,instance:a,observer:i,lastScrollTop:o}=e[xi],{disabled:s,distance:l}=pk(e,a),{clientHeight:u,scrollHeight:c,scrollTop:f}=r,d=f-o;if(e[xi].lastScrollTop=f,i||s||d<0)return;let h=!1;if(n===e)h=c-(u+f)<=l;else{const{clientTop:v,scrollHeight:p}=e,g=kZ(e,r);h=f+u>=g+v+p-l}h&&t.call(a)};function $_(e,t){const{containerEl:n,instance:r}=e[xi],{disabled:a}=pk(e,r);a||n.clientHeight===0||(n.scrollHeight<=n.clientHeight?t.call(r):N6(e))}const LAe={async mounted(e,t){const{instance:n,value:r}=t;it(r)||jn(xi,"'v-infinite-scroll' binding value must be a function"),await Ue();const{delay:a,immediate:i}=pk(e,n),o=sM(e,!0),s=o===window?document.documentElement:o,l=Uu(PAe.bind(null,e,r),a);if(o){if(e[xi]={instance:n,container:o,containerEl:s,delay:a,cb:r,onScroll:l,lastScrollTop:s.scrollTop},i){const u=new MutationObserver(Uu($_.bind(null,e,r),AAe));e[xi].observer=u,u.observe(e,{childList:!0,subtree:!0}),$_(e,r)}o.addEventListener("scroll",l)}},unmounted(e){const{container:t,onScroll:n}=e[xi];t==null||t.removeEventListener("scroll",n),N6(e)},async updated(e){if(!e[xi])await Ue();else{const{containerEl:t,cb:n,observer:r}=e[xi];t.clientHeight&&r&&$_(e,n)}}},Tx=LAe;Tx.install=e=>{e.directive("InfiniteScroll",Tx)};const RAe=Tx;function OAe(e){let t;const n=H(!1),r=jt({...e,originalPosition:"",originalOverflow:"",visible:!1});function a(d){r.text=d}function i(){const d=r.parent,h=f.ns;if(!d.vLoadingAddClassList){let v=d.getAttribute("loading-number");v=Number.parseInt(v)-1,v?d.setAttribute("loading-number",v.toString()):(ga(d,h.bm("parent","relative")),d.removeAttribute("loading-number")),ga(d,h.bm("parent","hidden"))}o(),c.unmount()}function o(){var d,h;(h=(d=f.$el)==null?void 0:d.parentNode)==null||h.removeChild(f.$el)}function s(){var d;e.beforeClose&&!e.beforeClose()||(n.value=!0,clearTimeout(t),t=window.setTimeout(l,400),r.visible=!1,(d=e.closed)==null||d.call(e))}function l(){if(!n.value)return;const d=r.parent;n.value=!1,d.vLoadingAddClassList=void 0,i()}const u=ne({name:"ElLoading",setup(d,{expose:h}){const{ns:v,zIndex:p}=t1("loading");return h({ns:v,zIndex:p}),()=>{const g=r.spinner||r.svg,m=Ze("svg",{class:"circular",viewBox:r.svgViewBox?r.svgViewBox:"0 0 50 50",...g?{innerHTML:g}:{}},[Ze("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),b=r.text?Ze("p",{class:v.b("text")},[r.text]):void 0;return Ze(Bn,{name:v.b("fade"),onAfterLeave:l},{default:re(()=>[dt(q("div",{style:{backgroundColor:r.background||""},class:[v.b("mask"),r.customClass,r.fullscreen?"is-fullscreen":""]},[Ze("div",{class:v.b("spinner")},[m,b])]),[[Kt,r.visible]])])})}}}),c=PV(u),f=c.mount(document.createElement("div"));return{...or(r),setText:a,removeElLoadingChild:o,close:s,handleAfterLeave:l,vm:f,get $el(){return f.$el}}}let Jg;const Mx=function(e={}){if(!Vt)return;const t=$Ae(e);if(t.fullscreen&&Jg)return Jg;const n=OAe({...t,closed:()=>{var a;(a=t.closed)==null||a.call(t),t.fullscreen&&(Jg=void 0)}});NAe(t,t.parent,n),CL(t,t.parent,n),t.parent.vLoadingAddClassList=()=>CL(t,t.parent,n);let r=t.parent.getAttribute("loading-number");return r?r=`${Number.parseInt(r)+1}`:r="1",t.parent.setAttribute("loading-number",r),t.parent.appendChild(n.$el),Ue(()=>n.visible.value=t.visible),t.fullscreen&&(Jg=n),n},$Ae=e=>{var t,n,r,a;let i;return lt(e.target)?i=(t=document.querySelector(e.target))!=null?t:document.body:i=e.target||document.body,{parent:i===document.body||e.body?document.body:i,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:i===document.body&&((n=e.fullscreen)!=null?n:!0),lock:(r=e.lock)!=null?r:!1,customClass:e.customClass||"",visible:(a=e.visible)!=null?a:!0,target:i}},NAe=async(e,t,n)=>{const{nextZIndex:r}=n.vm.zIndex||n.vm._.exposed.zIndex,a={};if(e.fullscreen)n.originalPosition.value=Fs(document.body,"position"),n.originalOverflow.value=Fs(document.body,"overflow"),a.zIndex=r();else if(e.parent===document.body){n.originalPosition.value=Fs(document.body,"position"),await Ue();for(const i of["top","left"]){const o=i==="top"?"scrollTop":"scrollLeft";a[i]=`${e.target.getBoundingClientRect()[i]+document.body[o]+document.documentElement[o]-Number.parseInt(Fs(document.body,`margin-${i}`),10)}px`}for(const i of["height","width"])a[i]=`${e.target.getBoundingClientRect()[i]}px`}else n.originalPosition.value=Fs(t,"position");for(const[i,o]of Object.entries(a))n.$el.style[i]=o},CL=(e,t,n)=>{const r=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?ga(t,r.bm("parent","relative")):lo(t,r.bm("parent","relative")),e.fullscreen&&e.lock?lo(t,r.bm("parent","hidden")):ga(t,r.bm("parent","hidden"))},kx=Symbol("ElLoading"),xL=(e,t)=>{var n,r,a,i;const o=t.instance,s=d=>Mt(t.value)?t.value[d]:void 0,l=d=>{const h=lt(d)&&(o==null?void 0:o[d])||d;return h&&H(h)},u=d=>l(s(d)||e.getAttribute(`element-loading-${Cl(d)}`)),c=(n=s("fullscreen"))!=null?n:t.modifiers.fullscreen,f={text:u("text"),svg:u("svg"),svgViewBox:u("svgViewBox"),spinner:u("spinner"),background:u("background"),customClass:u("customClass"),fullscreen:c,target:(r=s("target"))!=null?r:c?void 0:e,body:(a=s("body"))!=null?a:t.modifiers.body,lock:(i=s("lock"))!=null?i:t.modifiers.lock};e[kx]={options:f,instance:Mx(f)}},BAe=(e,t)=>{for(const n of Object.keys(t))cn(t[n])&&(t[n].value=e[n])},TL={mounted(e,t){t.value&&xL(e,t)},updated(e,t){const n=e[kx];t.oldValue!==t.value&&(t.value&&!t.oldValue?xL(e,t):t.value&&t.oldValue?Mt(t.value)&&BAe(t.value,n.options):n==null||n.instance.close())},unmounted(e){var t;(t=e[kx])==null||t.instance.close()}},VAe={install(e){e.directive("loading",TL),e.config.globalProperties.$loading=Mx},directive:TL,service:Mx},B6=["success","info","warning","error"],ca=Cn({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:Vt?document.body:void 0}),zAe=Le({customClass:{type:String,default:ca.customClass},center:{type:Boolean,default:ca.center},dangerouslyUseHTMLString:{type:Boolean,default:ca.dangerouslyUseHTMLString},duration:{type:Number,default:ca.duration},icon:{type:fn,default:ca.icon},id:{type:String,default:ca.id},message:{type:ue([String,Object,Function]),default:ca.message},onClose:{type:ue(Function),required:!1},showClose:{type:Boolean,default:ca.showClose},type:{type:String,values:B6,default:ca.type},offset:{type:Number,default:ca.offset},zIndex:{type:Number,default:ca.zIndex},grouping:{type:Boolean,default:ca.grouping},repeatNum:{type:Number,default:ca.repeatNum}}),FAe={destroy:()=>!0},Ai=VB([]),HAe=e=>{const t=Ai.findIndex(a=>a.id===e),n=Ai[t];let r;return t>0&&(r=Ai[t-1]),{current:n,prev:r}},GAe=e=>{const{prev:t}=HAe(e);return t?t.vm.exposed.bottom.value:0},WAe=(e,t)=>Ai.findIndex(r=>r.id===e)>0?20:t,KAe=["id"],UAe=["innerHTML"],YAe=ne({name:"ElMessage"}),jAe=ne({...YAe,props:zAe,emits:FAe,setup(e,{expose:t}){const n=e,{Close:r}=fM,{ns:a,zIndex:i}=t1("message"),{currentZIndex:o,nextZIndex:s}=i,l=H(),u=H(!1),c=H(0);let f;const d=P(()=>n.type?n.type==="error"?"danger":n.type:"info"),h=P(()=>{const x=n.type;return{[a.bm("icon",x)]:x&&fl[x]}}),v=P(()=>n.icon||fl[n.type]||""),p=P(()=>GAe(n.id)),g=P(()=>WAe(n.id,n.offset)+p.value),m=P(()=>c.value+g.value),b=P(()=>({top:`${g.value}px`,zIndex:o.value}));function _(){n.duration!==0&&({stop:f}=ac(()=>{C()},n.duration))}function w(){f==null||f()}function C(){u.value=!1}function S({code:x}){x===Xe.esc&&C()}return yt(()=>{_(),s(),u.value=!0}),xe(()=>n.repeatNum,()=>{w(),_()}),bn(document,"keydown",S),$r(l,()=>{c.value=l.value.getBoundingClientRect().height}),t({visible:u,bottom:m,close:C}),(x,T)=>(R(),ce(Bn,{name:y(a).b("fade"),onBeforeLeave:x.onClose,onAfterLeave:T[0]||(T[0]=M=>x.$emit("destroy")),persisted:""},{default:re(()=>[dt(Y("div",{id:x.id,ref_key:"messageRef",ref:l,class:V([y(a).b(),{[y(a).m(x.type)]:x.type&&!x.icon},y(a).is("center",x.center),y(a).is("closable",x.showClose),x.customClass]),style:Ye(y(b)),role:"alert",onMouseenter:w,onMouseleave:_},[x.repeatNum>1?(R(),ce(y(Yz),{key:0,value:x.repeatNum,type:y(d),class:V(y(a).e("badge"))},null,8,["value","type","class"])):se("v-if",!0),y(v)?(R(),ce(y(Ke),{key:1,class:V([y(a).e("icon"),y(h)])},{default:re(()=>[(R(),ce(Ct(y(v))))]),_:1},8,["class"])):se("v-if",!0),_e(x.$slots,"default",{},()=>[x.dangerouslyUseHTMLString?(R(),K(je,{key:1},[se(" Caution here, message could've been compromised, never use user's input as message "),Y("p",{class:V(y(a).e("content")),innerHTML:x.message},null,10,UAe)],2112)):(R(),K("p",{key:0,class:V(y(a).e("content"))},De(x.message),3))]),x.showClose?(R(),ce(y(Ke),{key:2,class:V(y(a).e("closeBtn")),onClick:tt(C,["stop"])},{default:re(()=>[q(y(r))]),_:1},8,["class","onClick"])):se("v-if",!0)],46,KAe),[[Kt,u.value]])]),_:3},8,["name","onBeforeLeave"]))}});var qAe=Pe(jAe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let XAe=1;const V6=e=>{const t=!e||lt(e)||Tn(e)||it(e)?{message:e}:e,n={...ca,...t};if(!n.appendTo)n.appendTo=document.body;else if(lt(n.appendTo)){let r=document.querySelector(n.appendTo);ri(r)||(r=document.body),n.appendTo=r}return n},ZAe=e=>{const t=Ai.indexOf(e);if(t===-1)return;Ai.splice(t,1);const{handler:n}=e;n.close()},JAe=({appendTo:e,...t},n)=>{const r=`message_${XAe++}`,a=t.onClose,i=document.createElement("div"),o={...t,id:r,onClose:()=>{a==null||a(),ZAe(c)},onDestroy:()=>{Kf(null,i)}},s=q(qAe,o,it(o.message)||Tn(o.message)?{default:it(o.message)?o.message:()=>o.message}:null);s.appContext=n||sd._context,Kf(s,i),e.appendChild(i.firstElementChild);const l=s.component,c={id:r,vnode:s,vm:l,handler:{close:()=>{l.exposed.visible.value=!1}},props:s.component.props};return c},sd=(e={},t)=>{if(!Vt)return{close:()=>{}};if(at(IC.max)&&Ai.length>=IC.max)return{close:()=>{}};const n=V6(e);if(n.grouping&&Ai.length){const a=Ai.find(({vnode:i})=>{var o;return((o=i.props)==null?void 0:o.message)===n.message});if(a)return a.props.repeatNum+=1,a.props.type=n.type,a.handler}const r=JAe(n,t);return Ai.push(r),r.handler};B6.forEach(e=>{sd[e]=(t={},n)=>{const r=V6(t);return sd({...r,type:e},n)}});function QAe(e){for(const t of Ai)(!e||e===t.props.type)&&t.handler.close()}sd.closeAll=QAe;sd._context=null;const eEe=U5(sd,"$message"),tEe=ne({name:"ElMessageBox",directives:{TrapFocus:_ve},components:{ElButton:_r,ElFocusTrap:r1,ElInput:Rr,ElOverlay:HM,ElIcon:Ke,...fM},inheritAttrs:!1,props:{buttonSize:{type:String,validator:Yb},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{locale:n,zIndex:r,ns:a,size:i}=t1("message-box",P(()=>e.buttonSize)),{t:o}=n,{nextZIndex:s}=r,l=H(!1),u=jt({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:null,inputValidator:null,inputErrorMessage:"",message:null,modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:s()}),c=P(()=>{const B=u.type;return{[a.bm("icon",B)]:B&&fl[B]}}),f=oi(),d=oi(),h=P(()=>u.icon||fl[u.type]||""),v=P(()=>!!u.message),p=H(),g=H(),m=H(),b=H(),_=H(),w=P(()=>u.confirmButtonClass);xe(()=>u.inputValue,async B=>{await Ue(),e.boxType==="prompt"&&B!==null&&k()},{immediate:!0}),xe(()=>l.value,B=>{var N,O;B&&(e.boxType!=="prompt"&&(u.autofocus?m.value=(O=(N=_.value)==null?void 0:N.$el)!=null?O:p.value:m.value=p.value),u.zIndex=s()),e.boxType==="prompt"&&(B?Ue().then(()=>{var $;b.value&&b.value.$el&&(u.autofocus?m.value=($=E())!=null?$:p.value:m.value=p.value)}):(u.editorErrorMessage="",u.validateError=!1))});const C=P(()=>e.draggable);Y5(p,g,C),yt(async()=>{await Ue(),e.closeOnHashChange&&window.addEventListener("hashchange",S)}),wn(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",S)});function S(){l.value&&(l.value=!1,Ue(()=>{u.action&&t("action",u.action)}))}const x=()=>{e.closeOnClickModal&&A(u.distinguishCancelAndClose?"close":"cancel")},T=CM(x),M=B=>{if(u.inputType!=="textarea")return B.preventDefault(),A("confirm")},A=B=>{var N;e.boxType==="prompt"&&B==="confirm"&&!k()||(u.action=B,u.beforeClose?(N=u.beforeClose)==null||N.call(u,B,u,S):S())},k=()=>{if(e.boxType==="prompt"){const B=u.inputPattern;if(B&&!B.test(u.inputValue||""))return u.editorErrorMessage=u.inputErrorMessage||o("el.messagebox.error"),u.validateError=!0,!1;const N=u.inputValidator;if(typeof N=="function"){const O=N(u.inputValue);if(O===!1)return u.editorErrorMessage=u.inputErrorMessage||o("el.messagebox.error"),u.validateError=!0,!1;if(typeof O=="string")return u.editorErrorMessage=O,u.validateError=!0,!1}}return u.editorErrorMessage="",u.validateError=!1,!0},E=()=>{const B=b.value.$refs;return B.input||B.textarea},D=()=>{A("close")},L=()=>{e.closeOnPressEscape&&D()};return e.lockScroll&&X5(l),{...or(u),ns:a,overlayEvent:T,visible:l,hasMessage:v,typeClass:c,contentId:f,inputId:d,btnSize:i,iconComponent:h,confirmButtonClasses:w,rootRef:p,focusStartRef:m,headerRef:g,inputRef:b,confirmRef:_,doClose:S,handleClose:D,onCloseRequested:L,handleWrapperClick:x,handleInputEnter:M,handleAction:A,t:o}}}),nEe=["aria-label","aria-describedby"],rEe=["aria-label"],aEe=["id"];function iEe(e,t,n,r,a,i){const o=ct("el-icon"),s=ct("close"),l=ct("el-input"),u=ct("el-button"),c=ct("el-focus-trap"),f=ct("el-overlay");return R(),ce(Bn,{name:"fade-in-linear",onAfterLeave:t[11]||(t[11]=d=>e.$emit("vanish")),persisted:""},{default:re(()=>[dt(q(f,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:re(()=>[Y("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:V(`${e.ns.namespace.value}-overlay-message-box`),onClick:t[8]||(t[8]=(...d)=>e.overlayEvent.onClick&&e.overlayEvent.onClick(...d)),onMousedown:t[9]||(t[9]=(...d)=>e.overlayEvent.onMousedown&&e.overlayEvent.onMousedown(...d)),onMouseup:t[10]||(t[10]=(...d)=>e.overlayEvent.onMouseup&&e.overlayEvent.onMouseup(...d))},[q(c,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:re(()=>[Y("div",{ref:"rootRef",class:V([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:Ye(e.customStyle),tabindex:"-1",onClick:t[7]||(t[7]=tt(()=>{},["stop"]))},[e.title!==null&&e.title!==void 0?(R(),K("div",{key:0,ref:"headerRef",class:V(e.ns.e("header"))},[Y("div",{class:V(e.ns.e("title"))},[e.iconComponent&&e.center?(R(),ce(o,{key:0,class:V([e.ns.e("status"),e.typeClass])},{default:re(()=>[(R(),ce(Ct(e.iconComponent)))]),_:1},8,["class"])):se("v-if",!0),Y("span",null,De(e.title),1)],2),e.showClose?(R(),K("button",{key:0,type:"button",class:V(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:t[0]||(t[0]=d=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),onKeydown:t[1]||(t[1]=Ft(tt(d=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[q(o,{class:V(e.ns.e("close"))},{default:re(()=>[q(s)]),_:1},8,["class"])],42,rEe)):se("v-if",!0)],2)):se("v-if",!0),Y("div",{id:e.contentId,class:V(e.ns.e("content"))},[Y("div",{class:V(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(R(),ce(o,{key:0,class:V([e.ns.e("status"),e.typeClass])},{default:re(()=>[(R(),ce(Ct(e.iconComponent)))]),_:1},8,["class"])):se("v-if",!0),e.hasMessage?(R(),K("div",{key:1,class:V(e.ns.e("message"))},[_e(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(R(),ce(Ct(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(R(),ce(Ct(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:re(()=>[Ut(De(e.dangerouslyUseHTMLString?"":e.message),1)]),_:1},8,["for"]))])],2)):se("v-if",!0)],2),dt(Y("div",{class:V(e.ns.e("input"))},[q(l,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[2]||(t[2]=d=>e.inputValue=d),type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:V({invalid:e.validateError}),onKeydown:Ft(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),Y("div",{class:V(e.ns.e("errormsg")),style:Ye({visibility:e.editorErrorMessage?"visible":"hidden"})},De(e.editorErrorMessage),7)],2),[[Kt,e.showInput]])],10,aEe),Y("div",{class:V(e.ns.e("btns"))},[e.showCancelButton?(R(),ce(u,{key:0,loading:e.cancelButtonLoading,class:V([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:t[3]||(t[3]=d=>e.handleAction("cancel")),onKeydown:t[4]||(t[4]=Ft(tt(d=>e.handleAction("cancel"),["prevent"]),["enter"]))},{default:re(()=>[Ut(De(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","class","round","size"])):se("v-if",!0),dt(q(u,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,class:V([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:t[5]||(t[5]=d=>e.handleAction("confirm")),onKeydown:t[6]||(t[6]=Ft(tt(d=>e.handleAction("confirm"),["prevent"]),["enter"]))},{default:re(()=>[Ut(De(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","class","round","disabled","size"]),[[Kt,e.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,nEe)]),_:3},8,["z-index","overlay-class","mask"]),[[Kt,e.visible]])]),_:3})}var oEe=Pe(tEe,[["render",iEe],["__file","/home/runner/work/element-plus/element-plus/packages/components/message-box/src/index.vue"]]);const lp=new Map,sEe=e=>{let t=document.body;return e.appendTo&&(lt(e.appendTo)&&(t=document.querySelector(e.appendTo)),ri(e.appendTo)&&(t=e.appendTo),ri(t)||(t=document.body)),t},lEe=(e,t,n=null)=>{const r=q(oEe,e,it(e.message)||Tn(e.message)?{default:it(e.message)?e.message:()=>e.message}:null);return r.appContext=n,Kf(r,t),sEe(e).appendChild(t.firstElementChild),r.component},uEe=()=>document.createElement("div"),cEe=(e,t)=>{const n=uEe();e.onVanish=()=>{Kf(null,n),lp.delete(a)},e.onAction=i=>{const o=lp.get(a);let s;e.showInput?s={value:a.inputValue,action:i}:s=i,e.callback?e.callback(s,r.proxy):i==="cancel"||i==="close"?e.distinguishCancelAndClose&&i!=="cancel"?o.reject("close"):o.reject("cancel"):o.resolve(s)};const r=lEe(e,n,t),a=r.proxy;for(const i in e)Nt(e,i)&&!Nt(a.$props,i)&&(a[i]=e[i]);return a.visible=!0,a};function Ad(e,t=null){if(!Vt)return Promise.reject();let n;return lt(e)||Tn(e)?e={message:e}:n=e.callback,new Promise((r,a)=>{const i=cEe(e,t??Ad._context);lp.set(i,{options:e,callback:n,resolve:r,reject:a})})}const fEe=["alert","confirm","prompt"],dEe={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};fEe.forEach(e=>{Ad[e]=hEe(e)});function hEe(e){return(t,n,r,a)=>{let i="";return Mt(n)?(r=n,i=""):er(n)?i="":i=n,Ad(Object.assign({title:i,message:t,type:"",...dEe[e]},r,{boxType:e}),a)}}Ad.close=()=>{lp.forEach((e,t)=>{t.doClose()}),lp.clear()};Ad._context=null;const Ls=Ad;Ls.install=e=>{Ls._context=e._context,e.config.globalProperties.$msgbox=Ls,e.config.globalProperties.$messageBox=Ls,e.config.globalProperties.$alert=Ls.alert,e.config.globalProperties.$confirm=Ls.confirm,e.config.globalProperties.$prompt=Ls.prompt};const vEe=Ls,z6=["success","info","warning","error"],pEe=Le({customClass:{type:String,default:""},dangerouslyUseHTMLString:{type:Boolean,default:!1},duration:{type:Number,default:4500},icon:{type:fn},id:{type:String,default:""},message:{type:ue([String,Object]),default:""},offset:{type:Number,default:0},onClick:{type:ue(Function),default:()=>{}},onClose:{type:ue(Function),required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...z6,""],default:""},zIndex:Number}),gEe={destroy:()=>!0},mEe=["id"],yEe=["textContent"],bEe={key:0},_Ee=["innerHTML"],wEe=ne({name:"ElNotification"}),SEe=ne({...wEe,props:pEe,emits:gEe,setup(e,{expose:t}){const n=e,{ns:r,zIndex:a}=t1("notification"),{nextZIndex:i,currentZIndex:o}=a,{Close:s}=K5,l=H(!1);let u;const c=P(()=>{const _=n.type;return _&&fl[n.type]?r.m(_):""}),f=P(()=>n.type&&fl[n.type]||n.icon),d=P(()=>n.position.endsWith("right")?"right":"left"),h=P(()=>n.position.startsWith("top")?"top":"bottom"),v=P(()=>{var _;return{[h.value]:`${n.offset}px`,zIndex:(_=n.zIndex)!=null?_:o.value}});function p(){n.duration>0&&({stop:u}=ac(()=>{l.value&&m()},n.duration))}function g(){u==null||u()}function m(){l.value=!1}function b({code:_}){_===Xe.delete||_===Xe.backspace?g():_===Xe.esc?l.value&&m():p()}return yt(()=>{p(),i(),l.value=!0}),bn(document,"keydown",b),t({visible:l,close:m}),(_,w)=>(R(),ce(Bn,{name:y(r).b("fade"),onBeforeLeave:_.onClose,onAfterLeave:w[1]||(w[1]=C=>_.$emit("destroy")),persisted:""},{default:re(()=>[dt(Y("div",{id:_.id,class:V([y(r).b(),_.customClass,y(d)]),style:Ye(y(v)),role:"alert",onMouseenter:g,onMouseleave:p,onClick:w[0]||(w[0]=(...C)=>_.onClick&&_.onClick(...C))},[y(f)?(R(),ce(y(Ke),{key:0,class:V([y(r).e("icon"),y(c)])},{default:re(()=>[(R(),ce(Ct(y(f))))]),_:1},8,["class"])):se("v-if",!0),Y("div",{class:V(y(r).e("group"))},[Y("h2",{class:V(y(r).e("title")),textContent:De(_.title)},null,10,yEe),dt(Y("div",{class:V(y(r).e("content")),style:Ye(_.title?void 0:{margin:0})},[_e(_.$slots,"default",{},()=>[_.dangerouslyUseHTMLString?(R(),K(je,{key:1},[se(" Caution here, message could've been compromised, never use user's input as message "),Y("p",{innerHTML:_.message},null,8,_Ee)],2112)):(R(),K("p",bEe,De(_.message),1))])],6),[[Kt,_.message]]),_.showClose?(R(),ce(y(Ke),{key:0,class:V(y(r).e("closeBtn")),onClick:tt(m,["stop"])},{default:re(()=>[q(y(s))]),_:1},8,["class","onClick"])):se("v-if",!0)],2)],46,mEe),[[Kt,l.value]])]),_:3},8,["name","onBeforeLeave"]))}});var CEe=Pe(SEe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/notification/src/notification.vue"]]);const x0={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},Ax=16;let xEe=1;const ld=function(e={},t=null){if(!Vt)return{close:()=>{}};(typeof e=="string"||Tn(e))&&(e={message:e});const n=e.position||"top-right";let r=e.offset||0;x0[n].forEach(({vm:c})=>{var f;r+=(((f=c.el)==null?void 0:f.offsetHeight)||0)+Ax}),r+=Ax;const a=`notification_${xEe++}`,i=e.onClose,o={...e,offset:r,id:a,onClose:()=>{TEe(a,n,i)}};let s=document.body;ri(e.appendTo)?s=e.appendTo:lt(e.appendTo)&&(s=document.querySelector(e.appendTo)),ri(s)||(s=document.body);const l=document.createElement("div"),u=q(CEe,o,Tn(o.message)?{default:()=>o.message}:null);return u.appContext=t??ld._context,u.props.onDestroy=()=>{Kf(null,l)},Kf(u,l),x0[n].push({vm:u}),s.appendChild(l.firstElementChild),{close:()=>{u.component.exposed.visible.value=!1}}};z6.forEach(e=>{ld[e]=(t={})=>((typeof t=="string"||Tn(t))&&(t={message:t}),ld({...t,type:e}))});function TEe(e,t,n){const r=x0[t],a=r.findIndex(({vm:u})=>{var c;return((c=u.component)==null?void 0:c.props.id)===e});if(a===-1)return;const{vm:i}=r[a];if(!i)return;n==null||n(i);const o=i.el.offsetHeight,s=t.split("-")[0];r.splice(a,1);const l=r.length;if(!(l<1))for(let u=a;u<l;u++){const{el:c,component:f}=r[u].vm,d=Number.parseInt(c.style[s],10)-o-Ax;f.props.offset=d}}function MEe(){for(const e of Object.values(x0))e.forEach(({vm:t})=>{t.component.exposed.visible.value=!1})}ld.closeAll=MEe;ld._context=null;const kEe=U5(ld,"$notify");var AEe=[RAe,VAe,eEe,vEe,kEe,A8],EEe=xce([...kAe,...AEe]);/*! *****************************************************************************
  59. Copyright (c) Microsoft Corporation.
  60. Permission to use, copy, modify, and/or distribute this software for any
  61. purpose with or without fee is hereby granted.
  62. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  63. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  64. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  65. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  66. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  67. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  68. PERFORMANCE OF THIS SOFTWARE.
  69. ***************************************************************************** */var Ex=function(e,t){return Ex=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},Ex(e,t)};function ge(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ex(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var IEe=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),DEe=function(){function e(){this.browser=new IEe,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}(),hu=new DEe;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(hu.wxa=!0,hu.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?hu.worker=!0:typeof navigator>"u"?(hu.node=!0,hu.svgSupported=!0):PEe(navigator.userAgent,hu);function PEe(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),a=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),i=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);r&&(n.firefox=!0,n.version=r[1]),a&&(n.ie=!0,n.version=a[1]),i&&(n.edge=!0,n.version=i[1],n.newEdge=+i[1].split(".")[0]>18),o&&(n.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,t.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}const Jt=hu;var gk=12,F6="sans-serif",pl=gk+"px "+F6,LEe=20,REe=100,OEe="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function $Ee(e){var t={};if(typeof JSON>"u")return t;for(var n=0;n<e.length;n++){var r=String.fromCharCode(n+32),a=(e.charCodeAt(n)-LEe)/REe;t[r]=a}return t}var NEe=$Ee(OEe),Vi={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var e,t;return function(n,r){if(!e){var a=Vi.createCanvas();e=a&&a.getContext("2d")}if(e)return t!==r&&(t=e.font=r||pl),e.measureText(n);n=n||"",r=r||pl;var i=/(\d+)px/.exec(r),o=i&&+i[1]||gk,s=0;if(r.indexOf("mono")>=0)s=o*n.length;else for(var l=0;l<n.length;l++){var u=NEe[n[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(e,t,n){var r=new Image;return r.onload=t,r.onerror=n,r.src=e,r}};function H6(e){for(var t in Vi)e[t]&&(Vi[t]=e[t])}var G6=ui(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),W6=ui(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),Ed=Object.prototype.toString,c1=Array.prototype,BEe=c1.forEach,VEe=c1.filter,mk=c1.slice,zEe=c1.map,ML=(function(){}).constructor,Qg=ML?ML.prototype:null,yk="__proto__",FEe=2311;function bk(){return FEe++}function f1(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function pt(e){if(e==null||typeof e!="object")return e;var t=e,n=Ed.call(e);if(n==="[object Array]"){if(!Rf(e)){t=[];for(var r=0,a=e.length;r<a;r++)t[r]=pt(e[r])}}else if(W6[n]){if(!Rf(e)){var i=e.constructor;if(i.from)t=i.from(e);else{t=new i(e.length);for(var r=0,a=e.length;r<a;r++)t[r]=e[r]}}}else if(!G6[n]&&!Rf(e)&&!ud(e)){t={};for(var o in e)e.hasOwnProperty(o)&&o!==yk&&(t[o]=pt(e[o]))}return t}function Dt(e,t,n){if(!ht(t)||!ht(e))return n?pt(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==yk){var a=e[r],i=t[r];ht(i)&&ht(a)&&!Re(i)&&!Re(a)&&!ud(i)&&!ud(a)&&!Ix(i)&&!Ix(a)&&!Rf(i)&&!Rf(a)?Dt(a,i,n):(n||!(r in e))&&(e[r]=pt(t[r]))}return e}function d1(e,t){for(var n=e[0],r=1,a=e.length;r<a;r++)n=Dt(n,e[r],t);return n}function Ie(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==yk&&(e[n]=t[n]);return e}function ft(e,t,n){for(var r=Gt(t),a=0;a<r.length;a++){var i=r[a];(n?t[i]!=null:e[i]==null)&&(e[i]=t[i])}return e}var HEe=Vi.createCanvas;function $t(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n}return-1}function _k(e,t){var n=e.prototype;function r(){}r.prototype=t.prototype,e.prototype=new r;for(var a in n)n.hasOwnProperty(a)&&(e.prototype[a]=n[a]);e.prototype.constructor=e,e.superClass=t}function Vn(e,t,n){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(t),a=0;a<r.length;a++){var i=r[a];i!=="constructor"&&(n?t[i]!=null:e[i]==null)&&(e[i]=t[i])}else ft(e,t,n)}function Cr(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function F(e,t,n){if(e&&t)if(e.forEach&&e.forEach===BEe)e.forEach(t,n);else if(e.length===+e.length)for(var r=0,a=e.length;r<a;r++)t.call(n,e[r],r,e);else for(var i in e)e.hasOwnProperty(i)&&t.call(n,e[i],i,e)}function Oe(e,t,n){if(!e)return[];if(!t)return h1(e);if(e.map&&e.map===zEe)return e.map(t,n);for(var r=[],a=0,i=e.length;a<i;a++)r.push(t.call(n,e[a],a,e));return r}function ui(e,t,n,r){if(e&&t){for(var a=0,i=e.length;a<i;a++)n=t.call(r,n,e[a],a,e);return n}}function ln(e,t,n){if(!e)return[];if(!t)return h1(e);if(e.filter&&e.filter===VEe)return e.filter(t,n);for(var r=[],a=0,i=e.length;a<i;a++)t.call(n,e[a],a,e)&&r.push(e[a]);return r}function K6(e,t,n){if(e&&t){for(var r=0,a=e.length;r<a;r++)if(t.call(n,e[r],r,e))return e[r]}}function Gt(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}function GEe(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return e.apply(t,n.concat(mk.call(arguments)))}}var et=Qg&&ut(Qg.bind)?Qg.call.bind(Qg.bind):GEe;function xt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(this,t.concat(mk.call(arguments)))}}function Re(e){return Array.isArray?Array.isArray(e):Ed.call(e)==="[object Array]"}function ut(e){return typeof e=="function"}function Je(e){return typeof e=="string"}function T0(e){return Ed.call(e)==="[object String]"}function Qt(e){return typeof e=="number"}function ht(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function Ix(e){return!!G6[Ed.call(e)]}function _a(e){return!!W6[Ed.call(e)]}function ud(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function ig(e){return e.colorStops!=null}function U6(e){return e.image!=null}function Y6(e){return Ed.call(e)==="[object RegExp]"}function cd(e){return e!==e}function rr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e.length;n<r;n++)if(e[n]!=null)return e[n]}function Lt(e,t){return e??t}function Ri(e,t,n){return e??t??n}function h1(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return mk.apply(e,t)}function v1(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 Nr(e,t){if(!e)throw new Error(t)}function Za(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var j6="__ec_primitive__";function up(e){e[j6]=!0}function Rf(e){return e[j6]}var WEe=function(){function e(){this.data={}}return e.prototype.delete=function(t){var n=this.has(t);return n&&delete this.data[t],n},e.prototype.has=function(t){return this.data.hasOwnProperty(t)},e.prototype.get=function(t){return this.data[t]},e.prototype.set=function(t,n){return this.data[t]=n,this},e.prototype.keys=function(){return Gt(this.data)},e.prototype.forEach=function(t){var n=this.data;for(var r in n)n.hasOwnProperty(r)&&t(n[r],r)},e}(),q6=typeof Map=="function";function KEe(){return q6?new Map:new WEe}var X6=function(){function e(t){var n=Re(t);this.data=KEe();var r=this;t instanceof e?t.each(a):t&&F(t,a);function a(i,o){n?r.set(i,o):r.set(o,i)}}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,n){return this.data.set(t,n),n},e.prototype.each=function(t,n){this.data.forEach(function(r,a){t.call(n,r,a)})},e.prototype.keys=function(){var t=this.data.keys();return q6?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e}();function ot(e){return new X6(e)}function cp(e,t){for(var n=new e.constructor(e.length+t.length),r=0;r<e.length;r++)n[r]=e[r];for(var a=e.length,r=0;r<t.length;r++)n[r+a]=t[r];return n}function og(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&Ie(n,t),n}function wk(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function nt(e,t){return e.hasOwnProperty(t)}function Nn(){}var fv=180/Math.PI;const UEe=Object.freeze(Object.defineProperty({__proto__:null,HashMap:X6,RADIAN_TO_DEGREE:fv,assert:Nr,bind:et,clone:pt,concatArray:cp,createCanvas:HEe,createHashMap:ot,createObject:og,curry:xt,defaults:ft,disableUserSelect:wk,each:F,eqNaN:cd,extend:Ie,filter:ln,find:K6,guid:bk,hasOwn:nt,indexOf:$t,inherits:_k,isArray:Re,isArrayLike:Cr,isBuiltInObject:Ix,isDom:ud,isFunction:ut,isGradientObject:ig,isImagePatternObject:U6,isNumber:Qt,isObject:ht,isPrimitive:Rf,isRegExp:Y6,isString:Je,isStringSafe:T0,isTypedArray:_a,keys:Gt,logError:f1,map:Oe,merge:Dt,mergeAll:d1,mixin:Vn,noop:Nn,normalizeCssArray:v1,reduce:ui,retrieve:rr,retrieve2:Lt,retrieve3:Ri,setAsPrimitive:up,slice:h1,trim:Za},Symbol.toStringTag,{value:"Module"}));function Dl(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function Dr(e,t){return e[0]=t[0],e[1]=t[1],e}function po(e){return[e[0],e[1]]}function Z6(e,t,n){return e[0]=t,e[1]=n,e}function Dx(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function M0(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e}function Ws(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function fp(e){return Math.sqrt(Sk(e))}var YEe=fp;function Sk(e){return e[0]*e[0]+e[1]*e[1]}var jEe=Sk;function qEe(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e}function XEe(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e}function ZEe(e,t){return e[0]*t[0]+e[1]*t[1]}function dv(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function Cc(e,t){var n=fp(t);return n===0?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function k0(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var Go=k0;function J6(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var tl=J6;function JEe(e,t){return e[0]=-t[0],e[1]=-t[1],e}function hv(e,t,n,r){return e[0]=t[0]+r*(n[0]-t[0]),e[1]=t[1]+r*(n[1]-t[1]),e}function hr(e,t,n){var r=t[0],a=t[1];return e[0]=n[0]*r+n[2]*a+n[4],e[1]=n[1]*r+n[3]*a+n[5],e}function Wo(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function Ko(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}const QEe=Object.freeze(Object.defineProperty({__proto__:null,add:Dx,applyTransform:hr,clone:po,copy:Dr,create:Dl,dist:Go,distSquare:tl,distance:k0,distanceSquare:J6,div:XEe,dot:ZEe,len:fp,lenSquare:Sk,length:YEe,lengthSquare:jEe,lerp:hv,max:Ko,min:Wo,mul:qEe,negate:JEe,normalize:Cc,scale:dv,scaleAndAdd:M0,set:Z6,sub:Ws},Symbol.toStringTag,{value:"Module"}));var Nc=function(){function e(t,n){this.target=t,this.topTarget=n&&n.topTarget}return e}(),eIe=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 n=t.target;n&&!n.draggable;)n=n.parent||n.__hostTarget;n&&(this._draggingTarget=n,n.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Nc(n,t),"dragstart",t.event))},e.prototype._drag=function(t){var n=this._draggingTarget;if(n){var r=t.offsetX,a=t.offsetY,i=r-this._x,o=a-this._y;this._x=r,this._y=a,n.drift(i,o,t),this.handler.dispatchToElement(new Nc(n,t),"drag",t.event);var s=this.handler.findHover(r,a,n).target,l=this._dropTarget;this._dropTarget=s,n!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Nc(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new Nc(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var n=this._draggingTarget;n&&(n.dragging=!1),this.handler.dispatchToElement(new Nc(n,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Nc(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e}();const tIe=eIe;var nIe=function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,n,r,a){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof n=="function"&&(a=r,r=n,n=null),!r||!t)return this;var o=this._$eventProcessor;n!=null&&o&&o.normalizeQuery&&(n=o.normalizeQuery(n)),i[t]||(i[t]=[]);for(var s=0;s<i[t].length;s++)if(i[t][s].h===r)return this;var l={h:r,query:n,ctx:a||this,callAtLast:r.zrEventfulCallAtLast},u=i[t].length-1,c=i[t][u];return c&&c.callAtLast?i[t].splice(u,0,l):i[t].push(l),this},e.prototype.isSilent=function(t){var n=this._$handlers;return!n||!n[t]||!n[t].length},e.prototype.off=function(t,n){var r=this._$handlers;if(!r)return this;if(!t)return this._$handlers={},this;if(n){if(r[t]){for(var a=[],i=0,o=r[t].length;i<o;i++)r[t][i].h!==n&&a.push(r[t][i]);r[t]=a}r[t]&&r[t].length===0&&delete r[t]}else delete r[t];return this},e.prototype.trigger=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(!this._$handlers)return this;var a=this._$handlers[t],i=this._$eventProcessor;if(a)for(var o=n.length,s=a.length,l=0;l<s;l++){var u=a[l];if(!(i&&i.filter&&u.query!=null&&!i.filter(t,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,n[0]);break;case 2:u.h.call(u.ctx,n[0],n[1]);break;default:u.h.apply(u.ctx,n);break}}return i&&i.afterTrigger&&i.afterTrigger(t),this},e.prototype.triggerWithContext=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(!this._$handlers)return this;var a=this._$handlers[t],i=this._$eventProcessor;if(a)for(var o=n.length,s=n[o-1],l=a.length,u=0;u<l;u++){var c=a[u];if(!(i&&i.filter&&c.query!=null&&!i.filter(t,c.query)))switch(o){case 0:c.h.call(s);break;case 1:c.h.call(s,n[0]);break;case 2:c.h.call(s,n[0],n[1]);break;default:c.h.apply(s,n.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(t),this},e}();const fi=nIe;var rIe=Math.log(2);function Px(e,t,n,r,a,i){var o=r+"-"+a,s=e.length;if(i.hasOwnProperty(o))return i[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~a)/rIe);return e[n][l]}for(var u=r|1<<n,c=n+1;r&1<<c;)c++;for(var f=0,d=0,h=0;d<s;d++){var v=1<<d;v&a||(f+=(h%2?-1:1)*e[n][d]*Px(e,t-1,c,u,a|v,i),h++)}return i[o]=f,f}function kL(e,t){var n=[[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]]],r={},a=Px(n,8,0,0,0,r);if(a!==0){for(var i=[],o=0;o<8;o++)for(var s=0;s<8;s++)i[s]==null&&(i[s]=0),i[s]+=((o+s)%2?-1:1)*Px(n,7,o===0?1:0,1<<o,1<<s,r)/a*t[o];return function(l,u,c){var f=u*i[6]+c*i[7]+1;l[0]=(u*i[0]+c*i[1]+i[2])/f,l[1]=(u*i[3]+c*i[4]+i[5])/f}}}var AL="___zrEVENTSAVED",N_=[];function aIe(e,t,n,r,a){return Lx(N_,t,r,a,!0)&&Lx(e,n,N_[0],N_[1])}function Lx(e,t,n,r,a){if(t.getBoundingClientRect&&Jt.domSupported&&!Q6(t)){var i=t[AL]||(t[AL]={}),o=iIe(t,i),s=oIe(o,i,a);if(s)return s(e,n,r),!0}return!1}function iIe(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var r=["left","right"],a=["top","bottom"],i=0;i<4;i++){var o=document.createElement("div"),s=o.style,l=i%2,u=(i>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",a[u]+":0",r[1-l]+":auto",a[1-u]+":auto",""].join("!important;"),e.appendChild(o),n.push(o)}return n}function oIe(e,t,n){for(var r=n?"invTrans":"trans",a=t[r],i=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=e[u].getBoundingClientRect(),f=2*u,d=c.left,h=c.top;o.push(d,h),l=l&&i&&d===i[f]&&h===i[f+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&a?a:(t.srcCoords=o,t[r]=n?kL(s,o):kL(o,s))}function Q6(e){return e.nodeName.toUpperCase()==="CANVAS"}var sIe=/([&<>"'])/g,lIe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Ur(e){return e==null?"":(e+"").replace(sIe,function(t,n){return lIe[n]})}var uIe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,B_=[],cIe=Jt.browser.firefox&&+Jt.browser.version.split(".")[0]<39;function Rx(e,t,n,r){return n=n||{},r?EL(e,t,n):cIe&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX!=null?(n.zrX=t.offsetX,n.zrY=t.offsetY):EL(e,t,n),n}function EL(e,t,n){if(Jt.domSupported&&e.getBoundingClientRect){var r=t.clientX,a=t.clientY;if(Q6(e)){var i=e.getBoundingClientRect();n.zrX=r-i.left,n.zrY=a-i.top;return}else if(Lx(B_,e,r,a)){n.zrX=B_[0],n.zrY=B_[1];return}}n.zrX=n.zrY=0}function Ck(e){return e||window.event}function Fa(e,t,n){if(t=Ck(t),t.zrX!=null)return t;var r=t.type,a=r&&r.indexOf("touch")>=0;if(a){var o=r!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&Rx(e,o,t,n)}else{Rx(e,t,t,n);var i=fIe(t);t.zrDelta=i?i/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&uIe.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function fIe(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(n==null||r==null)return t;var a=Math.abs(r!==0?r:n),i=r>0?-1:r<0?1:n>0?-1:1;return 3*a*i}function Ox(e,t,n,r){e.addEventListener(t,n,r)}function dIe(e,t,n,r){e.removeEventListener(t,n,r)}var ns=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function IL(e){return e.which===2||e.which===3}var hIe=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,n,r){return this._doTrack(t,n,r),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,n,r){var a=t.touches;if(a){for(var i={points:[],touches:[],target:n,event:t},o=0,s=a.length;o<s;o++){var l=a[o],u=Rx(r,l,{});i.points.push([u.zrX,u.zrY]),i.touches.push(l)}this._track.push(i)}},e.prototype._recognize=function(t){for(var n in V_)if(V_.hasOwnProperty(n)){var r=V_[n](this._track,t);if(r)return r}},e}();function DL(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function vIe(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var V_={pinch:function(e,t){var n=e.length;if(n){var r=(e[n-1]||{}).points,a=(e[n-2]||{}).points||r;if(a&&a.length>1&&r&&r.length>1){var i=DL(r)/DL(a);!isFinite(i)&&(i=1),t.pinchScale=i;var o=vIe(r);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function La(){return[1,0,0,1,0,0]}function sg(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function p1(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 go(e,t,n){var r=t[0]*n[0]+t[2]*n[1],a=t[1]*n[0]+t[3]*n[1],i=t[0]*n[2]+t[2]*n[3],o=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],l=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=a,e[2]=i,e[3]=o,e[4]=s,e[5]=l,e}function zi(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function Pl(e,t,n){var r=t[0],a=t[2],i=t[4],o=t[1],s=t[3],l=t[5],u=Math.sin(n),c=Math.cos(n);return e[0]=r*c+o*u,e[1]=-r*u+o*c,e[2]=a*c+s*u,e[3]=-a*u+c*s,e[4]=c*i+u*l,e[5]=c*l-u*i,e}function g1(e,t,n){var r=n[0],a=n[1];return e[0]=t[0]*r,e[1]=t[1]*a,e[2]=t[2]*r,e[3]=t[3]*a,e[4]=t[4]*r,e[5]=t[5]*a,e}function xc(e,t){var n=t[0],r=t[2],a=t[4],i=t[1],o=t[3],s=t[5],l=n*o-i*r;return l?(l=1/l,e[0]=o*l,e[1]=-i*l,e[2]=-r*l,e[3]=n*l,e[4]=(r*s-o*a)*l,e[5]=(i*a-n*s)*l,e):null}function eH(e){var t=La();return p1(t,e),t}const pIe=Object.freeze(Object.defineProperty({__proto__:null,clone:eH,copy:p1,create:La,identity:sg,invert:xc,mul:go,rotate:Pl,scale:g1,translate:zi},Symbol.toStringTag,{value:"Module"}));var gIe=function(){function e(t,n){this.x=t||0,this.y=n||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,n){return this.x=t,this.y=n,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,n){this.x+=t.x*n,this.y+=t.y*n},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 n=this.x-t.x,r=this.y-t.y;return Math.sqrt(n*n+r*r)},e.prototype.distanceSquare=function(t){var n=this.x-t.x,r=this.y-t.y;return n*n+r*r},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var n=this.x,r=this.y;return this.x=t[0]*n+t[2]*r+t[4],this.y=t[1]*n+t[3]*r+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,n,r){t.x=n,t.y=r},e.copy=function(t,n){t.x=n.x,t.y=n.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,n){return t.x*n.x+t.y*n.y},e.add=function(t,n,r){t.x=n.x+r.x,t.y=n.y+r.y},e.sub=function(t,n,r){t.x=n.x-r.x,t.y=n.y-r.y},e.scale=function(t,n,r){t.x=n.x*r,t.y=n.y*r},e.scaleAndAdd=function(t,n,r,a){t.x=n.x+r.x*a,t.y=n.y+r.y*a},e.lerp=function(t,n,r,a){var i=1-a;t.x=i*n.x+a*r.x,t.y=i*n.y+a*r.y},e}();const Pt=gIe;var em=Math.min,tm=Math.max,Hl=new Pt,Gl=new Pt,Wl=new Pt,Kl=new Pt,ih=new Pt,oh=new Pt,mIe=function(){function e(t,n,r,a){r<0&&(t=t+r,r=-r),a<0&&(n=n+a,a=-a),this.x=t,this.y=n,this.width=r,this.height=a}return e.prototype.union=function(t){var n=em(t.x,this.x),r=em(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=tm(t.x+t.width,this.x+this.width)-n:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=tm(t.y+t.height,this.y+this.height)-r:this.height=t.height,this.x=n,this.y=r},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var n=this,r=t.width/n.width,a=t.height/n.height,i=La();return zi(i,i,[-n.x,-n.y]),g1(i,i,[r,a]),zi(i,i,[t.x,t.y]),i},e.prototype.intersect=function(t,n){if(!t)return!1;t instanceof e||(t=e.create(t));var r=this,a=r.x,i=r.x+r.width,o=r.y,s=r.y+r.height,l=t.x,u=t.x+t.width,c=t.y,f=t.y+t.height,d=!(i<l||u<a||s<c||f<o);if(n){var h=1/0,v=0,p=Math.abs(i-l),g=Math.abs(u-a),m=Math.abs(s-c),b=Math.abs(f-o),_=Math.min(p,g),w=Math.min(m,b);i<l||u<a?_>v&&(v=_,p<g?Pt.set(oh,-p,0):Pt.set(oh,g,0)):_<h&&(h=_,p<g?Pt.set(ih,p,0):Pt.set(ih,-g,0)),s<c||f<o?w>v&&(v=w,m<b?Pt.set(oh,0,-m):Pt.set(oh,0,b)):_<h&&(h=_,m<b?Pt.set(ih,0,m):Pt.set(ih,0,-b))}return n&&Pt.copy(n,d?ih:oh),d},e.prototype.contain=function(t,n){var r=this;return t>=r.x&&t<=r.x+r.width&&n>=r.y&&n<=r.y+r.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,n){t.x=n.x,t.y=n.y,t.width=n.width,t.height=n.height},e.applyTransform=function(t,n,r){if(!r){t!==n&&e.copy(t,n);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var a=r[0],i=r[3],o=r[4],s=r[5];t.x=n.x*a+o,t.y=n.y*i+s,t.width=n.width*a,t.height=n.height*i,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Hl.x=Wl.x=n.x,Hl.y=Kl.y=n.y,Gl.x=Kl.x=n.x+n.width,Gl.y=Wl.y=n.y+n.height,Hl.transform(r),Kl.transform(r),Gl.transform(r),Wl.transform(r),t.x=em(Hl.x,Gl.x,Wl.x,Kl.x),t.y=em(Hl.y,Gl.y,Wl.y,Kl.y);var l=tm(Hl.x,Gl.x,Wl.x,Kl.x),u=tm(Hl.y,Gl.y,Wl.y,Kl.y);t.width=l-t.x,t.height=u-t.y},e}();const Rt=mIe;var tH="silent";function yIe(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:bIe}}function bIe(){ns(this.event)}var _Ie=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.handler=null,n}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(fi),sh=function(){function e(t,n){this.x=t,this.y=n}return e}(),wIe=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],z_=new Rt(0,0,0,0),nH=function(e){ge(t,e);function t(n,r,a,i,o){var s=e.call(this)||this;return s._hovered=new sh(0,0),s.storage=n,s.painter=r,s.painterRoot=i,s._pointerSize=o,a=a||new _Ie,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new tIe(s),s}return t.prototype.setHandlerProxy=function(n){this.proxy&&this.proxy.dispose(),n&&(F(wIe,function(r){n.on&&n.on(r,this[r],this)},this),n.handler=this),this.proxy=n},t.prototype.mousemove=function(n){var r=n.zrX,a=n.zrY,i=rH(this,r,a),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new sh(r,a):this.findHover(r,a),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",n),this.dispatchToElement(l,"mousemove",n),u&&u!==s&&this.dispatchToElement(l,"mouseover",n)},t.prototype.mouseout=function(n){var r=n.zrEventControl;r!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",n),r!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:n})},t.prototype.resize=function(){this._hovered=new sh(0,0)},t.prototype.dispatch=function(n,r){var a=this[n];a&&a.call(this,r)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(n){var r=this.proxy;r.setCursor&&r.setCursor(n)},t.prototype.dispatchToElement=function(n,r,a){n=n||{};var i=n.target;if(!(i&&i.silent)){for(var o="on"+r,s=yIe(r,n,a);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(r,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(r,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(r,s)}))}},t.prototype.findHover=function(n,r,a){var i=this.storage.getDisplayList(),o=new sh(n,r);if(PL(i,o,n,r,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new Rt(n-u,r-u,l,l),f=i.length-1;f>=0;f--){var d=i[f];d!==a&&!d.ignore&&!d.ignoreCoarsePointer&&(!d.parent||!d.parent.ignoreCoarsePointer)&&(z_.copy(d.getBoundingRect()),d.transform&&z_.applyTransform(d.transform),z_.intersect(c)&&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 b=n+g*Math.cos(m),_=r+g*Math.sin(m);if(PL(s,o,b,_,a),o.target)return o}}return o},t.prototype.processGesture=function(n,r){this._gestureMgr||(this._gestureMgr=new hIe);var a=this._gestureMgr;r==="start"&&a.clear();var i=a.recognize(n,this.findHover(n.zrX,n.zrY,null).target,this.proxy.dom);if(r==="end"&&a.clear(),i){var o=i.type;n.gestureEvent=o;var s=new sh;s.target=i.target,this.dispatchToElement(s,o,i.event)}},t}(fi);F(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){nH.prototype[e]=function(t){var n=t.zrX,r=t.zrY,a=rH(this,n,r),i,o;if((e!=="mouseup"||!a)&&(i=this.findHover(n,r),o=i.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||Go(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,e,t)}});function SIe(e,t,n){if(e[e.rectHover?"rectContain":"contain"](t,n)){for(var r=e,a=void 0,i=!1;r;){if(r.ignoreClip&&(i=!0),!i){var o=r.getClipPath();if(o&&!o.contain(t,n))return!1;r.silent&&(a=!0)}var s=r.__hostTarget;r=s||r.parent}return a?tH:!0}return!1}function PL(e,t,n,r,a){for(var i=e.length-1;i>=0;i--){var o=e[i],s=void 0;if(o!==a&&!o.ignore&&(s=SIe(o,n,r))&&(!t.topTarget&&(t.topTarget=o),s!==tH)){t.target=o;break}}}function rH(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}const CIe=nH;var aH=32,lh=7;function xIe(e){for(var t=0;e>=aH;)t|=e&1,e>>=1;return e+t}function LL(e,t,n,r){var a=t+1;if(a===n)return 1;if(r(e[a++],e[t])<0){for(;a<n&&r(e[a],e[a-1])<0;)a++;TIe(e,t,a)}else for(;a<n&&r(e[a],e[a-1])>=0;)a++;return a-t}function TIe(e,t,n){for(n--;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}function RL(e,t,n,r,a){for(r===t&&r++;r<n;r++){for(var i=e[r],o=t,s=r,l;o<s;)l=o+s>>>1,a(i,e[l])<0?s=l:o=l+1;var u=r-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]=i}}function F_(e,t,n,r,a,i){var o=0,s=0,l=1;if(i(e,t[n+a])>0){for(s=r-a;l<s&&i(e,t[n+a+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;l<s&&i(e,t[n+a-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o<l;){var c=o+(l-o>>>1);i(e,t[n+c])>0?o=c+1:l=c}return l}function H_(e,t,n,r,a,i){var o=0,s=0,l=1;if(i(e,t[n+a])<0){for(s=a+1;l<s&&i(e,t[n+a-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=r-a;l<s&&i(e,t[n+a+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o<l;){var c=o+(l-o>>>1);i(e,t[n+c])<0?l=c:o=c+1}return l}function MIe(e,t){var n=lh,r,a,i=0;e.length;var o=[];r=[],a=[];function s(h,v){r[i]=h,a[i]=v,i+=1}function l(){for(;i>1;){var h=i-2;if(h>=1&&a[h-1]<=a[h]+a[h+1]||h>=2&&a[h-2]<=a[h]+a[h-1])a[h-1]<a[h+1]&&h--;else if(a[h]>a[h+1])break;c(h)}}function u(){for(;i>1;){var h=i-2;h>0&&a[h-1]<a[h+1]&&h--,c(h)}}function c(h){var v=r[h],p=a[h],g=r[h+1],m=a[h+1];a[h]=p+m,h===i-3&&(r[h+1]=r[h+2],a[h+1]=a[h+2]),i--;var b=H_(e[g],e,v,p,0,t);v+=b,p-=b,p!==0&&(m=F_(e[v+p-1],e,g,m,m-1,t),m!==0&&(p<=m?f(v,p,g,m):d(v,p,g,m)))}function f(h,v,p,g){var m=0;for(m=0;m<v;m++)o[m]=e[h+m];var b=0,_=p,w=h;if(e[w++]=e[_++],--g===0){for(m=0;m<v;m++)e[w+m]=o[b+m];return}if(v===1){for(m=0;m<g;m++)e[w+m]=e[_+m];e[w+g]=o[b];return}for(var C=n,S,x,T;;){S=0,x=0,T=!1;do if(t(e[_],o[b])<0){if(e[w++]=e[_++],x++,S=0,--g===0){T=!0;break}}else if(e[w++]=o[b++],S++,x=0,--v===1){T=!0;break}while((S|x)<C);if(T)break;do{if(S=H_(e[_],o,b,v,0,t),S!==0){for(m=0;m<S;m++)e[w+m]=o[b+m];if(w+=S,b+=S,v-=S,v<=1){T=!0;break}}if(e[w++]=e[_++],--g===0){T=!0;break}if(x=F_(o[b],e,_,g,0,t),x!==0){for(m=0;m<x;m++)e[w+m]=e[_+m];if(w+=x,_+=x,g-=x,g===0){T=!0;break}}if(e[w++]=o[b++],--v===1){T=!0;break}C--}while(S>=lh||x>=lh);if(T)break;C<0&&(C=0),C+=2}if(n=C,n<1&&(n=1),v===1){for(m=0;m<g;m++)e[w+m]=e[_+m];e[w+g]=o[b]}else{if(v===0)throw new Error;for(m=0;m<v;m++)e[w+m]=o[b+m]}}function d(h,v,p,g){var m=0;for(m=0;m<g;m++)o[m]=e[p+m];var b=h+v-1,_=g-1,w=p+g-1,C=0,S=0;if(e[w--]=e[b--],--v===0){for(C=w-(g-1),m=0;m<g;m++)e[C+m]=o[m];return}if(g===1){for(w-=v,b-=v,S=w+1,C=b+1,m=v-1;m>=0;m--)e[S+m]=e[C+m];e[w]=o[_];return}for(var x=n;;){var T=0,M=0,A=!1;do if(t(o[_],e[b])<0){if(e[w--]=e[b--],T++,M=0,--v===0){A=!0;break}}else if(e[w--]=o[_--],M++,T=0,--g===1){A=!0;break}while((T|M)<x);if(A)break;do{if(T=v-H_(o[_],e,h,v,v-1,t),T!==0){for(w-=T,b-=T,v-=T,S=w+1,C=b+1,m=T-1;m>=0;m--)e[S+m]=e[C+m];if(v===0){A=!0;break}}if(e[w--]=o[_--],--g===1){A=!0;break}if(M=g-F_(e[b],o,0,g,g-1,t),M!==0){for(w-=M,_-=M,g-=M,S=w+1,C=_+1,m=0;m<M;m++)e[S+m]=o[C+m];if(g<=1){A=!0;break}}if(e[w--]=e[b--],--v===0){A=!0;break}x--}while(T>=lh||M>=lh);if(A)break;x<0&&(x=0),x+=2}if(n=x,n<1&&(n=1),g===1){for(w-=v,b-=v,S=w+1,C=b+1,m=v-1;m>=0;m--)e[S+m]=e[C+m];e[w]=o[_]}else{if(g===0)throw new Error;for(C=w-(g-1),m=0;m<g;m++)e[C+m]=o[m]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Py(e,t,n,r){n||(n=0),r||(r=e.length);var a=r-n;if(!(a<2)){var i=0;if(a<aH){i=LL(e,n,r,t),RL(e,n,r,n+i,t);return}var o=MIe(e,t),s=xIe(a);do{if(i=LL(e,n,r,t),i<s){var l=a;l>s&&(l=s),RL(e,n,n+l,n+i,t),i=l}o.pushRun(n,i),o.mergeRuns(),a-=i,n+=i}while(a!==0);o.forceMergeRuns()}}var Ta=1,Bh=2,cf=4,OL=!1;function G_(){OL||(OL=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function $L(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var kIe=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=$L}return e.prototype.traverse=function(t,n){for(var r=0;r<this._roots.length;r++)this._roots[r].traverse(t,n)},e.prototype.getDisplayList=function(t,n){n=n||!1;var r=this._displayList;return(t||!r.length)&&this.updateDisplayList(n),r},e.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var n=this._roots,r=this._displayList,a=0,i=n.length;a<i;a++)this._updateAndAddDisplayable(n[a],null,t);r.length=this._displayListLen,Py(r,$L)},e.prototype._updateAndAddDisplayable=function(t,n,r){if(!(t.ignore&&!r)){t.beforeUpdate(),t.update(),t.afterUpdate();var a=t.getClipPath();if(t.ignoreClip)n=null;else if(a){n?n=n.slice():n=[];for(var i=a,o=t;i;)i.parent=o,i.updateTransform(),n.push(i),o=i,i=i.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),l=0;l<s.length;l++){var u=s[l];t.__dirty&&(u.__dirty|=Ta),this._updateAndAddDisplayable(u,n,r)}t.__dirty=0}else{var c=t;n&&n.length?c.__clipPaths=n:c.__clipPaths&&c.__clipPaths.length>0&&(c.__clipPaths=[]),isNaN(c.z)&&(G_(),c.z=0),isNaN(c.z2)&&(G_(),c.z2=0),isNaN(c.zlevel)&&(G_(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var f=t.getDecalElement&&t.getDecalElement();f&&this._updateAndAddDisplayable(f,n,r);var d=t.getTextGuideLine();d&&this._updateAndAddDisplayable(d,n,r);var h=t.getTextContent();h&&this._updateAndAddDisplayable(h,n,r)}},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 n=0,r=t.length;n<r;n++)this.delRoot(t[n]);return}var a=$t(this._roots,t);a>=0&&this._roots.splice(a,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 AIe=kIe;var iH;iH=Jt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};const $x=iH;var Ly={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,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)))},elasticOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?-.5*(n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)):n*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*.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-Ly.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?Ly.bounceIn(e*2)*.5:Ly.bounceOut(e*2-1)*.5+.5}};const oH=Ly;var nm=Math.pow,nl=Math.sqrt,A0=1e-8,sH=1e-4,NL=nl(3),rm=1/3,oo=Dl(),Ua=Dl(),Of=Dl();function Ks(e){return e>-A0&&e<A0}function lH(e){return e>A0||e<-A0}function nr(e,t,n,r,a){var i=1-a;return i*i*(i*e+3*a*t)+a*a*(a*r+3*i*n)}function BL(e,t,n,r,a){var i=1-a;return 3*(((t-e)*i+2*(n-t)*a)*i+(r-n)*a*a)}function E0(e,t,n,r,a,i){var o=r+3*(t-n)-e,s=3*(n-t*2+e),l=3*(t-e),u=e-a,c=s*s-3*o*l,f=s*l-9*o*u,d=l*l-3*s*u,h=0;if(Ks(c)&&Ks(f))if(Ks(s))i[0]=0;else{var v=-l/s;v>=0&&v<=1&&(i[h++]=v)}else{var p=f*f-4*c*d;if(Ks(p)){var g=f/c,v=-s/o+g,m=-g/2;v>=0&&v<=1&&(i[h++]=v),m>=0&&m<=1&&(i[h++]=m)}else if(p>0){var b=nl(p),_=c*s+1.5*o*(-f+b),w=c*s+1.5*o*(-f-b);_<0?_=-nm(-_,rm):_=nm(_,rm),w<0?w=-nm(-w,rm):w=nm(w,rm);var v=(-s-(_+w))/(3*o);v>=0&&v<=1&&(i[h++]=v)}else{var C=(2*c*s-3*o*f)/(2*nl(c*c*c)),S=Math.acos(C)/3,x=nl(c),T=Math.cos(S),v=(-s-2*x*T)/(3*o),m=(-s+x*(T+NL*Math.sin(S)))/(3*o),M=(-s+x*(T-NL*Math.sin(S)))/(3*o);v>=0&&v<=1&&(i[h++]=v),m>=0&&m<=1&&(i[h++]=m),M>=0&&M<=1&&(i[h++]=M)}}return h}function uH(e,t,n,r,a){var i=6*n-12*t+6*e,o=9*t+3*r-3*e-9*n,s=3*t-3*e,l=0;if(Ks(o)){if(lH(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var c=i*i-4*o*s;if(Ks(c))a[0]=-i/(2*o);else if(c>0){var f=nl(c),u=(-i+f)/(2*o),d=(-i-f)/(2*o);u>=0&&u<=1&&(a[l++]=u),d>=0&&d<=1&&(a[l++]=d)}}return l}function gl(e,t,n,r,a,i){var o=(t-e)*a+e,s=(n-t)*a+t,l=(r-n)*a+n,u=(s-o)*a+o,c=(l-s)*a+s,f=(c-u)*a+u;i[0]=e,i[1]=o,i[2]=u,i[3]=f,i[4]=f,i[5]=c,i[6]=l,i[7]=r}function cH(e,t,n,r,a,i,o,s,l,u,c){var f,d=.005,h=1/0,v,p,g,m;oo[0]=l,oo[1]=u;for(var b=0;b<1;b+=.05)Ua[0]=nr(e,n,a,o,b),Ua[1]=nr(t,r,i,s,b),g=tl(oo,Ua),g<h&&(f=b,h=g);h=1/0;for(var _=0;_<32&&!(d<sH);_++)v=f-d,p=f+d,Ua[0]=nr(e,n,a,o,v),Ua[1]=nr(t,r,i,s,v),g=tl(Ua,oo),v>=0&&g<h?(f=v,h=g):(Of[0]=nr(e,n,a,o,p),Of[1]=nr(t,r,i,s,p),m=tl(Of,oo),p<=1&&m<h?(f=p,h=m):d*=.5);return c&&(c[0]=nr(e,n,a,o,f),c[1]=nr(t,r,i,s,f)),nl(h)}function EIe(e,t,n,r,a,i,o,s,l){for(var u=e,c=t,f=0,d=1/l,h=1;h<=l;h++){var v=h*d,p=nr(e,n,a,o,v),g=nr(t,r,i,s,v),m=p-u,b=g-c;f+=Math.sqrt(m*m+b*b),u=p,c=g}return f}function fr(e,t,n,r){var a=1-r;return a*(a*e+2*r*t)+r*r*n}function Nx(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function IIe(e,t,n,r,a){var i=e-2*t+n,o=2*(t-e),s=e-r,l=0;if(Ks(i)){if(lH(o)){var u=-s/o;u>=0&&u<=1&&(a[l++]=u)}}else{var c=o*o-4*i*s;if(Ks(c)){var u=-o/(2*i);u>=0&&u<=1&&(a[l++]=u)}else if(c>0){var f=nl(c),u=(-o+f)/(2*i),d=(-o-f)/(2*i);u>=0&&u<=1&&(a[l++]=u),d>=0&&d<=1&&(a[l++]=d)}}return l}function fH(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function dp(e,t,n,r,a){var i=(t-e)*r+e,o=(n-t)*r+t,s=(o-i)*r+i;a[0]=e,a[1]=i,a[2]=s,a[3]=s,a[4]=o,a[5]=n}function dH(e,t,n,r,a,i,o,s,l){var u,c=.005,f=1/0;oo[0]=o,oo[1]=s;for(var d=0;d<1;d+=.05){Ua[0]=fr(e,n,a,d),Ua[1]=fr(t,r,i,d);var h=tl(oo,Ua);h<f&&(u=d,f=h)}f=1/0;for(var v=0;v<32&&!(c<sH);v++){var p=u-c,g=u+c;Ua[0]=fr(e,n,a,p),Ua[1]=fr(t,r,i,p);var h=tl(Ua,oo);if(p>=0&&h<f)u=p,f=h;else{Of[0]=fr(e,n,a,g),Of[1]=fr(t,r,i,g);var m=tl(Of,oo);g<=1&&m<f?(u=g,f=m):c*=.5}}return l&&(l[0]=fr(e,n,a,u),l[1]=fr(t,r,i,u)),nl(f)}function DIe(e,t,n,r,a,i,o){for(var s=e,l=t,u=0,c=1/o,f=1;f<=o;f++){var d=f*c,h=fr(e,n,a,d),v=fr(t,r,i,d),p=h-s,g=v-l;u+=Math.sqrt(p*p+g*g),s=h,l=v}return u}var PIe=/cubic-bezier\(([0-9,\.e ]+)\)/;function xk(e){var t=e&&PIe.exec(e);if(t){var n=t[1].split(","),r=+Za(n[0]),a=+Za(n[1]),i=+Za(n[2]),o=+Za(n[3]);if(isNaN(r+a+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:E0(0,r,i,1,l,s)&&nr(0,a,o,1,s[0])}}}var LIe=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||Nn,this.ondestroy=t.ondestroy||Nn,this.onrestart=t.onrestart||Nn,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,n){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=n;return}var r=this._life,a=t-this._startTime-this._pausedTime,i=a/r;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=a%r;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=ut(t)?t:oH[t]||xk(t)},e}();const RIe=LIe;var hH=function(){function e(t){this.value=t}return e}(),OIe=function(){function e(){this._len=0}return e.prototype.insert=function(t){var n=new hH(t);return this.insertEntry(n),n},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 n=t.prev,r=t.next;n?n.next=r:this.head=r,r?r.prev=n:this.tail=n,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}(),$Ie=function(){function e(t){this._list=new OIe,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,n){var r=this._list,a=this._map,i=null;if(a[t]==null){var o=r.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=r.head;r.remove(l),delete a[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=n:s=new hH(n),s.key=t,r.insertEntry(s),a[t]=s}return i},e.prototype.get=function(t){var n=this._map[t],r=this._list;if(n!=null)return n!==r.tail&&(r.remove(n),r.insertEntry(n)),n.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}();const lg=$Ie;var VL={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 Oi(e){return e=Math.round(e),e<0?0:e>255?255:e}function NIe(e){return e=Math.round(e),e<0?0:e>360?360:e}function hp(e){return e<0?0:e>1?1:e}function W_(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Oi(parseFloat(t)/100*255):Oi(parseInt(t,10))}function qu(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?hp(parseFloat(t)/100):hp(parseFloat(t))}function K_(e,t,n){return n<0?n+=1:n>1&&(n-=1),n*6<1?e+(t-e)*n*6:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function Us(e,t,n){return e+(t-e)*n}function za(e,t,n,r,a){return e[0]=t,e[1]=n,e[2]=r,e[3]=a,e}function Bx(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var vH=new lg(20),am=null;function Bc(e,t){am&&Bx(am,t),am=vH.put(e,am||t.slice())}function Xr(e,t){if(e){t=t||[];var n=vH.get(e);if(n)return Bx(t,n);e=e+"";var r=e.replace(/ /g,"").toLowerCase();if(r in VL)return Bx(t,VL[r]),Bc(e,t),t;var a=r.length;if(r.charAt(0)==="#"){if(a===4||a===5){var i=parseInt(r.slice(1,4),16);if(!(i>=0&&i<=4095)){za(t,0,0,0,1);return}return za(t,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,a===5?parseInt(r.slice(4),16)/15:1),Bc(e,t),t}else if(a===7||a===9){var i=parseInt(r.slice(1,7),16);if(!(i>=0&&i<=16777215)){za(t,0,0,0,1);return}return za(t,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(r.slice(7),16)/255:1),Bc(e,t),t}return}var o=r.indexOf("("),s=r.indexOf(")");if(o!==-1&&s+1===a){var l=r.substr(0,o),u=r.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?za(t,+u[0],+u[1],+u[2],1):za(t,0,0,0,1);c=qu(u.pop());case"rgb":if(u.length>=3)return za(t,W_(u[0]),W_(u[1]),W_(u[2]),u.length===3?c:qu(u[3])),Bc(e,t),t;za(t,0,0,0,1);return;case"hsla":if(u.length!==4){za(t,0,0,0,1);return}return u[3]=qu(u[3]),Vx(u,t),Bc(e,t),t;case"hsl":if(u.length!==3){za(t,0,0,0,1);return}return Vx(u,t),Bc(e,t),t;default:return}}za(t,0,0,0,1)}}function Vx(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=qu(e[1]),a=qu(e[2]),i=a<=.5?a*(r+1):a+r-a*r,o=a*2-i;return t=t||[],za(t,Oi(K_(o,i,n+1/3)*255),Oi(K_(o,i,n)*255),Oi(K_(o,i,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function BIe(e){if(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,a=Math.min(t,n,r),i=Math.max(t,n,r),o=i-a,s=(i+a)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+a):u=o/(2-i-a);var c=((i-t)/6+o/2)/o,f=((i-n)/6+o/2)/o,d=((i-r)/6+o/2)/o;t===i?l=d-f:n===i?l=1/3+c-d:r===i&&(l=2/3+f-c),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return e[3]!=null&&h.push(e[3]),h}}function I0(e,t){var n=Xr(e);if(n){for(var r=0;r<3;r++)t<0?n[r]=n[r]*(1-t)|0:n[r]=(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return $i(n,n.length===4?"rgba":"rgb")}}function VIe(e){var t=Xr(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function vv(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){n=n||[];var r=e*(t.length-1),a=Math.floor(r),i=Math.ceil(r),o=t[a],s=t[i],l=r-a;return n[0]=Oi(Us(o[0],s[0],l)),n[1]=Oi(Us(o[1],s[1],l)),n[2]=Oi(Us(o[2],s[2],l)),n[3]=hp(Us(o[3],s[3],l)),n}}var zIe=vv;function Tk(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var r=e*(t.length-1),a=Math.floor(r),i=Math.ceil(r),o=Xr(t[a]),s=Xr(t[i]),l=r-a,u=$i([Oi(Us(o[0],s[0],l)),Oi(Us(o[1],s[1],l)),Oi(Us(o[2],s[2],l)),hp(Us(o[3],s[3],l))],"rgba");return n?{color:u,leftIndex:a,rightIndex:i,value:r}:u}}var FIe=Tk;function $f(e,t,n,r){var a=Xr(e);if(e)return a=BIe(a),t!=null&&(a[0]=NIe(t)),n!=null&&(a[1]=qu(n)),r!=null&&(a[2]=qu(r)),$i(Vx(a),"rgba")}function vp(e,t){var n=Xr(e);if(n&&t!=null)return n[3]=hp(t),$i(n,"rgba")}function $i(e,t){if(!(!e||!e.length)){var n=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(n+=","+e[3]),t+"("+n+")"}}function pp(e,t){var n=Xr(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}function HIe(){return $i([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}const GIe=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:vv,fastMapToColor:zIe,lerp:Tk,lift:I0,lum:pp,mapToColor:FIe,modifyAlpha:vp,modifyHSL:$f,parse:Xr,random:HIe,stringify:$i,toHex:VIe},Symbol.toStringTag,{value:"Module"}));var D0=Math.round;function gp(e){var t;if(!e||e==="transparent")e="none";else if(typeof e=="string"&&e.indexOf("rgba")>-1){var n=Xr(e);n&&(e="rgb("+n[0]+","+n[1]+","+n[2]+")",t=n[3])}return{color:e,opacity:t??1}}var zL=1e-4;function Ys(e){return e<zL&&e>-zL}function im(e){return D0(e*1e3)/1e3}function zx(e){return D0(e*1e4)/1e4}function WIe(e){return"matrix("+im(e[0])+","+im(e[1])+","+im(e[2])+","+im(e[3])+","+zx(e[4])+","+zx(e[5])+")"}var KIe={left:"start",right:"end",center:"middle",middle:"middle"};function UIe(e,t,n){return n==="top"?e+=t/2:n==="bottom"&&(e-=t/2),e}function YIe(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function jIe(e){var t=e.style,n=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}function pH(e){return e&&!!e.image}function qIe(e){return e&&!!e.svgElement}function Mk(e){return pH(e)||qIe(e)}function gH(e){return e.type==="linear"}function mH(e){return e.type==="radial"}function yH(e){return e&&(e.type==="linear"||e.type==="radial")}function m1(e){return"url(#"+e+")"}function bH(e){var t=e.getGlobalScale(),n=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function _H(e){var t=e.x||0,n=e.y||0,r=(e.rotation||0)*fv,a=Lt(e.scaleX,1),i=Lt(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,l=[];return(t||n)&&l.push("translate("+t+"px,"+n+"px)"),r&&l.push("rotate("+r+")"),(a!==1||i!==1)&&l.push("scale("+a+","+i+")"),(o||s)&&l.push("skew("+D0(o*fv)+"deg, "+D0(s*fv)+"deg)"),l.join(" ")}var XIe=function(){return Jt.hasGlobalWindow&&ut(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}}(),Fx=Array.prototype.slice;function Bo(e,t,n){return(t-e)*n+e}function U_(e,t,n,r){for(var a=t.length,i=0;i<a;i++)e[i]=Bo(t[i],n[i],r);return e}function ZIe(e,t,n,r){for(var a=t.length,i=a&&t[0].length,o=0;o<a;o++){e[o]||(e[o]=[]);for(var s=0;s<i;s++)e[o][s]=Bo(t[o][s],n[o][s],r)}return e}function om(e,t,n,r){for(var a=t.length,i=0;i<a;i++)e[i]=t[i]+n[i]*r;return e}function FL(e,t,n,r){for(var a=t.length,i=a&&t[0].length,o=0;o<a;o++){e[o]||(e[o]=[]);for(var s=0;s<i;s++)e[o][s]=t[o][s]+n[o][s]*r}return e}function JIe(e,t){for(var n=e.length,r=t.length,a=n>r?t:e,i=Math.min(n,r),o=a[i-1]||{color:[0,0,0,0],offset:0},s=i;s<Math.max(n,r);s++)a.push({offset:o.offset,color:o.color.slice()})}function QIe(e,t,n){var r=e,a=t;if(!(!r.push||!a.push)){var i=r.length,o=a.length;if(i!==o){var s=i>o;if(s)r.length=o;else for(var l=i;l<o;l++)r.push(n===1?a[l]:Fx.call(a[l]))}for(var u=r[0]&&r[0].length,l=0;l<r.length;l++)if(n===1)isNaN(r[l])&&(r[l]=a[l]);else for(var c=0;c<u;c++)isNaN(r[l][c])&&(r[l][c]=a[l][c])}}function pv(e){if(Cr(e)){var t=e.length;if(Cr(e[0])){for(var n=[],r=0;r<t;r++)n.push(Fx.call(e[r]));return n}return Fx.call(e)}return e}function Ry(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 eDe(e){return Cr(e&&e[0])?2:1}var sm=0,Oy=1,wH=2,Vh=3,Hx=4,Gx=5,HL=6;function GL(e){return e===Hx||e===Gx}function lm(e){return e===Oy||e===wH}var uh=[0,0,0,0],tDe=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,n,r){this._needsSort=!0;var a=this.keyframes,i=a.length,o=!1,s=HL,l=n;if(Cr(n)){var u=eDe(n);s=u,(u===1&&!Qt(n[0])||u===2&&!Qt(n[0][0]))&&(o=!0)}else if(Qt(n)&&!cd(n))s=sm;else if(Je(n))if(!isNaN(+n))s=sm;else{var c=Xr(n);c&&(l=c,s=Vh)}else if(ig(n)){var f=Ie({},l);f.colorStops=Oe(n.colorStops,function(h){return{offset:h.offset,color:Xr(h.color)}}),gH(n)?s=Hx:mH(n)&&(s=Gx),l=f}i===0?this.valType=s:(s!==this.valType||s===HL)&&(o=!0),this.discrete=this.discrete||o;var d={time:t,value:l,rawValue:n,percent:0};return r&&(d.easing=r,d.easingFunc=ut(r)?r:oH[r]||xk(r)),a.push(d),d},e.prototype.prepare=function(t,n){var r=this.keyframes;this._needsSort&&r.sort(function(p,g){return p.time-g.time});for(var a=this.valType,i=r.length,o=r[i-1],s=this.discrete,l=lm(a),u=GL(a),c=0;c<i;c++){var f=r[c],d=f.value,h=o.value;f.percent=f.time/t,s||(l&&c!==i-1?QIe(d,h,a):u&&JIe(d.colorStops,h.colorStops))}if(!s&&a!==Gx&&n&&this.needsAnimate()&&n.needsAnimate()&&a===n.valType&&!n._finished){this._additiveTrack=n;for(var v=r[0].value,c=0;c<i;c++)a===sm?r[c].additiveValue=r[c].value-v:a===Vh?r[c].additiveValue=om([],r[c].value,v,-1):lm(a)&&(r[c].additiveValue=a===Oy?om([],r[c].value,v,-1):FL([],r[c].value,v,-1))}},e.prototype.step=function(t,n){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var r=this._additiveTrack!=null,a=r?"additiveValue":"value",i=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=i===Vh,c,f=this._lastFr,d=Math.min,h,v;if(s===1)h=v=o[0];else{if(n<0)c=0;else if(n<this._lastFrP){var p=d(f+1,s-1);for(c=p;c>=0&&!(o[c].percent<=n);c--);c=d(c,s-2)}else{for(c=f;c<s&&!(o[c].percent>n);c++);c=d(c-1,s-2)}v=o[c+1],h=o[c]}if(h&&v){this._lastFr=c,this._lastFrP=n;var g=v.percent-h.percent,m=g===0?1:d((n-h.percent)/g,1);v.easingFunc&&(m=v.easingFunc(m));var b=r?this._additiveValue:u?uh:t[l];if((lm(i)||u)&&!b&&(b=this._additiveValue=[]),this.discrete)t[l]=m<1?h.rawValue:v.rawValue;else if(lm(i))i===Oy?U_(b,h[a],v[a],m):ZIe(b,h[a],v[a],m);else if(GL(i)){var _=h[a],w=v[a],C=i===Hx;t[l]={type:C?"linear":"radial",x:Bo(_.x,w.x,m),y:Bo(_.y,w.y,m),colorStops:Oe(_.colorStops,function(x,T){var M=w.colorStops[T];return{offset:Bo(x.offset,M.offset,m),color:Ry(U_([],x.color,M.color,m))}}),global:w.global},C?(t[l].x2=Bo(_.x2,w.x2,m),t[l].y2=Bo(_.y2,w.y2,m)):t[l].r=Bo(_.r,w.r,m)}else if(u)U_(b,h[a],v[a],m),r||(t[l]=Ry(b));else{var S=Bo(h[a],v[a],m);r?this._additiveValue=S:t[l]=S}r&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var n=this.valType,r=this.propName,a=this._additiveValue;n===sm?t[r]=t[r]+a:n===Vh?(Xr(t[r],uh),om(uh,uh,a,1),t[r]=Ry(uh)):n===Oy?om(t[r],t[r],a,1):n===wH&&FL(t[r],t[r],a,1)},e}(),nDe=function(){function e(t,n,r,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=n,n&&a){f1("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=r}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,n,r){return this.whenWithKeys(t,n,Gt(n),r)},e.prototype.whenWithKeys=function(t,n,r,a){for(var i=this._tracks,o=0;o<r.length;o++){var s=r[o],l=i[s];if(!l){l=i[s]=new tDe(s);var u=void 0,c=this._getAdditiveTrack(s);if(c){var f=c.keyframes,d=f[f.length-1];u=d&&d.value,c.valType===Vh&&u&&(u=Ry(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,pv(u),a),this._trackKeys.push(s)}l.addKeyframe(t,pv(n[s]),a)}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 n=t.length,r=0;r<n;r++)t[r].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,n=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,n)for(var r=0;r<n.length;r++)n[r].call(this)},e.prototype._setTracksFinished=function(){for(var t=this._tracks,n=this._trackKeys,r=0;r<n.length;r++)t[n[r]].setFinished()},e.prototype._getAdditiveTrack=function(t){var n,r=this._additiveAnimators;if(r)for(var a=0;a<r.length;a++){var i=r[a].getTrack(t);i&&(n=i)}return n},e.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var n=this,r=[],a=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,c=u.length;if(s.prepare(a,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var f=u[c-1];f&&(n._target[s.propName]=f.rawValue),s.setFinished()}else r.push(s)}if(r.length||this._force){var d=new RIe({life:a,loop:this._loop,delay:this._delay||0,onframe:function(h){n._started=2;var v=n._additiveAnimators;if(v){for(var p=!1,g=0;g<v.length;g++)if(v[g]._clip){p=!0;break}p||(n._additiveAnimators=null)}for(var g=0;g<r.length;g++)r[g].step(n._target,h);var m=n._onframeCbs;if(m)for(var g=0;g<m.length;g++)m[g](n._target,h)},ondestroy:function(){n._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 n=this._clip;t&&n.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(n){return t._tracks[n]})},e.prototype.stopTracks=function(t,n){if(!t.length||!this._clip)return!0;for(var r=this._tracks,a=this._trackKeys,i=0;i<t.length;i++){var o=r[t[i]];o&&!o.isFinished()&&(n?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,i=0;i<a.length;i++)if(!r[a[i]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},e.prototype.saveTo=function(t,n,r){if(t){n=n||this._trackKeys;for(var a=0;a<n.length;a++){var i=n[a],o=this._tracks[i];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[r?0:s.length-1];l&&(t[i]=pv(l.rawValue))}}}},e.prototype.__changeFinalValue=function(t,n){n=n||Gt(t);for(var r=0;r<n.length;r++){var a=n[r],i=this._tracks[a];if(i){var o=i.keyframes;if(o.length>1){var s=o.pop();i.addKeyframe(s.time,t[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}();const kk=nDe;function bf(){return new Date().getTime()}var rDe=function(e){ge(t,e);function t(n){var r=e.call(this)||this;return r._running=!1,r._time=0,r._pausedTime=0,r._pauseStart=0,r._paused=!1,n=n||{},r.stage=n.stage||{},r}return t.prototype.addClip=function(n){n.animation&&this.removeClip(n),this._head?(this._tail.next=n,n.prev=this._tail,n.next=null,this._tail=n):this._head=this._tail=n,n.animation=this},t.prototype.addAnimator=function(n){n.animation=this;var r=n.getClip();r&&this.addClip(r)},t.prototype.removeClip=function(n){if(n.animation){var r=n.prev,a=n.next;r?r.next=a:this._head=a,a?a.prev=r:this._tail=r,n.next=n.prev=n.animation=null}},t.prototype.removeAnimator=function(n){var r=n.getClip();r&&this.removeClip(r),n.animation=null},t.prototype.update=function(n){for(var r=bf()-this._pausedTime,a=r-this._time,i=this._head;i;){var o=i.next,s=i.step(r,a);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=r,n||(this.trigger("frame",a),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var n=this;this._running=!0;function r(){n._running&&($x(r),!n._paused&&n.update())}$x(r)},t.prototype.start=function(){this._running||(this._time=bf(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=bf(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=bf()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var n=this._head;n;){var r=n.next;n.prev=n.next=n.animation=null,n=r}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(n,r){r=r||{},this.start();var a=new kk(n,r.loop);return this.addAnimator(a),a},t}(fi);const aDe=rDe;var iDe=300,Y_=Jt.domSupported,j_=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=Oe(e,function(a){var i=a.replace("mouse","pointer");return n.hasOwnProperty(i)?i:a});return{mouse:e,touch:t,pointer:r}}(),WL={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},KL=!1;function Wx(e){var t=e.pointerType;return t==="pen"||t==="touch"}function oDe(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 q_(e){e&&(e.zrByTouch=!0)}function sDe(e,t){return Fa(e.dom,new lDe(e,t),!0)}function SH(e,t){for(var n=t,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var lDe=function(){function e(t,n){this.stopPropagation=Nn,this.stopImmediatePropagation=Nn,this.preventDefault=Nn,this.type=n.type,this.target=this.currentTarget=t.dom,this.pointerType=n.pointerType,this.clientX=n.clientX,this.clientY=n.clientY}return e}(),wi={mousedown:function(e){e=Fa(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Fa(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=Fa(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=Fa(this.dom,e);var t=e.toElement||e.relatedTarget;SH(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){KL=!0,e=Fa(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){KL||(e=Fa(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=Fa(this.dom,e),q_(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),wi.mousemove.call(this,e),wi.mousedown.call(this,e)},touchmove:function(e){e=Fa(this.dom,e),q_(e),this.handler.processGesture(e,"change"),wi.mousemove.call(this,e)},touchend:function(e){e=Fa(this.dom,e),q_(e),this.handler.processGesture(e,"end"),wi.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<iDe&&wi.click.call(this,e)},pointerdown:function(e){wi.mousedown.call(this,e)},pointermove:function(e){Wx(e)||wi.mousemove.call(this,e)},pointerup:function(e){wi.mouseup.call(this,e)},pointerout:function(e){Wx(e)||wi.mouseout.call(this,e)}};F(["click","dblclick","contextmenu"],function(e){wi[e]=function(t){t=Fa(this.dom,t),this.trigger(e,t)}});var Kx={pointermove:function(e){Wx(e)||Kx.mousemove.call(this,e)},pointerup:function(e){Kx.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 uDe(e,t){var n=t.domHandlers;Jt.pointerEventsSupported?F(j_.pointer,function(r){$y(t,r,function(a){n[r].call(e,a)})}):(Jt.touchEventsSupported&&F(j_.touch,function(r){$y(t,r,function(a){n[r].call(e,a),oDe(t)})}),F(j_.mouse,function(r){$y(t,r,function(a){a=Ck(a),t.touching||n[r].call(e,a)})}))}function cDe(e,t){Jt.pointerEventsSupported?F(WL.pointer,n):Jt.touchEventsSupported||F(WL.mouse,n);function n(r){function a(i){i=Ck(i),SH(e,i.target)||(i=sDe(e,i),t.domHandlers[r].call(e,i))}$y(t,r,a,{capture:!0})}}function $y(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,Ox(e.domTarget,t,n,r)}function X_(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&dIe(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var UL=function(){function e(t,n){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=n}return e}(),fDe=function(e){ge(t,e);function t(n,r){var a=e.call(this)||this;return a.__pointerCapturing=!1,a.dom=n,a.painterRoot=r,a._localHandlerScope=new UL(n,wi),Y_&&(a._globalHandlerScope=new UL(document,Kx)),uDe(a,a._localHandlerScope),a}return t.prototype.dispose=function(){X_(this._localHandlerScope),Y_&&X_(this._globalHandlerScope)},t.prototype.setCursor=function(n){this.dom.style&&(this.dom.style.cursor=n||"default")},t.prototype.__togglePointerCapture=function(n){if(this.__mayPointerCapture=null,Y_&&+this.__pointerCapturing^+n){this.__pointerCapturing=n;var r=this._globalHandlerScope;n?cDe(this,r):X_(r)}},t}(fi);const dDe=fDe;var CH=1;Jt.hasGlobalWindow&&(CH=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var P0=CH,Ux=.4,Yx="#333",jx="#ccc",hDe="#eee",YL=sg,jL=5e-5;function Ul(e){return e>jL||e<-jL}var Yl=[],Vc=[],Z_=La(),J_=Math.abs,vDe=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 Ul(this.rotation)||Ul(this.x)||Ul(this.y)||Ul(this.scaleX-1)||Ul(this.scaleY-1)||Ul(this.skewX)||Ul(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,n=this.needLocalTransform(),r=this.transform;if(!(n||t)){r&&(YL(r),this.invTransform=null);return}r=r||La(),n?this.getLocalTransform(r):YL(r),t&&(n?go(r,t,r):p1(r,t)),this.transform=r,this._resolveGlobalScaleRatio(r)},e.prototype._resolveGlobalScaleRatio=function(t){var n=this.globalScaleRatio;if(n!=null&&n!==1){this.getGlobalScale(Yl);var r=Yl[0]<0?-1:1,a=Yl[1]<0?-1:1,i=((Yl[0]-r)*n+r)/Yl[0]||0,o=((Yl[1]-a)*n+a)/Yl[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||La(),xc(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,n=[];t;)n.push(t),t=t.parent;for(;t=n.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var n=t[0]*t[0]+t[1]*t[1],r=t[2]*t[2]+t[3]*t[3],a=Math.atan2(t[1],t[0]),i=Math.PI/2+a-Math.atan2(t[3],t[2]);r=Math.sqrt(r)*Math.cos(i),n=Math.sqrt(n),this.skewX=i,this.skewY=0,this.rotation=-a,this.x=+t[4],this.y=+t[5],this.scaleX=n,this.scaleY=r,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,n=this.transform;t&&t.transform&&(go(Vc,t.invTransform,n),n=Vc);var r=this.originX,a=this.originY;(r||a)&&(Z_[4]=r,Z_[5]=a,go(Vc,n,Z_),Vc[4]-=r,Vc[5]-=a,n=Vc),this.setLocalTransform(n)}},e.prototype.getGlobalScale=function(t){var n=this.transform;return t=t||[],n?(t[0]=Math.sqrt(n[0]*n[0]+n[1]*n[1]),t[1]=Math.sqrt(n[2]*n[2]+n[3]*n[3]),n[0]<0&&(t[0]=-t[0]),n[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,n){var r=[t,n],a=this.invTransform;return a&&hr(r,r,a),r},e.prototype.transformCoordToGlobal=function(t,n){var r=[t,n],a=this.transform;return a&&hr(r,r,a),r},e.prototype.getLineScale=function(){var t=this.transform;return t&&J_(t[0]-1)>1e-10&&J_(t[3]-1)>1e-10?Math.sqrt(J_(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){xH(this,t)},e.getLocalTransform=function(t,n){n=n||[];var r=t.originX||0,a=t.originY||0,i=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,c=t.x,f=t.y,d=t.skewX?Math.tan(t.skewX):0,h=t.skewY?Math.tan(-t.skewY):0;if(r||a||s||l){var v=r+s,p=a+l;n[4]=-v*i-d*p*o,n[5]=-p*o-h*v*i}else n[4]=n[5]=0;return n[0]=i,n[3]=o,n[1]=h*i,n[2]=d*o,u&&Pl(n,n,u),n[4]+=r+c,n[5]+=a+f,n},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}(),Co=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function xH(e,t){for(var n=0;n<Co.length;n++){var r=Co[n];e[r]=t[r]}}const Uo=vDe;var qL={};function Pa(e,t){t=t||pl;var n=qL[t];n||(n=qL[t]=new lg(500));var r=n.get(e);return r==null&&(r=Vi.measureText(e,t).width,n.put(e,r)),r}function XL(e,t,n,r){var a=Pa(e,t),i=y1(t),o=zh(0,a,n),s=ff(0,i,r),l=new Rt(o,s,a,i);return l}function ug(e,t,n,r){var a=((e||"")+"").split(`
  70. `),i=a.length;if(i===1)return XL(a[0],t,n,r);for(var o=new Rt(0,0,0,0),s=0;s<a.length;s++){var l=XL(a[s],t,n,r);s===0?o.copy(l):o.union(l)}return o}function zh(e,t,n){return n==="right"?e-=t:n==="center"&&(e-=t/2),e}function ff(e,t,n){return n==="middle"?e-=t/2:n==="bottom"&&(e-=t),e}function y1(e){return Pa("国",e)}function Fi(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function L0(e,t,n){var r=t.position||"inside",a=t.distance!=null?t.distance:5,i=n.height,o=n.width,s=i/2,l=n.x,u=n.y,c="left",f="top";if(r instanceof Array)l+=Fi(r[0],n.width),u+=Fi(r[1],n.height),c=null,f=null;else switch(r){case"left":l-=a,u+=s,c="right",f="middle";break;case"right":l+=a+o,u+=s,f="middle";break;case"top":l+=o/2,u-=a,c="center",f="bottom";break;case"bottom":l+=o/2,u+=i+a,c="center";break;case"inside":l+=o/2,u+=s,c="center",f="middle";break;case"insideLeft":l+=a,u+=s,f="middle";break;case"insideRight":l+=o-a,u+=s,c="right",f="middle";break;case"insideTop":l+=o/2,u+=a,c="center";break;case"insideBottom":l+=o/2,u+=i-a,c="center",f="bottom";break;case"insideTopLeft":l+=a,u+=a;break;case"insideTopRight":l+=o-a,u+=a,c="right";break;case"insideBottomLeft":l+=a,u+=i-a,f="bottom";break;case"insideBottomRight":l+=o-a,u+=i-a,c="right",f="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=c,e.verticalAlign=f,e}var Q_="__zr_normal__",ew=Co.concat(["ignore"]),pDe=ui(Co,function(e,t){return e[t]=!0,e},{ignore:!1}),zc={},gDe=new Rt(0,0,0,0),Ak=function(){function e(t){this.id=bk(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,n,r){switch(this.draggable){case"horizontal":n=0;break;case"vertical":t=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=t,a[5]+=n,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 n=this._textContent;if(n&&(!n.ignore||t)){this.textConfig||(this.textConfig={});var r=this.textConfig,a=r.local,i=n.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=a?this:null;var u=!1;if(i.copyTransform(n),r.position!=null){var c=gDe;r.layoutRect?c.copy(r.layoutRect):c.copy(this.getBoundingRect()),a||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(zc,r,c):L0(zc,r,c),i.x=zc.x,i.y=zc.y,o=zc.align,s=zc.verticalAlign;var f=r.origin;if(f&&r.rotation!=null){var d=void 0,h=void 0;f==="center"?(d=c.width*.5,h=c.height*.5):(d=Fi(f[0],c.width),h=Fi(f[1],c.height)),u=!0,i.originX=-i.x+d+(a?0:c.x),i.originY=-i.y+h+(a?0:c.y)}}r.rotation!=null&&(i.rotation=r.rotation);var v=r.offset;v&&(i.x+=v[0],i.y+=v[1],u||(i.originX=-v[0],i.originY=-v[1]));var p=r.inside==null?typeof r.position=="string"&&r.position.indexOf("inside")>=0:r.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,b=void 0,_=void 0;p&&this.canBeInsideText()?(m=r.insideFill,b=r.insideStroke,(m==null||m==="auto")&&(m=this.getInsideTextFill()),(b==null||b==="auto")&&(b=this.getInsideTextStroke(m),_=!0)):(m=r.outsideFill,b=r.outsideStroke,(m==null||m==="auto")&&(m=this.getOutsideFill()),(b==null||b==="auto")&&(b=this.getOutsideStroke(m),_=!0)),m=m||"#000",(m!==g.fill||b!==g.stroke||_!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=m,g.stroke=b,g.autoStroke=_,g.align=o,g.verticalAlign=s,n.setDefaultTextStyle(g)),n.__dirty|=Ta,l&&n.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()?jx:Yx},e.prototype.getOutsideStroke=function(t){var n=this.__zr&&this.__zr.getBackgroundColor(),r=typeof n=="string"&&Xr(n);r||(r=[255,255,255,1]);for(var a=r[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)r[o]=r[o]*a+(i?0:255)*(1-a);return r[3]=1,$i(r,"rgba")},e.prototype.traverse=function(t,n){},e.prototype.attrKV=function(t,n){t==="textConfig"?this.setTextConfig(n):t==="textContent"?this.setTextContent(n):t==="clipPath"?this.setClipPath(n):t==="extra"?(this.extra=this.extra||{},Ie(this.extra,n)):this[t]=n},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,n){if(typeof t=="string")this.attrKV(t,n);else if(ht(t))for(var r=t,a=Gt(r),i=0;i<a.length;i++){var o=a[i];this.attrKV(o,t[o])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var n=this._normalState,r=0;r<this.animators.length;r++){var a=this.animators[r],i=a.__fromStateTransition;if(!(a.getLoop()||i&&i!==Q_)){var o=a.targetName,s=o?n[o]:n;a.saveTo(s)}}},e.prototype._innerSaveToNormal=function(t){var n=this._normalState;n||(n=this._normalState={}),t.textConfig&&!n.textConfig&&(n.textConfig=this.textConfig),this._savePrimaryToNormal(t,n,ew)},e.prototype._savePrimaryToNormal=function(t,n,r){for(var a=0;a<r.length;a++){var i=r[a];t[i]!=null&&!(i in n)&&(n[i]=this[i])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var n=this.states;return n[t]||(n[t]={}),n[t]},e.prototype.clearStates=function(t){this.useState(Q_,!1,t)},e.prototype.useState=function(t,n,r,a){var i=t===Q_,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!($t(s,t)>=0&&(n||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!i){f1("State "+t+" not exists.");return}i||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||a);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,n,!r&&!this.__inHover&&l&&l.duration>0,l);var f=this._textContent,d=this._textGuide;return f&&f.useState(t,n,r,c),d&&d.useState(t,n,r,c),i?(this.currentStates=[],this._normalState={}):n?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ta),u}}},e.prototype.useStates=function(t,n,r){if(!t.length)this.clearStates();else{var a=[],i=this.currentStates,o=t.length,s=o===i.length;if(s){for(var l=0;l<o;l++)if(t[l]!==i[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=t[l],c=void 0;this.stateProxy&&(c=this.stateProxy(u,t)),c||(c=this.states[u]),c&&a.push(c)}var f=a[o-1],d=!!(f&&f.hoverLayer||r);d&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(a),v=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(t.join(","),h,this._normalState,!1,!n&&!this.__inHover&&v&&v.duration>0,v);var p=this._textContent,g=this._textGuide;p&&p.useStates(t,n,d),g&&g.useStates(t,n,d),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ta)}},e.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var n=this.animators[t];n.targetName&&n.changeTarget(this[n.targetName])}},e.prototype.removeState=function(t){var n=$t(this.currentStates,t);if(n>=0){var r=this.currentStates.slice();r.splice(n,1),this.useStates(r)}},e.prototype.replaceState=function(t,n,r){var a=this.currentStates.slice(),i=$t(a,t),o=$t(a,n)>=0;i>=0?o?a.splice(i,1):a[i]=n:r&&!o&&a.push(n),this.useStates(a)},e.prototype.toggleState=function(t,n){n?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var n={},r,a=0;a<t.length;a++){var i=t[a];Ie(n,i),i.textConfig&&(r=r||{},Ie(r,i.textConfig))}return r&&(n.textConfig=r),n},e.prototype._applyStateObj=function(t,n,r,a,i,o){var s=!(n&&a);n&&n.textConfig?(this.textConfig=Ie({},a?this.textConfig:r.textConfig),Ie(this.textConfig,n.textConfig)):s&&r.textConfig&&(this.textConfig=r.textConfig);for(var l={},u=!1,c=0;c<ew.length;c++){var f=ew[c],d=i&&pDe[f];n&&n[f]!=null?d?(u=!0,l[f]=n[f]):this[f]=n[f]:s&&r[f]!=null&&(d?(u=!0,l[f]=r[f]):this[f]=r[f])}if(!i)for(var c=0;c<this.animators.length;c++){var h=this.animators[c],v=h.targetName;h.getLoop()||h.__changeFinalValue(v?(n||r)[v]:n||r)}u&&this._transitionState(t,l,o)},e.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var n=this.__zr;n&&t.addSelfToZr(n),t.__zr=n,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 n=this._textContent;n!==t&&(n&&n!==t&&this.removeTextContent(),t.innerTransformable=new Uo,this._attachComponent(t),this._textContent=t,this.markRedraw())},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),Ie(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|=Ta;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 n=this._textContent,r=this._textGuide;n&&(n.__inHover=t),r&&(r.__inHover=t)},e.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var n=this.animators;if(n)for(var r=0;r<n.length;r++)t.animation.addAnimator(n[r]);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 n=this.animators;if(n)for(var r=0;r<n.length;r++)t.animation.removeAnimator(n[r]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},e.prototype.animate=function(t,n,r){var a=t?this[t]:this,i=new kk(a,n,r);return t&&(i.targetName=t),this.addAnimator(i,t),i},e.prototype.addAnimator=function(t,n){var r=this.__zr,a=this;t.during(function(){a.updateDuringAnimation(n)}).done(function(){var i=a.animators,o=$t(i,t);o>=0&&i.splice(o,1)}),this.animators.push(t),r&&r.animation.addAnimator(t),r&&r.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,n){for(var r=this.animators,a=r.length,i=[],o=0;o<a;o++){var s=r[o];!t||t===s.scope?s.stop(n):i.push(s)}return this.animators=i,this},e.prototype.animateTo=function(t,n,r){tw(this,t,n,r)},e.prototype.animateFrom=function(t,n,r){tw(this,t,n,r,!0)},e.prototype._transitionState=function(t,n,r,a){for(var i=tw(this,n,r,a),o=0;o<i.length;o++)i[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=Ta;function n(r,a,i,o){Object.defineProperty(t,r,{get:function(){if(!this[a]){var l=this[a]=[];s(this,l)}return this[a]},set:function(l){this[i]=l[0],this[o]=l[1],this[a]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[i]},set:function(c){l[i]=c}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(c){l[o]=c}})}}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),e}();Vn(Ak,fi);Vn(Ak,Uo);function tw(e,t,n,r,a){n=n||{};var i=[];TH(e,"",e,t,n,r,i,a);var o=i.length,s=!1,l=n.done,u=n.aborted,c=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},f=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),i.length>0&&n.during&&i[0].during(function(v,p){n.during(p)});for(var d=0;d<i.length;d++){var h=i[d];c&&h.done(c),f&&h.aborted(f),n.force&&h.duration(n.duration),h.start(n.easing)}return i}function nw(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function mDe(e){return Cr(e[0])}function yDe(e,t,n){if(Cr(t[n]))if(Cr(e[n])||(e[n]=[]),_a(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),nw(e[n],t[n],r))}else{var a=t[n],i=e[n],o=a.length;if(mDe(a))for(var s=a[0].length,l=0;l<o;l++)i[l]?nw(i[l],a[l],s):i[l]=Array.prototype.slice.call(a[l]);else nw(i,a,o);i.length=a.length}else e[n]=t[n]}function bDe(e,t){return e===t||Cr(e)&&Cr(t)&&_De(e,t)}function _De(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function TH(e,t,n,r,a,i,o,s){for(var l=Gt(r),u=a.duration,c=a.delay,f=a.additive,d=a.setToFinal,h=!ht(i),v=e.animators,p=[],g=0;g<l.length;g++){var m=l[g],b=r[m];if(b!=null&&n[m]!=null&&(h||i[m]))if(ht(b)&&!Cr(b)&&!ig(b)){if(t){s||(n[m]=b,e.updateDuringAnimation(t));continue}TH(e,m,n[m],b,a,i&&i[m],o,s)}else p.push(m);else s||(n[m]=b,e.updateDuringAnimation(t),p.push(m))}var _=p.length;if(!f&&_)for(var w=0;w<v.length;w++){var C=v[w];if(C.targetName===t){var S=C.stopTracks(p);if(S){var x=$t(v,C);v.splice(x,1)}}}if(a.force||(p=ln(p,function(k){return!bDe(r[k],n[k])}),_=p.length),_>0||a.force&&!o.length){var T=void 0,M=void 0,A=void 0;if(s){M={},d&&(T={});for(var w=0;w<_;w++){var m=p[w];M[m]=n[m],d?T[m]=r[m]:n[m]=r[m]}}else if(d){A={};for(var w=0;w<_;w++){var m=p[w];A[m]=pv(n[m]),yDe(n,r,m)}}var C=new kk(n,!1,!1,f?ln(v,function(E){return E.targetName===t}):null);C.targetName=t,a.scope&&(C.scope=a.scope),d&&T&&C.whenWithKeys(0,T,p),A&&C.whenWithKeys(0,A,p),C.whenWithKeys(u??500,s?M:r,p).delay(c||0),e.addAnimator(C,t),o.push(C)}}const MH=Ak;var kH=function(e){ge(t,e);function t(n){var r=e.call(this)||this;return r.isGroup=!0,r._children=[],r.attr(n),r}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(n){return this._children[n]},t.prototype.childOfName=function(n){for(var r=this._children,a=0;a<r.length;a++)if(r[a].name===n)return r[a]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(n){return n&&n!==this&&n.parent!==this&&(this._children.push(n),this._doAdd(n)),this},t.prototype.addBefore=function(n,r){if(n&&n!==this&&n.parent!==this&&r&&r.parent===this){var a=this._children,i=a.indexOf(r);i>=0&&(a.splice(i,0,n),this._doAdd(n))}return this},t.prototype.replace=function(n,r){var a=$t(this._children,n);return a>=0&&this.replaceAt(r,a),this},t.prototype.replaceAt=function(n,r){var a=this._children,i=a[r];if(n&&n!==this&&n.parent!==this&&n!==i){a[r]=n,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(n)}return this},t.prototype._doAdd=function(n){n.parent&&n.parent.remove(n),n.parent=this;var r=this.__zr;r&&r!==n.__zr&&n.addSelfToZr(r),r&&r.refresh()},t.prototype.remove=function(n){var r=this.__zr,a=this._children,i=$t(a,n);return i<0?this:(a.splice(i,1),n.parent=null,r&&n.removeSelfFromZr(r),r&&r.refresh(),this)},t.prototype.removeAll=function(){for(var n=this._children,r=this.__zr,a=0;a<n.length;a++){var i=n[a];r&&i.removeSelfFromZr(r),i.parent=null}return n.length=0,this},t.prototype.eachChild=function(n,r){for(var a=this._children,i=0;i<a.length;i++){var o=a[i];n.call(r,o,i)}return this},t.prototype.traverse=function(n,r){for(var a=0;a<this._children.length;a++){var i=this._children[a],o=n.call(r,i);i.isGroup&&!o&&i.traverse(n,r)}return this},t.prototype.addSelfToZr=function(n){e.prototype.addSelfToZr.call(this,n);for(var r=0;r<this._children.length;r++){var a=this._children[r];a.addSelfToZr(n)}},t.prototype.removeSelfFromZr=function(n){e.prototype.removeSelfFromZr.call(this,n);for(var r=0;r<this._children.length;r++){var a=this._children[r];a.removeSelfFromZr(n)}},t.prototype.getBoundingRect=function(n){for(var r=new Rt(0,0,0,0),a=n||this._children,i=[],o=null,s=0;s<a.length;s++){var l=a[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),c=l.getLocalTransform(i);c?(Rt.applyTransform(r,u,c),o=o||r.clone(),o.union(r)):(o=o||u.clone(),o.union(u))}}return o||r},t}(MH);kH.prototype.type="group";const bt=kH;/*!
  71. * ZRender, a high performance 2d drawing library.
  72. *
  73. * Copyright (c) 2013, Baidu Inc.
  74. * All rights reserved.
  75. *
  76. * LICENSE
  77. * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
  78. */var Ny={},$u={};function wDe(e){delete $u[e]}function SDe(e){if(!e)return!1;if(typeof e=="string")return pp(e,1)<Ux;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,a=0;a<r;a++)n+=pp(t[a].color,1);return n/=r,n<Ux}return!1}var CDe=function(){function e(t,n,r){var a=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,r=r||{},this.dom=n,this.id=t;var i=new AIe,o=r.renderer||"canvas";Ny[o]||(o=Gt(Ny)[0]),r.useDirtyRect=r.useDirtyRect==null?!1:r.useDirtyRect;var s=new Ny[o](n,i,r,t),l=r.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=!Jt.node&&!Jt.worker&&!l?new dDe(s.getViewportRoot(),s.root):null,c=r.useCoarsePointer,f=c==null||c==="auto"?Jt.touchEventsSupported:!!c,d=44,h;f&&(h=Lt(r.pointerSize,d)),this.handler=new CIe(i,s,u,s.root,h),this.animation=new aDe({stage:{update:l?null:function(){return a._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,n){this.painter.configLayer&&this.painter.configLayer(t,n),this.refresh()},e.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=SDe(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 n,r=bf();this._needsRefresh&&(n=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(n=!0,this.refreshHoverImmediately());var a=bf();n?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:a-r})):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,n){return this.handler.findHover(t,n)},e.prototype.on=function(t,n,r){return this.handler.on(t,n,r),this},e.prototype.off=function(t,n){this.handler.off(t,n)},e.prototype.trigger=function(t,n){this.handler.trigger(t,n)},e.prototype.clear=function(){for(var t=this.storage.getRoots(),n=0;n<t.length;n++)t[n]instanceof bt&&t[n].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,wDe(this.id)},e}();function qx(e,t){var n=new CDe(bk(),e,t);return $u[n.id]=n,n}function xDe(e){e.dispose()}function TDe(){for(var e in $u)$u.hasOwnProperty(e)&&$u[e].dispose();$u={}}function MDe(e){return $u[e]}function AH(e,t){Ny[e]=t}var kDe="5.4.4";const ADe=Object.freeze(Object.defineProperty({__proto__:null,dispose:xDe,disposeAll:TDe,getInstance:MDe,init:qx,registerPainter:AH,version:kDe},Symbol.toStringTag,{value:"Module"}));var ZL=1e-4,EH=20;function EDe(e){return e.replace(/^\s+|\s+$/g,"")}function sn(e,t,n,r){var a=t[0],i=t[1],o=n[0],s=n[1],l=i-a,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(r)if(l>0){if(e<=a)return o;if(e>=i)return s}else{if(e>=a)return o;if(e<=i)return s}else{if(e===a)return o;if(e===i)return s}return(e-a)/l*u+o}function qe(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 Je(e)?EDe(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function Rn(e,t,n){return t==null&&(t=10),t=Math.min(Math.max(0,t),EH),e=(+e).toFixed(t),n?e:+e}function Ea(e){return e.sort(function(t,n){return t-n}),e}function Ei(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(e*t)/t===e)return n}return IH(e)}function IH(e){var t=e.toString().toLowerCase(),n=t.indexOf("e"),r=n>0?+t.slice(n+1):0,a=n>0?n:t.length,i=t.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-r)}function Ek(e,t){var n=Math.log,r=Math.LN10,a=Math.floor(n(e[1]-e[0])/r),i=Math.round(n(Math.abs(t[1]-t[0]))/r),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function IDe(e,t,n){if(!e[t])return 0;var r=DH(e,n);return r[t]||0}function DH(e,t){var n=ui(e,function(h,v){return h+(isNaN(v)?0:v)},0);if(n===0)return[];for(var r=Math.pow(10,t),a=Oe(e,function(h){return(isNaN(h)?0:h)/n*r*100}),i=r*100,o=Oe(a,function(h){return Math.floor(h)}),s=ui(o,function(h,v){return h+v},0),l=Oe(a,function(h,v){return h-o[v]});s<i;){for(var u=Number.NEGATIVE_INFINITY,c=null,f=0,d=l.length;f<d;++f)l[f]>u&&(u=l[f],c=f);++o[c],l[c]=0,++s}return Oe(o,function(h){return h/r})}function DDe(e,t){var n=Math.max(Ei(e),Ei(t)),r=e+t;return n>EH?r:Rn(r,n)}var Xx=9007199254740991;function Ik(e){var t=Math.PI*2;return(e%t+t)%t}function mp(e){return e>-ZL&&e<ZL}var PDe=/^(?:(\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 Ra(e){if(e instanceof Date)return e;if(Je(e)){var t=PDe.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(n-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,n,+(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 PH(e){return Math.pow(10,b1(e))}function b1(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 Dk(e,t){var n=b1(e),r=Math.pow(10,n),a=e/r,i;return t?a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10:a<1?i=1:a<2?i=2:a<3?i=3:a<5?i=5:i=10,e=i*r,n>=-20?+e.toFixed(n<0?-n:0):e}function By(e,t){var n=(e.length-1)*t+1,r=Math.floor(n),a=+e[r-1],i=n-r;return i?a+i*(e[r]-a):a}function Zx(e){e.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,n=1,r=0;r<e.length;){for(var a=e[r].interval,i=e[r].close,o=0;o<2;o++)a[o]<=t&&(a[o]=t,i[o]=o?1:1-n),t=a[o],n=i[o];a[0]===a[1]&&i[0]*i[1]!==1?e.splice(r,1):r++}return e;function s(l,u,c){return l.interval[c]<u.interval[c]||l.interval[c]===u.interval[c]&&(l.close[c]-u.close[c]===(c?-1:1)||!c&&s(l,u,1))}}function xo(e){var t=parseFloat(e);return t==e&&(t!==0||!Je(e)||e.indexOf("x")<=0)?t:NaN}function Pk(e){return!isNaN(xo(e))}function LH(){return Math.round(Math.random()*9)}function RH(e,t){return t===0?e:RH(t,e%t)}function JL(e,t){return e==null?t:t==null?e:e*t/RH(e,t)}function an(e){throw new Error(e)}function QL(e,t,n){return(t-e)*n+e}var OH="series\0",$H="\0_ec_\0";function hn(e){return e instanceof Array?e:e==null?[]:[e]}function uc(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var r=0,a=n.length;r<a;r++){var i=n[r];!e.emphasis[t].hasOwnProperty(i)&&e[t].hasOwnProperty(i)&&(e.emphasis[t][i]=e[t][i])}}}var eR=["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 Id(e){return ht(e)&&!Re(e)&&!(e instanceof Date)?e.value:e}function LDe(e){return ht(e)&&!(e instanceof Array)}function NH(e,t,n){var r=n==="normalMerge",a=n==="replaceMerge",i=n==="replaceAll";e=e||[],t=(t||[]).slice();var o=ot();F(t,function(l,u){if(!ht(l)){t[u]=null;return}});var s=RDe(e,o,n);return(r||a)&&ODe(s,e,o,t),r&&$De(s,t),r||a?NDe(s,t,a):i&&BDe(s,t),VDe(s),s}function RDe(e,t,n){var r=[];if(n==="replaceAll")return r;for(var a=0;a<e.length;a++){var i=e[a];i&&i.id!=null&&t.set(i.id,a),r.push({existing:n==="replaceMerge"||yp(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return r}function ODe(e,t,n,r){F(r,function(a,i){if(!(!a||a.id==null)){var o=gv(a.id),s=n.get(o);if(s!=null){var l=e[s];Nr(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=a,l.existing=t[s],r[i]=null}}})}function $De(e,t){F(t,function(n,r){if(!(!n||n.name==null))for(var a=0;a<e.length;a++){var i=e[a].existing;if(!e[a].newOption&&i&&(i.id==null||n.id==null)&&!yp(n)&&!yp(i)&&BH("name",i,n)){e[a].newOption=n,t[r]=null;return}}})}function NDe(e,t,n){F(t,function(r){if(r){for(var a,i=0;(a=e[i])&&(a.newOption||yp(a.existing)||a.existing&&r.id!=null&&!BH("id",r,a.existing));)i++;a?(a.newOption=r,a.brandNew=n):e.push({newOption:r,brandNew:n,existing:null,keyInfo:null}),i++}})}function BDe(e,t){F(t,function(n){e.push({newOption:n,brandNew:!0,existing:null,keyInfo:null})})}function VDe(e){var t=ot();F(e,function(n){var r=n.existing;r&&t.set(r.id,n)}),F(e,function(n){var r=n.newOption;Nr(!r||r.id==null||!t.get(r.id)||t.get(r.id)===n,"id duplicates: "+(r&&r.id)),r&&r.id!=null&&t.set(r.id,n),!n.keyInfo&&(n.keyInfo={})}),F(e,function(n,r){var a=n.existing,i=n.newOption,o=n.keyInfo;if(ht(i)){if(o.name=i.name!=null?gv(i.name):a?a.name:OH+r,a)o.id=gv(a.id);else if(i.id!=null)o.id=gv(i.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,n)}})}function BH(e,t,n){var r=tr(t[e],null),a=tr(n[e],null);return r!=null&&a!=null&&r===a}function gv(e){return tr(e,"")}function tr(e,t){return e==null?t:Je(e)?e:Qt(e)||T0(e)?e+"":t}function Lk(e){var t=e.name;return!!(t&&t.indexOf(OH))}function yp(e){return e&&e.id!=null&&gv(e.id).indexOf($H)===0}function zDe(e){return $H+e}function FDe(e,t,n){F(e,function(r){var a=r.newOption;ht(a)&&(r.keyInfo.mainType=t,r.keyInfo.subType=HDe(t,a,r.existing,n))})}function HDe(e,t,n,r){var a=t.type?t.type:n?n.subType:r.determineSubType(e,t);return a}function GDe(e,t){var n={},r={};return a(e||[],n),a(t||[],r,n),[i(n),i(r)];function a(o,s,l){for(var u=0,c=o.length;u<c;u++){var f=tr(o[u].seriesId,null);if(f==null)return;for(var d=hn(o[u].dataIndex),h=l&&l[f],v=0,p=d.length;v<p;v++){var g=d[v];h&&h[g]?h[g]=null:(s[f]||(s[f]={}))[g]=1}}}function i(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var c=i(o[u],!0);c.length&&l.push({seriesId:u,dataIndex:c})}return l}}function cc(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return Re(t.dataIndex)?Oe(t.dataIndex,function(n){return e.indexOfRawIndex(n)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return Re(t.name)?Oe(t.name,function(n){return e.indexOfName(n)}):e.indexOfName(t.name)}function en(){var e="__ec_inner_"+WDe++;return function(t){return t[e]||(t[e]={})}}var WDe=LH();function mv(e,t,n){var r=Rk(t,n),a=r.mainTypeSpecified,i=r.queryOptionMap,o=r.others,s=o,l=n?n.defaultMainType:null;return!a&&l&&i.set(l,{}),i.each(function(u,c){var f=cg(e,c,u,{useDefault:l===c,enableAll:n&&n.enableAll!=null?n.enableAll:!0,enableNone:n&&n.enableNone!=null?n.enableNone:!0});s[c+"Models"]=f.models,s[c+"Model"]=f.models[0]}),s}function Rk(e,t){var n;if(Je(e)){var r={};r[e+"Index"]=0,n=r}else n=e;var a=ot(),i={},o=!1;return F(n,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){i[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],c=u[1],f=(u[2]||"").toLowerCase();if(!(!c||!f||t&&t.includeMainTypes&&$t(t.includeMainTypes,c)<0)){o=o||!!c;var d=a.get(c)||a.set(c,{});d[f]=s}}),{mainTypeSpecified:o,queryOptionMap:a,others:i}}var Wn={useDefault:!0,enableAll:!1,enableNone:!1},KDe={useDefault:!1,enableAll:!0,enableNone:!0};function cg(e,t,n,r){r=r||Wn;var a=n.index,i=n.id,o=n.name,s={models:null,specified:a!=null||i!=null||o!=null};if(!s.specified){var l=void 0;return s.models=r.useDefault&&(l=e.getComponent(t))?[l]:[],s}return a==="none"||a===!1?(Nr(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(a==="all"&&(Nr(r.enableAll,'`"all"` is not a valid value on index option.'),a=i=o=null),s.models=e.queryComponents({mainType:t,index:a,id:i,name:o}),s)}function VH(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function UDe(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function YDe(e){return e==="auto"?Jt.domSupported?"html":"richText":e||"html"}function Jx(e,t){var n=ot(),r=[];return F(e,function(a){var i=t(a);(n.get(i)||(r.push(i),n.set(i,[]))).push(a)}),{keys:r,buckets:n}}function zH(e,t,n,r,a){var i=t==null||t==="auto";if(r==null)return r;if(Qt(r)){var o=QL(n||0,r,a);return Rn(o,i?Math.max(Ei(n||0),Ei(r)):t)}else{if(Je(r))return a<1?n:r;for(var s=[],l=n,u=r,c=Math.max(l?l.length:0,u.length),f=0;f<c;++f){var d=e.getDimensionInfo(f);if(d&&d.type==="ordinal")s[f]=(a<1&&l?l:u)[f];else{var h=l&&l[f]?l[f]:0,v=u[f],o=QL(h,v,a);s[f]=Rn(o,i?Math.max(Ei(h),Ei(v)):t)}}return s}}var jDe=".",jl="___EC__COMPONENT__CONTAINER___",FH="___EC__EXTENDED_CLASS___";function co(e){var t={main:"",sub:""};if(e){var n=e.split(jDe);t.main=n[0]||"",t.sub=n[1]||""}return t}function qDe(e){Nr(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function XDe(e){return!!(e&&e[FH])}function Ok(e,t){e.$constructor=e,e.extend=function(n){var r=this,a;return ZDe(r)?a=function(i){ge(o,i);function o(){return i.apply(this,arguments)||this}return o}(r):(a=function(){(n.$constructor||r).apply(this,arguments)},_k(a,this)),Ie(a.prototype,n),a[FH]=!0,a.extend=this.extend,a.superCall=ePe,a.superApply=tPe,a.superClass=r,a}}function ZDe(e){return ut(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function HH(e,t){e.extend=t.extend}var JDe=Math.round(Math.random()*10);function QDe(e){var t=["__\0is_clz",JDe++].join("_");e.prototype[t]=!0,e.isInstance=function(n){return!!(n&&n[t])}}function ePe(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[t].apply(e,n)}function tPe(e,t,n){return this.superClass.prototype[t].apply(e,n)}function _1(e){var t={};e.registerClass=function(r){var a=r.type||r.prototype.type;if(a){qDe(a),r.prototype.type=a;var i=co(a);if(!i.sub)t[i.main]=r;else if(i.sub!==jl){var o=n(i);o[i.sub]=r}}return r},e.getClass=function(r,a,i){var o=t[r];if(o&&o[jl]&&(o=a?o[a]:null),i&&!o)throw new Error(a?"Component "+r+"."+(a||"")+" is used but not imported.":r+".type should be specified.");return o},e.getClassesByMainType=function(r){var a=co(r),i=[],o=t[a.main];return o&&o[jl]?F(o,function(s,l){l!==jl&&i.push(s)}):i.push(o),i},e.hasClass=function(r){var a=co(r);return!!t[a.main]},e.getAllClassMainTypes=function(){var r=[];return F(t,function(a,i){r.push(i)}),r},e.hasSubTypes=function(r){var a=co(r),i=t[a.main];return i&&i[jl]};function n(r){var a=t[r.main];return(!a||!a[jl])&&(a=t[r.main]={},a[jl]=!0),a}}function fc(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t=t||!1,function(r,a,i){for(var o={},s=0;s<e.length;s++){var l=e[s][1];if(!(a&&$t(a,l)>=0||i&&$t(i,l)<0)){var u=r.getShallow(l,t);u!=null&&(o[e[s][0]]=u)}}return o}}var nPe=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],rPe=fc(nPe),aPe=function(){function e(){}return e.prototype.getAreaStyle=function(t,n){return rPe(this,t,n)},e}(),Qx=new lg(50);function iPe(e){if(typeof e=="string"){var t=Qx.get(e);return t&&t.image}else return e}function $k(e,t,n,r,a){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!n)return t;var i=Qx.get(e),o={hostEl:n,cb:r,cbPayload:a};return i?(t=i.image,!w1(t)&&i.pending.push(o)):(t=Vi.loadImage(e,tR,tR),t.__zrImageSrc=e,Qx.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function tR(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function w1(e){return e&&e.width&&e.height}var rw=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function GH(e,t,n,r,a){if(!t)return"";var i=(e+"").split(`
  79. `);a=WH(t,n,r,a);for(var o=0,s=i.length;o<s;o++)i[o]=KH(i[o],a);return i.join(`
  80. `)}function WH(e,t,n,r){r=r||{};var a=Ie({},r);a.font=t,n=Lt(n,"..."),a.maxIterations=Lt(r.maxIterations,2);var i=a.minChar=Lt(r.minChar,0);a.cnCharWidth=Pa("国",t);var o=a.ascCharWidth=Pa("a",t);a.placeholder=Lt(r.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<i&&s>=o;l++)s-=o;var u=Pa(n,t);return u>s&&(n="",u=0),s=e-u,a.ellipsis=n,a.ellipsisWidth=u,a.contentWidth=s,a.containerWidth=e,a}function KH(e,t){var n=t.containerWidth,r=t.font,a=t.contentWidth;if(!n)return"";var i=Pa(e,r);if(i<=n)return e;for(var o=0;;o++){if(i<=a||o>=t.maxIterations){e+=t.ellipsis;break}var s=o===0?oPe(e,a,t.ascCharWidth,t.cnCharWidth):i>0?Math.floor(e.length*a/i):0;e=e.substr(0,s),i=Pa(e,r)}return e===""&&(e=t.placeholder),e}function oPe(e,t,n,r){for(var a=0,i=0,o=e.length;i<o&&a<t;i++){var s=e.charCodeAt(i);a+=0<=s&&s<=127?n:r}return i}function sPe(e,t){e!=null&&(e+="");var n=t.overflow,r=t.padding,a=t.font,i=n==="truncate",o=y1(a),s=Lt(t.lineHeight,o),l=!!t.backgroundColor,u=t.lineOverflow==="truncate",c=t.width,f;c!=null&&(n==="break"||n==="breakAll")?f=e?UH(e,t.font,c,n==="breakAll",0).lines:[]:f=e?e.split(`
  81. `):[];var d=f.length*s,h=Lt(t.height,d);if(d>h&&u){var v=Math.floor(h/s);f=f.slice(0,v)}if(e&&i&&c!=null)for(var p=WH(c,a,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),g=0;g<f.length;g++)f[g]=KH(f[g],p);for(var m=h,b=0,g=0;g<f.length;g++)b=Math.max(Pa(f[g],a),b);c==null&&(c=b);var _=b;return r&&(m+=r[0]+r[2],_+=r[1]+r[3],c+=r[1]+r[3]),l&&(_=c),{lines:f,height:h,outerWidth:_,outerHeight:m,lineHeight:s,calculatedLineHeight:o,contentWidth:b,contentHeight:d,width:c}}var lPe=function(){function e(){}return e}(),nR=function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e}(),uPe=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 cPe(e,t){var n=new uPe;if(e!=null&&(e+=""),!e)return n;for(var r=t.width,a=t.height,i=t.overflow,o=(i==="break"||i==="breakAll")&&r!=null?{width:r,accumWidth:0,breakAll:i==="breakAll"}:null,s=rw.lastIndex=0,l;(l=rw.exec(e))!=null;){var u=l.index;u>s&&aw(n,e.substring(s,u),t,o),aw(n,l[2],t,o,l[1]),s=rw.lastIndex}s<e.length&&aw(n,e.substring(s,e.length),t,o);var c=[],f=0,d=0,h=t.padding,v=i==="truncate",p=t.lineOverflow==="truncate";function g($,I,z){$.width=I,$.lineHeight=z,f+=z,d=Math.max(d,I)}e:for(var m=0;m<n.lines.length;m++){for(var b=n.lines[m],_=0,w=0,C=0;C<b.tokens.length;C++){var S=b.tokens[C],x=S.styleName&&t.rich[S.styleName]||{},T=S.textPadding=x.padding,M=T?T[1]+T[3]:0,A=S.font=x.font||t.font;S.contentHeight=y1(A);var k=Lt(x.height,S.contentHeight);if(S.innerHeight=k,T&&(k+=T[0]+T[2]),S.height=k,S.lineHeight=Ri(x.lineHeight,t.lineHeight,k),S.align=x&&x.align||t.align,S.verticalAlign=x&&x.verticalAlign||"middle",p&&a!=null&&f+S.lineHeight>a){C>0?(b.tokens=b.tokens.slice(0,C),g(b,w,_),n.lines=n.lines.slice(0,m+1)):n.lines=n.lines.slice(0,m);break e}var E=x.width,D=E==null||E==="auto";if(typeof E=="string"&&E.charAt(E.length-1)==="%")S.percentWidth=E,c.push(S),S.contentWidth=Pa(S.text,A);else{if(D){var L=x.backgroundColor,B=L&&L.image;B&&(B=iPe(B),w1(B)&&(S.width=Math.max(S.width,B.width*k/B.height)))}var N=v&&r!=null?r-w:null;N!=null&&N<S.width?!D||N<M?(S.text="",S.width=S.contentWidth=0):(S.text=GH(S.text,N-M,A,t.ellipsis,{minChar:t.truncateMinChar}),S.width=S.contentWidth=Pa(S.text,A)):S.contentWidth=Pa(S.text,A)}S.width+=M,w+=S.width,x&&(_=Math.max(_,S.lineHeight))}g(b,w,_)}n.outerWidth=n.width=Lt(r,d),n.outerHeight=n.height=Lt(a,f),n.contentHeight=f,n.contentWidth=d,h&&(n.outerWidth+=h[1]+h[3],n.outerHeight+=h[0]+h[2]);for(var m=0;m<c.length;m++){var S=c[m],O=S.percentWidth;S.width=parseInt(O,10)/100*n.width}return n}function aw(e,t,n,r,a){var i=t==="",o=a&&n.rich[a]||{},s=e.lines,l=o.font||n.font,u=!1,c,f;if(r){var d=o.padding,h=d?d[1]+d[3]:0;if(o.width!=null&&o.width!=="auto"){var v=Fi(o.width,r.width)+h;s.length>0&&v+r.accumWidth>r.width&&(c=t.split(`
  82. `),u=!0),r.accumWidth=v}else{var p=UH(t,l,r.width,r.breakAll,r.accumWidth);r.accumWidth=p.accumWidth+h,f=p.linesWidths,c=p.lines}}else c=t.split(`
  83. `);for(var g=0;g<c.length;g++){var m=c[g],b=new lPe;if(b.styleName=a,b.text=m,b.isLineHolder=!m&&!i,typeof o.width=="number"?b.width=o.width:b.width=f?f[g]:Pa(m,l),!g&&!u){var _=(s[s.length-1]||(s[0]=new nR)).tokens,w=_.length;w===1&&_[0].isLineHolder?_[0]=b:(m||!w||i)&&_.push(b)}else s.push(new nR([b]))}}function fPe(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var dPe=ui(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function hPe(e){return fPe(e)?!!dPe[e]:!0}function UH(e,t,n,r,a){for(var i=[],o=[],s="",l="",u=0,c=0,f=0;f<e.length;f++){var d=e.charAt(f);if(d===`
  84. `){l&&(s+=l,c+=u),i.push(s),o.push(c),s="",l="",u=0,c=0;continue}var h=Pa(d,t),v=r?!1:!hPe(d);if(i.length?c+h>n:a+c+h>n){c?(s||l)&&(v?(s||(s=l,l="",u=0,c=u),i.push(s),o.push(c-u),l+=d,u+=h,s="",c=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(c),s=d,c=h)):v?(i.push(l),o.push(u),l=d,u=h):(i.push(d),o.push(h));continue}c+=h,v?(l+=d,u+=h):(l&&(s+=l,l="",u=0),s+=d)}return!i.length&&!s&&(s=e,l="",u=0),l&&(s+=l),s&&(i.push(s),o.push(c)),i.length===1&&(c+=a),{accumWidth:c,lines:i,linesWidths:o}}var e2="__zr_style_"+Math.round(Math.random()*10),Xu={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},S1={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Xu[e2]=!0;var rR=["z","z2","invisible"],vPe=["invisible"],pPe=function(e){ge(t,e);function t(n){return e.call(this,n)||this}return t.prototype._init=function(n){for(var r=Gt(n),a=0;a<r.length;a++){var i=r[a];i==="style"?this.useStyle(n[i]):e.prototype.attrKV.call(this,i,n[i])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(n,r,a,i){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&gPe(this,n,r)||o&&!o[0]&&!o[3])return!1;if(a&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(i&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(n,r){return this.rectContain(n,r)},t.prototype.traverse=function(n,r){n.call(r,this)},t.prototype.rectContain=function(n,r){var a=this.transformCoordToLocal(n,r),i=this.getBoundingRect();return i.contain(a[0],a[1])},t.prototype.getPaintRect=function(){var n=this._paintRect;if(!this._paintRect||this.__dirty){var r=this.transform,a=this.getBoundingRect(),i=this.style,o=i.shadowBlur||0,s=i.shadowOffsetX||0,l=i.shadowOffsetY||0;n=this._paintRect||(this._paintRect=new Rt(0,0,0,0)),r?Rt.applyTransform(n,a,r):n.copy(a),(o||s||l)&&(n.width+=o*2+Math.abs(s),n.height+=o*2+Math.abs(l),n.x=Math.min(n.x,n.x+s-o),n.y=Math.min(n.y,n.y+l-o));var u=this.dirtyRectTolerance;n.isZero()||(n.x=Math.floor(n.x-u),n.y=Math.floor(n.y-u),n.width=Math.ceil(n.width+1+u*2),n.height=Math.ceil(n.height+1+u*2))}return n},t.prototype.setPrevPaintRect=function(n){n?(this._prevPaintRect=this._prevPaintRect||new Rt(0,0,0,0),this._prevPaintRect.copy(n)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(n){return this.animate("style",n)},t.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(n,r){n!=="style"?e.prototype.attrKV.call(this,n,r):this.style?this.setStyle(r):this.useStyle(r)},t.prototype.setStyle=function(n,r){return typeof n=="string"?this.style[n]=r:Ie(this.style,n),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(n){n||this.markRedraw(),this.__dirty|=Bh,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&Bh)},t.prototype.styleUpdated=function(){this.__dirty&=~Bh},t.prototype.createStyle=function(n){return og(Xu,n)},t.prototype.useStyle=function(n){n[e2]||(n=this.createStyle(n)),this.__inHover?this.__hoverStyle=n:this.style=n,this.dirtyStyle()},t.prototype.isStyleObject=function(n){return n[e2]},t.prototype._innerSaveToNormal=function(n){e.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.style&&!r.style&&(r.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(n,r,rR)},t.prototype._applyStateObj=function(n,r,a,i,o,s){e.prototype._applyStateObj.call(this,n,r,a,i,o,s);var l=!(r&&i),u;if(r&&r.style?o?i?u=r.style:(u=this._mergeStyle(this.createStyle(),a.style),this._mergeStyle(u,r.style)):(u=this._mergeStyle(this.createStyle(),i?this.style:a.style),this._mergeStyle(u,r.style)):l&&(u=a.style),u)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var f=Gt(c),d=0;d<f.length;d++){var h=f[d];h in u&&(u[h]=u[h],this.style[h]=c[h])}for(var v=Gt(u),d=0;d<v.length;d++){var h=v[d];this.style[h]=this.style[h]}this._transitionState(n,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var p=this.__inHover?vPe:rR,d=0;d<p.length;d++){var h=p[d];r&&r[h]!=null?this[h]=r[h]:l&&a[h]!=null&&(this[h]=a[h])}},t.prototype._mergeStates=function(n){for(var r=e.prototype._mergeStates.call(this,n),a,i=0;i<n.length;i++){var o=n[i];o.style&&(a=a||{},this._mergeStyle(a,o.style))}return a&&(r.style=a),r},t.prototype._mergeStyle=function(n,r){return Ie(n,r),n},t.prototype.getAnimationStyleProps=function(){return S1},t.initDefaultProps=function(){var n=t.prototype;n.type="displayable",n.invisible=!1,n.z=0,n.z2=0,n.zlevel=0,n.culling=!1,n.cursor="pointer",n.rectHover=!1,n.incremental=!1,n._rect=null,n.dirtyRectTolerance=0,n.__dirty=Ta|Bh}(),t}(MH),iw=new Rt(0,0,0,0),ow=new Rt(0,0,0,0);function gPe(e,t,n){return iw.copy(e.getBoundingRect()),e.transform&&iw.applyTransform(e.transform),ow.width=t,ow.height=n,!iw.intersect(ow)}const ci=pPe;var da=Math.min,ha=Math.max,sw=Math.sin,lw=Math.cos,ql=Math.PI*2,um=Dl(),cm=Dl(),fm=Dl();function C1(e,t,n){if(e.length!==0){for(var r=e[0],a=r[0],i=r[0],o=r[1],s=r[1],l=1;l<e.length;l++)r=e[l],a=da(a,r[0]),i=ha(i,r[0]),o=da(o,r[1]),s=ha(s,r[1]);t[0]=a,t[1]=o,n[0]=i,n[1]=s}}function aR(e,t,n,r,a,i){a[0]=da(e,n),a[1]=da(t,r),i[0]=ha(e,n),i[1]=ha(t,r)}var iR=[],oR=[];function mPe(e,t,n,r,a,i,o,s,l,u){var c=uH,f=nr,d=c(e,n,a,o,iR);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=f(e,n,a,o,iR[h]);l[0]=da(v,l[0]),u[0]=ha(v,u[0])}d=c(t,r,i,s,oR);for(var h=0;h<d;h++){var p=f(t,r,i,s,oR[h]);l[1]=da(p,l[1]),u[1]=ha(p,u[1])}l[0]=da(e,l[0]),u[0]=ha(e,u[0]),l[0]=da(o,l[0]),u[0]=ha(o,u[0]),l[1]=da(t,l[1]),u[1]=ha(t,u[1]),l[1]=da(s,l[1]),u[1]=ha(s,u[1])}function yPe(e,t,n,r,a,i,o,s){var l=fH,u=fr,c=ha(da(l(e,n,a),1),0),f=ha(da(l(t,r,i),1),0),d=u(e,n,a,c),h=u(t,r,i,f);o[0]=da(e,a,d),o[1]=da(t,i,h),s[0]=ha(e,a,d),s[1]=ha(t,i,h)}function bPe(e,t,n,r,a,i,o,s,l){var u=Wo,c=Ko,f=Math.abs(a-i);if(f%ql<1e-4&&f>1e-4){s[0]=e-n,s[1]=t-r,l[0]=e+n,l[1]=t+r;return}if(um[0]=lw(a)*n+e,um[1]=sw(a)*r+t,cm[0]=lw(i)*n+e,cm[1]=sw(i)*r+t,u(s,um,cm),c(l,um,cm),a=a%ql,a<0&&(a=a+ql),i=i%ql,i<0&&(i=i+ql),a>i&&!o?i+=ql:a<i&&o&&(a+=ql),o){var d=i;i=a,a=d}for(var h=0;h<i;h+=Math.PI/2)h>a&&(fm[0]=lw(h)*n+e,fm[1]=sw(h)*r+t,u(s,fm,s),c(l,fm,l))}var pn={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Xl=[],Zl=[],qi=[],Ss=[],Xi=[],Zi=[],uw=Math.min,cw=Math.max,Jl=Math.cos,Ql=Math.sin,Po=Math.abs,t2=Math.PI,Rs=t2*2,fw=typeof Float32Array<"u",ch=[];function dw(e){var t=Math.round(e/t2*1e8)/1e8;return t%2*t2}function YH(e,t){var n=dw(e[0]);n<0&&(n+=Rs);var r=n-e[0],a=e[1];a+=r,!t&&a-n>=Rs?a=n+Rs:t&&n-a>=Rs?a=n-Rs:!t&&n>a?a=n+(Rs-dw(n-a)):t&&n<a&&(a=n-(Rs-dw(a-n))),e[0]=n,e[1]=a}var _Pe=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,n,r){r=r||0,r>0&&(this._ux=Po(r/P0/t)||0,this._uy=Po(r/P0/n)||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,n){return this._drawPendingPt(),this.addData(pn.M,t,n),this._ctx&&this._ctx.moveTo(t,n),this._x0=t,this._y0=n,this._xi=t,this._yi=n,this},e.prototype.lineTo=function(t,n){var r=Po(t-this._xi),a=Po(n-this._yi),i=r>this._ux||a>this._uy;if(this.addData(pn.L,t,n),this._ctx&&i&&this._ctx.lineTo(t,n),i)this._xi=t,this._yi=n,this._pendingPtDist=0;else{var o=r*r+a*a;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=n,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,n,r,a,i,o){return this._drawPendingPt(),this.addData(pn.C,t,n,r,a,i,o),this._ctx&&this._ctx.bezierCurveTo(t,n,r,a,i,o),this._xi=i,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,n,r,a){return this._drawPendingPt(),this.addData(pn.Q,t,n,r,a),this._ctx&&this._ctx.quadraticCurveTo(t,n,r,a),this._xi=r,this._yi=a,this},e.prototype.arc=function(t,n,r,a,i,o){this._drawPendingPt(),ch[0]=a,ch[1]=i,YH(ch,o),a=ch[0],i=ch[1];var s=i-a;return this.addData(pn.A,t,n,r,r,a,s,0,o?0:1),this._ctx&&this._ctx.arc(t,n,r,a,i,o),this._xi=Jl(i)*r+t,this._yi=Ql(i)*r+n,this},e.prototype.arcTo=function(t,n,r,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,n,r,a,i),this},e.prototype.rect=function(t,n,r,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,n,r,a),this.addData(pn.R,t,n,r,a),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(pn.Z);var t=this._ctx,n=this._x0,r=this._y0;return t&&t.closePath(),this._xi=n,this._yi=r,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 n=t.length;!(this.data&&this.data.length===n)&&fw&&(this.data=new Float32Array(n));for(var r=0;r<n;r++)this.data[r]=t[r];this._len=n},e.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var n=t.length,r=0,a=this._len,i=0;i<n;i++)r+=t[i].len();fw&&this.data instanceof Float32Array&&(this.data=new Float32Array(a+r));for(var i=0;i<n;i++)for(var o=t[i].data,s=0;s<o.length;s++)this.data[a++]=o[s];this._len=a},e.prototype.addData=function(t,n,r,a,i,o,s,l,u){if(this._saveData){var c=this.data;this._len+arguments.length>c.length&&(this._expandData(),c=this.data);for(var f=0;f<arguments.length;f++)c[this._len++]=arguments[f]}},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=[],n=0;n<this._len;n++)t[n]=this.data[n];this.data=t}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,fw&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){qi[0]=qi[1]=Xi[0]=Xi[1]=Number.MAX_VALUE,Ss[0]=Ss[1]=Zi[0]=Zi[1]=-Number.MAX_VALUE;var t=this.data,n=0,r=0,a=0,i=0,o;for(o=0;o<this._len;){var s=t[o++],l=o===1;switch(l&&(n=t[o],r=t[o+1],a=n,i=r),s){case pn.M:n=a=t[o++],r=i=t[o++],Xi[0]=a,Xi[1]=i,Zi[0]=a,Zi[1]=i;break;case pn.L:aR(n,r,t[o],t[o+1],Xi,Zi),n=t[o++],r=t[o++];break;case pn.C:mPe(n,r,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],Xi,Zi),n=t[o++],r=t[o++];break;case pn.Q:yPe(n,r,t[o++],t[o++],t[o],t[o+1],Xi,Zi),n=t[o++],r=t[o++];break;case pn.A:var u=t[o++],c=t[o++],f=t[o++],d=t[o++],h=t[o++],v=t[o++]+h;o+=1;var p=!t[o++];l&&(a=Jl(h)*f+u,i=Ql(h)*d+c),bPe(u,c,f,d,h,v,p,Xi,Zi),n=Jl(v)*f+u,r=Ql(v)*d+c;break;case pn.R:a=n=t[o++],i=r=t[o++];var g=t[o++],m=t[o++];aR(a,i,a+g,i+m,Xi,Zi);break;case pn.Z:n=a,r=i;break}Wo(qi,qi,Xi),Ko(Ss,Ss,Zi)}return o===0&&(qi[0]=qi[1]=Ss[0]=Ss[1]=0),new Rt(qi[0],qi[1],Ss[0]-qi[0],Ss[1]-qi[1])},e.prototype._calculateLength=function(){var t=this.data,n=this._len,r=this._ux,a=this._uy,i=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,c=0,f=0,d=0;d<n;){var h=t[d++],v=d===1;v&&(i=t[d],o=t[d+1],s=i,l=o);var p=-1;switch(h){case pn.M:i=s=t[d++],o=l=t[d++];break;case pn.L:{var g=t[d++],m=t[d++],b=g-i,_=m-o;(Po(b)>r||Po(_)>a||d===n-1)&&(p=Math.sqrt(b*b+_*_),i=g,o=m);break}case pn.C:{var w=t[d++],C=t[d++],g=t[d++],m=t[d++],S=t[d++],x=t[d++];p=EIe(i,o,w,C,g,m,S,x,10),i=S,o=x;break}case pn.Q:{var w=t[d++],C=t[d++],g=t[d++],m=t[d++];p=DIe(i,o,w,C,g,m,10),i=g,o=m;break}case pn.A:var T=t[d++],M=t[d++],A=t[d++],k=t[d++],E=t[d++],D=t[d++],L=D+E;d+=1,t[d++],v&&(s=Jl(E)*A+T,l=Ql(E)*k+M),p=cw(A,k)*uw(Rs,Math.abs(D)),i=Jl(L)*A+T,o=Ql(L)*k+M;break;case pn.R:{s=i=t[d++],l=o=t[d++];var B=t[d++],N=t[d++];p=B*2+N*2;break}case pn.Z:{var b=s-i,_=l-o;p=Math.sqrt(b*b+_*_),i=s,o=l;break}}p>=0&&(u[f++]=p,c+=p)}return this._pathLen=c,c},e.prototype.rebuildPath=function(t,n){var r=this.data,a=this._ux,i=this._uy,o=this._len,s,l,u,c,f,d,h=n<1,v,p,g=0,m=0,b,_=0,w,C;if(!(h&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,p=this._pathLen,b=n*p,!b)))e:for(var S=0;S<o;){var x=r[S++],T=S===1;switch(T&&(u=r[S],c=r[S+1],s=u,l=c),x!==pn.L&&_>0&&(t.lineTo(w,C),_=0),x){case pn.M:s=u=r[S++],l=c=r[S++],t.moveTo(u,c);break;case pn.L:{f=r[S++],d=r[S++];var M=Po(f-u),A=Po(d-c);if(M>a||A>i){if(h){var k=v[m++];if(g+k>b){var E=(b-g)/k;t.lineTo(u*(1-E)+f*E,c*(1-E)+d*E);break e}g+=k}t.lineTo(f,d),u=f,c=d,_=0}else{var D=M*M+A*A;D>_&&(w=f,C=d,_=D)}break}case pn.C:{var L=r[S++],B=r[S++],N=r[S++],O=r[S++],$=r[S++],I=r[S++];if(h){var k=v[m++];if(g+k>b){var E=(b-g)/k;gl(u,L,N,$,E,Xl),gl(c,B,O,I,E,Zl),t.bezierCurveTo(Xl[1],Zl[1],Xl[2],Zl[2],Xl[3],Zl[3]);break e}g+=k}t.bezierCurveTo(L,B,N,O,$,I),u=$,c=I;break}case pn.Q:{var L=r[S++],B=r[S++],N=r[S++],O=r[S++];if(h){var k=v[m++];if(g+k>b){var E=(b-g)/k;dp(u,L,N,E,Xl),dp(c,B,O,E,Zl),t.quadraticCurveTo(Xl[1],Zl[1],Xl[2],Zl[2]);break e}g+=k}t.quadraticCurveTo(L,B,N,O),u=N,c=O;break}case pn.A:var z=r[S++],G=r[S++],U=r[S++],Z=r[S++],ae=r[S++],J=r[S++],Q=r[S++],ee=!r[S++],j=U>Z?U:Z,de=Po(U-Z)>.001,ve=ae+J,ie=!1;if(h){var k=v[m++];g+k>b&&(ve=ae+J*(b-g)/k,ie=!0),g+=k}if(de&&t.ellipse?t.ellipse(z,G,U,Z,Q,ae,ve,ee):t.arc(z,G,j,ae,ve,ee),ie)break e;T&&(s=Jl(ae)*U+z,l=Ql(ae)*Z+G),u=Jl(ve)*U+z,c=Ql(ve)*Z+G;break;case pn.R:s=u=r[S],l=c=r[S+1],f=r[S++],d=r[S++];var W=r[S++],X=r[S++];if(h){var k=v[m++];if(g+k>b){var oe=b-g;t.moveTo(f,d),t.lineTo(f+uw(oe,W),d),oe-=W,oe>0&&t.lineTo(f+W,d+uw(oe,X)),oe-=X,oe>0&&t.lineTo(f+cw(W-oe,0),d+X),oe-=W,oe>0&&t.lineTo(f,d+cw(X-oe,0));break e}g+=k}t.rect(f,d,W,X);break;case pn.Z:if(h){var k=v[m++];if(g+k>b){var E=(b-g)/k;t.lineTo(u*(1-E)+s*E,c*(1-E)+l*E);break e}g+=k}t.closePath(),u=s,c=l}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.CMD=pn,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();const To=_Pe;function Bs(e,t,n,r,a,i,o){if(a===0)return!1;var s=a,l=0,u=e;if(o>t+s&&o>r+s||o<t-s&&o<r-s||i>e+s&&i>n+s||i<e-s&&i<n-s)return!1;if(e!==n)l=(t-r)/(e-n),u=(e*r-n*t)/(e-n);else return Math.abs(i-e)<=s/2;var c=l*i-o+u,f=c*c/(l*l+1);return f<=s/2*s/2}function wPe(e,t,n,r,a,i,o,s,l,u,c){if(l===0)return!1;var f=l;if(c>t+f&&c>r+f&&c>i+f&&c>s+f||c<t-f&&c<r-f&&c<i-f&&c<s-f||u>e+f&&u>n+f&&u>a+f&&u>o+f||u<e-f&&u<n-f&&u<a-f&&u<o-f)return!1;var d=cH(e,t,n,r,a,i,o,s,u,c,null);return d<=f/2}function jH(e,t,n,r,a,i,o,s,l){if(o===0)return!1;var u=o;if(l>t+u&&l>r+u&&l>i+u||l<t-u&&l<r-u&&l<i-u||s>e+u&&s>n+u&&s>a+u||s<e-u&&s<n-u&&s<a-u)return!1;var c=dH(e,t,n,r,a,i,s,l,null);return c<=u/2}var sR=Math.PI*2;function Ii(e){return e%=sR,e<0&&(e+=sR),e}var fh=Math.PI*2;function SPe(e,t,n,r,a,i,o,s,l){if(o===0)return!1;var u=o;s-=e,l-=t;var c=Math.sqrt(s*s+l*l);if(c-u>n||c+u<n)return!1;if(Math.abs(r-a)%fh<1e-4)return!0;if(i){var f=r;r=Ii(a),a=Ii(f)}else r=Ii(r),a=Ii(a);r>a&&(a+=fh);var d=Math.atan2(l,s);return d<0&&(d+=fh),d>=r&&d<=a||d+fh>=r&&d+fh<=a}function Vo(e,t,n,r,a,i){if(i>t&&i>r||i<t&&i<r||r===t)return 0;var o=(i-t)/(r-t),s=r<t?1:-1;(o===1||o===0)&&(s=r<t?.5:-.5);var l=o*(n-e)+e;return l===a?1/0:l>a?s:0}var Cs=To.CMD,eu=Math.PI*2,CPe=1e-4;function xPe(e,t){return Math.abs(e-t)<CPe}var Gr=[-1,-1,-1],Wa=[-1,-1];function TPe(){var e=Wa[0];Wa[0]=Wa[1],Wa[1]=e}function MPe(e,t,n,r,a,i,o,s,l,u){if(u>t&&u>r&&u>i&&u>s||u<t&&u<r&&u<i&&u<s)return 0;var c=E0(t,r,i,s,u,Gr);if(c===0)return 0;for(var f=0,d=-1,h=void 0,v=void 0,p=0;p<c;p++){var g=Gr[p],m=g===0||g===1?.5:1,b=nr(e,n,a,o,g);b<l||(d<0&&(d=uH(t,r,i,s,Wa),Wa[1]<Wa[0]&&d>1&&TPe(),h=nr(t,r,i,s,Wa[0]),d>1&&(v=nr(t,r,i,s,Wa[1]))),d===2?g<Wa[0]?f+=h<t?m:-m:g<Wa[1]?f+=v<h?m:-m:f+=s<v?m:-m:g<Wa[0]?f+=h<t?m:-m:f+=s<h?m:-m)}return f}function kPe(e,t,n,r,a,i,o,s){if(s>t&&s>r&&s>i||s<t&&s<r&&s<i)return 0;var l=IIe(t,r,i,s,Gr);if(l===0)return 0;var u=fH(t,r,i);if(u>=0&&u<=1){for(var c=0,f=fr(t,r,i,u),d=0;d<l;d++){var h=Gr[d]===0||Gr[d]===1?.5:1,v=fr(e,n,a,Gr[d]);v<o||(Gr[d]<u?c+=f<t?h:-h:c+=i<f?h:-h)}return c}else{var h=Gr[0]===0||Gr[0]===1?.5:1,v=fr(e,n,a,Gr[0]);return v<o?0:i<t?h:-h}}function APe(e,t,n,r,a,i,o,s){if(s-=t,s>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Gr[0]=-l,Gr[1]=l;var u=Math.abs(r-a);if(u<1e-4)return 0;if(u>=eu-1e-4){r=0,a=eu;var c=i?1:-1;return o>=Gr[0]+e&&o<=Gr[1]+e?c:0}if(r>a){var f=r;r=a,a=f}r<0&&(r+=eu,a+=eu);for(var d=0,h=0;h<2;h++){var v=Gr[h];if(v+e>o){var p=Math.atan2(s,v),c=i?1:-1;p<0&&(p=eu+p),(p>=r&&p<=a||p+eu>=r&&p+eu<=a)&&(p>Math.PI/2&&p<Math.PI*1.5&&(c=-c),d+=c)}}return d}function qH(e,t,n,r,a){for(var i=e.data,o=e.len(),s=0,l=0,u=0,c=0,f=0,d,h,v=0;v<o;){var p=i[v++],g=v===1;switch(p===Cs.M&&v>1&&(n||(s+=Vo(l,u,c,f,r,a))),g&&(l=i[v],u=i[v+1],c=l,f=u),p){case Cs.M:c=i[v++],f=i[v++],l=c,u=f;break;case Cs.L:if(n){if(Bs(l,u,i[v],i[v+1],t,r,a))return!0}else s+=Vo(l,u,i[v],i[v+1],r,a)||0;l=i[v++],u=i[v++];break;case Cs.C:if(n){if(wPe(l,u,i[v++],i[v++],i[v++],i[v++],i[v],i[v+1],t,r,a))return!0}else s+=MPe(l,u,i[v++],i[v++],i[v++],i[v++],i[v],i[v+1],r,a)||0;l=i[v++],u=i[v++];break;case Cs.Q:if(n){if(jH(l,u,i[v++],i[v++],i[v],i[v+1],t,r,a))return!0}else s+=kPe(l,u,i[v++],i[v++],i[v],i[v+1],r,a)||0;l=i[v++],u=i[v++];break;case Cs.A:var m=i[v++],b=i[v++],_=i[v++],w=i[v++],C=i[v++],S=i[v++];v+=1;var x=!!(1-i[v++]);d=Math.cos(C)*_+m,h=Math.sin(C)*w+b,g?(c=d,f=h):s+=Vo(l,u,d,h,r,a);var T=(r-m)*w/_+m;if(n){if(SPe(m,b,w,C,C+S,x,t,T,a))return!0}else s+=APe(m,b,w,C,C+S,x,T,a);l=Math.cos(C+S)*_+m,u=Math.sin(C+S)*w+b;break;case Cs.R:c=l=i[v++],f=u=i[v++];var M=i[v++],A=i[v++];if(d=c+M,h=f+A,n){if(Bs(c,f,d,f,t,r,a)||Bs(d,f,d,h,t,r,a)||Bs(d,h,c,h,t,r,a)||Bs(c,h,c,f,t,r,a))return!0}else s+=Vo(d,f,d,h,r,a),s+=Vo(c,h,c,f,r,a);break;case Cs.Z:if(n){if(Bs(l,u,c,f,t,r,a))return!0}else s+=Vo(l,u,c,f,r,a);l=c,u=f;break}}return!n&&!xPe(u,f)&&(s+=Vo(l,u,c,f,r,a)||0),s!==0}function EPe(e,t,n){return qH(e,0,!1,t,n)}function IPe(e,t,n,r){return qH(e,t,!0,n,r)}var R0=ft({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Xu),DPe={style:ft({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},S1.style)},hw=Co.concat(["invisible","culling","z","z2","zlevel","parent"]),PPe=function(e){ge(t,e);function t(n){return e.call(this,n)||this}return t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var a=this._decalEl=this._decalEl||new t;a.buildPath===t.prototype.buildPath&&(a.buildPath=function(l){n.buildPath(l,n.shape)}),a.silent=!0;var i=a.style;for(var o in r)i[o]!==r[o]&&(i[o]=r[o]);i.fill=r.fill?r.decal:null,i.decal=null,i.shadowColor=null,r.strokeFirst&&(i.stroke=null);for(var s=0;s<hw.length;++s)a[hw[s]]=this[hw[s]];a.__dirty|=Ta}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(n){var r=Gt(n);this.shape=this.getDefaultShape();var a=this.getDefaultStyle();a&&this.useStyle(a);for(var i=0;i<r.length;i++){var o=r[i],s=n[o];o==="style"?this.style?Ie(this.style,s):this.useStyle(s):o==="shape"?Ie(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 n=this.style.fill;if(n!=="none"){if(Je(n)){var r=pp(n,0);return r>.5?Yx:r>.2?hDe:jx}else if(n)return jx}return Yx},t.prototype.getInsideTextStroke=function(n){var r=this.style.fill;if(Je(r)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=pp(n,0)<Ux;if(i===o)return r}},t.prototype.buildPath=function(n,r,a){},t.prototype.pathUpdated=function(){this.__dirty&=~cf},t.prototype.getUpdatedPathProxy=function(n){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,n),this.path},t.prototype.createPathProxy=function(){this.path=new To(!1)},t.prototype.hasStroke=function(){var n=this.style,r=n.stroke;return!(r==null||r==="none"||!(n.lineWidth>0))},t.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},t.prototype.getBoundingRect=function(){var n=this._rect,r=this.style,a=!n;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&cf)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),n=o.getBoundingRect()}if(this._rect=n,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=n.clone());if(this.__dirty||a){s.copy(n);var l=r.strokeNoScale?this.getLineScale():1,u=r.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c??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 n},t.prototype.contain=function(n,r){var a=this.transformCoordToLocal(n,r),i=this.getBoundingRect(),o=this.style;if(n=a[0],r=a[1],i.contain(n,r)){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)),IPe(s,l/u,n,r)))return!0}if(this.hasFill())return EPe(s,n,r)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=cf,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(n){return this.animate("shape",n)},t.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():n==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(n,r){n==="shape"?this.setShape(r):e.prototype.attrKV.call(this,n,r)},t.prototype.setShape=function(n,r){var a=this.shape;return a||(a=this.shape={}),typeof n=="string"?a[n]=r:Ie(a,n),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&cf)},t.prototype.createStyle=function(n){return og(R0,n)},t.prototype._innerSaveToNormal=function(n){e.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.shape&&!r.shape&&(r.shape=Ie({},this.shape))},t.prototype._applyStateObj=function(n,r,a,i,o,s){e.prototype._applyStateObj.call(this,n,r,a,i,o,s);var l=!(r&&i),u;if(r&&r.shape?o?i?u=r.shape:(u=Ie({},a.shape),Ie(u,r.shape)):(u=Ie({},i?this.shape:a.shape),Ie(u,r.shape)):l&&(u=a.shape),u)if(o){this.shape=Ie({},this.shape);for(var c={},f=Gt(u),d=0;d<f.length;d++){var h=f[d];typeof u[h]=="object"?this.shape[h]=u[h]:c[h]=u[h]}this._transitionState(n,{shape:c},s)}else this.shape=u,this.dirtyShape()},t.prototype._mergeStates=function(n){for(var r=e.prototype._mergeStates.call(this,n),a,i=0;i<n.length;i++){var o=n[i];o.shape&&(a=a||{},this._mergeStyle(a,o.shape))}return a&&(r.shape=a),r},t.prototype.getAnimationStyleProps=function(){return DPe},t.prototype.isZeroArea=function(){return!1},t.extend=function(n){var r=function(i){ge(o,i);function o(s){var l=i.call(this,s)||this;return n.init&&n.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return pt(n.style)},o.prototype.getDefaultShape=function(){return pt(n.shape)},o}(t);for(var a in n)typeof n[a]=="function"&&(r.prototype[a]=n[a]);return r},t.initDefaultProps=function(){var n=t.prototype;n.type="path",n.strokeContainThreshold=5,n.segmentIgnoreThreshold=0,n.subPixelOptimize=!1,n.autoBatch=!1,n.__dirty=Ta|Bh|cf}(),t}(ci);const zt=PPe;var LPe=ft({strokeFirst:!0,font:pl,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},R0),XH=function(e){ge(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var n=this.style,r=n.stroke;return r!=null&&r!=="none"&&n.lineWidth>0},t.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},t.prototype.createStyle=function(n){return og(LPe,n)},t.prototype.setBoundingRect=function(n){this._rect=n},t.prototype.getBoundingRect=function(){var n=this.style;if(!this._rect){var r=n.text;r!=null?r+="":r="";var a=ug(r,n.font,n.textAlign,n.textBaseline);if(a.x+=n.x||0,a.y+=n.y||0,this.hasStroke()){var i=n.lineWidth;a.x-=i/2,a.y-=i/2,a.width+=i,a.height+=i}this._rect=a}return this._rect},t.initDefaultProps=function(){var n=t.prototype;n.dirtyRectTolerance=10}(),t}(ci);XH.prototype.type="tspan";const bp=XH;var RPe=ft({x:0,y:0},Xu),OPe={style:ft({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},S1.style)};function $Pe(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var ZH=function(e){ge(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(n){return og(RPe,n)},t.prototype._getSize=function(n){var r=this.style,a=r[n];if(a!=null)return a;var i=$Pe(r.image)?r.image:this.__image;if(!i)return 0;var o=n==="width"?"height":"width",s=r[o];return s==null?i[n]:i[n]/i[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return OPe},t.prototype.getBoundingRect=function(){var n=this.style;return this._rect||(this._rect=new Rt(n.x||0,n.y||0,this.getWidth(),this.getHeight())),this._rect},t}(ci);ZH.prototype.type="image";const vr=ZH;function NPe(e,t){var n=t.x,r=t.y,a=t.width,i=t.height,o=t.r,s,l,u,c;a<0&&(n=n+a,a=-a),i<0&&(r=r+i,i=-i),typeof o=="number"?s=l=u=c=o:o instanceof Array?o.length===1?s=l=u=c=o[0]:o.length===2?(s=u=o[0],l=c=o[1]):o.length===3?(s=o[0],l=c=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],c=o[3]):s=l=u=c=0;var f;s+l>a&&(f=s+l,s*=a/f,l*=a/f),u+c>a&&(f=u+c,u*=a/f,c*=a/f),l+u>i&&(f=l+u,l*=i/f,u*=i/f),s+c>i&&(f=s+c,s*=i/f,c*=i/f),e.moveTo(n+s,r),e.lineTo(n+a-l,r),l!==0&&e.arc(n+a-l,r+l,l,-Math.PI/2,0),e.lineTo(n+a,r+i-u),u!==0&&e.arc(n+a-u,r+i-u,u,0,Math.PI/2),e.lineTo(n+c,r+i),c!==0&&e.arc(n+c,r+i-c,c,Math.PI/2,Math.PI),e.lineTo(n,r+s),s!==0&&e.arc(n+s,r+s,s,Math.PI,Math.PI*1.5)}var _f=Math.round;function JH(e,t,n){if(t){var r=t.x1,a=t.x2,i=t.y1,o=t.y2;e.x1=r,e.x2=a,e.y1=i,e.y2=o;var s=n&&n.lineWidth;return s&&(_f(r*2)===_f(a*2)&&(e.x1=e.x2=Nu(r,s,!0)),_f(i*2)===_f(o*2)&&(e.y1=e.y2=Nu(i,s,!0))),e}}function QH(e,t,n){if(t){var r=t.x,a=t.y,i=t.width,o=t.height;e.x=r,e.y=a,e.width=i,e.height=o;var s=n&&n.lineWidth;return s&&(e.x=Nu(r,s,!0),e.y=Nu(a,s,!0),e.width=Math.max(Nu(r+i,s,!1)-e.x,i===0?0:1),e.height=Math.max(Nu(a+o,s,!1)-e.y,o===0?0:1)),e}}function Nu(e,t,n){if(!t)return e;var r=_f(e*2);return(r+_f(t))%2===0?r/2:(r+(n?1:-1))/2}var BPe=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),VPe={},eG=function(e){ge(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new BPe},t.prototype.buildPath=function(n,r){var a,i,o,s;if(this.subPixelOptimize){var l=QH(VPe,r,this.style);a=l.x,i=l.y,o=l.width,s=l.height,l.r=r.r,r=l}else a=r.x,i=r.y,o=r.width,s=r.height;r.r?NPe(n,r):n.rect(a,i,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(zt);eG.prototype.type="rect";const Zt=eG;var lR={fill:"#000"},uR=2,zPe={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},S1.style)},tG=function(e){ge(t,e);function t(n){var r=e.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=lR,r.attr(n),r}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var n=0;n<this._children.length;n++){var r=this._children[n];r.zlevel=this.zlevel,r.z=this.z,r.z2=this.z2,r.culling=this.culling,r.cursor=this.cursor,r.invisible=this.invisible}},t.prototype.updateTransform=function(){var n=this.innerTransformable;n?(n.updateTransform(),n.transform&&(this.transform=n.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(n){var r=this.innerTransformable;return r?r.getLocalTransform(n):e.prototype.getLocalTransform.call(this,n)},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,GPe(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(n){e.prototype.addSelfToZr.call(this,n);for(var r=0;r<this._children.length;r++)this._children[r].__zr=n},t.prototype.removeSelfFromZr=function(n){e.prototype.removeSelfFromZr.call(this,n);for(var r=0;r<this._children.length;r++)this._children[r].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var n=new Rt(0,0,0,0),r=this._children,a=[],i=null,o=0;o<r.length;o++){var s=r[o],l=s.getBoundingRect(),u=s.getLocalTransform(a);u?(n.copy(l),n.applyTransform(u),i=i||n.clone(),i.union(n)):(i=i||l.clone(),i.union(l))}this._rect=i||n}return this._rect},t.prototype.setDefaultTextStyle=function(n){this._defaultStyle=n||lR},t.prototype.setTextContent=function(n){},t.prototype._mergeStyle=function(n,r){if(!r)return n;var a=r.rich,i=n.rich||a&&{};return Ie(n,r),a&&i?(this._mergeRich(i,a),n.rich=i):i&&(n.rich=i),n},t.prototype._mergeRich=function(n,r){for(var a=Gt(r),i=0;i<a.length;i++){var o=a[i];n[o]=n[o]||{},Ie(n[o],r[o])}},t.prototype.getAnimationStyleProps=function(){return zPe},t.prototype._getOrCreateChild=function(n){var r=this._children[this._childCursor];return(!r||!(r instanceof n))&&(r=new n),this._children[this._childCursor++]=r,r.__zr=this.__zr,r.parent=this,r},t.prototype._updatePlainTexts=function(){var n=this.style,r=n.font||pl,a=n.padding,i=gR(n),o=sPe(i,n),s=vw(n),l=!!n.backgroundColor,u=o.outerHeight,c=o.outerWidth,f=o.contentWidth,d=o.lines,h=o.lineHeight,v=this._defaultStyle,p=n.x||0,g=n.y||0,m=n.align||v.align||"left",b=n.verticalAlign||v.verticalAlign||"top",_=p,w=ff(g,o.contentHeight,b);if(s||a){var C=zh(p,c,m),S=ff(g,u,b);s&&this._renderBackground(n,n,C,S,c,u)}w+=h/2,a&&(_=pR(p,m,a),b==="top"?w+=a[0]:b==="bottom"&&(w-=a[2]));for(var x=0,T=!1,M=vR("fill"in n?n.fill:(T=!0,v.fill)),A=hR("stroke"in n?n.stroke:!l&&(!v.autoStroke||T)?(x=uR,v.stroke):null),k=n.textShadowBlur>0,E=n.width!=null&&(n.overflow==="truncate"||n.overflow==="break"||n.overflow==="breakAll"),D=o.calculatedLineHeight,L=0;L<d.length;L++){var B=this._getOrCreateChild(bp),N=B.createStyle();B.useStyle(N),N.text=d[L],N.x=_,N.y=w,m&&(N.textAlign=m),N.textBaseline="middle",N.opacity=n.opacity,N.strokeFirst=!0,k&&(N.shadowBlur=n.textShadowBlur||0,N.shadowColor=n.textShadowColor||"transparent",N.shadowOffsetX=n.textShadowOffsetX||0,N.shadowOffsetY=n.textShadowOffsetY||0),N.stroke=A,N.fill=M,A&&(N.lineWidth=n.lineWidth||x,N.lineDash=n.lineDash,N.lineDashOffset=n.lineDashOffset||0),N.font=r,fR(N,n),w+=h,E&&B.setBoundingRect(new Rt(zh(N.x,n.width,N.textAlign),ff(N.y,D,N.textBaseline),f,D))}},t.prototype._updateRichTexts=function(){var n=this.style,r=gR(n),a=cPe(r,n),i=a.width,o=a.outerWidth,s=a.outerHeight,l=n.padding,u=n.x||0,c=n.y||0,f=this._defaultStyle,d=n.align||f.align,h=n.verticalAlign||f.verticalAlign,v=zh(u,o,d),p=ff(c,s,h),g=v,m=p;l&&(g+=l[3],m+=l[0]);var b=g+i;vw(n)&&this._renderBackground(n,n,v,p,o,s);for(var _=!!n.backgroundColor,w=0;w<a.lines.length;w++){for(var C=a.lines[w],S=C.tokens,x=S.length,T=C.lineHeight,M=C.width,A=0,k=g,E=b,D=x-1,L=void 0;A<x&&(L=S[A],!L.align||L.align==="left");)this._placeToken(L,n,T,m,k,"left",_),M-=L.width,k+=L.width,A++;for(;D>=0&&(L=S[D],L.align==="right");)this._placeToken(L,n,T,m,E,"right",_),M-=L.width,E-=L.width,D--;for(k+=(i-(k-g)-(b-E)-M)/2;A<=D;)L=S[A],this._placeToken(L,n,T,m,k+L.width/2,"center",_),k+=L.width,A++;m+=T}},t.prototype._placeToken=function(n,r,a,i,o,s,l){var u=r.rich[n.styleName]||{};u.text=n.text;var c=n.verticalAlign,f=i+a/2;c==="top"?f=i+n.height/2:c==="bottom"&&(f=i+a-n.height/2);var d=!n.isLineHolder&&vw(u);d&&this._renderBackground(u,r,s==="right"?o-n.width:s==="center"?o-n.width/2:o,f-n.height/2,n.width,n.height);var h=!!u.backgroundColor,v=n.textPadding;v&&(o=pR(o,s,v),f-=n.height/2-v[0]-n.innerHeight/2);var p=this._getOrCreateChild(bp),g=p.createStyle();p.useStyle(g);var m=this._defaultStyle,b=!1,_=0,w=vR("fill"in u?u.fill:"fill"in r?r.fill:(b=!0,m.fill)),C=hR("stroke"in u?u.stroke:"stroke"in r?r.stroke:!h&&!l&&(!m.autoStroke||b)?(_=uR,m.stroke):null),S=u.textShadowBlur>0||r.textShadowBlur>0;g.text=n.text,g.x=o,g.y=f,S&&(g.shadowBlur=u.textShadowBlur||r.textShadowBlur||0,g.shadowColor=u.textShadowColor||r.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||r.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||r.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=n.font||pl,g.opacity=Ri(u.opacity,r.opacity,1),fR(g,u),C&&(g.lineWidth=Ri(u.lineWidth,r.lineWidth,_),g.lineDash=Lt(u.lineDash,r.lineDash),g.lineDashOffset=r.lineDashOffset||0,g.stroke=C),w&&(g.fill=w);var x=n.contentWidth,T=n.contentHeight;p.setBoundingRect(new Rt(zh(g.x,x,g.textAlign),ff(g.y,T,g.textBaseline),x,T))},t.prototype._renderBackground=function(n,r,a,i,o,s){var l=n.backgroundColor,u=n.borderWidth,c=n.borderColor,f=l&&l.image,d=l&&!f,h=n.borderRadius,v=this,p,g;if(d||n.lineHeight||u&&c){p=this._getOrCreateChild(Zt),p.useStyle(p.createStyle()),p.style.fill=null;var m=p.shape;m.x=a,m.y=i,m.width=o,m.height=s,m.r=h,p.dirtyShape()}if(d){var b=p.style;b.fill=l||null,b.fillOpacity=Lt(n.fillOpacity,1)}else if(f){g=this._getOrCreateChild(vr),g.onload=function(){v.dirtyStyle()};var _=g.style;_.image=l.image,_.x=a,_.y=i,_.width=o,_.height=s}if(u&&c){var b=p.style;b.lineWidth=u,b.stroke=c,b.strokeOpacity=Lt(n.strokeOpacity,1),b.lineDash=n.borderDash,b.lineDashOffset=n.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(b.strokeFirst=!0,b.lineWidth*=2)}var w=(p||g).style;w.shadowBlur=n.shadowBlur||0,w.shadowColor=n.shadowColor||"transparent",w.shadowOffsetX=n.shadowOffsetX||0,w.shadowOffsetY=n.shadowOffsetY||0,w.opacity=Ri(n.opacity,r.opacity,1)},t.makeFont=function(n){var r="";return rG(n)&&(r=[n.fontStyle,n.fontWeight,nG(n.fontSize),n.fontFamily||"sans-serif"].join(" ")),r&&Za(r)||n.textFont||n.font},t}(ci),FPe={left:!0,right:1,center:1},HPe={top:1,bottom:1,middle:1},cR=["fontStyle","fontWeight","fontSize","fontFamily"];function nG(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?gk+"px":e+"px"}function fR(e,t){for(var n=0;n<cR.length;n++){var r=cR[n],a=t[r];a!=null&&(e[r]=a)}}function rG(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function GPe(e){return dR(e),F(e.rich,dR),e}function dR(e){if(e){e.font=tG.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||FPe[t]?t:"left";var n=e.verticalAlign;n==="center"&&(n="middle"),e.verticalAlign=n==null||HPe[n]?n:"top";var r=e.padding;r&&(e.padding=v1(e.padding))}}function hR(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function vR(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function pR(e,t,n){return t==="right"?e-n[1]:t==="center"?e+n[3]/2-n[1]/2:e+n[3]}function gR(e){var t=e.text;return t!=null&&(t+=""),t}function vw(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}const Xt=tG;var Tt=en(),n2=function(e,t,n,r){if(r){var a=Tt(r);a.dataIndex=n,a.dataType=t,a.seriesIndex=e,r.type==="group"&&r.traverse(function(i){var o=Tt(i);o.seriesIndex=e,o.dataIndex=n,o.dataType=t})}},mR=1,yR={},aG=en(),Nk=en(),Bk=0,fg=1,x1=2,ta=["emphasis","blur","select"],_p=["normal","emphasis","blur","select"],Dd=10,WPe=9,Zu="highlight",Vy="downplay",yv="select",zy="unselect",bv="toggleSelect";function Fc(e){return e!=null&&e!=="none"}var bR=new lg(100);function _R(e){if(Je(e)){var t=bR.get(e);return t||(t=I0(e,-.1),bR.put(e,t)),t}else if(ig(e)){var n=Ie({},e);return n.colorStops=Oe(e.colorStops,function(r){return{offset:r.offset,color:I0(r.color,-.1)}}),n}return e}function T1(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function iG(e){T1(e,"emphasis",x1)}function oG(e){e.hoverState===x1&&T1(e,"normal",Bk)}function Vk(e){T1(e,"blur",fg)}function sG(e){e.hoverState===fg&&T1(e,"normal",Bk)}function KPe(e){e.selected=!0}function UPe(e){e.selected=!1}function wR(e,t,n){t(e,n)}function ps(e,t,n){wR(e,t,n),e.isGroup&&e.traverse(function(r){wR(r,t,n)})}function O0(e,t){switch(t){case"emphasis":e.hoverState=x1;break;case"normal":e.hoverState=Bk;break;case"blur":e.hoverState=fg;break;case"select":e.selected=!0}}function YPe(e,t,n,r){for(var a=e.style,i={},o=0;o<t.length;o++){var s=t[o],l=a[s];i[s]=l??(r&&r[s])}for(var o=0;o<e.animators.length;o++){var u=e.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&u.targetName==="style"&&u.saveTo(i,t)}return i}function jPe(e,t,n,r){var a=n&&$t(n,"select")>=0,i=!1;if(e instanceof zt){var o=aG(e),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(Fc(s)||Fc(l)){r=r||{};var u=r.style||{};u.fill==="inherit"?(i=!0,r=Ie({},r),u=Ie({},u),u.fill=s):!Fc(u.fill)&&Fc(s)?(i=!0,r=Ie({},r),u=Ie({},u),u.fill=_R(s)):!Fc(u.stroke)&&Fc(l)&&(i||(r=Ie({},r),u=Ie({},u)),u.stroke=_R(l)),r.style=u}}if(r&&r.z2==null){i||(r=Ie({},r));var c=e.z2EmphasisLift;r.z2=e.z2+(c??Dd)}return r}function qPe(e,t,n){if(n&&n.z2==null){n=Ie({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??WPe)}return n}function XPe(e,t,n){var r=$t(e.currentStates,t)>=0,a=e.style.opacity,i=r?null:YPe(e,["opacity"],t,{opacity:1});n=n||{};var o=n.style||{};return o.opacity==null&&(n=Ie({},n),o=Ie({opacity:r?a:i.opacity*.1},o),n.style=o),n}function pw(e,t){var n=this.states[e];if(this.style){if(e==="emphasis")return jPe(this,e,t,n);if(e==="blur")return XPe(this,e,n);if(e==="select")return qPe(this,e,n)}return n}function dc(e){e.stateProxy=pw;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=pw),n&&(n.stateProxy=pw)}function SR(e,t){!fG(e,t)&&!e.__highByOuter&&ps(e,iG)}function CR(e,t){!fG(e,t)&&!e.__highByOuter&&ps(e,oG)}function rs(e,t){e.__highByOuter|=1<<(t||0),ps(e,iG)}function as(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&ps(e,oG)}function lG(e){ps(e,Vk)}function zk(e){ps(e,sG)}function uG(e){ps(e,KPe)}function cG(e){ps(e,UPe)}function fG(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function dG(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(a,i){var o=Nk(i),s=a==="series",l=s?e.getViewOfSeriesModel(i):e.getViewOfComponentModel(i);!s&&r.push(l),o.isBlured&&(l.group.traverse(function(u){sG(u)}),s&&n.push(i)),o.isBlured=!1}),F(r,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(n,!1,t)})}function r2(e,t,n,r){var a=r.getModel();n=n||"coordinateSystem";function i(u,c){for(var f=0;f<c.length;f++){var d=u.getItemGraphicEl(c[f]);d&&zk(d)}}if(e!=null&&!(!t||t==="none")){var o=a.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];a.eachSeries(function(u){var c=o===u,f=u.coordinateSystem;f&&f.master&&(f=f.master);var d=f&&s?f===s:c;if(!(n==="series"&&!c||n==="coordinateSystem"&&!d||t==="series"&&c)){var h=r.getViewOfSeriesModel(u);if(h.group.traverse(function(g){g.__highByOuter&&c&&t==="self"||Vk(g)}),Cr(t))i(u.getData(),t);else if(ht(t))for(var v=Gt(t),p=0;p<v.length;p++)i(u.getData(v[p]),t[v[p]]);l.push(u),Nk(u).isBlured=!0}}),a.eachComponent(function(u,c){if(u!=="series"){var f=r.getViewOfComponentModel(c);f&&f.toggleBlurSeries&&f.toggleBlurSeries(l,!0,a)}})}}function a2(e,t,n){if(!(e==null||t==null)){var r=n.getModel().getComponent(e,t);if(r){Nk(r).isBlured=!0;var a=n.getViewOfComponentModel(r);!a||!a.focusBlurEnabled||a.group.traverse(function(i){Vk(i)})}}}function ZPe(e,t,n){var r=e.seriesIndex,a=e.getData(t.dataType);if(a){var i=cc(a,t);i=(Re(i)?i[0]:i)||0;var o=a.getItemGraphicEl(i);if(!o)for(var s=a.count(),l=0;!o&&l<s;)o=a.getItemGraphicEl(l++);if(o){var u=Tt(o);r2(r,u.focus,u.blurScope,n)}else{var c=e.get(["emphasis","focus"]),f=e.get(["emphasis","blurScope"]);c!=null&&r2(r,c,f,n)}}}function Fk(e,t,n,r){var a={focusSelf:!1,dispatchers:null};if(e==null||e==="series"||t==null||n==null)return a;var i=r.getModel().getComponent(e,t);if(!i)return a;var o=r.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return a;for(var s=o.findHighDownDispatchers(n),l,u=0;u<s.length;u++)if(Tt(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function JPe(e,t,n){var r=Tt(e),a=Fk(r.componentMainType,r.componentIndex,r.componentHighDownName,n),i=a.dispatchers,o=a.focusSelf;i?(o&&a2(r.componentMainType,r.componentIndex,n),F(i,function(s){return SR(s,t)})):(r2(r.seriesIndex,r.focus,r.blurScope,n),r.focus==="self"&&a2(r.componentMainType,r.componentIndex,n),SR(e,t))}function QPe(e,t,n){dG(n);var r=Tt(e),a=Fk(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;a?F(a,function(i){return CR(i,t)}):CR(e,t)}function eLe(e,t,n){if(o2(t)){var r=t.dataType,a=e.getData(r),i=cc(a,t);Re(i)||(i=[i]),e[t.type===bv?"toggleSelect":t.type===yv?"select":"unselect"](i,r)}}function xR(e){var t=e.getAllData();F(t,function(n){var r=n.data,a=n.type;r.eachItemGraphicEl(function(i,o){e.isSelected(o,a)?uG(i):cG(i)})})}function tLe(e){var t=[];return e.eachSeries(function(n){var r=n.getAllData();F(r,function(a){a.data;var i=a.type,o=n.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:n.seriesIndex};i!=null&&(s.dataType=i),t.push(s)}})}),t}function rl(e,t,n){Bu(e,!0),ps(e,dc),i2(e,t,n)}function nLe(e){Bu(e,!1)}function $n(e,t,n,r){r?nLe(e):rl(e,t,n)}function i2(e,t,n){var r=Tt(e);t!=null?(r.focus=t,r.blurScope=n):r.focus&&(r.focus=null)}var TR=["emphasis","blur","select"],rLe={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function xr(e,t,n,r){n=n||"itemStyle";for(var a=0;a<TR.length;a++){var i=TR[a],o=t.getModel([i,n]),s=e.ensureState(i);s.style=r?r(o):o[rLe[n]]()}}function Bu(e,t){var n=t===!1,r=e;e.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!n||r.__highDownDispatcher)&&(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function wp(e){return!!(e&&e.__highDownDispatcher)}function aLe(e,t,n){var r=Tt(e);r.componentMainType=t.mainType,r.componentIndex=t.componentIndex,r.componentHighDownName=n}function iLe(e){var t=yR[e];return t==null&&mR<=32&&(t=yR[e]=mR++),t}function o2(e){var t=e.type;return t===yv||t===zy||t===bv}function MR(e){var t=e.type;return t===Zu||t===Vy}function oLe(e){var t=aG(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var n=e.states.select||{};t.selectFill=n.style&&n.style.fill||null,t.selectStroke=n.style&&n.style.stroke||null}var Hc=To.CMD,sLe=[[],[],[]],kR=Math.sqrt,lLe=Math.atan2;function hG(e,t){if(t){var n=e.data,r=e.len(),a,i,o,s,l,u,c=Hc.M,f=Hc.C,d=Hc.L,h=Hc.R,v=Hc.A,p=Hc.Q;for(o=0,s=0;o<r;){switch(a=n[o++],s=o,i=0,a){case c:i=1;break;case d:i=1;break;case f:i=3;break;case p:i=2;break;case v:var g=t[4],m=t[5],b=kR(t[0]*t[0]+t[1]*t[1]),_=kR(t[2]*t[2]+t[3]*t[3]),w=lLe(-t[1]/_,t[0]/b);n[o]*=b,n[o++]+=g,n[o]*=_,n[o++]+=m,n[o++]*=b,n[o++]*=_,n[o++]+=w,n[o++]+=w,o+=2,s=o;break;case h:u[0]=n[o++],u[1]=n[o++],hr(u,u,t),n[s++]=u[0],n[s++]=u[1],u[0]+=n[o++],u[1]+=n[o++],hr(u,u,t),n[s++]=u[0],n[s++]=u[1]}for(l=0;l<i;l++){var C=sLe[l];C[0]=n[o++],C[1]=n[o++],hr(C,C,t),n[s++]=C[0],n[s++]=C[1]}}e.increaseVersion()}}var gw=Math.sqrt,dm=Math.sin,hm=Math.cos,dh=Math.PI;function AR(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function s2(e,t){return(e[0]*t[0]+e[1]*t[1])/(AR(e)*AR(t))}function ER(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(s2(e,t))}function IR(e,t,n,r,a,i,o,s,l,u,c){var f=l*(dh/180),d=hm(f)*(e-n)/2+dm(f)*(t-r)/2,h=-1*dm(f)*(e-n)/2+hm(f)*(t-r)/2,v=d*d/(o*o)+h*h/(s*s);v>1&&(o*=gw(v),s*=gw(v));var p=(a===i?-1:1)*gw((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,b=(e+n)/2+hm(f)*g-dm(f)*m,_=(t+r)/2+dm(f)*g+hm(f)*m,w=ER([1,0],[(d-g)/o,(h-m)/s]),C=[(d-g)/o,(h-m)/s],S=[(-1*d-g)/o,(-1*h-m)/s],x=ER(C,S);if(s2(C,S)<=-1&&(x=dh),s2(C,S)>=1&&(x=0),x<0){var T=Math.round(x/dh*1e6)/1e6;x=dh*2+T%2*dh}c.addData(u,b,_,o,s,w,x,f,i)}var uLe=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,cLe=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function fLe(e){var t=new To;if(!e)return t;var n=0,r=0,a=n,i=r,o,s=To.CMD,l=e.match(uLe);if(!l)return t;for(var u=0;u<l.length;u++){for(var c=l[u],f=c.charAt(0),d=void 0,h=c.match(cLe)||[],v=h.length,p=0;p<v;p++)h[p]=parseFloat(h[p]);for(var g=0;g<v;){var m=void 0,b=void 0,_=void 0,w=void 0,C=void 0,S=void 0,x=void 0,T=n,M=r,A=void 0,k=void 0;switch(f){case"l":n+=h[g++],r+=h[g++],d=s.L,t.addData(d,n,r);break;case"L":n=h[g++],r=h[g++],d=s.L,t.addData(d,n,r);break;case"m":n+=h[g++],r+=h[g++],d=s.M,t.addData(d,n,r),a=n,i=r,f="l";break;case"M":n=h[g++],r=h[g++],d=s.M,t.addData(d,n,r),a=n,i=r,f="L";break;case"h":n+=h[g++],d=s.L,t.addData(d,n,r);break;case"H":n=h[g++],d=s.L,t.addData(d,n,r);break;case"v":r+=h[g++],d=s.L,t.addData(d,n,r);break;case"V":r=h[g++],d=s.L,t.addData(d,n,r);break;case"C":d=s.C,t.addData(d,h[g++],h[g++],h[g++],h[g++],h[g++],h[g++]),n=h[g-2],r=h[g-1];break;case"c":d=s.C,t.addData(d,h[g++]+n,h[g++]+r,h[g++]+n,h[g++]+r,h[g++]+n,h[g++]+r),n+=h[g-2],r+=h[g-1];break;case"S":m=n,b=r,A=t.len(),k=t.data,o===s.C&&(m+=n-k[A-4],b+=r-k[A-3]),d=s.C,T=h[g++],M=h[g++],n=h[g++],r=h[g++],t.addData(d,m,b,T,M,n,r);break;case"s":m=n,b=r,A=t.len(),k=t.data,o===s.C&&(m+=n-k[A-4],b+=r-k[A-3]),d=s.C,T=n+h[g++],M=r+h[g++],n+=h[g++],r+=h[g++],t.addData(d,m,b,T,M,n,r);break;case"Q":T=h[g++],M=h[g++],n=h[g++],r=h[g++],d=s.Q,t.addData(d,T,M,n,r);break;case"q":T=h[g++]+n,M=h[g++]+r,n+=h[g++],r+=h[g++],d=s.Q,t.addData(d,T,M,n,r);break;case"T":m=n,b=r,A=t.len(),k=t.data,o===s.Q&&(m+=n-k[A-4],b+=r-k[A-3]),n=h[g++],r=h[g++],d=s.Q,t.addData(d,m,b,n,r);break;case"t":m=n,b=r,A=t.len(),k=t.data,o===s.Q&&(m+=n-k[A-4],b+=r-k[A-3]),n+=h[g++],r+=h[g++],d=s.Q,t.addData(d,m,b,n,r);break;case"A":_=h[g++],w=h[g++],C=h[g++],S=h[g++],x=h[g++],T=n,M=r,n=h[g++],r=h[g++],d=s.A,IR(T,M,n,r,S,x,_,w,C,d,t);break;case"a":_=h[g++],w=h[g++],C=h[g++],S=h[g++],x=h[g++],T=n,M=r,n+=h[g++],r+=h[g++],d=s.A,IR(T,M,n,r,S,x,_,w,C,d,t);break}}(f==="z"||f==="Z")&&(d=s.Z,t.addData(d),n=a,r=i),o=d}return t.toStatic(),t}var vG=function(e){ge(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(n){},t}(zt);function pG(e){return e.setData!=null}function gG(e,t){var n=fLe(e),r=Ie({},t);return r.buildPath=function(a){if(pG(a)){a.setData(n.data);var i=a.getContext();i&&a.rebuildPath(i,1)}else{var i=a;n.rebuildPath(i,1)}},r.applyTransform=function(a){hG(n,a),this.dirtyShape()},r}function mG(e,t){return new vG(gG(e,t))}function dLe(e,t){var n=gG(e,t),r=function(a){ge(i,a);function i(o){var s=a.call(this,o)||this;return s.applyTransform=n.applyTransform,s.buildPath=n.buildPath,s}return i}(vG);return r}function hLe(e,t){for(var n=[],r=e.length,a=0;a<r;a++){var i=e[a];n.push(i.getUpdatedPathProxy(!0))}var o=new zt(t);return o.createPathProxy(),o.buildPath=function(s){if(pG(s)){s.appendPath(n);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function Hk(e,t){t=t||{};var n=new zt;return e.shape&&n.setShape(e.shape),n.setStyle(e.style),t.bakeTransform?hG(n.path,e.getComputedTransform()):t.toLocal?n.setLocalTransform(e.getComputedTransform()):n.copyTransform(e),n.buildPath=e.buildPath,n.applyTransform=n.applyTransform,n.z=e.z,n.z2=e.z2,n.zlevel=e.zlevel,n}var vLe=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),yG=function(e){ge(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new vLe},t.prototype.buildPath=function(n,r){n.moveTo(r.cx+r.r,r.cy),n.arc(r.cx,r.cy,r.r,0,Math.PI*2)},t}(zt);yG.prototype.type="circle";const Hi=yG;var pLe=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),bG=function(e){ge(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new pLe},t.prototype.buildPath=function(n,r){var a=.5522848,i=r.cx,o=r.cy,s=r.rx,l=r.ry,u=s*a,c=l*a;n.moveTo(i-s,o),n.bezierCurveTo(i-s,o-c,i-u,o-l,i,o-l),n.bezierCurveTo(i+u,o-l,i+s,o-c,i+s,o),n.bezierCurveTo(i+s,o+c,i+u,o+l,i,o+l),n.bezierCurveTo(i-u,o+l,i-s,o+c,i-s,o),n.closePath()},t}(zt);bG.prototype.type="ellipse";const M1=bG;var _G=Math.PI,mw=_G*2,tu=Math.sin,Gc=Math.cos,gLe=Math.acos,Er=Math.atan2,DR=Math.abs,_v=Math.sqrt,Fh=Math.max,Ji=Math.min,_i=1e-4;function mLe(e,t,n,r,a,i,o,s){var l=n-e,u=r-t,c=o-a,f=s-i,d=f*l-c*u;if(!(d*d<_i))return d=(c*(t-i)-f*(e-a))/d,[e+d*l,t+d*u]}function vm(e,t,n,r,a,i,o){var s=e-n,l=t-r,u=(o?i:-i)/_v(s*s+l*l),c=u*l,f=-u*s,d=e+c,h=t+f,v=n+c,p=r+f,g=(d+v)/2,m=(h+p)/2,b=v-d,_=p-h,w=b*b+_*_,C=a-i,S=d*p-v*h,x=(_<0?-1:1)*_v(Fh(0,C*C*w-S*S)),T=(S*_-b*x)/w,M=(-S*b-_*x)/w,A=(S*_+b*x)/w,k=(-S*b+_*x)/w,E=T-g,D=M-m,L=A-g,B=k-m;return E*E+D*D>L*L+B*B&&(T=A,M=k),{cx:T,cy:M,x0:-c,y0:-f,x1:T*(a/C-1),y1:M*(a/C-1)}}function yLe(e){var t;if(Re(e)){var n=e.length;if(!n)return e;n===1?t=[e[0],e[0],0,0]:n===2?t=[e[0],e[0],e[1],e[1]]:n===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function bLe(e,t){var n,r=Fh(t.r,0),a=Fh(t.r0||0,0),i=r>0,o=a>0;if(!(!i&&!o)){if(i||(r=a,a=0),a>r){var s=r;r=a,a=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var c=t.cx,f=t.cy,d=!!t.clockwise,h=DR(u-l),v=h>mw&&h%mw;if(v>_i&&(h=v),!(r>_i))e.moveTo(c,f);else if(h>mw-_i)e.moveTo(c+r*Gc(l),f+r*tu(l)),e.arc(c,f,r,l,u,!d),a>_i&&(e.moveTo(c+a*Gc(u),f+a*tu(u)),e.arc(c,f,a,u,l,d));else{var p=void 0,g=void 0,m=void 0,b=void 0,_=void 0,w=void 0,C=void 0,S=void 0,x=void 0,T=void 0,M=void 0,A=void 0,k=void 0,E=void 0,D=void 0,L=void 0,B=r*Gc(l),N=r*tu(l),O=a*Gc(u),$=a*tu(u),I=h>_i;if(I){var z=t.cornerRadius;z&&(n=yLe(z),p=n[0],g=n[1],m=n[2],b=n[3]);var G=DR(r-a)/2;if(_=Ji(G,m),w=Ji(G,b),C=Ji(G,p),S=Ji(G,g),M=x=Fh(_,w),A=T=Fh(C,S),(x>_i||T>_i)&&(k=r*Gc(u),E=r*tu(u),D=a*Gc(l),L=a*tu(l),h<_G)){var U=mLe(B,N,D,L,k,E,O,$);if(U){var Z=B-U[0],ae=N-U[1],J=k-U[0],Q=E-U[1],ee=1/tu(gLe((Z*J+ae*Q)/(_v(Z*Z+ae*ae)*_v(J*J+Q*Q)))/2),j=_v(U[0]*U[0]+U[1]*U[1]);M=Ji(x,(r-j)/(ee+1)),A=Ji(T,(a-j)/(ee-1))}}}if(!I)e.moveTo(c+B,f+N);else if(M>_i){var de=Ji(m,M),ve=Ji(b,M),ie=vm(D,L,B,N,r,de,d),W=vm(k,E,O,$,r,ve,d);e.moveTo(c+ie.cx+ie.x0,f+ie.cy+ie.y0),M<x&&de===ve?e.arc(c+ie.cx,f+ie.cy,M,Er(ie.y0,ie.x0),Er(W.y0,W.x0),!d):(de>0&&e.arc(c+ie.cx,f+ie.cy,de,Er(ie.y0,ie.x0),Er(ie.y1,ie.x1),!d),e.arc(c,f,r,Er(ie.cy+ie.y1,ie.cx+ie.x1),Er(W.cy+W.y1,W.cx+W.x1),!d),ve>0&&e.arc(c+W.cx,f+W.cy,ve,Er(W.y1,W.x1),Er(W.y0,W.x0),!d))}else e.moveTo(c+B,f+N),e.arc(c,f,r,l,u,!d);if(!(a>_i)||!I)e.lineTo(c+O,f+$);else if(A>_i){var de=Ji(p,A),ve=Ji(g,A),ie=vm(O,$,k,E,a,-ve,d),W=vm(B,N,D,L,a,-de,d);e.lineTo(c+ie.cx+ie.x0,f+ie.cy+ie.y0),A<T&&de===ve?e.arc(c+ie.cx,f+ie.cy,A,Er(ie.y0,ie.x0),Er(W.y0,W.x0),!d):(ve>0&&e.arc(c+ie.cx,f+ie.cy,ve,Er(ie.y0,ie.x0),Er(ie.y1,ie.x1),!d),e.arc(c,f,a,Er(ie.cy+ie.y1,ie.cx+ie.x1),Er(W.cy+W.y1,W.cx+W.x1),d),de>0&&e.arc(c+W.cx,f+W.cy,de,Er(W.y1,W.x1),Er(W.y0,W.x0),!d))}else e.lineTo(c+O,f+$),e.arc(c,f,a,u,l,d)}e.closePath()}}}var _Le=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}(),wG=function(e){ge(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new _Le},t.prototype.buildPath=function(n,r){bLe(n,r)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(zt);wG.prototype.type="sector";const na=wG;var wLe=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),SG=function(e){ge(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new wLe},t.prototype.buildPath=function(n,r){var a=r.cx,i=r.cy,o=Math.PI*2;n.moveTo(a+r.r,i),n.arc(a,i,r.r,0,o,!1),n.moveTo(a+r.r0,i),n.arc(a,i,r.r0,0,o,!0)},t}(zt);SG.prototype.type="ring";const dg=SG;function SLe(e,t,n,r){var a=[],i=[],o=[],s=[],l,u,c,f;if(r){c=[1/0,1/0],f=[-1/0,-1/0];for(var d=0,h=e.length;d<h;d++)Wo(c,c,e[d]),Ko(f,f,e[d]);Wo(c,c,r[0]),Ko(f,f,r[1])}for(var d=0,h=e.length;d<h;d++){var v=e[d];if(n)l=e[d?d-1:h-1],u=e[(d+1)%h];else if(d===0||d===h-1){a.push(po(e[d]));continue}else l=e[d-1],u=e[d+1];Ws(i,u,l),dv(i,i,t);var p=k0(v,l),g=k0(v,u),m=p+g;m!==0&&(p/=m,g/=m),dv(o,i,-p),dv(s,i,g);var b=Dx([],v,o),_=Dx([],v,s);r&&(Ko(b,b,c),Wo(b,b,f),Ko(_,_,c),Wo(_,_,f)),a.push(b),a.push(_)}return n&&a.push(a.shift()),a}function CG(e,t,n){var r=t.smooth,a=t.points;if(a&&a.length>=2){if(r){var i=SLe(a,r,n,t.smoothConstraint);e.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(n?o:o-1);s++){var l=i[s*2],u=i[s*2+1],c=a[(s+1)%o];e.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{e.moveTo(a[0][0],a[0][1]);for(var s=1,f=a.length;s<f;s++)e.lineTo(a[s][0],a[s][1])}n&&e.closePath()}}var CLe=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),xG=function(e){ge(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new CLe},t.prototype.buildPath=function(n,r){CG(n,r,!0)},t}(zt);xG.prototype.type="polygon";const ra=xG;var xLe=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),TG=function(e){ge(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new xLe},t.prototype.buildPath=function(n,r){CG(n,r,!1)},t}(zt);TG.prototype.type="polyline";const ia=TG;var TLe={},MLe=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),MG=function(e){ge(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new MLe},t.prototype.buildPath=function(n,r){var a,i,o,s;if(this.subPixelOptimize){var l=JH(TLe,r,this.style);a=l.x1,i=l.y1,o=l.x2,s=l.y2}else a=r.x1,i=r.y1,o=r.x2,s=r.y2;var u=r.percent;u!==0&&(n.moveTo(a,i),u<1&&(o=a*(1-u)+o*u,s=i*(1-u)+s*u),n.lineTo(o,s))},t.prototype.pointAt=function(n){var r=this.shape;return[r.x1*(1-n)+r.x2*n,r.y1*(1-n)+r.y2*n]},t}(zt);MG.prototype.type="line";const ar=MG;var la=[],kLe=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 PR(e,t,n){var r=e.cpx2,a=e.cpy2;return r!=null||a!=null?[(n?BL:nr)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?BL:nr)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?Nx:fr)(e.x1,e.cpx1,e.x2,t),(n?Nx:fr)(e.y1,e.cpy1,e.y2,t)]}var kG=function(e){ge(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new kLe},t.prototype.buildPath=function(n,r){var a=r.x1,i=r.y1,o=r.x2,s=r.y2,l=r.cpx1,u=r.cpy1,c=r.cpx2,f=r.cpy2,d=r.percent;d!==0&&(n.moveTo(a,i),c==null||f==null?(d<1&&(dp(a,l,o,d,la),l=la[1],o=la[2],dp(i,u,s,d,la),u=la[1],s=la[2]),n.quadraticCurveTo(l,u,o,s)):(d<1&&(gl(a,l,c,o,d,la),l=la[1],c=la[2],o=la[3],gl(i,u,f,s,d,la),u=la[1],f=la[2],s=la[3]),n.bezierCurveTo(l,u,c,f,o,s)))},t.prototype.pointAt=function(n){return PR(this.shape,n,!1)},t.prototype.tangentAt=function(n){var r=PR(this.shape,n,!0);return Cc(r,r)},t}(zt);kG.prototype.type="bezier-curve";const hg=kG;var ALe=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}(),AG=function(e){ge(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new ALe},t.prototype.buildPath=function(n,r){var a=r.cx,i=r.cy,o=Math.max(r.r,0),s=r.startAngle,l=r.endAngle,u=r.clockwise,c=Math.cos(s),f=Math.sin(s);n.moveTo(c*o+a,f*o+i),n.arc(a,i,o,s,l,!u)},t}(zt);AG.prototype.type="arc";const k1=AG;var ELe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="compound",n}return t.prototype._updatePathDirty=function(){for(var n=this.shape.paths,r=this.shapeChanged(),a=0;a<n.length;a++)r=r||n[a].shapeChanged();r&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var n=this.shape.paths||[],r=this.getGlobalScale(),a=0;a<n.length;a++)n[a].path||n[a].createPathProxy(),n[a].path.setScale(r[0],r[1],n[a].segmentIgnoreThreshold)},t.prototype.buildPath=function(n,r){for(var a=r.paths||[],i=0;i<a.length;i++)a[i].buildPath(n,a[i].shape,!0)},t.prototype.afterBrush=function(){for(var n=this.shape.paths||[],r=0;r<n.length;r++)n[r].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),zt.prototype.getBoundingRect.call(this)},t}(zt);const A1=ELe;var ILe=function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,n){this.colorStops.push({offset:t,color:n})},e}();const EG=ILe;var DLe=function(e){ge(t,e);function t(n,r,a,i,o,s){var l=e.call(this,o)||this;return l.x=n??0,l.y=r??0,l.x2=a??1,l.y2=i??0,l.type="linear",l.global=s||!1,l}return t}(EG);const Pd=DLe;var PLe=function(e){ge(t,e);function t(n,r,a,i,o){var s=e.call(this,i)||this;return s.x=n??.5,s.y=r??.5,s.r=a??.5,s.type="radial",s.global=o||!1,s}return t}(EG);const Gk=PLe;var nu=[0,0],ru=[0,0],pm=new Pt,gm=new Pt,LLe=function(){function e(t,n){this._corners=[],this._axes=[],this._origin=[0,0];for(var r=0;r<4;r++)this._corners[r]=new Pt;for(var r=0;r<2;r++)this._axes[r]=new Pt;t&&this.fromBoundingRect(t,n)}return e.prototype.fromBoundingRect=function(t,n){var r=this._corners,a=this._axes,i=t.x,o=t.y,s=i+t.width,l=o+t.height;if(r[0].set(i,o),r[1].set(s,o),r[2].set(s,l),r[3].set(i,l),n)for(var u=0;u<4;u++)r[u].transform(n);Pt.sub(a[0],r[1],r[0]),Pt.sub(a[1],r[3],r[0]),a[0].normalize(),a[1].normalize();for(var u=0;u<2;u++)this._origin[u]=a[u].dot(r[0])},e.prototype.intersect=function(t,n){var r=!0,a=!n;return pm.set(1/0,1/0),gm.set(0,0),!this._intersectCheckOneSide(this,t,pm,gm,a,1)&&(r=!1,a)||!this._intersectCheckOneSide(t,this,pm,gm,a,-1)&&(r=!1,a)||a||Pt.copy(n,r?pm:gm),r},e.prototype._intersectCheckOneSide=function(t,n,r,a,i,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,t._corners,nu),this._getProjMinMaxOnAxis(l,n._corners,ru),nu[1]<ru[0]||nu[0]>ru[1]){if(s=!1,i)return s;var c=Math.abs(ru[0]-nu[1]),f=Math.abs(nu[0]-ru[1]);Math.min(c,f)>a.len()&&(c<f?Pt.scale(a,u,-c*o):Pt.scale(a,u,f*o))}else if(r){var c=Math.abs(ru[0]-nu[1]),f=Math.abs(nu[0]-ru[1]);Math.min(c,f)<r.len()&&(c<f?Pt.scale(r,u,c*o):Pt.scale(r,u,-f*o))}}return s},e.prototype._getProjMinMaxOnAxis=function(t,n,r){for(var a=this._axes[t],i=this._origin,o=n[0].dot(a)+i[t],s=o,l=o,u=1;u<n.length;u++){var c=n[u].dot(a)+i[t];s=Math.min(c,s),l=Math.max(c,l)}r[0]=s,r[1]=l},e}();const $0=LLe;var RLe=[],OLe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.notClear=!0,n.incremental=!0,n._displayables=[],n._temporaryDisplayables=[],n._cursor=0,n}return t.prototype.traverse=function(n,r){n.call(r,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(n,r){r?this._temporaryDisplayables.push(n):this._displayables.push(n),this.markRedraw()},t.prototype.addDisplayables=function(n,r){r=r||!1;for(var a=0;a<n.length;a++)this.addDisplayable(n[a],r)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(n){for(var r=this._cursor;r<this._displayables.length;r++)n&&n(this._displayables[r]);for(var r=0;r<this._temporaryDisplayables.length;r++)n&&n(this._temporaryDisplayables[r])},t.prototype.update=function(){this.updateTransform();for(var n=this._cursor;n<this._displayables.length;n++){var r=this._displayables[n];r.parent=this,r.update(),r.parent=null}for(var n=0;n<this._temporaryDisplayables.length;n++){var r=this._temporaryDisplayables[n];r.parent=this,r.update(),r.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var n=new Rt(1/0,1/0,-1/0,-1/0),r=0;r<this._displayables.length;r++){var a=this._displayables[r],i=a.getBoundingRect().clone();a.needLocalTransform()&&i.applyTransform(a.getLocalTransform(RLe)),n.union(i)}this._rect=n}return this._rect},t.prototype.contain=function(n,r){var a=this.transformCoordToLocal(n,r),i=this.getBoundingRect();if(i.contain(a[0],a[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(n,r))return!0}return!1},t}(ci);const IG=OLe;var DG=en();function Ld(e,t,n,r,a){var i;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();i=o&&o.animation}var s=t&&t.isAnimationEnabled(),l=e==="update";if(s){var u=void 0,c=void 0,f=void 0;r?(u=Lt(r.duration,200),c=Lt(r.easing,"cubicOut"),f=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),c=t.getShallow(l?"animationEasingUpdate":"animationEasing"),f=t.getShallow(l?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(u=i.duration),i.easing!=null&&(c=i.easing),i.delay!=null&&(f=i.delay)),ut(f)&&(f=f(n,a)),ut(u)&&(u=u(n));var d={duration:u||0,delay:f,easing:c};return d}else return null}function Wk(e,t,n,r,a,i,o){var s=!1,l;ut(a)?(o=i,i=a,a=null):ht(a)&&(i=a.cb,o=a.during,s=a.isFrom,l=a.removeOpt,a=a.dataIndex);var u=e==="leave";u||t.stopAnimation("leave");var c=Ld(e,r,a,u?l||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(t,a):null);if(c&&c.duration>0){var f=c.duration,d=c.delay,h=c.easing,v={duration:f,delay:d||0,easing:h,done:i,force:!!i||!!o,setToFinal:!u,scope:e,during:o};s?t.animateFrom(n,v):t.animateTo(n,v)}else t.stopAnimation(),!s&&t.attr(n),o&&o(1),i&&i()}function nn(e,t,n,r,a,i){Wk("update",e,t,n,r,a,i)}function xn(e,t,n,r,a,i){Wk("enter",e,t,n,r,a,i)}function Nf(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){var n=e.animators[t];if(n.scope==="leave")return!0}return!1}function ml(e,t,n,r,a,i){Nf(e)||Wk("leave",e,t,n,r,a,i)}function LR(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),ml(e,{style:{opacity:0}},t,n,r)}function Sp(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(a){a.isGroup||LR(a,t,n,r)}):LR(e,t,n,r)}function Gi(e){DG(e).oldStyle=e.style}function $Le(e){return DG(e).oldStyle}var N0=Math.max,B0=Math.min,l2={};function PG(e){return zt.extend(e)}var NLe=dLe;function LG(e,t){return NLe(e,t)}function di(e,t){l2[e]=t}function E1(e){if(l2.hasOwnProperty(e))return l2[e]}function vg(e,t,n,r){var a=mG(e,t);return n&&(r==="center"&&(n=RG(n,a.getBoundingRect())),Uk(a,n)),a}function Kk(e,t,n){var r=new vr({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(a){if(n==="center"){var i={width:a.width,height:a.height};r.setStyle(RG(t,i))}}});return r}function RG(e,t){var n=t.width/t.height,r=e.height*n,a;r<=e.width?a=e.height:(r=e.width,a=r/n);var i=e.x+e.width/2,o=e.y+e.height/2;return{x:i-r/2,y:o-a/2,width:r,height:a}}var Ma=hLe;function Uk(e,t){if(e.applyTransform){var n=e.getBoundingRect(),r=n.calculateTransform(t);e.applyTransform(r)}}function fd(e,t){return JH(e,e,{lineWidth:t}),e}function BLe(e){return QH(e.shape,e.shape,e.style),e}var Fy=Nu;function al(e,t){for(var n=sg([]);e&&e!==t;)go(n,e.getLocalTransform(),n),e=e.parent;return n}function Ni(e,t,n){return t&&!Cr(t)&&(t=Uo.getLocalTransform(t)),n&&(t=xc([],t)),hr([],e,t)}function I1(e,t,n){var r=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),a=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),i=[e==="left"?-r:e==="right"?r:0,e==="top"?-a:e==="bottom"?a:0];return i=Ni(i,t,n),Math.abs(i[0])>Math.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function RR(e){return!e.isGroup}function VLe(e){return e.shape!=null}function pg(e,t,n){if(!e||!t)return;function r(o){var s={};return o.traverse(function(l){RR(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return VLe(o)&&(s.shape=Ie({},o.shape)),s}var i=r(e);t.traverse(function(o){if(RR(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),nn(o,l,n,Tt(o).dataIndex)}}})}function Yk(e,t){return Oe(e,function(n){var r=n[0];r=N0(r,t.x),r=B0(r,t.x+t.width);var a=n[1];return a=N0(a,t.y),a=B0(a,t.y+t.height),[r,a]})}function OG(e,t){var n=N0(e.x,t.x),r=B0(e.x+e.width,t.x+t.width),a=N0(e.y,t.y),i=B0(e.y+e.height,t.y+t.height);if(r>=n&&i>=a)return{x:n,y:a,width:r-n,height:i-a}}function Rd(e,t,n){var r=Ie({rectHover:!0},t),a=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(a.image=e.slice(8),ft(a,n),new vr(r)):vg(e.replace("path://",""),r,n,"center")}function Hh(e,t,n,r,a){for(var i=0,o=a[a.length-1];i<a.length;i++){var s=a[i];if($G(e,t,n,r,s[0],s[1],o[0],o[1]))return!0;o=s}}function $G(e,t,n,r,a,i,o,s){var l=n-e,u=r-t,c=o-a,f=s-i,d=yw(c,f,l,u);if(zLe(d))return!1;var h=e-a,v=t-i,p=yw(h,v,l,u)/d;if(p<0||p>1)return!1;var g=yw(h,v,c,f)/d;return!(g<0||g>1)}function yw(e,t,n,r){return e*r-n*t}function zLe(e){return e<=1e-6&&e>=-1e-6}function Od(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,a=Je(t)?{formatter:t}:t,i=n.mainType,o=n.componentIndex,s={componentType:i,name:r,$vars:["name"]};s[i+"Index"]=o;var l=e.formatterParamsExtra;l&&F(Gt(l),function(c){nt(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=Tt(e.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:r,option:ft({content:r,formatterParams:s},a)}}function OR(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function Ll(e,t){if(e)if(Re(e))for(var n=0;n<e.length;n++)OR(e[n],t);else OR(e,t)}di("circle",Hi);di("ellipse",M1);di("sector",na);di("ring",dg);di("polygon",ra);di("polyline",ia);di("rect",Zt);di("line",ar);di("bezierCurve",hg);di("arc",k1);const gg=Object.freeze(Object.defineProperty({__proto__:null,Arc:k1,BezierCurve:hg,BoundingRect:Rt,Circle:Hi,CompoundPath:A1,Ellipse:M1,Group:bt,Image:vr,IncrementalDisplayable:IG,Line:ar,LinearGradient:Pd,OrientedBoundingRect:$0,Path:zt,Point:Pt,Polygon:ra,Polyline:ia,RadialGradient:Gk,Rect:Zt,Ring:dg,Sector:na,Text:Xt,applyTransform:Ni,clipPointsByRect:Yk,clipRectByRect:OG,createIcon:Rd,extendPath:LG,extendShape:PG,getShapeClass:E1,getTransform:al,groupTransition:pg,initProps:xn,isElementRemoved:Nf,lineLineIntersect:$G,linePolygonIntersect:Hh,makeImage:Kk,makePath:vg,mergePath:Ma,registerShape:di,removeElement:ml,removeElementWithFadeOut:Sp,resizePath:Uk,setTooltipConfig:Od,subPixelOptimize:Fy,subPixelOptimizeLine:fd,subPixelOptimizeRect:BLe,transformDirection:I1,traverseElements:Ll,updateProps:nn},Symbol.toStringTag,{value:"Module"}));var D1={};function NG(e,t){for(var n=0;n<ta.length;n++){var r=ta[n],a=t[r],i=e.ensureState(r);i.style=i.style||{},i.style.text=a}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function u2(e,t,n){var r=e.labelFetcher,a=e.labelDataIndex,i=e.labelDimIndex,o=t.normal,s;r&&(s=r.getFormattedLabel(a,"normal",null,i,o&&o.get("formatter"),n!=null?{interpolatedValue:n}:null)),s==null&&(s=ut(e.defaultText)?e.defaultText(a,e,n):e.defaultText);for(var l={normal:s},u=0;u<ta.length;u++){var c=ta[u],f=t[c];l[c]=Lt(r?r.getFormattedLabel(a,c,null,i,f&&f.get("formatter")):null,s)}return l}function Tr(e,t,n,r){n=n||D1;for(var a=e instanceof Xt,i=!1,o=0;o<_p.length;o++){var s=t[_p[o]];if(s&&s.getShallow("show")){i=!0;break}}var l=a?e:e.getTextContent();if(i){a||(l||(l=new Xt,e.setTextContent(l)),e.stateProxy&&(l.stateProxy=e.stateProxy));var u=u2(n,t),c=t.normal,f=!!c.getShallow("show"),d=gn(c,r&&r.normal,n,!1,!a);d.text=u.normal,a||e.setTextConfig(V0(c,n,!1));for(var o=0;o<ta.length;o++){var h=ta[o],s=t[h];if(s){var v=l.ensureState(h),p=!!Lt(s.getShallow("show"),f);if(p!==f&&(v.ignore=!p),v.style=gn(s,r&&r[h],n,!0,!a),v.style.text=u[h],!a){var g=e.ensureState(h);g.textConfig=V0(s,n,!0)}}}l.silent=!!c.getShallow("silent"),l.style.x!=null&&(d.x=l.style.x),l.style.y!=null&&(d.y=l.style.y),l.ignore=!f,l.useStyle(d),l.dirty(),n.enableTextSetter&&($d(l).setLabelText=function(m){var b=u2(n,t,m);NG(l,b)})}else l&&(l.ignore=!0);e.dirty()}function lr(e,t){t=t||"label";for(var n={normal:e.getModel(t)},r=0;r<ta.length;r++){var a=ta[r];n[a]=e.getModel([a,t])}return n}function gn(e,t,n,r,a){var i={};return FLe(i,e,n,r,a),t&&Ie(i,t),i}function V0(e,t,n){t=t||{};var r={},a,i=e.getShallow("rotate"),o=Lt(e.getShallow("distance"),n?null:5),s=e.getShallow("offset");return a=e.getShallow("position")||(n?null:"inside"),a==="outside"&&(a=t.defaultOutsidePosition||"top"),a!=null&&(r.position=a),s!=null&&(r.offset=s),i!=null&&(i*=Math.PI/180,r.rotation=i),o!=null&&(r.distance=o),r.outsideFill=e.get("color")==="inherit"?t.inheritColor||null:"auto",r}function FLe(e,t,n,r,a){n=n||D1;var i=t.ecModel,o=i&&i.option.textStyle,s=HLe(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var c=t.getModel(["rich",u]);VR(l[u]={},c,o,n,r,a,!1,!0)}}l&&(e.rich=l);var f=t.get("overflow");f&&(e.overflow=f);var d=t.get("minMargin");d!=null&&(e.margin=d),VR(e,t,o,n,r,a,!0,!1)}function HLe(e){for(var t;e&&e!==e.ecModel;){var n=(e.option||D1).rich;if(n){t=t||{};for(var r=Gt(n),a=0;a<r.length;a++){var i=r[a];t[i]=1}}e=e.parentModel}return t}var $R=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],NR=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],BR=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function VR(e,t,n,r,a,i,o,s){n=!a&&n||D1;var l=r&&r.inheritColor,u=t.getShallow("color"),c=t.getShallow("textBorderColor"),f=Lt(t.getShallow("opacity"),n.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(c==="inherit"||c==="auto")&&(l?c=l:c=null),i||(u=u||n.color,c=c||n.textBorderColor),u!=null&&(e.fill=u),c!=null&&(e.stroke=c);var d=Lt(t.getShallow("textBorderWidth"),n.textBorderWidth);d!=null&&(e.lineWidth=d);var h=Lt(t.getShallow("textBorderType"),n.textBorderType);h!=null&&(e.lineDash=h);var v=Lt(t.getShallow("textBorderDashOffset"),n.textBorderDashOffset);v!=null&&(e.lineDashOffset=v),!a&&f==null&&!s&&(f=r&&r.defaultOpacity),f!=null&&(e.opacity=f),!a&&!i&&e.fill==null&&r.inheritColor&&(e.fill=r.inheritColor);for(var p=0;p<$R.length;p++){var g=$R[p],m=Lt(t.getShallow(g),n[g]);m!=null&&(e[g]=m)}for(var p=0;p<NR.length;p++){var g=NR[p],m=t.getShallow(g);m!=null&&(e[g]=m)}if(e.verticalAlign==null){var b=t.getShallow("baseline");b!=null&&(e.verticalAlign=b)}if(!o||!r.disableBox){for(var p=0;p<BR.length;p++){var g=BR[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 BG(e,t){var n=t&&t.getModel("textStyle");return Za([e.fontStyle||n&&n.getShallow("fontStyle")||"",e.fontWeight||n&&n.getShallow("fontWeight")||"",(e.fontSize||n&&n.getShallow("fontSize")||12)+"px",e.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var $d=en();function VG(e,t,n,r){if(e){var a=$d(e);a.prevValue=a.value,a.value=n;var i=t.normal;a.valueAnimation=i.get("valueAnimation"),a.valueAnimation&&(a.precision=i.get("precision"),a.defaultInterpolatedText=r,a.statesModels=t)}}function zG(e,t,n,r,a){var i=$d(e);if(!i.valueAnimation||i.prevValue===i.value)return;var o=i.defaultInterpolatedText,s=Lt(i.interpolatedValue,i.prevValue),l=i.value;function u(c){var f=zH(n,i.precision,s,l,c);i.interpolatedValue=c===1?null:f;var d=u2({labelDataIndex:t,labelFetcher:a,defaultText:o?o(f):f+""},i.statesModels,f);NG(e,d)}e.percent=0,(i.prevValue==null?xn:nn)(e,{percent:1},r,t,null,u)}var GLe=["textStyle","color"],bw=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],_w=new Xt,WLe=function(){function e(){}return e.prototype.getTextColor=function(t){var n=this.ecModel;return this.getShallow("color")||(!t&&n?n.get(GLe):null)},e.prototype.getFont=function(){return BG({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 n={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},r=0;r<bw.length;r++)n[bw[r]]=this.getShallow(bw[r]);return _w.useStyle(n),_w.update(),_w.getBoundingRect()},e}();const KLe=WLe;var FG=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],ULe=fc(FG),YLe=function(){function e(){}return e.prototype.getLineStyle=function(t){return ULe(this,t)},e}(),HG=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],jLe=fc(HG),qLe=function(){function e(){}return e.prototype.getItemStyle=function(t,n){return jLe(this,t,n)},e}(),Tc=function(){function e(t,n,r){this.parentModel=n,this.ecModel=r,this.option=t}return e.prototype.init=function(t,n,r){},e.prototype.mergeOption=function(t,n){Dt(this.option,t,!0)},e.prototype.get=function(t,n){return t==null?this.option:this._doGet(this.parsePath(t),!n&&this.parentModel)},e.prototype.getShallow=function(t,n){var r=this.option,a=r==null?r:r[t];if(a==null&&!n){var i=this.parentModel;i&&(a=i.getShallow(t))}return a},e.prototype.getModel=function(t,n){var r=t!=null,a=r?this.parsePath(t):null,i=r?this._doGet(a):this.option;return n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(a)),new e(i,n,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(pt(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(!Jt.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(t,n){var r=this.option;if(!t)return r;for(var a=0;a<t.length&&!(t[a]&&(r=r&&typeof r=="object"?r[t[a]]:null,r==null));a++);return r==null&&n&&(r=n._doGet(this.resolveParentPath(t),n.parentModel)),r},e}();Ok(Tc);QDe(Tc);Vn(Tc,YLe);Vn(Tc,qLe);Vn(Tc,aPe);Vn(Tc,KLe);const dn=Tc;var XLe=Math.round(Math.random()*10);function Nd(e){return[e||"",XLe++].join("_")}function ZLe(e){var t={};e.registerSubTypeDefaulter=function(n,r){var a=co(n);t[a.main]=r},e.determineSubType=function(n,r){var a=r.type;if(!a){var i=co(n).main;e.hasSubTypes(n)&&t[i]&&(a=t[i](r))}return a}}function JLe(e,t){e.topologicalTravel=function(i,o,s,l){if(!i.length)return;var u=n(o),c=u.graph,f=u.noEntryList,d={};for(F(i,function(b){d[b]=!0});f.length;){var h=f.pop(),v=c[h],p=!!d[h];p&&(s.call(l,h,v.originalDeps.slice()),delete d[h]),F(v.successor,p?m:g)}F(d,function(){var b="";throw new Error(b)});function g(b){c[b].entryCount--,c[b].entryCount===0&&f.push(b)}function m(b){d[b]=!0,g(b)}};function n(i){var o={},s=[];return F(i,function(l){var u=r(o,l),c=u.originalDeps=t(l),f=a(c,i);u.entryCount=f.length,u.entryCount===0&&s.push(l),F(f,function(d){$t(u.predecessor,d)<0&&u.predecessor.push(d);var h=r(o,d);$t(h.successor,d)<0&&h.successor.push(l)})}),{graph:o,noEntryList:s}}function r(i,o){return i[o]||(i[o]={predecessor:[],successor:[]}),i[o]}function a(i,o){var s=[];return F(i,function(l){$t(o,l)>=0&&s.push(l)}),s}}function Rl(e,t){return Dt(Dt({},e,!0),t,!0)}const QLe={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:". "}}}},eRe={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 z0="ZH",jk="EN",Cp=jk,Hy={},qk={},GG=Jt.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return e.indexOf(z0)>-1?z0:Cp}():Cp;function Xk(e,t){e=e.toUpperCase(),qk[e]=new dn(t),Hy[e]=t}function tRe(e){if(Je(e)){var t=Hy[e.toUpperCase()]||{};return e===z0||e===jk?pt(t):Dt(pt(t),pt(Hy[Cp]),!1)}else return Dt(pt(e),pt(Hy[Cp]),!1)}function c2(e){return qk[e]}function nRe(){return qk[Cp]}Xk(jk,QLe);Xk(z0,eRe);var Zk=1e3,Jk=Zk*60,wv=Jk*60,qa=wv*24,zR=qa*365,Gh={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}"},mm="{yyyy}-{MM}-{dd}",FR={year:"{yyyy}",month:"{yyyy}-{MM}",day:mm,hour:mm+" "+Gh.hour,minute:mm+" "+Gh.minute,second:mm+" "+Gh.second,millisecond:Gh.none},ww=["year","month","day","hour","minute","second","millisecond"],WG=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Wr(e,t){return e+="","0000".substr(0,t-e.length)+e}function Bf(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 rRe(e){return e===Bf(e)}function aRe(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function mg(e,t,n,r){var a=Ra(e),i=a[Qk(n)](),o=a[Vf(n)]()+1,s=Math.floor((o-1)/3)+1,l=a[P1(n)](),u=a["get"+(n?"UTC":"")+"Day"](),c=a[xp(n)](),f=(c-1)%12+1,d=a[L1(n)](),h=a[R1(n)](),v=a[O1(n)](),p=r instanceof dn?r:c2(r||GG)||nRe(),g=p.getModel("time"),m=g.get("month"),b=g.get("monthAbbr"),_=g.get("dayOfWeek"),w=g.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Wr(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,m[o-1]).replace(/{MMM}/g,b[o-1]).replace(/{MM}/g,Wr(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Wr(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,w[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Wr(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Wr(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,Wr(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,Wr(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Wr(v,3)).replace(/{S}/g,v+"")}function iRe(e,t,n,r,a){var i=null;if(Je(n))i=n;else if(ut(n))i=n(e.value,t,{level:e.level});else{var o=Ie({},Gh);if(e.level>0)for(var s=0;s<ww.length;++s)o[ww[s]]="{primary|"+o[ww[s]]+"}";var l=n?n.inherit===!1?n:ft(n,o):o,u=KG(e.value,a);if(l[u])i=l[u];else if(l.inherit){for(var c=WG.indexOf(u),s=c-1;s>=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(Re(i)){var f=e.level==null?0:e.level>=0?e.level:i.length+e.level;f=Math.min(f,i.length-1),i=i[f]}}return mg(new Date(e.value),i,a,r)}function KG(e,t){var n=Ra(e),r=n[Vf(t)]()+1,a=n[P1(t)](),i=n[xp(t)](),o=n[L1(t)](),s=n[R1(t)](),l=n[O1(t)](),u=l===0,c=u&&s===0,f=c&&o===0,d=f&&i===0,h=d&&a===1,v=h&&r===1;return v?"year":h?"month":d?"day":f?"hour":c?"minute":u?"second":"millisecond"}function HR(e,t,n){var r=Qt(e)?Ra(e):e;switch(t=t||KG(e,n),t){case"year":return r[Qk(n)]();case"half-year":return r[Vf(n)]()>=6?1:0;case"quarter":return Math.floor((r[Vf(n)]()+1)/4);case"month":return r[Vf(n)]();case"day":return r[P1(n)]();case"half-day":return r[xp(n)]()/24;case"hour":return r[xp(n)]();case"minute":return r[L1(n)]();case"second":return r[R1(n)]();case"millisecond":return r[O1(n)]()}}function Qk(e){return e?"getUTCFullYear":"getFullYear"}function Vf(e){return e?"getUTCMonth":"getMonth"}function P1(e){return e?"getUTCDate":"getDate"}function xp(e){return e?"getUTCHours":"getHours"}function L1(e){return e?"getUTCMinutes":"getMinutes"}function R1(e){return e?"getUTCSeconds":"getSeconds"}function O1(e){return e?"getUTCMilliseconds":"getMilliseconds"}function oRe(e){return e?"setUTCFullYear":"setFullYear"}function UG(e){return e?"setUTCMonth":"setMonth"}function YG(e){return e?"setUTCDate":"setDate"}function jG(e){return e?"setUTCHours":"setHours"}function qG(e){return e?"setUTCMinutes":"setMinutes"}function XG(e){return e?"setUTCSeconds":"setSeconds"}function ZG(e){return e?"setUTCMilliseconds":"setMilliseconds"}function sRe(e,t,n,r,a,i,o,s){var l=new Xt({style:{text:e,font:t,align:n,verticalAlign:r,padding:a,rich:i,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function eA(e){if(!Pk(e))return Je(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function tA(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(n,r){return r.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var Mc=v1;function f2(e,t,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(c){return c&&Za(c)?c:"-"}function i(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=t==="time",s=e instanceof Date;if(o||s){var l=o?Ra(e):e;if(isNaN(+l)){if(s)return"-"}else return mg(l,r,n)}if(t==="ordinal")return T0(e)?a(e):Qt(e)&&i(e)?e+"":"-";var u=xo(e);return i(u)?eA(u):T0(e)?a(e):typeof e=="boolean"?e+"":"-"}var GR=["a","b","c","d","e","f","g"],Sw=function(e,t){return"{"+e+(t??"")+"}"};function nA(e,t,n){Re(t)||(t=[t]);var r=t.length;if(!r)return"";for(var a=t[0].$vars||[],i=0;i<a.length;i++){var o=GR[i];e=e.replace(Sw(o),Sw(o,0))}for(var s=0;s<r;s++)for(var l=0;l<a.length;l++){var u=t[s][a[l]];e=e.replace(Sw(GR[l],s),n?Ur(u):u)}return e}function lRe(e,t,n){return F(t,function(r,a){e=e.replace("{"+a+"}",n?Ur(r):r)}),e}function JG(e,t){var n=Je(e)?{color:e,extraCssText:t}:e||{},r=n.color,a=n.type;t=n.extraCssText;var i=n.renderMode||"html";if(!r)return"";if(i==="html")return a==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Ur(r)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Ur(r)+";"+(t||"")+'"></span>';var o=n.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function uRe(e,t,n){(e==="week"||e==="month"||e==="quarter"||e==="half-year"||e==="year")&&(e=`MM-dd
  85. yyyy`);var r=Ra(t),a=n?"getUTC":"get",i=r[a+"FullYear"](),o=r[a+"Month"]()+1,s=r[a+"Date"](),l=r[a+"Hours"](),u=r[a+"Minutes"](),c=r[a+"Seconds"](),f=r[a+"Milliseconds"]();return e=e.replace("MM",Wr(o,2)).replace("M",o).replace("yyyy",i).replace("yy",Wr(i%100+"",2)).replace("dd",Wr(s,2)).replace("d",s).replace("hh",Wr(l,2)).replace("h",l).replace("mm",Wr(u,2)).replace("m",u).replace("ss",Wr(c,2)).replace("s",c).replace("SSS",Wr(f,3)),e}function cRe(e){return e&&e.charAt(0).toUpperCase()+e.substr(1)}function hc(e,t){return t=t||"transparent",Je(e)?e:ht(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function F0(e,t){if(t==="_blank"||t==="blank"){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var Gy=F,QG=["left","right","top","bottom","width","height"],Vu=[["width","left","right"],["height","top","bottom"]];function rA(e,t,n,r,a){var i=0,o=0;r==null&&(r=1/0),a==null&&(a=1/0);var s=0;t.eachChild(function(l,u){var c=l.getBoundingRect(),f=t.childAt(u+1),d=f&&f.getBoundingRect(),h,v;if(e==="horizontal"){var p=c.width+(d?-d.x+c.x:0);h=i+p,h>r||l.newline?(i=0,h=p,o+=s+n,s=c.height):s=Math.max(s,c.height)}else{var g=c.height+(d?-d.y+c.y:0);v=o+g,v>a||l.newline?(i+=s+n,o=0,v=g,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),e==="horizontal"?i=h+n:o=v+n)})}var Ju=rA;xt(rA,"vertical");xt(rA,"horizontal");function fRe(e,t,n){var r=t.width,a=t.height,i=qe(e.left,r),o=qe(e.top,a),s=qe(e.right,r),l=qe(e.bottom,a);return(isNaN(i)||isNaN(parseFloat(e.left)))&&(i=0),(isNaN(s)||isNaN(parseFloat(e.right)))&&(s=r),(isNaN(o)||isNaN(parseFloat(e.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(e.bottom)))&&(l=a),n=Mc(n||0),{width:Math.max(s-i-n[1]-n[3],0),height:Math.max(l-o-n[0]-n[2],0)}}function Xn(e,t,n){n=Mc(n||0);var r=t.width,a=t.height,i=qe(e.left,r),o=qe(e.top,a),s=qe(e.right,r),l=qe(e.bottom,a),u=qe(e.width,r),c=qe(e.height,a),f=n[2]+n[0],d=n[1]+n[3],h=e.aspect;switch(isNaN(u)&&(u=r-s-d-i),isNaN(c)&&(c=a-l-f-o),h!=null&&(isNaN(u)&&isNaN(c)&&(h>r/a?u=r*.8:c=a*.8),isNaN(u)&&(u=h*c),isNaN(c)&&(c=u/h)),isNaN(i)&&(i=r-s-u-d),isNaN(o)&&(o=a-l-c-f),e.left||e.right){case"center":i=r/2-u/2-n[3];break;case"right":i=r-u-d;break}switch(e.top||e.bottom){case"middle":case"center":o=a/2-c/2-n[0];break;case"bottom":o=a-c-f;break}i=i||0,o=o||0,isNaN(u)&&(u=r-d-i-(s||0)),isNaN(c)&&(c=a-f-o-(l||0));var v=new Rt(i+n[3],o+n[0],u,c);return v.margin=n,v}function $1(e,t,n,r,a,i){var o=!a||!a.hv||a.hv[0],s=!a||!a.hv||a.hv[1],l=a&&a.boundingMode||"all";if(i=i||e,i.x=e.x,i.y=e.y,!o&&!s)return!1;var u;if(l==="raw")u=e.type==="group"?new Rt(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(u=e.getBoundingRect(),e.needLocalTransform()){var c=e.getLocalTransform();u=u.clone(),u.applyTransform(c)}var f=Xn(ft({width:u.width,height:u.height},t),n,r),d=o?f.x-u.x:0,h=s?f.y-u.y:0;return l==="raw"?(i.x=d,i.y=h):(i.x+=d,i.y+=h),i===e&&e.markRedraw(),!0}function dRe(e,t){return e[Vu[t][0]]!=null||e[Vu[t][1]]!=null&&e[Vu[t][2]]!=null}function Tp(e){var t=e.layoutMode||e.constructor.layoutMode;return ht(t)?t:t?{type:t}:null}function yl(e,t,n){var r=n&&n.ignoreSize;!Re(r)&&(r=[r,r]);var a=o(Vu[0],0),i=o(Vu[1],1);u(Vu[0],e,a),u(Vu[1],e,i);function o(c,f){var d={},h=0,v={},p=0,g=2;if(Gy(c,function(_){v[_]=e[_]}),Gy(c,function(_){s(t,_)&&(d[_]=v[_]=t[_]),l(d,_)&&h++,l(v,_)&&p++}),r[f])return l(t,c[1])?v[c[2]]=null:l(t,c[2])&&(v[c[1]]=null),v;if(p===g||!h)return v;if(h>=g)return d;for(var m=0;m<c.length;m++){var b=c[m];if(!s(d,b)&&s(e,b)){d[b]=e[b];break}}return d}function s(c,f){return c.hasOwnProperty(f)}function l(c,f){return c[f]!=null&&c[f]!=="auto"}function u(c,f,d){Gy(c,function(h){f[h]=d[h]})}}function Bd(e){return eW({},e)}function eW(e,t){return t&&e&&Gy(QG,function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}var hRe=en(),Vd=function(e){ge(t,e);function t(n,r,a){var i=e.call(this,n,r,a)||this;return i.uid=Nd("ec_cpt_model"),i}return t.prototype.init=function(n,r,a){this.mergeDefaultAndTheme(n,a)},t.prototype.mergeDefaultAndTheme=function(n,r){var a=Tp(this),i=a?Bd(n):{},o=r.getTheme();Dt(n,o.get(this.mainType)),Dt(n,this.getDefaultOption()),a&&yl(n,i,a)},t.prototype.mergeOption=function(n,r){Dt(this.option,n,!0);var a=Tp(this);a&&yl(this.option,n,a)},t.prototype.optionUpdated=function(n,r){},t.prototype.getDefaultOption=function(){var n=this.constructor;if(!XDe(n))return n.defaultOption;var r=hRe(this);if(!r.defaultOption){for(var a=[],i=n;i;){var o=i.prototype.defaultOption;o&&a.push(o),i=i.superClass}for(var s={},l=a.length-1;l>=0;l--)s=Dt(s,a[l],!0);r.defaultOption=s}return r.defaultOption},t.prototype.getReferringComponents=function(n,r){var a=n+"Index",i=n+"Id";return cg(this.ecModel,n,{index:this.get(a,!0),id:this.get(i,!0)},r)},t.prototype.getBoxLayoutParams=function(){var n=this;return{left:n.get("left"),top:n.get("top"),right:n.get("right"),bottom:n.get("bottom"),width:n.get("width"),height:n.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(n){this.option.zlevel=n},t.protoInitialize=function(){var n=t.prototype;n.type="component",n.id="",n.name="",n.mainType="",n.subType="",n.componentIndex=0}(),t}(dn);HH(Vd,dn);_1(Vd);ZLe(Vd);JLe(Vd,vRe);function vRe(e){var t=[];return F(Vd.getClassesByMainType(e),function(n){t=t.concat(n.dependencies||n.prototype.dependencies||[])}),t=Oe(t,function(n){return co(n).main}),e!=="dataset"&&$t(t,"dataset")<=0&&t.unshift("dataset"),t}const Yt=Vd;var tW="";typeof navigator<"u"&&(tW=navigator.platform||"");var Wc="rgba(0, 0, 0, 0.2)";const pRe={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Wc,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Wc,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Wc,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Wc,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Wc,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Wc,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:tW.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 nW=ot(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),hi="original",Br="arrayRows",vi="objectRows",Eo="keyedColumns",il="typedArray",rW="unknown",mo="column",zd="row",gr={Must:1,Might:2,Not:3},aW=en();function gRe(e){aW(e).datasetMap=ot()}function iW(e,t,n){var r={},a=iA(t);if(!a||!e)return r;var i=[],o=[],s=t.ecModel,l=aW(s).datasetMap,u=a.uid+"_"+n.seriesLayoutBy,c,f;e=e.slice(),F(e,function(p,g){var m=ht(p)?p:e[g]={name:p};m.type==="ordinal"&&c==null&&(c=g,f=v(m)),r[m.name]=[]});var d=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});F(e,function(p,g){var m=p.name,b=v(p);if(c==null){var _=d.valueWayDim;h(r[m],_,b),h(o,_,b),d.valueWayDim+=b}else if(c===g)h(r[m],0,b),h(i,0,b);else{var _=d.categoryWayDim;h(r[m],_,b),h(o,_,b),d.categoryWayDim+=b}});function h(p,g,m){for(var b=0;b<m;b++)p.push(g+b)}function v(p){var g=p.dimsDef;return g?g.length:1}return i.length&&(r.itemName=i),o.length&&(r.seriesName=o),r}function aA(e,t,n){var r={},a=iA(e);if(!a)return r;var i=t.sourceFormat,o=t.dimensionsDefine,s;(i===vi||i===Eo)&&F(o,function(c,f){(ht(c)?c.name:c)==="name"&&(s=f)});var l=function(){for(var c={},f={},d=[],h=0,v=Math.min(5,n);h<v;h++){var p=sW(t.data,i,t.seriesLayoutBy,o,t.startIndex,h);d.push(p);var g=p===gr.Not;if(g&&c.v==null&&h!==s&&(c.v=h),(c.n==null||c.n===c.v||!g&&d[c.n]===gr.Not)&&(c.n=h),m(c)&&d[c.n]!==gr.Not)return c;g||(p===gr.Might&&f.v==null&&h!==s&&(f.v=h),(f.n==null||f.n===f.v)&&(f.n=h))}function m(b){return b.v!=null&&b.n!=null}return m(c)?c:m(f)?f:null}();if(l){r.value=[l.v];var u=s??l.n;r.itemName=[u],r.seriesName=[u]}return r}function iA(e){var t=e.get("data",!0);if(!t)return cg(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},Wn).models[0]}function mRe(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:cg(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},Wn).models}function oW(e,t){return sW(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function sW(e,t,n,r,a,i){var o,s=5;if(_a(e))return gr.Not;var l,u;if(r){var c=r[i];ht(c)?(l=c.name,u=c.type):Je(c)&&(l=c)}if(u!=null)return u==="ordinal"?gr.Must:gr.Not;if(t===Br){var f=e;if(n===zd){for(var d=f[i],h=0;h<(d||[]).length&&h<s;h++)if((o=w(d[a+h]))!=null)return o}else for(var h=0;h<f.length&&h<s;h++){var v=f[a+h];if(v&&(o=w(v[i]))!=null)return o}}else if(t===vi){var p=e;if(!l)return gr.Not;for(var h=0;h<p.length&&h<s;h++){var g=p[h];if(g&&(o=w(g[l]))!=null)return o}}else if(t===Eo){var m=e;if(!l)return gr.Not;var d=m[l];if(!d||_a(d))return gr.Not;for(var h=0;h<d.length&&h<s;h++)if((o=w(d[h]))!=null)return o}else if(t===hi)for(var b=e,h=0;h<b.length&&h<s;h++){var g=b[h],_=Id(g);if(!Re(_))return gr.Not;if((o=w(_[i]))!=null)return o}function w(C){var S=Je(C);if(C!=null&&isFinite(C)&&C!=="")return S?gr.Might:gr.Not;if(S&&C!=="-")return gr.Must}return gr.Not}var d2=ot();function yRe(e,t){Nr(d2.get(e)==null&&t),d2.set(e,t)}function bRe(e,t,n){var r=d2.get(t);if(!r)return n;var a=r(e);return a?n.concat(a):n}var WR=en(),_Re=en(),oA=function(){function e(){}return e.prototype.getColorFromPalette=function(t,n,r){var a=hn(this.get("color",!0)),i=this.get("colorLayer",!0);return lW(this,WR,a,i,t,n,r)},e.prototype.clearColorPalette=function(){SRe(this,WR)},e}();function h2(e,t,n,r){var a=hn(e.get(["aria","decal","decals"]));return lW(e,_Re,a,null,t,n,r)}function wRe(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r].length>t)return e[r];return e[n-1]}function lW(e,t,n,r,a,i,o){i=i||e;var s=t(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var c=o==null||!r?n:wRe(r,o);if(c=c||n,!(!c||!c.length)){var f=c[l];return a&&(u[a]=f),s.paletteIdx=(l+1)%c.length,f}}function SRe(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var ym,hh,KR,UR="\0_ec_inner",CRe=1,uW=function(e){ge(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(n,r,a,i,o,s){i=i||{},this.option=null,this._theme=new dn(i),this._locale=new dn(o),this._optionManager=s},t.prototype.setOption=function(n,r,a){var i=qR(r);this._optionManager.setOption(n,a,i),this._resetOption(null,i)},t.prototype.resetOption=function(n,r){return this._resetOption(n,qR(r))},t.prototype._resetOption=function(n,r){var a=!1,i=this._optionManager;if(!n||n==="recreate"){var o=i.mountOption(n==="recreate");!this.option||n==="recreate"?KR(this,o):(this.restoreData(),this._mergeOption(o,r)),a=!0}if((n==="timeline"||n==="media")&&this.restoreData(),!n||n==="recreate"||n==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,r))}if(!n||n==="recreate"||n==="media"){var l=i.getMediaOption(this);l.length&&F(l,function(u){a=!0,this._mergeOption(u,r)},this)}return a},t.prototype.mergeOption=function(n){this._mergeOption(n,null)},t.prototype._mergeOption=function(n,r){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=ot(),u=r&&r.replaceMergeMainTypeMap;gRe(this),F(n,function(f,d){f!=null&&(Yt.hasClass(d)?d&&(s.push(d),l.set(d,!0)):a[d]=a[d]==null?pt(f):Dt(a[d],f,!0))}),u&&u.each(function(f,d){Yt.hasClass(d)&&!l.get(d)&&(s.push(d),l.set(d,!0))}),Yt.topologicalTravel(s,Yt.getAllClassMainTypes(),c,this);function c(f){var d=bRe(this,f,hn(n[f])),h=i.get(f),v=h?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",p=NH(h,d,v);FDe(p,f,Yt),a[f]=null,i.set(f,null),o.set(f,0);var g=[],m=[],b=0,_;F(p,function(w,C){var S=w.existing,x=w.newOption;if(!x)S&&(S.mergeOption({},this),S.optionUpdated({},!1));else{var T=f==="series",M=Yt.getClass(f,w.keyInfo.subType,!T);if(!M)return;if(f==="tooltip"){if(_)return;_=!0}if(S&&S.constructor===M)S.name=w.keyInfo.name,S.mergeOption(x,this),S.optionUpdated(x,!1);else{var A=Ie({componentIndex:C},w.keyInfo);S=new M(x,this,this,A),Ie(S,A),w.brandNew&&(S.__requireNewView=!0),S.init(x,this,this),S.optionUpdated(null,!0)}}S?(g.push(S.option),m.push(S),b++):(g.push(void 0),m.push(void 0))},this),a[f]=g,i.set(f,m),o.set(f,b),f==="series"&&ym(this)}this._seriesIndices||ym(this)},t.prototype.getOption=function(){var n=pt(this.option);return F(n,function(r,a){if(Yt.hasClass(a)){for(var i=hn(r),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!yp(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,n[a]=i}}),delete n[UR],n},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(n){this._payload=n},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(n,r){var a=this._componentsMap.get(n);if(a){var i=a[r||0];if(i)return i;if(r==null){for(var o=0;o<a.length;o++)if(a[o])return a[o]}}},t.prototype.queryComponents=function(n){var r=n.mainType;if(!r)return[];var a=n.index,i=n.id,o=n.name,s=this._componentsMap.get(r);if(!s||!s.length)return[];var l;return a!=null?(l=[],F(hn(a),function(u){s[u]&&l.push(s[u])})):i!=null?l=YR("id",i,s):o!=null?l=YR("name",o,s):l=ln(s,function(u){return!!u}),jR(l,n)},t.prototype.findComponents=function(n){var r=n.query,a=n.mainType,i=s(r),o=i?this.queryComponents(i):ln(this._componentsMap.get(a),function(u){return!!u});return l(jR(o,n));function s(u){var c=a+"Index",f=a+"Id",d=a+"Name";return u&&(u[c]!=null||u[f]!=null||u[d]!=null)?{mainType:a,index:u[c],id:u[f],name:u[d]}:null}function l(u){return n.filter?ln(u,n.filter):u}},t.prototype.eachComponent=function(n,r,a){var i=this._componentsMap;if(ut(n)){var o=r,s=n;i.each(function(f,d){for(var h=0;f&&h<f.length;h++){var v=f[h];v&&s.call(o,d,v,v.componentIndex)}})}else for(var l=Je(n)?i.get(n):ht(n)?this.findComponents(n):null,u=0;l&&u<l.length;u++){var c=l[u];c&&r.call(a,c,c.componentIndex)}},t.prototype.getSeriesByName=function(n){var r=tr(n,null);return ln(this._componentsMap.get("series"),function(a){return!!a&&r!=null&&a.name===r})},t.prototype.getSeriesByIndex=function(n){return this._componentsMap.get("series")[n]},t.prototype.getSeriesByType=function(n){return ln(this._componentsMap.get("series"),function(r){return!!r&&r.subType===n})},t.prototype.getSeries=function(){return ln(this._componentsMap.get("series"),function(n){return!!n})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(n,r){hh(this),F(this._seriesIndices,function(a){var i=this._componentsMap.get("series")[a];n.call(r,i,a)},this)},t.prototype.eachRawSeries=function(n,r){F(this._componentsMap.get("series"),function(a){a&&n.call(r,a,a.componentIndex)})},t.prototype.eachSeriesByType=function(n,r,a){hh(this),F(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===n&&r.call(a,o,i)},this)},t.prototype.eachRawSeriesByType=function(n,r,a){return F(this.getSeriesByType(n),r,a)},t.prototype.isSeriesFiltered=function(n){return hh(this),this._seriesIndicesMap.get(n.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(n,r){hh(this);var a=[];F(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];n.call(r,o,i)&&a.push(i)},this),this._seriesIndices=a,this._seriesIndicesMap=ot(a)},t.prototype.restoreData=function(n){ym(this);var r=this._componentsMap,a=[];r.each(function(i,o){Yt.hasClass(o)&&a.push(o)}),Yt.topologicalTravel(a,Yt.getAllClassMainTypes(),function(i){F(r.get(i),function(o){o&&(i!=="series"||!xRe(o,n))&&o.restoreData()})})},t.internalField=function(){ym=function(n){var r=n._seriesIndices=[];F(n._componentsMap.get("series"),function(a){a&&r.push(a.componentIndex)}),n._seriesIndicesMap=ot(r)},hh=function(n){},KR=function(n,r){n.option={},n.option[UR]=CRe,n._componentsMap=ot({series:[]}),n._componentsCount=ot();var a=r.aria;ht(a)&&a.enabled==null&&(a.enabled=!0),TRe(r,n._theme.option),Dt(r,pRe,!1),n._mergeOption(r,null)}}(),t}(dn);function xRe(e,t){if(t){var n=t.seriesIndex,r=t.seriesId,a=t.seriesName;return n!=null&&e.componentIndex!==n||r!=null&&e.id!==r||a!=null&&e.name!==a}}function TRe(e,t){var n=e.color&&!e.colorLayer;F(t,function(r,a){a==="colorLayer"&&n||Yt.hasClass(a)||(typeof r=="object"?e[a]=e[a]?Dt(e[a],r,!1):pt(r):e[a]==null&&(e[a]=r))})}function YR(e,t,n){if(Re(t)){var r=ot();return F(t,function(i){if(i!=null){var o=tr(i,null);o!=null&&r.set(i,!0)}}),ln(n,function(i){return i&&r.get(i[e])})}else{var a=tr(t,null);return ln(n,function(i){return i&&a!=null&&i[e]===a})}}function jR(e,t){return t.hasOwnProperty("subType")?ln(e,function(n){return n&&n.subType===t.subType}):e}function qR(e){var t=ot();return e&&F(hn(e.replaceMerge),function(n){t.set(n,!0)}),{replaceMergeMainTypeMap:t}}Vn(uW,oA);const cW=uW;var MRe=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],kRe=function(){function e(t){F(MRe,function(n){this[n]=et(t[n],t)},this)}return e}();const fW=kRe;var Cw={},ARe=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(t,n){var r=[];F(Cw,function(a,i){var o=a.create(t,n);r=r.concat(o||[])}),this._coordinateSystems=r},e.prototype.update=function(t,n){F(this._coordinateSystems,function(r){r.update&&r.update(t,n)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(t,n){Cw[t]=n},e.get=function(t){return Cw[t]},e}();const Fd=ARe;var ERe=/^(min|max)?(.+)$/,IRe=function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,n,r){t&&(F(hn(t.series),function(o){o&&o.data&&_a(o.data)&&up(o.data)}),F(hn(t.dataset),function(o){o&&o.source&&_a(o.source)&&up(o.source)})),t=pt(t);var a=this._optionBackup,i=DRe(t,n,!a);this._newBaseOption=i.baseOption,a?(i.timelineOptions.length&&(a.timelineOptions=i.timelineOptions),i.mediaList.length&&(a.mediaList=i.mediaList),i.mediaDefault&&(a.mediaDefault=i.mediaDefault)):this._optionBackup=i},e.prototype.mountOption=function(t){var n=this._optionBackup;return this._timelineOptions=n.timelineOptions,this._mediaList=n.mediaList,this._mediaDefault=n.mediaDefault,this._currentMediaIndices=[],pt(t?n.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(t){var n,r=this._timelineOptions;if(r.length){var a=t.getComponent("timeline");a&&(n=pt(r[a.getCurrentIndex()]))}return n},e.prototype.getMediaOption=function(t){var n=this._api.getWidth(),r=this._api.getHeight(),a=this._mediaList,i=this._mediaDefault,o=[],s=[];if(!a.length&&!i)return s;for(var l=0,u=a.length;l<u;l++)PRe(a[l].query,n,r)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!RRe(o,this._currentMediaIndices)&&(s=Oe(o,function(c){return pt(c===-1?i.option:a[c].option)})),this._currentMediaIndices=o,s},e}();function DRe(e,t,n){var r=[],a,i,o=e.baseOption,s=e.timeline,l=e.options,u=e.media,c=!!e.media,f=!!(l||s||o&&o.timeline);o?(i=o,i.timeline||(i.timeline=s)):((f||c)&&(e.options=e.media=null),i=e),c&&Re(u)&&F(u,function(h){h&&h.option&&(h.query?r.push(h):a||(a=h))}),d(i),F(l,function(h){return d(h)}),F(r,function(h){return d(h.option)});function d(h){F(t,function(v){v(h,n)})}return{baseOption:i,timelineOptions:l||[],mediaDefault:a,mediaList:r}}function PRe(e,t,n){var r={width:t,height:n,aspectratio:t/n},a=!0;return F(e,function(i,o){var s=o.match(ERe);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();LRe(r[u],i,l)||(a=!1)}}),a}function LRe(e,t,n){return n==="min"?e>=t:n==="max"?e<=t:e===t}function RRe(e,t){return e.join(",")===t.join(",")}const ORe=IRe;var mi=F,Mp=ht,XR=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function xw(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=XR.length;n<r;n++){var a=XR[n],i=t.normal,o=t.emphasis;i&&i[a]&&(e[a]=e[a]||{},e[a].normal?Dt(e[a].normal,i[a]):e[a].normal=i[a],i[a]=null),o&&o[a]&&(e[a]=e[a]||{},e[a].emphasis?Dt(e[a].emphasis,o[a]):e[a].emphasis=o[a],o[a]=null)}}function Pr(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var r=e[t].normal,a=e[t].emphasis;r&&(n?(e[t].normal=e[t].emphasis=null,ft(e[t],r)):e[t]=r),a&&(e.emphasis=e.emphasis||{},e.emphasis[t]=a,a.focus&&(e.emphasis.focus=a.focus),a.blurScope&&(e.emphasis.blurScope=a.blurScope))}}function Wh(e){Pr(e,"itemStyle"),Pr(e,"lineStyle"),Pr(e,"areaStyle"),Pr(e,"label"),Pr(e,"labelLine"),Pr(e,"upperLabel"),Pr(e,"edgeLabel")}function Gn(e,t){var n=Mp(e)&&e[t],r=Mp(n)&&n.textStyle;if(r)for(var a=0,i=eR.length;a<i;a++){var o=eR[a];r.hasOwnProperty(o)&&(n[o]=r[o])}}function Ha(e){e&&(Wh(e),Gn(e,"label"),e.emphasis&&Gn(e.emphasis,"label"))}function $Re(e){if(Mp(e)){xw(e),Wh(e),Gn(e,"label"),Gn(e,"upperLabel"),Gn(e,"edgeLabel"),e.emphasis&&(Gn(e.emphasis,"label"),Gn(e.emphasis,"upperLabel"),Gn(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(xw(t),Ha(t));var n=e.markLine;n&&(xw(n),Ha(n));var r=e.markArea;r&&Ha(r);var a=e.data;if(e.type==="graph"){a=a||e.nodes;var i=e.links||e.edges;if(i&&!_a(i))for(var o=0;o<i.length;o++)Ha(i[o]);F(e.categories,function(u){Wh(u)})}if(a&&!_a(a))for(var o=0;o<a.length;o++)Ha(a[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)Ha(s[o]);if(n=e.markLine,n&&n.data)for(var l=n.data,o=0;o<l.length;o++)Re(l[o])?(Ha(l[o][0]),Ha(l[o][1])):Ha(l[o]);e.type==="gauge"?(Gn(e,"axisLabel"),Gn(e,"title"),Gn(e,"detail")):e.type==="treemap"?(Pr(e.breadcrumb,"itemStyle"),F(e.levels,function(u){Wh(u)})):e.type==="tree"&&Wh(e.leaves)}}function Lo(e){return Re(e)?e:e?[e]:[]}function ZR(e){return(Re(e)?e[0]:e)||{}}function NRe(e,t){mi(Lo(e.series),function(r){Mp(r)&&$Re(r)});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),mi(n,function(r){mi(Lo(e[r]),function(a){a&&(Gn(a,"axisLabel"),Gn(a.axisPointer,"label"))})}),mi(Lo(e.parallel),function(r){var a=r&&r.parallelAxisDefault;Gn(a,"axisLabel"),Gn(a&&a.axisPointer,"label")}),mi(Lo(e.calendar),function(r){Pr(r,"itemStyle"),Gn(r,"dayLabel"),Gn(r,"monthLabel"),Gn(r,"yearLabel")}),mi(Lo(e.radar),function(r){Gn(r,"name"),r.name&&r.axisName==null&&(r.axisName=r.name,delete r.name),r.nameGap!=null&&r.axisNameGap==null&&(r.axisNameGap=r.nameGap,delete r.nameGap)}),mi(Lo(e.geo),function(r){Mp(r)&&(Ha(r),mi(Lo(r.regions),function(a){Ha(a)}))}),mi(Lo(e.timeline),function(r){Ha(r),Pr(r,"label"),Pr(r,"itemStyle"),Pr(r,"controlStyle",!0);var a=r.data;Re(a)&&F(a,function(i){ht(i)&&(Pr(i,"label"),Pr(i,"itemStyle"))})}),mi(Lo(e.toolbox),function(r){Pr(r,"iconStyle"),mi(r.feature,function(a){Pr(a,"iconStyle")})}),Gn(ZR(e.axisPointer),"label"),Gn(ZR(e.tooltip).axisPointer,"label")}function BRe(e,t){for(var n=t.split(","),r=e,a=0;a<n.length&&(r=r&&r[n[a]],r!=null);a++);return r}function VRe(e,t,n,r){for(var a=t.split(","),i=e,o,s=0;s<a.length-1;s++)o=a[s],i[o]==null&&(i[o]={}),i=i[o];(r||i[a[s]]==null)&&(i[a[s]]=n)}function JR(e){e&&F(zRe,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var zRe=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],FRe=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Tw=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function vh(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<Tw.length;n++){var r=Tw[n][1],a=Tw[n][0];t[r]!=null&&(t[a]=t[r])}}function QR(e){e&&e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function eO(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function HRe(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(e.emphasis.focus="adjacency"))}function dW(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&dW(e[n].children,t)}function hW(e,t){NRe(e,t),e.series=hn(e.series),F(e.series,function(n){if(ht(n)){var r=n.type;if(r==="line")n.clipOverflow!=null&&(n.clip=n.clipOverflow);else if(r==="pie"||r==="gauge"){n.clockWise!=null&&(n.clockwise=n.clockWise),QR(n.label);var a=n.data;if(a&&!_a(a))for(var i=0;i<a.length;i++)QR(a[i]);n.hoverOffset!=null&&(n.emphasis=n.emphasis||{},(n.emphasis.scaleSize=null)&&(n.emphasis.scaleSize=n.hoverOffset))}else if(r==="gauge"){var o=BRe(n,"pointer.color");o!=null&&VRe(n,"itemStyle.color",o)}else if(r==="bar"){vh(n),vh(n.backgroundStyle),vh(n.emphasis);var a=n.data;if(a&&!_a(a))for(var i=0;i<a.length;i++)typeof a[i]=="object"&&(vh(a[i]),vh(a[i]&&a[i].emphasis))}else if(r==="sunburst"){var s=n.highlightPolicy;s&&(n.emphasis=n.emphasis||{},n.emphasis.focus||(n.emphasis.focus=s)),eO(n),dW(n.data,eO)}else r==="graph"||r==="sankey"?HRe(n):r==="map"&&(n.mapType&&!n.map&&(n.map=n.mapType),n.mapLocation&&ft(n,n.mapLocation));n.hoverAnimation!=null&&(n.emphasis=n.emphasis||{},n.emphasis&&n.emphasis.scale==null&&(n.emphasis.scale=n.hoverAnimation)),JR(n)}}),e.dataRange&&(e.visualMap=e.dataRange),F(FRe,function(n){var r=e[n];r&&(Re(r)||(r=[r]),F(r,function(a){JR(a)}))})}function GRe(e){var t=ot();e.eachSeries(function(n){var r=n.get("stack");if(r){var a=t.get(r)||t.set(r,[]),i=n.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:n};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;a.length&&i.setCalculationInfo("stackedOnSeries",a[a.length-1].seriesModel),a.push(o)}}),t.each(WRe)}function WRe(e){F(e,function(t,n){var r=[],a=[NaN,NaN],i=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,c,f){var d=o.get(t.stackedDimension,f);if(isNaN(d))return a;var h,v;s?v=o.getRawIndex(f):h=o.get(t.stackedByDimension,f);for(var p=NaN,g=n-1;g>=0;g--){var m=e[g];if(s||(v=m.data.rawIndexOf(m.stackedByDimension,h)),v>=0){var b=m.data.getByRawIndex(m.stackResultDimension,v);if(l==="all"||l==="positive"&&b>0||l==="negative"&&b<0||l==="samesign"&&d>=0&&b>0||l==="samesign"&&d<=0&&b<0){d=DDe(d,b),p=b;break}}}return r[0]=d,r[1]=p,r})})}var N1=function(){function e(t){this.data=t.data||(t.sourceFormat===Eo?{}:[]),this.sourceFormat=t.sourceFormat||rW,this.seriesLayoutBy=t.seriesLayoutBy||mo,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var n=this.dimensionsDefine=t.dimensionsDefine;if(n)for(var r=0;r<n.length;r++){var a=n[r];a.type==null&&oW(this,r)===gr.Must&&(a.type="ordinal")}}return e}();function sA(e){return e instanceof N1}function v2(e,t,n){n=n||vW(e);var r=t.seriesLayoutBy,a=URe(e,n,r,t.sourceHeader,t.dimensions),i=new N1({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:pt(t)});return i}function lA(e){return new N1({data:e,sourceFormat:_a(e)?il:hi})}function KRe(e){return new N1({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:pt(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function vW(e){var t=rW;if(_a(e))t=il;else if(Re(e)){e.length===0&&(t=Br);for(var n=0,r=e.length;n<r;n++){var a=e[n];if(a!=null){if(Re(a)){t=Br;break}else if(ht(a)){t=vi;break}}}}else if(ht(e)){for(var i in e)if(nt(e,i)&&Cr(e[i])){t=Eo;break}}return t}function URe(e,t,n,r,a){var i,o;if(!e)return{dimensionsDefine:tO(a),startIndex:o,dimensionsDetectedCount:i};if(t===Br){var s=e;r==="auto"||r==null?nO(function(u){u!=null&&u!=="-"&&(Je(u)?o==null&&(o=1):o=0)},n,s,10):o=Qt(r)?r:r?1:0,!a&&o===1&&(a=[],nO(function(u,c){a[c]=u!=null?u+"":""},n,s,1/0)),i=a?a.length:n===zd?s.length:s[0]?s[0].length:null}else if(t===vi)a||(a=YRe(e));else if(t===Eo)a||(a=[],F(e,function(u,c){a.push(c)}));else if(t===hi){var l=Id(e[0]);i=Re(l)&&l.length||1}return{startIndex:o,dimensionsDefine:tO(a),dimensionsDetectedCount:i}}function YRe(e){for(var t=0,n;t<e.length&&!(n=e[t++]););if(n)return Gt(n)}function tO(e){if(e){var t=ot();return Oe(e,function(n,r){n=ht(n)?n:{name:n};var a={name:n.name,displayName:n.displayName,type:n.type};if(a.name==null)return a;a.name+="",a.displayName==null&&(a.displayName=a.name);var i=t.get(a.name);return i?a.name+="-"+i.count++:t.set(a.name,{count:1}),a})}}function nO(e,t,n,r){if(t===zd)for(var a=0;a<n.length&&a<r;a++)e(n[a]?n[a][0]:null,a);else for(var i=n[0]||[],a=0;a<i.length&&a<r;a++)e(i[a],a)}function pW(e){var t=e.sourceFormat;return t===vi||t===Eo}var au,iu,ou,rO,aO,gW=function(){function e(t,n){var r=sA(t)?t:lA(t);this._source=r;var a=this._data=r.data;r.sourceFormat===il&&(this._offset=0,this._dimSize=n,this._data=a),aO(this,a,r)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(t,n){},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;aO=function(o,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,f=l.startIndex,d=l.dimensionsDefine,h=rO[uA(u,c)];if(Ie(o,h),u===il)o.getItem=n,o.count=a,o.fillStorage=r;else{var v=mW(u,c);o.getItem=et(v,null,s,f,d);var p=yW(u,c);o.count=et(p,null,s,f,d)}};var n=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,c=u*o,f=0;f<u;f++)s[f]=l[c+f];return s},r=function(o,s,l,u){for(var c=this._data,f=this._dimSize,d=0;d<f;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],b=0;b<g;b++){var _=c[b*f+d];m[o+b]=_,_<v&&(v=_),_>p&&(p=_)}h[0]=v,h[1]=p}},a=function(){return this._data?this._data.length/this._dimSize:0};rO=(t={},t[Br+"_"+mo]={pure:!0,appendData:i},t[Br+"_"+zd]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[vi]={pure:!0,appendData:i},t[Eo]={pure:!0,appendData:function(o){var s=this._data;F(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[hi]={appendData:i},t[il]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function i(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),e}(),iO=function(e,t,n,r){return e[r]},jRe=(au={},au[Br+"_"+mo]=function(e,t,n,r){return e[r+t]},au[Br+"_"+zd]=function(e,t,n,r,a){r+=t;for(var i=a||[],o=e,s=0;s<o.length;s++){var l=o[s];i[s]=l?l[r]:null}return i},au[vi]=iO,au[Eo]=function(e,t,n,r,a){for(var i=a||[],o=0;o<n.length;o++){var s=n[o].name,l=e[s];i[o]=l?l[r]:null}return i},au[hi]=iO,au);function mW(e,t){var n=jRe[uA(e,t)];return n}var oO=function(e,t,n){return e.length},qRe=(iu={},iu[Br+"_"+mo]=function(e,t,n){return Math.max(0,e.length-t)},iu[Br+"_"+zd]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},iu[vi]=oO,iu[Eo]=function(e,t,n){var r=n[0].name,a=e[r];return a?a.length:0},iu[hi]=oO,iu);function yW(e,t){var n=qRe[uA(e,t)];return n}var Mw=function(e,t,n){return e[t]},XRe=(ou={},ou[Br]=Mw,ou[vi]=function(e,t,n){return e[n]},ou[Eo]=Mw,ou[hi]=function(e,t,n){var r=Id(e);return r instanceof Array?r[t]:r},ou[il]=Mw,ou);function bW(e){var t=XRe[e];return t}function uA(e,t){return e===Br?e+"_"+t:e}function dd(e,t,n){if(e){var r=e.getRawDataItem(t);if(r!=null){var a=e.getStore(),i=a.getSource().sourceFormat;if(n!=null){var o=e.getDimensionIndex(n),s=a.getDimensionProperty(o);return bW(i)(r,o,s)}else{var l=r;return i===hi&&(l=Id(r)),l}}}}var ZRe=/\{@(.+?)\}/g,cA=function(){function e(){}return e.prototype.getDataParams=function(t,n){var r=this.getData(n),a=this.getRawValue(t,n),i=r.getRawIndex(t),o=r.getName(t),s=r.getRawDataItem(t),l=r.getItemVisual(t,"style"),u=l&&l[r.getItemVisual(t,"drawType")||"fill"],c=l&&l.stroke,f=this.mainType,d=f==="series",h=r.userOutput&&r.userOutput.get();return{componentType:f,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:i,data:s,dataType:n,value:a,color:u,borderColor:c,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(t,n,r,a,i,o){n=n||"normal";var s=this.getData(r),l=this.getDataParams(t,r);if(o&&(l.value=o.interpolatedValue),a!=null&&Re(l.value)&&(l.value=l.value[a]),!i){var u=s.getItemModel(t);i=u.get(n==="normal"?["label","formatter"]:[n,"label","formatter"])}if(ut(i))return l.status=n,l.dimensionIndex=a,i(l);if(Je(i)){var c=nA(i,l);return c.replace(ZRe,function(f,d){var h=d.length,v=d;v.charAt(0)==="["&&v.charAt(h-1)==="]"&&(v=+v.slice(1,h-1));var p=dd(s,t,v);if(o&&Re(o.interpolatedValue)){var g=s.getDimensionIndex(v);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},e.prototype.getRawValue=function(t,n){return dd(this.getData(n),t)},e.prototype.formatTooltip=function(t,n,r){},e}();function sO(e){var t,n;return ht(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function Sv(e){return new JRe(e)}var JRe=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 n=this._upstream,r=t&&t.skip;if(this._dirty&&n){var a=this.context;a.data=a.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!r&&(i=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(i="reset");function c(b){return!(b>=1)&&(b=1),b}var f;(this._dirty||i==="reset")&&(this._dirty=!1,f=this._doReset(r)),this._modBy=l,this._modDataCount=u;var d=t&&t.step;if(n?this._dueEnd=n._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(!r&&(f||h<v)){var p=this._progress;if(Re(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,n,r,a,i){lO.reset(n,r,a,i),this._callingProgress=t,this._callingProgress({start:n,end:r,count:r-n,next:lO.next},this.context)},e.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var n,r;!t&&this._reset&&(n=this._reset(this.context),n&&n.progress&&(r=n.forceFirstProgress,n=n.progress),Re(n)&&!n.length&&(n=null)),this._progress=n,this._modBy=this._modDataCount=null;var a=this._downstream;return a&&a.dirty(),r},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}(),lO=function(){var e,t,n,r,a,i={reset:function(l,u,c,f){t=l,e=u,n=c,r=f,a=Math.ceil(r/n),i.next=n>1&&r>0?s:o}};return i;function o(){return t<e?t++:null}function s(){var l=t%a*n+Math.ceil(t/a),u=t>=e?null:l<r?l:t;return t++,u}}();function ol(e,t){var n=t&&t.type;return n==="ordinal"?e:(n==="time"&&!Qt(e)&&e!=null&&e!=="-"&&(e=+Ra(e)),e==null||e===""?NaN:+e)}var QRe=ot({number:function(e){return parseFloat(e)},time:function(e){return+Ra(e)},trim:function(e){return Je(e)?Za(e):e}});function _W(e){return QRe.get(e)}var wW={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}},eOe=function(){function e(t,n){if(!Qt(n)){var r="";an(r)}this._opFn=wW[t],this._rvalFloat=xo(n)}return e.prototype.evaluate=function(t){return Qt(t)?this._opFn(t,this._rvalFloat):this._opFn(xo(t),this._rvalFloat)},e}(),SW=function(){function e(t,n){var r=t==="desc";this._resultLT=r?1:-1,n==null&&(n=r?"min":"max"),this._incomparable=n==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,n){var r=Qt(t)?t:xo(t),a=Qt(n)?n:xo(n),i=isNaN(r),o=isNaN(a);if(i&&(r=this._incomparable),o&&(a=this._incomparable),i&&o){var s=Je(t),l=Je(n);s&&(r=l?t:0),l&&(a=s?n:0)}return r<a?this._resultLT:r>a?-this._resultLT:0},e}(),tOe=function(){function e(t,n){this._rval=n,this._isEQ=t,this._rvalTypeof=typeof n,this._rvalFloat=xo(n)}return e.prototype.evaluate=function(t){var n=t===this._rval;if(!n){var r=typeof t;r!==this._rvalTypeof&&(r==="number"||this._rvalTypeof==="number")&&(n=xo(t)===this._rvalFloat)}return this._isEQ?n:!n},e}();function nOe(e,t){return e==="eq"||e==="ne"?new tOe(e==="eq",t):nt(wW,e)?new eOe(e,t):null}var rOe=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,n){},e.prototype.retrieveValueFromItem=function(t,n){},e.prototype.convertValue=function(t,n){return ol(t,n)},e}();function aOe(e,t){var n=new rOe,r=e.data,a=n.sourceFormat=e.sourceFormat,i=e.startIndex,o="";e.seriesLayoutBy!==mo&&an(o);var s=[],l={},u=e.dimensionsDefine;if(u)F(u,function(p,g){var m=p.name,b={index:g,name:m,displayName:p.displayName};if(s.push(b),m!=null){var _="";nt(l,m)&&an(_),l[m]=b}});else for(var c=0;c<e.dimensionsDetectedCount;c++)s.push({index:c});var f=mW(a,mo);t.__isBuiltIn&&(n.getRawDataItem=function(p){return f(r,i,s,p)},n.getRawData=et(iOe,null,e)),n.cloneRawData=et(oOe,null,e);var d=yW(a,mo);n.count=et(d,null,r,i,s);var h=bW(a);n.retrieveValue=function(p,g){var m=f(r,i,s,p);return v(m,g)};var v=n.retrieveValueFromItem=function(p,g){if(p!=null){var m=s[g];if(m)return h(p,g,m.name)}};return n.getDimensionInfo=et(sOe,null,s,l),n.cloneAllDimensionInfo=et(lOe,null,s),n}function iOe(e){var t=e.sourceFormat;if(!fA(t)){var n="";an(n)}return e.data}function oOe(e){var t=e.sourceFormat,n=e.data;if(!fA(t)){var r="";an(r)}if(t===Br){for(var a=[],i=0,o=n.length;i<o;i++)a.push(n[i].slice());return a}else if(t===vi){for(var a=[],i=0,o=n.length;i<o;i++)a.push(Ie({},n[i]));return a}}function sOe(e,t,n){if(n!=null){if(Qt(n)||!isNaN(n)&&!nt(t,n))return e[n];if(nt(t,n))return t[n]}}function lOe(e){return pt(e)}var CW=ot();function uOe(e){e=pt(e);var t=e.type,n="";t||an(n);var r=t.split(":");r.length!==2&&an(n);var a=!1;r[0]==="echarts"&&(t=r[1],a=!0),e.__isBuiltIn=a,CW.set(t,e)}function cOe(e,t,n){var r=hn(e),a=r.length,i="";a||an(i);for(var o=0,s=a;o<s;o++){var l=r[o];t=fOe(l,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function fOe(e,t,n,r){var a="";t.length||an(a),ht(e)||an(a);var i=e.type,o=CW.get(i);o||an(a);var s=Oe(t,function(u){return aOe(u,o)}),l=hn(o.transform({upstream:s[0],upstreamList:s,config:pt(e.config)}));return Oe(l,function(u,c){var f="";ht(u)||an(f),u.data||an(f);var d=vW(u.data);fA(d)||an(f);var h,v=t[0];if(v&&c===0&&!u.dimensions){var p=v.startIndex;p&&(u.data=v.data.slice(0,p).concat(u.data)),h={seriesLayoutBy:mo,sourceHeader:p,dimensions:v.metaRawOption.dimensions}}else h={seriesLayoutBy:mo,sourceHeader:0,dimensions:u.dimensions};return v2(u.data,h,null)})}function fA(e){return e===Br||e===vi}var B1="undefined",dOe=typeof Uint32Array===B1?Array:Uint32Array,hOe=typeof Uint16Array===B1?Array:Uint16Array,xW=typeof Int32Array===B1?Array:Int32Array,uO=typeof Float64Array===B1?Array:Float64Array,TW={float:uO,int:xW,ordinal:Array,number:Array,time:uO},kw;function ph(e){return e>65535?dOe:hOe}function Kc(){return[1/0,-1/0]}function vOe(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function cO(e,t,n,r,a){var i=TW[n||"float"];if(a){var o=e[t],s=o&&o.length;if(s!==r){for(var l=new i(r),u=0;u<s;u++)l[u]=o[u];e[t]=l}}else e[t]=new i(r)}var pOe=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=ot()}return e.prototype.initData=function(t,n,r){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=t.getSource(),i=this.defaultDimValueGetter=kw[a.sourceFormat];this._dimValueGetter=r||i,this._rawExtent=[],pW(a),this._dimensions=Oe(n,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,n){var r=this._calcDimNameToIdx,a=this._dimensions,i=r.get(t);if(i!=null){if(a[i].type===n)return i}else i=a.length;return a[i]={type:n},r.set(t,i),this._chunks[i]=new TW[n||"float"](this._rawCount),this._rawExtent[i]=Kc(),i},e.prototype.collectOrdinalMeta=function(t,n){var r=this._chunks[t],a=this._dimensions[t],i=this._rawExtent,o=a.ordinalOffset||0,s=r.length;o===0&&(i[t]=Kc());for(var l=i[t],u=o;u<s;u++){var c=r[u]=n.parseAndCollect(r[u]);isNaN(c)||(l[0]=Math.min(c,l[0]),l[1]=Math.max(c,l[1]))}a.ordinalMeta=n,a.ordinalOffset=s,a.type="ordinal"},e.prototype.getOrdinalMeta=function(t){var n=this._dimensions[t],r=n.ordinalMeta;return r},e.prototype.getDimensionProperty=function(t){var n=this._dimensions[t];return n&&n.property},e.prototype.appendData=function(t){var n=this._provider,r=this.count();n.appendData(t);var a=n.count();return n.persistent||(a+=r),r<a&&this._initDataFromProvider(r,a,!0),[r,a]},e.prototype.appendValues=function(t,n){for(var r=this._chunks,a=this._dimensions,i=a.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,n||0),u=0;u<i;u++){var c=a[u];cO(r,u,c.type,l,!0)}for(var f=[],d=s;d<l;d++)for(var h=d-s,v=0;v<i;v++){var c=a[v],p=kw.arrayRows.call(this,t[h]||f,c.property,h,v);r[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,n,r){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=Oe(o,function(b){return b.property}),c=0;c<s;c++){var f=o[c];l[c]||(l[c]=Kc()),cO(i,c,f.type,n,r)}if(a.fillStorage)a.fillStorage(t,n,i,l);else for(var d=[],h=t;h<n;h++){d=a.getItem(h,d);for(var v=0;v<s;v++){var p=i[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)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=n,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,n){if(!(n>=0&&n<this._count))return NaN;var r=this._chunks[t];return r?r[this.getRawIndex(n)]:NaN},e.prototype.getValues=function(t,n){var r=[],a=[];if(n==null){n=t,t=[];for(var i=0;i<this._dimensions.length;i++)a.push(i)}else a=t;for(var i=0,o=a.length;i<o;i++)r.push(this.get(a[i],n));return r},e.prototype.getByRawIndex=function(t,n){if(!(n>=0&&n<this._rawCount))return NaN;var r=this._chunks[t];return r?r[n]:NaN},e.prototype.getSum=function(t){var n=this._chunks[t],r=0;if(n)for(var a=0,i=this.count();a<i;a++){var o=this.get(t,a);isNaN(o)||(r+=o)}return r},e.prototype.getMedian=function(t){var n=[];this.each([t],function(i){isNaN(i)||n.push(i)});var r=n.sort(function(i,o){return i-o}),a=this.count();return a===0?0:a%2===1?r[(a-1)/2]:(r[a/2]+r[a/2-1])/2},e.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var n=this._indices,r=n[t];if(r!=null&&r<this._count&&r===t)return t;for(var a=0,i=this._count-1;a<=i;){var o=(a+i)/2|0;if(n[o]<t)a=o+1;else if(n[o]>t)i=o-1;else return o}return-1},e.prototype.indicesOfNearest=function(t,n,r){var a=this._chunks,i=a[t],o=[];if(!i)return o;r==null&&(r=1/0);for(var s=1/0,l=-1,u=0,c=0,f=this.count();c<f;c++){var d=this.getRawIndex(c),h=n-i[d],v=Math.abs(h);v<=r&&((v<s||v===s&&h>=0&&l<0)&&(s=v,l=h,u=0),h===l&&(o[u++]=c))}return o.length=u,o},e.prototype.getIndices=function(){var t,n=this._indices;if(n){var r=n.constructor,a=this._count;if(r===Array){t=new r(a);for(var i=0;i<a;i++)t[i]=n[i]}else t=new r(n.buffer,0,a)}else{var r=ph(this._rawCount);t=new r(this.count());for(var i=0;i<t.length;i++)t[i]=i}return t},e.prototype.filter=function(t,n){if(!this._count)return this;for(var r=this.clone(),a=r.count(),i=ph(r._rawCount),o=new i(a),s=[],l=t.length,u=0,c=t[0],f=r._chunks,d=0;d<a;d++){var h=void 0,v=r.getRawIndex(d);if(l===0)h=n(d);else if(l===1){var p=f[c][v];h=n(p,d)}else{for(var g=0;g<l;g++)s[g]=f[t[g]][v];s[g]=d,h=n.apply(null,s)}h&&(o[u++]=v)}return u<a&&(r._indices=o),r._count=u,r._extent=[],r._updateGetRawIdx(),r},e.prototype.selectRange=function(t){var n=this.clone(),r=n._count;if(!r)return this;var a=Gt(t),i=a.length;if(!i)return this;var o=n.count(),s=ph(n._rawCount),l=new s(o),u=0,c=a[0],f=t[c][0],d=t[c][1],h=n._chunks,v=!1;if(!n._indices){var p=0;if(i===1){for(var g=h[a[0]],m=0;m<r;m++){var b=g[m];(b>=f&&b<=d||isNaN(b))&&(l[u++]=p),p++}v=!0}else if(i===2){for(var g=h[a[0]],_=h[a[1]],w=t[a[1]][0],C=t[a[1]][1],m=0;m<r;m++){var b=g[m],S=_[m];(b>=f&&b<=d||isNaN(b))&&(S>=w&&S<=C||isNaN(S))&&(l[u++]=p),p++}v=!0}}if(!v)if(i===1)for(var m=0;m<o;m++){var x=n.getRawIndex(m),b=h[a[0]][x];(b>=f&&b<=d||isNaN(b))&&(l[u++]=x)}else for(var m=0;m<o;m++){for(var T=!0,x=n.getRawIndex(m),M=0;M<i;M++){var A=a[M],b=h[A][x];(b<t[A][0]||b>t[A][1])&&(T=!1)}T&&(l[u++]=n.getRawIndex(m))}return u<o&&(n._indices=l),n._count=u,n._extent=[],n._updateGetRawIdx(),n},e.prototype.map=function(t,n){var r=this.clone(t);return this._updateDims(r,t,n),r},e.prototype.modify=function(t,n){this._updateDims(this,t,n)},e.prototype._updateDims=function(t,n,r){for(var a=t._chunks,i=[],o=n.length,s=t.count(),l=[],u=t._rawExtent,c=0;c<n.length;c++)u[n[c]]=Kc();for(var f=0;f<s;f++){for(var d=t.getRawIndex(f),h=0;h<o;h++)l[h]=a[n[h]][d];l[o]=f;var v=r&&r.apply(null,l);if(v!=null){typeof v!="object"&&(i[0]=v,v=i);for(var c=0;c<v.length;c++){var p=n[c],g=v[c],m=u[p],b=a[p];b&&(b[d]=g),g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}}},e.prototype.lttbDownSample=function(t,n){var r=this.clone([t],!0),a=r._chunks,i=a[t],o=this.count(),s=0,l=Math.floor(1/n),u=this.getRawIndex(0),c,f,d,h=new(ph(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,b=0,_=p;_<g;_++){var w=this.getRawIndex(_),C=i[w];isNaN(C)||(b+=C)}b/=g-p;var S=v,x=Math.min(v+l,o),T=v-1,M=i[u];c=-1,d=S;for(var A=-1,k=0,_=S;_<x;_++){var w=this.getRawIndex(_),C=i[w];if(isNaN(C)){k++,A<0&&(A=w);continue}f=Math.abs((T-m)*(C-M)-(T-_)*(b-M)),f>c&&(c=f,d=w)}k>0&&k<x-S&&(h[s++]=Math.min(A,d),d=Math.max(A,d)),h[s++]=d,u=d}return h[s++]=this.getRawIndex(o-1),r._count=s,r._indices=h,r.getRawIndex=this._getRawIdx,r},e.prototype.downSample=function(t,n,r,a){for(var i=this.clone([t],!0),o=i._chunks,s=[],l=Math.floor(1/n),u=o[t],c=this.count(),f=i._rawExtent[t]=Kc(),d=new(ph(this._rawCount))(Math.ceil(c/l)),h=0,v=0;v<c;v+=l){l>c-v&&(l=c-v,s.length=l);for(var p=0;p<l;p++){var g=this.getRawIndex(v+p);s[p]=u[g]}var m=r(s),b=this.getRawIndex(Math.min(v+a(s,m)||0,c-1));u[b]=m,m<f[0]&&(f[0]=m),m>f[1]&&(f[1]=m),d[h++]=b}return i._count=h,i._indices=d,i._updateGetRawIdx(),i},e.prototype.each=function(t,n){if(this._count)for(var r=t.length,a=this._chunks,i=0,o=this.count();i<o;i++){var s=this.getRawIndex(i);switch(r){case 0:n(i);break;case 1:n(a[t[0]][s],i);break;case 2:n(a[t[0]][s],a[t[1]][s],i);break;default:for(var l=0,u=[];l<r;l++)u[l]=a[t[l]][s];u[l]=i,n.apply(null,u)}}},e.prototype.getDataExtent=function(t){var n=this._chunks[t],r=Kc();if(!n)return r;var a=this.count(),i=!this._indices,o;if(i)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=r;for(var s=o[0],l=o[1],u=0;u<a;u++){var c=this.getRawIndex(u),f=n[c];f<s&&(s=f),f>l&&(l=f)}return o=[s,l],this._extent[t]=o,o},e.prototype.getRawDataItem=function(t){var n=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(n);for(var r=[],a=this._chunks,i=0;i<a.length;i++)r.push(a[i][n]);return r},e.prototype.clone=function(t,n){var r=new e,a=this._chunks,i=t&&ui(t,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<a.length;o++)r._chunks[o]=i[o]?vOe(a[o]):a[o];else r._chunks=a;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},e.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=pt(this._extent),t._rawExtent=pt(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,n=void 0;if(t===Array){var r=this._indices.length;n=new t(r);for(var a=0;a<r;a++)n[a]=this._indices[a]}else n=new t(this._indices);return n}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(n,r,a,i){return ol(n[i],this._dimensions[i])}kw={arrayRows:t,objectRows:function(n,r,a,i){return ol(n[r],this._dimensions[i])},keyedColumns:t,original:function(n,r,a,i){var o=n&&(n.value==null?n:n.value);return ol(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(n,r,a,i){return n[i]}}}(),e}();const p2=pOe;var MW=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,n){this._sourceList=t,this._upstreamSignList=n,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,n=this._getUpstreamSourceManagers(),r=!!n.length,a,i;if(bm(t)){var o=t,s=void 0,l=void 0,u=void 0;if(r){var c=n[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,i=[c._getVersionSign()]}else s=o.get("data",!0),l=_a(s)?il:hi,i=[];var f=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},h=Lt(f.seriesLayoutBy,d.seriesLayoutBy)||null,v=Lt(f.sourceHeader,d.sourceHeader),p=Lt(f.dimensions,d.dimensions),g=h!==d.seriesLayoutBy||!!v!=!!d.sourceHeader||p;a=g?[v2(s,{seriesLayoutBy:h,sourceHeader:v,dimensions:p},l)]:[]}else{var m=t;if(r){var b=this._applyTransform(n);a=b.sourceList,i=b.upstreamSignList}else{var _=m.get("source",!0);a=[v2(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},e.prototype._applyTransform=function(t){var n=this._sourceHost,r=n.get("transform",!0),a=n.get("fromTransformResult",!0);if(a!=null){var i="";t.length!==1&&dO(i)}var o,s=[],l=[];return F(t,function(u){u.prepareSource();var c=u.getSource(a||0),f="";a!=null&&!c&&dO(f),s.push(c),l.push(u._getVersionSign())}),r?o=cOe(r,s,{datasetIndex:n.componentIndex}):a!=null&&(o=[KRe(s[0])]),{sourceList:o,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),n=0;n<t.length;n++){var r=t[n];if(r._isDirty()||this._upstreamSignList[n]!==r._getVersionSign())return!0}},e.prototype.getSource=function(t){t=t||0;var n=this._sourceList[t];if(!n){var r=this._getUpstreamSourceManagers();return r[0]&&r[0].getSource(t)}return n},e.prototype.getSharedDataStore=function(t){var n=t.makeStoreSchema();return this._innerGetDataStore(n.dimensions,t.source,n.hash)},e.prototype._innerGetDataStore=function(t,n,r){var a=0,i=this._storeList,o=i[a];o||(o=i[a]={});var s=o[r];if(!s){var l=this._getUpstreamSourceManagers()[0];bm(this._sourceHost)&&l?s=l._innerGetDataStore(t,n,r):(s=new p2,s.initData(new gW(n,t.length),t)),o[r]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(bm(t)){var n=iA(t);return n?[n.getSourceManager()]:[]}else return Oe(mRe(t),function(r){return r.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,n,r,a;if(bm(t))n=t.get("seriesLayoutBy",!0),r=t.get("sourceHeader",!0),a=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=t;n=i.get("seriesLayoutBy",!0),r=i.get("sourceHeader",!0),a=i.get("dimensions",!0)}return{seriesLayoutBy:n,sourceHeader:r,dimensions:a}},e}();function fO(e){var t=e.option.transform;t&&up(e.option.transform)}function bm(e){return e.mainType==="series"}function dO(e){throw new Error(e)}var kW="line-height:1";function AW(e,t){var n=e.color||"#6e7079",r=e.fontSize||12,a=e.fontWeight||"400",i=e.color||"#464646",o=e.fontSize||14,s=e.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+Ur(r+"")+"px;color:"+Ur(n)+";font-weight:"+Ur(a+""),valueStyle:"font-size:"+Ur(o+"")+"px;color:"+Ur(i)+";font-weight:"+Ur(s+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:a},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var gOe=[0,10,20,30],mOe=["",`
  86. `,`
  87. `,`
  88. `];function ur(e,t){return t.type=e,t}function g2(e){return e.type==="section"}function EW(e){return g2(e)?yOe:bOe}function IW(e){if(g2(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return F(e.blocks,function(a){var i=IW(a);i>=t&&(t=i+ +(r&&(!i||g2(a)&&!a.noHeader)))}),t}return 0}function yOe(e,t,n,r){var a=t.noHeader,i=_Oe(IW(t)),o=[],s=t.blocks||[];Nr(!s||Re(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(nt(u,l)){var c=new SW(u[l],null);s.sort(function(v,p){return c.evaluate(v.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}F(s,function(v,p){var g=t.valueFormatter,m=EW(v)(g?Ie(Ie({},e),{valueFormatter:g}):e,v,p>0?i.html:0,r);m!=null&&o.push(m)});var f=e.renderMode==="richText"?o.join(i.richText):m2(o.join(""),a?n:i.html);if(a)return f;var d=f2(t.header,"ordinal",e.useUTC),h=AW(r,e.renderMode).nameStyle;return e.renderMode==="richText"?DW(e,d,h)+i.richText+f:m2('<div style="'+h+";"+kW+';">'+Ur(d)+"</div>"+f,n)}function bOe(e,t,n,r){var a=e.renderMode,i=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(w){return w=Re(w)?w:[w],Oe(w,function(C,S){return f2(C,Re(h)?h[S]:h,u)})};if(!(i&&o)){var f=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",a),d=i?"":f2(l,"ordinal",u),h=t.valueType,v=o?[]:c(t.value),p=!s||!i,g=!s&&i,m=AW(r,a),b=m.nameStyle,_=m.valueStyle;return a==="richText"?(s?"":f)+(i?"":DW(e,d,b))+(o?"":COe(e,v,p,g,_)):m2((s?"":f)+(i?"":wOe(d,!s,b))+(o?"":SOe(v,p,g,_)),n)}}function hO(e,t,n,r,a,i){if(e){var o=EW(e),s={useUTC:a,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,i)}}function _Oe(e){return{html:gOe[e],richText:mOe[e]}}function m2(e,t){var n='<div style="clear:both"></div>',r="margin: "+t+"px 0 0";return'<div style="'+r+";"+kW+';">'+e+n+"</div>"}function wOe(e,t,n){var r=t?"margin-left:2px":"";return'<span style="'+n+";"+r+'">'+Ur(e)+"</span>"}function SOe(e,t,n,r){var a=n?"10px":"20px",i=t?"float:right;margin-left:"+a:"";return e=Re(e)?e:[e],'<span style="'+i+";"+r+'">'+Oe(e,function(o){return Ur(o)}).join("&nbsp;&nbsp;")+"</span>"}function DW(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function COe(e,t,n,r,a){var i=[a],o=r?10:20;return n&&i.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(Re(t)?t.join(" "):t,i)}function PW(e,t){var n=e.getData().getItemVisual(t,"style"),r=n[e.visualDrawType];return hc(r)}function LW(e,t){var n=e.get("padding");return n??(t==="richText"?[8,10]:10)}var Aw=function(){function e(){this.richTextStyles={},this._nextStyleNameId=LH()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,n,r){var a=r==="richText"?this._generateStyleName():null,i=JG({color:n,type:t,renderMode:r,markerId:a});return Je(i)?i:(this.richTextStyles[a]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(t,n){var r={};Re(n)?F(n,function(i){return Ie(r,i)}):Ie(r,n);var a=this._generateStyleName();return this.richTextStyles[a]=r,"{"+a+"|"+t+"}"},e}();function RW(e){var t=e.series,n=e.dataIndex,r=e.multipleSeries,a=t.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=t.getRawValue(n),l=Re(s),u=PW(t,n),c,f,d,h;if(o>1||l&&!o){var v=xOe(s,t,n,i,u);c=v.inlineValues,f=v.inlineValueTypes,d=v.blocks,h=v.inlineValues[0]}else if(o){var p=a.getDimensionInfo(i[0]);h=c=dd(a,n,i[0]),f=p.type}else h=c=l?s[0]:s;var g=Lk(t),m=g&&t.name||"",b=a.getName(n),_=r?m:b;return ur("section",{header:m,noHeader:r||!g,sortParam:h,blocks:[ur("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Za(_),value:c,valueType:f})].concat(d||[])})}function xOe(e,t,n,r,a){var i=t.getData(),o=ui(e,function(f,d,h){var v=i.getDimensionInfo(h);return f=f||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],u=[];r.length?F(r,function(f){c(dd(i,n,f),f)}):F(e,c);function c(f,d){var h=i.getDimensionInfo(d);!h||h.otherDims.tooltip===!1||(o?u.push(ur("nameValue",{markerType:"subItem",markerColor:a,name:h.displayName,value:f,valueType:h.type})):(s.push(f),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var xs=en();function _m(e,t){return e.getName(t)||e.getId(t)}var Wy="__universalTransitionEnabled",V1=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n._selectedDataIndicesMap={},n}return t.prototype.init=function(n,r,a){this.seriesIndex=this.componentIndex,this.dataTask=Sv({count:MOe,reset:kOe}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(n,a);var i=xs(this).sourceManager=new MW(this);i.prepareSource();var o=this.getInitialData(n,a);pO(o,this),this.dataTask.context.data=o,xs(this).dataBeforeProcessed=o,vO(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(n,r){var a=Tp(this),i=a?Bd(n):{},o=this.subType;Yt.hasClass(o)&&(o+="Series"),Dt(n,r.getTheme().get(this.subType)),Dt(n,this.getDefaultOption()),uc(n,"label",["show"]),this.fillDataTextStyle(n.data),a&&yl(n,i,a)},t.prototype.mergeOption=function(n,r){n=Dt(this.option,n,!0),this.fillDataTextStyle(n.data);var a=Tp(this);a&&yl(this.option,n,a);var i=xs(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(n,r);pO(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,xs(this).dataBeforeProcessed=o,vO(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(n){if(n&&!_a(n))for(var r=["show"],a=0;a<n.length;a++)n[a]&&n[a].label&&uc(n[a],"label",r)},t.prototype.getInitialData=function(n,r){},t.prototype.appendData=function(n){var r=this.getRawData();r.appendData(n.data)},t.prototype.getData=function(n){var r=y2(this);if(r){var a=r.context.data;return n==null?a:a.getLinkedData(n)}else return xs(this).data},t.prototype.getAllData=function(){var n=this.getData();return n&&n.getLinkedDataAll?n.getLinkedDataAll():[{data:n}]},t.prototype.setData=function(n){var r=y2(this);if(r){var a=r.context;a.outputData=n,r!==this.dataTask&&(a.data=n)}xs(this).data=n},t.prototype.getEncode=function(){var n=this.get("encode",!0);if(n)return ot(n)},t.prototype.getSourceManager=function(){return xs(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return xs(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var n=this.get("colorBy");return n||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var n=this.coordinateSystem;return n&&n.getBaseAxis&&n.getBaseAxis()},t.prototype.formatTooltip=function(n,r,a){return RW({series:this,dataIndex:n,multipleSeries:r})},t.prototype.isAnimationEnabled=function(){var n=this.ecModel;if(Jt.node&&!(n&&n.ssr))return!1;var r=this.getShallow("animation");return r&&this.getData().count()>this.getShallow("animationThreshold")&&(r=!1),!!r},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(n,r,a){var i=this.ecModel,o=oA.prototype.getColorFromPalette.call(this,n,r,a);return o||(o=i.getColorFromPalette(n,r,a)),o},t.prototype.coordDimToDataDim=function(n){return this.getRawData().mapDimensionsAll(n)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(n,r){this._innerSelect(this.getData(r),n)},t.prototype.unselect=function(n,r){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(r);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<n.length;s++){var l=n[s],u=_m(o,l);a[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(n,r){for(var a=[],i=0;i<n.length;i++)a[0]=n[i],this.isSelected(n[i],r)?this.unselect(a,r):this.select(a,r)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var n=this._selectedDataIndicesMap,r=Gt(n),a=[],i=0;i<r.length;i++){var o=n[r[i]];o>=0&&a.push(o)}return a},t.prototype.isSelected=function(n,r){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(r);return(a==="all"||a[_m(i,n)])&&!i.getItemModel(n).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Wy])return!0;var n=this.option.universalTransition;return n?n===!0?!0:n&&n.enabled:!1},t.prototype._innerSelect=function(n,r){var a,i,o=this.option,s=o.selectedMode,l=r.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){ht(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c<l;c++){var f=r[c],d=_m(n,f);u[d]=!0,this._selectedDataIndicesMap[d]=n.getRawIndex(f)}}else if(s==="single"||s===!0){var h=r[l-1],d=_m(n,h);o.selectedMap=(a={},a[d]=!0,a),this._selectedDataIndicesMap=(i={},i[d]=n.getRawIndex(h),i)}}},t.prototype._initSelectedMapFromData=function(n){if(!this.option.selectedMap){var r=[];n.hasItemOption&&n.each(function(a){var i=n.getRawDataItem(a);i&&i.selected&&r.push(a)}),r.length>0&&this._innerSelect(n,r)}},t.registerClass=function(n){return Yt.registerClass(n)},t.protoInitialize=function(){var n=t.prototype;n.type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",n.visualDrawType="fill"}(),t}(Yt);Vn(V1,cA);Vn(V1,oA);HH(V1,Yt);function vO(e){var t=e.name;Lk(e)||(e.name=TOe(e)||t)}function TOe(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),r=[];return F(n,function(a){var i=t.getDimensionInfo(a);i.displayName&&r.push(i.displayName)}),r.join(" ")}function MOe(e){return e.model.getRawData().count()}function kOe(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),AOe}function AOe(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function pO(e,t){F(cp(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,xt(EOe,t))})}function EOe(e,t){var n=y2(e);return n&&n.setOutputEnd((t||this).count()),t}function y2(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var a=r.agentStubMap;a&&(r=a.get(e.uid))}return r}}const _n=V1;var dA=function(){function e(){this.group=new bt,this.uid=Nd("viewComponent")}return e.prototype.init=function(t,n){},e.prototype.render=function(t,n,r,a){},e.prototype.dispose=function(t,n){},e.prototype.updateView=function(t,n,r,a){},e.prototype.updateLayout=function(t,n,r,a){},e.prototype.updateVisual=function(t,n,r,a){},e.prototype.toggleBlurSeries=function(t,n,r){},e.prototype.eachRendered=function(t){var n=this.group;n&&n.traverse(t)},e}();Ok(dA);_1(dA);const An=dA;function Hd(){var e=en();return function(t){var n=e(t),r=t.pipelineContext,a=!!n.large,i=!!n.progressiveRender,o=n.large=!!(r&&r.large),s=n.progressiveRender=!!(r&&r.progressiveRender);return(a!==o||i!==s)&&"reset"}}var OW=en(),IOe=Hd(),hA=function(){function e(){this.group=new bt,this.uid=Nd("viewChart"),this.renderTask=Sv({plan:DOe,reset:POe}),this.renderTask.context={view:this}}return e.prototype.init=function(t,n){},e.prototype.render=function(t,n,r,a){},e.prototype.highlight=function(t,n,r,a){var i=t.getData(a&&a.dataType);i&&mO(i,a,"emphasis")},e.prototype.downplay=function(t,n,r,a){var i=t.getData(a&&a.dataType);i&&mO(i,a,"normal")},e.prototype.remove=function(t,n){this.group.removeAll()},e.prototype.dispose=function(t,n){},e.prototype.updateView=function(t,n,r,a){this.render(t,n,r,a)},e.prototype.updateLayout=function(t,n,r,a){this.render(t,n,r,a)},e.prototype.updateVisual=function(t,n,r,a){this.render(t,n,r,a)},e.prototype.eachRendered=function(t){Ll(this.group,t)},e.markUpdateMethod=function(t,n){OW(t).updateMethod=n},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function gO(e,t,n){e&&wp(e)&&(t==="emphasis"?rs:as)(e,n)}function mO(e,t,n){var r=cc(e,t),a=t&&t.highlightKey!=null?iLe(t.highlightKey):null;r!=null?F(hn(r),function(i){gO(e.getItemGraphicEl(i),n,a)}):e.eachItemGraphicEl(function(i){gO(i,n,a)})}Ok(hA);_1(hA);function DOe(e){return IOe(e.model)}function POe(e){var t=e.model,n=e.ecModel,r=e.api,a=e.payload,i=t.pipelineContext.progressiveRender,o=e.view,s=a&&OW(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,n,r,a),LOe[l]}var LOe={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 vn=hA;var H0="\0__throttleOriginMethod",yO="\0__throttleRate",bO="\0__throttleType";function z1(e,t,n){var r,a=0,i=0,o=null,s,l,u,c;t=t||0;function f(){i=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];r=new Date().getTime(),l=this,u=h;var p=c||t,g=c||n;c=null,s=r-(g?a:i)-p,clearTimeout(o),g?o=setTimeout(f,p):s>=0?f():o=setTimeout(f,-s),a=r};return d.clear=function(){o&&(clearTimeout(o),o=null)},d.debounceNextCall=function(h){c=h},d}function Gd(e,t,n,r){var a=e[t];if(a){var i=a[H0]||a,o=a[bO],s=a[yO];if(s!==n||o!==r){if(n==null||!r)return e[t]=i;a=e[t]=z1(i,n,r==="debounce"),a[H0]=i,a[bO]=r,a[yO]=n}return a}}function kp(e,t){var n=e[t];n&&n[H0]&&(n.clear&&n.clear(),e[t]=n[H0])}var _O=en(),wO={itemStyle:fc(HG,!0),lineStyle:fc(FG,!0)},ROe={lineStyle:"stroke",itemStyle:"fill"};function $W(e,t){var n=e.visualStyleMapper||wO[t];return n||(console.warn("Unknown style type '"+t+"'."),wO.itemStyle)}function NW(e,t){var n=e.visualDrawType||ROe[t];return n||(console.warn("Unknown style type '"+t+"'."),"fill")}var OOe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",a=e.getModel(r),i=$W(e,r),o=i(a),s=a.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=NW(e,r),u=o[l],c=ut(u)?u:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||f){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[l]||(o[l]=d,n.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||ut(o.fill)?d:o.fill,o.stroke=o.stroke==="auto"||ut(o.stroke)?d:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",l),!t.isSeriesFiltered(e)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(h,v){var p=e.getDataParams(v),g=Ie({},o);g[l]=c(p),h.setItemVisual(v,"style",g)}}}},gh=new dn,$Oe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",a=$W(e,r),i=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[r]){gh.option=l[r];var u=a(gh),c=o.ensureUniqueItemVisual(s,"style");Ie(c,u),gh.option.decal&&(o.setItemVisual(s,"decal",gh.option.decal),gh.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},NOe={performRawSeries:!0,overallReset:function(e){var t=ot();e.eachSeries(function(n){var r=n.getColorBy();if(!n.isColorBySeries()){var a=n.type+"-"+r,i=t.get(a);i||(i={},t.set(a,i)),_O(n).scope=i}}),e.eachSeries(function(n){if(!(n.isColorBySeries()||e.isSeriesFiltered(n))){var r=n.getRawData(),a={},i=n.getData(),o=_O(n).scope,s=n.visualStyleAccessPath||"itemStyle",l=NW(n,s);i.each(function(u){var c=i.getRawIndex(u);a[c]=u}),r.each(function(u){var c=a[u],f=i.getItemVisual(c,"colorFromPalette");if(f){var d=i.ensureUniqueItemVisual(c,"style"),h=r.getName(u)||u+"",v=r.count();d[l]=n.getColorFromPalette(h,o,v)}})}})}},wm=Math.PI;function BOe(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 n=new bt,r=new Zt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var a=new Xt({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),i=new Zt({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});n.add(i);var o;return t.showSpinner&&(o=new k1({shape:{startAngle:-wm/2,endAngle:-wm/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:wm*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:wm*3/2}).delay(300).start("circularInOut"),n.add(o)),n.resize=function(){var s=a.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),c=e.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:c}),i.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var VOe=function(){function e(t,n,r,a){this._stageTaskMap=ot(),this.ecInstance=t,this.api=n,r=this._dataProcessorHandlers=r.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=r.concat(a)}return e.prototype.restoreData=function(t,n){t.restoreData(n),this._stageTaskMap.each(function(r){var a=r.overallTask;a&&a.dirty()})},e.prototype.getPerformArgs=function(t,n){if(t.__pipeline){var r=this._pipelineMap.get(t.__pipeline.id),a=r.context,i=!n&&r.progressiveEnabled&&(!a||a.progressiveRender)&&t.__idxInPipeline>r.blockIndex,o=i?r.step:null,s=a&&a.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,n){var r=this._pipelineMap.get(t.uid),a=t.getData(),i=a.count(),o=r.progressiveEnabled&&n.incrementalPrepareRender&&i>=r.threshold,s=t.get("large")&&i>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?i:null;t.pipelineContext=r.context={progressiveRender:o,modDataCount:l,large:s}},e.prototype.restorePipelines=function(t){var n=this,r=n._pipelineMap=ot();t.eachSeries(function(a){var i=a.getProgressive(),o=a.uid;r.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),n._pipe(a,a.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,n=this.api.getModel(),r=this.api;F(this._allHandlers,function(a){var i=t.get(a.uid)||t.set(a.uid,{}),o="";Nr(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,n,r),a.overallReset&&this._createOverallStageTask(a,i,n,r)},this)},e.prototype.prepareView=function(t,n,r,a){var i=t.renderTask,o=i.context;o.model=n,o.ecModel=r,o.api=a,i.__block=!t.incrementalPrepareRender,this._pipe(n,i)},e.prototype.performDataProcessorTasks=function(t,n){this._performStageTasks(this._dataProcessorHandlers,t,n,{block:!0})},e.prototype.performVisualTasks=function(t,n,r){this._performStageTasks(this._visualHandlers,t,n,r)},e.prototype._performStageTasks=function(t,n,r,a){a=a||{};var i=!1,o=this;F(t,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),f=c.seriesTaskMap,d=c.overallTask;if(d){var h,v=d.agentStubMap;v.each(function(g){s(a,g)&&(g.dirty(),h=!0)}),h&&d.dirty(),o.updatePayload(d,r);var p=o.getPerformArgs(d,a.block);v.each(function(g){g.perform(p)}),d.perform(p)&&(i=!0)}else f&&f.each(function(g,m){s(a,g)&&g.dirty();var b=o.getPerformArgs(g,a.block);b.skip=!l.performRawSeries&&n.isSeriesFiltered(g.context.model),o.updatePayload(g,r),g.perform(b)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(t){var n;t.eachSeries(function(r){n=r.dataTask.perform()||n}),this.unfinished=n||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var n=t.tail;do{if(n.__block){t.blockIndex=n.__idxInPipeline;break}n=n.getUpstream()}while(n)})},e.prototype.updatePayload=function(t,n){n!=="remain"&&(t.context.payload=n)},e.prototype._createSeriesStageTask=function(t,n,r,a){var i=this,o=n.seriesTaskMap,s=n.seriesTaskMap=ot(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?r.eachRawSeries(c):l?r.eachRawSeriesByType(l,c):u&&u(r,a).each(c);function c(f){var d=f.uid,h=s.set(d,o&&o.get(d)||Sv({plan:WOe,reset:KOe,count:YOe}));h.context={model:f,ecModel:r,api:a,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(f,h)}},e.prototype._createOverallStageTask=function(t,n,r,a){var i=this,o=n.overallTask=n.overallTask||Sv({reset:zOe});o.context={ecModel:r,api:a,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=ot(),u=t.seriesType,c=t.getTargetSeries,f=!0,d=!1,h="";Nr(!t.createOnAllSeries,h),u?r.eachRawSeriesByType(u,v):c?c(r,a).each(v):(f=!1,F(r.getSeries(),v));function v(p){var g=p.uid,m=l.set(g,s&&s.get(g)||(d=!0,Sv({reset:FOe,onDirty:GOe})));m.context={model:p,overallProgress:f},m.agent=o,m.__block=f,i._pipe(p,m)}d&&o.dirty()},e.prototype._pipe=function(t,n){var r=t.uid,a=this._pipelineMap.get(r);!a.head&&(a.head=n),a.tail&&a.tail.pipe(n),a.tail=n,n.__idxInPipeline=a.count++,n.__pipeline=a},e.wrapStageHandler=function(t,n){return ut(t)&&(t={overallReset:t,seriesType:jOe(t)}),t.uid=Nd("stageHandler"),n&&(t.visualType=n),t},e}();function zOe(e){e.overallReset(e.ecModel,e.api,e.payload)}function FOe(e){return e.overallProgress&&HOe}function HOe(){this.agent.dirty(),this.getDownstream().dirty()}function GOe(){this.agent&&this.agent.dirty()}function WOe(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function KOe(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=hn(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Oe(t,function(n,r){return BW(r)}):UOe}var UOe=BW(0);function BW(e){return function(t,n){var r=n.data,a=n.resetDefines[e];if(a&&a.dataEach)for(var i=t.start;i<t.end;i++)a.dataEach(r,i);else a&&a.progress&&a.progress(t,r)}}function YOe(e){return e.data.count()}function jOe(e){G0=null;try{e(Ap,VW)}catch{}return G0}var Ap={},VW={},G0;zW(Ap,cW);zW(VW,fW);Ap.eachSeriesByType=Ap.eachRawSeriesByType=function(e){G0=e};Ap.eachComponent=function(e){e.mainType==="series"&&e.subType&&(G0=e.subType)};function zW(e,t){for(var n in t.prototype)e[n]=Nn}const FW=VOe;var SO=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const qOe={color:SO,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],SO]};var Hr="#B9B8CE",CO="#100C2A",Sm=function(){return{axisLine:{lineStyle:{color:Hr}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},xO=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],HW={darkMode:!0,color:xO,backgroundColor:CO,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Hr}},textStyle:{color:Hr},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Hr}},dataZoom:{borderColor:"#71708A",textStyle:{color:Hr},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:Hr}},timeline:{lineStyle:{color:Hr},label:{color:Hr},controlStyle:{color:Hr,borderColor:Hr}},calendar:{itemStyle:{color:CO},dayLabel:{color:Hr},monthLabel:{color:Hr},yearLabel:{color:Hr}},timeAxis:Sm(),logAxis:Sm(),valueAxis:Sm(),categoryAxis:Sm(),line:{symbol:"circle"},graph:{color:xO},gauge:{title:{color:Hr},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Hr},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};HW.categoryAxis.splitLine.show=!1;const XOe=HW;var ZOe=function(){function e(){}return e.prototype.normalizeQuery=function(t){var n={},r={},a={};if(Je(t)){var i=co(t);n.mainType=i.main||null,n.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};F(t,function(l,u){for(var c=!1,f=0;f<o.length;f++){var d=o[f],h=u.lastIndexOf(d);if(h>0&&h===u.length-d.length){var v=u.slice(0,h);v!=="data"&&(n.mainType=v,n[d.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(r[u]=l,c=!0),c||(a[u]=l)})}return{cptQuery:n,dataQuery:r,otherQuery:a}},e.prototype.filter=function(t,n){var r=this.eventInfo;if(!r)return!0;var a=r.targetEl,i=r.packedEvent,o=r.model,s=r.view;if(!o||!s)return!0;var l=n.cptQuery,u=n.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,i,"name")&&c(u,i,"dataIndex")&&c(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,n.otherQuery,a,i));function c(f,d,h,v){return f[h]==null||d[v||h]===f[h]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),b2=["symbol","symbolSize","symbolRotate","symbolOffset"],TO=b2.concat(["symbolKeepAspect"]),JOe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var r={},a={},i=!1,o=0;o<b2.length;o++){var s=b2[o],l=e.get(s);ut(l)?(i=!0,a[s]=l):r[s]=l}if(r.symbol=r.symbol||e.defaultSymbol,n.setVisual(Ie({legendIcon:e.legendIcon||r.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},r)),t.isSeriesFiltered(e))return;var u=Gt(a);function c(f,d){for(var h=e.getRawValue(d),v=e.getDataParams(d),p=0;p<u.length;p++){var g=u[p];f.setItemVisual(d,g,a[g](h,v))}}return{dataEach:i?c:null}}},QOe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var n=e.getData();function r(a,i){for(var o=a.getItemModel(i),s=0;s<TO.length;s++){var l=TO[s],u=o.getShallow(l,!0);u!=null&&a.setItemVisual(i,l,u)}}return{dataEach:n.hasItemOption?r:null}}};function vA(e,t,n){switch(n){case"color":var r=e.getItemVisual(t,"style");return r[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,n)}}function yg(e,t){switch(t){case"color":var n=e.getVisual("style");return n[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t)}}function GW(e,t,n,r){switch(n){case"color":var a=e.ensureUniqueItemVisual(t,"style");a[e.getVisual("drawType")]=r,e.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":e.ensureUniqueItemVisual(t,"style").opacity=r;break;case"symbol":case"symbolSize":case"liftZ":e.setItemVisual(t,n,r);break}}function WW(e,t){function n(r,a){var i=[];return r.eachComponent({mainType:"series",subType:e,query:a},function(o){i.push(o.seriesIndex)}),i}F([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],function(r){t(r[0],function(a,i,o){a=Ie({},a),o.dispatchAction(Ie(a,{type:r[1],seriesIndex:n(i,a)}))})})}function Uc(e,t,n,r,a){var i=e+t;n.isSilent(i)||r.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=a.selected,c=0;c<u.length;c++)if(u[c].seriesIndex===s){var f=o.getData(),d=cc(f,a.fromActionPayload);n.trigger(i,{type:i,seriesId:o.id,name:Re(d)?f.getName(d[0]):f.getName(d),selected:Je(l)?l:Ie({},l)})}})}function e$e(e,t,n){e.on("selectchanged",function(r){var a=n.getModel();r.isFromClick?(Uc("map","selectchanged",t,a,r),Uc("pie","selectchanged",t,a,r)):r.fromAction==="select"?(Uc("map","selected",t,a,r),Uc("pie","selected",t,a,r)):r.fromAction==="unselect"&&(Uc("map","unselected",t,a,r),Uc("pie","unselected",t,a,r))})}function zu(e,t,n){for(var r;e&&!(t(e)&&(r=e,n));)e=e.__hostTarget||e.parent;return r}var t$e=Math.round(Math.random()*9),n$e=typeof Object.defineProperty=="function",r$e=function(){function e(){this._id="__ec_inner_"+t$e++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,n){var r=this._guard(t);return n$e?Object.defineProperty(r,this._id,{value:n,enumerable:!1,configurable:!0}):r[this._id]=n,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 a$e=r$e;var i$e=zt.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,a=t.width/2,i=t.height/2;e.moveTo(n,r-i),e.lineTo(n+a,r+i),e.lineTo(n-a,r+i),e.closePath()}}),o$e=zt.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,a=t.width/2,i=t.height/2;e.moveTo(n,r-i),e.lineTo(n+a,r),e.lineTo(n,r+i),e.lineTo(n-a,r),e.closePath()}}),s$e=zt.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,r=t.y,a=t.width/5*3,i=Math.max(a,t.height),o=a/2,s=o*o/(i-o),l=r-i+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,f=Math.sin(u),d=Math.cos(u),h=o*.6,v=o*.7;e.moveTo(n-c,l+s),e.arc(n,l,o,Math.PI-u,Math.PI*2+u),e.bezierCurveTo(n+c-f*h,l+s+d*h,n,r-v,n,r),e.bezierCurveTo(n,r-v,n-c+f*h,l+s+d*h,n-c,l+s),e.closePath()}}),l$e=zt.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,r=t.width,a=t.x,i=t.y,o=r/3*2;e.moveTo(a,i),e.lineTo(a+o,i+n),e.lineTo(a,i+n/4*3),e.lineTo(a-o,i+n),e.lineTo(a,i),e.closePath()}}),u$e={line:ar,rect:Zt,roundRect:Zt,square:Zt,circle:Hi,diamond:o$e,pin:s$e,arrow:l$e,triangle:i$e},c$e={line:function(e,t,n,r,a){a.x1=e,a.y1=t+r/2,a.x2=e+n,a.y2=t+r/2},rect:function(e,t,n,r,a){a.x=e,a.y=t,a.width=n,a.height=r},roundRect:function(e,t,n,r,a){a.x=e,a.y=t,a.width=n,a.height=r,a.r=Math.min(n,r)/4},square:function(e,t,n,r,a){var i=Math.min(n,r);a.x=e,a.y=t,a.width=i,a.height=i},circle:function(e,t,n,r,a){a.cx=e+n/2,a.cy=t+r/2,a.r=Math.min(n,r)/2},diamond:function(e,t,n,r,a){a.cx=e+n/2,a.cy=t+r/2,a.width=n,a.height=r},pin:function(e,t,n,r,a){a.x=e+n/2,a.y=t+r/2,a.width=n,a.height=r},arrow:function(e,t,n,r,a){a.x=e+n/2,a.y=t+r/2,a.width=n,a.height=r},triangle:function(e,t,n,r,a){a.cx=e+n/2,a.cy=t+r/2,a.width=n,a.height=r}},W0={};F(u$e,function(e,t){W0[t]=new e});var f$e=zt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=L0(e,t,n),a=this.shape;return a&&a.symbolType==="pin"&&t.position==="inside"&&(r.y=n.y+n.height*.4),r},buildPath:function(e,t,n){var r=t.symbolType;if(r!=="none"){var a=W0[r];a||(r="rect",a=W0[r]),c$e[r](t.x,t.y,t.width,t.height,a.shape),a.buildPath(e,a.shape,n)}}});function d$e(e,t){if(this.type!=="image"){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||"#fff",n.lineWidth=2):this.shape.symbolType==="line"?n.stroke=e:n.fill=e,this.markRedraw()}}function Hn(e,t,n,r,a,i,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=Kk(e.slice(8),new Rt(t,n,r,a),o?"center":"cover"):e.indexOf("path://")===0?l=vg(e.slice(7),{},new Rt(t,n,r,a),o?"center":"cover"):l=new f$e({shape:{symbolType:e,x:t,y:n,width:r,height:a}}),l.__isEmptyBrush=s,l.setColor=d$e,i&&l.setColor(i),l}function Wd(e){return Re(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function kc(e,t){if(e!=null)return Re(e)||(e=[e,e]),[qe(e[0],t[0])||0,qe(Lt(e[1],e[0]),t[1])||0]}function Fu(e){return isFinite(e)}function h$e(e,t,n){var r=t.x==null?0:t.x,a=t.x2==null?1:t.x2,i=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(r=r*n.width+n.x,a=a*n.width+n.x,i=i*n.height+n.y,o=o*n.height+n.y),r=Fu(r)?r:0,a=Fu(a)?a:1,i=Fu(i)?i:0,o=Fu(o)?o:0;var s=e.createLinearGradient(r,i,a,o);return s}function v$e(e,t,n){var r=n.width,a=n.height,i=Math.min(r,a),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*r+n.x,s=s*a+n.y,l=l*i),o=Fu(o)?o:.5,s=Fu(s)?s:.5,l=l>=0&&Fu(l)?l:.5;var u=e.createRadialGradient(o,s,0,o,s,l);return u}function _2(e,t,n){for(var r=t.type==="radial"?v$e(e,t,n):h$e(e,t,n),a=t.colorStops,i=0;i<a.length;i++)r.addColorStop(a[i].offset,a[i].color);return r}function p$e(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}function Cm(e){return parseInt(e,10)}function wf(e,t,n){var r=["width","height"][t],a=["clientWidth","clientHeight"][t],i=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(n[r]!=null&&n[r]!=="auto")return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(e);return(e[a]||Cm(s[r])||Cm(e.style[r]))-(Cm(s[i])||0)-(Cm(s[o])||0)|0}function g$e(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:Qt(e)?[e]:Re(e)?e:null}function pA(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&g$e(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var a=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;a&&a!==1&&(n=Oe(n,function(i){return i/a}),r/=a)}return[n,r]}var m$e=new To(!0);function K0(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function MO(e){return typeof e=="string"&&e!=="none"}function U0(e){var t=e.fill;return t!=null&&t!=="none"}function kO(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function AO(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function w2(e,t,n){var r=$k(t.image,t.__image,n);if(w1(r)){var a=e.createPattern(r,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var i=new DOMMatrix;i.translateSelf(t.x||0,t.y||0),i.rotateSelf(0,0,(t.rotation||0)*fv),i.scaleSelf(t.scaleX||1,t.scaleY||1),a.setTransform(i)}return a}}function y$e(e,t,n,r){var a,i=K0(n),o=U0(n),s=n.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||m$e,f=t.__dirty;if(!r){var d=n.fill,h=n.stroke,v=o&&!!d.colorStops,p=i&&!!h.colorStops,g=o&&!!d.image,m=i&&!!h.image,b=void 0,_=void 0,w=void 0,C=void 0,S=void 0;(v||p)&&(S=t.getBoundingRect()),v&&(b=f?_2(e,d,S):t.__canvasFillGradient,t.__canvasFillGradient=b),p&&(_=f?_2(e,h,S):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),g&&(w=f||!t.__canvasFillPattern?w2(e,d,t):t.__canvasFillPattern,t.__canvasFillPattern=w),m&&(C=f||!t.__canvasStrokePattern?w2(e,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=w),v?e.fillStyle=b:g&&(w?e.fillStyle=w:o=!1),p?e.strokeStyle=_:m&&(C?e.strokeStyle=C:i=!1)}var x=t.getGlobalScale();c.setScale(x[0],x[1],t.segmentIgnoreThreshold);var T,M;e.setLineDash&&n.lineDash&&(a=pA(t),T=a[0],M=a[1]);var A=!0;(u||f&cf)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),A=!1),c.reset(),t.buildPath(c,t.shape,r),c.toStatic(),t.pathUpdated()),A&&c.rebuildPath(e,l?s:1),T&&(e.setLineDash(T),e.lineDashOffset=M),r||(n.strokeFirst?(i&&AO(e,n),o&&kO(e,n)):(o&&kO(e,n),i&&AO(e,n))),T&&e.setLineDash([])}function b$e(e,t,n){var r=t.__image=$k(n.image,t.__image,t,t.onload);if(!(!r||!w1(r))){var a=n.x||0,i=n.y||0,o=t.getWidth(),s=t.getHeight(),l=r.width/r.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=r.width,s=r.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;e.drawImage(r,u,c,n.sWidth,n.sHeight,a,i,o,s)}else if(n.sx&&n.sy){var u=n.sx,c=n.sy,f=o-u,d=s-c;e.drawImage(r,u,c,f,d,a,i,o,s)}else e.drawImage(r,a,i,o,s)}}function _$e(e,t,n){var r,a=n.text;if(a!=null&&(a+=""),a){e.font=n.font||pl,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var i=void 0,o=void 0;e.setLineDash&&n.lineDash&&(r=pA(t),i=r[0],o=r[1]),i&&(e.setLineDash(i),e.lineDashOffset=o),n.strokeFirst?(K0(n)&&e.strokeText(a,n.x,n.y),U0(n)&&e.fillText(a,n.x,n.y)):(U0(n)&&e.fillText(a,n.x,n.y),K0(n)&&e.strokeText(a,n.x,n.y)),i&&e.setLineDash([])}}var EO=["shadowBlur","shadowOffsetX","shadowOffsetY"],IO=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function KW(e,t,n,r,a){var i=!1;if(!r&&(n=n||{},t===n))return!1;if(r||t.opacity!==n.opacity){va(e,a),i=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?Xu.opacity:o}(r||t.blend!==n.blend)&&(i||(va(e,a),i=!0),e.globalCompositeOperation=t.blend||Xu.blend);for(var s=0;s<EO.length;s++){var l=EO[s];(r||t[l]!==n[l])&&(i||(va(e,a),i=!0),e[l]=e.dpr*(t[l]||0))}return(r||t.shadowColor!==n.shadowColor)&&(i||(va(e,a),i=!0),e.shadowColor=t.shadowColor||Xu.shadowColor),i}function DO(e,t,n,r,a){var i=Ep(t,a.inHover),o=r?null:n&&Ep(n,a.inHover)||{};if(i===o)return!1;var s=KW(e,i,o,r,a);if((r||i.fill!==o.fill)&&(s||(va(e,a),s=!0),MO(i.fill)&&(e.fillStyle=i.fill)),(r||i.stroke!==o.stroke)&&(s||(va(e,a),s=!0),MO(i.stroke)&&(e.strokeStyle=i.stroke)),(r||i.opacity!==o.opacity)&&(s||(va(e,a),s=!0),e.globalAlpha=i.opacity==null?1:i.opacity),t.hasStroke()){var l=i.lineWidth,u=l/(i.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==u&&(s||(va(e,a),s=!0),e.lineWidth=u)}for(var c=0;c<IO.length;c++){var f=IO[c],d=f[0];(r||i[d]!==o[d])&&(s||(va(e,a),s=!0),e[d]=i[d]||f[1])}return s}function w$e(e,t,n,r,a){return KW(e,Ep(t,a.inHover),n&&Ep(n,a.inHover),r,a)}function UW(e,t){var n=t.transform,r=e.dpr||1;n?e.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):e.setTransform(r,0,0,r,0,0)}function S$e(e,t,n){for(var r=!1,a=0;a<e.length;a++){var i=e[a];r=r||i.isZeroArea(),UW(t,i),t.beginPath(),i.buildPath(t,i.shape),t.clip()}n.allClipped=r}function C$e(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 PO=1,LO=2,RO=3,OO=4;function x$e(e){var t=U0(e),n=K0(e);return!(e.lineDash||!(+t^+n)||t&&typeof e.fill!="string"||n&&typeof e.stroke!="string"||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function va(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function Ep(e,t){return t&&e.__hoverStyle||e.style}function gA(e,t){Hu(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Hu(e,t,n,r){var a=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){t.__dirty&=~Ta,t.__isRendered=!1;return}var i=t.__clipPaths,o=n.prevElClipPaths,s=!1,l=!1;if((!o||p$e(i,o))&&(o&&o.length&&(va(e,n),e.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),i&&i.length&&(va(e,n),e.save(),S$e(i,e,n),s=!0),n.prevElClipPaths=i),n.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=n.prevEl;u||(l=s=!0);var c=t instanceof zt&&t.autoBatch&&x$e(t.style);s||C$e(a,u.transform)?(va(e,n),UW(e,t)):c||va(e,n);var f=Ep(t,n.inHover);t instanceof zt?(n.lastDrawType!==PO&&(l=!0,n.lastDrawType=PO),DO(e,t,u,l,n),(!c||!n.batchFill&&!n.batchStroke)&&e.beginPath(),y$e(e,t,f,c),c&&(n.batchFill=f.fill||"",n.batchStroke=f.stroke||"")):t instanceof bp?(n.lastDrawType!==RO&&(l=!0,n.lastDrawType=RO),DO(e,t,u,l,n),_$e(e,t,f)):t instanceof vr?(n.lastDrawType!==LO&&(l=!0,n.lastDrawType=LO),w$e(e,t,u,l,n),b$e(e,t,f)):t.getTemporalDisplayables&&(n.lastDrawType!==OO&&(l=!0,n.lastDrawType=OO),T$e(e,t,n)),c&&r&&va(e,n),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}function T$e(e,t,n){var r=t.getDisplayables(),a=t.getTemporalDisplayables();e.save();var i={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover},o,s;for(o=t.getCursor(),s=r.length;o<s;o++){var l=r[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Hu(e,l,i,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}for(var u=0,c=a.length;u<c;u++){var l=a[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Hu(e,l,i,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var Ew=new a$e,$O=new lg(100),NO=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function hd(e,t){if(e==="none")return null;var n=t.getDevicePixelRatio(),r=t.getZr(),a=r.painter.type==="svg";e.dirty&&Ew.delete(e);var i=Ew.get(e);if(i)return i;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=a?1:1/n,Ew.set(e,s),e.dirty=!1,s;function l(u){for(var c=[n],f=!0,d=0;d<NO.length;++d){var h=o[NO[d]];if(h!=null&&!Re(h)&&!Je(h)&&!Qt(h)&&typeof h!="boolean"){f=!1;break}c.push(h)}var v;if(f){v=c.join(",")+(a?"-svg":"");var p=$O.get(v);p&&(a?u.svgElement=p:u.image=p)}var g=jW(o.dashArrayX),m=M$e(o.dashArrayY),b=YW(o.symbol),_=k$e(g),w=qW(m),C=!a&&Vi.createCanvas(),S=a&&{tag:"g",attrs:{},key:"dcl",children:[]},x=M(),T;C&&(C.width=x.width*n,C.height=x.height*n,T=C.getContext("2d")),A(),f&&$O.put(v,C||S),u.image=C,u.svgElement=S,u.svgWidth=x.width,u.svgHeight=x.height;function M(){for(var k=1,E=0,D=_.length;E<D;++E)k=JL(k,_[E]);for(var L=1,E=0,D=b.length;E<D;++E)L=JL(L,b[E].length);k*=L;var B=w*_.length*b.length;return{width:Math.max(1,Math.min(k,o.maxTileWidth)),height:Math.max(1,Math.min(B,o.maxTileHeight))}}function A(){T&&(T.clearRect(0,0,C.width,C.height),o.backgroundColor&&(T.fillStyle=o.backgroundColor,T.fillRect(0,0,C.width,C.height)));for(var k=0,E=0;E<m.length;++E)k+=m[E];if(k<=0)return;for(var D=-w,L=0,B=0,N=0;D<x.height;){if(L%2===0){for(var O=B/2%b.length,$=0,I=0,z=0;$<x.width*2;){for(var G=0,E=0;E<g[N].length;++E)G+=g[N][E];if(G<=0)break;if(I%2===0){var U=(1-o.symbolSize)*.5,Z=$+g[N][I]*U,ae=D+m[L]*U,J=g[N][I]*o.symbolSize,Q=m[L]*o.symbolSize,ee=z/2%b[O].length;j(Z,ae,J,Q,b[O][ee])}$+=g[N][I],++z,++I,I===g[N].length&&(I=0)}++N,N===g.length&&(N=0)}D+=m[L],++B,++L,L===m.length&&(L=0)}function j(de,ve,ie,W,X){var oe=a?1:n,pe=Hn(X,de*oe,ve*oe,ie*oe,W*oe,o.color,o.symbolKeepAspect);if(a){var Se=r.painter.renderOneToVNode(pe);Se&&S.children.push(Se)}else gA(T,pe)}}}}function YW(e){if(!e||e.length===0)return[["rect"]];if(Je(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!Je(e[n])){t=!1;break}if(t)return YW([e]);for(var r=[],n=0;n<e.length;++n)Je(e[n])?r.push([e[n]]):r.push(e[n]);return r}function jW(e){if(!e||e.length===0)return[[0,0]];if(Qt(e)){var t=Math.ceil(e);return[[t,t]]}for(var n=!0,r=0;r<e.length;++r)if(!Qt(e[r])){n=!1;break}if(n)return jW([e]);for(var a=[],r=0;r<e.length;++r)if(Qt(e[r])){var t=Math.ceil(e[r]);a.push([t,t])}else{var t=Oe(e[r],function(s){return Math.ceil(s)});t.length%2===1?a.push(t.concat(t)):a.push(t)}return a}function M$e(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(Qt(e)){var t=Math.ceil(e);return[t,t]}var n=Oe(e,function(r){return Math.ceil(r)});return e.length%2?n.concat(n):n}function k$e(e){return Oe(e,function(t){return qW(t)})}function qW(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2===1?t*2:t}function A$e(e,t){e.eachRawSeries(function(n){if(!e.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each(function(o){var s=r.getItemVisual(o,"decal");if(s){var l=r.ensureUniqueItemVisual(o,"style");l.decal=hd(s,t)}});var a=r.getVisual("decal");if(a){var i=r.getVisual("style");i.decal=hd(a,t)}}})}var E$e=new fi;const Si=E$e;var XW={};function I$e(e,t){XW[e]=t}function ZW(e){return XW[e]}var D$e="5.4.3",P$e={zrender:"5.4.4"},L$e=1,R$e=800,O$e=900,$$e=1e3,N$e=2e3,B$e=5e3,JW=1e3,V$e=1100,mA=2e3,QW=3e3,z$e=4e3,F1=4500,F$e=4600,H$e=5e3,G$e=6e3,e9=7e3,t9={PROCESSOR:{FILTER:$$e,SERIES_FILTER:R$e,STATISTIC:B$e},VISUAL:{LAYOUT:JW,PROGRESSIVE_LAYOUT:V$e,GLOBAL:mA,CHART:QW,POST_CHART_LAYOUT:F$e,COMPONENT:z$e,BRUSH:H$e,CHART_ITEM:F1,ARIA:G$e,DECAL:e9}},Ir="__flagInMainProcess",ua="__pendingUpdate",Iw="__needsUpdateStatus",BO=/^[a-zA-Z0-9_]+$/,Dw="__connectUpdateStatus",VO=0,W$e=1,K$e=2;function n9(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(this.isDisposed()){this.id;return}return a9(this,e,t)}}function r9(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return a9(this,e,t)}}function a9(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),fi.prototype[t].apply(e,n)}var i9=function(e){ge(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(fi),o9=i9.prototype;o9.on=r9("on");o9.off=r9("off");var Yc,Pw,xm,Ts,Lw,Rw,Ow,mh,yh,zO,FO,$w,HO,Tm,GO,s9,$a,WO,Y0=function(e){ge(t,e);function t(n,r,a){var i=e.call(this,new ZOe)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],a=a||{},Je(r)&&(r=l9[r]),i._dom=n;var o="canvas",s="auto",l=!1,u=i._zr=qx(n,{renderer:a.renderer||o,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:Lt(a.useDirtyRect,l),useCoarsePointer:Lt(a.useCoarsePointer,s),pointerSize:a.pointerSize});i._ssr=a.ssr,i._throttledZrFlush=z1(et(u.flush,u),17),r=pt(r),r&&hW(r,!0),i._theme=r,i._locale=tRe(a.locale||GG),i._coordSysMgr=new Fd;var c=i._api=GO(i);function f(d,h){return d.__prio-h.__prio}return Py(q0,f),Py(S2,f),i._scheduler=new FW(i,c,S2,q0),i._messageCenter=new i9,i._initEvents(),i.resize=et(i.resize,i),u.animation.on("frame",i._onframe,i),zO(u,i),FO(u,i),up(i),i}return t.prototype._onframe=function(){if(!this._disposed){WO(this);var n=this._scheduler;if(this[ua]){var r=this[ua].silent;this[Ir]=!0;try{Yc(this),Ts.update.call(this,null,this[ua].updateParams)}catch(l){throw this[Ir]=!1,this[ua]=null,l}this._zr.flush(),this[Ir]=!1,this[ua]=null,mh.call(this,r),yh.call(this,r)}else if(n.unfinished){var a=L$e,i=this._model,o=this._api;n.unfinished=!1;do{var s=+new Date;n.performSeriesTasks(i),n.performDataProcessorTasks(i),Rw(this,i),n.performVisualTasks(i),Tm(this,this._model,o,"remain",{}),a-=+new Date-s}while(a>0&&n.unfinished);n.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(n,r,a){if(!this[Ir]){if(this._disposed){this.id;return}var i,o,s;if(ht(r)&&(a=r.lazyUpdate,i=r.silent,o=r.replaceMerge,s=r.transition,r=r.notMerge),this[Ir]=!0,!this._model||r){var l=new ORe(this._api),u=this._theme,c=this._model=new cW;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(n,{replaceMerge:o},C2);var f={seriesTransition:s,optionChanged:!0};if(a)this[ua]={silent:i,updateParams:f},this[Ir]=!1,this.getZr().wakeUp();else{try{Yc(this),Ts.update.call(this,null,f)}catch(d){throw this[ua]=null,this[Ir]=!1,d}this._ssr||this._zr.flush(),this[ua]=null,this[Ir]=!1,mh.call(this,i),yh.call(this,i)}}},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||Jt.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(n){return this.renderToCanvas(n)},t.prototype.renderToCanvas=function(n){n=n||{};var r=this._zr.painter;return r.getRenderedCanvas({backgroundColor:n.backgroundColor||this._model.get("backgroundColor"),pixelRatio:n.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(n){n=n||{};var r=this._zr.painter;return r.renderToString({useViewBox:n.useViewBox})},t.prototype.getSvgDataURL=function(){if(Jt.svgSupported){var n=this._zr,r=n.storage.getDisplayList();return F(r,function(a){a.stopAnimation(null,!0)}),n.painter.toDataURL()}},t.prototype.getDataURL=function(n){if(this._disposed){this.id;return}n=n||{};var r=n.excludeComponents,a=this._model,i=[],o=this;F(r,function(l){a.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(i.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(n).toDataURL("image/"+(n&&n.type||"png"));return F(i,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(n){if(this._disposed){this.id;return}var r=n.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(X0[a]){var l=s,u=s,c=-s,f=-s,d=[],h=n&&n.pixelRatio||this.getDevicePixelRatio();F(Qu,function(_,w){if(_.group===a){var C=r?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(pt(n)),S=_.getDom().getBoundingClientRect();l=i(S.left,l),u=i(S.top,u),c=o(S.right,c),f=o(S.bottom,f),d.push({dom:C,left:S.left,top:S.top})}}),l*=h,u*=h,c*=h,f*=h;var v=c-l,p=f-u,g=Vi.createCanvas(),m=qx(g,{renderer:r?"svg":"canvas"});if(m.resize({width:v,height:p}),r){var b="";return F(d,function(_){var w=_.left-l,C=_.top-u;b+='<g transform="translate('+w+","+C+')">'+_.dom+"</g>"}),m.painter.getSvgRoot().innerHTML=b,n.connectedBackgroundColor&&m.painter.setBackgroundColor(n.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return n.connectedBackgroundColor&&m.add(new Zt({shape:{x:0,y:0,width:v,height:p},style:{fill:n.connectedBackgroundColor}})),F(d,function(_){var w=new vr({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});m.add(w)}),m.refreshImmediately(),g.toDataURL("image/"+(n&&n.type||"png"))}else return this.getDataURL(n)},t.prototype.convertToPixel=function(n,r){return Lw(this,"convertToPixel",n,r)},t.prototype.convertFromPixel=function(n,r){return Lw(this,"convertFromPixel",n,r)},t.prototype.containPixel=function(n,r){if(this._disposed){this.id;return}var a=this._model,i,o=mv(a,n);return F(o,function(s,l){l.indexOf("Models")>=0&&F(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)i=i||!!c.containPoint(r);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint&&(i=i||f.containPoint(r,u))}},this)},this),!!i},t.prototype.getVisual=function(n,r){var a=this._model,i=mv(a,n,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?vA(s,l,r):yg(s,r)},t.prototype.getViewOfComponentModel=function(n){return this._componentsMap[n.__viewId]},t.prototype.getViewOfSeriesModel=function(n){return this._chartsMap[n.__viewId]},t.prototype._initEvents=function(){var n=this;F(U$e,function(r){var a=function(i){var o=n.getModel(),s=i.target,l,u=r==="globalout";if(u?l={}:s&&zu(s,function(v){var p=Tt(v);if(p&&p.dataIndex!=null){var g=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return l=g&&g.getDataParams(p.dataIndex,p.dataType,s)||{},!0}else if(p.eventData)return l=Ie({},p.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var d=c&&f!=null&&o.getComponent(c,f),h=d&&n[d.mainType==="series"?"_chartsMap":"_componentsMap"][d.__viewId];l.event=i,l.type=r,n._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:d,view:h},n.trigger(r,l)}};a.zrEventfulCallAtLast=!0,n._zr.on(r,a,n)}),F(Cv,function(r,a){n._messageCenter.on(a,function(i){this.trigger(a,i)},n)}),F(["selectchanged"],function(r){n._messageCenter.on(r,function(a){this.trigger(r,a)},n)}),e$e(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 n=this.getDom();n&&VH(this.getDom(),bA,"");var r=this,a=r._api,i=r._model;F(r._componentsViews,function(o){o.dispose(i,a)}),F(r._chartsViews,function(o){o.dispose(i,a)}),r._zr.dispose(),r._dom=r._model=r._chartsMap=r._componentsMap=r._chartsViews=r._componentsViews=r._scheduler=r._api=r._zr=r._throttledZrFlush=r._theme=r._coordSysMgr=r._messageCenter=null,delete Qu[r.id]},t.prototype.resize=function(n){if(!this[Ir]){if(this._disposed){this.id;return}this._zr.resize(n);var r=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!r){var a=r.resetOption("media"),i=n&&n.silent;this[ua]&&(i==null&&(i=this[ua].silent),a=!0,this[ua]=null),this[Ir]=!0;try{a&&Yc(this),Ts.update.call(this,{type:"resize",animation:Ie({duration:0},n&&n.animation)})}catch(o){throw this[Ir]=!1,o}this[Ir]=!1,mh.call(this,i),yh.call(this,i)}}},t.prototype.showLoading=function(n,r){if(this._disposed){this.id;return}if(ht(n)&&(r=n,n=""),n=n||"default",this.hideLoading(),!!x2[n]){var a=x2[n](this._api,r),i=this._zr;this._loadingFX=a,i.add(a)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(n){var r=Ie({},n);return r.type=Cv[n.type],r},t.prototype.dispatchAction=function(n,r){if(this._disposed){this.id;return}if(ht(r)||(r={silent:!!r}),!!j0[n.type]&&this._model){if(this[Ir]){this._pendingActions.push(n);return}var a=r.silent;Ow.call(this,n,a);var i=r.flush;i?this._zr.flush():i!==!1&&Jt.browser.weChat&&this._throttledZrFlush(),mh.call(this,a),yh.call(this,a)}},t.prototype.updateLabelLayout=function(){Si.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(n){if(this._disposed){this.id;return}var r=n.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(r);i.appendData(n),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){Yc=function(f){var d=f._scheduler;d.restorePipelines(f._model),d.prepareStageTasks(),Pw(f,!0),Pw(f,!1),d.plan()},Pw=function(f,d){for(var h=f._model,v=f._scheduler,p=d?f._componentsViews:f._chartsViews,g=d?f._componentsMap:f._chartsMap,m=f._zr,b=f._api,_=0;_<p.length;_++)p[_].__alive=!1;d?h.eachComponent(function(S,x){S!=="series"&&w(x)}):h.eachSeries(w);function w(S){var x=S.__requireNewView;S.__requireNewView=!1;var T="_ec_"+S.id+"_"+S.type,M=!x&&g[T];if(!M){var A=co(S.type),k=d?An.getClass(A.main,A.sub):vn.getClass(A.sub);M=new k,M.init(h,b),g[T]=M,p.push(M),m.add(M.group)}S.__viewId=M.__id=T,M.__alive=!0,M.__model=S,M.group.__ecComponentInfo={mainType:S.mainType,index:S.componentIndex},!d&&v.prepareView(M,S,h,b)}for(var _=0;_<p.length;){var C=p[_];C.__alive?_++:(!d&&C.renderTask.dispose(),m.remove(C.group),C.dispose(h,b),p.splice(_,1),g[C.__id]===C&&delete g[C.__id],C.__id=C.group.__ecComponentInfo=null)}},xm=function(f,d,h,v,p){var g=f._model;if(g.setUpdatePayload(h),!v){F([].concat(f._componentsViews).concat(f._chartsViews),C);return}var m={};m[v+"Id"]=h[v+"Id"],m[v+"Index"]=h[v+"Index"],m[v+"Name"]=h[v+"Name"];var b={mainType:v,query:m};p&&(b.subType=p);var _=h.excludeSeriesId,w;_!=null&&(w=ot(),F(hn(_),function(S){var x=tr(S,null);x!=null&&w.set(x,!0)})),g&&g.eachComponent(b,function(S){var x=w&&w.get(S.id)!=null;if(!x)if(MR(h))if(S instanceof _n)h.type===Zu&&!h.notBlur&&!S.get(["emphasis","disabled"])&&ZPe(S,h,f._api);else{var T=Fk(S.mainType,S.componentIndex,h.name,f._api),M=T.focusSelf,A=T.dispatchers;h.type===Zu&&M&&!h.notBlur&&a2(S.mainType,S.componentIndex,f._api),A&&F(A,function(k){h.type===Zu?rs(k):as(k)})}else o2(h)&&S instanceof _n&&(eLe(S,h,f._api),xR(S),$a(f))},f),g&&g.eachComponent(b,function(S){var x=w&&w.get(S.id)!=null;x||C(f[v==="series"?"_chartsMap":"_componentsMap"][S.__viewId])},f);function C(S){S&&S.__alive&&S[d]&&S[d](S.__model,g,f._api,h)}},Ts={prepareAndUpdate:function(f){Yc(this),Ts.update.call(this,f,{optionChanged:f.newOption!=null})},update:function(f,d){var h=this._model,v=this._api,p=this._zr,g=this._coordSysMgr,m=this._scheduler;if(h){h.setUpdatePayload(f),m.restoreData(h,f),m.performSeriesTasks(h),g.create(h,v),m.performDataProcessorTasks(h,f),Rw(this,h),g.update(h,v),n(h),m.performVisualTasks(h,f),$w(this,h,v,f,d);var b=h.get("backgroundColor")||"transparent",_=h.get("darkMode");p.setBackgroundColor(b),_!=null&&_!=="auto"&&p.setDarkMode(_),Si.trigger("afterupdate",h,v)}},updateTransform:function(f){var d=this,h=this._model,v=this._api;if(h){h.setUpdatePayload(f);var p=[];h.eachComponent(function(m,b){if(m!=="series"){var _=d.getViewOfComponentModel(b);if(_&&_.__alive)if(_.updateTransform){var w=_.updateTransform(b,h,v,f);w&&w.update&&p.push(_)}else p.push(_)}});var g=ot();h.eachSeries(function(m){var b=d._chartsMap[m.__viewId];if(b.updateTransform){var _=b.updateTransform(m,h,v,f);_&&_.update&&g.set(m.uid,1)}else g.set(m.uid,1)}),n(h),this._scheduler.performVisualTasks(h,f,{setDirty:!0,dirtyMap:g}),Tm(this,h,v,f,{},g),Si.trigger("afterupdate",h,v)}},updateView:function(f){var d=this._model;d&&(d.setUpdatePayload(f),vn.markUpdateMethod(f,"updateView"),n(d),this._scheduler.performVisualTasks(d,f,{setDirty:!0}),$w(this,d,this._api,f,{}),Si.trigger("afterupdate",d,this._api))},updateVisual:function(f){var d=this,h=this._model;h&&(h.setUpdatePayload(f),h.eachSeries(function(v){v.getData().clearAllVisual()}),vn.markUpdateMethod(f,"updateVisual"),n(h),this._scheduler.performVisualTasks(h,f,{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,f)}}),h.eachSeries(function(v){var p=d._chartsMap[v.__viewId];p.updateVisual(v,h,d._api,f)}),Si.trigger("afterupdate",h,this._api))},updateLayout:function(f){Ts.update.call(this,f)}},Lw=function(f,d,h,v){if(f._disposed){f.id;return}for(var p=f._model,g=f._coordSysMgr.getCoordinateSystems(),m,b=mv(p,h),_=0;_<g.length;_++){var w=g[_];if(w[d]&&(m=w[d](p,b,v))!=null)return m}},Rw=function(f,d){var h=f._chartsMap,v=f._scheduler;d.eachSeries(function(p){v.updateStreamModes(p,h[p.__viewId])})},Ow=function(f,d){var h=this,v=this.getModel(),p=f.type,g=f.escapeConnect,m=j0[p],b=m.actionInfo,_=(b.update||"update").split(":"),w=_.pop(),C=_[0]!=null&&co(_[0]);this[Ir]=!0;var S=[f],x=!1;f.batch&&(x=!0,S=Oe(f.batch,function(L){return L=ft(Ie({},L),f),L.batch=null,L}));var T=[],M,A=o2(f),k=MR(f);if(k&&dG(this._api),F(S,function(L){if(M=m.action(L,h._model,h._api),M=M||Ie({},L),M.type=b.event||M.type,T.push(M),k){var B=Rk(f),N=B.queryOptionMap,O=B.mainTypeSpecified,$=O?N.keys()[0]:"series";xm(h,w,L,$),$a(h)}else A?(xm(h,w,L,"series"),$a(h)):C&&xm(h,w,L,C.main,C.sub)}),w!=="none"&&!k&&!A&&!C)try{this[ua]?(Yc(this),Ts.update.call(this,f),this[ua]=null):Ts[w].call(this,f)}catch(L){throw this[Ir]=!1,L}if(x?M={type:b.event||p,escapeConnect:g,batch:T}:M=T[0],this[Ir]=!1,!d){var E=this._messageCenter;if(E.trigger(M.type,M),A){var D={type:"selectchanged",escapeConnect:g,selected:tLe(v),isFromClick:f.isFromClick||!1,fromAction:f.type,fromActionPayload:f};E.trigger(D.type,D)}}},mh=function(f){for(var d=this._pendingActions;d.length;){var h=d.shift();Ow.call(this,h,f)}},yh=function(f){!f&&this.trigger("updated")},zO=function(f,d){f.on("rendered",function(h){d.trigger("rendered",h),f.animation.isFinished()&&!d[ua]&&!d._scheduler.unfinished&&!d._pendingActions.length&&d.trigger("finished")})},FO=function(f,d){f.on("mouseover",function(h){var v=h.target,p=zu(v,wp);p&&(JPe(p,h,d._api),$a(d))}).on("mouseout",function(h){var v=h.target,p=zu(v,wp);p&&(QPe(p,h,d._api),$a(d))}).on("click",function(h){var v=h.target,p=zu(v,function(b){return Tt(b).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",m=Tt(p);d._api.dispatchAction({type:g,dataType:m.dataType,dataIndexInside:m.dataIndex,seriesIndex:m.seriesIndex,isFromClick:!0})}})};function n(f){f.clearColorPalette(),f.eachSeries(function(d){d.clearColorPalette()})}function r(f){var d=[],h=[],v=!1;if(f.eachComponent(function(b,_){var w=_.get("zlevel")||0,C=_.get("z")||0,S=_.getZLevelKey();v=v||!!S,(b==="series"?h:d).push({zlevel:w,z:C,idx:_.componentIndex,type:b,key:S})}),v){var p=d.concat(h),g,m;Py(p,function(b,_){return b.zlevel===_.zlevel?b.z-_.z:b.zlevel-_.zlevel}),F(p,function(b){var _=f.getComponent(b.type,b.idx),w=b.zlevel,C=b.key;g!=null&&(w=Math.max(g,w)),C?(w===g&&C!==m&&w++,m=C):m&&(w===g&&w++,m=""),g=w,_.setZLevel(w)})}}$w=function(f,d,h,v,p){r(d),HO(f,d,h,v,p),F(f._chartsViews,function(g){g.__alive=!1}),Tm(f,d,h,v,p),F(f._chartsViews,function(g){g.__alive||g.remove(d,h)})},HO=function(f,d,h,v,p,g){F(g||f._componentsViews,function(m){var b=m.__model;u(b,m),m.render(b,d,h,v),s(b,m),c(b,m)})},Tm=function(f,d,h,v,p,g){var m=f._scheduler;p=Ie(p||{},{updatedSeries:d.getSeries()}),Si.trigger("series:beforeupdate",d,h,p);var b=!1;d.eachSeries(function(_){var w=f._chartsMap[_.__viewId];w.__alive=!0;var C=w.renderTask;m.updatePayload(C,v),u(_,w),g&&g.get(_.uid)&&C.dirty(),C.perform(m.getPerformArgs(C))&&(b=!0),w.group.silent=!!_.get("silent"),o(_,w),xR(_)}),m.unfinished=b||m.unfinished,Si.trigger("series:layoutlabels",d,h,p),Si.trigger("series:transition",d,h,p),d.eachSeries(function(_){var w=f._chartsMap[_.__viewId];s(_,w),c(_,w)}),i(f,d),Si.trigger("series:afterupdate",d,h,p)},$a=function(f){f[Iw]=!0,f.getZr().wakeUp()},WO=function(f){f[Iw]&&(f.getZr().storage.traverse(function(d){Nf(d)||a(d)}),f[Iw]=!1)};function a(f){for(var d=[],h=f.currentStates,v=0;v<h.length;v++){var p=h[v];p==="emphasis"||p==="blur"||p==="select"||d.push(p)}f.selected&&f.states.select&&d.push("select"),f.hoverState===x1&&f.states.emphasis?d.push("emphasis"):f.hoverState===fg&&f.states.blur&&d.push("blur"),f.useStates(d)}function i(f,d){var h=f._zr,v=h.storage,p=0;v.traverse(function(g){g.isGroup||p++}),p>d.get("hoverLayerThreshold")&&!Jt.node&&!Jt.worker&&d.eachSeries(function(g){if(!g.preventUsingHoverLayer){var m=f._chartsMap[g.__viewId];m.__alive&&m.eachRendered(function(b){b.states.emphasis&&(b.states.emphasis.hoverLayer=!0)})}})}function o(f,d){var h=f.get("blendMode")||null;d.eachRendered(function(v){v.isGroup||(v.style.blend=h)})}function s(f,d){if(!f.preventAutoZ){var h=f.get("z")||0,v=f.get("zlevel")||0;d.eachRendered(function(p){return l(p,h,v,-1/0),!0})}}function l(f,d,h,v){var p=f.getTextContent(),g=f.getTextGuideLine(),m=f.isGroup;if(m)for(var b=f.childrenRef(),_=0;_<b.length;_++)v=Math.max(l(b[_],d,h,v),v);else f.z=d,f.zlevel=h,v=Math.max(f.z2,v);if(p&&(p.z=d,p.zlevel=h,isFinite(v)&&(p.z2=v+2)),g){var w=f.textGuideLineConfig;g.z=d,g.zlevel=h,isFinite(v)&&(g.z2=v+(w&&w.showAbove?1:-1))}return v}function u(f,d){d.eachRendered(function(h){if(!Nf(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 c(f,d){var h=f.getModel("stateAnimation"),v=f.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(Nf(m))return;if(m instanceof zt&&oLe(m),m.__dirty){var b=m.prevStates;b&&m.useStates(b)}if(v){m.stateTransition=g;var _=m.getTextContent(),w=m.getTextGuideLine();_&&(_.stateTransition=g),w&&(w.stateTransition=g)}m.__dirty&&a(m)}})}GO=function(f){return new(function(d){ge(h,d);function h(){return d!==null&&d.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(v){for(;v;){var p=v.__ecComponentInfo;if(p!=null)return f._model.getComponent(p.mainType,p.index);v=v.parent}},h.prototype.enterEmphasis=function(v,p){rs(v,p),$a(f)},h.prototype.leaveEmphasis=function(v,p){as(v,p),$a(f)},h.prototype.enterBlur=function(v){lG(v),$a(f)},h.prototype.leaveBlur=function(v){zk(v),$a(f)},h.prototype.enterSelect=function(v){uG(v),$a(f)},h.prototype.leaveSelect=function(v){cG(v),$a(f)},h.prototype.getModel=function(){return f.getModel()},h.prototype.getViewOfComponentModel=function(v){return f.getViewOfComponentModel(v)},h.prototype.getViewOfSeriesModel=function(v){return f.getViewOfSeriesModel(v)},h}(fW))(f)},s9=function(f){function d(h,v){for(var p=0;p<h.length;p++){var g=h[p];g[Dw]=v}}F(Cv,function(h,v){f._messageCenter.on(v,function(p){if(X0[f.group]&&f[Dw]!==VO){if(p&&p.escapeConnect)return;var g=f.makeActionFromEvent(p),m=[];F(Qu,function(b){b!==f&&b.group===f.group&&m.push(b)}),d(m,VO),F(m,function(b){b[Dw]!==W$e&&b.dispatchAction(g)}),d(m,K$e)}})})}}(),t}(fi),yA=Y0.prototype;yA.on=n9("on");yA.off=n9("off");yA.one=function(e,t,n){var r=this;function a(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];t&&t.apply&&t.apply(this,i),r.off(e,a)}this.on.call(this,e,a,n)};var U$e=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var j0={},Cv={},S2=[],C2=[],q0=[],l9={},x2={},Qu={},X0={},Y$e=+new Date-0,j$e=+new Date-0,bA="_echarts_instance_";function q$e(e,t,n){var r=!(n&&n.ssr);if(r){var a=_A(e);if(a)return a}var i=new Y0(e,t,n);return i.id="ec_"+Y$e++,Qu[i.id]=i,r&&VH(e,bA,i.id),s9(i),Si.trigger("afterinit",i),i}function X$e(e){if(Re(e)){var t=e;e=null,F(t,function(n){n.group!=null&&(e=n.group)}),e=e||"g_"+j$e++,F(t,function(n){n.group=e})}return X0[e]=!0,e}function u9(e){X0[e]=!1}var Z$e=u9;function J$e(e){Je(e)?e=Qu[e]:e instanceof Y0||(e=_A(e)),e instanceof Y0&&!e.isDisposed()&&e.dispose()}function _A(e){return Qu[UDe(e,bA)]}function Q$e(e){return Qu[e]}function wA(e,t){l9[e]=t}function SA(e){$t(C2,e)<0&&C2.push(e)}function CA(e,t){xA(S2,e,t,N$e)}function c9(e){H1("afterinit",e)}function f9(e){H1("afterupdate",e)}function H1(e,t){Si.on(e,t)}function Yi(e,t,n){ut(t)&&(n=t,t="");var r=ht(e)?e.type:[e,e={event:t}][0];e.event=(e.event||r).toLowerCase(),t=e.event,!Cv[t]&&(Nr(BO.test(r)&&BO.test(t)),j0[r]||(j0[r]={action:n,actionInfo:e}),Cv[t]=r)}function d9(e,t){Fd.register(e,t)}function eNe(e){var t=Fd.get(e);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function h9(e,t){xA(q0,e,t,JW,"layout")}function Ol(e,t){xA(q0,e,t,QW,"visual")}var KO=[];function xA(e,t,n,r,a){if((ut(t)||ht(t))&&(n=t,t=r),!($t(KO,n)>=0)){KO.push(n);var i=FW.wrapStageHandler(n,a);i.__prio=t,i.__raw=n,e.push(i)}}function TA(e,t){x2[e]=t}function tNe(e){H6({createCanvas:e})}function v9(e,t,n){var r=ZW("registerMap");r&&r(e,t,n)}function nNe(e){var t=ZW("getMap");return t&&t(e)}var p9=uOe;Ol(mA,OOe);Ol(F1,$Oe);Ol(F1,NOe);Ol(mA,JOe);Ol(F1,QOe);Ol(e9,A$e);SA(hW);CA(O$e,GRe);TA("default",BOe);Yi({type:Zu,event:Zu,update:Zu},Nn);Yi({type:Vy,event:Vy,update:Vy},Nn);Yi({type:yv,event:yv,update:yv},Nn);Yi({type:zy,event:zy,update:zy},Nn);Yi({type:bv,event:bv,update:bv},Nn);wA("light",qOe);wA("dark",XOe);var rNe={},UO=[],aNe={registerPreprocessor:SA,registerProcessor:CA,registerPostInit:c9,registerPostUpdate:f9,registerUpdateLifecycle:H1,registerAction:Yi,registerCoordinateSystem:d9,registerLayout:h9,registerVisual:Ol,registerTransform:p9,registerLoading:TA,registerMap:v9,registerImpl:I$e,PRIORITY:t9,ComponentModel:Yt,ComponentView:An,SeriesModel:_n,ChartView:vn,registerComponentModel:function(e){Yt.registerClass(e)},registerComponentView:function(e){An.registerClass(e)},registerSeriesModel:function(e){_n.registerClass(e)},registerChartView:function(e){vn.registerClass(e)},registerSubTypeDefaulter:function(e,t){Yt.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){AH(e,t)}};function Bt(e){if(Re(e)){F(e,function(t){Bt(t)});return}$t(UO,e)>=0||(UO.push(e),ut(e)&&(e={install:e}),e.install(aNe))}function bh(e){return e==null?0:e.length||1}function YO(e){return e}var iNe=function(){function e(t,n,r,a,i,o){this._old=t,this._new=n,this._oldKeyGetter=r||YO,this._newKeyGetter=a||YO,this.context=i,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,n=this._new,r={},a=new Array(t.length),i=new Array(n.length);this._initIndexMap(t,null,a,"_oldKeyGetter"),this._initIndexMap(n,r,i,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=a[o],l=r[s],u=bh(l);if(u>1){var c=l.shift();l.length===1&&(r[s]=l[0]),this._update&&this._update(c,o)}else u===1?(r[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,r)},e.prototype._executeMultiple=function(){var t=this._old,n=this._new,r={},a={},i=[],o=[];this._initIndexMap(t,r,i,"_oldKeyGetter"),this._initIndexMap(n,a,o,"_newKeyGetter");for(var s=0;s<i.length;s++){var l=i[s],u=r[l],c=a[l],f=bh(u),d=bh(c);if(f>1&&d===1)this._updateManyToOne&&this._updateManyToOne(c,u),a[l]=null;else if(f===1&&d>1)this._updateOneToMany&&this._updateOneToMany(c,u),a[l]=null;else if(f===1&&d===1)this._update&&this._update(c,u),a[l]=null;else if(f>1&&d>1)this._updateManyToMany&&this._updateManyToMany(c,u),a[l]=null;else if(f>1)for(var h=0;h<f;h++)this._remove&&this._remove(u[h]);else this._remove&&this._remove(u)}this._performRestAdd(o,a)},e.prototype._performRestAdd=function(t,n){for(var r=0;r<t.length;r++){var a=t[r],i=n[a],o=bh(i);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(i[s]);else o===1&&this._add&&this._add(i);n[a]=null}},e.prototype._initIndexMap=function(t,n,r,a){for(var i=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[a](t[o],o);if(i||(r[o]=s),!!n){var l=n[s],u=bh(l);u===0?(n[s]=o,i&&r.push(s)):u===1?n[s]=[l,o]:l.push(o)}}},e}();const is=iNe;var oNe=function(){function e(t,n){this._encode=t,this._schema=n}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 sNe(e,t){var n={},r=n.encode={},a=ot(),i=[],o=[],s={};F(e.dimensions,function(d){var h=e.getDimensionInfo(d),v=h.coordDim;if(v){var p=h.coordDimIndex;Nw(r,v)[p]=d,h.isExtraCoord||(a.set(v,1),lNe(h.type)&&(i[0]=d),Nw(s,v)[p]=e.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(d)}nW.each(function(g,m){var b=Nw(r,m),_=h.otherDims[m];_!=null&&_!==!1&&(b[_]=h.name)})});var l=[],u={};a.each(function(d,h){var v=r[h];u[h]=v[0],l=l.concat(v)}),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=Oe(l,function(d){return e.getDimensionInfo(d).storeDimIndex}),n.encodeFirstDimNotExtra=u;var c=r.label;c&&c.length&&(i=c.slice());var f=r.tooltip;return f&&f.length?o=f.slice():o.length||(o=i.slice()),r.defaultedLabel=i,r.defaultedTooltip=o,n.userOutput=new oNe(s,t),n}function Nw(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function Z0(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function lNe(e){return!(e==="ordinal"||e==="time")}var uNe=function(){function e(t){this.otherDims={},t!=null&&Ie(this,t)}return e}();const Ky=uNe;var cNe=en(),fNe={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},g9=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=b9(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return Lt(this._dimNameMap.get(t),-1)},e.prototype.getSourceDimension=function(t){var n=this.source.dimensionsDefine;if(n)return n[t]},e.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,n=pW(this.source),r=!_9(t),a="",i=[],o=0,s=0;o<t;o++){var l=void 0,u=void 0,c=void 0,f=this.dimensions[s];if(f&&f.storeDimIndex===o)l=n?f.name:null,u=f.type,c=f.ordinalMeta,s++;else{var d=this.getSourceDimension(o);d&&(l=n?d.name:null,u=d.type)}i.push({property:l,type:u,ordinalMeta:c}),n&&l!=null&&(!f||!f.isCalculationCoord)&&(a+=r?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),a+="$",a+=fNe[u]||"f",c&&(a+=c.uid),a+="$"}var h=this.source,v=[h.seriesLayoutBy,h.startIndex,a].join("$$");return{dimensions:i,hash:v}},e.prototype.makeOutputDimensionNames=function(){for(var t=[],n=0,r=0;n<this._fullDimCount;n++){var a=void 0,i=this.dimensions[r];if(i&&i.storeDimIndex===n)i.isCalculationCoord||(a=i.name),r++;else{var o=this.getSourceDimension(n);o&&(a=o.name)}t.push(a)}return t},e.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function m9(e){return e instanceof g9}function y9(e){for(var t=ot(),n=0;n<(e||[]).length;n++){var r=e[n],a=ht(r)?r.name:r;a!=null&&t.get(a)==null&&t.set(a,n)}return t}function b9(e){var t=cNe(e);return t.dimNameMap||(t.dimNameMap=y9(e.dimensionsDefine))}function _9(e){return e>30}var _h=ht,Ms=Oe,dNe=typeof Int32Array>"u"?Array:Int32Array,hNe="e\0\0",jO=-1,vNe=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],pNe=["_approximateExtent"],qO,Mm,wh,Sh,Bw,km,Vw,gNe=function(){function e(t,n){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 r,a=!1;m9(t)?(r=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(a=!0,r=t),r=r||["x","y"];for(var i={},o=[],s={},l=!1,u={},c=0;c<r.length;c++){var f=r[c],d=Je(f)?new Ky({name:f}):f instanceof Ky?f:new Ky(f),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),i[h]=d,u[h]!=null&&(l=!0),d.createInvertedIndices&&(s[h]=[]),v.itemName===0&&(this._nameDimIdx=c),v.itemId===0&&(this._idDimIdx=c),a&&(d.storeDimIndex=c)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(l),this.hostModel=n,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=ot();F(o,function(g){p.set(i[g].storeDimIndex,g)})}}return e.prototype.getDimension=function(t){var n=this._recognizeDimIndex(t);if(n==null)return t;if(n=t,!this._dimOmitted)return this.dimensions[n];var r=this._dimIdxToName.get(n);if(r!=null)return r;var a=this._schema.getSourceDimension(n);if(a)return a.name},e.prototype.getDimensionIndex=function(t){var n=this._recognizeDimIndex(t);if(n!=null)return n;if(t==null)return-1;var r=this._getDimInfo(t);return r?r.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},e.prototype._recognizeDimIndex=function(t){if(Qt(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},e.prototype._getStoreDimIndex=function(t){var n=this.getDimensionIndex(t);return n},e.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},e.prototype._initGetDimensionInfo=function(t){var n=this._dimInfos;this._getDimInfo=t?function(r){return n.hasOwnProperty(r)?n[r]:void 0}:function(r){return n[r]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(t,n){var r=this._dimSummary;if(n==null)return r.encodeFirstDimNotExtra[t];var a=r.encode[t];return a?a[n]:null},e.prototype.mapDimensionsAll=function(t){var n=this._dimSummary,r=n.encode[t];return(r||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(t,n,r){var a=this,i;if(t instanceof p2&&(i=t),!i){var o=this.dimensions,s=sA(t)||Cr(t)?new gW(t,o.length):t;i=new p2;var l=Ms(o,function(u){return{type:a._dimInfos[u].type,property:u}});i.initData(s,l,r)}this._store=i,this._nameList=(n||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=sNe(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(t){var n=this._store.appendData(t);this._doInit(n[0],n[1])},e.prototype.appendValues=function(t,n){var r=this._store.appendValues(t,n.length),a=r.start,i=r.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),n)for(var s=a;s<i;s++){var l=s-a;this._nameList[s]=n[l],o&&Vw(this,s)}},e.prototype._updateOrdinalMeta=function(){for(var t=this._store,n=this.dimensions,r=0;r<n.length;r++){var a=this._dimInfos[n[r]];a.ordinalMeta&&t.collectOrdinalMeta(a.storeDimIndex,a.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==il&&!t.fillStorage},e.prototype._doInit=function(t,n){if(!(t>=n)){var r=this._store,a=r.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===hi;if(l&&!a.pure)for(var u=[],c=t;c<n;c++){var f=a.getItem(c,u);if(!this.hasItemOption&&LDe(f)&&(this.hasItemOption=!0),f){var d=f.name;i[c]==null&&d!=null&&(i[c]=tr(d,null));var h=f.id;o[c]==null&&h!=null&&(o[c]=tr(h,null))}}if(this._shouldMakeIdFromName())for(var c=t;c<n;c++)Vw(this,c);qO(this)}},e.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.setApproximateExtent=function(t,n){n=this.getDimension(n),this._approximateExtent[n]=t.slice()},e.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},e.prototype.setCalculationInfo=function(t,n){_h(t)?Ie(this._calculationInfo,t):this._calculationInfo[t]=n},e.prototype.getName=function(t){var n=this.getRawIndex(t),r=this._nameList[n];return r==null&&this._nameDimIdx!=null&&(r=wh(this,this._nameDimIdx,n)),r==null&&(r=""),r},e.prototype._getCategory=function(t,n){var r=this._store.get(t,n),a=this._store.getOrdinalMeta(t);return a?a.categories[r]:r},e.prototype.getId=function(t){return Mm(this,this.getRawIndex(t))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(t,n){var r=this._store,a=this._dimInfos[t];if(a)return r.get(a.storeDimIndex,n)},e.prototype.getByRawIndex=function(t,n){var r=this._store,a=this._dimInfos[t];if(a)return r.getByRawIndex(a.storeDimIndex,n)},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,n){var r=this,a=this._store;return Re(t)?a.getValues(Ms(t,function(i){return r._getStoreDimIndex(i)}),n):a.getValues(t)},e.prototype.hasValue=function(t){for(var n=this._dimSummary.dataDimIndicesOnCoord,r=0,a=n.length;r<a;r++)if(isNaN(this._store.get(n[r],t)))return!1;return!0},e.prototype.indexOfName=function(t){for(var n=0,r=this._store.count();n<r;n++)if(this.getName(n)===t)return n;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,n){var r=t&&this._invertedIndicesMap[t],a=r[n];return a==null||isNaN(a)?jO:a},e.prototype.indicesOfNearest=function(t,n,r){return this._store.indicesOfNearest(this._getStoreDimIndex(t),n,r)},e.prototype.each=function(t,n,r){ut(t)&&(r=n,n=t,t=[]);var a=r||this,i=Ms(Sh(t),this._getStoreDimIndex,this);this._store.each(i,a?et(n,a):n)},e.prototype.filterSelf=function(t,n,r){ut(t)&&(r=n,n=t,t=[]);var a=r||this,i=Ms(Sh(t),this._getStoreDimIndex,this);return this._store=this._store.filter(i,a?et(n,a):n),this},e.prototype.selectRange=function(t){var n=this,r={},a=Gt(t);return F(a,function(i){var o=n._getStoreDimIndex(i);r[o]=t[i]}),this._store=this._store.selectRange(r),this},e.prototype.mapArray=function(t,n,r){ut(t)&&(r=n,n=t,t=[]),r=r||this;var a=[];return this.each(t,function(){a.push(n&&n.apply(this,arguments))},r),a},e.prototype.map=function(t,n,r,a){var i=r||a||this,o=Ms(Sh(t),this._getStoreDimIndex,this),s=km(this);return s._store=this._store.map(o,i?et(n,i):n),s},e.prototype.modify=function(t,n,r,a){var i=r||a||this,o=Ms(Sh(t),this._getStoreDimIndex,this);this._store.modify(o,i?et(n,i):n)},e.prototype.downSample=function(t,n,r,a){var i=km(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),n,r,a),i},e.prototype.lttbDownSample=function(t,n){var r=km(this);return r._store=this._store.lttbDownSample(this._getStoreDimIndex(t),n),r},e.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},e.prototype.getItemModel=function(t){var n=this.hostModel,r=this.getRawDataItem(t);return new dn(r,n,n&&n.ecModel)},e.prototype.diff=function(t){var n=this;return new is(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(r){return Mm(t,r)},function(r){return Mm(n,r)})},e.prototype.getVisual=function(t){var n=this._visual;return n&&n[t]},e.prototype.setVisual=function(t,n){this._visual=this._visual||{},_h(t)?Ie(this._visual,t):this._visual[t]=n},e.prototype.getItemVisual=function(t,n){var r=this._itemVisuals[t],a=r&&r[n];return a??this.getVisual(n)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(t,n){var r=this._itemVisuals,a=r[t];a||(a=r[t]={});var i=a[n];return i==null&&(i=this.getVisual(n),Re(i)?i=i.slice():_h(i)&&(i=Ie({},i)),a[n]=i),i},e.prototype.setItemVisual=function(t,n,r){var a=this._itemVisuals[t]||{};this._itemVisuals[t]=a,_h(n)?Ie(a,n):a[n]=r},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,n){_h(t)?Ie(this._layout,t):this._layout[t]=n},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,n,r){this._itemLayouts[t]=r?Ie(this._itemLayouts[t]||{},n):n},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,n){var r=this.hostModel&&this.hostModel.seriesIndex;n2(r,this.dataType,t,n),this._graphicEls[t]=n},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,n){F(this._graphicEls,function(r,a){r&&t&&t.call(n,r,a)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:Ms(this.dimensions,this._getDimInfo,this),this.hostModel)),Bw(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,n){var r=this[t];ut(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var a=r.apply(this,arguments);return n.apply(this,[a].concat(h1(arguments)))})},e.internalField=function(){qO=function(t){var n=t._invertedIndicesMap;F(n,function(r,a){var i=t._dimInfos[a],o=i.ordinalMeta,s=t._store;if(o){r=n[a]=new dNe(o.categories.length);for(var l=0;l<r.length;l++)r[l]=jO;for(var l=0;l<s.count();l++)r[s.get(i.storeDimIndex,l)]=l}})},wh=function(t,n,r){return tr(t._getCategory(n,r),null)},Mm=function(t,n){var r=t._idList[n];return r==null&&t._idDimIdx!=null&&(r=wh(t,t._idDimIdx,n)),r==null&&(r=hNe+n),r},Sh=function(t){return Re(t)||(t=t!=null?[t]:[]),t},km=function(t){var n=new e(t._schema?t._schema:Ms(t.dimensions,t._getDimInfo,t),t.hostModel);return Bw(n,t),n},Bw=function(t,n){F(vNe.concat(n.__wrappedMethods||[]),function(r){n.hasOwnProperty(r)&&(t[r]=n[r])}),t.__wrappedMethods=n.__wrappedMethods,F(pNe,function(r){t[r]=pt(n[r])}),t._calculationInfo=Ie({},n._calculationInfo)},Vw=function(t,n){var r=t._nameList,a=t._idList,i=t._nameDimIdx,o=t._idDimIdx,s=r[n],l=a[n];if(s==null&&i!=null&&(r[n]=s=wh(t,i,n)),l==null&&o!=null&&(a[n]=l=wh(t,o,n)),l==null&&s!=null){var u=t._nameRepeatCount,c=u[s]=(u[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),a[n]=l}}}(),e}();const Or=gNe;function mNe(e,t){return Kd(e,t).dimensions}function Kd(e,t){sA(e)||(e=lA(e)),t=t||{};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],a=ot(),i=[],o=bNe(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&_9(o),l=r===e.dimensionsDefine,u=l?b9(e):y9(r),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,o));for(var f=ot(c),d=new xW(o),h=0;h<d.length;h++)d[h]=-1;function v(M){var A=d[M];if(A<0){var k=r[M],E=ht(k)?k:{name:k},D=new Ky,L=E.name;L!=null&&u.get(L)!=null&&(D.name=D.displayName=L),E.type!=null&&(D.type=E.type),E.displayName!=null&&(D.displayName=E.displayName);var B=i.length;return d[M]=B,D.storeDimIndex=M,i.push(D),D}return i[A]}if(!s)for(var h=0;h<o;h++)v(h);f.each(function(M,A){var k=hn(M).slice();if(k.length===1&&!Je(k[0])&&k[0]<0){f.set(A,!1);return}var E=f.set(A,[]);F(k,function(D,L){var B=Je(D)?u.get(D):D;B!=null&&B<o&&(E[L]=B,g(v(B),A,L))})});var p=0;F(n,function(M){var A,k,E,D;if(Je(M))A=M,D={};else{D=M,A=D.name;var L=D.ordinalMeta;D.ordinalMeta=null,D=Ie({},D),D.ordinalMeta=L,k=D.dimsDef,E=D.otherDims,D.name=D.coordDim=D.coordDimIndex=D.dimsDef=D.otherDims=null}var B=f.get(A);if(B!==!1){if(B=hn(B),!B.length)for(var N=0;N<(k&&k.length||1);N++){for(;p<o&&v(p).coordDim!=null;)p++;p<o&&B.push(p++)}F(B,function(O,$){var I=v(O);if(l&&D.type!=null&&(I.type=D.type),g(ft(I,D),A,$),I.name==null&&k){var z=k[$];!ht(z)&&(z={name:z}),I.name=I.displayName=z.name,I.defaultTooltip=z.defaultTooltip}E&&ft(I.otherDims,E)})}});function g(M,A,k){nW.get(A)!=null?M.otherDims[A]=k:(M.coordDim=A,M.coordDimIndex=k,a.set(A,!0))}var m=t.generateCoord,b=t.generateCoordCount,_=b!=null;b=m?b||1:0;var w=m||"value";function C(M){M.name==null&&(M.name=M.coordDim)}if(s)F(i,function(M){C(M)}),i.sort(function(M,A){return M.storeDimIndex-A.storeDimIndex});else for(var S=0;S<o;S++){var x=v(S),T=x.coordDim;T==null&&(x.coordDim=_Ne(w,a,_),x.coordDimIndex=0,(!m||b<=0)&&(x.isExtraCoord=!0),b--),C(x),x.type==null&&(oW(e,S)===gr.Must||x.isExtraCoord&&(x.otherDims.itemName!=null||x.otherDims.seriesName!=null))&&(x.type="ordinal")}return yNe(i),new g9({source:e,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function yNe(e){for(var t=ot(),n=0;n<e.length;n++){var r=e[n],a=r.name,i=t.get(a)||0;i>0&&(r.name=a+(i-1)),i++,t.set(a,i)}}function bNe(e,t,n,r){var a=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return F(t,function(i){var o;ht(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function _Ne(e,t,n){if(n||t.hasKey(e)){for(var r=0;t.hasKey(e+r);)r++;e+=r}return t.set(e,!0),e}var wNe=function(){function e(t){this.coordSysDims=[],this.axisMap=ot(),this.categoryAxisMap=ot(),this.coordSysName=t}return e}();function SNe(e){var t=e.get("coordinateSystem"),n=new wNe(t),r=CNe[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var CNe={cartesian2d:function(e,t,n,r){var a=e.getReferringComponents("xAxis",Wn).models[0],i=e.getReferringComponents("yAxis",Wn).models[0];t.coordSysDims=["x","y"],n.set("x",a),n.set("y",i),jc(a)&&(r.set("x",a),t.firstCategoryDimIndex=0),jc(i)&&(r.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,r){var a=e.getReferringComponents("singleAxis",Wn).models[0];t.coordSysDims=["single"],n.set("single",a),jc(a)&&(r.set("single",a),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var a=e.getReferringComponents("polar",Wn).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",i),n.set("angle",o),jc(i)&&(r.set("radius",i),t.firstCategoryDimIndex=0),jc(o)&&(r.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,r){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,r){var a=e.ecModel,i=a.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=i.dimensions.slice();F(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),c=o[l];n.set(c,u),jc(u)&&(r.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function jc(e){return e.get("type")==="category"}function w9(e,t,n){n=n||{};var r=n.byIndex,a=n.stackedCoordDimension,i,o,s;xNe(t)?i=t:(o=t.schema,i=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,c,f,d;if(F(i,function(b,_){Je(b)&&(i[_]=b={name:b}),l&&!b.isExtraCoord&&(!r&&!u&&b.ordinalMeta&&(u=b),!c&&b.type!=="ordinal"&&b.type!=="time"&&(!a||a===b.coordDim)&&(c=b))}),c&&!r&&!u&&(r=!0),c){f="__\0ecstackresult_"+e.id,d="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var h=c.coordDim,v=c.type,p=0;F(i,function(b){b.coordDim===h&&p++});var g={name:f,coordDim:h,coordDimIndex:p,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},m={name:d,coordDim:d,coordDimIndex:p+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(d,v),m.storeDimIndex=s.ensureCalculationDimension(f,v)),o.appendCalculationDimension(g),o.appendCalculationDimension(m)):(i.push(g),i.push(m))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:r,stackedOverDimension:d,stackResultDimension:f}}function xNe(e){return!m9(e.schema)}function os(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function MA(e,t){return os(e,t)?e.getCalculationInfo("stackResultDimension"):t}function TNe(e,t){var n=e.get("coordinateSystem"),r=Fd.get(n),a;return t&&t.coordSysDims&&(a=Oe(t.coordSysDims,function(i){var o={name:i},s=t.axisMap.get(i);if(s){var l=s.get("type");o.type=Z0(l)}return o})),a||(a=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),a}function MNe(e,t,n){var r,a;return n&&F(e,function(i,o){var s=i.coordDim,l=n.categoryAxisMap.get(s);l&&(r==null&&(r=o),i.ordinalMeta=l.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&r!=null&&(e[r].otherDims.itemName=0),r}function Io(e,t,n){n=n||{};var r=t.getSourceManager(),a,i=!1;e?(i=!0,a=lA(e)):(a=r.getSource(),i=a.sourceFormat===hi);var o=SNe(t),s=TNe(t,o),l=n.useEncodeDefaulter,u=ut(l)?l:l?xt(iW,s,t):null,c={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},f=Kd(a,c),d=MNe(f.dimensions,n.createInvertedIndices,o),h=i?null:r.getSharedDataStore(f),v=w9(t,{schema:f,store:h}),p=new Or(f,t);p.setCalculationInfo(v);var g=d!=null&&kNe(a)?function(m,b,_,w){return w===d?_:this.defaultDimValueGetter(m,b,_,w)}:null;return p.hasItemOption=!1,p.initData(i?a:h,null,g),p}function kNe(e){if(e.sourceFormat===hi){var t=ANe(e.data||[]);return!Re(Id(t))}}function ANe(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var S9=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 n=this._extent;t[0]<n[0]&&(n[0]=t[0]),t[1]>n[1]&&(n[1]=t[1])},e.prototype.unionExtentFromData=function(t,n){this.unionExtent(t.getApproximateExtent(n))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,n){var r=this._extent;isNaN(t)||(r[0]=t),isNaN(n)||(r[1]=n)},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}();_1(S9);const gs=S9;var ENe=0,INe=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++ENe}return e.createByAxisModel=function(t){var n=t.option,r=n.data,a=r&&Oe(r,DNe);return new e({categories:a,needCollect:!a,deduplication:n.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var n,r=this._needCollect;if(!Je(t)&&!r)return t;if(r&&!this._deduplication)return n=this.categories.length,this.categories[n]=t,n;var a=this._getOrCreateMap();return n=a.get(t),n==null&&(r?(n=this.categories.length,this.categories[n]=t,a.set(t,n)):n=NaN),n},e.prototype._getOrCreateMap=function(){return this._map||(this._map=ot(this.categories))},e}();function DNe(e){return ht(e)&&e.value!=null?e.value:e+""}const T2=INe;function M2(e){return e.type==="interval"||e.type==="log"}function PNe(e,t,n,r){var a={},i=e[1]-e[0],o=a.interval=Dk(i/t,!0);n!=null&&o<n&&(o=a.interval=n),r!=null&&o>r&&(o=a.interval=r);var s=a.intervalPrecision=C9(o),l=a.niceTickExtent=[Rn(Math.ceil(e[0]/o)*o,s),Rn(Math.floor(e[1]/o)*o,s)];return LNe(l,e),a}function zw(e){var t=Math.pow(10,b1(e)),n=e/t;return n?n===2?n=3:n===3?n=5:n*=2:n=1,Rn(n*t)}function C9(e){return Ei(e)+2}function XO(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function LNe(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),XO(e,0,t),XO(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function G1(e,t){return e>=t[0]&&e<=t[1]}function W1(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function K1(e,t){return e*(t[1]-t[0])+t[0]}var x9=function(e){ge(t,e);function t(n){var r=e.call(this,n)||this;r.type="ordinal";var a=r.getSetting("ordinalMeta");return a||(a=new T2({})),Re(a)&&(a=new T2({categories:Oe(a,function(i){return ht(i)?i.value:i})})),r._ordinalMeta=a,r._extent=r.getSetting("extent")||[0,a.categories.length-1],r}return t.prototype.parse=function(n){return n==null?NaN:Je(n)?this._ordinalMeta.getOrdinal(n):Math.round(n)},t.prototype.contain=function(n){return n=this.parse(n),G1(n,this._extent)&&this._ordinalMeta.categories[n]!=null},t.prototype.normalize=function(n){return n=this._getTickNumber(this.parse(n)),W1(n,this._extent)},t.prototype.scale=function(n){return n=Math.round(K1(n,this._extent)),this.getRawOrdinalNumber(n)},t.prototype.getTicks=function(){for(var n=[],r=this._extent,a=r[0];a<=r[1];)n.push({value:a}),a++;return n},t.prototype.getMinorTicks=function(n){},t.prototype.setSortInfo=function(n){if(n==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var r=n.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,r.length);o<l;++o){var u=r[o];a[o]=u,i[u]=o}for(var c=0;o<s;++o){for(;i[c]!=null;)c++;a.push(c),i[c]=o}},t.prototype._getTickNumber=function(n){var r=this._ticksByOrdinalNumber;return r&&n>=0&&n<r.length?r[n]:n},t.prototype.getRawOrdinalNumber=function(n){var r=this._ordinalNumbersByTick;return r&&n>=0&&n<r.length?r[n]:n},t.prototype.getLabel=function(n){if(!this.isBlank()){var r=this.getRawOrdinalNumber(n.value),a=this._ordinalMeta.categories[r];return a==null?"":a+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(n,r){this.unionExtent(n.getApproximateExtent(r))},t.prototype.isInExtentRange=function(n){return n=this._getTickNumber(n),this._extent[0]<=n&&this._extent[1]>=n},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(gs);gs.registerClass(x9);const kA=x9;var su=Rn,T9=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="interval",n._interval=0,n._intervalPrecision=2,n}return t.prototype.parse=function(n){return n},t.prototype.contain=function(n){return G1(n,this._extent)},t.prototype.normalize=function(n){return W1(n,this._extent)},t.prototype.scale=function(n){return K1(n,this._extent)},t.prototype.setExtent=function(n,r){var a=this._extent;isNaN(n)||(a[0]=parseFloat(n)),isNaN(r)||(a[1]=parseFloat(r))},t.prototype.unionExtent=function(n){var r=this._extent;n[0]<r[0]&&(r[0]=n[0]),n[1]>r[1]&&(r[1]=n[1]),this.setExtent(r[0],r[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(n){this._interval=n,this._niceExtent=this._extent.slice(),this._intervalPrecision=C9(n)},t.prototype.getTicks=function(n){var r=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!r)return s;var l=1e4;a[0]<i[0]&&(n?s.push({value:su(i[0]-r,o)}):s.push({value:a[0]}));for(var u=i[0];u<=i[1]&&(s.push({value:u}),u=su(u+r,o),u!==s[s.length-1].value);)if(s.length>l)return[];var c=s.length?s[s.length-1].value:i[1];return a[1]>c&&(n?s.push({value:su(c+r,o)}):s.push({value:a[1]})),s},t.prototype.getMinorTicks=function(n){for(var r=this.getTicks(!0),a=[],i=this.getExtent(),o=1;o<r.length;o++){for(var s=r[o],l=r[o-1],u=0,c=[],f=s.value-l.value,d=f/n;u<n-1;){var h=su(l.value+(u+1)*d);h>i[0]&&h<i[1]&&c.push(h),u++}a.push(c)}return a},t.prototype.getLabel=function(n,r){if(n==null)return"";var a=r&&r.precision;a==null?a=Ei(n.value)||0:a==="auto"&&(a=this._intervalPrecision);var i=su(n.value,a,!0);return eA(i)},t.prototype.calcNiceTicks=function(n,r,a){n=n||5;var i=this._extent,o=i[1]-i[0];if(isFinite(o)){o<0&&(o=-o,i.reverse());var s=PNe(i,n,r,a);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(n){var r=this._extent;if(r[0]===r[1])if(r[0]!==0){var a=Math.abs(r[0]);n.fixMax||(r[1]+=a/2),r[0]-=a/2}else r[1]=1;var i=r[1]-r[0];isFinite(i)||(r[0]=0,r[1]=1),this.calcNiceTicks(n.splitNumber,n.minInterval,n.maxInterval);var o=this._interval;n.fixMin||(r[0]=su(Math.floor(r[0]/o)*o)),n.fixMax||(r[1]=su(Math.ceil(r[1]/o)*o))},t.prototype.setNiceExtent=function(n,r){this._niceExtent=[n,r]},t.type="interval",t}(gs);gs.registerClass(T9);const bl=T9;var M9=typeof Float32Array<"u",RNe=M9?Float32Array:Array;function fo(e){return Re(e)?M9?new Float32Array(e):e:new RNe(e)}var k2="__ec_stack_";function AA(e){return e.get("stack")||k2+e.seriesIndex}function EA(e){return e.dim+e.index}function ONe(e){var t=[],n=e.axis,r="axis0";if(n.type==="category"){for(var a=n.getBandWidth(),i=0;i<e.count;i++)t.push(ft({bandWidth:a,axisKey:r,stackId:k2+i},e));for(var o=E9(t),s=[],i=0;i<e.count;i++){var l=o[r][k2+i];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function k9(e,t){var n=[];return t.eachSeriesByType(e,function(r){P9(r)&&n.push(r)}),n}function $Ne(e){var t={};F(e,function(l){var u=l.coordinateSystem,c=u.getBaseAxis();if(!(c.type!=="time"&&c.type!=="value"))for(var f=l.getData(),d=c.dim+"_"+c.index,h=f.getDimensionIndex(f.mapDimension(c.dim)),v=f.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 n={};for(var r in t)if(t.hasOwnProperty(r)){var a=t[r];if(a){a.sort(function(l,u){return l-u});for(var i=null,o=1;o<a.length;++o){var s=a[o]-a[o-1];s>0&&(i=i===null?s:Math.min(i,s))}n[r]=i}}return n}function A9(e){var t=$Ne(e),n=[];return F(e,function(r){var a=r.coordinateSystem,i=a.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=t[l],c=Math.abs(o[1]-o[0]),f=i.scale.getExtent(),d=Math.abs(f[1]-f[0]);s=u?c/d*u:c}else{var h=r.getData();s=Math.abs(o[1]-o[0])/h.count()}var v=qe(r.get("barWidth"),s),p=qe(r.get("barMaxWidth"),s),g=qe(r.get("barMinWidth")||(L9(r)?.5:1),s),m=r.get("barGap"),b=r.get("barCategoryGap");n.push({bandWidth:s,barWidth:v,barMaxWidth:p,barMinWidth:g,barGap:m,barCategoryGap:b,axisKey:EA(i),stackId:AA(r)})}),E9(n)}function E9(e){var t={};F(e,function(r,a){var i=r.axisKey,o=r.bandWidth,s=t[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[i]=s;var u=r.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=r.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=r.barMaxWidth;f&&(l[u].maxWidth=f);var d=r.barMinWidth;d&&(l[u].minWidth=d);var h=r.barGap;h!=null&&(s.gap=h);var v=r.barCategoryGap;v!=null&&(s.categoryGap=v)});var n={};return F(t,function(r,a){n[a]={};var i=r.stacks,o=r.bandWidth,s=r.categoryGap;if(s==null){var l=Gt(i).length;s=Math.max(35-l*4,15)+"%"}var u=qe(s,o),c=qe(r.gap,1),f=r.remainedWidth,d=r.autoWidthCount,h=(f-u)/(d+(d-1)*c);h=Math.max(h,0),F(i,function(m){var b=m.maxWidth,_=m.minWidth;if(m.width){var w=m.width;b&&(w=Math.min(w,b)),_&&(w=Math.max(w,_)),m.width=w,f-=w+c*w,d--}else{var w=h;b&&b<w&&(w=Math.min(b,f)),_&&_>w&&(w=_),w!==h&&(m.width=w,f-=w+c*w,d--)}}),h=(f-u)/(d+(d-1)*c),h=Math.max(h,0);var v=0,p;F(i,function(m,b){m.width||(m.width=h),p=m,v+=m.width*(1+c)}),p&&(v-=p.width*c);var g=-v/2;F(i,function(m,b){n[a][b]=n[a][b]||{bandWidth:o,offset:g,width:m.width},g+=m.width*(1+c)})}),n}function NNe(e,t,n){if(e&&t){var r=e[EA(t)];return r!=null&&n!=null?r[AA(n)]:r}}function I9(e,t){var n=k9(e,t),r=A9(n);F(n,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=AA(a),u=r[EA(s)][l],c=u.offset,f=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function D9(e){return{seriesType:e,plan:Hd(),reset:function(t){if(P9(t)){var n=t.getData(),r=t.coordinateSystem,a=r.getBaseAxis(),i=r.getOtherAxis(a),o=n.getDimensionIndex(n.mapDimension(i.dim)),s=n.getDimensionIndex(n.mapDimension(a.dim)),l=t.get("showBackground",!0),u=n.mapDimension(i.dim),c=n.getCalculationInfo("stackResultDimension"),f=os(n,u)&&!!n.getCalculationInfo("stackedOnSeries"),d=i.isHorizontal(),h=BNe(a,i),v=L9(t),p=t.get("barMinHeight")||0,g=c&&n.getDimensionIndex(c),m=n.getLayout("size"),b=n.getLayout("offset");return{progress:function(_,w){for(var C=_.count,S=v&&fo(C*3),x=v&&l&&fo(C*3),T=v&&fo(C),M=r.master.getRect(),A=d?M.width:M.height,k,E=w.getStore(),D=0;(k=_.next())!=null;){var L=E.get(f?g:o,k),B=E.get(s,k),N=h,O=void 0;f&&(O=+L-E.get(o,k));var $=void 0,I=void 0,z=void 0,G=void 0;if(d){var U=r.dataToPoint([L,B]);if(f){var Z=r.dataToPoint([O,B]);N=Z[0]}$=N,I=U[1]+b,z=U[0]-N,G=m,Math.abs(z)<p&&(z=(z<0?-1:1)*p)}else{var U=r.dataToPoint([B,L]);if(f){var Z=r.dataToPoint([B,O]);N=Z[1]}$=U[0]+b,I=N,z=m,G=U[1]-N,Math.abs(G)<p&&(G=(G<=0?-1:1)*p)}v?(S[D]=$,S[D+1]=I,S[D+2]=d?z:G,x&&(x[D]=d?M.x:$,x[D+1]=d?I:M.y,x[D+2]=A),T[k]=k):w.setItemLayout(k,{x:$,y:I,width:z,height:G}),D+=3}v&&w.setLayout({largePoints:S,largeDataIndices:T,largeBackgroundPoints:x,valueAxisHorizontal:d})}}}}}}function P9(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function L9(e){return e.pipelineContext&&e.pipelineContext.large}function BNe(e,t){return t.toGlobalCoord(t.dataToCoord(t.type==="log"?1:0))}var VNe=function(e,t,n,r){for(;n<r;){var a=n+r>>>1;e[a][1]<t?n=a+1:r=a}return n},R9=function(e){ge(t,e);function t(n){var r=e.call(this,n)||this;return r.type="time",r}return t.prototype.getLabel=function(n){var r=this.getSetting("useUTC");return mg(n.value,FR[aRe(Bf(this._minLevelUnit))]||FR.second,r,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(n,r,a){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return iRe(n,r,a,o,i)},t.prototype.getTicks=function(){var n=this._interval,r=this._extent,a=[];if(!n)return a;a.push({value:r[0],level:0});var i=this.getSetting("useUTC"),o=UNe(this._minLevelUnit,this._approxInterval,i,r);return a=a.concat(o),a.push({value:r[1],level:0}),a},t.prototype.calcNiceExtent=function(n){var r=this._extent;if(r[0]===r[1]&&(r[0]-=qa,r[1]+=qa),r[1]===-1/0&&r[0]===1/0){var a=new Date;r[1]=+new Date(a.getFullYear(),a.getMonth(),a.getDate()),r[0]=r[1]-qa}this.calcNiceTicks(n.splitNumber,n.minInterval,n.maxInterval)},t.prototype.calcNiceTicks=function(n,r,a){n=n||10;var i=this._extent,o=i[1]-i[0];this._approxInterval=o/n,r!=null&&this._approxInterval<r&&(this._approxInterval=r),a!=null&&this._approxInterval>a&&(this._approxInterval=a);var s=Am.length,l=Math.min(VNe(Am,this._approxInterval,0,s),s-1);this._interval=Am[l][1],this._minLevelUnit=Am[Math.max(l-1,0)][0]},t.prototype.parse=function(n){return Qt(n)?n:+Ra(n)},t.prototype.contain=function(n){return G1(this.parse(n),this._extent)},t.prototype.normalize=function(n){return W1(this.parse(n),this._extent)},t.prototype.scale=function(n){return K1(n,this._extent)},t.type="time",t}(bl),Am=[["second",Zk],["minute",Jk],["hour",wv],["quarter-day",wv*6],["half-day",wv*12],["day",qa*1.2],["half-week",qa*3.5],["week",qa*7],["month",qa*31],["quarter",qa*95],["half-year",zR/2],["year",zR]];function zNe(e,t,n,r){var a=Ra(t),i=Ra(n),o=function(v){return HR(a,v,r)===HR(i,v,r)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},f=function(){return c()&&o("minute")},d=function(){return f()&&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 c();case"minute":return f();case"second":return d();case"millisecond":return h()}}function FNe(e,t){return e/=qa,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function HNe(e){var t=30*qa;return e/=t,e>6?6:e>3?3:e>2?2:1}function GNe(e){return e/=wv,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function ZO(e,t){return e/=t?Jk:Zk,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function WNe(e){return Dk(e,!0)}function KNe(e,t,n){var r=new Date(e);switch(Bf(t)){case"year":case"month":r[UG(n)](0);case"day":r[YG(n)](1);case"hour":r[jG(n)](0);case"minute":r[qG(n)](0);case"second":r[XG(n)](0),r[ZG(n)](0)}return r.getTime()}function UNe(e,t,n,r){var a=1e4,i=WG,o=0;function s(A,k,E,D,L,B,N){for(var O=new Date(k),$=k,I=O[D]();$<E&&$<=r[1];)N.push({value:$}),I+=A,O[L](I),$=O.getTime();N.push({value:$,notAdd:!0})}function l(A,k,E){var D=[],L=!k.length;if(!zNe(Bf(A),r[0],r[1],n)){L&&(k=[{value:KNe(new Date(r[0]),A,n)},{value:r[1]}]);for(var B=0;B<k.length-1;B++){var N=k[B].value,O=k[B+1].value;if(N!==O){var $=void 0,I=void 0,z=void 0,G=!1;switch(A){case"year":$=Math.max(1,Math.round(t/qa/365)),I=Qk(n),z=oRe(n);break;case"half-year":case"quarter":case"month":$=HNe(t),I=Vf(n),z=UG(n);break;case"week":case"half-week":case"day":$=FNe(t),I=P1(n),z=YG(n),G=!0;break;case"half-day":case"quarter-day":case"hour":$=GNe(t),I=xp(n),z=jG(n);break;case"minute":$=ZO(t,!0),I=L1(n),z=qG(n);break;case"second":$=ZO(t,!1),I=R1(n),z=XG(n);break;case"millisecond":$=WNe(t),I=O1(n),z=ZG(n);break}s($,N,O,I,z,G,D),A==="year"&&E.length>1&&B===0&&E.unshift({value:E[0].value-$})}}for(var B=0;B<D.length;B++)E.push(D[B]);return D}}for(var u=[],c=[],f=0,d=0,h=0;h<i.length&&o++<a;++h){var v=Bf(i[h]);if(rRe(i[h])){l(i[h],u[u.length-1]||[],c);var p=i[h+1]?Bf(i[h+1]):null;if(v!==p){if(c.length){d=f,c.sort(function(A,k){return A.value-k.value});for(var g=[],m=0;m<c.length;++m){var b=c[m].value;(m===0||c[m-1].value!==b)&&(g.push(c[m]),b>=r[0]&&b<=r[1]&&f++)}var _=(r[1]-r[0])/t;if(f>_*1.5&&d>_/1.5||(u.push(g),f>_||e===i[h]))break}c=[]}}}for(var w=ln(Oe(u,function(A){return ln(A,function(k){return k.value>=r[0]&&k.value<=r[1]&&!k.notAdd})}),function(A){return A.length>0}),C=[],S=w.length-1,h=0;h<w.length;++h)for(var x=w[h],T=0;T<x.length;++T)C.push({value:x[T].value,level:S-h});C.sort(function(A,k){return A.value-k.value});for(var M=[],h=0;h<C.length;++h)(h===0||C[h].value!==C[h-1].value)&&M.push(C[h]);return M}gs.registerClass(R9);const O9=R9;var JO=gs.prototype,xv=bl.prototype,YNe=Rn,jNe=Math.floor,qNe=Math.ceil,Em=Math.pow,yi=Math.log,IA=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="log",n.base=10,n._originalScale=new bl,n._interval=0,n}return t.prototype.getTicks=function(n){var r=this._originalScale,a=this._extent,i=r.getExtent(),o=xv.getTicks.call(this,n);return Oe(o,function(s){var l=s.value,u=Rn(Em(this.base,l));return u=l===a[0]&&this._fixMin?Im(u,i[0]):u,u=l===a[1]&&this._fixMax?Im(u,i[1]):u,{value:u}},this)},t.prototype.setExtent=function(n,r){var a=yi(this.base);n=yi(Math.max(0,n))/a,r=yi(Math.max(0,r))/a,xv.setExtent.call(this,n,r)},t.prototype.getExtent=function(){var n=this.base,r=JO.getExtent.call(this);r[0]=Em(n,r[0]),r[1]=Em(n,r[1]);var a=this._originalScale,i=a.getExtent();return this._fixMin&&(r[0]=Im(r[0],i[0])),this._fixMax&&(r[1]=Im(r[1],i[1])),r},t.prototype.unionExtent=function(n){this._originalScale.unionExtent(n);var r=this.base;n[0]=yi(n[0])/yi(r),n[1]=yi(n[1])/yi(r),JO.unionExtent.call(this,n)},t.prototype.unionExtentFromData=function(n,r){this.unionExtent(n.getApproximateExtent(r))},t.prototype.calcNiceTicks=function(n){n=n||10;var r=this._extent,a=r[1]-r[0];if(!(a===1/0||a<=0)){var i=PH(a),o=n/a*i;for(o<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var s=[Rn(qNe(r[0]/i)*i),Rn(jNe(r[1]/i)*i)];this._interval=i,this._niceExtent=s}},t.prototype.calcNiceExtent=function(n){xv.calcNiceExtent.call(this,n),this._fixMin=n.fixMin,this._fixMax=n.fixMax},t.prototype.parse=function(n){return n},t.prototype.contain=function(n){return n=yi(n)/yi(this.base),G1(n,this._extent)},t.prototype.normalize=function(n){return n=yi(n)/yi(this.base),W1(n,this._extent)},t.prototype.scale=function(n){return n=K1(n,this._extent),Em(this.base,n)},t.type="log",t}(gs),$9=IA.prototype;$9.getMinorTicks=xv.getMinorTicks;$9.getLabel=xv.getLabel;function Im(e,t){return YNe(e,Ei(t))}gs.registerClass(IA);const XNe=IA;var ZNe=function(){function e(t,n,r){this._prepareParams(t,n,r)}return e.prototype._prepareParams=function(t,n,r){r[1]<r[0]&&(r=[NaN,NaN]),this._dataMin=r[0],this._dataMax=r[1];var a=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&n.getNeedCrossZero&&n.getNeedCrossZero();var i=this._modelMinRaw=n.get("min",!0);ut(i)?this._modelMinNum=Dm(t,i({min:r[0],max:r[1]})):i!=="dataMin"&&(this._modelMinNum=Dm(t,i));var o=this._modelMaxRaw=n.get("max",!0);if(ut(o)?this._modelMaxNum=Dm(t,o({min:r[0],max:r[1]})):o!=="dataMax"&&(this._modelMaxNum=Dm(t,o)),a)this._axisDataLen=n.getCategories().length;else{var s=n.get("boundaryGap"),l=Re(s)?s:[s||0,s||0];typeof l[0]=="boolean"||typeof l[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Fi(l[0],1),Fi(l[1],1)]}},e.prototype.calculate=function(){var t=this._isOrdinal,n=this._dataMin,r=this._dataMax,a=this._axisDataLen,i=this._boundaryGapInner,o=t?null:r-n||Math.abs(n),s=this._modelMinRaw==="dataMin"?n:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?r:this._modelMaxNum,u=s!=null,c=l!=null;s==null&&(s=t?a?0:NaN:n-i[0]*o),l==null&&(l=t?a?a-1:NaN:r+i[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var f=cd(s)||cd(l)||t&&!a;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var d=this._determinedMin,h=this._determinedMax;return d!=null&&(s=d,u=!0),h!=null&&(l=h,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},e.prototype.modifyDataMinMax=function(t,n){this[QNe[t]]=n},e.prototype.setDeterminedMinMax=function(t,n){var r=JNe[t];this[r]=n},e.prototype.freeze=function(){this.frozen=!0},e}(),JNe={min:"_determinedMin",max:"_determinedMax"},QNe={min:"_dataMin",max:"_dataMax"};function N9(e,t,n){var r=e.rawExtentInfo;return r||(r=new ZNe(e,t,n),e.rawExtentInfo=r,r)}function Dm(e,t){return t==null?null:cd(t)?NaN:e.parse(t)}function B9(e,t){var n=e.type,r=N9(e,t,e.getExtent()).calculate();e.setBlank(r.isBlank);var a=r.min,i=r.max,o=t.ecModel;if(o&&n==="time"){var s=k9("bar",o),l=!1;if(F(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=A9(s),c=e3e(a,i,t,u);a=c.min,i=c.max}}return{extent:[a,i],fixMin:r.minFixed,fixMax:r.maxFixed}}function e3e(e,t,n,r){var a=n.axis.getExtent(),i=a[1]-a[0],o=NNe(r,n.axis);if(o===void 0)return{min:e,max:t};var s=1/0;F(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;F(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-e,f=1-(s+l)/i,d=c/f-c;return t+=d*(l/u),e-=d*(s/u),{min:e,max:t}}function vc(e,t){var n=t,r=B9(e,n),a=r.extent,i=n.get("splitNumber");e instanceof XNe&&(e.base=n.get("logBase"));var o=e.type,s=n.get("interval"),l=o==="interval"||o==="time";e.setExtent(a[0],a[1]),e.calcNiceExtent({splitNumber:i,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),s!=null&&e.setInterval&&e.setInterval(s)}function bg(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new kA({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new O9({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(gs.getClass(t)||bl)}}function t3e(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)}function _g(e){var t=e.getLabelModel().get("formatter"),n=e.type==="category"?e.scale.getExtent()[0]:null;return e.scale.type==="time"?function(r){return function(a,i){return e.scale.getFormattedLabel(a,i,r)}}(t):Je(t)?function(r){return function(a){var i=e.scale.getLabel(a),o=r.replace("{value}",i??"");return o}}(t):ut(t)?function(r){return function(a,i){return n!=null&&(i=a.value-n),r(DA(e,a),i,a.level!=null?{level:a.level}:null)}}(t):function(r){return e.scale.getLabel(r)}}function DA(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function n3e(e){var t=e.model,n=e.scale;if(!(!t.get(["axisLabel","show"])||n.isBlank())){var r,a,i=n.getExtent();n instanceof kA?a=n.count():(r=n.getTicks(),a=r.length);var o=e.getLabelModel(),s=_g(e),l,u=1;a>40&&(u=Math.ceil(a/40));for(var c=0;c<a;c+=u){var f=r?r[c]:{value:i[0]+c},d=s(f,c),h=o.getTextRect(d),v=r3e(h,o.get("rotate")||0);l?l.union(v):l=v}return l}}function r3e(e,t){var n=t*Math.PI/180,r=e.width,a=e.height,i=r*Math.abs(Math.cos(n))+Math.abs(a*Math.sin(n)),o=r*Math.abs(Math.sin(n))+Math.abs(a*Math.cos(n)),s=new Rt(e.x,e.y,i,o);return s}function PA(e){var t=e.get("interval");return t??"auto"}function V9(e){return e.type==="category"&&PA(e.getLabelModel())===0}function J0(e,t){var n={};return F(e.mapDimensionsAll(t),function(r){n[MA(e,r)]=!0}),Gt(n)}function a3e(e,t,n){t&&F(J0(t,n),function(r){var a=t.getApproximateExtent(r);a[0]<e[0]&&(e[0]=a[0]),a[1]>e[1]&&(e[1]=a[1])})}var Ud=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}();function i3e(e){return Io(null,e)}var o3e={isDimensionStacked:os,enableDataStack:w9,getStackedDimension:MA};function s3e(e,t){var n=t;t instanceof dn||(n=new dn(t));var r=bg(n);return r.setExtent(e[0],e[1]),vc(r,n),r}function l3e(e){Vn(e,Ud)}function u3e(e,t){return t=t||{},gn(e,null,null,t.state!=="normal")}const c3e=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:mNe,createList:i3e,createScale:s3e,createSymbol:Hn,createTextStyle:u3e,dataStack:o3e,enableHoverEmphasis:rl,getECData:Tt,getLayoutRect:Xn,mixinAxisModelCommonMethods:l3e},Symbol.toStringTag,{value:"Module"}));var f3e=1e-8;function QO(e,t){return Math.abs(e-t)<f3e}function Tu(e,t,n){var r=0,a=e[0];if(!a)return!1;for(var i=1;i<e.length;i++){var o=e[i];r+=Vo(a[0],a[1],o[0],o[1],t,n),a=o}var s=e[0];return(!QO(a[0],s[0])||!QO(a[1],s[1]))&&(r+=Vo(a[0],a[1],s[0],s[1],t,n)),r!==0}var d3e=[];function Fw(e,t){for(var n=0;n<e.length;n++)hr(e[n],e[n],t)}function e$(e,t,n,r){for(var a=0;a<e.length;a++){var i=e[a];r&&(i=r.project(i)),i&&isFinite(i[0])&&isFinite(i[1])&&(Wo(t,t,i),Ko(n,n,i))}}function h3e(e){for(var t=0,n=0,r=0,a=e.length,i=e[a-1][0],o=e[a-1][1],s=0;s<a;s++){var l=e[s][0],u=e[s][1],c=i*u-l*o;t+=c,n+=(i+l)*c,r+=(o+u)*c,i=l,o=u}return t?[n/t/3,r/t/3,t]:[e[0][0]||0,e[0][1]||0]}var z9=function(){function e(t){this.name=t}return e.prototype.setCenter=function(t){this._center=t},e.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},e}(),t$=function(){function e(t,n){this.type="polygon",this.exterior=t,this.interiors=n}return e}(),n$=function(){function e(t){this.type="linestring",this.points=t}return e}(),F9=function(e){ge(t,e);function t(n,r,a){var i=e.call(this,n)||this;return i.type="geoJSON",i.geometries=r,i._center=a&&[a[0],a[1]],i}return t.prototype.calcCenter=function(){for(var n=this.geometries,r,a=0,i=0;i<n.length;i++){var o=n[i],s=o.exterior,l=s&&s.length;l>a&&(r=o,a=l)}if(r)return h3e(r.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(n){var r=this._rect;if(r&&!n)return r;var a=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return F(o,function(s){s.type==="polygon"?e$(s.exterior,a,i,n):F(s.points,function(l){e$(l,a,i,n)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])||(a[0]=a[1]=i[0]=i[1]=0),r=new Rt(a[0],a[1],i[0]-a[0],i[1]-a[1]),n||(this._rect=r),r},t.prototype.contain=function(n){var r=this.getBoundingRect(),a=this.geometries;if(!r.contain(n[0],n[1]))return!1;e:for(var i=0,o=a.length;i<o;i++){var s=a[i];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(Tu(l,n[0],n[1])){for(var c=0;c<(u?u.length:0);c++)if(Tu(u[c],n[0],n[1]))continue e;return!0}}}return!1},t.prototype.transformTo=function(n,r,a,i){var o=this.getBoundingRect(),s=o.width/o.height;a?i||(i=a/s):a=s*i;for(var l=new Rt(n,r,a,i),u=o.calculateTransform(l),c=this.geometries,f=0;f<c.length;f++){var d=c[f];d.type==="polygon"?(Fw(d.exterior,u),F(d.interiors,function(h){Fw(h,u)})):F(d.points,function(h){Fw(h,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},t.prototype.cloneShallow=function(n){n==null&&(n=this.name);var r=new t(n,this.geometries,this._center);return r._rect=this._rect,r.transformTo=null,r},t}(z9),v3e=function(e){ge(t,e);function t(n,r){var a=e.call(this,n)||this;return a.type="geoSVG",a._elOnlyForCalculate=r,a}return t.prototype.calcCenter=function(){for(var n=this._elOnlyForCalculate,r=n.getBoundingRect(),a=[r.x+r.width/2,r.y+r.height/2],i=sg(d3e),o=n;o&&!o.isGeoSVGGraphicRoot;)go(i,o.getLocalTransform(),i),o=o.parent;return xc(i,i),hr(a,a,i),a},t}(z9);function p3e(e){if(!e.UTF8Encoding)return e;var t=e,n=t.UTF8Scale;n==null&&(n=1024);var r=t.features;return F(r,function(a){var i=a.geometry,o=i.encodeOffsets,s=i.coordinates;if(o)switch(i.type){case"LineString":i.coordinates=H9(s,o,n);break;case"Polygon":Hw(s,o,n);break;case"MultiLineString":Hw(s,o,n);break;case"MultiPolygon":F(s,function(l,u){return Hw(l,o[u],n)})}}),t.UTF8Encoding=!1,t}function Hw(e,t,n){for(var r=0;r<e.length;r++)e[r]=H9(e[r],t[r],n)}function H9(e,t,n){for(var r=[],a=t[0],i=t[1],o=0;o<e.length;o+=2){var s=e.charCodeAt(o)-64,l=e.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=a,l+=i,a=s,i=l,r.push([s/n,l/n])}return r}function A2(e,t){return e=p3e(e),Oe(ln(e.features,function(n){return n.geometry&&n.properties&&n.geometry.coordinates.length>0}),function(n){var r=n.properties,a=n.geometry,i=[];switch(a.type){case"Polygon":var o=a.coordinates;i.push(new t$(o[0],o.slice(1)));break;case"MultiPolygon":F(a.coordinates,function(l){l[0]&&i.push(new t$(l[0],l.slice(1)))});break;case"LineString":i.push(new n$([a.coordinates]));break;case"MultiLineString":i.push(new n$(a.coordinates))}var s=new F9(r[t||"name"],i,r.cp);return s.properties=r,s})}const g3e=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:Xx,asc:Ea,getPercentWithPrecision:IDe,getPixelPrecision:Ek,getPrecision:Ei,getPrecisionSafe:IH,isNumeric:Pk,isRadianAroundZero:mp,linearMap:sn,nice:Dk,numericToNumber:xo,parseDate:Ra,quantile:By,quantity:PH,quantityExponent:b1,reformIntervals:Zx,remRadian:Ik,round:Rn},Symbol.toStringTag,{value:"Module"})),m3e=Object.freeze(Object.defineProperty({__proto__:null,format:mg,parse:Ra},Symbol.toStringTag,{value:"Module"})),y3e=Object.freeze(Object.defineProperty({__proto__:null,Arc:k1,BezierCurve:hg,BoundingRect:Rt,Circle:Hi,CompoundPath:A1,Ellipse:M1,Group:bt,Image:vr,IncrementalDisplayable:IG,Line:ar,LinearGradient:Pd,Polygon:ra,Polyline:ia,RadialGradient:Gk,Rect:Zt,Ring:dg,Sector:na,Text:Xt,clipPointsByRect:Yk,clipRectByRect:OG,createIcon:Rd,extendPath:LG,extendShape:PG,getShapeClass:E1,getTransform:al,initProps:xn,makeImage:Kk,makePath:vg,mergePath:Ma,registerShape:di,resizePath:Uk,updateProps:nn},Symbol.toStringTag,{value:"Module"})),b3e=Object.freeze(Object.defineProperty({__proto__:null,addCommas:eA,capitalFirst:cRe,encodeHTML:Ur,formatTime:uRe,formatTpl:nA,getTextRect:sRe,getTooltipMarker:JG,normalizeCssArray:Mc,toCamelCase:tA,truncateText:GH},Symbol.toStringTag,{value:"Module"})),_3e=Object.freeze(Object.defineProperty({__proto__:null,bind:et,clone:pt,curry:xt,defaults:ft,each:F,extend:Ie,filter:ln,indexOf:$t,inherits:_k,isArray:Re,isFunction:ut,isObject:ht,isString:Je,map:Oe,merge:Dt,reduce:ui},Symbol.toStringTag,{value:"Module"}));var Ip=en();function w3e(e){return e.type==="category"?C3e(e):T3e(e)}function S3e(e,t){return e.type==="category"?x3e(e,t):{ticks:Oe(e.scale.getTicks(),function(n){return n.value})}}function C3e(e){var t=e.getLabelModel(),n=G9(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function G9(e,t){var n=W9(e,"labels"),r=PA(t),a=K9(n,r);if(a)return a;var i,o;return ut(r)?i=j9(e,r):(o=r==="auto"?M3e(e):r,i=Y9(e,o)),U9(n,r,{labels:i,labelCategoryInterval:o})}function x3e(e,t){var n=W9(e,"ticks"),r=PA(t),a=K9(n,r);if(a)return a;var i,o;if((!t.get("show")||e.scale.isBlank())&&(i=[]),ut(r))i=j9(e,r,!0);else if(r==="auto"){var s=G9(e,e.getLabelModel());o=s.labelCategoryInterval,i=Oe(s.labels,function(l){return l.tickValue})}else o=r,i=Y9(e,o,!0);return U9(n,r,{ticks:i,tickCategoryInterval:o})}function T3e(e){var t=e.scale.getTicks(),n=_g(e);return{labels:Oe(t,function(r,a){return{level:r.level,formattedLabel:n(r,a),rawLabel:e.scale.getLabel(r),tickValue:r.value}})}}function W9(e,t){return Ip(e)[t]||(Ip(e)[t]=[])}function K9(e,t){for(var n=0;n<e.length;n++)if(e[n].key===t)return e[n].value}function U9(e,t,n){return e.push({key:t,value:n}),n}function M3e(e){var t=Ip(e).autoInterval;return t??(Ip(e).autoInterval=e.calculateCategoryInterval())}function k3e(e){var t=A3e(e),n=_g(e),r=(t.axisRotate-t.labelRotate)/180*Math.PI,a=e.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),c=Math.abs(u*Math.cos(r)),f=Math.abs(u*Math.sin(r)),d=0,h=0;l<=i[1];l+=s){var v=0,p=0,g=ug(n({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/c,b=h/f;isNaN(m)&&(m=1/0),isNaN(b)&&(b=1/0);var _=Math.max(0,Math.floor(Math.min(m,b))),w=Ip(e.model),C=e.getExtent(),S=w.lastAutoInterval,x=w.lastTickCount;return S!=null&&x!=null&&Math.abs(S-_)<=1&&Math.abs(x-o)<=1&&S>_&&w.axisExtent0===C[0]&&w.axisExtent1===C[1]?_=S:(w.lastTickCount=o,w.lastAutoInterval=_,w.axisExtent0=C[0],w.axisExtent1=C[1]),_}function A3e(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 Y9(e,t,n){var r=_g(e),a=e.scale,i=a.getExtent(),o=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=i[0],c=a.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=V9(e),d=o.get("showMinLabel")||f,h=o.get("showMaxLabel")||f;d&&u!==i[0]&&p(i[0]);for(var v=u;v<=i[1];v+=l)p(v);h&&v-l!==i[1]&&p(i[1]);function p(g){var m={value:g};s.push(n?g:{formattedLabel:r(m),rawLabel:a.getLabel(m),tickValue:g})}return s}function j9(e,t,n){var r=e.scale,a=_g(e),i=[];return F(r.getTicks(),function(o){var s=r.getLabel(o),l=o.value;t(o.value,s)&&i.push(n?l:{formattedLabel:a(o),rawLabel:s,tickValue:l})}),i}var r$=[0,1],E3e=function(){function e(t,n,r){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=n,this._extent=r||[0,0]}return e.prototype.contain=function(t){var n=this._extent,r=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return t>=r&&t<=a},e.prototype.containData=function(t){return this.scale.contain(t)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return Ek(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,n){var r=this._extent;r[0]=t,r[1]=n},e.prototype.dataToCoord=function(t,n){var r=this._extent,a=this.scale;return t=a.normalize(t),this.onBand&&a.type==="ordinal"&&(r=r.slice(),a$(r,a.count())),sn(t,r$,r,n)},e.prototype.coordToData=function(t,n){var r=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(r=r.slice(),a$(r,a.count()));var i=sn(t,r,r$,n);return this.scale.scale(i)},e.prototype.pointToData=function(t,n){},e.prototype.getTicksCoords=function(t){t=t||{};var n=t.tickModel||this.getTickModel(),r=S3e(this,n),a=r.ticks,i=Oe(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=n.get("alignWithLabel");return I3e(this,i,o,t.clamp),i},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),n=t.get("splitNumber");n>0&&n<100||(n=5);var r=this.scale.getMinorTicks(n),a=Oe(r,function(i){return Oe(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},e.prototype.getViewLabels=function(){return w3e(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,n=this.scale.getExtent(),r=n[1]-n[0]+(this.onBand?1:0);r===0&&(r=1);var a=Math.abs(t[1]-t[0]);return Math.abs(a)/r},e.prototype.calculateCategoryInterval=function(){return k3e(this)},e}();function a$(e,t){var n=e[1]-e[0],r=t,a=n/r/2;e[0]+=a,e[1]-=a}function I3e(e,t,n,r){var a=t.length;if(!e.onBand||n||!a)return;var i=e.getExtent(),o,s;if(a===1)t[0].coord=i[0],o=t[1]={coord:i[1]};else{var l=t[a-1].tickValue-t[0].tickValue,u=(t[a-1].coord-t[0].coord)/l;F(t,function(h){h.coord-=u/2});var c=e.scale.getExtent();s=1+c[1]-t[a-1].tickValue,o={coord:t[a-1].coord+u*s},t.push(o)}var f=i[0]>i[1];d(t[0].coord,i[0])&&(r?t[0].coord=i[0]:t.shift()),r&&d(i[0],t[0].coord)&&t.unshift({coord:i[0]}),d(i[1],o.coord)&&(r?o.coord=i[1]:t.pop()),r&&d(o.coord,i[1])&&t.push({coord:i[1]});function d(h,v){return h=Rn(h),v=Rn(v),f?h>v:h<v}}const pi=E3e;function D3e(e){var t=Yt.extend(e);return Yt.registerClass(t),t}function P3e(e){var t=An.extend(e);return An.registerClass(t),t}function L3e(e){var t=_n.extend(e);return _n.registerClass(t),t}function R3e(e){var t=vn.extend(e);return vn.registerClass(t),t}var Ch=Math.PI*2,lu=To.CMD,O3e=["top","right","bottom","left"];function $3e(e,t,n,r,a){var i=n.width,o=n.height;switch(e){case"top":r.set(n.x+i/2,n.y-t),a.set(0,-1);break;case"bottom":r.set(n.x+i/2,n.y+o+t),a.set(0,1);break;case"left":r.set(n.x-t,n.y+o/2),a.set(-1,0);break;case"right":r.set(n.x+i+t,n.y+o/2),a.set(1,0);break}}function N3e(e,t,n,r,a,i,o,s,l){o-=e,s-=t;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var c=o*n+e,f=s*n+t;if(Math.abs(r-a)%Ch<1e-4)return l[0]=c,l[1]=f,u-n;if(i){var d=r;r=Ii(a),a=Ii(d)}else r=Ii(r),a=Ii(a);r>a&&(a+=Ch);var h=Math.atan2(s,o);if(h<0&&(h+=Ch),h>=r&&h<=a||h+Ch>=r&&h+Ch<=a)return l[0]=c,l[1]=f,u-n;var v=n*Math.cos(r)+e,p=n*Math.sin(r)+t,g=n*Math.cos(a)+e,m=n*Math.sin(a)+t,b=(v-o)*(v-o)+(p-s)*(p-s),_=(g-o)*(g-o)+(m-s)*(m-s);return b<_?(l[0]=v,l[1]=p,Math.sqrt(b)):(l[0]=g,l[1]=m,Math.sqrt(_))}function Q0(e,t,n,r,a,i,o,s){var l=a-e,u=i-t,c=n-e,f=r-t,d=Math.sqrt(c*c+f*f);c/=d,f/=d;var h=l*c+u*f,v=h/d;s&&(v=Math.min(Math.max(v,0),1)),v*=d;var p=o[0]=e+v*c,g=o[1]=t+v*f;return Math.sqrt((p-a)*(p-a)+(g-i)*(g-i))}function q9(e,t,n,r,a,i,o){n<0&&(e=e+n,n=-n),r<0&&(t=t+r,r=-r);var s=e+n,l=t+r,u=o[0]=Math.min(Math.max(a,e),s),c=o[1]=Math.min(Math.max(i,t),l);return Math.sqrt((u-a)*(u-a)+(c-i)*(c-i))}var Ci=[];function B3e(e,t,n){var r=q9(t.x,t.y,t.width,t.height,e.x,e.y,Ci);return n.set(Ci[0],Ci[1]),r}function V3e(e,t,n){for(var r=0,a=0,i=0,o=0,s,l,u=1/0,c=t.data,f=e.x,d=e.y,h=0;h<c.length;){var v=c[h++];h===1&&(r=c[h],a=c[h+1],i=r,o=a);var p=u;switch(v){case lu.M:i=c[h++],o=c[h++],r=i,a=o;break;case lu.L:p=Q0(r,a,c[h],c[h+1],f,d,Ci,!0),r=c[h++],a=c[h++];break;case lu.C:p=cH(r,a,c[h++],c[h++],c[h++],c[h++],c[h],c[h+1],f,d,Ci),r=c[h++],a=c[h++];break;case lu.Q:p=dH(r,a,c[h++],c[h++],c[h],c[h+1],f,d,Ci),r=c[h++],a=c[h++];break;case lu.A:var g=c[h++],m=c[h++],b=c[h++],_=c[h++],w=c[h++],C=c[h++];h+=1;var S=!!(1-c[h++]);s=Math.cos(w)*b+g,l=Math.sin(w)*_+m,h<=1&&(i=s,o=l);var x=(f-g)*_/b+g;p=N3e(g,m,_,w,w+C,S,x,d,Ci),r=Math.cos(w+C)*b+g,a=Math.sin(w+C)*_+m;break;case lu.R:i=r=c[h++],o=a=c[h++];var T=c[h++],M=c[h++];p=q9(i,o,T,M,f,d,Ci);break;case lu.Z:p=Q0(r,a,i,o,f,d,Ci,!0),r=i,a=o;break}p<u&&(u=p,n.set(Ci[0],Ci[1]))}return u}var Di=new Pt,yn=new Pt,Fn=new Pt,ho=new Pt,so=new Pt;function i$(e,t){if(e){var n=e.getTextGuideLine(),r=e.getTextContent();if(r&&n){var a=e.textGuideLineConfig||{},i=[[0,0],[0,0],[0,0]],o=a.candidates||O3e,s=r.getBoundingRect().clone();s.applyTransform(r.getComputedTransform());var l=1/0,u=a.anchor,c=e.getComputedTransform(),f=c&&xc([],c),d=t.get("length2")||0;u&&Fn.copy(u);for(var h=0;h<o.length;h++){var v=o[h];$3e(v,0,s,Di,ho),Pt.scaleAndAdd(yn,Di,ho,d),yn.transform(f);var p=e.getBoundingRect(),g=u?u.distance(yn):e instanceof zt?V3e(yn,e.path,Fn):B3e(yn,p,Fn);g<l&&(l=g,yn.transform(c),Fn.transform(c),Fn.toArray(i[0]),yn.toArray(i[1]),Di.toArray(i[2]))}X9(i,t.get("minTurnAngle")),n.setShape({points:i})}}}var eb=[],Kr=new Pt;function X9(e,t){if(t<=180&&t>0){t=t/180*Math.PI,Di.fromArray(e[0]),yn.fromArray(e[1]),Fn.fromArray(e[2]),Pt.sub(ho,Di,yn),Pt.sub(so,Fn,yn);var n=ho.len(),r=so.len();if(!(n<.001||r<.001)){ho.scale(1/n),so.scale(1/r);var a=ho.dot(so),i=Math.cos(t);if(i<a){var o=Q0(yn.x,yn.y,Fn.x,Fn.y,Di.x,Di.y,eb,!1);Kr.fromArray(eb),Kr.scaleAndAdd(so,o/Math.tan(Math.PI-t));var s=Fn.x!==yn.x?(Kr.x-yn.x)/(Fn.x-yn.x):(Kr.y-yn.y)/(Fn.y-yn.y);if(isNaN(s))return;s<0?Pt.copy(Kr,yn):s>1&&Pt.copy(Kr,Fn),Kr.toArray(e[1])}}}}function z3e(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,Di.fromArray(e[0]),yn.fromArray(e[1]),Fn.fromArray(e[2]),Pt.sub(ho,yn,Di),Pt.sub(so,Fn,yn);var r=ho.len(),a=so.len();if(!(r<.001||a<.001)){ho.scale(1/r),so.scale(1/a);var i=ho.dot(t),o=Math.cos(n);if(i<o){var s=Q0(yn.x,yn.y,Fn.x,Fn.y,Di.x,Di.y,eb,!1);Kr.fromArray(eb);var l=Math.PI/2,u=Math.acos(so.dot(t)),c=l+u-n;if(c>=l)Pt.copy(Kr,Fn);else{Kr.scaleAndAdd(so,s/Math.tan(Math.PI/2-c));var f=Fn.x!==yn.x?(Kr.x-yn.x)/(Fn.x-yn.x):(Kr.y-yn.y)/(Fn.y-yn.y);if(isNaN(f))return;f<0?Pt.copy(Kr,yn):f>1&&Pt.copy(Kr,Fn)}Kr.toArray(e[1])}}}}function o$(e,t,n,r){var a=n==="normal",i=a?e:e.ensureState(n);i.ignore=t;var o=r.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=r.getModel("lineStyle").getLineStyle();a?e.useStyle(s):i.style=s}function F3e(e,t){var n=t.smooth,r=t.points;if(r)if(e.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var a=Go(r[0],r[1]),i=Go(r[1],r[2]);if(!a||!i){e.lineTo(r[1][0],r[1][1]),e.lineTo(r[2][0],r[2][1]);return}var o=Math.min(a,i)*n,s=hv([],r[1],r[0],o/a),l=hv([],r[1],r[2],o/i),u=hv([],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],r[2][0],r[2][1])}else for(var c=1;c<r.length;c++)e.lineTo(r[c][0],r[c][1])}function LA(e,t,n){var r=e.getTextGuideLine(),a=e.getTextContent();if(!a){r&&e.removeTextGuideLine();return}for(var i=t.normal,o=i.get("show"),s=a.ignore,l=0;l<_p.length;l++){var u=_p[l],c=t[u],f=u==="normal";if(c){var d=c.get("show"),h=f?s:Lt(a.states[u]&&a.states[u].ignore,s);if(h||!Lt(d,o)){var v=f?r:r&&r.states[u];v&&(v.ignore=!0);continue}r||(r=new ia,e.setTextGuideLine(r),!f&&(s||!o)&&o$(r,!0,"normal",t.normal),e.stateProxy&&(r.stateProxy=e.stateProxy)),o$(r,!1,u,c)}}if(r){ft(r.style,n),r.style.fill=null;var p=i.get("showAbove"),g=e.textGuideLineConfig=e.textGuideLineConfig||{};g.showAbove=p||!1,r.buildPath=F3e}}function RA(e,t){t=t||"labelLine";for(var n={normal:e.getModel(t)},r=0;r<ta.length;r++){var a=ta[r];n[a]=e.getModel([a,t])}return n}function Z9(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];if(!r.defaultAttr.ignore){var a=r.label,i=a.getComputedTransform(),o=a.getBoundingRect(),s=!i||i[1]<1e-5&&i[2]<1e-5,l=a.style.margin||0,u=o.clone();u.applyTransform(i),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new $0(o,i):null;t.push({label:a,labelLine:r.labelLine,rect:u,localRect:o,obb:c,priority:r.priority,defaultAttr:r.defaultAttr,layoutOption:r.computedLayoutOption,axisAligned:s,transform:i})}}return t}function J9(e,t,n,r,a,i){var o=e.length;if(o<2)return;e.sort(function(T,M){return T.rect[t]-M.rect[t]});for(var s=0,l,u=!1,c=0,f=0;f<o;f++){var d=e[f],h=d.rect;l=h[t]-s,l<0&&(h[t]-=l,d.label[t]-=l,u=!0);var v=Math.max(-l,0);c+=v,s=h[t]+h[n]}c>0&&i&&C(-c/o,0,o);var p=e[0],g=e[o-1],m,b;_(),m<0&&S(-m,.8),b<0&&S(b,.8),_(),w(m,b,1),w(b,m,-1),_(),m<0&&x(-m),b<0&&x(b);function _(){m=p.rect[t]-r,b=a-g.rect[t]-g.rect[n]}function w(T,M,A){if(T<0){var k=Math.min(M,-T);if(k>0){C(k*A,0,o);var E=k+T;E<0&&S(-E*A,1)}else S(-T*A,1)}}function C(T,M,A){T!==0&&(u=!0);for(var k=M;k<A;k++){var E=e[k],D=E.rect;D[t]+=T,E.label[t]+=T}}function S(T,M){for(var A=[],k=0,E=1;E<o;E++){var D=e[E-1].rect,L=Math.max(e[E].rect[t]-D[t]-D[n],0);A.push(L),k+=L}if(k){var B=Math.min(Math.abs(T)/k,M);if(T>0)for(var E=0;E<o-1;E++){var N=A[E]*B;C(N,0,E+1)}else for(var E=o-1;E>0;E--){var N=A[E-1]*B;C(-N,E,o)}}}function x(T){var M=T<0?-1:1;T=Math.abs(T);for(var A=Math.ceil(T/(o-1)),k=0;k<o-1;k++)if(M>0?C(A,0,k+1):C(-A,o-k-1,o),T-=A,T<=0)return}return u}function H3e(e,t,n,r){return J9(e,"x","width",t,n,r)}function Q9(e,t,n,r){return J9(e,"y","height",t,n,r)}function e7(e){var t=[];e.sort(function(p,g){return g.priority-p.priority});var n=new Rt(0,0,0,0);function r(p){if(!p.ignore){var g=p.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}p.ignore=!0}for(var a=0;a<e.length;a++){var i=e[a],o=i.axisAligned,s=i.localRect,l=i.transform,u=i.label,c=i.labelLine;n.copy(i.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var f=i.obb,d=!1,h=0;h<t.length;h++){var v=t[h];if(n.intersect(v.rect)){if(o&&v.axisAligned){d=!0;break}if(v.obb||(v.obb=new $0(v.localRect,v.transform)),f||(f=new $0(s,l)),f.intersect(v.obb)){d=!0;break}}}d?(r(u),c&&r(c)):(u.attr("ignore",i.defaultAttr.ignore),c&&c.attr("ignore",i.defaultAttr.labelGuideIgnore),t.push(i))}}function G3e(e){if(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].slice());return t}}function W3e(e,t){var n=e.label,r=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:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:G3e(r&&r.shape.points)}}var s$=["align","verticalAlign","width","height","fontSize"],zr=new Uo,Gw=en(),K3e=en();function Pm(e,t,n){for(var r=0;r<n.length;r++){var a=n[r];t[a]!=null&&(e[a]=t[a])}}var Lm=["x","y","rotation"],U3e=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(t,n,r,a,i){var o=a.style,s=a.__hostTarget,l=s.textConfig||{},u=a.getComputedTransform(),c=a.getBoundingRect().plain();Rt.applyTransform(c,c,u),u?zr.setLocalTransform(u):(zr.x=zr.y=zr.rotation=zr.originX=zr.originY=0,zr.scaleX=zr.scaleY=1),zr.rotation=Ii(zr.rotation);var f=a.__hostTarget,d;if(f){d=f.getBoundingRect().plain();var h=f.getComputedTransform();Rt.applyTransform(d,d,h)}var v=d&&f.getTextGuideLine();this._labelList.push({label:a,labelLine:v,seriesModel:r,dataIndex:t,dataType:n,layoutOption:i,computedLayoutOption:null,rect:c,hostRect:d,priority:d?d.width*d.height:0,defaultAttr:{ignore:a.ignore,labelGuideIgnore:v&&v.ignore,x:zr.x,y:zr.y,scaleX:zr.scaleX,scaleY:zr.scaleY,rotation:zr.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:a.cursor,attachedPos:l.position,attachedRot:l.rotation}})},e.prototype.addLabelsOfSeries=function(t){var n=this;this._chartViewList.push(t);var r=t.__model,a=r.get("labelLayout");(ut(a)||Gt(a).length)&&t.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=Tt(i);o&&!o.disableLabelLayout&&n._addLabel(s.dataIndex,s.dataType,r,o,a)})},e.prototype.updateLayoutConfig=function(t){var n=t.getWidth(),r=t.getHeight();function a(_,w){return function(){i$(_,w)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],s=o.label,l=s.__hostTarget,u=o.defaultAttr,c=void 0;ut(o.layoutOption)?c=o.layoutOption(W3e(o,l)):c=o.layoutOption,c=c||{},o.computedLayoutOption=c;var f=Math.PI/180;l&&l.setTextConfig({local:!1,position:c.x!=null||c.y!=null?null:u.attachedPos,rotation:c.rotate!=null?c.rotate*f:u.attachedRot,offset:[c.dx||0,c.dy||0]});var d=!1;if(c.x!=null?(s.x=qe(c.x,n),s.setStyle("x",0),d=!0):(s.x=u.x,s.setStyle("x",u.style.x)),c.y!=null?(s.y=qe(c.y,r),s.setStyle("y",0),d=!0):(s.y=u.y,s.setStyle("y",u.style.y)),c.labelLinePoints){var h=l.getTextGuideLine();h&&(h.setShape({points:c.labelLinePoints}),d=!1)}var v=Gw(s);v.needsUpdateLabelLine=d,s.rotation=c.rotate!=null?c.rotate*f:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var p=0;p<s$.length;p++){var g=s$[p];s.setStyle(g,c[g]!=null?c[g]:u.style[g])}if(c.draggable){if(s.draggable=!0,s.cursor="move",l){var m=o.seriesModel;if(o.dataIndex!=null){var b=o.seriesModel.getData(o.dataType);m=b.getItemModel(o.dataIndex)}s.on("drag",a(l,m.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},e.prototype.layout=function(t){var n=t.getWidth(),r=t.getHeight(),a=Z9(this._labelList),i=ln(a,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=ln(a,function(l){return l.layoutOption.moveOverlap==="shiftY"});H3e(i,0,n),Q9(o,0,r);var s=ln(a,function(l){return l.layoutOption.hideOverlap});e7(s)},e.prototype.processLabelsOverall=function(){var t=this;F(this._chartViewList,function(n){var r=n.__model,a=n.ignoreLabelLineUpdate,i=r.isAnimationEnabled();n.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!a,l=o.getTextContent();!s&&l&&(s=Gw(l).needsUpdateLabelLine),s&&t._updateLabelLine(o,r),i&&t._animateLabels(o,r)})})},e.prototype._updateLabelLine=function(t,n){var r=t.getTextContent(),a=Tt(t),i=a.dataIndex;if(r&&i!=null){var o=n.getData(a.dataType),s=o.getItemModel(i),l={},u=o.getItemVisual(i,"style");if(u){var c=o.getVisual("drawType");l.stroke=u[c]}var f=s.getModel("labelLine");LA(t,RA(s),l),i$(t,f)}},e.prototype._animateLabels=function(t,n){var r=t.getTextContent(),a=t.getTextGuideLine();if(r&&(t.forceLabelAnimation||!r.ignore&&!r.invisible&&!t.disableLabelAnimation&&!Nf(t))){var i=Gw(r),o=i.oldLayout,s=Tt(t),l=s.dataIndex,u={x:r.x,y:r.y,rotation:r.rotation},c=n.getData(s.dataType);if(o){r.attr(o);var d=t.prevStates;d&&($t(d,"select")>=0&&r.attr(i.oldLayoutSelect),$t(d,"emphasis")>=0&&r.attr(i.oldLayoutEmphasis)),nn(r,u,n,l)}else if(r.attr(u),!$d(r).valueAnimation){var f=Lt(r.style.opacity,1);r.style.opacity=0,xn(r,{style:{opacity:f}},n,l)}if(i.oldLayout=u,r.states.select){var h=i.oldLayoutSelect={};Pm(h,u,Lm),Pm(h,r.states.select,Lm)}if(r.states.emphasis){var v=i.oldLayoutEmphasis={};Pm(v,u,Lm),Pm(v,r.states.emphasis,Lm)}zG(r,l,c,n,n)}if(a&&!a.ignore&&!a.invisible){var i=K3e(a),o=i.oldLayout,p={points:a.shape.points};o?(a.attr({shape:o}),nn(a,{shape:p},n)):(a.setShape(p),a.style.strokePercent=0,xn(a,{style:{strokePercent:1}},n)),i.oldLayout=p}},e}();const Y3e=U3e;var Ww=en();function j3e(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,n,r){var a=Ww(n).labelManager;a||(a=Ww(n).labelManager=new Y3e),a.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(t,n,r){var a=Ww(n).labelManager;r.updatedSeries.forEach(function(i){a.addLabelsOfSeries(n.getViewOfSeriesModel(i))}),a.updateLayoutConfig(n),a.layout(n),a.processLabelsOverall()})}var Kw=Math.sin,Uw=Math.cos,t7=Math.PI,uu=Math.PI*2,q3e=180/t7,X3e=function(){function e(){}return e.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},e.prototype.moveTo=function(t,n){this._add("M",t,n)},e.prototype.lineTo=function(t,n){this._add("L",t,n)},e.prototype.bezierCurveTo=function(t,n,r,a,i,o){this._add("C",t,n,r,a,i,o)},e.prototype.quadraticCurveTo=function(t,n,r,a){this._add("Q",t,n,r,a)},e.prototype.arc=function(t,n,r,a,i,o){this.ellipse(t,n,r,r,0,a,i,o)},e.prototype.ellipse=function(t,n,r,a,i,o,s,l){var u=s-o,c=!l,f=Math.abs(u),d=Ys(f-uu)||(c?u>=uu:-u>=uu),h=u>0?u%uu:u%uu+uu,v=!1;d?v=!0:Ys(f)?v=!1:v=h>=t7==!!c;var p=t+r*Uw(o),g=n+a*Kw(o);this._start&&this._add("M",p,g);var m=Math.round(i*q3e);if(d){var b=1/this._p,_=(c?1:-1)*(uu-b);this._add("A",r,a,m,1,+c,t+r*Uw(o+_),n+a*Kw(o+_)),b>.01&&this._add("A",r,a,m,0,+c,p,g)}else{var w=t+r*Uw(s),C=n+a*Kw(s);this._add("A",r,a,m,+v,+c,w,C)}},e.prototype.rect=function(t,n,r,a){this._add("M",t,n),this._add("l",r,0),this._add("l",0,a),this._add("l",-r,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(t,n,r,a,i,o,s,l,u){for(var c=[],f=this._p,d=1;d<arguments.length;d++){var h=arguments[d];if(isNaN(h)){this._invalid=!0;return}c.push(Math.round(h*f)/f)}this._d.push(t+c.join(" ")),this._start=t==="Z"},e.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},e.prototype.getStr=function(){return this._str},e}();const n7=X3e;var Tv="none",Z3e=Math.round;function J3e(e){var t=e.fill;return t!=null&&t!==Tv}function Q3e(e){var t=e.stroke;return t!=null&&t!==Tv}var E2=["lineCap","miterLimit","lineJoin"],e4e=Oe(E2,function(e){return"stroke-"+e.toLowerCase()});function t4e(e,t,n,r){var a=t.opacity==null?1:t.opacity;if(n instanceof vr){e("opacity",a);return}if(J3e(t)){var i=gp(t.fill);e("fill",i.color);var o=t.fillOpacity!=null?t.fillOpacity*i.opacity*a:i.opacity*a;(r||o<1)&&e("fill-opacity",o)}else e("fill",Tv);if(Q3e(t)){var s=gp(t.stroke);e("stroke",s.color);var l=t.strokeNoScale?n.getLineScale():1,u=l?(t.lineWidth||0)/l:0,c=t.strokeOpacity!=null?t.strokeOpacity*s.opacity*a:s.opacity*a,f=t.strokeFirst;if((r||u!==1)&&e("stroke-width",u),(r||f)&&e("paint-order",f?"stroke":"fill"),(r||c<1)&&e("stroke-opacity",c),t.lineDash){var d=pA(n),h=d[0],v=d[1];h&&(v=Z3e(v||0),e("stroke-dasharray",h.join(",")),(v||r)&&e("stroke-dashoffset",v))}else r&&e("stroke-dasharray",Tv);for(var p=0;p<E2.length;p++){var g=E2[p];if(r||t[g]!==R0[g]){var m=t[g]||R0[g];m&&e(e4e[p],m)}}}else r&&e("stroke",Tv)}var r7="http://www.w3.org/2000/svg",a7="http://www.w3.org/1999/xlink",n4e="http://www.w3.org/2000/xmlns/",r4e="http://www.w3.org/XML/1998/namespace";function i7(e){return document.createElementNS(r7,e)}function ir(e,t,n,r,a){return{tag:e,attrs:n||{},children:r,text:a,key:t}}function a4e(e,t){var n=[];if(t)for(var r in t){var a=t[r],i=r;a!==!1&&(a!==!0&&a!=null&&(i+='="'+a+'"'),n.push(i))}return"<"+e+" "+n.join(" ")+">"}function i4e(e){return"</"+e+">"}function OA(e,t){t=t||{};var n=t.newline?`
  89. `:"";function r(a){var i=a.children,o=a.tag,s=a.attrs,l=a.text;return a4e(o,s)+(o!=="style"?Ur(l):l||"")+(i?""+n+Oe(i,function(u){return r(u)}).join(n)+n:"")+i4e(o)}return r(e)}function o4e(e,t,n){n=n||{};var r=n.newline?`
  90. `:"",a=" {"+r,i=r+"}",o=Oe(Gt(e),function(l){return l+a+Oe(Gt(e[l]),function(u){return u+":"+e[l][u]+";"}).join(r)+i}).join(r),s=Oe(Gt(t),function(l){return"@keyframes "+l+a+Oe(Gt(t[l]),function(u){return u+a+Oe(Gt(t[l][u]),function(c){var f=t[l][u][c];return c==="d"&&(f='path("'+f+'")'),c+":"+f+";"}).join(r)+i}).join(r)+i}).join(r);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(r)}function I2(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function l$(e,t,n,r){return ir("svg","root",{width:e,height:t,xmlns:r7,"xmlns:xlink":a7,version:"1.1",baseProfile:"full",viewBox:r?"0 0 "+e+" "+t:!1},n)}var u$={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},vu="transform-origin";function s4e(e,t,n){var r=Ie({},e.shape);Ie(r,t),e.buildPath(n,r);var a=new n7;return a.reset(bH(e)),n.rebuildPath(a,1),a.generateStr(),a.getStr()}function l4e(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[vu]=n+"px "+r+"px")}var u4e={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function o7(e,t){var n=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function c4e(e,t,n){var r=e.shape.paths,a={},i,o;if(F(r,function(l){var u=I2(n.zrId);u.animation=!0,U1(l,{},u,!0);var c=u.cssAnims,f=u.cssNodes,d=Gt(c),h=d.length;if(h){o=d[h-1];var v=c[o];for(var p in v){var g=v[p];a[p]=a[p]||{d:""},a[p].d+=g.d||""}for(var m in f){var b=f[m].animation;b.indexOf(o)>=0&&(i=b)}}}),!!i){t.d=!1;var s=o7(a,n);return i.replace(o,s)}}function c$(e){return Je(e)?u$[e]?"cubic-bezier("+u$[e]+")":xk(e)?e:"":""}function U1(e,t,n,r){var a=e.animators,i=a.length,o=[];if(e instanceof A1){var s=c4e(e,t,n);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u<i;u++){var c=a[u],f=[c.getMaxTime()/1e3+"s"],d=c$(c.getClip().easing),h=c.getDelay();d?f.push(d):f.push("linear"),h&&f.push(h/1e3+"s"),c.getLoop()&&f.push("infinite");var v=f.join(" ");l[v]=l[v]||[v,[]],l[v][1].push(c)}function p(b){var _=b[1],w=_.length,C={},S={},x={},T="animation-timing-function";function M(j,de,ve){for(var ie=j.getTracks(),W=j.getMaxTime(),X=0;X<ie.length;X++){var oe=ie[X];if(oe.needsAnimate()){var pe=oe.keyframes,Se=oe.propName;if(ve&&(Se=ve(Se)),Se)for(var me=0;me<pe.length;me++){var Ee=pe[me],Ce=Math.round(Ee.time/W*100)+"%",we=c$(Ee.easing),Te=Ee.rawValue;(Je(Te)||Qt(Te))&&(de[Ce]=de[Ce]||{},de[Ce][Se]=Ee.rawValue,we&&(de[Ce][T]=we))}}}}for(var A=0;A<w;A++){var k=_[A],E=k.targetName;E?E==="shape"&&M(k,S):!r&&M(k,C)}for(var D in C){var L={};xH(L,e),Ie(L,C[D]);var B=_H(L),N=C[D][T];x[D]=B?{transform:B}:{},l4e(x[D],L),N&&(x[D][T]=N)}var O,$=!0;for(var D in S){x[D]=x[D]||{};var I=!O,N=S[D][T];I&&(O=new To);var z=O.len();O.reset(),x[D].d=s4e(e,S[D],O);var G=O.len();if(!I&&z!==G){$=!1;break}N&&(x[D][T]=N)}if(!$)for(var D in x)delete x[D].d;if(!r)for(var A=0;A<w;A++){var k=_[A],E=k.targetName;E==="style"&&M(k,x,function(ie){return u4e[ie]})}for(var U=Gt(x),Z=!0,ae,A=1;A<U.length;A++){var J=U[A-1],Q=U[A];if(x[J][vu]!==x[Q][vu]){Z=!1;break}ae=x[J][vu]}if(Z&&ae){for(var D in x)x[D][vu]&&delete x[D][vu];t[vu]=ae}if(ln(U,function(j){return Gt(x[j]).length>0}).length){var ee=o7(x,n);return ee+" "+b[0]+" both"}}for(var g in l){var s=p(l[g]);s&&o.push(s)}if(o.length){var m=n.zrId+"-cls-"+n.cssClassIdx++;n.cssNodes["."+m]={animation:o.join(",")},t.class=m}}var Dp=Math.round;function s7(e){return e&&Je(e.src)}function l7(e){return e&&ut(e.toDataURL)}function $A(e,t,n,r){t4e(function(a,i){var o=a==="fill"||a==="stroke";o&&yH(i)?c7(t,e,a,r):o&&Mk(i)?f7(n,e,a,r):e[a]=i},t,n,!1),m4e(n,e,r)}function f$(e){return Ys(e[0]-1)&&Ys(e[1])&&Ys(e[2])&&Ys(e[3]-1)}function f4e(e){return Ys(e[4])&&Ys(e[5])}function NA(e,t,n){if(t&&!(f4e(t)&&f$(t))){var r=n?10:1e4;e.transform=f$(t)?"translate("+Dp(t[4]*r)/r+" "+Dp(t[5]*r)/r+")":WIe(t)}}function d$(e,t,n){for(var r=e.points,a=[],i=0;i<r.length;i++)a.push(Dp(r[i][0]*n)/n),a.push(Dp(r[i][1]*n)/n);t.points=a.join(" ")}function h$(e){return!e.smooth}function d4e(e){var t=Oe(e,function(n){return typeof n=="string"?[n,n]:n});return function(n,r,a){for(var i=0;i<t.length;i++){var o=t[i],s=n[o[0]];s!=null&&(r[o[1]]=Dp(s*a)/a)}}}var h4e={circle:[d4e(["cx","cy","r"])],polyline:[d$,h$],polygon:[d$,h$]};function v4e(e){for(var t=e.animators,n=0;n<t.length;n++)if(t[n].targetName==="shape")return!0;return!1}function u7(e,t){var n=e.style,r=e.shape,a=h4e[e.type],i={},o=t.animation,s="path",l=e.style.strokePercent,u=t.compress&&bH(e)||4;if(a&&!t.willUpdate&&!(a[1]&&!a[1](r))&&!(o&&v4e(e))&&!(l<1)){s=e.type;var c=Math.pow(10,u);a[0](r,i,c)}else{var f=!e.path||e.shapeChanged();e.path||e.createPathProxy();var d=e.path;f&&(d.beginPath(),e.buildPath(d,e.shape),e.pathUpdated());var h=d.getVersion(),v=e,p=v.__svgPathBuilder;(v.__svgPathVersion!==h||!p||l!==v.__svgPathStrokePercent)&&(p||(p=v.__svgPathBuilder=new n7),p.reset(u),d.rebuildPath(p,l),p.generateStr(),v.__svgPathVersion=h,v.__svgPathStrokePercent=l),i.d=p.getStr()}return NA(i,e.transform),$A(i,n,e,t),t.animation&&U1(e,i,t),ir(s,e.id+"",i)}function p4e(e,t){var n=e.style,r=n.image;if(r&&!Je(r)&&(s7(r)?r=r.src:l7(r)&&(r=r.toDataURL())),!!r){var a=n.x||0,i=n.y||0,o=n.width,s=n.height,l={href:r,width:o,height:s};return a&&(l.x=a),i&&(l.y=i),NA(l,e.transform),$A(l,n,e,t),t.animation&&U1(e,l,t),ir("image",e.id+"",l)}}function g4e(e,t){var n=e.style,r=n.text;if(r!=null&&(r+=""),!(!r||isNaN(n.x)||isNaN(n.y))){var a=n.font||pl,i=n.x||0,o=UIe(n.y||0,y1(a),n.textBaseline),s=KIe[n.textAlign]||n.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(rG(n)){var u="",c=n.fontStyle,f=nG(n.fontSize);if(!parseFloat(f))return;var d=n.fontFamily||F6,h=n.fontWeight;u+="font-size:"+f+";font-family:"+d+";",c&&c!=="normal"&&(u+="font-style:"+c+";"),h&&h!=="normal"&&(u+="font-weight:"+h+";"),l.style=u}else l.style="font: "+a;return r.match(/\s/)&&(l["xml:space"]="preserve"),i&&(l.x=i),o&&(l.y=o),NA(l,e.transform),$A(l,n,e,t),t.animation&&U1(e,l,t),ir("text",e.id+"",l,void 0,r)}}function v$(e,t){if(e instanceof zt)return u7(e,t);if(e instanceof vr)return p4e(e,t);if(e instanceof bp)return g4e(e,t)}function m4e(e,t,n){var r=e.style;if(YIe(r)){var a=jIe(e),i=n.shadowCache,o=i[a];if(!o){var s=e.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var c=r.shadowOffsetX||0,f=r.shadowOffsetY||0,d=r.shadowBlur,h=gp(r.shadowColor),v=h.opacity,p=h.color,g=d/2/l,m=d/2/u,b=g+" "+m;o=n.zrId+"-s"+n.shadowIdx++,n.defs[o]=ir("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[ir("feDropShadow","",{dx:c/l,dy:f/u,stdDeviation:b,"flood-color":p,"flood-opacity":v})]),i[a]=o}t.filter=m1(o)}}function c7(e,t,n,r){var a=e[n],i,o={gradientUnits:a.global?"userSpaceOnUse":"objectBoundingBox"};if(gH(a))i="linearGradient",o.x1=a.x,o.y1=a.y,o.x2=a.x2,o.y2=a.y2;else if(mH(a))i="radialGradient",o.cx=Lt(a.x,.5),o.cy=Lt(a.y,.5),o.r=Lt(a.r,.5);else return;for(var s=a.colorStops,l=[],u=0,c=s.length;u<c;++u){var f=zx(s[u].offset)*100+"%",d=s[u].color,h=gp(d),v=h.color,p=h.opacity,g={offset:f};g["stop-color"]=v,p<1&&(g["stop-opacity"]=p),l.push(ir("stop",u+"",g))}var m=ir(i,"",o,l),b=OA(m),_=r.gradientCache,w=_[b];w||(w=r.zrId+"-g"+r.gradientIdx++,_[b]=w,o.id=w,r.defs[w]=ir(i,w,o,l)),t[n]=m1(w)}function f7(e,t,n,r){var a=e.style[n],i=e.getBoundingRect(),o={},s=a.repeat,l=s==="no-repeat",u=s==="repeat-x",c=s==="repeat-y",f;if(pH(a)){var d=a.imageWidth,h=a.imageHeight,v=void 0,p=a.image;if(Je(p)?v=p:s7(p)?v=p.src:l7(p)&&(v=p.toDataURL()),typeof Image>"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";Nr(d,g),Nr(h,g)}else if(d==null||h==null){var m=function(A,k){if(A){var E=A.elm,D=d||k.width,L=h||k.height;A.tag==="pattern"&&(u?(L=1,D/=i.width):c&&(D=1,L/=i.height)),A.attrs.width=D,A.attrs.height=L,E&&(E.setAttribute("width",D),E.setAttribute("height",L))}},b=$k(v,null,e,function(A){l||m(S,A),m(f,A)});b&&b.width&&b.height&&(d=d||b.width,h=h||b.height)}f=ir("image","img",{href:v,width:d,height:h}),o.width=d,o.height=h}else a.svgElement&&(f=pt(a.svgElement),o.width=a.svgWidth,o.height=a.svgHeight);if(f){var _,w;l?_=w=1:u?(w=1,_=o.width/i.width):c?(_=1,w=o.height/i.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),w!=null&&!isNaN(w)&&(o.height=w);var C=_H(a);C&&(o.patternTransform=C);var S=ir("pattern","",o,[f]),x=OA(S),T=r.patternCache,M=T[x];M||(M=r.zrId+"-p"+r.patternIdx++,T[x]=M,o.id=M,S=r.defs[M]=ir("pattern",M,o,[f])),t[n]=m1(M)}}function y4e(e,t,n){var r=n.clipPathCache,a=n.defs,i=r[e.id];if(!i){i=n.zrId+"-c"+n.clipPathIdx++;var o={id:i};r[e.id]=i,a[i]=ir("clipPath",i,o,[u7(e,n)])}t["clip-path"]=m1(i)}function p$(e){return document.createTextNode(e)}function Mu(e,t,n){e.insertBefore(t,n)}function g$(e,t){e.removeChild(t)}function m$(e,t){e.appendChild(t)}function d7(e){return e.parentNode}function h7(e){return e.nextSibling}function Yw(e,t){e.textContent=t}var y$=58,b4e=120,_4e=ir("","");function D2(e){return e===void 0}function no(e){return e!==void 0}function w4e(e,t,n){for(var r={},a=t;a<=n;++a){var i=e[a].key;i!==void 0&&(r[i]=a)}return r}function Kh(e,t){var n=e.key===t.key,r=e.tag===t.tag;return r&&n}function Pp(e){var t,n=e.children,r=e.tag;if(no(r)){var a=e.elm=i7(r);if(BA(_4e,e),Re(n))for(t=0;t<n.length;++t){var i=n[t];i!=null&&m$(a,Pp(i))}else no(e.text)&&!ht(e.text)&&m$(a,p$(e.text))}else e.elm=p$(e.text);return e.elm}function v7(e,t,n,r,a){for(;r<=a;++r){var i=n[r];i!=null&&Mu(e,Pp(i),t)}}function tb(e,t,n,r){for(;n<=r;++n){var a=t[n];if(a!=null)if(no(a.tag)){var i=d7(a.elm);g$(i,a.elm)}else g$(e,a.elm)}}function BA(e,t){var n,r=t.elm,a=e&&e.attrs||{},i=t.attrs||{};if(a!==i){for(n in i){var o=i[n],s=a[n];s!==o&&(o===!0?r.setAttribute(n,""):o===!1?r.removeAttribute(n):n.charCodeAt(0)!==b4e?r.setAttribute(n,o):n==="xmlns:xlink"||n==="xmlns"?r.setAttributeNS(n4e,n,o):n.charCodeAt(3)===y$?r.setAttributeNS(r4e,n,o):n.charCodeAt(5)===y$?r.setAttributeNS(a7,n,o):r.setAttribute(n,o))}for(n in a)n in i||r.removeAttribute(n)}}function S4e(e,t,n){for(var r=0,a=0,i=t.length-1,o=t[0],s=t[i],l=n.length-1,u=n[0],c=n[l],f,d,h,v;r<=i&&a<=l;)o==null?o=t[++r]:s==null?s=t[--i]:u==null?u=n[++a]:c==null?c=n[--l]:Kh(o,u)?(df(o,u),o=t[++r],u=n[++a]):Kh(s,c)?(df(s,c),s=t[--i],c=n[--l]):Kh(o,c)?(df(o,c),Mu(e,o.elm,h7(s.elm)),o=t[++r],c=n[--l]):Kh(s,u)?(df(s,u),Mu(e,s.elm,o.elm),s=t[--i],u=n[++a]):(D2(f)&&(f=w4e(t,r,i)),d=f[u.key],D2(d)?Mu(e,Pp(u),o.elm):(h=t[d],h.tag!==u.tag?Mu(e,Pp(u),o.elm):(df(h,u),t[d]=void 0,Mu(e,h.elm,o.elm))),u=n[++a]);(r<=i||a<=l)&&(r>i?(v=n[l+1]==null?null:n[l+1].elm,v7(e,v,n,a,l)):tb(e,t,r,i))}function df(e,t){var n=t.elm=e.elm,r=e.children,a=t.children;e!==t&&(BA(e,t),D2(t.text)?no(r)&&no(a)?r!==a&&S4e(n,r,a):no(a)?(no(e.text)&&Yw(n,""),v7(n,null,a,0,a.length-1)):no(r)?tb(n,r,0,r.length-1):no(e.text)&&Yw(n,""):e.text!==t.text&&(no(r)&&tb(n,r,0,r.length-1),Yw(n,t.text)))}function C4e(e,t){if(Kh(e,t))df(e,t);else{var n=e.elm,r=d7(n);Pp(t),r!==null&&(Mu(r,t.elm,h7(n)),tb(r,[e],0,0))}return t}var x4e=0,T4e=function(){function e(t,n,r){if(this.type="svg",this.refreshHover=b$(),this.configLayer=b$(),this.storage=n,this._opts=r=Ie({},r),this.root=t,this._id="zr"+x4e++,this._oldVNode=l$(r.width,r.height),t&&!r.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=i7("svg");BA(null,this._oldVNode),a.appendChild(i),t.appendChild(a)}this.resize(r.width,r.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",C4e(this._oldVNode,t),this._oldVNode=t}},e.prototype.renderOneToVNode=function(t){return v$(t,I2(this._id))},e.prototype.renderToVNode=function(t){t=t||{};var n=this.storage.getDisplayList(!0),r=this._width,a=this._height,i=I2(this._id);i.animation=t.animation,i.willUpdate=t.willUpdate,i.compress=t.compress;var o=[],s=this._bgVNode=M4e(r,a,this._backgroundColor,i);s&&o.push(s);var l=t.compress?null:this._mainVNode=ir("g","main",{},[]);this._paintList(n,i,l?l.children:o),l&&o.push(l);var u=Oe(Gt(i.defs),function(d){return i.defs[d]});if(u.length&&o.push(ir("defs","defs",{},u)),t.animation){var c=o4e(i.cssNodes,i.cssAnims,{newline:!0});if(c){var f=ir("style","stl",{},[],c);o.push(f)}}return l$(r,a,o,t.useViewBox)},e.prototype.renderToString=function(t){return t=t||{},OA(this.renderToVNode({animation:Lt(t.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:Lt(t.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(t,n,r){for(var a=t.length,i=[],o=0,s,l,u=0,c=0;c<a;c++){var f=t[c];if(!f.invisible){var d=f.__clipPaths,h=d&&d.length||0,v=l&&l.length||0,p=void 0;for(p=Math.max(h-1,v-1);p>=0&&!(d&&l&&d[p]===l[p]);p--);for(var g=v-1;g>p;g--)o--,s=i[o-1];for(var m=p+1;m<h;m++){var b={};y4e(d[m],b,n);var _=ir("g","clip-g-"+u++,b,[]);(s?s.children:r).push(_),i[o++]=_,s=_}l=d;var w=v$(f,n);w&&(s?s.children:r).push(w)}}},e.prototype.resize=function(t,n){var r=this._opts,a=this.root,i=this._viewport;if(t!=null&&(r.width=t),n!=null&&(r.height=n),a&&i&&(i.style.display="none",t=wf(a,0,r),n=wf(a,1,r),i.style.display=""),this._width!==t||this._height!==n){if(this._width=t,this._height=n,i){var o=i.style;o.width=t+"px",o.height=n+"px"}if(Mk(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",t),s.setAttribute("height",n));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",t),l.setAttribute("height",n))}}},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},e.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},e.prototype.toDataURL=function(t){var n=this.renderToString(),r="data:image/svg+xml;";return t?(n=XIe(n),n&&r+"base64,"+n):r+"charset=UTF-8,"+encodeURIComponent(n)},e}();function b$(e){return function(){}}function M4e(e,t,n,r){var a;if(n&&n!=="none")if(a=ir("rect","bg",{width:e,height:t,x:"0",y:"0",id:"0"}),yH(n))c7({fill:n},a.attrs,"fill",r);else if(Mk(n))f7({style:{fill:n},dirty:Nn,getBoundingRect:function(){return{width:e,height:t}}},a.attrs,"fill",r);else{var i=gp(n),o=i.color,s=i.opacity;a.attrs.fill=o,s<1&&(a.attrs["fill-opacity"]=s)}return a}const k4e=T4e;function A4e(e){e.registerPainter("svg",k4e)}function _$(e,t,n){var r=Vi.createCanvas(),a=t.getWidth(),i=t.getHeight(),o=r.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=a+"px",o.height=i+"px",r.setAttribute("data-zr-dom-id",e)),r.width=a*n,r.height=i*n,r}var E4e=function(e){ge(t,e);function t(n,r,a){var i=e.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.incremental=!1,i.zlevel=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__used=!1,i.__drawIndex=0,i.__startIndex=0,i.__endIndex=0,i.__prevStartIndex=null,i.__prevEndIndex=null;var o;a=a||P0,typeof n=="string"?o=_$(n,r,a):ht(n)&&(o=n,n=o.id),i.id=n,i.dom=o;var s=o.style;return s&&(wk(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),i.painter=r,i.dpr=a,i}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 n=this.dpr;this.domBack=_$("back-"+this.id,this.painter,n),this.ctxBack=this.domBack.getContext("2d"),n!==1&&this.ctxBack.scale(n,n)},t.prototype.createRepaintRects=function(n,r,a,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new Rt(0,0,0,0);function c(b){if(!(!b.isFinite()||b.isZero()))if(o.length===0){var _=new Rt(0,0,0,0);_.copy(b),o.push(_)}else{for(var w=!1,C=1/0,S=0,x=0;x<o.length;++x){var T=o[x];if(T.intersect(b)){var M=new Rt(0,0,0,0);M.copy(T),M.union(b),o[x]=M,w=!0;break}else if(l){u.copy(b),u.union(T);var A=b.width*b.height,k=T.width*T.height,E=u.width*u.height,D=E-A-k;D<C&&(C=D,S=x)}}if(l&&(o[S].union(b),w=!0),!w){var _=new Rt(0,0,0,0);_.copy(b),o.push(_)}l||(l=o.length>=s)}}for(var f=this.__startIndex;f<this.__endIndex;++f){var d=n[f];if(d){var h=d.shouldBePainted(a,i,!0,!0),v=d.__isRendered&&(d.__dirty&Ta||!h)?d.getPrevPaintRect():null;v&&c(v);var p=h&&(d.__dirty&Ta||!d.__isRendered)?d.getPaintRect():null;p&&c(p)}}for(var f=this.__prevStartIndex;f<this.__prevEndIndex;++f){var d=r[f],h=d.shouldBePainted(a,i,!0,!0);if(d&&(!h||!d.__zr)&&d.__isRendered){var v=d.getPrevPaintRect();v&&c(v)}}var g;do{g=!1;for(var f=0;f<o.length;){if(o[f].isZero()){o.splice(f,1);continue}for(var m=f+1;m<o.length;)o[f].intersect(o[m])?(g=!0,o[f].union(o[m]),o.splice(m,1)):m++;f++}}while(g);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(n,r){var a=this.dpr,i=this.dom,o=i.style,s=this.domBack;o&&(o.width=n+"px",o.height=r+"px"),i.width=n*a,i.height=r*a,s&&(s.width=n*a,s.height=r*a,a!==1&&this.ctxBack.scale(a,a))},t.prototype.clear=function(n,r,a){var i=this.dom,o=this.ctx,s=i.width,l=i.height;r=r||this.clearColor;var u=this.motionBlur&&!n,c=this.lastFrameAlpha,f=this.dpr,d=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,s/f,l/f));var h=this.domBack;function v(p,g,m,b){if(o.clearRect(p,g,m,b),r&&r!=="transparent"){var _=void 0;if(ig(r)){var w=r.global||r.__width===m&&r.__height===b;_=w&&r.__canvasGradient||_2(o,r,{x:0,y:0,width:m,height:b}),r.__canvasGradient=_,r.__width=m,r.__height=b}else U6(r)&&(r.scaleX=r.scaleX||f,r.scaleY=r.scaleY||f,_=w2(o,r,{dirty:function(){d.setUnpainted(),d.__painter.refresh()}}));o.save(),o.fillStyle=_||r,o.fillRect(p,g,m,b),o.restore()}u&&(o.save(),o.globalAlpha=c,o.drawImage(h,p,g,m,b),o.restore())}!a||u?v(0,0,s,l):a.length&&F(a,function(p){v(p.x*f,p.y*f,p.width*f,p.height*f)})},t}(fi);const jw=E4e;var w$=1e5,cu=314159,Rm=.01,I4e=.001;function D4e(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function P4e(e,t){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}var L4e=function(){function e(t,n,r,a){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=r=Ie({},r||{}),this.dpr=r.devicePixelRatio||P0,this._singleCanvas=i,this.root=t;var o=t.style;o&&(wk(t),t.innerHTML=""),this.storage=n;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(i){var c=t,f=c.width,d=c.height;r.width!=null&&(f=r.width),r.height!=null&&(d=r.height),this.dpr=r.devicePixelRatio||1,c.width=f*this.dpr,c.height=d*this.dpr,this._width=f,this._height=d;var h=new jw(c,this,this.dpr);h.__builtin__=!0,h.initContext(),l[cu]=h,h.zlevel=cu,s.push(cu),this._domRoot=t}else{this._width=wf(t,0,r),this._height=wf(t,1,r);var u=this._domRoot=P4e(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 n=this.storage.getDisplayList(!0),r=this._prevDisplayList,a=this._zlevelList;this._redrawId=Math.random(),this._paintList(n,r,t,this._redrawId);for(var i=0;i<a.length;i++){var o=a[i],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=i===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=n.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(t){var n=t.length,r=this._hoverlayer;if(r&&r.clear(),!!n){for(var a={inHover:!0,viewWidth:this._width,viewHeight:this._height},i,o=0;o<n;o++){var s=t[o];s.__inHover&&(r||(r=this._hoverlayer=this.getLayer(w$)),i||(i=r.ctx,i.save()),Hu(i,s,a,o===n-1))}i&&i.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(w$)},e.prototype.paintOne=function(t,n){gA(t,n)},e.prototype._paintList=function(t,n,r,a){if(this._redrawId===a){r=r||!1,this._updateLayerStatus(t);var i=this._doPaintList(t,n,r),o=i.finished,s=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;$x(function(){l._paintList(t,n,r,a)})}}},e.prototype._compositeManually=function(){var t=this.getLayer(cu).ctx,n=this._domRoot.width,r=this._domRoot.height;t.clearRect(0,0,n,r),this.eachBuiltinLayer(function(a){a.virtual&&t.drawImage(a.dom,0,0,n,r)})},e.prototype._doPaintList=function(t,n,r){for(var a=this,i=[],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||r)&&i.push(u)}for(var c=!0,f=!1,d=function(p){var g=i[p],m=g.ctx,b=o&&g.createRepaintRects(t,n,h._width,h._height),_=r?g.__startIndex:g.__drawIndex,w=!r&&g.incremental&&Date.now,C=w&&Date.now(),S=g.zlevel===h._zlevelList[0]?h._backgroundColor:null;if(g.__startIndex===g.__endIndex)g.clear(!1,S,b);else if(_===g.__startIndex){var x=t[_];(!x.incremental||!x.notClear||r)&&g.clear(!1,S,b)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=g.__startIndex);var T,M=function(D){var L={inHover:!1,allClipped:!1,prevEl:null,viewWidth:a._width,viewHeight:a._height};for(T=_;T<g.__endIndex;T++){var B=t[T];if(B.__inHover&&(f=!0),a._doPaintEl(B,g,o,D,L,T===g.__endIndex-1),w){var N=Date.now()-C;if(N>15)break}}L.prevElClipPaths&&m.restore()};if(b)if(b.length===0)T=g.__endIndex;else for(var A=h.dpr,k=0;k<b.length;++k){var E=b[k];m.save(),m.beginPath(),m.rect(E.x*A,E.y*A,E.width*A,E.height*A),m.clip(),M(E),m.restore()}else m.save(),M(),m.restore();g.__drawIndex=T,g.__drawIndex<g.__endIndex&&(c=!1)},h=this,v=0;v<i.length;v++)d(v);return Jt.wxa&&F(this._layers,function(p){p&&p.ctx&&p.ctx.draw&&p.ctx.draw()}),{finished:c,needsRefreshHover:f}},e.prototype._doPaintEl=function(t,n,r,a,i,o){var s=n.ctx;if(r){var l=t.getPaintRect();(!a||l&&l.intersect(a))&&(Hu(s,t,i,o),t.setPrevPaintRect(l))}else Hu(s,t,i,o)},e.prototype.getLayer=function(t,n){this._singleCanvas&&!this._needsManuallyCompositing&&(t=cu);var r=this._layers[t];return r||(r=new jw("zr_"+t,this,this.dpr),r.zlevel=t,r.__builtin__=!0,this._layerConfig[t]?Dt(r,this._layerConfig[t],!0):this._layerConfig[t-Rm]&&Dt(r,this._layerConfig[t-Rm],!0),n&&(r.virtual=n),this.insertLayer(t,r),r.initContext()),r},e.prototype.insertLayer=function(t,n){var r=this._layers,a=this._zlevelList,i=a.length,o=this._domRoot,s=null,l=-1;if(!r[t]&&D4e(n)){if(i>0&&t>a[0]){for(l=0;l<i-1&&!(a[l]<t&&a[l+1]>t);l++);s=r[a[l]]}if(a.splice(l+1,0,t),r[t]=n,!n.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(n.dom,u.nextSibling):o.appendChild(n.dom)}else o.firstChild?o.insertBefore(n.dom,o.firstChild):o.appendChild(n.dom);n.__painter=this}},e.prototype.eachLayer=function(t,n){for(var r=this._zlevelList,a=0;a<r.length;a++){var i=r[a];t.call(n,this._layers[i],i)}},e.prototype.eachBuiltinLayer=function(t,n){for(var r=this._zlevelList,a=0;a<r.length;a++){var i=r[a],o=this._layers[i];o.__builtin__&&t.call(n,o,i)}},e.prototype.eachOtherLayer=function(t,n){for(var r=this._zlevelList,a=0;a<r.length;a++){var i=r[a],o=this._layers[i];o.__builtin__||t.call(n,o,i)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(f,d){f.__dirty=f.__used=!1});function n(f){i&&(i.__endIndex!==f&&(i.__dirty=!0),i.__endIndex=f)}if(this._singleCanvas)for(var r=1;r<t.length;r++){var a=t[r];if(a.zlevel!==t[r-1].zlevel||a.incremental){this._needsManuallyCompositing=!0;break}}var i=null,o=0,s,l;for(l=0;l<t.length;l++){var a=t[l],u=a.zlevel,c=void 0;s!==u&&(s=u,o=0),a.incremental?(c=this.getLayer(u+I4e,this._needsManuallyCompositing),c.incremental=!0,o=1):c=this.getLayer(u+(o>0?Rm:0),this._needsManuallyCompositing),c.__builtin__||f1("ZLevel "+u+" has been used by unkown layer "+c.id),c!==i&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,n(l),i=c),a.__dirty&Ta&&!a.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}n(l),this.eachBuiltinLayer(function(f,d){!f.__used&&f.getElementCount()>0&&(f.__dirty=!0,f.__startIndex=f.__endIndex=f.__drawIndex=0),f.__dirty&&f.__drawIndex<0&&(f.__drawIndex=f.__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,F(this._layers,function(n){n.setUnpainted()})},e.prototype.configLayer=function(t,n){if(n){var r=this._layerConfig;r[t]?Dt(r[t],n,!0):r[t]=n;for(var a=0;a<this._zlevelList.length;a++){var i=this._zlevelList[a];if(i===t||i===t+Rm){var o=this._layers[i];Dt(o,r[t],!0)}}}},e.prototype.delLayer=function(t){var n=this._layers,r=this._zlevelList,a=n[t];a&&(a.dom.parentNode.removeChild(a.dom),delete n[t],r.splice($t(r,t),1))},e.prototype.resize=function(t,n){if(this._domRoot.style){var r=this._domRoot;r.style.display="none";var a=this._opts,i=this.root;if(t!=null&&(a.width=t),n!=null&&(a.height=n),t=wf(i,0,a),n=wf(i,1,a),r.style.display="",this._width!==t||n!==this._height){r.style.width=t+"px",r.style.height=n+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,n);this.refresh(!0)}this._width=t,this._height=n}else{if(t==null||n==null)return;this._width=t,this._height=n,this.getLayer(cu).resize(t,n)}return this},e.prototype.clearLayer=function(t){var n=this._layers[t];n&&n.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[cu].dom;var n=new jw("image",this,t.pixelRatio||this.dpr);n.initContext(),n.clear(!1,t.backgroundColor||this._backgroundColor);var r=n.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var a=n.dom.width,i=n.dom.height;this.eachLayer(function(f){f.__builtin__?r.drawImage(f.dom,0,0,a,i):f.renderToCanvas&&(r.save(),f.renderToCanvas(r),r.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 c=s[l];Hu(r,c,o,l===u-1)}return n.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();const R4e=L4e;function O4e(e){e.registerPainter("canvas",R4e)}var $4e=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.getInitialData=function(n){return Io(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(n){var r=new bt,a=Hn("line",0,n.itemHeight/2,n.itemWidth,0,n.lineStyle.stroke,!1);r.add(a),a.setStyle(n.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=i==="none"?"circle":i,l=n.itemHeight*.8,u=Hn(s,(n.itemWidth-l)/2,(n.itemHeight-l)/2,l,l,n.itemStyle.fill);r.add(u),u.setStyle(n.itemStyle);var c=n.iconRotate==="inherit"?o:n.iconRotate||0;return u.rotation=c*Math.PI/180,u.setOrigin([n.itemWidth/2,n.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),r},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(_n);const N4e=$4e;function vd(e,t){var n=e.mapDimensionsAll("defaultedLabel"),r=n.length;if(r===1){var a=dd(e,t,n[0]);return a!=null?a+"":null}else if(r){for(var i=[],o=0;o<n.length;o++)i.push(dd(e,t,n[o]));return i.join(" ")}}function p7(e,t){var n=e.mapDimensionsAll("defaultedLabel");if(!Re(t))return t+"";for(var r=[],a=0;a<n.length;a++){var i=e.getDimensionIndex(n[a]);i>=0&&r.push(t[i])}return r.join(" ")}var B4e=function(e){ge(t,e);function t(n,r,a,i){var o=e.call(this)||this;return o.updateData(n,r,a,i),o}return t.prototype._createSymbol=function(n,r,a,i,o){this.removeAll();var s=Hn(n,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=V4e,this._symbolType=n,this.add(s)},t.prototype.stopSymbolAnimation=function(n){this.childAt(0).stopAnimation(null,n)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){rs(this.childAt(0))},t.prototype.downplay=function(){as(this.childAt(0))},t.prototype.setZ=function(n,r){var a=this.childAt(0);a.zlevel=n,a.z=r},t.prototype.setDraggable=function(n,r){var a=this.childAt(0);a.draggable=n,a.cursor=!r&&n?"move":a.cursor},t.prototype.updateData=function(n,r,a,i){this.silent=!1;var o=n.getItemVisual(r,"symbol")||"circle",s=n.hostModel,l=t.getSymbolSize(n,r),u=o!==this._symbolType,c=i&&i.disableAnimation;if(u){var f=n.getItemVisual(r,"symbolKeepAspect");this._createSymbol(o,n,r,l,f)}else{var d=this.childAt(0);d.silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};c?d.attr(h):nn(d,h,s,r),Gi(d)}if(this._updateCommon(n,r,l,a,i),u){var d=this.childAt(0);if(!c){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,xn(d,h,s,r)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(n,r,a,i,o){var s=this.childAt(0),l=n.hostModel,u,c,f,d,h,v,p,g,m;if(i&&(u=i.emphasisItemStyle,c=i.blurItemStyle,f=i.selectItemStyle,d=i.focus,h=i.blurScope,p=i.labelStatesModels,g=i.hoverScale,m=i.cursorStyle,v=i.emphasisDisabled),!i||n.hasItemOption){var b=i&&i.itemModel?i.itemModel:n.getItemModel(r),_=b.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),f=b.getModel(["select","itemStyle"]).getItemStyle(),c=b.getModel(["blur","itemStyle"]).getItemStyle(),d=_.get("focus"),h=_.get("blurScope"),v=_.get("disabled"),p=lr(b),g=_.getShallow("scale"),m=b.getShallow("cursor")}var w=n.getItemVisual(r,"symbolRotate");s.attr("rotation",(w||0)*Math.PI/180||0);var C=kc(n.getItemVisual(r,"symbolOffset"),a);C&&(s.x=C[0],s.y=C[1]),m&&s.attr("cursor",m);var S=n.getItemVisual(r,"style"),x=S.fill;if(s instanceof vr){var T=s.style;s.useStyle(Ie({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},S))}else s.__isEmptyBrush?s.useStyle(Ie({},S)):s.useStyle(S),s.style.decal=null,s.setColor(x,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var M=n.getItemVisual(r,"liftZ"),A=this._z2;M!=null?A==null&&(this._z2=s.z2,s.z2+=M):A!=null&&(s.z2=A,this._z2=null);var k=o&&o.useNameLabel;Tr(s,p,{labelFetcher:l,labelDataIndex:r,defaultText:E,inheritColor:x,defaultOpacity:S.opacity});function E(B){return k?n.getName(B):vd(n,B)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var D=s.ensureState("emphasis");D.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var L=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;D.scaleX=this._sizeX*L,D.scaleY=this._sizeY*L,this.setSymbolScale(1),$n(this,d,h,v)},t.prototype.setSymbolScale=function(n){this.scaleX=this.scaleY=n},t.prototype.fadeOut=function(n,r,a){var i=this.childAt(0),o=Tt(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&ml(l,{style:{opacity:0}},r,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();ml(i,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:o,cb:n,removeOpt:s})},t.getSymbolSize=function(n,r){return Wd(n.getItemVisual(r,"symbolSize"))},t}(bt);function V4e(e,t){this.parent.drift(e,t)}const wg=B4e;function qw(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&e.getItemVisual(n,"symbol")!=="none"}function S$(e){return e!=null&&!ht(e)&&(e={isIgnore:e}),e||{}}function C$(e){var t=e.hostModel,n=t.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:lr(t),cursorStyle:t.get("cursor")}}var z4e=function(){function e(t){this.group=new bt,this._SymbolCtor=t||wg}return e.prototype.updateData=function(t,n){this._progressiveEls=null,n=S$(n);var r=this.group,a=t.hostModel,i=this._data,o=this._SymbolCtor,s=n.disableAnimation,l=C$(t),u={disableAnimation:s},c=n.getSymbolPoint||function(f){return t.getItemLayout(f)};i||r.removeAll(),t.diff(i).add(function(f){var d=c(f);if(qw(t,d,f,n)){var h=new o(t,f,l,u);h.setPosition(d),t.setItemGraphicEl(f,h),r.add(h)}}).update(function(f,d){var h=i.getItemGraphicEl(d),v=c(f);if(!qw(t,v,f,n)){r.remove(h);return}var p=t.getItemVisual(f,"symbol")||"circle",g=h&&h.getSymbolType&&h.getSymbolType();if(!h||g&&g!==p)r.remove(h),h=new o(t,f,l,u),h.setPosition(v);else{h.updateData(t,f,l,u);var m={x:v[0],y:v[1]};s?h.attr(m):nn(h,m,a)}r.add(h),t.setItemGraphicEl(f,h)}).remove(function(f){var d=i.getItemGraphicEl(f);d&&d.fadeOut(function(){r.remove(d)},a)}).execute(),this._getSymbolPoint=c,this._data=t},e.prototype.updateLayout=function(){var t=this,n=this._data;n&&n.eachItemGraphicEl(function(r,a){var i=t._getSymbolPoint(a);r.setPosition(i),r.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=C$(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,n,r){this._progressiveEls=[],r=S$(r);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i<t.end;i++){var o=n.getItemLayout(i);if(qw(n,o,i,r)){var s=new this._SymbolCtor(n,i,this._seriesScope);s.traverse(a),s.setPosition(o),this.group.add(s),n.setItemGraphicEl(i,s),this._progressiveEls.push(s)}}},e.prototype.eachRendered=function(t){Ll(this._progressiveEls||this.group,t)},e.prototype.remove=function(t){var n=this.group,r=this._data;r&&t?r.eachItemGraphicEl(function(a){a.fadeOut(function(){n.remove(a)},r.hostModel)}):n.removeAll()},e}();const Sg=z4e;function g7(e,t,n){var r=e.getBaseAxis(),a=e.getOtherAxis(r),i=F4e(a,n),o=r.dim,s=a.dim,l=t.mapDimension(s),u=t.mapDimension(o),c=s==="x"||s==="radius"?1:0,f=Oe(e.dimensions,function(v){return t.mapDimension(v)}),d=!1,h=t.getCalculationInfo("stackResultDimension");return os(t,f[0])&&(d=!0,f[0]=h),os(t,f[1])&&(d=!0,f[1]=h),{dataDimsForPoint:f,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!d,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function F4e(e,t){var n=0,r=e.scale.getExtent();return t==="start"?n=r[0]:t==="end"?n=r[1]:Qt(t)&&!isNaN(t)?n=t:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]),n}function m7(e,t,n,r){var a=NaN;e.stacked&&(a=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(a)&&(a=e.valueStart);var i=e.baseDataOffset,o=[];return o[i]=n.get(e.baseDim,r),o[1-i]=a,t.dataToPoint(o)}function H4e(e,t){var n=[];return t.diff(e).add(function(r){n.push({cmd:"+",idx:r})}).update(function(r,a){n.push({cmd:"=",idx:a,idx1:r})}).remove(function(r){n.push({cmd:"-",idx:r})}).execute(),n}function G4e(e,t,n,r,a,i,o,s){for(var l=H4e(e,t),u=[],c=[],f=[],d=[],h=[],v=[],p=[],g=g7(a,t,o),m=e.getLayout("points")||[],b=t.getLayout("points")||[],_=0;_<l.length;_++){var w=l[_],C=!0,S=void 0,x=void 0;switch(w.cmd){case"=":S=w.idx*2,x=w.idx1*2;var T=m[S],M=m[S+1],A=b[x],k=b[x+1];(isNaN(T)||isNaN(M))&&(T=A,M=k),u.push(T,M),c.push(A,k),f.push(n[S],n[S+1]),d.push(r[x],r[x+1]),p.push(t.getRawIndex(w.idx1));break;case"+":var E=w.idx,D=g.dataDimsForPoint,L=a.dataToPoint([t.get(D[0],E),t.get(D[1],E)]);x=E*2,u.push(L[0],L[1]),c.push(b[x],b[x+1]);var B=m7(g,a,t,E);f.push(B[0],B[1]),d.push(r[x],r[x+1]),p.push(t.getRawIndex(E));break;case"-":C=!1}C&&(h.push(w),v.push(v.length))}v.sort(function(J,Q){return p[J]-p[Q]});for(var N=u.length,O=fo(N),$=fo(N),I=fo(N),z=fo(N),G=[],_=0;_<v.length;_++){var U=v[_],Z=_*2,ae=U*2;O[Z]=u[ae],O[Z+1]=u[ae+1],$[Z]=c[ae],$[Z+1]=c[ae+1],I[Z]=f[ae],I[Z+1]=f[ae+1],z[Z]=d[ae],z[Z+1]=d[ae+1],G[_]=h[U]}return{current:O,next:$,stackedOnCurrent:I,stackedOnNext:z,status:G}}var ks=Math.min,As=Math.max;function ec(e,t){return isNaN(e)||isNaN(t)}function P2(e,t,n,r,a,i,o,s,l){for(var u,c,f,d,h,v,p=n,g=0;g<r;g++){var m=t[p*2],b=t[p*2+1];if(p>=a||p<0)break;if(ec(m,b)){if(l){p+=i;continue}break}if(p===n)e[i>0?"moveTo":"lineTo"](m,b),f=m,d=b;else{var _=m-u,w=b-c;if(_*_+w*w<.5){p+=i;continue}if(o>0){for(var C=p+i,S=t[C*2],x=t[C*2+1];S===m&&x===b&&g<r;)g++,C+=i,p+=i,S=t[C*2],x=t[C*2+1],m=t[p*2],b=t[p*2+1],_=m-u,w=b-c;var T=g+1;if(l)for(;ec(S,x)&&T<r;)T++,C+=i,S=t[C*2],x=t[C*2+1];var M=.5,A=0,k=0,E=void 0,D=void 0;if(T>=r||ec(S,x))h=m,v=b;else{A=S-u,k=x-c;var L=m-u,B=S-m,N=b-c,O=x-b,$=void 0,I=void 0;if(s==="x"){$=Math.abs(L),I=Math.abs(B);var z=A>0?1:-1;h=m-z*$*o,v=b,E=m+z*I*o,D=b}else if(s==="y"){$=Math.abs(N),I=Math.abs(O);var G=k>0?1:-1;h=m,v=b-G*$*o,E=m,D=b+G*I*o}else $=Math.sqrt(L*L+N*N),I=Math.sqrt(B*B+O*O),M=I/(I+$),h=m-A*o*(1-M),v=b-k*o*(1-M),E=m+A*o*M,D=b+k*o*M,E=ks(E,As(S,m)),D=ks(D,As(x,b)),E=As(E,ks(S,m)),D=As(D,ks(x,b)),A=E-m,k=D-b,h=m-A*$/I,v=b-k*$/I,h=ks(h,As(u,m)),v=ks(v,As(c,b)),h=As(h,ks(u,m)),v=As(v,ks(c,b)),A=m-h,k=b-v,E=m+A*I/$,D=b+k*I/$}e.bezierCurveTo(f,d,h,v,m,b),f=E,d=D}else e.lineTo(m,b)}u=m,c=b,p+=i}return g}var y7=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),W4e=function(e){ge(t,e);function t(n){var r=e.call(this,n)||this;return r.type="ec-polyline",r}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new y7},t.prototype.buildPath=function(n,r){var a=r.points,i=0,o=a.length/2;if(r.connectNulls){for(;o>0&&ec(a[o*2-2],a[o*2-1]);o--);for(;i<o&&ec(a[i*2],a[i*2+1]);i++);}for(;i<o;)i+=P2(n,a,i,o,o,1,r.smooth,r.smoothMonotone,r.connectNulls)+1},t.prototype.getPointOn=function(n,r){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var a=this.path,i=a.data,o=To.CMD,s,l,u=r==="x",c=[],f=0;f<i.length;){var d=i[f++],h=void 0,v=void 0,p=void 0,g=void 0,m=void 0,b=void 0,_=void 0;switch(d){case o.M:s=i[f++],l=i[f++];break;case o.L:if(h=i[f++],v=i[f++],_=u?(n-s)/(h-s):(n-l)/(v-l),_<=1&&_>=0){var w=u?(v-l)*_+l:(h-s)*_+s;return u?[n,w]:[w,n]}s=h,l=v;break;case o.C:h=i[f++],v=i[f++],p=i[f++],g=i[f++],m=i[f++],b=i[f++];var C=u?E0(s,h,p,m,n,c):E0(l,v,g,b,n,c);if(C>0)for(var S=0;S<C;S++){var x=c[S];if(x<=1&&x>=0){var w=u?nr(l,v,g,b,x):nr(s,h,p,m,x);return u?[n,w]:[w,n]}}s=m,l=b;break}}},t}(zt),K4e=function(e){ge(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(y7),b7=function(e){ge(t,e);function t(n){var r=e.call(this,n)||this;return r.type="ec-polygon",r}return t.prototype.getDefaultShape=function(){return new K4e},t.prototype.buildPath=function(n,r){var a=r.points,i=r.stackedOnPoints,o=0,s=a.length/2,l=r.smoothMonotone;if(r.connectNulls){for(;s>0&&ec(a[s*2-2],a[s*2-1]);s--);for(;o<s&&ec(a[o*2],a[o*2+1]);o++);}for(;o<s;){var u=P2(n,a,o,s,s,1,r.smooth,l,r.connectNulls);P2(n,i,o+u-1,u,s,-1,r.stackedOnSmooth,l,r.connectNulls),o+=u+1,n.closePath()}},t}(zt);function _7(e,t,n,r,a){var i=e.getArea(),o=i.x,s=i.y,l=i.width,u=i.height,c=n.get(["lineStyle","width"])||2;o-=c/2,s-=c/2,l+=c,u+=c,o=Math.floor(o),l=Math.round(l);var f=new Zt({shape:{x:o,y:s,width:l,height:u}});if(t){var d=e.getBaseAxis(),h=d.isHorizontal(),v=d.inverse;h?(v&&(f.shape.x+=l),f.shape.width=0):(v||(f.shape.y+=u),f.shape.height=0);var p=ut(a)?function(g){a(g,f)}:null;xn(f,{shape:{width:l,height:u,x:o,y:s}},n,null,r,p)}return f}function w7(e,t,n){var r=e.getArea(),a=Rn(r.r0,1),i=Rn(r.r,1),o=new na({shape:{cx:Rn(e.cx,1),cy:Rn(e.cy,1),r0:a,r:i,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});if(t){var s=e.getBaseAxis().dim==="angle";s?o.shape.endAngle=r.startAngle:o.shape.r=a,xn(o,{shape:{endAngle:r.endAngle,r:i}},n)}return o}function Y1(e,t,n,r,a){if(e){if(e.type==="polar")return w7(e,t,n);if(e.type==="cartesian2d")return _7(e,t,n,r,a)}else return null;return null}function Ac(e,t){return e.type===t}function x$(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function T$(e){for(var t=1/0,n=1/0,r=-1/0,a=-1/0,i=0;i<e.length;){var o=e[i++],s=e[i++];isNaN(o)||(t=Math.min(o,t),r=Math.max(o,r)),isNaN(s)||(n=Math.min(s,n),a=Math.max(s,a))}return[[t,n],[r,a]]}function M$(e,t){var n=T$(e),r=n[0],a=n[1],i=T$(t),o=i[0],s=i[1];return Math.max(Math.abs(r[0]-o[0]),Math.abs(r[1]-o[1]),Math.abs(a[0]-s[0]),Math.abs(a[1]-s[1]))}function k$(e){return Qt(e)?e:e?.5:0}function U4e(e,t,n){if(!n.valueDim)return[];for(var r=t.count(),a=fo(r*2),i=0;i<r;i++){var o=m7(n,e,t,i);a[i*2]=o[0],a[i*2+1]=o[1]}return a}function Es(e,t,n,r){var a=t.getBaseAxis(),i=a.dim==="x"||a.dim==="radius"?0:1,o=[],s=0,l=[],u=[],c=[],f=[];if(r){for(s=0;s<e.length;s+=2)!isNaN(e[s])&&!isNaN(e[s+1])&&f.push(e[s],e[s+1]);e=f}for(s=0;s<e.length-2;s+=2)switch(c[0]=e[s+2],c[1]=e[s+3],u[0]=e[s],u[1]=e[s+1],o.push(u[0],u[1]),n){case"end":l[i]=c[i],l[1-i]=u[1-i],o.push(l[0],l[1]);break;case"middle":var d=(u[i]+c[i])/2,h=[];l[i]=h[i]=d,l[1-i]=u[1-i],h[1-i]=c[1-i],o.push(l[0],l[1]),o.push(h[0],h[1]);break;default:l[i]=u[i],l[1-i]=c[1-i],o.push(l[0],l[1])}return o.push(e[s++],e[s++]),o}function Y4e(e,t){var n=[],r=e.length,a,i;function o(c,f,d){var h=c.coord,v=(d-h)/(f.coord-h),p=Tk(v,[c.color,f.color]);return{coord:d,color:p}}for(var s=0;s<r;s++){var l=e[s],u=l.coord;if(u<0)a=l;else if(u>t){i?n.push(o(i,l,t)):a&&n.push(o(a,l,0),o(a,l,t));break}else a&&(n.push(o(a,l,0)),a=null),n.push(l),i=l}return n}function j4e(e,t,n){var r=e.getVisual("visualMeta");if(!(!r||!r.length||!e.count())&&t.type==="cartesian2d"){for(var a,i,o=r.length-1;o>=0;o--){var s=e.getDimensionInfo(r[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=r[o];break}}if(i){var l=t.getAxis(a),u=Oe(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),c=u.length,f=i.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var d=Y4e(u,a==="x"?n.getWidth():n.getHeight()),h=d.length;if(!h&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var v=10,p=d[0].coord-v,g=d[h-1].coord+v,m=g-p;if(m<.001)return"transparent";F(d,function(_){_.offset=(_.coord-p)/m}),d.push({offset:h?d[h-1].offset:.5,color:f[1]||"transparent"}),d.unshift({offset:h?d[0].offset:.5,color:f[0]||"transparent"});var b=new Pd(0,0,0,0,d,!0);return b[a]=p,b[a+"2"]=g,b}}}function q4e(e,t,n){var r=e.get("showAllSymbol"),a=r==="auto";if(!(r&&!a)){var i=n.getAxesByScale("ordinal")[0];if(i&&!(a&&X4e(i,t))){var o=t.mapDimension(i.dim),s={};return F(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function X4e(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var a=t.count(),i=Math.max(1,Math.round(a/5)),o=0;o<a;o+=i)if(wg.getSymbolSize(t,o)[e.isHorizontal()?1:0]*1.5>r)return!1;return!0}function Z4e(e,t){return isNaN(e)||isNaN(t)}function J4e(e){for(var t=e.length/2;t>0&&Z4e(e[t*2-2],e[t*2-1]);t--);return t-1}function A$(e,t){return[e[t*2],e[t*2+1]]}function Q4e(e,t,n){for(var r=e.length/2,a=n==="x"?0:1,i,o,s=0,l=-1,u=0;u<r;u++)if(o=e[u*2+a],!(isNaN(o)||isNaN(e[u*2+1-a]))){if(u===0){i=o;continue}if(i<=t&&o>=t||i>=t&&o<=t){l=u;break}s=u,i=o}return{range:[s,l],t:(t-i)/(o-i)}}function S7(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<ta.length;t++)if(e.get([ta[t],"endLabel","show"]))return!0;return!1}function Xw(e,t,n,r){if(Ac(t,"cartesian2d")){var a=r.getModel("endLabel"),i=a.get("valueAnimation"),o=r.getData(),s={lastFrameIndex:0},l=S7(r)?function(h,v){e._endLabelOnDuring(h,v,o,s,i,a,t)}:null,u=t.getBaseAxis().isHorizontal(),c=_7(t,n,r,function(){var h=e._endLabel;h&&n&&s.originalX!=null&&h.attr({x:s.originalX,y:s.originalY})},l);if(!r.get("clip",!0)){var f=c.shape,d=Math.max(f.width,f.height);u?(f.y-=d,f.height+=d*2):(f.x-=d,f.width+=d*2)}return l&&l(1,c),c}else return w7(t,n,r)}function eBe(e,t){var n=t.getBaseAxis(),r=n.isHorizontal(),a=n.inverse,i=r?a?"right":"left":"center",o=r?"middle":a?"top":"bottom";return{normal:{align:e.get("align")||i,verticalAlign:e.get("verticalAlign")||o}}}var tBe=function(e){ge(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var n=new bt,r=new Sg;this.group.add(r.group),this._symbolDraw=r,this._lineGroup=n},t.prototype.render=function(n,r,a){var i=this,o=n.coordinateSystem,s=this.group,l=n.getData(),u=n.getModel("lineStyle"),c=n.getModel("areaStyle"),f=l.getLayout("points")||[],d=o.type==="polar",h=this._coordSys,v=this._symbolDraw,p=this._polyline,g=this._polygon,m=this._lineGroup,b=!r.ssr&&n.isAnimationEnabled(),_=!c.isEmpty(),w=c.get("origin"),C=g7(o,l,w),S=_&&U4e(o,l,C),x=n.get("showSymbol"),T=n.get("connectNulls"),M=x&&!d&&q4e(n,l,o),A=this._data;A&&A.eachItemGraphicEl(function(Q,ee){Q.__temp&&(s.remove(Q),A.setItemGraphicEl(ee,null))}),x||v.remove(),s.add(m);var k=d?!1:n.get("step"),E;o&&o.getArea&&n.get("clip",!0)&&(E=o.getArea(),E.width!=null?(E.x-=.1,E.y-=.1,E.width+=.2,E.height+=.2):E.r0&&(E.r0-=.5,E.r+=.5)),this._clipShapeForSymbol=E;var D=j4e(l,o,a)||l.getVisual("style")[l.getVisual("drawType")];if(!(p&&h.type===o.type&&k===this._step))x&&v.updateData(l,{isIgnore:M,clipShape:E,disableAnimation:!0,getSymbolPoint:function(Q){return[f[Q*2],f[Q*2+1]]}}),b&&this._initSymbolLabelAnimation(l,o,E),k&&(f=Es(f,o,k,T),S&&(S=Es(S,o,k,T))),p=this._newPolyline(f),_?g=this._newPolygon(f,S):g&&(m.remove(g),g=this._polygon=null),d||this._initOrUpdateEndLabel(n,o,hc(D)),m.setClipPath(Xw(this,o,!0,n));else{_&&!g?g=this._newPolygon(f,S):g&&!_&&(m.remove(g),g=this._polygon=null),d||this._initOrUpdateEndLabel(n,o,hc(D));var L=m.getClipPath();if(L){var B=Xw(this,o,!1,n);xn(L,{shape:B.shape},n)}else m.setClipPath(Xw(this,o,!0,n));x&&v.updateData(l,{isIgnore:M,clipShape:E,disableAnimation:!0,getSymbolPoint:function(Q){return[f[Q*2],f[Q*2+1]]}}),(!x$(this._stackedOnPoints,S)||!x$(this._points,f))&&(b?this._doUpdateAnimation(l,S,o,a,k,w,T):(k&&(f=Es(f,o,k,T),S&&(S=Es(S,o,k,T))),p.setShape({points:f}),g&&g.setShape({points:f,stackedOnPoints:S})))}var N=n.getModel("emphasis"),O=N.get("focus"),$=N.get("blurScope"),I=N.get("disabled");if(p.useStyle(ft(u.getLineStyle(),{fill:"none",stroke:D,lineJoin:"bevel"})),xr(p,n,"lineStyle"),p.style.lineWidth>0&&n.get(["emphasis","lineStyle","width"])==="bolder"){var z=p.getState("emphasis").style;z.lineWidth=+p.style.lineWidth+1}Tt(p).seriesIndex=n.seriesIndex,$n(p,O,$,I);var G=k$(n.get("smooth")),U=n.get("smoothMonotone");if(p.setShape({smooth:G,smoothMonotone:U,connectNulls:T}),g){var Z=l.getCalculationInfo("stackedOnSeries"),ae=0;g.useStyle(ft(c.getAreaStyle(),{fill:D,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),Z&&(ae=k$(Z.get("smooth"))),g.setShape({smooth:G,stackedOnSmooth:ae,smoothMonotone:U,connectNulls:T}),xr(g,n,"areaStyle"),Tt(g).seriesIndex=n.seriesIndex,$n(g,O,$,I)}var J=function(Q){i._changePolyState(Q)};l.eachItemGraphicEl(function(Q){Q&&(Q.onHoverStateChange=J)}),this._polyline.onHoverStateChange=J,this._data=l,this._coordSys=o,this._stackedOnPoints=S,this._points=f,this._step=k,this._valueOrigin=w,n.get("triggerLineEvent")&&(this.packEventData(n,p),g&&this.packEventData(n,g))},t.prototype.packEventData=function(n,r){Tt(r).eventData={componentType:"series",componentSubType:"line",componentIndex:n.componentIndex,seriesIndex:n.seriesIndex,seriesName:n.name,seriesType:"line"}},t.prototype.highlight=function(n,r,a,i){var o=n.getData(),s=cc(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],f=l[s*2+1];if(isNaN(c)||isNaN(f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,f))return;var d=n.get("zlevel")||0,h=n.get("z")||0;u=new wg(o,s),u.x=c,u.y=f,u.setZ(d,h);var v=u.getSymbolPath().getTextContent();v&&(v.zlevel=d,v.z=h,v.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else vn.prototype.highlight.call(this,n,r,a,i)},t.prototype.downplay=function(n,r,a,i){var o=n.getData(),s=cc(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else vn.prototype.downplay.call(this,n,r,a,i)},t.prototype._changePolyState=function(n){var r=this._polygon;O0(this._polyline,n),r&&O0(r,n)},t.prototype._newPolyline=function(n){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new W4e({shape:{points:n},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(r),this._polyline=r,r},t.prototype._newPolygon=function(n,r){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new b7({shape:{points:n,stackedOnPoints:r},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},t.prototype._initSymbolLabelAnimation=function(n,r,a){var i,o,s=r.getBaseAxis(),l=s.inverse;r.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):r.type==="polar"&&(i=s.dim==="angle",o=!0);var u=n.hostModel,c=u.get("animationDuration");ut(c)&&(c=c(null));var f=u.get("animationDelay")||0,d=ut(f)?f(null):f;n.eachItemGraphicEl(function(h,v){var p=h;if(p){var g=[h.x,h.y],m=void 0,b=void 0,_=void 0;if(a)if(o){var w=a,C=r.pointToCoord(g);i?(m=w.startAngle,b=w.endAngle,_=-C[1]/180*Math.PI):(m=w.r0,b=w.r,_=C[0])}else{var S=a;i?(m=S.x,b=S.x+S.width,_=h.x):(m=S.y+S.height,b=S.y,_=h.y)}var x=b===m?0:(_-m)/(b-m);l&&(x=1-x);var T=ut(f)?f(v):c*x+d,M=p.getSymbolPath(),A=M.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),A&&A.animateFrom({style:{opacity:0}},{duration:300,delay:T}),M.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(n,r,a){var i=n.getModel("endLabel");if(S7(n)){var o=n.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new Xt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=J4e(l);c>=0&&(Tr(s,lr(n,"endLabel"),{inheritColor:a,labelFetcher:n,labelDataIndex:c,defaultText:function(f,d,h){return h!=null?p7(o,h):vd(o,f)},enableTextSetter:!0},eBe(i,r)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(n,r,a,i,o,s,l){var u=this._endLabel,c=this._polyline;if(u){n<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var f=a.getLayout("points"),d=a.hostModel,h=d.get("connectNulls"),v=s.get("precision"),p=s.get("distance")||0,g=l.getBaseAxis(),m=g.isHorizontal(),b=g.inverse,_=r.shape,w=b?m?_.x:_.y+_.height:m?_.x+_.width:_.y,C=(m?p:0)*(b?-1:1),S=(m?0:-p)*(b?-1:1),x=m?"x":"y",T=Q4e(f,w,x),M=T.range,A=M[1]-M[0],k=void 0;if(A>=1){if(A>1&&!h){var E=A$(f,M[0]);u.attr({x:E[0]+C,y:E[1]+S}),o&&(k=d.getRawValue(M[0]))}else{var E=c.getPointOn(w,x);E&&u.attr({x:E[0]+C,y:E[1]+S});var D=d.getRawValue(M[0]),L=d.getRawValue(M[1]);o&&(k=zH(a,v,D,L,T.t))}i.lastFrameIndex=M[0]}else{var B=n===1||i.lastFrameIndex>0?M[0]:0,E=A$(f,B);o&&(k=d.getRawValue(B)),u.attr({x:E[0]+C,y:E[1]+S})}if(o){var N=$d(u);typeof N.setLabelText=="function"&&N.setLabelText(k)}}},t.prototype._doUpdateAnimation=function(n,r,a,i,o,s,l){var u=this._polyline,c=this._polygon,f=n.hostModel,d=G4e(this._data,n,this._stackedOnPoints,r,this._coordSys,a,this._valueOrigin),h=d.current,v=d.stackedOnCurrent,p=d.next,g=d.stackedOnNext;if(o&&(h=Es(d.current,a,o,l),v=Es(d.stackedOnCurrent,a,o,l),p=Es(d.next,a,o,l),g=Es(d.stackedOnNext,a,o,l)),M$(h,p)>3e3||c&&M$(v,g)>3e3){u.stopAnimation(),u.setShape({points:p}),c&&(c.stopAnimation(),c.setShape({points:p,stackedOnPoints:g}));return}u.shape.__points=d.current,u.shape.points=h;var m={shape:{points:p}};d.current!==h&&(m.shape.__points=d.next),u.stopAnimation(),nn(u,m,f),c&&(c.setShape({points:h,stackedOnPoints:v}),c.stopAnimation(),nn(c,{shape:{stackedOnPoints:g}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var b=[],_=d.status,w=0;w<_.length;w++){var C=_[w].cmd;if(C==="="){var S=n.getItemGraphicEl(_[w].idx1);S&&b.push({el:S,ptIdx:w})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var x=u.shape.__points,T=0;T<b.length;T++){var M=b[T].el,A=b[T].ptIdx*2;M.x=x[A],M.y=x[A+1],M.markRedraw()}})},t.prototype.remove=function(n){var r=this.group,a=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),a&&a.eachItemGraphicEl(function(i,o){i.__temp&&(r.remove(i),a.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(vn);const nBe=tBe;function Cg(e,t){return{seriesType:e,plan:Hd(),reset:function(n){var r=n.getData(),a=n.coordinateSystem,i=n.pipelineContext,o=t||i.large;if(a){var s=Oe(a.dimensions,function(h){return r.mapDimension(h)}).slice(0,2),l=s.length,u=r.getCalculationInfo("stackResultDimension");os(r,s[0])&&(s[0]=u),os(r,s[1])&&(s[1]=u);var c=r.getStore(),f=r.getDimensionIndex(s[0]),d=r.getDimensionIndex(s[1]);return l&&{progress:function(h,v){for(var p=h.end-h.start,g=o&&fo(p*l),m=[],b=[],_=h.start,w=0;_<h.end;_++){var C=void 0;if(l===1){var S=c.get(f,_);C=a.dataToPoint(S,null,b)}else m[0]=c.get(f,_),m[1]=c.get(d,_),C=a.dataToPoint(m,null,b);o?(g[w++]=C[0],g[w++]=C[1]):v.setItemLayout(_,C.slice())}o&&v.setLayout("points",g)}}}}}}var rBe={average:function(e){for(var t=0,n=0,r=0;r<e.length;r++)isNaN(e[r])||(t+=e[r],n++);return n===0?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},aBe=function(e){return Math.round(e.length/2)};function C7(e){return{seriesType:e,reset:function(t,n,r){var a=t.getData(),i=t.get("sampling"),o=t.coordinateSystem,s=a.count();if(s>10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),f=r.getDevicePixelRatio(),d=Math.abs(c[1]-c[0])*(f||1),h=Math.round(s/d);if(isFinite(h)&&h>1){i==="lttb"&&t.setData(a.lttbDownSample(a.mapDimension(u.dim),1/h));var v=void 0;Je(i)?v=rBe[i]:ut(i)&&(v=i),v&&t.setData(a.downSample(a.mapDimension(u.dim),1/h,v,aBe))}}}}}function iBe(e){e.registerChartView(nBe),e.registerSeriesModel(N4e),e.registerLayout(Cg("line",!0)),e.registerVisual({seriesType:"line",reset:function(t){var n=t.getData(),r=t.getModel("lineStyle").getLineStyle();r&&!r.stroke&&(r.stroke=n.getVisual("style").fill),n.setVisual("legendLineStyle",r)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,C7("line"))}var x7=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(n,r){return Io(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(n,r,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(n),s=i.dataToPoint(o);if(a)F(i.getAxes(),function(d,h){if(d.type==="category"&&r!=null){var v=d.getTicksCoords(),p=o[h],g=r[h]==="x1"||r[h]==="y1";if(g&&(p+=1),v.length<2)return;if(v.length===2){s[h]=d.toGlobalCoord(d.getExtent()[g?1:0]);return}for(var m=void 0,b=void 0,_=1,w=0;w<v.length;w++){var C=v[w].coord,S=w===v.length-1?v[w-1].tickValue+_:v[w].tickValue;if(S===p){b=C;break}else if(S<p)m=C;else if(m!=null&&S>p){b=(C+m)/2;break}w===1&&(_=S-v[0].tickValue)}b==null&&(m?m&&(b=v[v.length-1].coord):b=v[0].coord),s[h]=d.toGlobalCoord(b)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),f=i.getBaseAxis().isHorizontal()?0:1;s[f]+=u+c/2}return s}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}(_n);_n.registerClass(x7);const nb=x7;var oBe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(){return Io(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 n=this.get("progressiveThreshold"),r=this.get("largeThreshold");return r>n&&(n=r),n},t.prototype.brushSelector=function(n,r,a){return a.rect(r.getItemLayout(n))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Rl(nb.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}(nb);const sBe=oBe;var lBe=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}(),uBe=function(e){ge(t,e);function t(n){var r=e.call(this,n)||this;return r.type="sausage",r}return t.prototype.getDefaultShape=function(){return new lBe},t.prototype.buildPath=function(n,r){var a=r.cx,i=r.cy,o=Math.max(r.r0||0,0),s=Math.max(r.r,0),l=(s-o)*.5,u=o+l,c=r.startAngle,f=r.endAngle,d=r.clockwise,h=Math.PI*2,v=d?f-c<h:c-f<h;v||(c=f-(d?h:-h));var p=Math.cos(c),g=Math.sin(c),m=Math.cos(f),b=Math.sin(f);v?(n.moveTo(p*o+a,g*o+i),n.arc(p*u+a,g*u+i,l,-Math.PI+c,c,!d)):n.moveTo(p*s+a,g*s+i),n.arc(a,i,s,c,f,!d),n.arc(m*u+a,b*u+i,l,f-Math.PI*2,f-Math.PI,!d),o!==0&&n.arc(a,i,o,f,c,d)},t}(zt);const rb=uBe;function cBe(e,t){t=t||{};var n=t.isRoundCap;return function(r,a,i){var o=a.position;if(!o||o instanceof Array)return L0(r,a,i);var s=e(o),l=a.distance!=null?a.distance:5,u=this.shape,c=u.cx,f=u.cy,d=u.r,h=u.r0,v=(d+h)/2,p=u.startAngle,g=u.endAngle,m=(p+g)/2,b=n?Math.abs(d-h)/2:0,_=Math.cos,w=Math.sin,C=c+d*_(p),S=f+d*w(p),x="left",T="top";switch(s){case"startArc":C=c+(h-l)*_(m),S=f+(h-l)*w(m),x="center",T="top";break;case"insideStartArc":C=c+(h+l)*_(m),S=f+(h+l)*w(m),x="center",T="bottom";break;case"startAngle":C=c+v*_(p)+Om(p,l+b,!1),S=f+v*w(p)+$m(p,l+b,!1),x="right",T="middle";break;case"insideStartAngle":C=c+v*_(p)+Om(p,-l+b,!1),S=f+v*w(p)+$m(p,-l+b,!1),x="left",T="middle";break;case"middle":C=c+v*_(m),S=f+v*w(m),x="center",T="middle";break;case"endArc":C=c+(d+l)*_(m),S=f+(d+l)*w(m),x="center",T="bottom";break;case"insideEndArc":C=c+(d-l)*_(m),S=f+(d-l)*w(m),x="center",T="top";break;case"endAngle":C=c+v*_(g)+Om(g,l+b,!0),S=f+v*w(g)+$m(g,l+b,!0),x="left",T="middle";break;case"insideEndAngle":C=c+v*_(g)+Om(g,-l+b,!0),S=f+v*w(g)+$m(g,-l+b,!0),x="right",T="middle";break;default:return L0(r,a,i)}return r=r||{},r.x=C,r.y=S,r.align=x,r.verticalAlign=T,r}}function fBe(e,t,n,r){if(Qt(r)){e.setTextConfig({rotation:r});return}else if(Re(t)){e.setTextConfig({rotation:0});return}var a=e.shape,i=a.clockwise?a.startAngle:a.endAngle,o=a.clockwise?a.endAngle:a.startAngle,s=(i+o)/2,l,u=n(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=i;break;case"endAngle":case"insideEndAngle":l=o;break;default:e.setTextConfig({rotation:0});return}var c=Math.PI*1.5-l;u==="middle"&&c>Math.PI/2&&c<Math.PI*1.5&&(c-=Math.PI),e.setTextConfig({rotation:c})}function Om(e,t,n){return t*Math.sin(e)*(n?-1:1)}function $m(e,t,n){return t*Math.cos(e)*(n?1:-1)}function Gu(e,t,n){var r=e.get("borderRadius");if(r==null)return n?{cornerRadius:0}:null;Re(r)||(r=[r,r,r,r]);var a=Math.abs(t.r||0-t.r0||0);return{cornerRadius:Oe(r,function(i){return Fi(i,a)})}}var Zw=Math.max,Jw=Math.min;function dBe(e,t){var n=e.getArea&&e.getArea();if(Ac(e,"cartesian2d")){var r=e.getBaseAxis();if(r.type!=="category"||!r.onBand){var a=t.getLayout("bandWidth");r.isHorizontal()?(n.x-=a,n.width+=a*2):(n.y-=a,n.height+=a*2)}}return n}var hBe=function(e){ge(t,e);function t(){var n=e.call(this)||this;return n.type=t.type,n._isFirstFrame=!0,n}return t.prototype.render=function(n,r,a,i){this._model=n,this._removeOnRenderedListener(a),this._updateDrawMode(n);var o=n.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(n,r,a):this._renderNormal(n,r,a,i))},t.prototype.incrementalPrepareRender=function(n){this._clear(),this._updateDrawMode(n),this._updateLargeClip(n)},t.prototype.incrementalRender=function(n,r){this._progressiveEls=[],this._incrementalRenderLarge(n,r)},t.prototype.eachRendered=function(n){Ll(this._progressiveEls||this.group,n)},t.prototype._updateDrawMode=function(n){var r=n.pipelineContext.large;(this._isLargeDraw==null||r!==this._isLargeDraw)&&(this._isLargeDraw=r,this._clear())},t.prototype._renderNormal=function(n,r,a,i){var o=this.group,s=n.getData(),l=this._data,u=n.coordinateSystem,c=u.getBaseAxis(),f;u.type==="cartesian2d"?f=c.isHorizontal():u.type==="polar"&&(f=c.dim==="angle");var d=n.isAnimationEnabled()?n:null,h=vBe(n,u);h&&this._enableRealtimeSort(h,s,a);var v=n.get("clip",!0)||h,p=dBe(u,s);o.removeClipPath();var g=n.get("roundCap",!0),m=n.get("showBackground",!0),b=n.getModel("backgroundStyle"),_=b.get("borderRadius")||0,w=[],C=this._backgroundEls,S=i&&i.isInitSort,x=i&&i.type==="changeAxisOrder";function T(k){var E=Nm[u.type](s,k),D=wBe(u,f,E);return D.useStyle(b.getItemStyle()),u.type==="cartesian2d"?D.setShape("r",_):D.setShape("cornerRadius",_),w[k]=D,D}s.diff(l).add(function(k){var E=s.getItemModel(k),D=Nm[u.type](s,k,E);if(m&&T(k),!(!s.hasValue(k)||!L$[u.type](D))){var L=!1;v&&(L=E$[u.type](p,D));var B=I$[u.type](n,s,k,D,f,d,c.model,!1,g);h&&(B.forceLabelAnimation=!0),R$(B,s,k,E,D,n,f,u.type==="polar"),S?B.attr({shape:D}):h?D$(h,d,B,D,k,f,!1,!1):xn(B,{shape:D},n,k),s.setItemGraphicEl(k,B),o.add(B),B.ignore=L}}).update(function(k,E){var D=s.getItemModel(k),L=Nm[u.type](s,k,D);if(m){var B=void 0;C.length===0?B=T(E):(B=C[E],B.useStyle(b.getItemStyle()),u.type==="cartesian2d"?B.setShape("r",_):B.setShape("cornerRadius",_),w[k]=B);var N=Nm[u.type](s,k),O=M7(f,N,u);nn(B,{shape:O},d,k)}var $=l.getItemGraphicEl(E);if(!s.hasValue(k)||!L$[u.type](L)){o.remove($);return}var I=!1;if(v&&(I=E$[u.type](p,L),I&&o.remove($)),$?Gi($):$=I$[u.type](n,s,k,L,f,d,c.model,!!$,g),h&&($.forceLabelAnimation=!0),x){var z=$.getTextContent();if(z){var G=$d(z);G.prevValue!=null&&(G.prevValue=G.value)}}else R$($,s,k,D,L,n,f,u.type==="polar");S?$.attr({shape:L}):h?D$(h,d,$,L,k,f,!0,x):nn($,{shape:L},n,k,null),s.setItemGraphicEl(k,$),$.ignore=I,o.add($)}).remove(function(k){var E=l.getItemGraphicEl(k);E&&Sp(E,n,k)}).execute();var M=this._backgroundGroup||(this._backgroundGroup=new bt);M.removeAll();for(var A=0;A<w.length;++A)M.add(w[A]);o.add(M),this._backgroundEls=w,this._data=s},t.prototype._renderLarge=function(n,r,a){this._clear(),$$(n,this.group),this._updateLargeClip(n)},t.prototype._incrementalRenderLarge=function(n,r){this._removeBackground(),$$(r,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(n){var r=n.get("clip",!0)&&Y1(n.coordinateSystem,!1,n),a=this.group;r?a.setClipPath(r):a.removeClipPath()},t.prototype._enableRealtimeSort=function(n,r,a){var i=this;if(r.count()){var o=n.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(r,n,a),this._isFirstFrame=!1;else{var s=function(l){var u=r.getItemGraphicEl(l),c=u&&u.shape;return c&&Math.abs(o.isHorizontal()?c.height:c.width)||0};this._onRendered=function(){i._updateSortWithinSameData(r,s,o,a)},a.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(n,r,a){var i=[];return n.each(n.mapDimension(r.dim),function(o,s){var l=a(s);l=l??NaN,i.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),i.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:Oe(i,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(n,r,a){for(var i=a.scale,o=n.mapDimension(a.dim),s=Number.MAX_VALUE,l=0,u=i.getOrdinalMeta().categories.length;l<u;++l){var c=n.rawIndexOf(o,i.getRawOrdinalNumber(l)),f=c<0?Number.MIN_VALUE:r(n.indexOfRawIndex(c));if(f>s)return!0;s=f}return!1},t.prototype._isOrderDifferentInView=function(n,r){for(var a=r.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(n.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(n,r,a,i){if(this._isOrderChangedWithinSameData(n,r,a)){var o=this._dataSort(n,a,r);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(n,r,a){var i=r.baseAxis,o=this._dataSort(n,i,function(s){return n.get(n.mapDimension(r.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},t.prototype.remove=function(n,r){this._clear(this._model),this._removeOnRenderedListener(r)},t.prototype.dispose=function(n,r){this._removeOnRenderedListener(r)},t.prototype._removeOnRenderedListener=function(n){this._onRendered&&(n.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(n){var r=this.group,a=this._data;n&&n.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){Sp(i,n,Tt(i).dataIndex)})):r.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(vn),E$={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var a=e.x+e.width,i=e.y+e.height,o=Zw(t.x,e.x),s=Jw(t.x+t.width,a),l=Zw(t.y,e.y),u=Jw(t.y+t.height,i),c=s<o,f=u<l;return t.x=c&&o>a?s:o,t.y=f&&l>i?u:l,t.width=c?0:s-o,t.height=f?0:u-l,n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),c||f},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}var a=Jw(t.r,e.r),i=Zw(t.r0,e.r0);t.r=a,t.r0=i;var o=a-i<0;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}return o}},I$={cartesian2d:function(e,t,n,r,a,i,o,s,l){var u=new Zt({shape:Ie({},r),z2:1});if(u.__dataIndex=n,u.name="item",i){var c=u.shape,f=a?"height":"width";c[f]=0}return u},polar:function(e,t,n,r,a,i,o,s,l){var u=!a&&l?rb:na,c=new u({shape:r,z2:1});c.name="item";var f=T7(a);if(c.calculateTextPosition=cBe(f,{isRoundCap:u===rb}),i){var d=c.shape,h=a?"r":"endAngle",v={};d[h]=a?r.r0:r.startAngle,v[h]=r[h],(s?nn:xn)(c,{shape:v},i)}return c}};function vBe(e,t){var n=e.get("realtimeSort",!0),r=t.getBaseAxis();if(n&&r.type==="category"&&t.type==="cartesian2d")return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}function D$(e,t,n,r,a,i,o,s){var l,u;i?(u={x:r.x,width:r.width},l={y:r.y,height:r.height}):(u={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(o?nn:xn)(n,{shape:l},t,a,null);var c=t?e.baseAxis.model:null;(o?nn:xn)(n,{shape:u},c,a)}function P$(e,t){for(var n=0;n<t.length;n++)if(!isFinite(e[t[n]]))return!0;return!1}var pBe=["x","y","width","height"],gBe=["cx","cy","r","startAngle","endAngle"],L$={cartesian2d:function(e){return!P$(e,pBe)},polar:function(e){return!P$(e,gBe)}},Nm={cartesian2d:function(e,t,n){var r=e.getItemLayout(t),a=n?yBe(n,r):0,i=r.width>0?1:-1,o=r.height>0?1:-1;return{x:r.x+i*a/2,y:r.y+o*a/2,width:r.width-i*a,height:r.height-o*a}},polar:function(e,t,n){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function mBe(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function T7(e){return function(t){var n=t?"Arc":"Angle";return function(r){switch(r){case"start":case"insideStart":case"end":case"insideEnd":return r+n;default:return r}}}(e)}function R$(e,t,n,r,a,i,o,s){var l=t.getItemVisual(n,"style");if(s){if(!i.get("roundCap")){var c=e.shape,f=Gu(r.getModel("itemStyle"),c,!0);Ie(c,f),e.setShape(c)}}else{var u=r.get(["itemStyle","borderRadius"])||0;e.setShape("r",u)}e.useStyle(l);var d=r.getShallow("cursor");d&&e.attr("cursor",d);var h=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",v=lr(r);Tr(e,v,{labelFetcher:i,labelDataIndex:n,defaultText:vd(i.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var p=e.getTextContent();if(s&&p){var g=r.get(["label","position"]);e.textConfig.inside=g==="middle"?!0:null,fBe(e,g==="outside"?h:g,T7(o),r.get(["label","rotate"]))}VG(p,v,i.getRawValue(n),function(b){return p7(t,b)});var m=r.getModel(["emphasis"]);$n(e,m.get("focus"),m.get("blurScope"),m.get("disabled")),xr(e,r),mBe(a)&&(e.style.fill="none",e.style.stroke="none",F(e.states,function(b){b.style&&(b.style.fill=b.style.stroke="none")}))}function yBe(e,t){var n=e.get(["itemStyle","borderColor"]);if(!n||n==="none")return 0;var r=e.get(["itemStyle","borderWidth"])||0,a=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,a,i)}var bBe=function(){function e(){}return e}(),O$=function(e){ge(t,e);function t(n){var r=e.call(this,n)||this;return r.type="largeBar",r}return t.prototype.getDefaultShape=function(){return new bBe},t.prototype.buildPath=function(n,r){for(var a=r.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c<a.length;c+=3)l[i]=u,l[o]=a[c+2],s[i]=a[c+i],s[o]=a[c+o],n.rect(s[0],s[1],l[0],l[1])},t}(zt);function $$(e,t,n,r){var a=e.getData(),i=a.getLayout("valueAxisHorizontal")?1:0,o=a.getLayout("largeDataIndices"),s=a.getLayout("size"),l=e.getModel("backgroundStyle"),u=a.getLayout("largeBackgroundPoints");if(u){var c=new O$({shape:{points:u},incremental:!!r,silent:!0,z2:0});c.baseDimIdx=i,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),t.add(c),n&&n.push(c)}var f=new O$({shape:{points:a.getLayout("largePoints")},incremental:!!r,ignoreCoarsePointer:!0,z2:1});f.baseDimIdx=i,f.largeDataIndices=o,f.barWidth=s,t.add(f),f.useStyle(a.getVisual("style")),Tt(f).seriesIndex=e.seriesIndex,e.get("silent")||(f.on("mousedown",N$),f.on("mousemove",N$)),n&&n.push(f)}var N$=z1(function(e){var t=this,n=_Be(t,e.offsetX,e.offsetY);Tt(t).dataIndex=n>=0?n:null},30,!1);function _Be(e,t,n){for(var r=e.baseDimIdx,a=1-r,i=e.shape.points,o=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,f=i.length/3;c<f;c++){var d=c*3;if(l[r]=u,l[a]=i[d+2],s[r]=i[d+r],s[a]=i[d+a],l[a]<0&&(s[a]+=l[a],l[a]=-l[a]),t>=s[0]&&t<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return o[c]}return-1}function M7(e,t,n){if(Ac(n,"cartesian2d")){var r=t,a=n.getArea();return{x:e?r.x:a.x,y:e?a.y:r.y,width:e?r.width:a.width,height:e?a.height:r.height}}else{var a=n.getArea(),i=t;return{cx:a.cx,cy:a.cy,r0:e?a.r0:i.r0,r:e?a.r:i.r,startAngle:e?i.startAngle:0,endAngle:e?i.endAngle:Math.PI*2}}}function wBe(e,t,n){var r=e.type==="polar"?na:Zt;return new r({shape:M7(t,n,e),silent:!0,z2:0})}const SBe=hBe;function CBe(e){e.registerChartView(SBe),e.registerSeriesModel(sBe),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,xt(I9,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,D9("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,C7("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,n){var r=t.componentType||"series";n.eachComponent({mainType:r,query:t},function(a){t.sortInfo&&a.axis.setCategorySortInfo(t.sortInfo)})})}var Bm=Math.PI*2,B$=Math.PI/180;function k7(e,t){return Xn(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function A7(e,t){var n=k7(e,t),r=e.get("center"),a=e.get("radius");Re(a)||(a=[0,a]);var i=qe(n.width,t.getWidth()),o=qe(n.height,t.getHeight()),s=Math.min(i,o),l=qe(a[0],s/2),u=qe(a[1],s/2),c,f,d=e.coordinateSystem;if(d){var h=d.dataToPoint(r);c=h[0]||0,f=h[1]||0}else Re(r)||(r=[r,r]),c=qe(r[0],i)+n.x,f=qe(r[1],o)+n.y;return{cx:c,cy:f,r0:l,r:u}}function xBe(e,t,n){t.eachSeriesByType(e,function(r){var a=r.getData(),i=a.mapDimension("value"),o=k7(r,n),s=A7(r,n),l=s.cx,u=s.cy,c=s.r,f=s.r0,d=-r.get("startAngle")*B$,h=r.get("minAngle")*B$,v=0;a.each(i,function(A){!isNaN(A)&&v++});var p=a.getSum(i),g=Math.PI/(p||v)*2,m=r.get("clockwise"),b=r.get("roseType"),_=r.get("stillShowZeroSum"),w=a.getDataExtent(i);w[0]=0;var C=Bm,S=0,x=d,T=m?1:-1;if(a.setLayout({viewRect:o,r:c}),a.each(i,function(A,k){var E;if(isNaN(A)){a.setItemLayout(k,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:m,cx:l,cy:u,r0:f,r:b?NaN:c});return}b!=="area"?E=p===0&&_?g:A*g:E=Bm/v,E<h?(E=h,C-=h):S+=A;var D=x+T*E;a.setItemLayout(k,{angle:E,startAngle:x,endAngle:D,clockwise:m,cx:l,cy:u,r0:f,r:b?sn(A,w,[f,c]):c}),x=D}),C<Bm&&v)if(C<=.001){var M=Bm/v;a.each(i,function(A,k){if(!isNaN(A)){var E=a.getItemLayout(k);E.angle=M,E.startAngle=d+T*k*M,E.endAngle=d+T*(k+1)*M}})}else g=C/S,x=d,a.each(i,function(A,k){if(!isNaN(A)){var E=a.getItemLayout(k),D=E.angle===h?h:A*g;E.startAngle=x,E.endAngle=x+T*D,x+=T*D}})})}function xg(e){return{seriesType:e,reset:function(t,n){var r=n.findComponents({mainType:"legend"});if(!(!r||!r.length)){var a=t.getData();a.filterSelf(function(i){for(var o=a.getName(i),s=0;s<r.length;s++)if(!r[s].isSelected(o))return!1;return!0})}}}}var TBe=Math.PI/180;function V$(e,t,n,r,a,i,o,s,l,u){if(e.length<2)return;function c(p){for(var g=p.rB,m=g*g,b=0;b<p.list.length;b++){var _=p.list[b],w=Math.abs(_.label.y-n),C=r+_.len,S=C*C,x=Math.sqrt((1-Math.abs(w*w/m))*S),T=t+(x+_.len2)*a,M=T-_.label.x,A=_.targetTextWidth-M*a;E7(_,A,!0),_.label.x=T}}function f(p){for(var g={list:[],maxY:0},m={list:[],maxY:0},b=0;b<p.length;b++)if(p[b].labelAlignTo==="none"){var _=p[b],w=_.label.y>n?m:g,C=Math.abs(_.label.y-n);if(C>=w.maxY){var S=_.label.x-t-_.len2*a,x=r+_.len,T=Math.abs(S)<x?Math.sqrt(C*C/(1-S*S/x/x)):x;w.rB=T,w.maxY=C}w.list.push(_)}c(g),c(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}Q9(e,l,l+o)&&f(e)}function MBe(e,t,n,r,a,i,o,s){for(var l=[],u=[],c=Number.MAX_VALUE,f=-Number.MAX_VALUE,d=0;d<e.length;d++){var h=e[d].label;Qw(e[d])||(h.x<t?(c=Math.min(c,h.x),l.push(e[d])):(f=Math.max(f,h.x),u.push(e[d])))}for(var d=0;d<e.length;d++){var v=e[d];if(!Qw(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+a-v.edgeDistance-p[2][0]-v.labelDistance:v.labelAlignTo==="labelLine"?h.x<t?g=c-o-v.bleedMargin:g=o+a-f-v.bleedMargin:h.x<t?g=h.x-o-v.bleedMargin:g=o+a-h.x-v.bleedMargin,v.targetTextWidth=g,E7(v,g)}}V$(u,t,n,r,1,a,i,o,s,f),V$(l,t,n,r,-1,a,i,o,s,c);for(var d=0;d<e.length;d++){var v=e[d];if(!Qw(v)&&v.linePoints){var h=v.label,p=v.linePoints,m=v.labelAlignTo==="edge",b=h.style.padding,_=b?b[1]+b[3]:0,w=h.style.backgroundColor?0:_,C=v.rect.width+w,S=p[1][0]-p[2][0];m?h.x<t?p[2][0]=o+v.edgeDistance+C+v.labelDistance:p[2][0]=o+a-v.edgeDistance-C-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]+S),p[1][1]=p[2][1]=h.y}}}function E7(e,t,n){if(n===void 0&&(n=!1),e.labelStyleWidth==null){var r=e.label,a=r.style,i=e.rect,o=a.backgroundColor,s=a.padding,l=s?s[1]+s[3]:0,u=a.overflow,c=i.width+(o?0:l);if(t<c||n){var f=i.height;if(u&&u.match("break")){r.setStyle("backgroundColor",null),r.setStyle("width",t-l);var d=r.getBoundingRect();r.setStyle("width",Math.ceil(d.width)),r.setStyle("backgroundColor",o)}else{var h=t-l,v=t<c?h:n?h>e.unconstrainedWidth?null:h:null;r.setStyle("width",v)}var p=r.getBoundingRect();i.width=p.width;var g=(r.style.margin||0)+2.1;i.height=p.height+g,i.y-=(i.height-f)/2}}}function Qw(e){return e.position==="center"}function kBe(e){var t=e.getData(),n=[],r,a,i=!1,o=(e.get("minShowLabelAngle")||0)*TBe,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,c=s.x,f=s.y,d=s.height;function h(S){S.ignore=!0}function v(S){if(!S.ignore)return!0;for(var x in S.states)if(S.states[x].ignore===!1)return!0;return!1}t.each(function(S){var x=t.getItemGraphicEl(S),T=x.shape,M=x.getTextContent(),A=x.getTextGuideLine(),k=t.getItemModel(S),E=k.getModel("label"),D=E.get("position")||k.get(["emphasis","label","position"]),L=E.get("distanceToLabelLine"),B=E.get("alignTo"),N=qe(E.get("edgeDistance"),u),O=E.get("bleedMargin"),$=k.getModel("labelLine"),I=$.get("length");I=qe(I,u);var z=$.get("length2");if(z=qe(z,u),Math.abs(T.endAngle-T.startAngle)<o){F(M.states,h),M.ignore=!0,A&&(F(A.states,h),A.ignore=!0);return}if(v(M)){var G=(T.startAngle+T.endAngle)/2,U=Math.cos(G),Z=Math.sin(G),ae,J,Q,ee;r=T.cx,a=T.cy;var j=D==="inside"||D==="inner";if(D==="center")ae=T.cx,J=T.cy,ee="center";else{var de=(j?(T.r+T.r0)/2*U:T.r*U)+r,ve=(j?(T.r+T.r0)/2*Z:T.r*Z)+a;if(ae=de+U*3,J=ve+Z*3,!j){var ie=de+U*(I+l-T.r),W=ve+Z*(I+l-T.r),X=ie+(U<0?-1:1)*z,oe=W;B==="edge"?ae=U<0?c+N:c+u-N:ae=X+(U<0?-L:L),J=oe,Q=[[de,ve],[ie,W],[X,oe]]}ee=j?"center":B==="edge"?U>0?"right":"left":U>0?"left":"right"}var pe=Math.PI,Se=0,me=E.get("rotate");if(Qt(me))Se=me*(pe/180);else if(D==="center")Se=0;else if(me==="radial"||me===!0){var Ee=U<0?-G+pe:-G;Se=Ee}else if(me==="tangential"&&D!=="outside"&&D!=="outer"){var Ce=Math.atan2(U,Z);Ce<0&&(Ce=pe*2+Ce);var we=Z>0;we&&(Ce=pe+Ce),Se=Ce-pe}if(i=!!Se,M.x=ae,M.y=J,M.rotation=Se,M.setStyle({verticalAlign:"middle"}),j){M.setStyle({align:ee});var Be=M.states.select;Be&&(Be.x+=M.x,Be.y+=M.y)}else{var Te=M.getBoundingRect().clone();Te.applyTransform(M.getComputedTransform());var $e=(M.style.margin||0)+2.1;Te.y-=$e/2,Te.height+=$e,n.push({label:M,labelLine:A,position:D,len:I,len2:z,minTurnAngle:$.get("minTurnAngle"),maxSurfaceAngle:$.get("maxSurfaceAngle"),surfaceNormal:new Pt(U,Z),linePoints:Q,textAlign:ee,labelDistance:L,labelAlignTo:B,edgeDistance:N,bleedMargin:O,rect:Te,unconstrainedWidth:Te.width,labelStyleWidth:M.style.width})}x.setTextConfig({inside:j})}}),!i&&e.get("avoidLabelOverlap")&&MBe(n,r,a,l,u,d,c,f);for(var p=0;p<n.length;p++){var g=n[p],m=g.label,b=g.labelLine,_=isNaN(m.x)||isNaN(m.y);if(m){m.setStyle({align:g.textAlign}),_&&(F(m.states,h),m.ignore=!0);var w=m.states.select;w&&(w.x+=m.x,w.y+=m.y)}if(b){var C=g.linePoints;_||!C?(F(b.states,h),b.ignore=!0):(X9(C,g.minTurnAngle),z3e(C,g.surfaceNormal,g.maxSurfaceAngle),b.setShape({points:C}),m.__hostTarget.textGuideLineConfig={anchor:new Pt(C[0][0],C[0][1])})}}}var ABe=function(e){ge(t,e);function t(n,r,a){var i=e.call(this)||this;i.z2=2;var o=new Xt;return i.setTextContent(o),i.updateData(n,r,a,!0),i}return t.prototype.updateData=function(n,r,a,i){var o=this,s=n.hostModel,l=n.getItemModel(r),u=l.getModel("emphasis"),c=n.getItemLayout(r),f=Ie(Gu(l.getModel("itemStyle"),c,!0),c);if(isNaN(f.startAngle)){o.setShape(f);return}if(i){o.setShape(f);var d=s.getShallow("animationType");s.ecModel.ssr?(xn(o,{scaleX:0,scaleY:0},s,{dataIndex:r,isFrom:!0}),o.originX=f.cx,o.originY=f.cy):d==="scale"?(o.shape.r=c.r0,xn(o,{shape:{r:c.r}},s,r)):a!=null?(o.setShape({startAngle:a,endAngle:a}),xn(o,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},s,r)):(o.shape.endAngle=c.startAngle,nn(o,{shape:{endAngle:c.endAngle}},s,r))}else Gi(o),nn(o,{shape:f},s,r);o.useStyle(n.getItemVisual(r,"style")),xr(o,l);var h=(c.startAngle+c.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,n,r),o.ensureState("emphasis").shape=Ie({r:c.r+(u.get("scale")&&u.get("scaleSize")||0)},Gu(u.getModel("itemStyle"),c)),Ie(o.ensureState("select"),{x:p,y:g,shape:Gu(l.getModel(["select","itemStyle"]),c)}),Ie(o.ensureState("blur"),{shape:Gu(l.getModel(["blur","itemStyle"]),c)});var b=o.getTextGuideLine(),_=o.getTextContent();b&&Ie(b.ensureState("select"),{x:p,y:g}),Ie(_.ensureState("select"),{x:p,y:g}),$n(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(n,r,a){var i=this,o=r.getItemModel(a),s=o.getModel("labelLine"),l=r.getItemVisual(a,"style"),u=l&&l.fill,c=l&&l.opacity;Tr(i,lr(o),{labelFetcher:r.hostModel,labelDataIndex:a,inheritColor:u,defaultOpacity:c,defaultText:n.getFormattedLabel(a,"normal")||r.getName(a)});var f=i.getTextContent();i.setTextConfig({position:null,rotation:null}),f.attr({z2:10});var d=n.get(["label","position"]);if(d!=="outside"&&d!=="outer")i.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new ia,this.setTextGuideLine(h)),LA(this,RA(o),{stroke:u,opacity:Ri(s.get(["lineStyle","opacity"]),c,1)})}},t}(na),EBe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.ignoreLabelLineUpdate=!0,n}return t.prototype.render=function(n,r,a,i){var o=n.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var c=o.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f<o.count();++f)c=o.getItemLayout(f);c&&(u=c.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&n.get("showEmptyCircle")){var d=new na({shape:A7(n,a)});d.useStyle(n.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=d,l.add(d)}o.diff(s).add(function(h){var v=new ABe(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);Sp(v,n,h)}).execute(),kBe(n),n.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(n,r){var a=r.getData(),i=a.getItemLayout(0);if(i){var o=n[0]-i.cx,s=n[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},t.type="pie",t}(vn);const IBe=EBe;function Yd(e,t,n){t=Re(t)&&{coordDimensions:t}||Ie({encodeDefine:e.getEncode()},t);var r=e.getSource(),a=Kd(r,t).dimensions,i=new Or(a,e);return i.initData(r,n),i}var DBe=function(){function e(t,n){this._getDataWithEncodedVisual=t,this._getRawData=n}return e.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},e.prototype.containName=function(t){var n=this._getRawData();return n.indexOfName(t)>=0},e.prototype.indexOfName=function(t){var n=this._getDataWithEncodedVisual();return n.indexOfName(t)},e.prototype.getItemVisual=function(t,n){var r=this._getDataWithEncodedVisual();return r.getItemVisual(t,n)},e}();const Tg=DBe;var PBe=en(),LBe=function(e){ge(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(n){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Tg(et(this.getData,this),et(this.getRawData,this)),this._defaultLabelLine(n)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return Yd(this,{coordDimensions:["value"],encodeDefaulter:xt(aA,this)})},t.prototype.getDataParams=function(n){var r=this.getData(),a=PBe(r),i=a.seats;if(!i){var o=[];r.each(r.mapDimension("value"),function(l){o.push(l)}),i=a.seats=DH(o,r.hostModel.get("percentPrecision"))}var s=e.prototype.getDataParams.call(this,n);return s.percent=i[n]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(n){uc(n,"labelLine",["show"]);var r=n.labelLine,a=n.emphasis.labelLine;r.show=r.show&&n.label.show,a.show=a.show&&n.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}(_n);const RBe=LBe;function OBe(e){return{seriesType:e,reset:function(t,n){var r=t.getData();r.filterSelf(function(a){var i=r.mapDimension("value"),o=r.get(i,a);return!(Qt(o)&&!isNaN(o)&&o<0)})}}}function $Be(e){e.registerChartView(IBe),e.registerSeriesModel(RBe),WW("pie",e.registerAction),e.registerLayout(xt(xBe,"pie")),e.registerProcessor(xg("pie")),e.registerProcessor(OBe("pie"))}var NBe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.getInitialData=function(n,r){return Io(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var n=this.option.progressive;return n??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var n=this.option.progressiveThreshold;return n??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(n,r,a){return a.point(r.getItemLayout(n))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(_n);const BBe=NBe;var I7=4,VBe=function(){function e(){}return e}(),zBe=function(e){ge(t,e);function t(n){var r=e.call(this,n)||this;return r._off=0,r.hoverDataIdx=-1,r}return t.prototype.getDefaultShape=function(){return new VBe},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(n,r){var a=r.points,i=r.size,o=this.symbolProxy,s=o.shape,l=n.getContext?n.getContext():n,u=l&&i[0]<I7,c=this.softClipShape,f;if(u){this._ctx=l;return}for(this._ctx=null,f=this._off;f<a.length;){var d=a[f++],h=a[f++];isNaN(d)||isNaN(h)||c&&!c.contain(d,h)||(s.x=d-i[0]/2,s.y=h-i[1]/2,s.width=i[0],s.height=i[1],o.buildPath(n,s,!0))}this.incremental&&(this._off=f,this.notClear=!0)},t.prototype.afterBrush=function(){var n=this.shape,r=n.points,a=n.size,i=this._ctx,o=this.softClipShape,s;if(i){for(s=this._off;s<r.length;){var l=r[s++],u=r[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||i.fillRect(l-a[0]/2,u-a[1]/2,a[0],a[1])}this.incremental&&(this._off=s,this.notClear=!0)}},t.prototype.findDataIndex=function(n,r){for(var a=this.shape,i=a.points,o=a.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=i.length/2-1;u>=0;u--){var c=u*2,f=i[c]-s/2,d=i[c+1]-l/2;if(n>=f&&r>=d&&n<=f+s&&r<=d+l)return u}return-1},t.prototype.contain=function(n,r){var a=this.transformCoordToLocal(n,r),i=this.getBoundingRect();if(n=a[0],r=a[1],i.contain(n,r)){var o=this.hoverDataIdx=this.findDataIndex(n,r);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var n=this._rect;if(!n){for(var r=this.shape,a=r.points,i=r.size,o=i[0],s=i[1],l=1/0,u=1/0,c=-1/0,f=-1/0,d=0;d<a.length;){var h=a[d++],v=a[d++];l=Math.min(h,l),c=Math.max(h,c),u=Math.min(v,u),f=Math.max(v,f)}n=this._rect=new Rt(l-o/2,u-s/2,c-l+o,f-u+s)}return n},t}(zt),FBe=function(){function e(){this.group=new bt}return e.prototype.updateData=function(t,n){this._clear();var r=this._create();r.setShape({points:t.getLayout("points")}),this._setCommon(r,t,n)},e.prototype.updateLayout=function(t){var n=t.getLayout("points");this.group.eachChild(function(r){if(r.startIndex!=null){var a=(r.endIndex-r.startIndex)*2,i=r.startIndex*4*2;n=new Float32Array(n.buffer,i,a)}r.setShape("points",n),r.reset()})},e.prototype.incrementalPrepareUpdate=function(t){this._clear()},e.prototype.incrementalUpdate=function(t,n,r){var a=this._newAdded[0],i=n.getLayout("points"),o=a&&a.shape.points;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+i.length);l.set(o),l.set(i,s),a.endIndex=t.end,a.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=t.start,u.endIndex=t.end,u.incremental=!0,u.setShape({points:i}),this._setCommon(u,n,r)}},e.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},e.prototype._create=function(){var t=new zBe({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},e.prototype._setCommon=function(t,n,r){var a=n.hostModel;r=r||{};var i=n.getVisual("symbolSize");t.setShape("size",i instanceof Array?i:[i,i]),t.softClipShape=r.clipShape||null,t.symbolProxy=Hn(n.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<I7;t.useStyle(a.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=n.getVisual("style"),l=s&&s.fill;l&&t.setColor(l);var u=Tt(t);u.seriesIndex=a.seriesIndex,t.on("mousemove",function(c){u.dataIndex=null;var f=t.hoverDataIdx;f>=0&&(u.dataIndex=f+(t.startIndex||0))})},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}();const HBe=FBe;var GBe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){var i=n.getData(),o=this._updateSymbolDraw(i,n);o.updateData(i,{clipShape:this._getClipShape(n)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(n,r,a){var i=n.getData(),o=this._updateSymbolDraw(i,n);o.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(n,r,a){this._symbolDraw.incrementalUpdate(n,r.getData(),{clipShape:this._getClipShape(r)}),this._finished=n.end===r.getData().count()},t.prototype.updateTransform=function(n,r,a){var i=n.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=Cg("").reset(n,r,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},t.prototype.eachRendered=function(n){this._symbolDraw&&this._symbolDraw.eachRendered(n)},t.prototype._getClipShape=function(n){var r=n.coordinateSystem,a=r&&r.getArea&&r.getArea();return n.get("clip",!0)?a:null},t.prototype._updateSymbolDraw=function(n,r){var a=this._symbolDraw,i=r.pipelineContext,o=i.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new HBe:new Sg,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},t.prototype.remove=function(n,r){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(vn);const WBe=GBe;var KBe=function(e){ge(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}(Yt);const UBe=KBe;var L2=function(e){ge(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Wn).models[0]},t.type="cartesian2dAxis",t}(Yt);Vn(L2,Ud);var D7={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)"]}}},YBe=Dt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},D7),VA=Dt({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}}},D7),jBe=Dt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},VA),qBe=ft({logBase:10},VA);const P7={category:YBe,value:VA,time:jBe,log:qBe};var XBe={value:1,category:1,time:1,log:1};function pd(e,t,n,r){F(XBe,function(a,i){var o=Dt(Dt({},P7[i],!0),r,!0),s=function(l){ge(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+i,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var d=Tp(this),h=d?Bd(c):{},v=f.getTheme();Dt(c,v.get(i+"Axis")),Dt(c,this.getDefaultOption()),c.type=z$(c),d&&yl(c,h,d)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=T2.createByAxisModel(this))},u.prototype.getCategories=function(c){var f=this.option;if(f.type==="category")return c?f.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+i,u.defaultOption=o,u}(n);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",z$)}function z$(e){return e.type||(e.data?"category":"value")}var ZBe=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(),ln(this.getAxes(),function(n){return n.scale.type===t})},e.prototype.addAxis=function(t){var n=t.dim;this._axes[n]=t,this._dimList.push(n)},e}();const JBe=ZBe;var R2=["x","y"];function F$(e){return e.type==="interval"||e.type==="time"}var QBe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="cartesian2d",n.dimensions=R2,n}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var n=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!F$(n)||!F$(r))){var a=n.getExtent(),i=r.getExtent(),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),l=a[1]-a[0],u=i[1]-i[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,f=(s[1]-o[1])/u,d=o[0]-a[0]*c,h=o[1]-i[0]*f,v=this._transform=[c,0,0,f,d,h];this._invTransform=xc([],v)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(n){var r=this.getAxis("x"),a=this.getAxis("y");return r.contain(r.toLocalCoord(n[0]))&&a.contain(a.toLocalCoord(n[1]))},t.prototype.containData=function(n){return this.getAxis("x").containData(n[0])&&this.getAxis("y").containData(n[1])},t.prototype.containZone=function(n,r){var a=this.dataToPoint(n),i=this.dataToPoint(r),o=this.getArea(),s=new Rt(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},t.prototype.dataToPoint=function(n,r,a){a=a||[];var i=n[0],o=n[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return hr(a,n,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,r)),a[1]=l.toGlobalCoord(l.dataToCoord(o,r)),a},t.prototype.clampData=function(n,r){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),l=a.parse(n[0]),u=i.parse(n[1]);return r=r||[],r[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),r[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),r},t.prototype.pointToData=function(n,r){var a=[];if(this._invTransform)return hr(a,n,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(n[0]),r),a[1]=o.coordToData(o.toLocalCoord(n[1]),r),a},t.prototype.getOtherAxis=function(n){return this.getAxis(n.dim==="x"?"y":"x")},t.prototype.getArea=function(){var n=this.getAxis("x").getGlobalExtent(),r=this.getAxis("y").getGlobalExtent(),a=Math.min(n[0],n[1]),i=Math.min(r[0],r[1]),o=Math.max(n[0],n[1])-a,s=Math.max(r[0],r[1])-i;return new Rt(a,i,o,s)},t}(JBe),eVe=function(e){ge(t,e);function t(n,r,a,i,o){var s=e.call(this,n,r,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var n=this.position;return n==="top"||n==="bottom"},t.prototype.getGlobalExtent=function(n){var r=this.getExtent();return r[0]=this.toGlobalCoord(r[0]),r[1]=this.toGlobalCoord(r[1]),n&&r[0]>r[1]&&r.reverse(),r},t.prototype.pointToData=function(n,r){return this.coordToData(this.toLocalCoord(n[this.dim==="x"?0:1]),r)},t.prototype.setCategorySortInfo=function(n){if(this.type!=="category")return!1;this.model.option.categorySortInfo=n,this.scale.setSortInfo(n)},t}(pi);const tVe=eVe;function O2(e,t,n){n=n||{};var r=e.coordinateSystem,a=t.axis,i={},o=a.getAxesOnZeroOf()[0],s=a.position,l=o?"onZero":s,u=a.dim,c=r.getRect(),f=[c.x,c.x+c.width,c.y,c.y+c.height],d={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,v=u==="x"?[f[2]-h,f[3]+h]:[f[0]-h,f[1]+h];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));v[d.onZero]=Math.max(Math.min(p,v[1]),v[0])}i.position=[u==="y"?v[d[l]]:f[0],u==="x"?v[d[l]]:f[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=g[s],i.labelOffset=o?v[d[s]]-v[d.onZero]:0,t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),rr(n.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var m=t.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-m:m,i.z2=1,i}function H$(e){return e.get("coordinateSystem")==="cartesian2d"}function G$(e){var t={xAxisModel:null,yAxisModel:null};return F(t,function(n,r){var a=r.replace(/Model$/,""),i=e.getReferringComponents(a,Wn).models[0];t[r]=i}),t}var eS=Math.log;function L7(e,t,n){var r=bl.prototype,a=r.getTicks.call(n),i=r.getTicks.call(n,!0),o=a.length-1,s=r.getInterval.call(n),l=B9(e,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(e.type==="log"){var d=eS(e.base);u=[eS(u[0])/d,eS(u[1])/d]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:f});var h=r.getExtent.call(e);c&&(u[0]=h[0]),f&&(u[1]=h[1]);var v=r.getInterval.call(e),p=u[0],g=u[1];if(c&&f)v=(g-p)/o;else if(c)for(g=u[0]+v*o;g<u[1]&&isFinite(g)&&isFinite(u[1]);)v=zw(v),g=u[0]+v*o;else if(f)for(p=u[1]-v*o;p>u[0]&&isFinite(p)&&isFinite(u[0]);)v=zw(v),p=u[1]-v*o;else{var m=e.getTicks().length-1;m>o&&(v=zw(v));var b=v*o;g=Math.ceil(u[1]/v)*v,p=Rn(g-b),p<0&&u[0]>=0?(p=0,g=Rn(b)):g>0&&u[1]<=0&&(g=0,p=-Rn(b))}var _=(a[0].value-i[0].value)/s,w=(a[o].value-i[o].value)/s;r.setExtent.call(e,p+v*_,g+v*w),r.setInterval.call(e,v),(_||w)&&r.setNiceExtent.call(e,p+v,g-v)}var nVe=function(){function e(t,n,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=R2,this._initCartesian(t,n,r),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,n){var r=this._axesMap;this._updateScale(t,this.model);function a(o){var s,l=Gt(o),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var d=+l[f],h=o[d],v=h.model,p=h.scale;M2(p)&&v.get("alignTicks")&&v.get("interval")==null?c.push(h):(vc(p,v),M2(p)&&(s=h))}c.length&&(s||(s=c.pop(),vc(s.scale,s.model)),F(c,function(g){L7(g.scale,g.model,s.scale)}))}}a(r.x),a(r.y);var i={};F(r.x,function(o){W$(r,"y",o,i)}),F(r.y,function(o){W$(r,"x",o,i)}),this.resize(this.model,n)},e.prototype.resize=function(t,n,r){var a=t.getBoxLayoutParams(),i=!r&&t.get("containLabel"),o=Xn(a,{width:n.getWidth(),height:n.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(F(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=n3e(u);if(c){var f=u.isHorizontal()?"height":"width",d=u.model.get(["axisLabel","margin"]);o[f]-=c[f]+d,u.position==="top"?o.y+=c.height+d:u.position==="left"&&(o.x+=c.width+d)}}}),l()),F(this._coordsList,function(u){u.calcAffineTransform()});function l(){F(s,function(u){var c=u.isHorizontal(),f=c?[0,o.width]:[0,o.height],d=u.inverse?1:0;u.setExtent(f[d],f[1-d]),rVe(u,c?o.x:o.y)})}},e.prototype.getAxis=function(t,n){var r=this._axesMap[t];if(r!=null)return r[n||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,n){if(t!=null&&n!=null){var r="x"+t+"y"+n;return this._coordsMap[r]}ht(t)&&(n=t.yAxisIndex,t=t.xAxisIndex);for(var a=0,i=this._coordsList;a<i.length;a++)if(i[a].getAxis("x").index===t||i[a].getAxis("y").index===n)return i[a]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(t,n,r){var a=this._findConvertTarget(n);return a.cartesian?a.cartesian.dataToPoint(r):a.axis?a.axis.toGlobalCoord(a.axis.dataToCoord(r)):null},e.prototype.convertFromPixel=function(t,n,r){var a=this._findConvertTarget(n);return a.cartesian?a.cartesian.pointToData(r):a.axis?a.axis.coordToData(a.axis.toLocalCoord(r)):null},e.prototype._findConvertTarget=function(t){var n=t.seriesModel,r=t.xAxisModel||n&&n.getReferringComponents("xAxis",Wn).models[0],a=t.yAxisModel||n&&n.getReferringComponents("yAxis",Wn).models[0],i=t.gridModel,o=this._coordsList,s,l;if(n)s=n.coordinateSystem,$t(o,s)<0&&(s=null);else if(r&&a)s=this.getCartesian(r.componentIndex,a.componentIndex);else if(r)l=this.getAxis("x",r.componentIndex);else if(a)l=this.getAxis("y",a.componentIndex);else if(i){var u=i.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},e.prototype.containPoint=function(t){var n=this._coordsList[0];if(n)return n.containPoint(t)},e.prototype._initCartesian=function(t,n,r){var a=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(n.eachComponent("xAxis",u("x"),this),n.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,F(s.x,function(c,f){F(s.y,function(d,h){var v="x"+f+"y"+h,p=new QBe(v);p.master=a,p.model=t,a._coordsMap[v]=p,a._coordsList.push(p),p.addAxis(c),p.addAxis(d)})});function u(c){return function(f,d){if(tS(f,t)){var h=f.get("position");c==="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 tVe(c,bg(f),[0,0],f.get("type"),h),p=v.type==="category";v.onBand=p&&f.get("boundaryGap"),v.inverse=f.get("inverse"),f.axis=v,v.model=f,v.grid=i,v.index=d,i._axesList.push(v),s[c][d]=v,l[c]++}}}},e.prototype._updateScale=function(t,n){F(this._axesList,function(a){if(a.scale.setExtent(1/0,-1/0),a.type==="category"){var i=a.model.get("categorySortInfo");a.scale.setSortInfo(i)}}),t.eachSeries(function(a){if(H$(a)){var i=G$(a),o=i.xAxisModel,s=i.yAxisModel;if(!tS(o,n)||!tS(s,n))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=a.getData(),c=l.getAxis("x"),f=l.getAxis("y");r(u,c),r(u,f)}},this);function r(a,i){F(J0(a,i.dim),function(o){i.scale.unionExtentFromData(a,o)})}},e.prototype.getTooltipAxes=function(t){var n=[],r=[];return F(this.getCartesians(),function(a){var i=t!=null&&t!=="auto"?a.getAxis(t):a.getBaseAxis(),o=a.getOtherAxis(i);$t(n,i)<0&&n.push(i),$t(r,o)<0&&r.push(o)}),{baseAxes:n,otherAxes:r}},e.create=function(t,n){var r=[];return t.eachComponent("grid",function(a,i){var o=new e(a,t,n);o.name="grid_"+i,o.resize(a,n,!0),a.coordinateSystem=o,r.push(o)}),t.eachSeries(function(a){if(H$(a)){var i=G$(a),o=i.xAxisModel,s=i.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;a.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),r},e.dimensions=R2,e}();function tS(e,t){return e.getCoordSysModel()===t}function W$(e,t,n,r){n.getAxesOnZeroOf=function(){return i?[i]:[]};var a=e[t],i,o=n.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)K$(a[l])&&(i=a[l]);else for(var u in a)if(a.hasOwnProperty(u)&&K$(a[u])&&!r[c(a[u])]){i=a[u];break}i&&(r[c(i)]=!0);function c(f){return f.dim+"_"+f.index}}function K$(e){return e&&e.type!=="category"&&e.type!=="time"&&t3e(e)}function rVe(e,t){var n=e.getExtent(),r=n[0]+n[1];e.toGlobalCoord=e.dim==="x"?function(a){return a+t}:function(a){return r-a+t},e.toLocalCoord=e.dim==="x"?function(a){return a-t}:function(a){return r-a+t}}const aVe=nVe;var js=Math.PI,tc=function(){function e(t,n){this.group=new bt,this.opt=n,this.axisModel=t,ft(n,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var r=new bt({x:n.position[0],y:n.position[1],rotation:n.rotation});r.updateTransform(),this._transformGroup=r}return e.prototype.hasBuilder=function(t){return!!U$[t]},e.prototype.add=function(t){U$[t](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(t,n,r){var a=Ik(n-t),i,o;return mp(a)?(o=r>0?"top":"bottom",i="center"):mp(a-js)?(o=r>0?"bottom":"top",i="center"):(o="middle",a>0&&a<js?i=r>0?"right":"left":i=r>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},e.makeAxisEventDataBase=function(t){var n={componentType:t.mainType,componentIndex:t.componentIndex};return n[t.mainType+"Index"]=t.componentIndex,n},e.isLabelSilent=function(t){var n=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||n&&n.show)},e}(),U$={axisLine:function(e,t,n,r){var a=t.get(["axisLine","show"]);if(a==="auto"&&e.handleAutoShown&&(a=e.handleAutoShown("axisLine")),!!a){var i=t.axis.getExtent(),o=r.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(hr(s,s,o),hr(l,l,o));var c=Ie({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new ar({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});fd(f.shape,f.style.lineWidth),f.anid="line",n.add(f);var d=t.get(["axisLine","symbol"]);if(d!=null){var h=t.get(["axisLine","symbolSize"]);Je(d)&&(d=[d,d]),(Je(h)||Qt(h))&&(h=[h,h]);var v=kc(t.get(["axisLine","symbolOffset"])||0,h),p=h[0],g=h[1];F([{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,b){if(d[b]!=="none"&&d[b]!=null){var _=Hn(d[b],-p/2,-g/2,p,g,c.stroke,!0),w=m.r+m.offset,C=u?l:s;_.attr({rotation:m.rotate,x:C[0]+w*Math.cos(e.rotation),y:C[1]-w*Math.sin(e.rotation),silent:!0,z2:11}),n.add(_)}})}}},axisTickLabel:function(e,t,n,r){var a=sVe(n,r,t,e),i=uVe(n,r,t,e);if(oVe(t,i,a),lVe(n,r,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=Z9(Oe(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));e7(o)}},axisName:function(e,t,n,r){var a=rr(e.axisName,t.get("name"));if(a){var i=t.get("nameLocation"),o=e.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),c=u[0]>u[1]?-1:1,f=[i==="start"?u[0]-c*l:i==="end"?u[1]+c*l:(u[0]+u[1])/2,j$(i)?e.labelOffset+o*l:0],d,h=t.get("nameRotate");h!=null&&(h=h*js/180);var v;j$(i)?d=tc.innerTextLayout(e.rotation,h??e.rotation,o):(d=iVe(e.rotation,i,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,b=rr(e.nameTruncateMaxWidth,g.maxWidth,v),_=new Xt({x:f[0],y:f[1],rotation:d.rotation,silent:tc.isLabelSilent(t),style:gn(s,{text:a,font:p,overflow:"truncate",width:b,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(Od({el:_,componentModel:t,itemName:a}),_.__fullText=a,_.anid="name",t.get("triggerEvent")){var w=tc.makeAxisEventDataBase(t);w.targetType="axisName",w.name=a,Tt(_).eventData=w}r.add(_),_.updateTransform(),n.add(_),_.decomposeTransform()}}};function iVe(e,t,n,r){var a=Ik(n-e),i,o,s=r[0]>r[1],l=t==="start"&&!s||t!=="start"&&s;return mp(a-js/2)?(o=l?"bottom":"top",i="center"):mp(a-js*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",a<js*1.5&&a>js/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function oVe(e,t,n){if(!V9(e.axis)){var r=e.get(["axisLabel","showMinLabel"]),a=e.get(["axisLabel","showMaxLabel"]);t=t||[],n=n||[];var i=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=n[0],c=n[1],f=n[n.length-1],d=n[n.length-2];r===!1?(Na(i),Na(u)):Y$(i,o)&&(r?(Na(o),Na(c)):(Na(i),Na(u))),a===!1?(Na(s),Na(f)):Y$(l,s)&&(a?(Na(l),Na(d)):(Na(s),Na(f)))}}function Na(e){e&&(e.ignore=!0)}function Y$(e,t){var n=e&&e.getBoundingRect().clone(),r=t&&t.getBoundingRect().clone();if(!(!n||!r)){var a=sg([]);return Pl(a,a,-e.rotation),n.applyTransform(go([],a,e.getLocalTransform())),r.applyTransform(go([],a,t.getLocalTransform())),n.intersect(r)}}function j$(e){return e==="middle"||e==="center"}function R7(e,t,n,r,a){for(var i=[],o=[],s=[],l=0;l<e.length;l++){var u=e[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=n,t&&(hr(o,o,t),hr(s,s,t));var c=new ar({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});fd(c.shape,c.style.lineWidth),c.anid=a+"_"+e[l].tickValue,i.push(c)}return i}function sVe(e,t,n,r){var a=n.axis,i=n.getModel("axisTick"),o=i.get("show");if(o==="auto"&&r.handleAutoShown&&(o=r.handleAutoShown("axisTick")),!(!o||a.scale.isBlank())){for(var s=i.getModel("lineStyle"),l=r.tickDirection*i.get("length"),u=a.getTicksCoords(),c=R7(u,t.transform,l,ft(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),f=0;f<c.length;f++)e.add(c[f]);return c}}function lVe(e,t,n,r){var a=n.axis,i=n.getModel("minorTick");if(!(!i.get("show")||a.scale.isBlank())){var o=a.getMinorTicksCoords();if(o.length)for(var s=i.getModel("lineStyle"),l=r*i.get("length"),u=ft(s.getLineStyle(),ft(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<o.length;c++)for(var f=R7(o[c],t.transform,l,u,"minorticks_"+c),d=0;d<f.length;d++)e.add(f[d])}}function uVe(e,t,n,r){var a=n.axis,i=rr(r.axisLabelShow,n.get(["axisLabel","show"]));if(!(!i||a.scale.isBlank())){var o=n.getModel("axisLabel"),s=o.get("margin"),l=a.getViewLabels(),u=(rr(r.labelRotate,o.get("rotate"))||0)*js/180,c=tc.innerTextLayout(r.rotation,u,r.labelDirection),f=n.getCategories&&n.getCategories(!0),d=[],h=tc.isLabelSilent(n),v=n.get("triggerEvent");return F(l,function(p,g){var m=a.scale.type==="ordinal"?a.scale.getRawOrdinalNumber(p.tickValue):p.tickValue,b=p.formattedLabel,_=p.rawLabel,w=o;if(f&&f[m]){var C=f[m];ht(C)&&C.textStyle&&(w=new dn(C.textStyle,o,n.ecModel))}var S=w.getTextColor()||n.get(["axisLine","lineStyle","color"]),x=a.dataToCoord(m),T=new Xt({x,y:r.labelOffset+r.labelDirection*s,rotation:c.rotation,silent:h,z2:10+(p.level||0),style:gn(w,{text:b,align:w.getShallow("align",!0)||c.textAlign,verticalAlign:w.getShallow("verticalAlign",!0)||w.getShallow("baseline",!0)||c.textVerticalAlign,fill:ut(S)?S(a.type==="category"?_:a.type==="value"?m+"":m,g):S})});if(T.anid="label_"+m,v){var M=tc.makeAxisEventDataBase(n);M.targetType="axisLabel",M.value=_,M.tickIndex=g,a.type==="category"&&(M.dataIndex=m),Tt(T).eventData=M}t.add(T),T.updateTransform(),d.push(T),e.add(T),T.decomposeTransform()}),d}}const ss=tc;function cVe(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return fVe(n,e,t),n.seriesInvolved&&hVe(n,e),n}function fVe(e,t,n){var r=t.getComponent("tooltip"),a=t.getComponent("axisPointer"),i=a.get("link",!0)||[],o=[];F(n.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Lp(s.model),u=e.coordSysAxesInfo[l]={};e.coordSysMap[l]=s;var c=s.model,f=c.getModel("tooltip",r);if(F(s.getAxes(),xt(p,!1,null)),s.getTooltipAxes&&r&&f.get("show")){var d=f.get("trigger")==="axis",h=f.get(["axisPointer","type"])==="cross",v=s.getTooltipAxes(f.get(["axisPointer","axis"]));(d||h)&&F(v.baseAxes,xt(p,h?"cross":!0,d)),h&&F(v.otherAxes,xt(p,"cross",!1))}function p(g,m,b){var _=b.model.getModel("axisPointer",a),w=_.get("show");if(!(!w||w==="auto"&&!g&&!$2(_))){m==null&&(m=_.get("triggerTooltip")),_=g?dVe(b,f,a,t,g,m):_;var C=_.get("snap"),S=_.get("triggerEmphasis"),x=Lp(b.model),T=m||C||b.type==="category",M=e.axesInfo[x]={key:x,axis:b,coordSys:s,axisPointerModel:_,triggerTooltip:m,triggerEmphasis:S,involveSeries:T,snap:C,useHandle:$2(_),seriesModels:[],linkGroup:null};u[x]=M,e.seriesInvolved=e.seriesInvolved||T;var A=vVe(i,b);if(A!=null){var k=o[A]||(o[A]={axesInfo:{}});k.axesInfo[x]=M,k.mapper=i[A].mapper,M.linkGroup=k}}}})}function dVe(e,t,n,r,a,i){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};F(s,function(d){l[d]=pt(o.get(d))}),l.snap=e.type!=="category"&&!!i,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),a==="cross"){var c=o.get(["label","show"]);if(u.show=c??!0,!i){var f=l.lineStyle=o.get("crossStyle");f&&ft(u,f.textStyle)}}return e.model.getModel("axisPointer",new dn(l,n,r))}function hVe(e,t){t.eachSeries(function(n){var r=n.coordinateSystem,a=n.get(["tooltip","trigger"],!0),i=n.get(["tooltip","show"],!0);!r||a==="none"||a===!1||a==="item"||i===!1||n.get(["axisPointer","show"],!0)===!1||F(e.coordSysAxesInfo[Lp(r.model)],function(o){var s=o.axis;r.getAxis(s.dim)===s&&(o.seriesModels.push(n),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=n.getData().count())})})}function vVe(e,t){for(var n=t.model,r=t.dim,a=0;a<e.length;a++){var i=e[a]||{};if(nS(i[r+"AxisId"],n.id)||nS(i[r+"AxisIndex"],n.componentIndex)||nS(i[r+"AxisName"],n.name))return a}}function nS(e,t){return e==="all"||Re(e)&&$t(e,t)>=0||e===t}function pVe(e){var t=zA(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,a=n.option,i=n.get("status"),o=n.get("value");o!=null&&(o=r.parse(o));var s=$2(n);i==null&&(a.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),a.value=o,s&&(a.status=t.axis.scale.isBlank()?"hide":"show")}}function zA(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Lp(e)]}function gVe(e){var t=zA(e);return t&&t.axisPointerModel}function $2(e){return!!e.get(["handle","show"])}function Lp(e){return e.type+"||"+e.id}var q$={},mVe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a,i){this.axisPointerClass&&pVe(n),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(n,a,!0)},t.prototype.updateAxisPointer=function(n,r,a,i){this._doUpdateAxisPointerClass(n,a,!1)},t.prototype.remove=function(n,r){var a=this._axisPointer;a&&a.remove(r)},t.prototype.dispose=function(n,r){this._disposeAxisPointer(r),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(n,r,a){var i=t.getAxisPointerClass(this.axisPointerClass);if(i){var o=gVe(n);o?(this._axisPointer||(this._axisPointer=new i)).render(n,o,r,a):this._disposeAxisPointer(r)}},t.prototype._disposeAxisPointer=function(n){this._axisPointer&&this._axisPointer.dispose(n),this._axisPointer=null},t.registerAxisPointerClass=function(n,r){q$[n]=r},t.getAxisPointerClass=function(n){return n&&q$[n]},t.type="axis",t}(An);const Ec=mVe;var N2=en();function O7(e,t,n,r){var a=n.axis;if(!a.scale.isBlank()){var i=n.getModel("splitArea"),o=i.getModel("areaStyle"),s=o.get("color"),l=r.coordinateSystem.getRect(),u=a.getTicksCoords({tickModel:i,clamp:!0});if(u.length){var c=s.length,f=N2(e).splitAreaColors,d=ot(),h=0;if(f)for(var v=0;v<u.length;v++){var p=f.get(u[v].tickValue);if(p!=null){h=(p+(c-1)*v)%c;break}}var g=a.toGlobalCoord(u[0].coord),m=o.getAreaStyle();s=Re(s)?s:[s];for(var v=1;v<u.length;v++){var b=a.toGlobalCoord(u[v].coord),_=void 0,w=void 0,C=void 0,S=void 0;a.isHorizontal()?(_=g,w=l.y,C=b-_,S=l.height,g=_+C):(_=l.x,w=g,C=l.width,S=b-w,g=w+S);var x=u[v-1].tickValue;x!=null&&d.set(x,h),t.add(new Zt({anid:x!=null?"area_"+x:null,shape:{x:_,y:w,width:C,height:S},style:ft({fill:s[h]},m),autoBatch:!0,silent:!0})),h=(h+1)%c}N2(e).splitAreaColors=d}}}function $7(e){N2(e).splitAreaColors=null}var yVe=["axisLine","axisTickLabel","axisName"],bVe=["splitArea","splitLine","minorSplitLine"],N7=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="CartesianAxisPointer",n}return t.prototype.render=function(n,r,a,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new bt,this.group.add(this._axisGroup),!!n.get("show")){var s=n.getCoordSysModel(),l=O2(s,n),u=new ss(n,Ie({handleAutoShown:function(f){for(var d=s.coordinateSystem.getCartesians(),h=0;h<d.length;h++)if(M2(d[h].getOtherAxis(n.axis).scale))return!0;return!1}},l));F(yVe,u.add,u),this._axisGroup.add(u.getGroup()),F(bVe,function(f){n.get([f,"show"])&&_Ve[f](this,this._axisGroup,n,s)},this);var c=i&&i.type==="changeAxisOrder"&&i.isInitSort;c||pg(o,this._axisGroup,n),e.prototype.render.call(this,n,r,a,i)}},t.prototype.remove=function(){$7(this)},t.type="cartesianAxis",t}(Ec),_Ve={splitLine:function(e,t,n,r){var a=n.axis;if(!a.scale.isBlank()){var i=n.getModel("splitLine"),o=i.getModel("lineStyle"),s=o.get("color");s=Re(s)?s:[s];for(var l=r.coordinateSystem.getRect(),u=a.isHorizontal(),c=0,f=a.getTicksCoords({tickModel:i}),d=[],h=[],v=o.getLineStyle(),p=0;p<f.length;p++){var g=a.toGlobalCoord(f[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=c++%s.length,b=f[p].tickValue,_=new ar({anid:b!=null?"line_"+f[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});fd(_.shape,v.lineWidth),t.add(_)}}},minorSplitLine:function(e,t,n,r){var a=n.axis,i=n.getModel("minorSplitLine"),o=i.getModel("lineStyle"),s=r.coordinateSystem.getRect(),l=a.isHorizontal(),u=a.getMinorTicksCoords();if(u.length)for(var c=[],f=[],d=o.getLineStyle(),h=0;h<u.length;h++)for(var v=0;v<u[h].length;v++){var p=a.toGlobalCoord(u[h][v].coord);l?(c[0]=p,c[1]=s.y,f[0]=p,f[1]=s.y+s.height):(c[0]=s.x,c[1]=p,f[0]=s.x+s.width,f[1]=p);var g=new ar({anid:"minor_line_"+u[h][v].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:f[0],y2:f[1]},style:d,silent:!0});fd(g.shape,d.lineWidth),t.add(g)}},splitArea:function(e,t,n,r){O7(e,t,n,r)}},B7=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="xAxis",t}(N7),wVe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=B7.type,n}return t.type="yAxis",t}(N7),SVe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="grid",n}return t.prototype.render=function(n,r){this.group.removeAll(),n.get("show")&&this.group.add(new Zt({shape:n.coordinateSystem.getRect(),style:ft({fill:n.get("backgroundColor")},n.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(An),X$={offset:0};function V7(e){e.registerComponentView(SVe),e.registerComponentModel(UBe),e.registerCoordinateSystem("cartesian2d",aVe),pd(e,"x",L2,X$),pd(e,"y",L2,X$),e.registerComponentView(B7),e.registerComponentView(wVe),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function CVe(e){Bt(V7),e.registerSeriesModel(BBe),e.registerChartView(WBe),e.registerLayout(Cg("scatter"))}function xVe(e){e.eachSeriesByType("radar",function(t){var n=t.getData(),r=[],a=t.coordinateSystem;if(a){var i=a.getIndicatorAxes();F(i,function(o,s){n.each(n.mapDimension(i[s].dim),function(l,u){r[u]=r[u]||[];var c=a.dataToPoint(l,s);r[u][s]=Z$(c)?c:J$(a)})}),n.each(function(o){var s=K6(r[o],function(l){return Z$(l)})||J$(a);r[o].push(s.slice()),n.setItemLayout(o,r[o])})}})}function Z$(e){return!isNaN(e[0])&&!isNaN(e[1])}function J$(e){return[e.cx,e.cy]}function TVe(e){var t=e.polar;if(t){Re(t)||(t=[t]);var n=[];F(t,function(r,a){r.indicator?(r.type&&!r.shape&&(r.shape=r.type),e.radar=e.radar||[],Re(e.radar)||(e.radar=[e.radar]),e.radar.push(r)):n.push(r)}),e.polar=n}F(e.series,function(r){r&&r.type==="radar"&&r.polarIndex&&(r.radarIndex=r.polarIndex)})}var MVe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){var i=n.coordinateSystem,o=this.group,s=n.getData(),l=this._data;function u(d,h){var v=d.getItemVisual(h,"symbol")||"circle";if(v!=="none"){var p=Wd(d.getItemVisual(h,"symbolSize")),g=Hn(v,-1,-1,2,2),m=d.getItemVisual(h,"symbolRotate")||0;return g.attr({style:{strokeNoScale:!0},z2:100,scaleX:p[0]/2,scaleY:p[1]/2,rotation:m*Math.PI/180||0}),g}}function c(d,h,v,p,g,m){v.removeAll();for(var b=0;b<h.length-1;b++){var _=u(p,g);_&&(_.__dimIdx=b,d[b]?(_.setPosition(d[b]),gg[m?"initProps":"updateProps"](_,{x:h[b][0],y:h[b][1]},n,g)):_.setPosition(h[b]),v.add(_))}}function f(d){return Oe(d,function(h){return[i.cx,i.cy]})}s.diff(l).add(function(d){var h=s.getItemLayout(d);if(h){var v=new ra,p=new ia,g={shape:{points:h}};v.shape.points=f(h),p.shape.points=f(h),xn(v,g,n,d),xn(p,g,n,d);var m=new bt,b=new bt;m.add(p),m.add(v),m.add(b),c(p.shape.points,h,b,s,d,!0),s.setItemGraphicEl(d,m)}}).update(function(d,h){var v=l.getItemGraphicEl(h),p=v.childAt(0),g=v.childAt(1),m=v.childAt(2),b={shape:{points:s.getItemLayout(d)}};b.shape.points&&(c(p.shape.points,b.shape.points,m,s,d,!1),Gi(g),Gi(p),nn(p,b,n),nn(g,b,n),s.setItemGraphicEl(d,v))}).remove(function(d){o.remove(l.getItemGraphicEl(d))}).execute(),s.eachItemGraphicEl(function(d,h){var v=s.getItemModel(h),p=d.childAt(0),g=d.childAt(1),m=d.childAt(2),b=s.getItemVisual(h,"style"),_=b.fill;o.add(d),p.useStyle(ft(v.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:_})),xr(p,v,"lineStyle"),xr(g,v,"areaStyle");var w=v.getModel("areaStyle"),C=w.isEmpty()&&w.parentModel.isEmpty();g.ignore=C,F(["emphasis","select","blur"],function(T){var M=v.getModel([T,"areaStyle"]),A=M.isEmpty()&&M.parentModel.isEmpty();g.ensureState(T).ignore=A&&C}),g.useStyle(ft(w.getAreaStyle(),{fill:_,opacity:.7,decal:b.decal}));var S=v.getModel("emphasis"),x=S.getModel("itemStyle").getItemStyle();m.eachChild(function(T){if(T instanceof vr){var M=T.style;T.useStyle(Ie({image:M.image,x:M.x,y:M.y,width:M.width,height:M.height},b))}else T.useStyle(b),T.setColor(_),T.style.strokeNoScale=!0;var A=T.ensureState("emphasis");A.style=pt(x);var k=s.getStore().get(s.getDimensionIndex(T.__dimIdx),h);(k==null||isNaN(k))&&(k=""),Tr(T,lr(v),{labelFetcher:s.hostModel,labelDataIndex:h,labelDimIndex:T.__dimIdx,defaultText:k,inheritColor:_,defaultOpacity:b.opacity})}),$n(d,S.get("focus"),S.get("blurScope"),S.get("disabled"))}),this._data=s},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t}(vn);const kVe=MVe;var AVe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.init=function(n){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Tg(et(this.getData,this),et(this.getRawData,this))},t.prototype.getInitialData=function(n,r){return Yd(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(n,r,a){var i=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(n),u=l===""?this.name:l,c=PW(this,n);return ur("section",{header:u,sortBlocks:!0,blocks:Oe(s,function(f){var d=i.get(i.mapDimension(f.dim),n);return ur("nameValue",{markerType:"subItem",markerColor:c,name:f.name,value:d,sortParam:d})})})},t.prototype.getTooltipPosition=function(n){if(n!=null){for(var r=this.getData(),a=this.coordinateSystem,i=r.getValues(Oe(a.dimensions,function(u){return r.mapDimension(u)}),n),o=0,s=i.length;o<s;o++)if(!isNaN(i[o])){var l=a.getIndicatorAxes();return a.coordToPoint(l[o].dataToCoord(i[o]),o)}}},t.type="series.radar",t.dependencies=["radar"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t}(_n);const EVe=AVe;var xh=P7.value;function Vm(e,t){return ft({show:t},e)}var IVe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(){var n=this.get("boundaryGap"),r=this.get("splitNumber"),a=this.get("scale"),i=this.get("axisLine"),o=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),c=this.get(["axisName","formatter"]),f=this.get("axisNameGap"),d=this.get("triggerEvent"),h=Oe(this.get("indicator")||[],function(v){v.max!=null&&v.max>0&&!v.min?v.min=0:v.min!=null&&v.min<0&&!v.max&&(v.max=0);var p=l;v.color!=null&&(p=ft({color:v.color},l));var g=Dt(pt(v),{boundaryGap:n,splitNumber:r,scale:a,axisLine:i,axisTick:o,axisLabel:s,name:v.text,showName:u,nameLocation:"end",nameGap:f,nameTextStyle:p,triggerEvent:d},!1);if(Je(c)){var m=g.name;g.name=c.replace("{value}",m??"")}else ut(c)&&(g.name=c(g.name,g));var b=new dn(g,null,this.ecModel);return Vn(b,Ud.prototype),b.mainType="radar",b.componentIndex=this.componentIndex,b},this);this._indicatorModels=h},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Dt({lineStyle:{color:"#bbb"}},xh.axisLine),axisLabel:Vm(xh.axisLabel,!1),axisTick:Vm(xh.axisTick,!1),splitLine:Vm(xh.splitLine,!0),splitArea:Vm(xh.splitArea,!0),indicator:[]},t}(Yt);const DVe=IVe;var PVe=["axisLine","axisTickLabel","axisName"],LVe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){var i=this.group;i.removeAll(),this._buildAxes(n),this._buildSplitLineAndArea(n)},t.prototype._buildAxes=function(n){var r=n.coordinateSystem,a=r.getIndicatorAxes(),i=Oe(a,function(o){var s=o.model.get("showName")?o.name:"",l=new ss(o.model,{axisName:s,position:[r.cx,r.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});F(i,function(o){F(PVe,o.add,o),this.group.add(o.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(n){var r=n.coordinateSystem,a=r.getIndicatorAxes();if(!a.length)return;var i=n.get("shape"),o=n.getModel("splitLine"),s=n.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),f=s.get("show"),d=l.get("color"),h=u.get("color"),v=Re(d)?d:[d],p=Re(h)?h:[h],g=[],m=[];function b(B,N,O){var $=O%N.length;return B[$]=B[$]||[],$}if(i==="circle")for(var _=a[0].getTicksCoords(),w=r.cx,C=r.cy,S=0;S<_.length;S++){if(c){var x=b(g,v,S);g[x].push(new Hi({shape:{cx:w,cy:C,r:_[S].coord}}))}if(f&&S<_.length-1){var x=b(m,p,S);m[x].push(new dg({shape:{cx:w,cy:C,r0:_[S].coord,r:_[S+1].coord}}))}}else for(var T,M=Oe(a,function(B,N){var O=B.getTicksCoords();return T=T==null?O.length-1:Math.min(O.length-1,T),Oe(O,function($){return r.coordToPoint($.coord,N)})}),A=[],S=0;S<=T;S++){for(var k=[],E=0;E<a.length;E++)k.push(M[E][S]);if(k[0]&&k.push(k[0].slice()),c){var x=b(g,v,S);g[x].push(new ia({shape:{points:k}}))}if(f&&A){var x=b(m,p,S-1);m[x].push(new ra({shape:{points:k.concat(A)}}))}A=k.slice().reverse()}var D=l.getLineStyle(),L=u.getAreaStyle();F(m,function(B,N){this.group.add(Ma(B,{style:ft({stroke:"none",fill:p[N%p.length]},L),silent:!0}))},this),F(g,function(B,N){this.group.add(Ma(B,{style:ft({fill:"none",stroke:v[N%v.length]},D),silent:!0}))},this)},t.type="radar",t}(An);const RVe=LVe;var OVe=function(e){ge(t,e);function t(n,r,a){var i=e.call(this,n,r,a)||this;return i.type="value",i.angle=0,i.name="",i}return t}(pi);const $Ve=OVe;var NVe=function(){function e(t,n,r){this.dimensions=[],this._model=t,this._indicatorAxes=Oe(t.getIndicatorModels(),function(a,i){var o="indicator_"+i,s=new $Ve(o,new bl);return s.name=a.get("name"),s.model=a,a.axis=s,this.dimensions.push(o),s},this),this.resize(t,r)}return e.prototype.getIndicatorAxes=function(){return this._indicatorAxes},e.prototype.dataToPoint=function(t,n){var r=this._indicatorAxes[n];return this.coordToPoint(r.dataToCoord(t),n)},e.prototype.coordToPoint=function(t,n){var r=this._indicatorAxes[n],a=r.angle,i=this.cx+t*Math.cos(a),o=this.cy-t*Math.sin(a);return[i,o]},e.prototype.pointToData=function(t){var n=t[0]-this.cx,r=t[1]-this.cy,a=Math.sqrt(n*n+r*r);n/=a,r/=a;for(var i=Math.atan2(-r,n),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var c=this._indicatorAxes[u],f=Math.abs(i-c.angle);f<o&&(s=c,l=u,o=f)}return[l,+(s&&s.coordToData(a))]},e.prototype.resize=function(t,n){var r=t.get("center"),a=n.getWidth(),i=n.getHeight(),o=Math.min(a,i)/2;this.cx=qe(r[0],a),this.cy=qe(r[1],i),this.startAngle=t.get("startAngle")*Math.PI/180;var s=t.get("radius");(Je(s)||Qt(s))&&(s=[0,s]),this.r0=qe(s[0],o),this.r=qe(s[1],o),F(this._indicatorAxes,function(l,u){l.setExtent(this.r0,this.r);var c=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;c=Math.atan2(Math.sin(c),Math.cos(c)),l.angle=c},this)},e.prototype.update=function(t,n){var r=this._indicatorAxes,a=this._model;F(r,function(s){s.scale.setExtent(1/0,-1/0)}),t.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||t.getComponent("radar",s.get("radarIndex"))!==a)){var u=s.getData();F(r,function(c){c.scale.unionExtentFromData(u,u.mapDimension(c.dim))})}},this);var i=a.get("splitNumber"),o=new bl;o.setExtent(0,i),o.setInterval(1),F(r,function(s,l){L7(s.scale,s.model,o)})},e.prototype.convertToPixel=function(t,n,r){return console.warn("Not implemented."),null},e.prototype.convertFromPixel=function(t,n,r){return console.warn("Not implemented."),null},e.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},e.create=function(t,n){var r=[];return t.eachComponent("radar",function(a){var i=new e(a,t,n);r.push(i),a.coordinateSystem=i}),t.eachSeriesByType("radar",function(a){a.get("coordinateSystem")==="radar"&&(a.coordinateSystem=r[a.get("radarIndex")||0])}),r},e.dimensions=[],e}();const BVe=NVe;function VVe(e){e.registerCoordinateSystem("radar",BVe),e.registerComponentModel(DVe),e.registerComponentView(RVe),e.registerVisual({seriesType:"radar",reset:function(t){var n=t.getData();n.each(function(r){n.setItemVisual(r,"legendIcon","roundRect")}),n.setVisual("legendIcon","roundRect")}})}function zVe(e){Bt(VVe),e.registerChartView(kVe),e.registerSeriesModel(EVe),e.registerLayout(xVe),e.registerProcessor(xg("radar")),e.registerPreprocessor(TVe)}var Q$="\0_ec_interaction_mutex";function FVe(e,t,n){var r=FA(e);r[t]=n}function HVe(e,t,n){var r=FA(e),a=r[t];a===n&&(r[t]=null)}function eN(e,t){return!!FA(e)[t]}function FA(e){return e[Q$]||(e[Q$]={})}Yi({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Nn);var GVe=function(e){ge(t,e);function t(n){var r=e.call(this)||this;r._zr=n;var a=et(r._mousedownHandler,r),i=et(r._mousemoveHandler,r),o=et(r._mouseupHandler,r),s=et(r._mousewheelHandler,r),l=et(r._pinchHandler,r);return r.enable=function(u,c){this.disable(),this._opt=ft(pt(c)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(n.on("mousedown",a),n.on("mousemove",i),n.on("mouseup",o)),(u===!0||u==="scale"||u==="zoom")&&(n.on("mousewheel",s),n.on("pinch",l))},r.disable=function(){n.off("mousedown",a),n.off("mousemove",i),n.off("mouseup",o),n.off("mousewheel",s),n.off("pinch",l)},r}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(n){this.pointerChecker=n},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(n){if(!IL(n)){for(var r=n.target;r;){if(r.draggable)return;r=r.__hostTarget||r.parent}var a=n.offsetX,i=n.offsetY;this.pointerChecker&&this.pointerChecker(n,a,i)&&(this._x=a,this._y=i,this._dragging=!0)}},t.prototype._mousemoveHandler=function(n){if(!(!this._dragging||!Uy("moveOnMouseMove",n,this._opt)||n.gestureEvent==="pinch"||eN(this._zr,"globalPan"))){var r=n.offsetX,a=n.offsetY,i=this._x,o=this._y,s=r-i,l=a-o;this._x=r,this._y=a,this._opt.preventDefaultMouseMove&&ns(n.event),z7(this,"pan","moveOnMouseMove",n,{dx:s,dy:l,oldX:i,oldY:o,newX:r,newY:a,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(n){IL(n)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(n){var r=Uy("zoomOnMouseWheel",n,this._opt),a=Uy("moveOnMouseWheel",n,this._opt),i=n.wheelDelta,o=Math.abs(i),s=n.offsetX,l=n.offsetY;if(!(i===0||!r&&!a)){if(r){var u=o>3?1.4:o>1?1.2:1.1,c=i>0?u:1/u;rS(this,"zoom","zoomOnMouseWheel",n,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(a){var f=Math.abs(i),d=(i>0?1:-1)*(f>3?.4:f>1?.15:.05);rS(this,"scrollMove","moveOnMouseWheel",n,{scrollDelta:d,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(n){if(!eN(this._zr,"globalPan")){var r=n.pinchScale>1?1.1:1/1.1;rS(this,"zoom",null,n,{scale:r,originX:n.pinchX,originY:n.pinchY,isAvailableBehavior:null})}},t}(fi);function rS(e,t,n,r,a){e.pointerChecker&&e.pointerChecker(r,a.originX,a.originY)&&(ns(r.event),z7(e,t,n,r,a))}function z7(e,t,n,r,a){a.isAvailableBehavior=et(Uy,null,n,r),e.trigger(t,a)}function Uy(e,t,n){var r=n[e];return!e||r&&(!Je(r)||t.event[r+"Key"])}const Mg=GVe;function HA(e,t,n){var r=e.target;r.x+=t,r.y+=n,r.dirty()}function GA(e,t,n,r){var a=e.target,i=e.zoomLimit,o=e.zoom=e.zoom||1;if(o*=t,i){var s=i.min||0,l=i.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/e.zoom;e.zoom=o,a.x-=(n-a.x)*(u-1),a.y-=(r-a.y)*(u-1),a.scaleX*=u,a.scaleY*=u,a.dirty()}var WVe={axisPointer:1,tooltip:1,brush:1};function j1(e,t,n){var r=t.getComponentByElement(e.topTarget),a=r&&r.coordinateSystem;return r&&r!==n&&!WVe.hasOwnProperty(r.mainType)&&a&&a.model!==n}function F7(e){if(Je(e)){var t=new DOMParser;e=t.parseFromString(e,"text/xml")}var n=e;for(n.nodeType===9&&(n=n.firstChild);n.nodeName.toLowerCase()!=="svg"||n.nodeType!==1;)n=n.nextSibling;return n}var aS,ab={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},tN=Gt(ab),ib={"alignment-baseline":"textBaseline","stop-color":"stopColor"},nN=Gt(ib),KVe=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(t,n){n=n||{};var r=F7(t);this._defsUsePending=[];var a=new bt;this._root=a;var i=[],o=r.getAttribute("viewBox")||"",s=parseFloat(r.getAttribute("width")||n.width),l=parseFloat(r.getAttribute("height")||n.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),Sa(r,a,null,!0,!1);for(var u=r.firstChild;u;)this._parseNode(u,a,i,null,!1,!1),u=u.nextSibling;jVe(this._defs,this._defsUsePending),this._defsUsePending=[];var c,f;if(o){var d=q1(o);d.length>=4&&(c={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(c&&s!=null&&l!=null&&(f=G7(c,{x:0,y:0,width:s,height:l}),!n.ignoreViewBox)){var h=a;a=new bt,a.add(h),h.scaleX=h.scaleY=f.scale,h.x=f.x,h.y=f.y}return!n.ignoreRootClip&&s!=null&&l!=null&&a.setClipPath(new Zt({shape:{x:0,y:0,width:s,height:l}})),{root:a,width:s,height:l,viewBoxRect:c,viewBoxTransform:f,named:i}},e.prototype._parseNode=function(t,n,r,a,i,o){var s=t.nodeName.toLowerCase(),l,u=a;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=n;else{if(!i){var c=aS[s];if(c&&nt(aS,s)){l=c.call(this,t,n);var f=t.getAttribute("name");if(f){var d={name:f,namedFrom:null,svgNodeTagLower:s,el:l};r.push(d),s==="g"&&(u=d)}else a&&r.push({name:a.name,namedFrom:a,svgNodeTagLower:s,el:l});n.add(l)}}var h=rN[s];if(h&&nt(rN,s)){var v=h.call(this,t),p=t.getAttribute("id");p&&(this._defs[p]=v)}}if(l&&l.isGroup)for(var g=t.firstChild;g;)g.nodeType===1?this._parseNode(g,l,r,u,i,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},e.prototype._parseText=function(t,n){var r=new bp({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Ba(n,r),Sa(t,r,this._defsUsePending,!1,!1),UVe(r,n);var a=r.style,i=a.fontSize;i&&i<9&&(a.fontSize=9,r.scaleX*=i/9,r.scaleY*=i/9);var o=(a.fontSize||a.fontFamily)&&[a.fontStyle,a.fontWeight,(a.fontSize||12)+"px",a.fontFamily||"sans-serif"].join(" ");a.font=o;var s=r.getBoundingRect();return this._textX+=s.width,n.add(r),r},e.internalField=function(){aS={g:function(t,n){var r=new bt;return Ba(n,r),Sa(t,r,this._defsUsePending,!1,!1),r},rect:function(t,n){var r=new Zt;return Ba(n,r),Sa(t,r,this._defsUsePending,!1,!1),r.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),r.silent=!0,r},circle:function(t,n){var r=new Hi;return Ba(n,r),Sa(t,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),r.silent=!0,r},line:function(t,n){var r=new ar;return Ba(n,r),Sa(t,r,this._defsUsePending,!1,!1),r.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),r.silent=!0,r},ellipse:function(t,n){var r=new M1;return Ba(n,r),Sa(t,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),r.silent=!0,r},polygon:function(t,n){var r=t.getAttribute("points"),a;r&&(a=oN(r));var i=new ra({shape:{points:a||[]},silent:!0});return Ba(n,i),Sa(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,n){var r=t.getAttribute("points"),a;r&&(a=oN(r));var i=new ia({shape:{points:a||[]},silent:!0});return Ba(n,i),Sa(t,i,this._defsUsePending,!1,!1),i},image:function(t,n){var r=new vr;return Ba(n,r),Sa(t,r,this._defsUsePending,!1,!1),r.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),r.silent=!0,r},text:function(t,n){var r=t.getAttribute("x")||"0",a=t.getAttribute("y")||"0",i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(r)+parseFloat(i),this._textY=parseFloat(a)+parseFloat(o);var s=new bt;return Ba(n,s),Sa(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,n){var r=t.getAttribute("x"),a=t.getAttribute("y");r!=null&&(this._textX=parseFloat(r)),a!=null&&(this._textY=parseFloat(a));var i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",s=new bt;return Ba(n,s),Sa(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(t,n){var r=t.getAttribute("d")||"",a=mG(r);return Ba(n,a),Sa(t,a,this._defsUsePending,!1,!1),a.silent=!0,a}}}(),e}(),rN={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),n=parseInt(e.getAttribute("y1")||"0",10),r=parseInt(e.getAttribute("x2")||"10",10),a=parseInt(e.getAttribute("y2")||"0",10),i=new Pd(t,n,r,a);return aN(e,i),iN(e,i),i},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),n=parseInt(e.getAttribute("cy")||"0",10),r=parseInt(e.getAttribute("r")||"0",10),a=new Gk(t,n,r);return aN(e,a),iN(e,a),a}};function aN(e,t){var n=e.getAttribute("gradientUnits");n==="userSpaceOnUse"&&(t.global=!0)}function iN(e,t){for(var n=e.firstChild;n;){if(n.nodeType===1&&n.nodeName.toLocaleLowerCase()==="stop"){var r=n.getAttribute("offset"),a=void 0;r&&r.indexOf("%")>0?a=parseInt(r,10)/100:r?a=parseFloat(r):a=0;var i={};H7(n,i,i);var o=i.stopColor||n.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:a,color:o})}n=n.nextSibling}}function Ba(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),ft(t.__inheritedStyle,e.__inheritedStyle))}function oN(e){for(var t=q1(e),n=[],r=0;r<t.length;r+=2){var a=parseFloat(t[r]),i=parseFloat(t[r+1]);n.push([a,i])}return n}function Sa(e,t,n,r,a){var i=t,o=i.__inheritedStyle=i.__inheritedStyle||{},s={};e.nodeType===1&&(ZVe(e,t),H7(e,o,s),r||JVe(e,o,s)),i.style=i.style||{},o.fill!=null&&(i.style.fill=sN(i,"fill",o.fill,n)),o.stroke!=null&&(i.style.stroke=sN(i,"stroke",o.stroke,n)),F(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(i.style[l]=parseFloat(o[l]))}),F(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(i.style[l]=o[l])}),a&&(i.__selfStyle=s),o.lineDash&&(i.style.lineDash=Oe(q1(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(i.invisible=!0),o.display==="none"&&(i.ignore=!0)}function UVe(e,t){var n=t.__selfStyle;if(n){var r=n.textBaseline,a=r;!r||r==="auto"||r==="baseline"?a="alphabetic":r==="before-edge"||r==="text-before-edge"?a="top":r==="after-edge"||r==="text-after-edge"?a="bottom":(r==="central"||r==="mathematical")&&(a="middle"),e.style.textBaseline=a}var i=t.__inheritedStyle;if(i){var o=i.textAlign,s=o;o&&(o==="middle"&&(s="center"),e.style.textAlign=s)}}var YVe=/^url\(\s*#(.*?)\)/;function sN(e,t,n,r){var a=n&&n.match(YVe);if(a){var i=Za(a[1]);r.push([e,t,i]);return}return n==="none"&&(n=null),n}function jVe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r[0].style[r[1]]=e[r[2]]}}var qVe=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function q1(e){return e.match(qVe)||[]}var XVe=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,iS=Math.PI/180;function ZVe(e,t){var n=e.getAttribute("transform");if(n){n=n.replace(/,/g," ");var r=[],a=null;n.replace(XVe,function(f,d,h){return r.push(d,h),""});for(var i=r.length-1;i>0;i-=2){var o=r[i],s=r[i-1],l=q1(o);switch(a=a||La(),s){case"translate":zi(a,a,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":g1(a,a,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Pl(a,a,-parseFloat(l[0])*iS);break;case"skewX":var u=Math.tan(parseFloat(l[0])*iS);go(a,[1,0,u,1,0,0],a);break;case"skewY":var c=Math.tan(parseFloat(l[0])*iS);go(a,[1,c,0,1,0,0],a);break;case"matrix":a[0]=parseFloat(l[0]),a[1]=parseFloat(l[1]),a[2]=parseFloat(l[2]),a[3]=parseFloat(l[3]),a[4]=parseFloat(l[4]),a[5]=parseFloat(l[5]);break}}t.setLocalTransform(a)}}var lN=/([^\s:;]+)\s*:\s*([^:;]+)/g;function H7(e,t,n){var r=e.getAttribute("style");if(r){lN.lastIndex=0;for(var a;(a=lN.exec(r))!=null;){var i=a[1],o=nt(ab,i)?ab[i]:null;o&&(t[o]=a[2]);var s=nt(ib,i)?ib[i]:null;s&&(n[s]=a[2])}}}function JVe(e,t,n){for(var r=0;r<tN.length;r++){var a=tN[r],i=e.getAttribute(a);i!=null&&(t[ab[a]]=i)}for(var r=0;r<nN.length;r++){var a=nN[r],i=e.getAttribute(a);i!=null&&(n[ib[a]]=i)}}function G7(e,t){var n=t.width/e.width,r=t.height/e.height,a=Math.min(n,r);return{scale:a,x:-(e.x+e.width/2)*a+(t.x+t.width/2),y:-(e.y+e.height/2)*a+(t.y+t.height/2)}}function QVe(e,t){var n=new KVe;return n.parse(e,t)}var e5e=ot(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),t5e=function(){function e(t,n){this.type="geoSVG",this._usedGraphicMap=ot(),this._freedGraphics=[],this._mapName=t,this._parsedXML=F7(n)}return e.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var n=r5e(t.named),r=n.regions,a=n.regionsMap;this._regions=r,this._regionsMap=a}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},e.prototype._buildGraphic=function(t){var n,r;try{n=t&&QVe(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},r=n.root,Nr(r!=null)}catch(g){throw new Error(`Invalid svg format
  91. `+g.message)}var a=new bt;a.add(r),a.isGeoSVGGraphicRoot=!0;var i=n.width,o=n.height,s=n.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,c=void 0,f=void 0,d=void 0;if(i!=null?(u=0,f=i):s&&(u=s.x,f=s.width),o!=null?(c=0,d=o):s&&(c=s.y,d=s.height),u==null||c==null){var h=r.getBoundingRect();u==null&&(u=h.x,f=h.width),c==null&&(c=h.y,d=h.height)}l=this._boundingRect=new Rt(u,c,f,d)}if(s){var v=G7(s,l);r.scaleX=r.scaleY=v.scale,r.x=v.x,r.y=v.y}a.setClipPath(new Zt({shape:l.plain()}));var p=[];return F(n.named,function(g){e5e.get(g.svgNodeTagLower)!=null&&(p.push(g),n5e(g.el))}),{root:a,boundingRect:l,named:p}},e.prototype.useGraphic=function(t){var n=this._usedGraphicMap,r=n.get(t);return r||(r=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),n.set(t,r),r)},e.prototype.freeGraphic=function(t){var n=this._usedGraphicMap,r=n.get(t);r&&(n.removeKey(t),this._freedGraphics.push(r))},e}();function n5e(e){e.silent=!1,e.isGroup&&e.traverse(function(t){t.silent=!1})}function r5e(e){var t=[],n=ot();return F(e,function(r){if(r.namedFrom==null){var a=new v3e(r.name,r.el);t.push(a),n.set(r.name,a)}}),{regions:t,regionsMap:n}}var B2=[126,25],uN="南海诸岛",pu=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]];for(var fu=0;fu<pu.length;fu++)for(var qc=0;qc<pu[fu].length;qc++)pu[fu][qc][0]/=10.5,pu[fu][qc][1]/=-10.5/.75,pu[fu][qc][0]+=B2[0],pu[fu][qc][1]+=B2[1];function a5e(e,t){if(e==="china"){for(var n=0;n<t.length;n++)if(t[n].name===uN)return;t.push(new F9(uN,Oe(pu,function(r){return{type:"polygon",exterior:r}}),B2))}}var i5e={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function o5e(e,t){if(e==="china"){var n=i5e[t.name];if(n){var r=t.getCenter();r[0]+=n[0]/10.5,r[1]+=-n[1]/(10.5/.75),t.setCenter(r)}}}var s5e=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function l5e(e,t){e==="china"&&t.name==="台湾"&&t.geometries.push({type:"polygon",exterior:s5e[0]})}var u5e="name",c5e=function(){function e(t,n,r){this.type="geoJSON",this._parsedMap=ot(),this._mapName=t,this._specialAreas=r,this._geoJSON=d5e(n)}return e.prototype.load=function(t,n){n=n||u5e;var r=this._parsedMap.get(n);if(!r){var a=this._parseToRegions(n);r=this._parsedMap.set(n,{regions:a,boundingRect:f5e(a)})}var i=ot(),o=[];return F(r.regions,function(s){var l=s.name;t&&nt(t,l)&&(s=s.cloneShallow(l=t[l])),o.push(s),i.set(l,s)}),{regions:o,boundingRect:r.boundingRect||new Rt(0,0,0,0),regionsMap:i}},e.prototype._parseToRegions=function(t){var n=this._mapName,r=this._geoJSON,a;try{a=r?A2(r,t):[]}catch(i){throw new Error(`Invalid geoJson format
  92. `+i.message)}return a5e(n,a),F(a,function(i){var o=i.name;o5e(n,i),l5e(n,i);var s=this._specialAreas&&this._specialAreas[o];s&&i.transformTo(s.left,s.top,s.width,s.height)},this),a},e.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},e}();function f5e(e){for(var t,n=0;n<e.length;n++){var r=e[n].getBoundingRect();t=t||r.clone(),t.union(r)}return t}function d5e(e){return Je(e)?typeof JSON<"u"&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")():e}var Th=ot();const ls={registerMap:function(e,t,n){if(t.svg){var r=new t5e(e,t.svg);Th.set(e,r)}else{var a=t.geoJson||t.geoJSON;a&&!t.features?n=t.specialAreas:a=t;var r=new c5e(e,a,n);Th.set(e,r)}},getGeoResource:function(e){return Th.get(e)},getMapForUser:function(e){var t=Th.get(e);return t&&t.type==="geoJSON"&&t.getMapForUser()},load:function(e,t,n){var r=Th.get(e);if(r)return r.load(t,n)}};var WA=["rect","circle","line","ellipse","polygon","polyline","path"],h5e=ot(WA),v5e=ot(WA.concat(["g"])),p5e=ot(WA.concat(["g"])),W7=en();function zm(e){var t=e.getItemStyle(),n=e.get("areaColor");return n!=null&&(t.fill=n),t}function cN(e){var t=e.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var g5e=function(){function e(t){var n=new bt;this.uid=Nd("ec_map_draw"),this._controller=new Mg(t.getZr()),this._controllerHost={target:n},this.group=n,n.add(this._regionsGroup=new bt),n.add(this._svgGroup=new bt)}return e.prototype.draw=function(t,n,r,a,i){var o=t.mainType==="geo",s=t.getData&&t.getData();o&&n.eachComponent({mainType:"series",subType:"map"},function(m){!s&&m.getHostGeoModel()===t&&(s=m.getData())});var l=t.coordinateSystem,u=this._regionsGroup,c=this.group,f=l.getTransformInfo(),d=f.raw,h=f.roam,v=!u.childAt(0)||i;v?(c.x=h.x,c.y=h.y,c.scaleX=h.scaleX,c.scaleY=h.scaleY,c.dirty()):nn(c,h,t);var p=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,g={api:r,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:p,isGeo:o,transformInfoRaw:d};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(t,n,r),this._updateMapSelectHandler(t,u,r,a)},e.prototype._buildGeoJSON=function(t){var n=this._regionsGroupByName=ot(),r=ot(),a=this._regionsGroup,i=t.transformInfoRaw,o=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function c(h,v){return v&&(h=v(h)),h&&[h[0]*i.scaleX+i.x,h[1]*i.scaleY+i.y]}function f(h){for(var v=[],p=!u&&l&&l.project,g=0;g<h.length;++g){var m=c(h[g],p);m&&v.push(m)}return v}function d(h){return{shape:{points:f(h)}}}a.removeAll(),F(t.geo.regions,function(h){var v=h.name,p=n.get(v),g=r.get(v)||{},m=g.dataIdx,b=g.regionModel;p||(p=n.set(v,new bt),a.add(p),m=s?s.indexOfName(v):null,b=t.isGeo?o.getRegionModel(v):s?s.getItemModel(m):null,r.set(v,{dataIdx:m,regionModel:b}));var _=[],w=[];F(h.geometries,function(x){if(x.type==="polygon"){var T=[x.exterior].concat(x.interiors||[]);u&&(T=gN(T,u)),F(T,function(A){_.push(new ra(d(A)))})}else{var M=x.points;u&&(M=gN(M,u,!0)),F(M,function(A){w.push(new ia(d(A)))})}});var C=c(h.getCenter(),l&&l.project);function S(x,T){if(x.length){var M=new A1({culling:!0,segmentIgnoreThreshold:1,shape:{paths:x}});p.add(M),fN(t,M,m,b),dN(t,M,v,b,o,m,C),T&&(cN(M),F(M.states,cN))}}S(_),S(w,!0)}),n.each(function(h,v){var p=r.get(v),g=p.dataIdx,m=p.regionModel;hN(t,h,v,m,o,g),vN(t,h,v,m,o),pN(t,h,v,m,o)},this)},e.prototype._buildSVG=function(t){var n=t.geo.map,r=t.transformInfoRaw;this._svgGroup.x=r.x,this._svgGroup.y=r.y,this._svgGroup.scaleX=r.scaleX,this._svgGroup.scaleY=r.scaleY,this._svgResourceChanged(n)&&(this._freeSVG(),this._useSVG(n));var a=this._svgDispatcherMap=ot(),i=!1;F(this._svgGraphicRecord.named,function(o){var s=o.name,l=t.mapOrGeoModel,u=t.data,c=o.svgNodeTagLower,f=o.el,d=u?u.indexOfName(s):null,h=l.getRegionModel(s);if(h5e.get(c)!=null&&f instanceof ci&&fN(t,f,d,h),f instanceof ci&&(f.culling=!0),f.z2EmphasisLift=0,!o.namedFrom&&(p5e.get(c)!=null&&dN(t,f,s,h,l,d,null),hN(t,f,s,h,l,d),vN(t,f,s,h,l),v5e.get(c)!=null)){var v=pN(t,f,s,h,l);v==="self"&&(i=!0);var p=a.get(s)||a.set(s,[]);p.push(f)}},this),this._enableBlurEntireSVG(i,t)},e.prototype._enableBlurEntireSVG=function(t,n){if(t&&n.isGeo){var r=n.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),a=r.opacity;this._svgGraphicRecord.root.traverse(function(i){if(!i.isGroup){dc(i);var o=i.ensureState("blur").style||{};o.opacity==null&&a!=null&&(o.opacity=a),i.ensureState("emphasis")}})}},e.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},e.prototype.findHighDownDispatchers=function(t,n){if(t==null)return[];var r=n.coordinateSystem;if(r.resourceType==="geoJSON"){var a=this._regionsGroupByName;if(a){var i=a.get(t);return i?[i]:[]}}else if(r.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},e.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},e.prototype._useSVG=function(t){var n=ls.getGeoResource(t);if(n&&n.type==="geoSVG"){var r=n.useGraphic(this.uid);this._svgGroup.add(r.root),this._svgGraphicRecord=r,this._svgMapName=t}},e.prototype._freeSVG=function(){var t=this._svgMapName;if(t!=null){var n=ls.getGeoResource(t);n&&n.type==="geoSVG"&&n.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},e.prototype._updateController=function(t,n,r){var a=t.coordinateSystem,i=this._controller,o=this._controllerHost;o.zoomLimit=t.get("scaleLimit"),o.zoom=a.getZoom(),i.enable(t.get("roam")||!1);var s=t.mainType;function l(){var u={type:"geoRoam",componentType:s};return u[s+"Id"]=t.id,u}i.off("pan").on("pan",function(u){this._mouseDownFlag=!1,HA(o,u.dx,u.dy),r.dispatchAction(Ie(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),i.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,GA(o,u.scale,u.originX,u.originY),r.dispatchAction(Ie(l(),{zoom:u.scale,originX:u.originX,originY:u.originY,animation:{duration:0}}))},this),i.setPointerChecker(function(u,c,f){return a.containPoint([c,f])&&!j1(u,r,t)})},e.prototype.resetForLabelLayout=function(){this.group.traverse(function(t){var n=t.getTextContent();n&&(n.ignore=W7(n).ignore)})},e.prototype._updateMapSelectHandler=function(t,n,r,a){var i=this;n.off("mousedown"),n.off("click"),t.get("selectedMode")&&(n.on("mousedown",function(){i._mouseDownFlag=!0}),n.on("click",function(o){i._mouseDownFlag&&(i._mouseDownFlag=!1)}))},e}();function fN(e,t,n,r){var a=r.getModel("itemStyle"),i=r.getModel(["emphasis","itemStyle"]),o=r.getModel(["blur","itemStyle"]),s=r.getModel(["select","itemStyle"]),l=zm(a),u=zm(i),c=zm(s),f=zm(o),d=e.data;if(d){var h=d.getItemVisual(n,"style"),v=d.getItemVisual(n,"decal");e.isVisualEncodedByVisualMap&&h.fill&&(l.fill=h.fill),v&&(l.decal=hd(v,e.api))}t.setStyle(l),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=u,t.ensureState("select").style=c,t.ensureState("blur").style=f,dc(t)}function dN(e,t,n,r,a,i,o){var s=e.data,l=e.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),i)),c=s&&s.getItemLayout(i);if(l||u||c&&c.showLabel){var f=l?n:i,d=void 0;(!s||i>=0)&&(d=a);var h=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Tr(t,lr(r),{labelFetcher:d,labelDataIndex:f,defaultText:n},h);var v=t.getTextContent();if(v&&(W7(v).ignore=v.ignore,t.textConfig&&o)){var p=t.getBoundingRect().clone();t.textConfig.layoutRect=p,t.textConfig.position=[(o[0]-p.x)/p.width*100+"%",(o[1]-p.y)/p.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function hN(e,t,n,r,a,i){e.data?e.data.setItemGraphicEl(i,t):Tt(t).eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:n,region:r&&r.option||{}}}function vN(e,t,n,r,a){e.data||Od({el:t,componentModel:a,itemName:n,itemTooltipOption:r.get("tooltip")})}function pN(e,t,n,r,a){t.highDownSilentOnTouch=!!a.get("selectedMode");var i=r.getModel("emphasis"),o=i.get("focus");return $n(t,o,i.get("blurScope"),i.get("disabled")),e.isGeo&&aLe(t,a,n),o}function gN(e,t,n){var r=[],a;function i(){a=[]}function o(){a.length&&(r.push(a),a=[])}var s=t({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&a.push([l,u])},sphere:function(){}});return!n&&s.polygonStart(),F(e,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!n&&s.polygonEnd(),r}const K7=g5e;var m5e=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a,i){if(!(i&&i.type==="mapToggleSelect"&&i.from===this.uid)){var o=this.group;if(o.removeAll(),!n.getHostGeoModel()){if(this._mapDraw&&i&&i.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),i&&i.type==="geoRoam"&&i.componentType==="series"&&i.seriesId===n.id){var s=this._mapDraw;s&&o.add(s.group)}else if(n.needsDrawMap){var s=this._mapDraw||new K7(a);o.add(s.group),s.draw(n,r,a,this,i),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;n.get("showLegendSymbol")&&r.getComponent("legend")&&this._renderSymbols(n,r,a)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(n,r,a){var i=n.originalData,o=this.group;i.each(i.mapDimension("value"),function(s,l){if(!isNaN(s)){var u=i.getItemLayout(l);if(!(!u||!u.point)){var c=u.point,f=u.offset,d=new Hi({style:{fill:n.getData().getVisual("style").fill},shape:{cx:c[0]+f*9,cy:c[1],r:3},silent:!0,z2:8+(f?0:Dd+1)});if(!f){var h=n.mainSeries.getData(),v=i.getName(l),p=h.indexOfName(v),g=i.getItemModel(l),m=g.getModel("label"),b=h.getItemGraphicEl(p);Tr(d,lr(g),{labelFetcher:{getFormattedLabel:function(_,w){return n.getFormattedLabel(p,w)}},defaultText:v}),d.disableLabelAnimation=!0,m.get("position")||d.setTextConfig({position:"bottom"}),b.onHoverStateChange=function(_){O0(d,_)}}o.add(d)}}})},t.type="map",t}(vn);const y5e=m5e;var b5e=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.needsDrawMap=!1,n.seriesGroup=[],n.getTooltipPosition=function(r){if(r!=null){var a=this.getData().getName(r),i=this.coordinateSystem,o=i.getRegion(a);return o&&i.dataToPoint(o.getCenter())}},n}return t.prototype.getInitialData=function(n){for(var r=Yd(this,{coordDimensions:["value"],encodeDefaulter:xt(aA,this)}),a=ot(),i=[],o=0,s=r.count();o<s;o++){var l=r.getName(o);a.set(l,!0)}var u=ls.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return F(u.regions,function(c){var f=c.name;a.get(f)||i.push(f)}),r.appendValues([],i),r},t.prototype.getHostGeoModel=function(){var n=this.option.geoIndex;return n!=null?this.ecModel.getComponent("geo",n):null},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(n){var r=this.getData();return r.get(r.mapDimension("value"),n)},t.prototype.getRegionModel=function(n){var r=this.getData();return r.getItemModel(r.indexOfName(n))},t.prototype.formatTooltip=function(n,r,a){for(var i=this.getData(),o=this.getRawValue(n),s=i.getName(n),l=this.seriesGroup,u=[],c=0;c<l.length;c++){var f=l[c].originalData.indexOfName(s),d=i.mapDimension("value");isNaN(l[c].originalData.get(d,f))||u.push(l[c].name)}return ur("section",{header:u.join(", "),noHeader:!u.length,blocks:[ur("nameValue",{name:s,value:o})]})},t.prototype.setZoom=function(n){this.option.zoom=n},t.prototype.setCenter=function(n){this.option.center=n},t.prototype.getLegendIcon=function(n){var r=n.icon||"roundRect",a=Hn(r,0,0,n.itemWidth,n.itemHeight,n.itemStyle.fill);return a.setStyle(n.itemStyle),a.style.stroke="none",r.indexOf("empty")>-1&&(a.style.stroke=a.style.fill,a.style.fill="#fff",a.style.lineWidth=2),a},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(_n);const _5e=b5e;function w5e(e,t){var n={};return F(e,function(r){r.each(r.mapDimension("value"),function(a,i){var o="ec-"+r.getName(i);n[o]=n[o]||[],isNaN(a)||n[o].push(a)})}),e[0].map(e[0].mapDimension("value"),function(r,a){for(var i="ec-"+e[0].getName(a),o=0,s=1/0,l=-1/0,u=n[i].length,c=0;c<u;c++)s=Math.min(s,n[i][c]),l=Math.max(l,n[i][c]),o+=n[i][c];var f;return t==="min"?f=s:t==="max"?f=l:t==="average"?f=o/u:f=o,u===0?NaN:f})}function S5e(e){var t={};e.eachSeriesByType("map",function(n){var r=n.getHostGeoModel(),a=r?"o"+r.id:"i"+n.getMapType();(t[a]=t[a]||[]).push(n)}),F(t,function(n,r){for(var a=w5e(Oe(n,function(o){return o.getData()}),n[0].get("mapValueCalculation")),i=0;i<n.length;i++)n[i].originalData=n[i].getData();for(var i=0;i<n.length;i++)n[i].seriesGroup=n,n[i].needsDrawMap=i===0&&!n[i].getHostGeoModel(),n[i].setData(a.cloneShallow()),n[i].mainSeries=n[0]})}function C5e(e){var t={};e.eachSeriesByType("map",function(n){var r=n.getMapType();if(!(n.getHostGeoModel()||t[r])){var a={};F(n.seriesGroup,function(o){var s=o.coordinateSystem,l=o.originalData;o.get("showLegendSymbol")&&e.getComponent("legend")&&l.each(l.mapDimension("value"),function(u,c){var f=l.getName(c),d=s.getRegion(f);if(!(!d||isNaN(u))){var h=a[f]||0,v=s.dataToPoint(d.getCenter());a[f]=h+1,l.setItemLayout(c,{point:v,offset:h})}})});var i=n.getData();i.each(function(o){var s=i.getName(o),l=i.getItemLayout(o)||{};l.showLabel=!a[s],i.setItemLayout(o,l)}),t[r]=!0}})}var mN=hr,x5e=function(e){ge(t,e);function t(n){var r=e.call(this)||this;return r.type="view",r.dimensions=["x","y"],r._roamTransformable=new Uo,r._rawTransformable=new Uo,r.name=n,r}return t.prototype.setBoundingRect=function(n,r,a,i){return this._rect=new Rt(n,r,a,i),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(n,r,a,i){this._transformTo(n,r,a,i),this._viewRect=new Rt(n,r,a,i)},t.prototype._transformTo=function(n,r,a,i){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new Rt(n,r,a,i));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},t.prototype.setCenter=function(n,r){n&&(this._center=[qe(n[0],r.getWidth()),qe(n[1],r.getHeight())],this._updateCenterAndZoom())},t.prototype.setZoom=function(n){n=n||1;var r=this.zoomLimit;r&&(r.max!=null&&(n=Math.min(r.max,n)),r.min!=null&&(n=Math.max(r.min,n))),this._zoom=n,this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var n=this.getBoundingRect(),r=n.x+n.width/2,a=n.y+n.height/2;return[r,a]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var n=this._rawTransformable.getLocalTransform(),r=this._roamTransformable,a=this.getDefaultCenter(),i=this.getCenter(),o=this.getZoom();i=hr([],i,n),a=hr([],a,n),r.originX=i[0],r.originY=i[1],r.x=a[0]-i[0],r.y=a[1]-i[1],r.scaleX=r.scaleY=o,this._updateTransform()},t.prototype._updateTransform=function(){var n=this._roamTransformable,r=this._rawTransformable;r.parent=n,n.updateTransform(),r.updateTransform(),p1(this.transform||(this.transform=[]),r.transform||La()),this._rawTransform=r.getLocalTransform(),this.invTransform=this.invTransform||[],xc(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var n=this._rawTransformable,r=this._roamTransformable,a=new Uo;return a.transform=r.transform,a.decomposeTransform(),{roam:{x:a.x,y:a.y,scaleX:a.scaleX,scaleY:a.scaleY},raw:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var n=this.getBoundingRect().clone();return n.applyTransform(this.transform),n},t.prototype.dataToPoint=function(n,r,a){var i=r?this._rawTransform:this.transform;return a=a||[],i?mN(a,n,i):Dr(a,n)},t.prototype.pointToData=function(n){var r=this.invTransform;return r?mN([],n,r):[n[0],n[1]]},t.prototype.convertToPixel=function(n,r,a){var i=yN(r);return i===this?i.dataToPoint(a):null},t.prototype.convertFromPixel=function(n,r,a){var i=yN(r);return i===this?i.pointToData(a):null},t.prototype.containPoint=function(n){return this.getViewRectAfterRoam().contain(n[0],n[1])},t.dimensions=["x","y"],t}(Uo);function yN(e){var t=e.seriesModel;return t?t.coordinateSystem:null}const kg=x5e;var T5e={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},U7=["lng","lat"],Y7=function(e){ge(t,e);function t(n,r,a){var i=e.call(this,n)||this;i.dimensions=U7,i.type="geo",i._nameCoordMap=ot(),i.map=r;var o=a.projection,s=ls.load(r,a.nameMap,a.nameProperty),l=ls.getGeoResource(r);i.resourceType=l?l.type:null;var u=i.regions=s.regions,c=T5e[l.type];i._regionsMap=s.regionsMap,i.regions=s.regions,i.projection=o;var f;if(o)for(var d=0;d<u.length;d++){var h=u[d].getBoundingRect(o);f=f||h.clone(),f.union(h)}else f=s.boundingRect;return i.setBoundingRect(f.x,f.y,f.width,f.height),i.aspectScale=o?1:Lt(a.aspectScale,c.aspectScale),i._invertLongitute=o?!1:c.invertLongitute,i}return t.prototype._transformTo=function(n,r,a,i){var o=this.getBoundingRect(),s=this._invertLongitute;o=o.clone(),s&&(o.y=-o.y-o.height);var l=this._rawTransformable;l.transform=o.calculateTransform(new Rt(n,r,a,i));var u=l.parent;l.parent=null,l.decomposeTransform(),l.parent=u,s&&(l.scaleY=-l.scaleY),this._updateTransform()},t.prototype.getRegion=function(n){return this._regionsMap.get(n)},t.prototype.getRegionByCoord=function(n){for(var r=this.regions,a=0;a<r.length;a++){var i=r[a];if(i.type==="geoJSON"&&i.contain(n))return r[a]}},t.prototype.addGeoCoord=function(n,r){this._nameCoordMap.set(n,r)},t.prototype.getGeoCoord=function(n){var r=this._regionsMap.get(n);return this._nameCoordMap.get(n)||r&&r.getCenter()},t.prototype.dataToPoint=function(n,r,a){if(Je(n)&&(n=this.getGeoCoord(n)),n){var i=this.projection;return i&&(n=i.project(n)),n&&this.projectedToPoint(n,r,a)}},t.prototype.pointToData=function(n){var r=this.projection;return r&&(n=r.unproject(n)),n&&this.pointToProjected(n)},t.prototype.pointToProjected=function(n){return e.prototype.pointToData.call(this,n)},t.prototype.projectedToPoint=function(n,r,a){return e.prototype.dataToPoint.call(this,n,r,a)},t.prototype.convertToPixel=function(n,r,a){var i=bN(r);return i===this?i.dataToPoint(a):null},t.prototype.convertFromPixel=function(n,r,a){var i=bN(r);return i===this?i.pointToData(a):null},t}(kg);Vn(Y7,kg);function bN(e){var t=e.geoModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",Wn).models[0]||{}).coordinateSystem:null}const _N=Y7;function wN(e,t){var n=e.get("boundingCoords");if(n!=null){var r=n[0],a=n[1];if(isFinite(r[0])&&isFinite(r[1])&&isFinite(a[0])&&isFinite(a[1])){var i=this.projection;if(i){var o=r[0],s=r[1],l=a[0],u=a[1];r=[1/0,1/0],a=[-1/0,-1/0];var c=function(S,x,T,M){for(var A=T-S,k=M-x,E=0;E<=100;E++){var D=E/100,L=i.project([S+A*D,x+k*D]);Wo(r,r,L),Ko(a,a,L)}};c(o,s,l,s),c(l,s,l,u),c(l,u,o,u),c(o,u,l,s)}this.setBoundingRect(r[0],r[1],a[0]-r[0],a[1]-r[1])}}var f=this.getBoundingRect(),d=e.get("layoutCenter"),h=e.get("layoutSize"),v=t.getWidth(),p=t.getHeight(),g=f.width/f.height*this.aspectScale,m=!1,b,_;d&&h&&(b=[qe(d[0],v),qe(d[1],p)],_=qe(h,Math.min(v,p)),!isNaN(b[0])&&!isNaN(b[1])&&!isNaN(_)&&(m=!0));var w;if(m)w={},g>1?(w.width=_,w.height=_/g):(w.height=_,w.width=_*g),w.y=b[1]-w.height/2,w.x=b[0]-w.width/2;else{var C=e.getBoxLayoutParams();C.aspect=g,w=Xn(C,{width:v,height:p})}this.setViewRect(w.x,w.y,w.width,w.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}function M5e(e,t){F(t.get("geoCoord"),function(n,r){e.addGeoCoord(r,n)})}var k5e=function(){function e(){this.dimensions=U7}return e.prototype.create=function(t,n){var r=[];function a(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}t.eachComponent("geo",function(o,s){var l=o.get("map"),u=new _N(l+s,l,Ie({nameMap:o.get("nameMap")},a(o)));u.zoomLimit=o.get("scaleLimit"),r.push(u),o.coordinateSystem=u,u.model=o,u.resize=wN,u.resize(o,n)}),t.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=r[l]}});var i={};return t.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),F(i,function(o,s){var l=Oe(o,function(c){return c.get("nameMap")}),u=new _N(s,s,Ie({nameMap:d1(l)},a(o[0])));u.zoomLimit=rr.apply(null,Oe(o,function(c){return c.get("scaleLimit")})),r.push(u),u.resize=wN,u.resize(o[0],n),F(o,function(c){c.coordinateSystem=u,M5e(u,c)})}),r},e.prototype.getFilledRegions=function(t,n,r,a){for(var i=(t||[]).slice(),o=ot(),s=0;s<i.length;s++)o.set(i[s].name,i[s]);var l=ls.load(n,r,a);return F(l.regions,function(u){var c=u.name;!o.get(c)&&i.push({name:c})}),i},e}(),A5e=new k5e;const j7=A5e;var E5e=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r,a){var i=ls.getGeoResource(n.map);if(i&&i.type==="geoJSON"){var o=n.itemStyle=n.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(n,a),uc(n,"label",["show"])},t.prototype.optionUpdated=function(){var n=this,r=this.option;r.regions=j7.getFilledRegions(r.regions,r.map,r.nameMap,r.nameProperty);var a={};this._optionModelMap=ui(r.regions||[],function(i,o){var s=o.name;return s&&(i.set(s,new dn(o,n,n.ecModel)),o.selected&&(a[s]=!0)),i},ot()),r.selectedMap||(r.selectedMap=a)},t.prototype.getRegionModel=function(n){return this._optionModelMap.get(n)||new dn(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(n,r){var a=this.getRegionModel(n),i=r==="normal"?a.get(["label","formatter"]):a.get(["emphasis","label","formatter"]),o={name:n};if(ut(i))return o.status=r,i(o);if(Je(i))return i.replace("{a}",n??"")},t.prototype.setZoom=function(n){this.option.zoom=n},t.prototype.setCenter=function(n){this.option.center=n},t.prototype.select=function(n){var r=this.option,a=r.selectedMode;if(a){a!=="multiple"&&(r.selectedMap=null);var i=r.selectedMap||(r.selectedMap={});i[n]=!0}},t.prototype.unSelect=function(n){var r=this.option.selectedMap;r&&(r[n]=!1)},t.prototype.toggleSelected=function(n){this[this.isSelected(n)?"unSelect":"select"](n)},t.prototype.isSelected=function(n){var r=this.option.selectedMap;return!!(r&&r[n])},t.type="geo",t.layoutMode="box",t.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},t}(Yt);const I5e=E5e;function SN(e,t){return e.pointToProjected?e.pointToProjected(t):e.pointToData(t)}function KA(e,t,n,r){var a=e.getZoom(),i=e.getCenter(),o=t.zoom,s=e.projectedToPoint?e.projectedToPoint(i):e.dataToPoint(i);if(t.dx!=null&&t.dy!=null&&(s[0]-=t.dx,s[1]-=t.dy,e.setCenter(SN(e,s),r)),o!=null){if(n){var l=n.min||0,u=n.max||1/0;o=Math.max(Math.min(a*o,u),l)/a}e.scaleX*=o,e.scaleY*=o;var c=(t.originX-e.x)*(o-1),f=(t.originY-e.y)*(o-1);e.x-=c,e.y-=f,e.updateTransform(),e.setCenter(SN(e,s),r),e.setZoom(o*a)}return{center:e.getCenter(),zoom:e.getZoom()}}var D5e=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.focusBlurEnabled=!0,n}return t.prototype.init=function(n,r){this._api=r},t.prototype.render=function(n,r,a,i){if(this._model=n,!n.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new K7(a));var o=this._mapDraw;o.draw(n,r,a,this,i),o.group.on("click",this._handleRegionClick,this),o.group.silent=n.get("silent"),this.group.add(o.group),this.updateSelectStatus(n,r,a)},t.prototype._handleRegionClick=function(n){var r;zu(n.target,function(a){return(r=Tt(a).eventData)!=null},!0),r&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:r.name})},t.prototype.updateSelectStatus=function(n,r,a){var i=this;this._mapDraw.group.traverse(function(o){var s=Tt(o).eventData;if(s)return i._model.isSelected(s.name)?a.enterSelect(o):a.leaveSelect(o),!0})},t.prototype.findHighDownDispatchers=function(n){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(n,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t}(An);const P5e=D5e;function L5e(e,t,n){ls.registerMap(e,t,n)}function q7(e){e.registerCoordinateSystem("geo",j7),e.registerComponentModel(I5e),e.registerComponentView(P5e),e.registerImpl("registerMap",L5e),e.registerImpl("getMap",function(n){return ls.getMapForUser(n)});function t(n,r){r.update="geo:updateSelectStatus",e.registerAction(r,function(a,i){var o={},s=[];return i.eachComponent({mainType:"geo",query:a},function(l){l[n](a.name);var u=l.coordinateSystem;F(u.regions,function(f){o[f.name]=l.isSelected(f.name)||!1});var c=[];F(o,function(f,d){o[d]&&c.push(d)}),s.push({geoIndex:l.componentIndex,name:c})}),{selected:o,allSelected:s,name:a.name}})}t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),e.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(n,r,a){var i=n.componentType||"series";r.eachComponent({mainType:i,query:n},function(o){var s=o.coordinateSystem;if(s.type==="geo"){var l=KA(s,n,o.get("scaleLimit"),a);o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom),i==="series"&&F(o.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function R5e(e){Bt(q7),e.registerChartView(y5e),e.registerSeriesModel(_5e),e.registerLayout(C5e),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,S5e),WW("map",e.registerAction)}function O5e(e){var t=e;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var n=[t],r,a;r=n.pop();)if(a=r.children,r.isExpand&&a.length)for(var i=a.length,o=i-1;o>=0;o--){var s=a[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},n.push(s)}}function $5e(e,t){var n=e.isExpand?e.children:[],r=e.parentNode.children,a=e.hierNode.i?r[e.hierNode.i-1]:null;if(n.length){V5e(e);var i=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;a?(e.hierNode.prelim=a.hierNode.prelim+t(e,a),e.hierNode.modifier=e.hierNode.prelim-i):e.hierNode.prelim=i}else a&&(e.hierNode.prelim=a.hierNode.prelim+t(e,a));e.parentNode.hierNode.defaultAncestor=z5e(e,a,e.parentNode.hierNode.defaultAncestor||r[0],t)}function N5e(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function CN(e){return arguments.length?e:G5e}function Uh(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function B5e(e,t){return Xn(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function V5e(e){for(var t=e.children,n=t.length,r=0,a=0;--n>=0;){var i=t[n];i.hierNode.prelim+=r,i.hierNode.modifier+=r,a+=i.hierNode.change,r+=i.hierNode.shift+a}}function z5e(e,t,n,r){if(t){for(var a=e,i=e,o=i.parentNode.children[0],s=t,l=a.hierNode.modifier,u=i.hierNode.modifier,c=o.hierNode.modifier,f=s.hierNode.modifier;s=oS(s),i=sS(i),s&&i;){a=oS(a),o=sS(o),a.hierNode.ancestor=e;var d=s.hierNode.prelim+f-i.hierNode.prelim-u+r(s,i);d>0&&(H5e(F5e(s,e,n),e,d),u+=d,l+=d),f+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=a.hierNode.modifier,c+=o.hierNode.modifier}s&&!oS(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=f-l),i&&!sS(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-c,n=e)}return n}function oS(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function sS(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function F5e(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function H5e(e,t,n){var r=n/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=r,t.hierNode.shift+=n,t.hierNode.modifier+=n,t.hierNode.prelim+=n,e.hierNode.change+=r}function G5e(e,t){return e.parentNode===t.parentNode?1:2}var W5e=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),K5e=function(e){ge(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new W5e},t.prototype.buildPath=function(n,r){var a=r.childPoints,i=a.length,o=r.parentPoint,s=a[0],l=a[i-1];if(i===1){n.moveTo(o[0],o[1]),n.lineTo(s[0],s[1]);return}var u=r.orient,c=u==="TB"||u==="BT"?0:1,f=1-c,d=qe(r.forkPosition,1),h=[];h[c]=o[c],h[f]=o[f]+(l[f]-o[f])*d,n.moveTo(o[0],o[1]),n.lineTo(h[0],h[1]),n.moveTo(s[0],s[1]),h[c]=s[c],n.lineTo(h[0],h[1]),h[c]=l[c],n.lineTo(h[0],h[1]),n.lineTo(l[0],l[1]);for(var v=1;v<i-1;v++){var p=a[v];n.moveTo(p[0],p[1]),h[c]=p[c],n.lineTo(h[0],h[1])}},t}(zt),U5e=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._mainGroup=new bt,n}return t.prototype.init=function(n,r){this._controller=new Mg(r.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(n,r,a){var i=n.getData(),o=n.layoutInfo,s=this._mainGroup,l=n.get("layout");l==="radial"?(s.x=o.x+o.width/2,s.y=o.y+o.height/2):(s.x=o.x,s.y=o.y),this._updateViewCoordSys(n,a),this._updateController(n,r,a);var u=this._data;i.diff(u).add(function(c){xN(i,c)&&TN(i,c,null,s,n)}).update(function(c,f){var d=u.getItemGraphicEl(f);if(!xN(i,c)){d&&kN(u,f,d,s,n);return}TN(i,c,d,s,n)}).remove(function(c){var f=u.getItemGraphicEl(c);f&&kN(u,c,f,s,n)}).execute(),this._nodeScaleRatio=n.get("nodeScaleRatio"),this._updateNodeAndLinkScale(n),n.get("expandAndCollapse")===!0&&i.eachItemGraphicEl(function(c,f){c.off("click").on("click",function(){a.dispatchAction({type:"treeExpandAndCollapse",seriesId:n.id,dataIndex:f})})}),this._data=i},t.prototype._updateViewCoordSys=function(n,r){var a=n.getData(),i=[];a.each(function(f){var d=a.getItemLayout(f);d&&!isNaN(d.x)&&!isNaN(d.y)&&i.push([+d.x,+d.y])});var o=[],s=[];C1(i,o,s);var l=this._min,u=this._max;s[0]-o[0]===0&&(o[0]=l?l[0]:o[0]-1,s[0]=u?u[0]:s[0]+1),s[1]-o[1]===0&&(o[1]=l?l[1]:o[1]-1,s[1]=u?u[1]:s[1]+1);var c=n.coordinateSystem=new kg;c.zoomLimit=n.get("scaleLimit"),c.setBoundingRect(o[0],o[1],s[0]-o[0],s[1]-o[1]),c.setCenter(n.get("center"),r),c.setZoom(n.get("zoom")),this.group.attr({x:c.x,y:c.y,scaleX:c.scaleX,scaleY:c.scaleY}),this._min=o,this._max=s},t.prototype._updateController=function(n,r,a){var i=this,o=this._controller,s=this._controllerHost,l=this.group;o.setPointerChecker(function(u,c,f){var d=l.getBoundingRect();return d.applyTransform(l.transform),d.contain(c,f)&&!j1(u,a,n)}),o.enable(n.get("roam")),s.zoomLimit=n.get("scaleLimit"),s.zoom=n.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){HA(s,u.dx,u.dy),a.dispatchAction({seriesId:n.id,type:"treeRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){GA(s,u.scale,u.originX,u.originY),a.dispatchAction({seriesId:n.id,type:"treeRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(n),a.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(n){var r=n.getData(),a=this._getNodeGlobalScale(n);r.eachItemGraphicEl(function(i,o){i.setSymbolScale(a)})},t.prototype._getNodeGlobalScale=function(n){var r=n.coordinateSystem;if(r.type!=="view")return 1;var a=this._nodeScaleRatio,i=r.scaleX||1,o=r.getZoom(),s=(o-1)*a+1;return s/i},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type="tree",t}(vn);function xN(e,t){var n=e.getItemLayout(t);return n&&!isNaN(n.x)&&!isNaN(n.y)}function TN(e,t,n,r,a){var i=!n,o=e.tree.getNodeByDataIndex(t),s=o.getModel(),l=o.getVisual("style").fill,u=o.isExpand===!1&&o.children.length!==0?l:"#fff",c=e.tree.root,f=o.parentNode===c?o:o.parentNode||o,d=e.getItemGraphicEl(f.dataIndex),h=f.getLayout(),v=d?{x:d.__oldX,y:d.__oldY,rawX:d.__radialOldRawX,rawY:d.__radialOldRawY}:h,p=o.getLayout();i?(n=new wg(e,t,null,{symbolInnerColor:u,useNameLabel:!0}),n.x=v.x,n.y=v.y):n.updateData(e,t,null,{symbolInnerColor:u,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=p.rawX,n.__radialRawY=p.rawY,r.add(n),e.setItemGraphicEl(t,n),n.__oldX=n.x,n.__oldY=n.y,nn(n,{x:p.x,y:p.y},a);var g=n.getSymbolPath();if(a.get("layout")==="radial"){var m=c.children[0],b=m.getLayout(),_=m.children.length,w=void 0,C=void 0;if(p.x===b.x&&o.isExpand===!0&&m.children.length){var S={x:(m.children[0].getLayout().x+m.children[_-1].getLayout().x)/2,y:(m.children[0].getLayout().y+m.children[_-1].getLayout().y)/2};w=Math.atan2(S.y-b.y,S.x-b.x),w<0&&(w=Math.PI*2+w),C=S.x<b.x,C&&(w=w-Math.PI)}else w=Math.atan2(p.y-b.y,p.x-b.x),w<0&&(w=Math.PI*2+w),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(C=p.x<b.x,C&&(w=w-Math.PI)):(C=p.x>b.x,C||(w=w-Math.PI));var x=C?"left":"right",T=s.getModel("label"),M=T.get("rotate"),A=M*(Math.PI/180),k=g.getTextContent();k&&(g.setTextConfig({position:T.get("position")||x,rotation:M==null?-w:A,origin:"center"}),k.setStyle("verticalAlign","middle"))}var E=s.get(["emphasis","focus"]),D=E==="relative"?cp(o.getAncestorsIndices(),o.getDescendantIndices()):E==="ancestor"?o.getAncestorsIndices():E==="descendant"?o.getDescendantIndices():null;D&&(Tt(n).focus=D),Y5e(a,o,c,n,v,h,p,r),n.__edge&&(n.onHoverStateChange=function(L){if(L!=="blur"){var B=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);B&&B.hoverState===fg||O0(n.__edge,L)}})}function Y5e(e,t,n,r,a,i,o,s){var l=t.getModel(),u=e.get("edgeShape"),c=e.get("layout"),f=e.getOrient(),d=e.get(["lineStyle","curveness"]),h=e.get("edgeForkPosition"),v=l.getModel("lineStyle").getLineStyle(),p=r.__edge;if(u==="curve")t.parentNode&&t.parentNode!==n&&(p||(p=r.__edge=new hg({shape:V2(c,f,d,a,a)})),nn(p,{shape:V2(c,f,d,i,o)},e));else if(u==="polyline"&&c==="orthogonal"&&t!==n&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var g=t.children,m=[],b=0;b<g.length;b++){var _=g[b].getLayout();m.push([_.x,_.y])}p||(p=r.__edge=new K5e({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:f,forkPosition:h}})),nn(p,{shape:{parentPoint:[o.x,o.y],childPoints:m}},e)}p&&!(u==="polyline"&&!t.isExpand)&&(p.useStyle(ft({strokeNoScale:!0,fill:null},v)),xr(p,l,"lineStyle"),dc(p),s.add(p))}function MN(e,t,n,r,a){var i=t.tree.root,o=X7(i,e),s=o.source,l=o.sourceLayout,u=t.getItemGraphicEl(e.dataIndex);if(u){var c=t.getItemGraphicEl(s.dataIndex),f=c.__edge,d=u.__edge||(s.isExpand===!1||s.children.length===1?f:void 0),h=r.get("edgeShape"),v=r.get("layout"),p=r.get("orient"),g=r.get(["lineStyle","curveness"]);d&&(h==="curve"?ml(d,{shape:V2(v,p,g,l,l),style:{opacity:0}},r,{cb:function(){n.remove(d)},removeOpt:a}):h==="polyline"&&r.get("layout")==="orthogonal"&&ml(d,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},r,{cb:function(){n.remove(d)},removeOpt:a}))}}function X7(e,t){for(var n=t.parentNode===e?t:t.parentNode||t,r;r=n.getLayout(),r==null;)n=n.parentNode===e?n:n.parentNode||n;return{source:n,sourceLayout:r}}function kN(e,t,n,r,a){var i=e.tree.getNodeByDataIndex(t),o=e.tree.root,s=X7(o,i).sourceLayout,l={duration:a.get("animationDurationUpdate"),easing:a.get("animationEasingUpdate")};ml(n,{x:s.x+1,y:s.y+1},a,{cb:function(){r.remove(n),e.setItemGraphicEl(t,null)},removeOpt:l}),n.fadeOut(null,e.hostModel,{fadeLabel:!0,animation:l}),i.children.forEach(function(u){MN(u,e,r,a,l)}),MN(i,e,r,a,l)}function V2(e,t,n,r,a){var i,o,s,l,u,c,f,d;if(e==="radial"){u=r.rawX,f=r.rawY,c=a.rawX,d=a.rawY;var h=Uh(u,f),v=Uh(u,f+(d-f)*n),p=Uh(c,d+(f-d)*n),g=Uh(c,d);return{x1:h.x||0,y1:h.y||0,x2:g.x||0,y2:g.y||0,cpx1:v.x||0,cpy1:v.y||0,cpx2:p.x||0,cpy2:p.y||0}}else u=r.x,f=r.y,c=a.x,d=a.y,(t==="LR"||t==="RL")&&(i=u+(c-u)*n,o=f,s=c+(u-c)*n,l=d),(t==="TB"||t==="BT")&&(i=u,o=f+(d-f)*n,s=c,l=d+(f-d)*n);return{x1:u,y1:f,x2:c,y2:d,cpx1:i,cpy1:o,cpx2:s,cpy2:l}}const j5e=U5e;var ei=en();function Z7(e){var t=e.mainData,n=e.datas;n||(n={main:t},e.datasAttr={main:"data"}),e.datas=e.mainData=null,J7(t,n,e),F(n,function(r){F(t.TRANSFERABLE_METHODS,function(a){r.wrapMethod(a,xt(q5e,e))})}),t.wrapMethod("cloneShallow",xt(Z5e,e)),F(t.CHANGABLE_METHODS,function(r){t.wrapMethod(r,xt(X5e,e))}),Nr(n[t.dataType]===t)}function q5e(e,t){if(eze(this)){var n=Ie({},ei(this).datas);n[this.dataType]=t,J7(t,n,e)}else UA(t,this.dataType,ei(this).mainData,e);return t}function X5e(e,t){return e.struct&&e.struct.update(),t}function Z5e(e,t){return F(ei(t).datas,function(n,r){n!==t&&UA(n.cloneShallow(),r,t,e)}),t}function J5e(e){var t=ei(this).mainData;return e==null||t==null?t:ei(t).datas[e]}function Q5e(){var e=ei(this).mainData;return e==null?[{data:e}]:Oe(Gt(ei(e).datas),function(t){return{type:t,data:ei(e).datas[t]}})}function eze(e){return ei(e).mainData===e}function J7(e,t,n){ei(e).datas={},F(t,function(r,a){UA(r,a,e,n)})}function UA(e,t,n,r){ei(n).datas[t]=e,ei(e).mainData=n,e.dataType=t,r.struct&&(e[r.structAttr]=r.struct,r.struct[r.datasAttr[t]]=e),e.getLinkedData=J5e,e.getLinkedDataAll=Q5e}var tze=function(){function e(t,n){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=n}return e.prototype.isRemoved=function(){return this.dataIndex<0},e.prototype.eachNode=function(t,n,r){ut(t)&&(r=n,n=t,t=null),t=t||{},Je(t)&&(t={order:t});var a=t.order||"preorder",i=this[t.attr||"children"],o;a==="preorder"&&(o=n.call(r,this));for(var s=0;!o&&s<i.length;s++)i[s].eachNode(t,n,r);a==="postorder"&&n.call(r,this)},e.prototype.updateDepthAndHeight=function(t){var n=0;this.depth=t;for(var r=0;r<this.children.length;r++){var a=this.children[r];a.updateDepthAndHeight(t+1),a.height>n&&(n=a.height)}this.height=n+1},e.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var n=0,r=this.children,a=r.length;n<a;n++){var i=r[n].getNodeById(t);if(i)return i}},e.prototype.contains=function(t){if(t===this)return!0;for(var n=0,r=this.children,a=r.length;n<a;n++){var i=r[n].contains(t);if(i)return i}},e.prototype.getAncestors=function(t){for(var n=[],r=t?this:this.parentNode;r;)n.push(r),r=r.parentNode;return n.reverse(),n},e.prototype.getAncestorsIndices=function(){for(var t=[],n=this;n;)t.push(n.dataIndex),n=n.parentNode;return t.reverse(),t},e.prototype.getDescendantIndices=function(){var t=[];return this.eachNode(function(n){t.push(n.dataIndex)}),t},e.prototype.getValue=function(t){var n=this.hostTree.data;return n.getStore().get(n.getDimensionIndex(t||"value"),this.dataIndex)},e.prototype.setLayout=function(t,n){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,n)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var n=this.hostTree,r=n.data.getItemModel(this.dataIndex);return r.getModel(t)}},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(t,n){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,n)},e.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,n=0;n<t.length;++n)if(t[n]===this)return n;return-1}return-1},e.prototype.isAncestorOf=function(t){for(var n=t.parentNode;n;){if(n===this)return!0;n=n.parentNode}return!1},e.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},e}(),nze=function(){function e(t){this.type="tree",this._nodes=[],this.hostModel=t}return e.prototype.eachNode=function(t,n,r){this.root.eachNode(t,n,r)},e.prototype.getNodeByDataIndex=function(t){var n=this.data.getRawIndex(t);return this._nodes[n]},e.prototype.getNodeById=function(t){return this.root.getNodeById(t)},e.prototype.update=function(){for(var t=this.data,n=this._nodes,r=0,a=n.length;r<a;r++)n[r].dataIndex=-1;for(var r=0,a=t.count();r<a;r++)n[t.getRawIndex(r)].dataIndex=r},e.prototype.clearLayouts=function(){this.data.clearItemLayouts()},e.createTree=function(t,n,r){var a=new e(n),i=[],o=1;s(t);function s(c,f){var d=c.value;o=Math.max(o,Re(d)?d.length:1),i.push(c);var h=new tze(tr(c.name,""),a);f?rze(h,f):a.root=h,a._nodes.push(h);var v=c.children;if(v)for(var p=0;p<v.length;p++)s(v[p],h)}a.root.updateDepthAndHeight(0);var l=Kd(i,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new Or(l,n);return u.initData(i),r&&r(u),Z7({mainData:u,struct:a,structAttr:"tree"}),a.update(),a},e}();function rze(e,t){var n=t.children;e.parentNode!==t&&(n.push(e),e.parentNode=t)}const YA=nze;function Rp(e,t,n){if(e&&$t(t,e.type)>=0){var r=n.getData().tree.root,a=e.targetNode;if(Je(a)&&(a=r.getNodeById(a)),a&&r.contains(a))return{node:a};var i=e.targetNodeId;if(i!=null&&(a=r.getNodeById(i)))return{node:a}}}function Q7(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()}function jA(e,t){var n=Q7(e);return $t(n,t)>=0}function X1(e,t){for(var n=[];e;){var r=e.dataIndex;n.push({name:e.name,dataIndex:r,value:t.getRawValue(r)}),e=e.parentNode}return n.reverse(),n}var aze=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.hasSymbolVisual=!0,n.ignoreStyleOnData=!0,n}return t.prototype.getInitialData=function(n){var r={name:n.name,children:n.data},a=n.leaves||{},i=new dn(a,this,this.ecModel),o=YA.createTree(r,this,s);function s(f){f.wrapMethod("getItemModel",function(d,h){var v=o.getNodeByDataIndex(h);return v&&v.children.length&&v.isExpand||(d.parentModel=i),d})}var l=0;o.eachNode("preorder",function(f){f.depth>l&&(l=f.depth)});var u=n.expandAndCollapse,c=u&&n.initialTreeDepth>=0?n.initialTreeDepth:l;return o.root.eachNode("preorder",function(f){var d=f.hostTree.data.getRawDataItem(f.dataIndex);f.isExpand=d&&d.collapsed!=null?!d.collapsed:f.depth<=c}),o.data},t.prototype.getOrient=function(){var n=this.get("orient");return n==="horizontal"?n="LR":n==="vertical"&&(n="TB"),n},t.prototype.setZoom=function(n){this.option.zoom=n},t.prototype.setCenter=function(n){this.option.center=n},t.prototype.formatTooltip=function(n,r,a){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(n),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return ur("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},t.prototype.getDataParams=function(n){var r=e.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(n);return r.treeAncestors=X1(a,this),r.collapsed=!a.isExpand,r},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(_n);const ize=aze;function oze(e,t,n){for(var r=[e],a=[],i;i=r.pop();)if(a.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s<o.length;s++)r.push(o[s])}for(;i=a.pop();)t(i,n)}function Mh(e,t){for(var n=[e],r;r=n.pop();)if(t(r),r.isExpand){var a=r.children;if(a.length)for(var i=a.length-1;i>=0;i--)n.push(a[i])}}function sze(e,t){e.eachSeriesByType("tree",function(n){lze(n,t)})}function lze(e,t){var n=B5e(e,t);e.layoutInfo=n;var r=e.get("layout"),a=0,i=0,o=null;r==="radial"?(a=2*Math.PI,i=Math.min(n.height,n.width)/2,o=CN(function(_,w){return(_.parentNode===w.parentNode?1:2)/_.depth})):(a=n.width,i=n.height,o=CN());var s=e.getData().tree.root,l=s.children[0];if(l){O5e(s),oze(l,$5e,o),s.hierNode.modifier=-l.hierNode.prelim,Mh(l,N5e);var u=l,c=l,f=l;Mh(l,function(_){var w=_.getLayout().x;w<u.getLayout().x&&(u=_),w>c.getLayout().x&&(c=_),_.depth>f.depth&&(f=_)});var d=u===c?1:o(u,c)/2,h=d-u.getLayout().x,v=0,p=0,g=0,m=0;if(r==="radial")v=a/(c.getLayout().x+d+h),p=i/(f.depth-1||1),Mh(l,function(_){g=(_.getLayout().x+h)*v,m=(_.depth-1)*p;var w=Uh(g,m);_.setLayout({x:w.x,y:w.y,rawX:g,rawY:m},!0)});else{var b=e.getOrient();b==="RL"||b==="LR"?(p=i/(c.getLayout().x+d+h),v=a/(f.depth-1||1),Mh(l,function(_){m=(_.getLayout().x+h)*p,g=b==="LR"?(_.depth-1)*v:a-(_.depth-1)*v,_.setLayout({x:g,y:m},!0)})):(b==="TB"||b==="BT")&&(v=a/(c.getLayout().x+d+h),p=i/(f.depth-1||1),Mh(l,function(_){g=(_.getLayout().x+h)*v,m=b==="TB"?(_.depth-1)*p:i-(_.depth-1)*p,_.setLayout({x:g,y:m},!0)}))}}}function uze(e){e.eachSeriesByType("tree",function(t){var n=t.getData(),r=n.tree;r.eachNode(function(a){var i=a.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=n.ensureUniqueItemVisual(a.dataIndex,"style");Ie(s,o)})})}function cze(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,n){n.eachComponent({mainType:"series",subType:"tree",query:t},function(r){var a=t.dataIndex,i=r.getData().tree,o=i.getNodeByDataIndex(a);o.isExpand=!o.isExpand})}),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(t,n,r){n.eachComponent({mainType:"series",subType:"tree",query:t},function(a){var i=a.coordinateSystem,o=KA(i,t,void 0,r);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}function fze(e){e.registerChartView(j5e),e.registerSeriesModel(ize),e.registerLayout(sze),e.registerVisual(uze),cze(e)}var AN=["treemapZoomToNode","treemapRender","treemapMove"];function dze(e){for(var t=0;t<AN.length;t++)e.registerAction({type:AN[t],update:"updateView"},Nn);e.registerAction({type:"treemapRootToNode",update:"updateView"},function(n,r){r.eachComponent({mainType:"series",subType:"treemap",query:n},a);function a(i,o){var s=["treemapZoomToNode","treemapRootToNode"],l=Rp(n,s,i);if(l){var u=i.getViewRoot();u&&(n.direction=jA(u,l.node)?"rollUp":"drillDown"),i.resetViewRoot(l.node)}}})}function eK(e){var t=e.getData(),n=t.tree,r={};n.eachNode(function(a){for(var i=a;i&&i.depth>1;)i=i.parentNode;var o=h2(e.ecModel,i.name||i.dataIndex+"",r);a.setVisual("decal",o)})}var hze=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.preventUsingHoverLayer=!0,n}return t.prototype.getInitialData=function(n,r){var a={name:n.name,children:n.data};tK(a);var i=n.levels||[],o=this.designatedVisualItemStyle={},s=new dn({itemStyle:o},this,r);i=n.levels=vze(i,r);var l=Oe(i||[],function(f){return new dn(f,s,r)},this),u=YA.createTree(a,this,c);function c(f){f.wrapMethod("getItemModel",function(d,h){var v=u.getNodeByDataIndex(h),p=v?l[v.depth]:null;return d.parentModel=p||s,d})}return u.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(n,r,a){var i=this.getData(),o=this.getRawValue(n),s=i.getName(n);return ur("nameValue",{name:s,value:o})},t.prototype.getDataParams=function(n){var r=e.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(n);return r.treeAncestors=X1(a,this),r.treePathInfo=r.treeAncestors,r},t.prototype.setLayoutInfo=function(n){this.layoutInfo=this.layoutInfo||{},Ie(this.layoutInfo,n)},t.prototype.mapIdToIndex=function(n){var r=this._idIndexMap;r||(r=this._idIndexMap=ot(),this._idIndexMapCount=0);var a=r.get(n);return a==null&&r.set(n,a=this._idIndexMapCount++),a},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(n){n?this._viewRoot=n:n=this._viewRoot;var r=this.getRawData().tree.root;(!n||n!==r&&!r.contains(n))&&(this._viewRoot=r)},t.prototype.enableAriaDecal=function(){eK(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(_n);function tK(e){var t=0;F(e.children,function(r){tK(r);var a=r.value;Re(a)&&(a=a[0]),t+=a});var n=e.value;Re(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=t),n<0&&(n=0),Re(e.value)?e.value[0]=n:e.value=n}function vze(e,t){var n=hn(t.get("color")),r=hn(t.get(["aria","decal","decals"]));if(n){e=e||[];var a,i;F(e,function(s){var l=new dn(s),u=l.get("color"),c=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(a=!0),(l.get(["itemStyle","decal"])||c&&c!=="none")&&(i=!0)});var o=e[0]||(e[0]={});return a||(o.color=n.slice()),!i&&r&&(o.decal=r.slice()),e}}const pze=hze;var gze=8,EN=8,lS=5,mze=function(){function e(t){this.group=new bt,t.add(this.group)}return e.prototype.render=function(t,n,r,a){var i=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!r)){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),f={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:n.getWidth(),height:n.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(r,f,u),this._renderContent(t,f,s,l,u,c,a),$1(o,f.pos,f.box)}},e.prototype._prepare=function(t,n,r){for(var a=t;a;a=a.parentNode){var i=tr(a.getModel().get("name"),""),o=r.getTextRect(i),s=Math.max(o.width+gze*2,n.emptyItemWidth);n.totalWidth+=s+EN,n.renderList.push({node:a,text:i,width:s})}},e.prototype._renderContent=function(t,n,r,a,i,o,s){for(var l=0,u=n.emptyItemWidth,c=t.get(["breadcrumb","height"]),f=fRe(n.pos,n.box),d=n.totalWidth,h=n.renderList,v=a.getModel("itemStyle").getItemStyle(),p=h.length-1;p>=0;p--){var g=h[p],m=g.node,b=g.width,_=g.text;d>f.width&&(d-=b-u,b=u,_=null);var w=new ra({shape:{points:yze(l,0,b,c,p===h.length-1,p===0)},style:ft(r.getItemStyle(),{lineJoin:"bevel"}),textContent:new Xt({style:gn(i,{text:_})}),textConfig:{position:"inside"},z2:Dd*1e4,onclick:xt(s,m)});w.disableLabelAnimation=!0,w.getTextContent().ensureState("emphasis").style=gn(o,{text:_}),w.ensureState("emphasis").style=v,$n(w,a.get("focus"),a.get("blurScope"),a.get("disabled")),this.group.add(w),bze(w,t,m),l+=b+EN}},e.prototype.remove=function(){this.group.removeAll()},e}();function yze(e,t,n,r,a,i){var o=[[a?e:e-lS,t],[e+n,t],[e+n,t+r],[a?e:e-lS,t+r]];return!i&&o.splice(2,0,[e+n+lS,t+r/2]),!a&&o.push([e,t+r/2]),o}function bze(e,t,n){Tt(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&X1(n,t)}}const _ze=mze;var wze=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(t,n,r,a,i){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:n,duration:r,delay:a,easing:i}),!0)},e.prototype.finished=function(t){return this._finishedCallback=t,this},e.prototype.start=function(){for(var t=this,n=this._storage.length,r=function(){n--,n<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},a=0,i=this._storage.length;a<i;a++){var o=this._storage[a];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:r,aborted:r})}return this},e}();function Sze(){return new wze}var z2=bt,IN=Zt,DN=3,PN="label",LN="upperLabel",Cze=Dd*10,xze=Dd*2,Tze=Dd*3,gu=fc([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),RN=function(e){var t=gu(e);return t.stroke=t.fill=t.lineWidth=null,t},ob=en(),Mze=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._state="ready",n._storage=kh(),n}return t.prototype.render=function(n,r,a,i){var o=r.findComponents({mainType:"series",subType:"treemap",query:i});if(!($t(o,n)<0)){this.seriesModel=n,this.api=a,this.ecModel=r;var s=["treemapZoomToNode","treemapRootToNode"],l=Rp(i,s,n),u=i&&i.type,c=n.layoutInfo,f=!this._oldTree,d=this._storage,h=u==="treemapRootToNode"&&l&&d?{rootNodeGroup:d.nodeGroup[l.node.getRawIndex()],direction:i.direction}:null,v=this._giveContainerGroup(c),p=n.get("animation"),g=this._doRender(v,n,h);p&&!f&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(v,g,n,h):g.renderFinally(),this._resetController(a),this._renderBreadcrumb(n,a,l)}},t.prototype._giveContainerGroup=function(n){var r=this._containerGroup;return r||(r=this._containerGroup=new z2,this._initEvents(r),this.group.add(r)),r.x=n.x,r.y=n.y,r},t.prototype._doRender=function(n,r,a){var i=r.getData().tree,o=this._oldTree,s=kh(),l=kh(),u=this._storage,c=[];function f(g,m,b,_){return kze(r,l,u,a,s,c,g,m,b,_)}h(i.root?[i.root]:[],o&&o.root?[o.root]:[],n,i===o||!o,0);var d=v(u);return this._oldTree=i,this._storage=l,{lastsForAnimation:s,willDeleteEls:d,renderFinally:p};function h(g,m,b,_,w){_?(m=g,F(g,function(x,T){!x.isRemoved()&&S(T,T)})):new is(m,g,C,C).add(S).update(S).remove(xt(S,null)).execute();function C(x){return x.getId()}function S(x,T){var M=x!=null?g[x]:null,A=T!=null?m[T]:null,k=f(M,A,b,w);k&&h(M&&M.viewChildren||[],A&&A.viewChildren||[],k,_,w+1)}}function v(g){var m=kh();return g&&F(g,function(b,_){var w=m[_];F(b,function(C){C&&(w.push(C),ob(C).willDelete=!0)})}),m}function p(){F(d,function(g){F(g,function(m){m.parent&&m.parent.remove(m)})}),F(c,function(g){g.invisible=!0,g.dirty()})}},t.prototype._doAnimation=function(n,r,a,i){var o=a.get("animationDurationUpdate"),s=a.get("animationEasing"),l=(ut(o)?0:o)||0,u=(ut(s)?null:s)||"cubicOut",c=Sze();F(r.willDeleteEls,function(f,d){F(f,function(h,v){if(!h.invisible){var p=h.parent,g,m=ob(p);if(i&&i.direction==="drillDown")g=p===i.rootNodeGroup?{shape:{x:0,y:0,width:m.nodeWidth,height:m.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var b=0,_=0;m.willDelete||(b=m.nodeWidth/2,_=m.nodeHeight/2),g=d==="nodeGroup"?{x:b,y:_,style:{opacity:0}}:{shape:{x:b,y:_,width:0,height:0},style:{opacity:0}}}g&&c.add(h,g,l,0,u)}})}),F(this._storage,function(f,d){F(f,function(h,v){var p=r.lastsForAnimation[d][v],g={};p&&(h instanceof bt?p.oldX!=null&&(g.x=h.x,g.y=h.y,h.x=p.oldX,h.y=p.oldY):(p.oldShape&&(g.shape=Ie({},h.shape),h.setShape(p.oldShape)),p.fadein?(h.setStyle("opacity",0),g.style={opacity:1}):h.style.opacity!==1&&(g.style={opacity:1})),c.add(h,g,l,0,u))})},this),this._state="animating",c.finished(et(function(){this._state="ready",r.renderFinally()},this)).start()},t.prototype._resetController=function(n){var r=this._controller;r||(r=this._controller=new Mg(n.getZr()),r.enable(this.seriesModel.get("roam")),r.on("pan",et(this._onPan,this)),r.on("zoom",et(this._onZoom,this)));var a=new Rt(0,0,n.getWidth(),n.getHeight());r.setPointerChecker(function(i,o,s){return a.contain(o,s)})},t.prototype._clearController=function(){var n=this._controller;n&&(n.dispose(),n=null)},t.prototype._onPan=function(n){if(this._state!=="animating"&&(Math.abs(n.dx)>DN||Math.abs(n.dy)>DN)){var r=this.seriesModel.getData().tree.root;if(!r)return;var a=r.getLayout();if(!a)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x+n.dx,y:a.y+n.dy,width:a.width,height:a.height}})}},t.prototype._onZoom=function(n){var r=n.originX,a=n.originY;if(this._state!=="animating"){var i=this.seriesModel.getData().tree.root;if(!i)return;var o=i.getLayout();if(!o)return;var s=new Rt(o.x,o.y,o.width,o.height),l=this.seriesModel.layoutInfo;r-=l.x,a-=l.y;var u=La();zi(u,u,[-r,-a]),g1(u,u,[n.scale,n.scale]),zi(u,u,[r,a]),s.applyTransform(u),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},t.prototype._initEvents=function(n){var r=this;n.on("click",function(a){if(r._state==="ready"){var i=r.seriesModel.get("nodeClick",!0);if(i){var o=r.findTarget(a.offsetX,a.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)r._rootToNode(o);else if(i==="zoomToNode")r._zoomToNode(o);else if(i==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&F0(u,c)}}}}},this)},t.prototype._renderBreadcrumb=function(n,r,a){var i=this;a||(a=n.get("leafDepth",!0)!=null?{node:n.getViewRoot()}:this.findTarget(r.getWidth()/2,r.getHeight()/2),a||(a={node:n.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new _ze(this.group))).render(n,r,a.node,function(o){i._state!=="animating"&&(jA(n.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=kh(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(n){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:n.node})},t.prototype._rootToNode=function(n){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:n.node})},t.prototype.findTarget=function(n,r){var a,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(n,r),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)a={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),a},t.type="treemap",t}(vn);function kh(){return{nodeGroup:[],background:[],content:[]}}function kze(e,t,n,r,a,i,o,s,l,u){if(!o)return;var c=o.getLayout(),f=e.getData(),d=o.getModel();if(f.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var h=c.width,v=c.height,p=c.borderWidth,g=c.invisible,m=o.getRawIndex(),b=s&&s.getRawIndex(),_=o.viewChildren,w=c.upperHeight,C=_&&_.length,S=d.getModel("itemStyle"),x=d.getModel(["emphasis","itemStyle"]),T=d.getModel(["blur","itemStyle"]),M=d.getModel(["select","itemStyle"]),A=S.get("borderRadius")||0,k=ae("nodeGroup",z2);if(!k)return;if(l.add(k),k.x=c.x||0,k.y=c.y||0,k.markRedraw(),ob(k).nodeWidth=h,ob(k).nodeHeight=v,c.isAboveViewRoot)return k;var E=ae("background",IN,u,xze);E&&I(k,E,C&&c.upperLabelHeight);var D=d.getModel("emphasis"),L=D.get("focus"),B=D.get("blurScope"),N=D.get("disabled"),O=L==="ancestor"?o.getAncestorsIndices():L==="descendant"?o.getDescendantIndices():L;if(C)wp(k)&&Bu(k,!1),E&&(Bu(E,!N),f.setItemGraphicEl(o.dataIndex,E),i2(E,O,B));else{var $=ae("content",IN,u,Tze);$&&z(k,$),E.disableMorphing=!0,E&&wp(E)&&Bu(E,!1),Bu(k,!N),f.setItemGraphicEl(o.dataIndex,k),i2(k,O,B)}return k;function I(ee,j,de){var ve=Tt(j);if(ve.dataIndex=o.dataIndex,ve.seriesIndex=e.seriesIndex,j.setShape({x:0,y:0,width:h,height:v,r:A}),g)G(j);else{j.invisible=!1;var ie=o.getVisual("style"),W=ie.stroke,X=RN(S);X.fill=W;var oe=gu(x);oe.fill=x.get("borderColor");var pe=gu(T);pe.fill=T.get("borderColor");var Se=gu(M);if(Se.fill=M.get("borderColor"),de){var me=h-2*p;U(j,W,ie.opacity,{x:p,y:0,width:me,height:w})}else j.removeTextContent();j.setStyle(X),j.ensureState("emphasis").style=oe,j.ensureState("blur").style=pe,j.ensureState("select").style=Se,dc(j)}ee.add(j)}function z(ee,j){var de=Tt(j);de.dataIndex=o.dataIndex,de.seriesIndex=e.seriesIndex;var ve=Math.max(h-2*p,0),ie=Math.max(v-2*p,0);if(j.culling=!0,j.setShape({x:p,y:p,width:ve,height:ie,r:A}),g)G(j);else{j.invisible=!1;var W=o.getVisual("style"),X=W.fill,oe=RN(S);oe.fill=X,oe.decal=W.decal;var pe=gu(x),Se=gu(T),me=gu(M);U(j,X,W.opacity,null),j.setStyle(oe),j.ensureState("emphasis").style=pe,j.ensureState("blur").style=Se,j.ensureState("select").style=me,dc(j)}ee.add(j)}function G(ee){!ee.invisible&&i.push(ee)}function U(ee,j,de,ve){var ie=d.getModel(ve?LN:PN),W=tr(d.get("name"),null),X=ie.getShallow("show");Tr(ee,lr(d,ve?LN:PN),{defaultText:X?W:null,inheritColor:j,defaultOpacity:de,labelFetcher:e,labelDataIndex:o.dataIndex});var oe=ee.getTextContent();if(oe){var pe=oe.style,Se=v1(pe.padding||0);ve&&(ee.setTextConfig({layoutRect:ve}),oe.disableLabelLayout=!0),oe.beforeUpdate=function(){var Ee=Math.max((ve?ve.width:ee.shape.width)-Se[1]-Se[3],0),Ce=Math.max((ve?ve.height:ee.shape.height)-Se[0]-Se[2],0);(pe.width!==Ee||pe.height!==Ce)&&oe.setStyle({width:Ee,height:Ce})},pe.truncateMinChar=2,pe.lineOverflow="truncate",Z(pe,ve,c);var me=oe.getState("emphasis");Z(me?me.style:null,ve,c)}}function Z(ee,j,de){var ve=ee?ee.text:null;if(!j&&de.isLeafRoot&&ve!=null){var ie=e.get("drillDownIcon",!0);ee.text=ie?ie+" "+ve:ve}}function ae(ee,j,de,ve){var ie=b!=null&&n[ee][b],W=a[ee];return ie?(n[ee][b]=null,J(W,ie)):g||(ie=new j,ie instanceof ci&&(ie.z2=Aze(de,ve)),Q(W,ie)),t[ee][m]=ie}function J(ee,j){var de=ee[m]={};j instanceof z2?(de.oldX=j.x,de.oldY=j.y):de.oldShape=Ie({},j.shape)}function Q(ee,j){var de=ee[m]={},ve=o.parentNode,ie=j instanceof bt;if(ve&&(!r||r.direction==="drillDown")){var W=0,X=0,oe=a.background[ve.getRawIndex()];!r&&oe&&oe.oldShape&&(W=oe.oldShape.width,X=oe.oldShape.height),ie?(de.oldX=0,de.oldY=X):de.oldShape={x:W,y:X,width:0,height:0}}de.fadein=!ie}}function Aze(e,t){return e*Cze+t}const Eze=Mze;var Op=F,Ize=ht,sb=-1,qA=function(){function e(t){var n=t.mappingMethod,r=t.type,a=this.option=pt(t);this.type=r,this.mappingMethod=n,this._normalizeData=Lze[n];var i=e.visualHandlers[r];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[n],n==="piecewise"?(uS(a),Dze(a)):n==="category"?a.categories?Pze(a):uS(a,!0):(Nr(n!=="linear"||a.dataExtent),uS(a))}return e.prototype.mapValueToVisual=function(t){var n=this._normalizeData(t);return this._normalizedToVisual(n,t)},e.prototype.getNormalizer=function(){return et(this._normalizeData,this)},e.listVisualTypes=function(){return Gt(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(t,n,r){ht(t)?F(t,n,r):n.call(r,t)},e.mapVisual=function(t,n,r){var a,i=Re(t)?[]:ht(t)?{}:(a=!0,null);return e.eachVisual(t,function(o,s){var l=n.call(r,o,s);a?i=l:i[s]=l}),i},e.retrieveVisuals=function(t){var n={},r;return t&&Op(e.visualHandlers,function(a,i){t.hasOwnProperty(i)&&(n[i]=t[i],r=!0)}),r?n:null},e.prepareVisualTypes=function(t){if(Re(t))t=t.slice();else if(Ize(t)){var n=[];Op(t,function(r,a){n.push(a)}),t=n}else return[];return t.sort(function(r,a){return a==="color"&&r!=="color"&&r.indexOf("color")===0?1:-1}),t},e.dependsOn=function(t,n){return n==="color"?!!(t&&t.indexOf(n)===0):t===n},e.findPieceIndex=function(t,n,r){for(var a,i=1/0,o=0,s=n.length;o<s;o++){var l=n[o].value;if(l!=null){if(l===t||Je(l)&&l===t+"")return o;r&&d(l,o)}}for(var o=0,s=n.length;o<s;o++){var u=n[o],c=u.interval,f=u.close;if(c){if(c[0]===-1/0){if(Hm(f[1],t,c[1]))return o}else if(c[1]===1/0){if(Hm(f[0],c[0],t))return o}else if(Hm(f[0],c[0],t)&&Hm(f[1],t,c[1]))return o;r&&d(c[0],o),r&&d(c[1],o)}}if(r)return t===1/0?n.length-1:t===-1/0?0:a;function d(h,v){var p=Math.abs(h-t);p<i&&(i=p,a=v)}},e.visualHandlers={color:{applyVisual:Ah("color"),getColorMapper:function(){var t=this.option;return et(t.mappingMethod==="category"?function(n,r){return!r&&(n=this._normalizeData(n)),Yh.call(this,n)}:function(n,r,a){var i=!!a;return!r&&(n=this._normalizeData(n)),a=vv(n,t.parsedVisual,a),i?a:$i(a,"rgba")},this)},_normalizedToVisual:{linear:function(t){return $i(vv(t,this.option.parsedVisual),"rgba")},category:Yh,piecewise:function(t,n){var r=H2.call(this,n);return r==null&&(r=$i(vv(t,this.option.parsedVisual),"rgba")),r},fixed:mu}},colorHue:Fm(function(t,n){return $f(t,n)}),colorSaturation:Fm(function(t,n){return $f(t,null,n)}),colorLightness:Fm(function(t,n){return $f(t,null,null,n)}),colorAlpha:Fm(function(t,n){return vp(t,n)}),decal:{applyVisual:Ah("decal"),_normalizedToVisual:{linear:null,category:Yh,piecewise:null,fixed:null}},opacity:{applyVisual:Ah("opacity"),_normalizedToVisual:F2([0,1])},liftZ:{applyVisual:Ah("liftZ"),_normalizedToVisual:{linear:mu,category:mu,piecewise:mu,fixed:mu}},symbol:{applyVisual:function(t,n,r){var a=this.mapValueToVisual(t);r("symbol",a)},_normalizedToVisual:{linear:ON,category:Yh,piecewise:function(t,n){var r=H2.call(this,n);return r==null&&(r=ON.call(this,t)),r},fixed:mu}},symbolSize:{applyVisual:Ah("symbolSize"),_normalizedToVisual:F2([0,1])}},e}();function Dze(e){var t=e.pieceList;e.hasSpecialVisual=!1,F(t,function(n,r){n.originIndex=r,n.visual!=null&&(e.hasSpecialVisual=!0)})}function Pze(e){var t=e.categories,n=e.categoryMap={},r=e.visual;if(Op(t,function(o,s){n[o]=s}),!Re(r)){var a=[];ht(r)?Op(r,function(o,s){var l=n[s];a[l??sb]=o}):a[sb]=r,r=nK(e,a)}for(var i=t.length-1;i>=0;i--)r[i]==null&&(delete n[t[i]],t.pop())}function uS(e,t){var n=e.visual,r=[];ht(n)?Op(n,function(i){r.push(i)}):n!=null&&r.push(n);var a={color:1,symbol:1};!t&&r.length===1&&!a.hasOwnProperty(e.type)&&(r[1]=r[0]),nK(e,r)}function Fm(e){return{applyVisual:function(t,n,r){var a=this.mapValueToVisual(t);r("color",e(n("color"),a))},_normalizedToVisual:F2([0,1])}}function ON(e){var t=this.option.visual;return t[Math.round(sn(e,[0,1],[0,t.length-1],!0))]||{}}function Ah(e){return function(t,n,r){r(e,this.mapValueToVisual(t))}}function Yh(e){var t=this.option.visual;return t[this.option.loop&&e!==sb?e%t.length:e]}function mu(){return this.option.visual[0]}function F2(e){return{linear:function(t){return sn(t,e,this.option.visual,!0)},category:Yh,piecewise:function(t,n){var r=H2.call(this,n);return r==null&&(r=sn(t,e,this.option.visual,!0)),r},fixed:mu}}function H2(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var r=qA.findPieceIndex(e,n),a=n[r];if(a&&a.visual)return a.visual[this.type]}}function nK(e,t){return e.visual=t,e.type==="color"&&(e.parsedVisual=Oe(t,function(n){var r=Xr(n);return r||[0,0,0,1]})),t}var Lze={linear:function(e){return sn(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=qA.findPieceIndex(e,t,!0);if(n!=null)return sn(n,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return t??sb},fixed:Nn};function Hm(e,t,n){return e?t<=n:t<n}const wr=qA;var Rze="itemStyle",rK=en();const Oze={seriesType:"treemap",reset:function(e){var t=e.getData().tree,n=t.root;n.isRemoved()||aK(n,{},e.getViewRoot().getAncestors(),e)}};function aK(e,t,n,r){var a=e.getModel(),i=e.getLayout(),o=e.hostTree.data;if(!(!i||i.invisible||!i.isInView)){var s=a.getModel(Rze),l=$ze(s,t,r),u=o.ensureUniqueItemVisual(e.dataIndex,"style"),c=s.get("borderColor"),f=s.get("borderColorSaturation"),d;f!=null&&(d=$N(l),c=Nze(f,d)),u.stroke=c;var h=e.viewChildren;if(!h||!h.length)d=$N(l),u.fill=d;else{var v=Bze(e,a,i,s,l,h);F(h,function(p,g){if(p.depth>=n.length||p===n[p.depth]){var m=Vze(a,l,p,g,v,r);aK(p,m,n,r)}})}}}function $ze(e,t,n){var r=Ie({},t),a=n.designatedVisualItemStyle;return F(["color","colorAlpha","colorSaturation"],function(i){a[i]=t[i];var o=e.get(i);a[i]=null,o!=null&&(r[i]=o)}),r}function $N(e){var t=cS(e,"color");if(t){var n=cS(e,"colorAlpha"),r=cS(e,"colorSaturation");return r&&(t=$f(t,null,null,r)),n&&(t=vp(t,n)),t}}function Nze(e,t){return t!=null?$f(t,null,null,e):null}function cS(e,t){var n=e[t];if(n!=null&&n!=="none")return n}function Bze(e,t,n,r,a,i){if(!(!i||!i.length)){var o=fS(t,"color")||a.color!=null&&a.color!=="none"&&(fS(t,"colorAlpha")||fS(t,"colorSaturation"));if(o){var s=t.get("visualMin"),l=t.get("visualMax"),u=n.dataExtent.slice();s!=null&&s<u[0]&&(u[0]=s),l!=null&&l>u[1]&&(u[1]=l);var c=t.get("colorMappingBy"),f={type:o.name,dataExtent:u,visual:o.range};f.type==="color"&&(c==="index"||c==="id")?(f.mappingMethod="category",f.loop=!0):f.mappingMethod="linear";var d=new wr(f);return rK(d).drColorMappingBy=c,d}}}function fS(e,t){var n=e.get(t);return Re(n)&&n.length?{name:t,range:n}:null}function Vze(e,t,n,r,a,i){var o=Ie({},t);if(a){var s=a.type,l=s==="color"&&rK(a).drColorMappingBy,u=l==="index"?r:l==="id"?i.mapIdToIndex(n.getId()):n.getValue(e.get("visualDimension"));o[s]=a.mapValueToVisual(u)}return o}var $p=Math.max,lb=Math.min,NN=rr,XA=F,iK=["itemStyle","borderWidth"],zze=["itemStyle","gapWidth"],Fze=["upperLabel","show"],Hze=["upperLabel","height"];const Gze={seriesType:"treemap",reset:function(e,t,n,r){var a=n.getWidth(),i=n.getHeight(),o=e.option,s=Xn(e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=o.size||[],u=qe(NN(s.width,l[0]),a),c=qe(NN(s.height,l[1]),i),f=r&&r.type,d=["treemapZoomToNode","treemapRootToNode"],h=Rp(r,d,e),v=f==="treemapRender"||f==="treemapMove"?r.rootRect:null,p=e.getViewRoot(),g=Q7(p);if(f!=="treemapMove"){var m=f==="treemapZoomToNode"?qze(e,h,p,u,c):v?[v.width,v.height]:[u,c],b=o.sort;b&&b!=="asc"&&b!=="desc"&&(b="desc");var _={squareRatio:o.squareRatio,sort:b,leafDepth:o.leafDepth};p.hostTree.clearLayouts();var w={x:0,y:0,width:m[0],height:m[1],area:m[0]*m[1]};p.setLayout(w),oK(p,_,!1,0),w=p.getLayout(),XA(g,function(S,x){var T=(g[x+1]||p).getValue();S.setLayout(Ie({dataExtent:[T,T],borderWidth:0,upperHeight:0},w))})}var C=e.getData().tree.root;C.setLayout(Xze(s,v,h),!0),e.setLayoutInfo(s),sK(C,new Rt(-s.x,-s.y,a,i),g,p,0)}};function oK(e,t,n,r){var a,i;if(!e.isRemoved()){var o=e.getLayout();a=o.width,i=o.height;var s=e.getModel(),l=s.get(iK),u=s.get(zze)/2,c=lK(s),f=Math.max(l,c),d=l-u,h=f-u;e.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:c},!0),a=$p(a-2*d,0),i=$p(i-d-h,0);var v=a*i,p=Wze(e,s,v,t,n,r);if(p.length){var g={x:d,y:h,width:a,height:i},m=lb(a,i),b=1/0,_=[];_.area=0;for(var w=0,C=p.length;w<C;){var S=p[w];_.push(S),_.area+=S.getLayout().area;var x=jze(_,m,t.squareRatio);x<=b?(w++,b=x):(_.area-=_.pop().getLayout().area,BN(_,m,g,u,!1),m=lb(g.width,g.height),_.length=_.area=0,b=1/0)}if(_.length&&BN(_,m,g,u,!0),!n){var T=s.get("childrenVisibleMin");T!=null&&v<T&&(n=!0)}for(var w=0,C=p.length;w<C;w++)oK(p[w],t,n,r+1)}}}function Wze(e,t,n,r,a,i){var o=e.children||[],s=r.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=r.leafDepth!=null&&r.leafDepth<=i;if(a&&!l)return e.viewChildren=[];o=ln(o,function(h){return!h.isRemoved()}),Uze(o,s);var u=Yze(t,o,s);if(u.sum===0)return e.viewChildren=[];if(u.sum=Kze(t,n,u.sum,s,o),u.sum===0)return e.viewChildren=[];for(var c=0,f=o.length;c<f;c++){var d=o[c].getValue()/u.sum*n;o[c].setLayout({area:d})}return l&&(o.length&&e.setLayout({isLeafRoot:!0},!0),o.length=0),e.viewChildren=o,e.setLayout({dataExtent:u.dataExtent},!0),o}function Kze(e,t,n,r,a){if(!r)return n;for(var i=e.get("visibleMin"),o=a.length,s=o,l=o-1;l>=0;l--){var u=a[r==="asc"?o-l-1:l].getValue();u/n*t<i&&(s=l,n-=u)}return r==="asc"?a.splice(0,o-s):a.splice(s,o-s),n}function Uze(e,t){return t&&e.sort(function(n,r){var a=t==="asc"?n.getValue()-r.getValue():r.getValue()-n.getValue();return a===0?t==="asc"?n.dataIndex-r.dataIndex:r.dataIndex-n.dataIndex:a}),e}function Yze(e,t,n){for(var r=0,a=0,i=t.length;a<i;a++)r+=t[a].getValue();var o=e.get("visualDimension"),s;return!t||!t.length?s=[NaN,NaN]:o==="value"&&n?(s=[t[t.length-1].getValue(),t[0].getValue()],n==="asc"&&s.reverse()):(s=[1/0,-1/0],XA(t,function(l){var u=l.getValue(o);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:r,dataExtent:s}}function jze(e,t,n){for(var r=0,a=1/0,i=0,o=void 0,s=e.length;i<s;i++)o=e[i].getLayout().area,o&&(o<a&&(a=o),o>r&&(r=o));var l=e.area*e.area,u=t*t*n;return l?$p(u*r/l,l/(u*a)):1/0}function BN(e,t,n,r,a){var i=t===n.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=n[s[i]],c=t?e.area/t:0;(a||c>n[l[o]])&&(c=n[l[o]]);for(var f=0,d=e.length;f<d;f++){var h=e[f],v={},p=c?h.getLayout().area/c:0,g=v[l[o]]=$p(c-2*r,0),m=n[s[i]]+n[l[i]]-u,b=f===d-1||m<p?m:p,_=v[l[i]]=$p(b-2*r,0);v[s[o]]=n[s[o]]+lb(r,g/2),v[s[i]]=u+lb(r,_/2),u+=b,h.setLayout(v,!0)}n[s[o]]+=c,n[l[o]]-=c}function qze(e,t,n,r,a){var i=(t||{}).node,o=[r,a];if(!i||i===n)return o;for(var s,l=r*a,u=l*e.option.zoomToNodeRatio;s=i.parentNode;){for(var c=0,f=s.children,d=0,h=f.length;d<h;d++)c+=f[d].getValue();var v=i.getValue();if(v===0)return o;u*=c/v;var p=s.getModel(),g=p.get(iK),m=Math.max(g,lK(p));u+=4*g*g+(3*g+m)*Math.pow(u,.5),u>Xx&&(u=Xx),i=s}u<l&&(u=l);var b=Math.pow(u/l,.5);return[r*b,a*b]}function Xze(e,t,n){if(t)return{x:t.x,y:t.y};var r={x:0,y:0};if(!n)return r;var a=n.node,i=a.getLayout();if(!i)return r;for(var o=[i.width/2,i.height/2],s=a;s;){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:e.width/2-o[0],y:e.height/2-o[1]}}function sK(e,t,n,r,a){var i=e.getLayout(),o=n[a],s=o&&o===e;if(!(o&&!s||a===n.length&&e!==r)){e.setLayout({isInView:!0,invisible:!s&&!t.intersect(i),isAboveViewRoot:s},!0);var l=new Rt(t.x-i.x,t.y-i.y,t.width,t.height);XA(e.viewChildren||[],function(u){sK(u,l,n,r,a+1)})}}function lK(e){return e.get(Fze)?e.get(Hze):0}function Zze(e){e.registerSeriesModel(pze),e.registerChartView(Eze),e.registerVisual(Oze),e.registerLayout(Gze),dze(e)}function Jze(e){var t=e.findComponents({mainType:"legend"});!t||!t.length||e.eachSeriesByType("graph",function(n){var r=n.getCategoriesData(),a=n.getGraph(),i=a.data,o=r.mapArray(r.getName);i.filterSelf(function(s){var l=i.getItemModel(s),u=l.getShallow("category");if(u!=null){Qt(u)&&(u=o[u]);for(var c=0;c<t.length;c++)if(!t[c].isSelected(u))return!1}return!0})})}function Qze(e){var t={};e.eachSeriesByType("graph",function(n){var r=n.getCategoriesData(),a=n.getData(),i={};r.each(function(o){var s=r.getName(o);i["ec-"+s]=o;var l=r.getItemModel(o),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=n.getColorFromPalette(s,t)),r.setItemVisual(o,"style",u);for(var c=["symbol","symbolSize","symbolKeepAspect"],f=0;f<c.length;f++){var d=l.getShallow(c[f],!0);d!=null&&r.setItemVisual(o,c[f],d)}}),r.count()&&a.each(function(o){var s=a.getItemModel(o),l=s.getShallow("category");if(l!=null){Je(l)&&(l=i["ec-"+l]);var u=r.getItemVisual(l,"style"),c=a.ensureUniqueItemVisual(o,"style");Ie(c,u);for(var f=["symbol","symbolSize","symbolKeepAspect"],d=0;d<f.length;d++)a.setItemVisual(o,f[d],r.getItemVisual(l,f[d]))}})})}function Gm(e){return e instanceof Array||(e=[e,e]),e}function eFe(e){e.eachSeriesByType("graph",function(t){var n=t.getGraph(),r=t.getEdgeData(),a=Gm(t.get("edgeSymbol")),i=Gm(t.get("edgeSymbolSize"));r.setVisual("fromSymbol",a&&a[0]),r.setVisual("toSymbol",a&&a[1]),r.setVisual("fromSymbolSize",i&&i[0]),r.setVisual("toSymbolSize",i&&i[1]),r.setVisual("style",t.getModel("lineStyle").getLineStyle()),r.each(function(o){var s=r.getItemModel(o),l=n.getEdgeByIndex(o),u=Gm(s.getShallow("symbol",!0)),c=Gm(s.getShallow("symbolSize",!0)),f=s.getModel("lineStyle").getLineStyle(),d=r.ensureUniqueItemVisual(o,"style");switch(Ie(d,f),d.stroke){case"source":{var h=l.node1.getVisual("style");d.stroke=h&&h.fill;break}case"target":{var h=l.node2.getVisual("style");d.stroke=h&&h.fill;break}}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),c[0]&&l.setVisual("fromSymbolSize",c[0]),c[1]&&l.setVisual("toSymbolSize",c[1])})})}var G2="-->",Z1=function(e){return e.get("autoCurveness")||null},uK=function(e,t){var n=Z1(e),r=20,a=[];if(Qt(n))r=n;else if(Re(n)){e.__curvenessList=n;return}t>r&&(r=t);var i=r%2?r+2:r+3;a=[];for(var o=0;o<i;o++)a.push((o%2?o+1:o)/10*(o%2?-1:1));e.__curvenessList=a},Np=function(e,t,n){var r=[e.id,e.dataIndex].join("."),a=[t.id,t.dataIndex].join(".");return[n.uid,r,a].join(G2)},cK=function(e){var t=e.split(G2);return[t[0],t[2],t[1]].join(G2)},tFe=function(e,t){var n=Np(e.node1,e.node2,t);return t.__edgeMap[n]},nFe=function(e,t){var n=W2(Np(e.node1,e.node2,t),t),r=W2(Np(e.node2,e.node1,t),t);return n+r},W2=function(e,t){var n=t.__edgeMap;return n[e]?n[e].length:0};function rFe(e){Z1(e)&&(e.__curvenessList=[],e.__edgeMap={},uK(e))}function aFe(e,t,n,r){if(Z1(n)){var a=Np(e,t,n),i=n.__edgeMap,o=i[cK(a)];i[a]&&!o?i[a].isForward=!0:o&&i[a]&&(o.isForward=!0,i[a].isForward=!1),i[a]=i[a]||[],i[a].push(r)}}function ZA(e,t,n,r){var a=Z1(t),i=Re(a);if(!a)return null;var o=tFe(e,t);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===n){s=l;break}var u=nFe(e,t);uK(t,u),e.lineStyle=e.lineStyle||{};var c=Np(e.node1,e.node2,t),f=t.__curvenessList,d=i||u%2?0:1;if(o.isForward)return f[d+s];var h=cK(c),v=W2(h,t),p=f[s+v+d];return r?i?a&&a[0]===0?(v+d)%2?p:-p:((v%2?0:1)+d)%2?p:-p:(v+d)%2?p:-p:f[s+v+d]}function fK(e){var t=e.coordinateSystem;if(!(t&&t.type!=="view")){var n=e.getGraph();n.eachNode(function(r){var a=r.getModel();r.setLayout([+a.get("x"),+a.get("y")])}),JA(n,e)}}function JA(e,t){e.eachEdge(function(n,r){var a=Ri(n.getModel().get(["lineStyle","curveness"]),-ZA(n,t,r,!0),0),i=po(n.node1.getLayout()),o=po(n.node2.getLayout()),s=[i,o];+a&&s.push([(i[0]+o[0])/2-(i[1]-o[1])*a,(i[1]+o[1])/2-(o[0]-i[0])*a]),n.setLayout(s)})}function iFe(e,t){e.eachSeriesByType("graph",function(n){var r=n.get("layout"),a=n.coordinateSystem;if(a&&a.type!=="view"){var i=n.getData(),o=[];F(a.dimensions,function(d){o=o.concat(i.mapDimensionsAll(d))});for(var s=0;s<i.count();s++){for(var l=[],u=!1,c=0;c<o.length;c++){var f=i.get(o[c],s);isNaN(f)||(u=!0),l.push(f)}u?i.setItemLayout(s,a.dataToPoint(l)):i.setItemLayout(s,[NaN,NaN])}JA(i.graph,n)}else(!r||r==="none")&&fK(n)})}function jh(e){var t=e.coordinateSystem;if(t.type!=="view")return 1;var n=e.option.nodeScaleRatio,r=t.scaleX,a=t.getZoom(),i=(a-1)*n+1;return i/r}function qh(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var VN=Math.PI,dS=[];function QA(e,t,n,r){var a=e.coordinateSystem;if(!(a&&a.type!=="view")){var i=a.getBoundingRect(),o=e.getData(),s=o.graph,l=i.width/2+i.x,u=i.height/2+i.y,c=Math.min(i.width,i.height)/2,f=o.count();if(o.setLayout({cx:l,cy:u}),!!f){if(n){var d=a.pointToData(r),h=d[0],v=d[1],p=[h-l,v-u];Cc(p,p),dv(p,p,c),n.setLayout([l+p[0],u+p[1]],!0);var g=e.get(["circular","rotateLabel"]);dK(n,g,l,u)}oFe[t](e,s,o,c,l,u,f),s.eachEdge(function(m,b){var _=Ri(m.getModel().get(["lineStyle","curveness"]),ZA(m,e,b),0),w=po(m.node1.getLayout()),C=po(m.node2.getLayout()),S,x=(w[0]+C[0])/2,T=(w[1]+C[1])/2;+_&&(_*=3,S=[l*_+x*(1-_),u*_+T*(1-_)]),m.setLayout([w,C,S])})}}}var oFe={value:function(e,t,n,r,a,i,o){var s=0,l=n.getSum("value"),u=Math.PI*2/(l||o);t.eachNode(function(c){var f=c.getValue("value"),d=u*(l?f:1)/2;s+=d,c.setLayout([r*Math.cos(s)+a,r*Math.sin(s)+i]),s+=d})},symbolSize:function(e,t,n,r,a,i,o){var s=0;dS.length=o;var l=jh(e);t.eachNode(function(f){var d=qh(f);isNaN(d)&&(d=2),d<0&&(d=0),d*=l;var h=Math.asin(d/2/r);isNaN(h)&&(h=VN/2),dS[f.dataIndex]=h,s+=h*2});var u=(2*VN-s)/o/2,c=0;t.eachNode(function(f){var d=u+dS[f.dataIndex];c+=d,(!f.getLayout()||!f.getLayout().fixed)&&f.setLayout([r*Math.cos(c)+a,r*Math.sin(c)+i]),c+=d})}};function dK(e,t,n,r){var a=e.getGraphicEl();if(a){var i=e.getModel(),o=i.get(["label","rotate"])||0,s=a.getSymbolPath();if(t){var l=e.getLayout(),u=Math.atan2(l[1]-r,l[0]-n);u<0&&(u=Math.PI*2+u);var c=l[0]<n;c&&(u=u-Math.PI);var f=c?"left":"right";s.setTextConfig({rotation:-u,position:f,origin:"center"});var d=s.ensureState("emphasis");Ie(d.textConfig||(d.textConfig={}),{position:f})}else s.setTextConfig({rotation:o*=Math.PI/180})}}function sFe(e){e.eachSeriesByType("graph",function(t){t.get("layout")==="circular"&&QA(t,"symbolSize")})}var Xc=M0;function lFe(e,t,n){for(var r=e,a=t,i=n.rect,o=i.width,s=i.height,l=[i.x+o/2,i.y+s/2],u=n.gravity==null?.1:n.gravity,c=0;c<r.length;c++){var f=r[c];f.p||(f.p=Dl(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),f.pp=po(f.p),f.edges=null}var d=n.friction==null?.6:n.friction,h=d,v,p;return{warmUp:function(){h=d*.8},setFixed:function(g){r[g].fixed=!0},setUnfixed:function(g){r[g].fixed=!1},beforeStep:function(g){v=g},afterStep:function(g){p=g},step:function(g){v&&v(r,a);for(var m=[],b=r.length,_=0;_<a.length;_++){var w=a[_];if(!w.ignoreForceLayout){var C=w.n1,S=w.n2;Ws(m,S.p,C.p);var x=fp(m)-w.d,T=S.w/(C.w+S.w);isNaN(T)&&(T=0),Cc(m,m),!C.fixed&&Xc(C.p,C.p,m,T*x*h),!S.fixed&&Xc(S.p,S.p,m,-(1-T)*x*h)}}for(var _=0;_<b;_++){var M=r[_];M.fixed||(Ws(m,l,M.p),Xc(M.p,M.p,m,u*h))}for(var _=0;_<b;_++)for(var C=r[_],A=_+1;A<b;A++){var S=r[A];Ws(m,S.p,C.p);var x=fp(m);x===0&&(Z6(m,Math.random()-.5,Math.random()-.5),x=1);var k=(C.rep+S.rep)/x/x;!C.fixed&&Xc(C.pp,C.pp,m,k),!S.fixed&&Xc(S.pp,S.pp,m,-k)}for(var E=[],_=0;_<b;_++){var M=r[_];M.fixed||(Ws(E,M.p,M.pp),Xc(M.p,M.p,E,h),Dr(M.pp,M.p))}h=h*.992;var D=h<.01;p&&p(r,a,D),g&&g(D)}}}function uFe(e){e.eachSeriesByType("graph",function(t){var n=t.coordinateSystem;if(!(n&&n.type!=="view"))if(t.get("layout")==="force"){var r=t.preservedPoints||{},a=t.getGraph(),i=a.data,o=a.edgeData,s=t.getModel("force"),l=s.get("initLayout");t.preservedPoints?i.each(function(_){var w=i.getId(_);i.setItemLayout(_,r[w]||[NaN,NaN])}):!l||l==="none"?fK(t):l==="circular"&&QA(t,"value");var u=i.getDataExtent("value"),c=o.getDataExtent("value"),f=s.get("repulsion"),d=s.get("edgeLength"),h=Re(f)?f:[f,f],v=Re(d)?d:[d,d];v=[v[1],v[0]];var p=i.mapArray("value",function(_,w){var C=i.getItemLayout(w),S=sn(_,u,h);return isNaN(S)&&(S=(h[0]+h[1])/2),{w:S,rep:S,fixed:i.getItemModel(w).get("fixed"),p:!C||isNaN(C[0])||isNaN(C[1])?null:C}}),g=o.mapArray("value",function(_,w){var C=a.getEdgeByIndex(w),S=sn(_,c,v);isNaN(S)&&(S=(v[0]+v[1])/2);var x=C.getModel(),T=Ri(C.getModel().get(["lineStyle","curveness"]),-ZA(C,t,w,!0),0);return{n1:p[C.node1.dataIndex],n2:p[C.node2.dataIndex],d:S,curveness:T,ignoreForceLayout:x.get("ignoreForceLayout")}}),m=n.getBoundingRect(),b=lFe(p,g,{rect:m,gravity:s.get("gravity"),friction:s.get("friction")});b.beforeStep(function(_,w){for(var C=0,S=_.length;C<S;C++)_[C].fixed&&Dr(_[C].p,a.getNodeByIndex(C).getLayout())}),b.afterStep(function(_,w,C){for(var S=0,x=_.length;S<x;S++)_[S].fixed||a.getNodeByIndex(S).setLayout(_[S].p),r[i.getId(S)]=_[S].p;for(var S=0,x=w.length;S<x;S++){var T=w[S],M=a.getEdgeByIndex(S),A=T.n1.p,k=T.n2.p,E=M.getLayout();E=E?E.slice():[],E[0]=E[0]||[],E[1]=E[1]||[],Dr(E[0],A),Dr(E[1],k),+T.curveness&&(E[2]=[(A[0]+k[0])/2-(A[1]-k[1])*T.curveness,(A[1]+k[1])/2-(k[0]-A[0])*T.curveness]),M.setLayout(E)}}),t.forceLayout=b,t.preservedPoints=r,b.step()}else t.forceLayout=null})}function cFe(e,t,n){var r=Ie(e.getBoxLayoutParams(),{aspect:n});return Xn(r,{width:t.getWidth(),height:t.getHeight()})}function fFe(e,t){var n=[];return e.eachSeriesByType("graph",function(r){var a=r.get("coordinateSystem");if(!a||a==="view"){var i=r.getData(),o=i.mapArray(function(g){var m=i.getItemModel(g);return[+m.get("x"),+m.get("y")]}),s=[],l=[];C1(o,s,l),l[0]-s[0]===0&&(l[0]+=1,s[0]-=1),l[1]-s[1]===0&&(l[1]+=1,s[1]-=1);var u=(l[0]-s[0])/(l[1]-s[1]),c=cFe(r,t,u);isNaN(u)&&(s=[c.x,c.y],l=[c.x+c.width,c.y+c.height]);var f=l[0]-s[0],d=l[1]-s[1],h=c.width,v=c.height,p=r.coordinateSystem=new kg;p.zoomLimit=r.get("scaleLimit"),p.setBoundingRect(s[0],s[1],f,d),p.setViewRect(c.x,c.y,h,v),p.setCenter(r.get("center"),t),p.setZoom(r.get("zoom")),n.push(p)}}),n}var zN=ar.prototype,hS=hg.prototype,hK=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}();(function(e){ge(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(hK);function vS(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var dFe=function(e){ge(t,e);function t(n){var r=e.call(this,n)||this;return r.type="ec-line",r}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new hK},t.prototype.buildPath=function(n,r){vS(r)?zN.buildPath.call(this,n,r):hS.buildPath.call(this,n,r)},t.prototype.pointAt=function(n){return vS(this.shape)?zN.pointAt.call(this,n):hS.pointAt.call(this,n)},t.prototype.tangentAt=function(n){var r=this.shape,a=vS(r)?[r.x2-r.x1,r.y2-r.y1]:hS.tangentAt.call(this,n);return Cc(a,a)},t}(zt);const hFe=dFe;var pS=["fromSymbol","toSymbol"];function FN(e){return"_"+e+"Type"}function HN(e,t,n){var r=t.getItemVisual(n,e);if(!r||r==="none")return r;var a=t.getItemVisual(n,e+"Size"),i=t.getItemVisual(n,e+"Rotate"),o=t.getItemVisual(n,e+"Offset"),s=t.getItemVisual(n,e+"KeepAspect"),l=Wd(a),u=kc(o||0,l);return r+l+u+(i||"")+(s||"")}function GN(e,t,n){var r=t.getItemVisual(n,e);if(!(!r||r==="none")){var a=t.getItemVisual(n,e+"Size"),i=t.getItemVisual(n,e+"Rotate"),o=t.getItemVisual(n,e+"Offset"),s=t.getItemVisual(n,e+"KeepAspect"),l=Wd(a),u=kc(o||0,l),c=Hn(r,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=i==null||isNaN(i)?void 0:+i*Math.PI/180||0,c.name=e,c}}function vFe(e){var t=new hFe({name:"line",subPixelOptimize:!0});return K2(t.shape,e),t}function K2(e,t){e.x1=t[0][0],e.y1=t[0][1],e.x2=t[1][0],e.y2=t[1][1],e.percent=1;var n=t[2];n?(e.cpx1=n[0],e.cpy1=n[1]):(e.cpx1=NaN,e.cpy1=NaN)}var pFe=function(e){ge(t,e);function t(n,r,a){var i=e.call(this)||this;return i._createLine(n,r,a),i}return t.prototype._createLine=function(n,r,a){var i=n.hostModel,o=n.getItemLayout(r),s=vFe(o);s.shape.percent=0,xn(s,{shape:{percent:1}},i,r),this.add(s),F(pS,function(l){var u=GN(l,n,r);this.add(u),this[FN(l)]=HN(l,n,r)},this),this._updateCommonStl(n,r,a)},t.prototype.updateData=function(n,r,a){var i=n.hostModel,o=this.childOfName("line"),s=n.getItemLayout(r),l={shape:{}};K2(l.shape,s),nn(o,l,i,r),F(pS,function(u){var c=HN(u,n,r),f=FN(u);if(this[f]!==c){this.remove(this.childOfName(u));var d=GN(u,n,r);this.add(d)}this[f]=c},this),this._updateCommonStl(n,r,a)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(n,r,a){var i=n.hostModel,o=this.childOfName("line"),s=a&&a.emphasisLineStyle,l=a&&a.blurLineStyle,u=a&&a.selectLineStyle,c=a&&a.labelStatesModels,f=a&&a.emphasisDisabled,d=a&&a.focus,h=a&&a.blurScope;if(!a||n.hasItemOption){var v=n.getItemModel(r),p=v.getModel("emphasis");s=p.getModel("lineStyle").getLineStyle(),l=v.getModel(["blur","lineStyle"]).getLineStyle(),u=v.getModel(["select","lineStyle"]).getLineStyle(),f=p.get("disabled"),d=p.get("focus"),h=p.get("blurScope"),c=lr(v)}var g=n.getItemVisual(r,"style"),m=g.stroke;o.useStyle(g),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,F(pS,function(S){var x=this.childOfName(S);if(x){x.setColor(m),x.style.opacity=g.opacity;for(var T=0;T<ta.length;T++){var M=ta[T],A=o.getState(M);if(A){var k=A.style||{},E=x.ensureState(M),D=E.style||(E.style={});k.stroke!=null&&(D[x.__isEmptyBrush?"stroke":"fill"]=k.stroke),k.opacity!=null&&(D.opacity=k.opacity)}}x.markRedraw()}},this);var b=i.getRawValue(r);Tr(this,c,{labelDataIndex:r,labelFetcher:{getFormattedLabel:function(S,x){return i.getFormattedLabel(S,x,n.dataType)}},inheritColor:m||"#000",defaultOpacity:g.opacity,defaultText:(b==null?n.getName(r):isFinite(b)?Rn(b):b)+""});var _=this.getTextContent();if(_){var w=c.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=w.get("position")||"middle";var C=w.get("distance");Re(C)||(C=[C,C]),_.__labelDistance=C}this.setTextConfig({position:null,local:!0,inside:!1}),$n(this,d,h,f)},t.prototype.highlight=function(){rs(this)},t.prototype.downplay=function(){as(this)},t.prototype.updateLayout=function(n,r){this.setLinePoints(n.getItemLayout(r))},t.prototype.setLinePoints=function(n){var r=this.childOfName("line");K2(r.shape,n),r.dirty()},t.prototype.beforeUpdate=function(){var n=this,r=n.childOfName("fromSymbol"),a=n.childOfName("toSymbol"),i=n.getTextContent();if(!r&&!a&&(!i||i.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=n.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,c=l.pointAt(0),f=l.pointAt(u),d=Ws([],f,c);Cc(d,d);function h(A,k){var E=A.__specifiedRotation;if(E==null){var D=l.tangentAt(k);A.attr("rotation",(k===1?-1:1)*Math.PI/2-Math.atan2(D[1],D[0]))}else A.attr("rotation",E)}if(r&&(r.setPosition(c),h(r,0),r.scaleX=r.scaleY=o*u,r.markRedraw()),a&&(a.setPosition(f),h(a,1),a.scaleX=a.scaleY=o*u,a.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var v=void 0,p=void 0,g=i.__labelDistance,m=g[0]*o,b=g[1]*o,_=u/2,w=l.tangentAt(_),C=[w[1],-w[0]],S=l.pointAt(_);C[1]>0&&(C[0]=-C[0],C[1]=-C[1]);var x=w[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var T=-Math.atan2(w[1],w[0]);f[0]<c[0]&&(T=Math.PI+T),i.rotation=T}var M=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":M=-b,p="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":M=b,p="top";break;default:M=0,p="middle"}switch(i.__position){case"end":i.x=d[0]*m+f[0],i.y=d[1]*b+f[1],v=d[0]>.8?"left":d[0]<-.8?"right":"center",p=d[1]>.8?"top":d[1]<-.8?"bottom":"middle";break;case"start":i.x=-d[0]*m+c[0],i.y=-d[1]*b+c[1],v=d[0]>.8?"right":d[0]<-.8?"left":"center",p=d[1]>.8?"bottom":d[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=m*x+c[0],i.y=c[1]+M,v=w[0]<0?"right":"left",i.originX=-m*x,i.originY=-M;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=S[0],i.y=S[1]+M,v="center",i.originY=-M;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-m*x+f[0],i.y=f[1]+M,v=w[0]>=0?"right":"left",i.originX=m*x,i.originY=-M;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||p,align:i.__align||v})}},t}(bt);const eE=pFe;var gFe=function(){function e(t){this.group=new bt,this._LineCtor=t||eE}return e.prototype.updateData=function(t){var n=this;this._progressiveEls=null;var r=this,a=r.group,i=r._lineData;r._lineData=t,i||a.removeAll();var o=WN(t);t.diff(i).add(function(s){n._doAdd(t,s,o)}).update(function(s,l){n._doUpdate(i,t,l,s,o)}).remove(function(s){a.remove(i.getItemGraphicEl(s))}).execute()},e.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(n,r){n.updateLayout(t,r)},this)},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=WN(t),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,n){this._progressiveEls=[];function r(s){!s.isGroup&&!mFe(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a<t.end;a++){var i=n.getItemLayout(a);if(gS(i)){var o=new this._LineCtor(n,a,this._seriesScope);o.traverse(r),this.group.add(o),n.setItemGraphicEl(a,o),this._progressiveEls.push(o)}}},e.prototype.remove=function(){this.group.removeAll()},e.prototype.eachRendered=function(t){Ll(this._progressiveEls||this.group,t)},e.prototype._doAdd=function(t,n,r){var a=t.getItemLayout(n);if(gS(a)){var i=new this._LineCtor(t,n,r);t.setItemGraphicEl(n,i),this.group.add(i)}},e.prototype._doUpdate=function(t,n,r,a,i){var o=t.getItemGraphicEl(r);if(!gS(n.getItemLayout(a))){this.group.remove(o);return}o?o.updateData(n,a,i):o=new this._LineCtor(n,a,i),n.setItemGraphicEl(a,o),this.group.add(o)},e}();function mFe(e){return e.animators&&e.animators.length>0}function WN(e){var t=e.hostModel,n=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:lr(t)}}function KN(e){return isNaN(e[0])||isNaN(e[1])}function gS(e){return e&&!KN(e[0])&&!KN(e[1])}const tE=gFe;var mS=[],yS=[],bS=[],Zc=fr,_S=tl,UN=Math.abs;function YN(e,t,n){for(var r=e[0],a=e[1],i=e[2],o=1/0,s,l=n*n,u=.1,c=.1;c<=.9;c+=.1){mS[0]=Zc(r[0],a[0],i[0],c),mS[1]=Zc(r[1],a[1],i[1],c);var f=UN(_S(mS,t)-l);f<o&&(o=f,s=c)}for(var d=0;d<32;d++){var h=s+u;yS[0]=Zc(r[0],a[0],i[0],s),yS[1]=Zc(r[1],a[1],i[1],s),bS[0]=Zc(r[0],a[0],i[0],h),bS[1]=Zc(r[1],a[1],i[1],h);var f=_S(yS,t)-l;if(UN(f)<.01)break;var v=_S(bS,t)-l;u/=2,f<0?v>=0?s=s+u:s=s-u:v>=0?s=s-u:s=s+u}return s}function wS(e,t){var n=[],r=dp,a=[[],[],[]],i=[[],[]],o=[];t/=2,e.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),f=s.getVisual("toSymbol");u.__original||(u.__original=[po(u[0]),po(u[1])],u[2]&&u.__original.push(po(u[2])));var d=u.__original;if(u[2]!=null){if(Dr(a[0],d[0]),Dr(a[1],d[2]),Dr(a[2],d[1]),c&&c!=="none"){var h=qh(s.node1),v=YN(a,d[0],h*t);r(a[0][0],a[1][0],a[2][0],v,n),a[0][0]=n[3],a[1][0]=n[4],r(a[0][1],a[1][1],a[2][1],v,n),a[0][1]=n[3],a[1][1]=n[4]}if(f&&f!=="none"){var h=qh(s.node2),v=YN(a,d[1],h*t);r(a[0][0],a[1][0],a[2][0],v,n),a[1][0]=n[1],a[2][0]=n[2],r(a[0][1],a[1][1],a[2][1],v,n),a[1][1]=n[1],a[2][1]=n[2]}Dr(u[0],a[0]),Dr(u[1],a[2]),Dr(u[2],a[1])}else{if(Dr(i[0],d[0]),Dr(i[1],d[1]),Ws(o,i[1],i[0]),Cc(o,o),c&&c!=="none"){var h=qh(s.node1);M0(i[0],i[0],o,h*t)}if(f&&f!=="none"){var h=qh(s.node2);M0(i[1],i[1],o,-h*t)}Dr(u[0],i[0]),Dr(u[1],i[1])}})}function jN(e){return e.type==="view"}var yFe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r){var a=new Sg,i=new tE,o=this.group;this._controller=new Mg(r.getZr()),this._controllerHost={target:o},o.add(a.group),o.add(i.group),this._symbolDraw=a,this._lineDraw=i,this._firstRender=!0},t.prototype.render=function(n,r,a){var i=this,o=n.coordinateSystem;this._model=n;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(jN(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):nn(u,c,n)}wS(n.getGraph(),jh(n));var f=n.getData();s.updateData(f);var d=n.getEdgeData();l.updateData(d),this._updateNodeAndLinkScale(),this._updateController(n,r,a),clearTimeout(this._layoutTimeout);var h=n.forceLayout,v=n.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,v);var p=n.get("layout");f.graph.eachNode(function(_){var w=_.dataIndex,C=_.getGraphicEl(),S=_.getModel();if(C){C.off("drag").off("dragend");var x=S.get("draggable");x&&C.on("drag",function(M){switch(p){case"force":h.warmUp(),!i._layouting&&i._startForceLayoutIteration(h,v),h.setFixed(w),f.setItemLayout(w,[C.x,C.y]);break;case"circular":f.setItemLayout(w,[C.x,C.y]),_.setLayout({fixed:!0},!0),QA(n,"symbolSize",_,[M.offsetX,M.offsetY]),i.updateLayout(n);break;case"none":default:f.setItemLayout(w,[C.x,C.y]),JA(n.getGraph(),n),i.updateLayout(n);break}}).on("dragend",function(){h&&h.setUnfixed(w)}),C.setDraggable(x,!!S.get("cursor"));var T=S.get(["emphasis","focus"]);T==="adjacency"&&(Tt(C).focus=_.getAdjacentDataIndices())}}),f.graph.eachEdge(function(_){var w=_.getGraphicEl(),C=_.getModel().get(["emphasis","focus"]);w&&C==="adjacency"&&(Tt(w).focus={edge:[_.dataIndex],node:[_.node1.dataIndex,_.node2.dataIndex]})});var g=n.get("layout")==="circular"&&n.get(["circular","rotateLabel"]),m=f.getLayout("cx"),b=f.getLayout("cy");f.graph.eachNode(function(_){dK(_,g,m,b)}),this._firstRender=!1},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(n,r){var a=this;(function i(){n.step(function(o){a.updateLayout(a._model),(a._layouting=!o)&&(r?a._layoutTimeout=setTimeout(i,16):i())})})()},t.prototype._updateController=function(n,r,a){var i=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,c,f){var d=l.getBoundingRect();return d.applyTransform(l.transform),d.contain(c,f)&&!j1(u,a,n)}),!jN(n.coordinateSystem)){o.disable();return}o.enable(n.get("roam")),s.zoomLimit=n.get("scaleLimit"),s.zoom=n.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){HA(s,u.dx,u.dy),a.dispatchAction({seriesId:n.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){GA(s,u.scale,u.originX,u.originY),a.dispatchAction({seriesId:n.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(),wS(n.getGraph(),jh(n)),i._lineDraw.updateLayout(),a.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var n=this._model,r=n.getData(),a=jh(n);r.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(a)})},t.prototype.updateLayout=function(n){wS(n.getGraph(),jh(n)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(n,r){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(vn);const bFe=yFe;function Jc(e){return"_EC_"+e}var _Fe=function(){function e(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(t,n){t=t==null?""+n:""+t;var r=this._nodesMap;if(!r[Jc(t)]){var a=new yu(t,n);return a.hostGraph=this,this.nodes.push(a),r[Jc(t)]=a,a}},e.prototype.getNodeByIndex=function(t){var n=this.data.getRawIndex(t);return this.nodes[n]},e.prototype.getNodeById=function(t){return this._nodesMap[Jc(t)]},e.prototype.addEdge=function(t,n,r){var a=this._nodesMap,i=this._edgesMap;if(Qt(t)&&(t=this.nodes[t]),Qt(n)&&(n=this.nodes[n]),t instanceof yu||(t=a[Jc(t)]),n instanceof yu||(n=a[Jc(n)]),!(!t||!n)){var o=t.id+"-"+n.id,s=new vK(t,n,r);return s.hostGraph=this,this._directed&&(t.outEdges.push(s),n.inEdges.push(s)),t.edges.push(s),t!==n&&n.edges.push(s),this.edges.push(s),i[o]=s,s}},e.prototype.getEdgeByIndex=function(t){var n=this.edgeData.getRawIndex(t);return this.edges[n]},e.prototype.getEdge=function(t,n){t instanceof yu&&(t=t.id),n instanceof yu&&(n=n.id);var r=this._edgesMap;return this._directed?r[t+"-"+n]:r[t+"-"+n]||r[n+"-"+t]},e.prototype.eachNode=function(t,n){for(var r=this.nodes,a=r.length,i=0;i<a;i++)r[i].dataIndex>=0&&t.call(n,r[i],i)},e.prototype.eachEdge=function(t,n){for(var r=this.edges,a=r.length,i=0;i<a;i++)r[i].dataIndex>=0&&r[i].node1.dataIndex>=0&&r[i].node2.dataIndex>=0&&t.call(n,r[i],i)},e.prototype.breadthFirstTraverse=function(t,n,r,a){if(n instanceof yu||(n=this._nodesMap[Jc(n)]),!!n){for(var i=r==="out"?"outEdges":r==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!t.call(a,n,null))for(var s=[n];s.length;)for(var l=s.shift(),u=l[i],o=0;o<u.length;o++){var c=u[o],f=c.node1===l?c.node2:c.node1;if(!f.__visited){if(t.call(a,f,l))return;s.push(f),f.__visited=!0}}}},e.prototype.update=function(){for(var t=this.data,n=this.edgeData,r=this.nodes,a=this.edges,i=0,o=r.length;i<o;i++)r[i].dataIndex=-1;for(var i=0,o=t.count();i<o;i++)r[t.getRawIndex(i)].dataIndex=i;n.filterSelf(function(s){var l=a[n.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var i=0,o=a.length;i<o;i++)a[i].dataIndex=-1;for(var i=0,o=n.count();i<o;i++)a[n.getRawIndex(i)].dataIndex=i},e.prototype.clone=function(){for(var t=new e(this._directed),n=this.nodes,r=this.edges,a=0;a<n.length;a++)t.addNode(n[a].id,n[a].dataIndex);for(var a=0;a<r.length;a++){var i=r[a];t.addEdge(i.node1.id,i.node2.id,i.dataIndex)}return t},e}(),yu=function(){function e(t,n){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=t??"",this.dataIndex=n??-1}return e.prototype.degree=function(){return this.edges.length},e.prototype.inDegree=function(){return this.inEdges.length},e.prototype.outDegree=function(){return this.outEdges.length},e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var n=this.hostGraph,r=n.data.getItemModel(this.dataIndex);return r.getModel(t)}},e.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},n=0;n<this.edges.length;n++){var r=this.edges[n];r.dataIndex<0||(t.edge.push(r.dataIndex),t.node.push(r.node1.dataIndex,r.node2.dataIndex))}return t},e.prototype.getTrajectoryDataIndices=function(){for(var t=ot(),n=ot(),r=0;r<this.edges.length;r++){var a=this.edges[r];if(!(a.dataIndex<0)){t.set(a.dataIndex,!0);for(var i=[a.node1],o=[a.node2],s=0;s<i.length;){var l=i[s];s++,n.set(l.dataIndex,!0);for(var u=0;u<l.inEdges.length;u++)t.set(l.inEdges[u].dataIndex,!0),i.push(l.inEdges[u].node1)}for(s=0;s<o.length;){var c=o[s];s++,n.set(c.dataIndex,!0);for(var u=0;u<c.outEdges.length;u++)t.set(c.outEdges[u].dataIndex,!0),o.push(c.outEdges[u].node2)}}}return{edge:t.keys(),node:n.keys()}},e}(),vK=function(){function e(t,n,r){this.dataIndex=-1,this.node1=t,this.node2=n,this.dataIndex=r??-1}return e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var n=this.hostGraph,r=n.edgeData.getItemModel(this.dataIndex);return r.getModel(t)}},e.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},e.prototype.getTrajectoryDataIndices=function(){var t=ot(),n=ot();t.set(this.dataIndex,!0);for(var r=[this.node1],a=[this.node2],i=0;i<r.length;){var o=r[i];i++,n.set(o.dataIndex,!0);for(var s=0;s<o.inEdges.length;s++)t.set(o.inEdges[s].dataIndex,!0),r.push(o.inEdges[s].node1)}for(i=0;i<a.length;){var l=a[i];i++,n.set(l.dataIndex,!0);for(var s=0;s<l.outEdges.length;s++)t.set(l.outEdges[s].dataIndex,!0),a.push(l.outEdges[s].node2)}return{edge:t.keys(),node:n.keys()}},e}();function pK(e,t){return{getValue:function(n){var r=this[e][t];return r.getStore().get(r.getDimensionIndex(n||"value"),this.dataIndex)},setVisual:function(n,r){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,n,r)},getVisual:function(n){return this[e][t].getItemVisual(this.dataIndex,n)},setLayout:function(n,r){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,n,r)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}Vn(yu,pK("hostGraph","data"));Vn(vK,pK("hostGraph","edgeData"));const wFe=_Fe;function gK(e,t,n,r,a){for(var i=new wFe(r),o=0;o<e.length;o++)i.addNode(rr(e[o].id,e[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<t.length;o++){var c=t[o],f=c.source,d=c.target;i.addEdge(f,d,u)&&(l.push(c),s.push(rr(tr(c.id,null),f+" > "+d)),u++)}var h=n.get("coordinateSystem"),v;if(h==="cartesian2d"||h==="polar")v=Io(e,n);else{var p=Fd.get(h),g=p?p.dimensions||[]:[];$t(g,"value")<0&&g.concat(["value"]);var m=Kd(e,{coordDimensions:g,encodeDefine:n.getEncode()}).dimensions;v=new Or(m,n),v.initData(e)}var b=new Or(["value"],n);return b.initData(l,s),a&&a(v,b),Z7({mainData:v,struct:i,structAttr:"graph",datas:{node:v,edge:b},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var SFe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.init=function(n){e.prototype.init.apply(this,arguments);var r=this;function a(){return r._categoriesData}this.legendVisualProvider=new Tg(a,a),this.fillDataTextStyle(n.edges||n.links),this._updateCategoriesData()},t.prototype.mergeOption=function(n){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(n.edges||n.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(n){e.prototype.mergeDefaultAndTheme.apply(this,arguments),uc(n,"edgeLabel",["show"])},t.prototype.getInitialData=function(n,r){var a=n.edges||n.links||[],i=n.data||n.nodes||[],o=this;if(i&&a){rFe(this);var s=gK(i,a,this,!0,l);return F(s.edges,function(u){aFe(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(v){var p=o._categoriesModels,g=v.getShallow("category"),m=p[g];return m&&(m.parentModel=v.parentModel,v.parentModel=m),v});var f=dn.prototype.getModel;function d(v,p){var g=f.call(this,v,p);return g.resolveParentPath=h,g}c.wrapMethod("getItemModel",function(v){return v.resolveParentPath=h,v.getModel=d,v});function h(v){if(v&&(v[0]==="label"||v[1]==="label")){var p=v.slice();return v[0]==="label"?p[0]="edgeLabel":v[1]==="label"&&(p[1]="edgeLabel"),p}return v}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(n,r,a){if(a==="edge"){var i=this.getData(),o=this.getDataParams(n,a),s=i.graph.getEdgeByIndex(n),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),ur("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var f=RW({series:this,dataIndex:n,multipleSeries:r});return f},t.prototype._updateCategoriesData=function(){var n=Oe(this.option.categories||[],function(a){return a.value!=null?a:Ie({value:0},a)}),r=new Or(["value"],this);r.initData(n),this._categoriesData=r,this._categoriesModels=r.mapArray(function(a){return r.getItemModel(a)})},t.prototype.setZoom=function(n){this.option.zoom=n},t.prototype.setCenter=function(n){this.option.center=n},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(_n);const CFe=SFe;var xFe={type:"graphRoam",event:"graphRoam",update:"none"};function TFe(e){e.registerChartView(bFe),e.registerSeriesModel(CFe),e.registerProcessor(Jze),e.registerVisual(Qze),e.registerVisual(eFe),e.registerLayout(iFe),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,sFe),e.registerLayout(uFe),e.registerCoordinateSystem("graphView",{dimensions:kg.dimensions,create:fFe}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Nn),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Nn),e.registerAction(xFe,function(t,n,r){n.eachComponent({mainType:"series",query:t},function(a){var i=a.coordinateSystem,o=KA(i,t,void 0,r);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}var MFe=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),kFe=function(e){ge(t,e);function t(n){var r=e.call(this,n)||this;return r.type="pointer",r}return t.prototype.getDefaultShape=function(){return new MFe},t.prototype.buildPath=function(n,r){var a=Math.cos,i=Math.sin,o=r.r,s=r.width,l=r.angle,u=r.x-a(l)*s*(s>=o/3?1:2),c=r.y-i(l)*s*(s>=o/3?1:2);l=r.angle-Math.PI/2,n.moveTo(u,c),n.lineTo(r.x+a(l)*s,r.y+i(l)*s),n.lineTo(r.x+a(r.angle)*o,r.y+i(r.angle)*o),n.lineTo(r.x-a(l)*s,r.y-i(l)*s),n.lineTo(u,c)},t}(zt);const AFe=kFe;function EFe(e,t){var n=e.get("center"),r=t.getWidth(),a=t.getHeight(),i=Math.min(r,a),o=qe(n[0],t.getWidth()),s=qe(n[1],t.getHeight()),l=qe(e.get("radius"),i/2);return{cx:o,cy:s,r:l}}function Wm(e,t){var n=e==null?"":e+"";return t&&(Je(t)?n=t.replace("{value}",n):ut(t)&&(n=t(e))),n}var IFe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){this.group.removeAll();var i=n.get(["axisLine","lineStyle","color"]),o=EFe(n,a);this._renderMain(n,r,a,i,o),this._data=n.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(n,r,a,i,o){var s=this.group,l=n.get("clockwise"),u=-n.get("startAngle")/180*Math.PI,c=-n.get("endAngle")/180*Math.PI,f=n.getModel("axisLine"),d=f.get("roundCap"),h=d?rb:na,v=f.get("show"),p=f.getModel("lineStyle"),g=p.get("width"),m=[u,c];YH(m,!l),u=m[0],c=m[1];for(var b=c-u,_=u,w=[],C=0;v&&C<i.length;C++){var S=Math.min(Math.max(i[C][0],0),1);c=u+b*S;var x=new h({shape:{startAngle:_,endAngle:c,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-g,r:o.r},silent:!0});x.setStyle({fill:i[C][1]}),x.setStyle(p.getLineStyle(["color","width"])),w.push(x),_=c}w.reverse(),F(w,function(M){return s.add(M)});var T=function(M){if(M<=0)return i[0][1];var A;for(A=0;A<i.length;A++)if(i[A][0]>=M&&(A===0?0:i[A-1][0])<M)return i[A][1];return i[A-1][1]};this._renderTicks(n,r,a,T,o,u,c,l,g),this._renderTitleAndDetail(n,r,a,T,o),this._renderAnchor(n,o),this._renderPointer(n,r,a,T,o,u,c,l,g)},t.prototype._renderTicks=function(n,r,a,i,o,s,l,u,c){for(var f=this.group,d=o.cx,h=o.cy,v=o.r,p=+n.get("min"),g=+n.get("max"),m=n.getModel("splitLine"),b=n.getModel("axisTick"),_=n.getModel("axisLabel"),w=n.get("splitNumber"),C=b.get("splitNumber"),S=qe(m.get("length"),v),x=qe(b.get("length"),v),T=s,M=(l-s)/w,A=M/C,k=m.getModel("lineStyle").getLineStyle(),E=b.getModel("lineStyle").getLineStyle(),D=m.get("distance"),L,B,N=0;N<=w;N++){if(L=Math.cos(T),B=Math.sin(T),m.get("show")){var O=D?D+c:c,$=new ar({shape:{x1:L*(v-O)+d,y1:B*(v-O)+h,x2:L*(v-S-O)+d,y2:B*(v-S-O)+h},style:k,silent:!0});k.stroke==="auto"&&$.setStyle({stroke:i(N/w)}),f.add($)}if(_.get("show")){var O=_.get("distance")+D,I=Wm(Rn(N/w*(g-p)+p),_.get("formatter")),z=i(N/w),G=L*(v-S-O)+d,U=B*(v-S-O)+h,Z=_.get("rotate"),ae=0;Z==="radial"?(ae=-T+2*Math.PI,ae>Math.PI/2&&(ae+=Math.PI)):Z==="tangential"?ae=-T-Math.PI/2:Qt(Z)&&(ae=Z*Math.PI/180),ae===0?f.add(new Xt({style:gn(_,{text:I,x:G,y:U,verticalAlign:B<-.8?"top":B>.8?"bottom":"middle",align:L<-.4?"left":L>.4?"right":"center"},{inheritColor:z}),silent:!0})):f.add(new Xt({style:gn(_,{text:I,x:G,y:U,verticalAlign:"middle",align:"center"},{inheritColor:z}),silent:!0,originX:G,originY:U,rotation:ae}))}if(b.get("show")&&N!==w){var O=b.get("distance");O=O?O+c:c;for(var J=0;J<=C;J++){L=Math.cos(T),B=Math.sin(T);var Q=new ar({shape:{x1:L*(v-O)+d,y1:B*(v-O)+h,x2:L*(v-x-O)+d,y2:B*(v-x-O)+h},silent:!0,style:E});E.stroke==="auto"&&Q.setStyle({stroke:i((N+J/C)/w)}),f.add(Q),T+=A}T-=A}else T+=M}},t.prototype._renderPointer=function(n,r,a,i,o,s,l,u,c){var f=this.group,d=this._data,h=this._progressEls,v=[],p=n.get(["pointer","show"]),g=n.getModel("progress"),m=g.get("show"),b=n.getData(),_=b.mapDimension("value"),w=+n.get("min"),C=+n.get("max"),S=[w,C],x=[s,l];function T(A,k){var E=b.getItemModel(A),D=E.getModel("pointer"),L=qe(D.get("width"),o.r),B=qe(D.get("length"),o.r),N=n.get(["pointer","icon"]),O=D.get("offsetCenter"),$=qe(O[0],o.r),I=qe(O[1],o.r),z=D.get("keepAspect"),G;return N?G=Hn(N,$-L/2,I-B,L,B,null,z):G=new AFe({shape:{angle:-Math.PI/2,width:L,r:B,x:$,y:I}}),G.rotation=-(k+Math.PI/2),G.x=o.cx,G.y=o.cy,G}function M(A,k){var E=g.get("roundCap"),D=E?rb:na,L=g.get("overlap"),B=L?g.get("width"):c/b.count(),N=L?o.r-B:o.r-(A+1)*B,O=L?o.r:o.r-A*B,$=new D({shape:{startAngle:s,endAngle:k,cx:o.cx,cy:o.cy,clockwise:u,r0:N,r:O}});return L&&($.z2=C-b.get(_,A)%C),$}(m||p)&&(b.diff(d).add(function(A){var k=b.get(_,A);if(p){var E=T(A,s);xn(E,{rotation:-((isNaN(+k)?x[0]:sn(k,S,x,!0))+Math.PI/2)},n),f.add(E),b.setItemGraphicEl(A,E)}if(m){var D=M(A,s),L=g.get("clip");xn(D,{shape:{endAngle:sn(k,S,x,L)}},n),f.add(D),n2(n.seriesIndex,b.dataType,A,D),v[A]=D}}).update(function(A,k){var E=b.get(_,A);if(p){var D=d.getItemGraphicEl(k),L=D?D.rotation:s,B=T(A,L);B.rotation=L,nn(B,{rotation:-((isNaN(+E)?x[0]:sn(E,S,x,!0))+Math.PI/2)},n),f.add(B),b.setItemGraphicEl(A,B)}if(m){var N=h[k],O=N?N.shape.endAngle:s,$=M(A,O),I=g.get("clip");nn($,{shape:{endAngle:sn(E,S,x,I)}},n),f.add($),n2(n.seriesIndex,b.dataType,A,$),v[A]=$}}).execute(),b.each(function(A){var k=b.getItemModel(A),E=k.getModel("emphasis"),D=E.get("focus"),L=E.get("blurScope"),B=E.get("disabled");if(p){var N=b.getItemGraphicEl(A),O=b.getItemVisual(A,"style"),$=O.fill;if(N instanceof vr){var I=N.style;N.useStyle(Ie({image:I.image,x:I.x,y:I.y,width:I.width,height:I.height},O))}else N.useStyle(O),N.type!=="pointer"&&N.setColor($);N.setStyle(k.getModel(["pointer","itemStyle"]).getItemStyle()),N.style.fill==="auto"&&N.setStyle("fill",i(sn(b.get(_,A),S,[0,1],!0))),N.z2EmphasisLift=0,xr(N,k),$n(N,D,L,B)}if(m){var z=v[A];z.useStyle(b.getItemVisual(A,"style")),z.setStyle(k.getModel(["progress","itemStyle"]).getItemStyle()),z.z2EmphasisLift=0,xr(z,k),$n(z,D,L,B)}}),this._progressEls=v)},t.prototype._renderAnchor=function(n,r){var a=n.getModel("anchor"),i=a.get("show");if(i){var o=a.get("size"),s=a.get("icon"),l=a.get("offsetCenter"),u=a.get("keepAspect"),c=Hn(s,r.cx-o/2+qe(l[0],r.r),r.cy-o/2+qe(l[1],r.r),o,o,null,u);c.z2=a.get("showAbove")?1:0,c.setStyle(a.getModel("itemStyle").getItemStyle()),this.group.add(c)}},t.prototype._renderTitleAndDetail=function(n,r,a,i,o){var s=this,l=n.getData(),u=l.mapDimension("value"),c=+n.get("min"),f=+n.get("max"),d=new bt,h=[],v=[],p=n.isAnimationEnabled(),g=n.get(["pointer","showAbove"]);l.diff(this._data).add(function(m){h[m]=new Xt({silent:!0}),v[m]=new Xt({silent:!0})}).update(function(m,b){h[m]=s._titleEls[b],v[m]=s._detailEls[b]}).execute(),l.each(function(m){var b=l.getItemModel(m),_=l.get(u,m),w=new bt,C=i(sn(_,[c,f],[0,1],!0)),S=b.getModel("title");if(S.get("show")){var x=S.get("offsetCenter"),T=o.cx+qe(x[0],o.r),M=o.cy+qe(x[1],o.r),A=h[m];A.attr({z2:g?0:2,style:gn(S,{x:T,y:M,text:l.getName(m),align:"center",verticalAlign:"middle"},{inheritColor:C})}),w.add(A)}var k=b.getModel("detail");if(k.get("show")){var E=k.get("offsetCenter"),D=o.cx+qe(E[0],o.r),L=o.cy+qe(E[1],o.r),B=qe(k.get("width"),o.r),N=qe(k.get("height"),o.r),O=n.get(["progress","show"])?l.getItemVisual(m,"style").fill:C,A=v[m],$=k.get("formatter");A.attr({z2:g?0:2,style:gn(k,{x:D,y:L,text:Wm(_,$),width:isNaN(B)?null:B,height:isNaN(N)?null:N,align:"center",verticalAlign:"middle"},{inheritColor:O})}),VG(A,{normal:k},_,function(z){return Wm(z,$)}),p&&zG(A,m,l,n,{getFormattedLabel:function(z,G,U,Z,ae,J){return Wm(J?J.interpolatedValue:_,$)}}),w.add(A)}d.add(w)}),this.group.add(d),this._titleEls=h,this._detailEls=v},t.type="gauge",t}(vn);const DFe=IFe;var PFe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="itemStyle",n}return t.prototype.getInitialData=function(n,r){return Yd(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(_n);const LFe=PFe;function RFe(e){e.registerChartView(DFe),e.registerSeriesModel(LFe)}var OFe=["itemStyle","opacity"],$Fe=function(e){ge(t,e);function t(n,r){var a=e.call(this)||this,i=a,o=new ia,s=new Xt;return i.setTextContent(s),a.setTextGuideLine(o),a.updateData(n,r,!0),a}return t.prototype.updateData=function(n,r,a){var i=this,o=n.hostModel,s=n.getItemModel(r),l=n.getItemLayout(r),u=s.getModel("emphasis"),c=s.get(OFe);c=c??1,a||Gi(i),i.useStyle(n.getItemVisual(r,"style")),i.style.lineJoin="round",a?(i.setShape({points:l.points}),i.style.opacity=0,xn(i,{style:{opacity:c}},o,r)):nn(i,{style:{opacity:c},shape:{points:l.points}},o,r),xr(i,s),this._updateLabel(n,r),$n(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(n,r){var a=this,i=this.getTextGuideLine(),o=a.getTextContent(),s=n.hostModel,l=n.getItemModel(r),u=n.getItemLayout(r),c=u.label,f=n.getItemVisual(r,"style"),d=f.fill;Tr(o,lr(l),{labelFetcher:n.hostModel,labelDataIndex:r,defaultOpacity:f.opacity,defaultText:n.getName(r)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}}),a.setTextConfig({local:!0,inside:!!c.inside,insideStroke:d,outsideFill:d});var h=c.linePoints;i.setShape({points:h}),a.textGuideLineConfig={anchor:h?new Pt(h[0][0],h[0][1]):null},nn(o,{style:{x:c.x,y:c.y}},s,r),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),LA(a,RA(l),{stroke:d})},t}(ra),NFe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreLabelLineUpdate=!0,n}return t.prototype.render=function(n,r,a){var i=n.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new $Fe(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=o.getItemGraphicEl(u);c.updateData(i,l),s.add(c),i.setItemGraphicEl(l,c)}).remove(function(l){var u=o.getItemGraphicEl(l);Sp(u,n,l)}).execute(),this._data=i},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(vn);const BFe=NFe;var VFe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Tg(et(this.getData,this),et(this.getRawData,this)),this._defaultLabelLine(n)},t.prototype.getInitialData=function(n,r){return Yd(this,{coordDimensions:["value"],encodeDefaulter:xt(aA,this)})},t.prototype._defaultLabelLine=function(n){uc(n,"labelLine",["show"]);var r=n.labelLine,a=n.emphasis.labelLine;r.show=r.show&&n.label.show,a.show=a.show&&n.emphasis.label.show},t.prototype.getDataParams=function(n){var r=this.getData(),a=e.prototype.getDataParams.call(this,n),i=r.mapDimension("value"),o=r.getSum(i);return a.percent=o?+(r.get(i,n)/o*100).toFixed(2):0,a.$vars.push("percent"),a},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(_n);const zFe=VFe;function FFe(e,t){return Xn(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function HFe(e,t){for(var n=e.mapDimension("value"),r=e.mapArray(n,function(l){return l}),a=[],i=t==="ascending",o=0,s=e.count();o<s;o++)a[o]=o;return ut(t)?a.sort(t):t!=="none"&&a.sort(function(l,u){return i?r[l]-r[u]:r[u]-r[l]}),a}function GFe(e){var t=e.hostModel,n=t.get("orient");e.each(function(r){var a=e.getItemModel(r),i=a.getModel("label"),o=i.get("position"),s=a.getModel("labelLine"),l=e.getItemLayout(r),u=l.points,c=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",f,d,h,v;if(c)o==="insideLeft"?(d=(u[0][0]+u[3][0])/2+5,h=(u[0][1]+u[3][1])/2,f="left"):o==="insideRight"?(d=(u[1][0]+u[2][0])/2-5,h=(u[1][1]+u[2][1])/2,f="right"):(d=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,h=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,f="center"),v=[[d,h],[d,h]];else{var p=void 0,g=void 0,m=void 0,b=void 0,_=s.get("length");o==="left"?(p=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,m=p-_,d=m-5,f="right"):o==="right"?(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,m=p+_,d=m+5,f="left"):o==="top"?(p=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,b=g-_,h=b-5,f="center"):o==="bottom"?(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,b=g+_,h=b+5,f="center"):o==="rightTop"?(p=n==="horizontal"?u[3][0]:u[1][0],g=n==="horizontal"?u[3][1]:u[1][1],n==="horizontal"?(b=g-_,h=b-5,f="center"):(m=p+_,d=m+5,f="top")):o==="rightBottom"?(p=u[2][0],g=u[2][1],n==="horizontal"?(b=g+_,h=b+5,f="center"):(m=p+_,d=m+5,f="bottom")):o==="leftTop"?(p=u[0][0],g=n==="horizontal"?u[0][1]:u[1][1],n==="horizontal"?(b=g-_,h=b-5,f="center"):(m=p-_,d=m-5,f="right")):o==="leftBottom"?(p=n==="horizontal"?u[1][0]:u[3][0],g=n==="horizontal"?u[1][1]:u[2][1],n==="horizontal"?(b=g+_,h=b+5,f="center"):(m=p-_,d=m-5,f="right")):(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,n==="horizontal"?(b=g+_,h=b+5,f="center"):(m=p+_,d=m+5,f="left")),n==="horizontal"?(m=p,d=m):(b=g,h=b),v=[[p,g],[m,b]]}l.label={linePoints:v,x:d,y:h,verticalAlign:"middle",textAlign:f,inside:c}})}function WFe(e,t){e.eachSeriesByType("funnel",function(n){var r=n.getData(),a=r.mapDimension("value"),i=n.get("sort"),o=FFe(n,t),s=n.get("orient"),l=o.width,u=o.height,c=HFe(r,i),f=o.x,d=o.y,h=s==="horizontal"?[qe(n.get("minSize"),u),qe(n.get("maxSize"),u)]:[qe(n.get("minSize"),l),qe(n.get("maxSize"),l)],v=r.getDataExtent(a),p=n.get("min"),g=n.get("max");p==null&&(p=Math.min(v[0],0)),g==null&&(g=v[1]);var m=n.get("funnelAlign"),b=n.get("gap"),_=s==="horizontal"?l:u,w=(_-b*(r.count()-1))/r.count(),C=function(L,B){if(s==="horizontal"){var N=r.get(a,L)||0,O=sn(N,[p,g],h,!0),$=void 0;switch(m){case"top":$=d;break;case"center":$=d+(u-O)/2;break;case"bottom":$=d+(u-O);break}return[[B,$],[B,$+O]]}var I=r.get(a,L)||0,z=sn(I,[p,g],h,!0),G;switch(m){case"left":G=f;break;case"center":G=f+(l-z)/2;break;case"right":G=f+l-z;break}return[[G,B],[G+z,B]]};i==="ascending"&&(w=-w,b=-b,s==="horizontal"?f+=l:d+=u,c=c.reverse());for(var S=0;S<c.length;S++){var x=c[S],T=c[S+1],M=r.getItemModel(x);if(s==="horizontal"){var A=M.get(["itemStyle","width"]);A==null?A=w:(A=qe(A,l),i==="ascending"&&(A=-A));var k=C(x,f),E=C(T,f+A);f+=A+b,r.setItemLayout(x,{points:k.concat(E.slice().reverse())})}else{var D=M.get(["itemStyle","height"]);D==null?D=w:(D=qe(D,u),i==="ascending"&&(D=-D));var k=C(x,d),E=C(T,d+D);d+=D+b,r.setItemLayout(x,{points:k.concat(E.slice().reverse())})}}GFe(r)})}function KFe(e){e.registerChartView(BFe),e.registerSeriesModel(zFe),e.registerLayout(WFe),e.registerProcessor(xg("funnel"))}var UFe=.3,YFe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._dataGroup=new bt,n._initialized=!1,n}return t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(n,r,a,i){this._progressiveEls=null;var o=this._dataGroup,s=n.getData(),l=this._data,u=n.coordinateSystem,c=u.dimensions,f=XN(n);s.diff(l).add(d).update(h).remove(v).execute();function d(g){var m=qN(s,o,g,c,u);SS(m,s,g,f)}function h(g,m){var b=l.getItemGraphicEl(m),_=mK(s,g,c,u);s.setItemGraphicEl(g,b),nn(b,{shape:{points:_}},n,g),Gi(b),SS(b,s,g,f)}function v(g){var m=l.getItemGraphicEl(g);o.remove(m)}if(!this._initialized){this._initialized=!0;var p=jFe(u,n,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(p)}this._data=s},t.prototype.incrementalPrepareRender=function(n,r,a){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(n,r,a){for(var i=r.getData(),o=r.coordinateSystem,s=o.dimensions,l=XN(r),u=this._progressiveEls=[],c=n.start;c<n.end;c++){var f=qN(i,this._dataGroup,c,s,o);f.incremental=!0,SS(f,i,c,l),u.push(f)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t}(vn);function jFe(e,t,n){var r=e.model,a=e.getRect(),i=new Zt({shape:{x:a.x,y:a.y,width:a.width,height:a.height}}),o=r.get("layout")==="horizontal"?"width":"height";return i.setShape(o,0),xn(i,{shape:{width:a.width,height:a.height}},t,n),i}function mK(e,t,n,r){for(var a=[],i=0;i<n.length;i++){var o=n[i],s=e.get(e.mapDimension(o),t);qFe(s,r.getAxis(o).type)||a.push(r.dataToPoint(s,o))}return a}function qN(e,t,n,r,a){var i=mK(e,n,r,a),o=new ia({shape:{points:i},z2:10});return t.add(o),e.setItemGraphicEl(n,o),o}function XN(e){var t=e.get("smooth",!0);return t===!0&&(t=UFe),t=xo(t),cd(t)&&(t=0),{smooth:t}}function SS(e,t,n,r){e.useStyle(t.getItemVisual(n,"style")),e.style.fill=null,e.setShape("smooth",r.smooth);var a=t.getItemModel(n),i=a.getModel("emphasis");xr(e,a,"lineStyle"),$n(e,i.get("focus"),i.get("blurScope"),i.get("disabled"))}function qFe(e,t){return t==="category"?e==null:e==null||isNaN(e)}const XFe=YFe;var ZFe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return t.prototype.getInitialData=function(n,r){return Io(null,this,{useEncodeDefaulter:et(JFe,null,this)})},t.prototype.getRawIndicesByActiveState=function(n){var r=this.coordinateSystem,a=this.getData(),i=[];return r.eachActiveState(a,function(o,s){n===o&&i.push(a.getRawIndex(s))}),i},t.type="series.parallel",t.dependencies=["parallel"],t.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},t}(_n);function JFe(e){var t=e.ecModel.getComponent("parallel",e.get("parallelIndex"));if(t){var n={};return F(t.dimensions,function(r){var a=QFe(r);n[r]=a}),n}}function QFe(e){return+e.replace("dim","")}const e8e=ZFe;var t8e=["lineStyle","opacity"],n8e={seriesType:"parallel",reset:function(e,t){var n=e.coordinateSystem,r={normal:e.get(["lineStyle","opacity"]),active:e.get("activeOpacity"),inactive:e.get("inactiveOpacity")};return{progress:function(a,i){n.eachActiveState(i,function(o,s){var l=r[o];if(o==="normal"&&i.hasItemOption){var u=i.getItemModel(s).get(t8e,!0);u!=null&&(l=u)}var c=i.ensureUniqueItemVisual(s,"style");c.opacity=l},a.start,a.end)}}}};const r8e=n8e;function a8e(e){i8e(e),o8e(e)}function i8e(e){if(!e.parallel){var t=!1;F(e.series,function(n){n&&n.type==="parallel"&&(t=!0)}),t&&(e.parallel=[{}])}}function o8e(e){var t=hn(e.parallelAxis);F(t,function(n){if(ht(n)){var r=n.parallelIndex||0,a=hn(e.parallel)[r];a&&a.parallelAxisDefault&&Dt(n,a.parallelAxisDefault,!1)}})}var s8e=5,l8e=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){this._model=n,this._api=a,this._handlers||(this._handlers={},F(u8e,function(i,o){a.getZr().on(o,this._handlers[o]=et(i,this))},this)),Gd(this,"_throttledDispatchExpand",n.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(n,r){kp(this,"_throttledDispatchExpand"),F(this._handlers,function(a,i){r.getZr().off(i,a)}),this._handlers=null},t.prototype._throttledDispatchExpand=function(n){this._dispatchExpand(n)},t.prototype._dispatchExpand=function(n){n&&this._api.dispatchAction(Ie({type:"parallelAxisExpand"},n))},t.type="parallel",t}(An),u8e={mousedown:function(e){CS(this,"click")&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(CS(this,"click")&&t){var n=[e.offsetX,e.offsetY],r=Math.pow(t[0]-n[0],2)+Math.pow(t[1]-n[1],2);if(r>s8e)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);a.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!(this._mouseDownPoint||!CS(this,"mousemove"))){var t=this._model,n=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),r=n.behavior;r==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(r==="none"?null:{axisExpandWindow:n.axisExpandWindow,animation:r==="jump"?null:{duration:0}})}}};function CS(e,t){var n=e._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===t}const c8e=l8e;var f8e=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(n){var r=this.option;n&&Dt(r,n,!0),this._initDimensions()},t.prototype.contains=function(n,r){var a=n.get("parallelIndex");return a!=null&&r.getComponent("parallel",a)===this},t.prototype.setAxisExpand=function(n){F(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(r){n.hasOwnProperty(r)&&(this.option[r]=n[r])},this)},t.prototype._initDimensions=function(){var n=this.dimensions=[],r=this.parallelAxisIndex=[],a=ln(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);F(a,function(i){n.push("dim"+i.get("dim")),r.push(i.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(Yt);const d8e=f8e;var h8e=function(e){ge(t,e);function t(n,r,a,i,o){var s=e.call(this,n,r,a)||this;return s.type=i||"value",s.axisIndex=o,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(pi);const v8e=h8e;function Ic(e,t,n,r,a,i){e=e||0;var o=n[1]-n[0];if(a!=null&&(a=Qc(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),r==="all"){var s=Math.abs(t[1]-t[0]);s=Qc(s,[0,o]),a=i=Qc(s,[a,i]),r=0}t[0]=Qc(t[0],n),t[1]=Qc(t[1],n);var l=xS(t,r);t[r]+=e;var u=a||0,c=n.slice();l.sign<0?c[0]+=u:c[1]-=u,t[r]=Qc(t[r],c);var f;return f=xS(t,r),a!=null&&(f.sign!==l.sign||f.span<a)&&(t[1-r]=t[r]+l.sign*a),f=xS(t,r),i!=null&&f.span>i&&(t[1-r]=t[r]+f.sign*i),t}function xS(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function Qc(e,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,e))}var TS=F,yK=Math.min,bK=Math.max,ZN=Math.floor,p8e=Math.ceil,JN=Rn,g8e=Math.PI,m8e=function(){function e(t,n,r){this.type="parallel",this._axesMap=ot(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,n,r)}return e.prototype._init=function(t,n,r){var a=t.dimensions,i=t.parallelAxisIndex;TS(a,function(o,s){var l=i[s],u=n.getComponent("parallelAxis",l),c=this._axesMap.set(o,new v8e(o,bg(u),[0,0],u.get("type"),l)),f=c.type==="category";c.onBand=f&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},e.prototype.update=function(t,n){this._updateAxesFromSeries(this._model,t)},e.prototype.containPoint=function(t){var n=this._makeLayoutInfo(),r=n.axisBase,a=n.layoutBase,i=n.pixelDimIndex,o=t[1-i],s=t[i];return o>=r&&o<=r+n.axisLength&&s>=a&&s<=a+n.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(t,n){n.eachSeries(function(r){if(t.contains(r,n)){var a=r.getData();TS(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(a,a.mapDimension(i)),vc(o.scale,o.model)},this)}},this)},e.prototype.resize=function(t,n){this._rect=Xn(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var t=this._model,n=this._rect,r=["x","y"],a=["width","height"],i=t.get("layout"),o=i==="horizontal"?0:1,s=n[a[o]],l=[0,s],u=this.dimensions.length,c=Km(t.get("axisExpandWidth"),l),f=Km(t.get("axisExpandCount")||0,[0,u]),d=t.get("axisExpandable")&&u>3&&u>f&&f>1&&c>0&&s>0,h=t.get("axisExpandWindow"),v;if(h)v=Km(h[1]-h[0],l),h[1]=h[0]+v;else{v=Km(c*(f-1),l);var p=t.get("axisExpandCenter")||ZN(u/2);h=[c*p-v/2],h[1]=h[0]+v}var g=(s-v)/(u-f);g<3&&(g=0);var m=[ZN(JN(h[0]/c,1))+1,p8e(JN(h[1]/c,1))-1],b=g/c*h[0];return{layout:i,pixelDimIndex:o,layoutBase:n[r[o]],layoutLength:s,axisBase:n[r[1-o]],axisLength:n[a[1-o]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:g,axisExpandWindow:h,axisCount:u,winInnerIndices:m,axisExpandWindow0Pos:b}},e.prototype._layoutAxes=function(){var t=this._rect,n=this._axesMap,r=this.dimensions,a=this._makeLayoutInfo(),i=a.layout;n.each(function(o){var s=[0,a.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),TS(r,function(o,s){var l=(a.axisExpandable?b8e:y8e)(s,a),u={horizontal:{x:l.position,y:a.axisLength},vertical:{x:0,y:l.position}},c={horizontal:g8e/2,vertical:0},f=[u[i].x+t.x,u[i].y+t.y],d=c[i],h=La();Pl(h,h,d),zi(h,h,f),this._axesLayout[o]={position:f,rotation:d,transform:h,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},e.prototype.getAxis=function(t){return this._axesMap.get(t)},e.prototype.dataToPoint=function(t,n){return this.axisCoordToPoint(this._axesMap.get(n).dataToCoord(t),n)},e.prototype.eachActiveState=function(t,n,r,a){r==null&&(r=0),a==null&&(a=t.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];F(o,function(g){s.push(t.mapDimension(g)),l.push(i.get(g).model)});for(var u=this.hasAxisBrushed(),c=r;c<a;c++){var f=void 0;if(!u)f="normal";else{f="active";for(var d=t.getValues(s,c),h=0,v=o.length;h<v;h++){var p=l[h].getActiveState(d[h]);if(p==="inactive"){f="inactive";break}}}n(f,c)}},e.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,n=this._axesMap,r=!1,a=0,i=t.length;a<i;a++)n.get(t[a]).model.getActiveState()!=="normal"&&(r=!0);return r},e.prototype.axisCoordToPoint=function(t,n){var r=this._axesLayout[n];return Ni([t,0],r.transform)},e.prototype.getAxisLayout=function(t){return pt(this._axesLayout[t])},e.prototype.getSlidedAxisExpandWindow=function(t){var n=this._makeLayoutInfo(),r=n.pixelDimIndex,a=n.axisExpandWindow.slice(),i=a[1]-a[0],o=[0,n.axisExpandWidth*(n.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:a};var s=t[r]-n.layoutBase-n.axisExpandWindow0Pos,l,u="slide",c=n.axisCollapseWidth,f=this._model.get("axisExpandSlideTriggerArea"),d=f[0]!=null;if(c)d&&c&&s<i*f[0]?(u="jump",l=s-i*f[2]):d&&c&&s>i*(1-f[0])?(u="jump",l=s-i*(1-f[2])):(l=s-i*f[1])>=0&&(l=s-i*(1-f[1]))<=0&&(l=0),l*=n.axisExpandWidth/c,l?Ic(l,a,o,"all"):u="none";else{var h=a[1]-a[0],v=o[1]*s/h;a=[bK(0,v-h/2)],a[1]=yK(o[1],a[0]+h),a[0]=a[1]-h}return{axisExpandWindow:a,behavior:u}},e}();function Km(e,t){return yK(bK(e,t[0]),t[1])}function y8e(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}}function b8e(e,t){var n=t.layoutLength,r=t.axisExpandWidth,a=t.axisCount,i=t.axisCollapseWidth,o=t.winInnerIndices,s,l=i,u=!1,c;return e<o[0]?(s=e*i,c=i):e<=o[1]?(s=t.axisExpandWindow0Pos+e*r-t.axisExpandWindow[0],l=r,u=!0):(s=n-(a-1-e)*i,c=i),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:c}}const _8e=m8e;function w8e(e,t){var n=[];return e.eachComponent("parallel",function(r,a){var i=new _8e(r,e,t);i.name="parallel_"+a,i.resize(r,t),r.coordinateSystem=i,i.model=r,n.push(i)}),e.eachSeries(function(r){if(r.get("coordinateSystem")==="parallel"){var a=r.getReferringComponents("parallel",Wn).models[0];r.coordinateSystem=a.coordinateSystem}}),n}var S8e={create:w8e};const C8e=S8e;var _K=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.activeIntervals=[],n}return t.prototype.getAreaSelectStyle=function(){return fc([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(n){var r=this.activeIntervals=pt(n);if(r)for(var a=r.length-1;a>=0;a--)Ea(r[a])},t.prototype.getActiveState=function(n){var r=this.activeIntervals;if(!r.length)return"normal";if(n==null||isNaN(+n))return"inactive";if(r.length===1){var a=r[0];if(a[0]<=n&&n<=a[1])return"active"}else for(var i=0,o=r.length;i<o;i++)if(r[i][0]<=n&&n<=r[i][1])return"active";return"inactive"},t}(Yt);Vn(_K,Ud);const QN=_K;var pc=!0,Bp=Math.min,gd=Math.max,x8e=Math.pow,T8e=1e4,M8e=6,k8e=6,e3="globalPan",A8e={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},E8e={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},t3={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},I8e=0,D8e=function(e){ge(t,e);function t(n){var r=e.call(this)||this;return r._track=[],r._covers=[],r._handlers={},r._zr=n,r.group=new bt,r._uid="brushController_"+I8e++,F(B8e,function(a,i){this._handlers[i]=et(a,this)},r),r}return t.prototype.enableBrush=function(n){return this._brushType&&this._doDisableBrush(),n.brushType&&this._doEnableBrush(n),this},t.prototype._doEnableBrush=function(n){var r=this._zr;this._enableGlobalPan||FVe(r,e3,this._uid),F(this._handlers,function(a,i){r.on(i,a)}),this._brushType=n.brushType,this._brushOption=Dt(pt(t3),n,!0)},t.prototype._doDisableBrush=function(){var n=this._zr;HVe(n,e3,this._uid),F(this._handlers,function(r,a){n.off(a,r)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(n){if(n&&n.length){var r=this._panels={};F(n,function(a){r[a.panelId]=pt(a)})}else this._panels=null;return this},t.prototype.mount=function(n){n=n||{},this._enableGlobalPan=n.enableGlobalPan;var r=this.group;return this._zr.add(r),r.attr({x:n.x||0,y:n.y||0,rotation:n.rotation||0,scaleX:n.scaleX||1,scaleY:n.scaleY||1}),this._transform=r.getLocalTransform(),this},t.prototype.updateCovers=function(n){n=Oe(n,function(d){return Dt(pt(t3),d,!0)});var r="\0-brush-index-",a=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new is(a,n,u,l).add(c).update(c).remove(f).execute(),this;function l(d,h){return(d.id!=null?d.id:r+h)+"-"+d.brushType}function u(d,h){return l(d.__brushOption,h)}function c(d,h){var v=n[d];if(h!=null&&a[h]===s)i[d]=a[h];else{var p=i[d]=h!=null?(a[h].__brushOption=v,a[h]):SK(o,wK(o,v));nE(o,p)}}function f(d){a[d]!==s&&o.group.remove(a[d])}},t.prototype.unmount=function(){return this.enableBrush(!1),U2(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(fi);function wK(e,t){var n=J1[t.brushType].createCover(e,t);return n.__brushOption=t,xK(n,t),e.group.add(n),n}function SK(e,t){var n=rE(t);return n.endCreating&&(n.endCreating(e,t),xK(t,t.__brushOption)),t}function CK(e,t){var n=t.__brushOption;rE(t).updateCoverShape(e,t,n.range,n)}function xK(e,t){var n=t.z;n==null&&(n=T8e),e.traverse(function(r){r.z=n,r.z2=n})}function nE(e,t){rE(t).updateCommon(e,t),CK(e,t)}function rE(e){return J1[e.__brushOption.brushType]}function aE(e,t,n){var r=e._panels;if(!r)return pc;var a,i=e._transform;return F(r,function(o){o.isTargetByCursor(t,n,i)&&(a=o)}),a}function TK(e,t){var n=e._panels;if(!n)return pc;var r=t.__brushOption.panelId;return r!=null?n[r]:pc}function U2(e){var t=e._covers,n=t.length;return F(t,function(r){e.group.remove(r)},e),t.length=0,!!n}function gc(e,t){var n=Oe(e._covers,function(r){var a=r.__brushOption,i=pt(a.range);return{brushType:a.brushType,panelId:a.panelId,range:i}});e.trigger("brush",{areas:n,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function P8e(e){var t=e._track;if(!t.length)return!1;var n=t[t.length-1],r=t[0],a=n[0]-r[0],i=n[1]-r[1],o=x8e(a*a+i*i,.5);return o>M8e}function MK(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function kK(e,t,n,r){var a=new bt;return a.add(new Zt({name:"main",style:iE(n),silent:!0,draggable:!0,cursor:"move",drift:xt(n3,e,t,a,["n","s","w","e"]),ondragend:xt(gc,t,{isEnd:!0})})),F(r,function(i){a.add(new Zt({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:xt(n3,e,t,a,i),ondragend:xt(gc,t,{isEnd:!0})}))}),a}function AK(e,t,n,r){var a=r.brushStyle.lineWidth||0,i=gd(a,k8e),o=n[0][0],s=n[1][0],l=o-a/2,u=s-a/2,c=n[0][1],f=n[1][1],d=c-i+a/2,h=f-i+a/2,v=c-o,p=f-s,g=v+a,m=p+a;Ro(e,t,"main",o,s,v,p),r.transformable&&(Ro(e,t,"w",l,u,i,m),Ro(e,t,"e",d,u,i,m),Ro(e,t,"n",l,u,g,i),Ro(e,t,"s",l,h,g,i),Ro(e,t,"nw",l,u,i,i),Ro(e,t,"ne",d,u,i,i),Ro(e,t,"sw",l,h,i,i),Ro(e,t,"se",d,h,i,i))}function Y2(e,t){var n=t.__brushOption,r=n.transformable,a=t.childAt(0);a.useStyle(iE(n)),a.attr({silent:!r,cursor:r?"move":"default"}),F([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=t.childOfName(i.join("")),s=i.length===1?j2(e,i[0]):R8e(e,i);o&&o.attr({silent:!r,invisible:!r,cursor:r?E8e[s]+"-resize":null})})}function Ro(e,t,n,r,a,i,o){var s=t.childOfName(n);s&&s.setShape($8e(oE(e,t,[[r,a],[r+i,a+o]])))}function iE(e){return ft({strokeNoScale:!0},e.brushStyle)}function EK(e,t,n,r){var a=[Bp(e,n),Bp(t,r)],i=[gd(e,n),gd(t,r)];return[[a[0],i[0]],[a[1],i[1]]]}function L8e(e){return al(e.group)}function j2(e,t){var n={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},a=I1(n[t],L8e(e));return r[a]}function R8e(e,t){var n=[j2(e,t[0]),j2(e,t[1])];return(n[0]==="e"||n[0]==="w")&&n.reverse(),n.join("")}function n3(e,t,n,r,a,i){var o=n.__brushOption,s=e.toRectRange(o.range),l=IK(t,a,i);F(r,function(u){var c=A8e[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=e.fromRectRange(EK(s[0][0],s[1][0],s[0][1],s[1][1])),nE(t,n),gc(t,{isEnd:!1})}function O8e(e,t,n,r){var a=t.__brushOption.range,i=IK(e,n,r);F(a,function(o){o[0]+=i[0],o[1]+=i[1]}),nE(e,t),gc(e,{isEnd:!1})}function IK(e,t,n){var r=e.group,a=r.transformCoordToLocal(t,n),i=r.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function oE(e,t,n){var r=TK(e,t);return r&&r!==pc?r.clipPath(n,e._transform):pt(n)}function $8e(e){var t=Bp(e[0][0],e[1][0]),n=Bp(e[0][1],e[1][1]),r=gd(e[0][0],e[1][0]),a=gd(e[0][1],e[1][1]);return{x:t,y:n,width:r-t,height:a-n}}function N8e(e,t,n){if(!(!e._brushType||V8e(e,t.offsetX,t.offsetY))){var r=e._zr,a=e._covers,i=aE(e,t,n);if(!e._dragging)for(var o=0;o<a.length;o++){var s=a[o].__brushOption;if(i&&(i===pc||s.panelId===i.panelId)&&J1[s.brushType].contain(a[o],n[0],n[1]))return}i&&r.setCursorStyle("crosshair")}}function q2(e){var t=e.event;t.preventDefault&&t.preventDefault()}function X2(e,t,n){return e.childOfName("main").contain(t,n)}function DK(e,t,n,r){var a=e._creatingCover,i=e._creatingPanel,o=e._brushOption,s;if(e._track.push(n.slice()),P8e(e)||a){if(i&&!a){o.brushMode==="single"&&U2(e);var l=pt(o);l.brushType=r3(l.brushType,i),l.panelId=i===pc?null:i.panelId,a=e._creatingCover=wK(e,l),e._covers.push(a)}if(a){var u=J1[r3(e._brushType,i)],c=a.__brushOption;c.range=u.getCreatingRange(oE(e,a,e._track)),r&&(SK(e,a),u.updateCommon(e,a)),CK(e,a),s={isEnd:r}}}else r&&o.brushMode==="single"&&o.removeOnClick&&aE(e,t,n)&&U2(e)&&(s={isEnd:r,removeOnClick:!0});return s}function r3(e,t){return e==="auto"?t.defaultBrushType:e}var B8e={mousedown:function(e){if(this._dragging)a3(this,e);else if(!e.target||!e.target.draggable){q2(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null;var n=this._creatingPanel=aE(this,e,t);n&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,n=e.offsetY,r=this.group.transformCoordToLocal(t,n);if(N8e(this,e,r),this._dragging){q2(e);var a=DK(this,e,r,!1);a&&gc(this,a)}},mouseup:function(e){a3(this,e)}};function a3(e,t){if(e._dragging){q2(t);var n=t.offsetX,r=t.offsetY,a=e.group.transformCoordToLocal(n,r),i=DK(e,t,a,!0);e._dragging=!1,e._track=[],e._creatingCover=null,i&&gc(e,i)}}function V8e(e,t,n){var r=e._zr;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var J1={lineX:i3(0),lineY:i3(1),rect:{createCover:function(e,t){function n(r){return r}return kK({toRectRange:n,fromRectRange:n},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=MK(e);return EK(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,r){AK(e,t,n,r)},updateCommon:Y2,contain:X2},polygon:{createCover:function(e,t){var n=new bt;return n.add(new ia({name:"main",style:iE(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new ra({name:"main",draggable:!0,drift:xt(O8e,e,t),ondragend:xt(gc,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,r){t.childAt(0).setShape({points:oE(e,t,n)})},updateCommon:Y2,contain:X2}};function i3(e){return{createCover:function(t,n){return kK({toRectRange:function(r){var a=[r,[0,100]];return e&&a.reverse(),a},fromRectRange:function(r){return r[e]}},t,n,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var n=MK(t),r=Bp(n[0][e],n[1][e]),a=gd(n[0][e],n[1][e]);return[r,a]},updateCoverShape:function(t,n,r,a){var i,o=TK(t,n);if(o!==pc&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(e);else{var s=t._zr;i=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[r,i];e&&l.reverse(),AK(t,n,l,a)},updateCommon:Y2,contain:X2}}const sE=D8e;function PK(e){return e=lE(e),function(t){return Yk(t,e)}}function LK(e,t){return e=lE(e),function(n){var r=t??n,a=r?e.width:e.height,i=r?e.x:e.y;return[i,i+(a||0)]}}function RK(e,t,n){var r=lE(e);return function(a,i){return r.contain(i[0],i[1])&&!j1(a,t,n)}}function lE(e){return Rt.create(e)}var z8e=["axisLine","axisTickLabel","axisName"],F8e=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r){e.prototype.init.apply(this,arguments),(this._brushController=new sE(r.getZr())).on("brush",et(this._onBrush,this))},t.prototype.render=function(n,r,a,i){if(!H8e(n,r,i)){this.axisModel=n,this.api=a,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new bt,this.group.add(this._axisGroup),!!n.get("show")){var s=W8e(n,r),l=s.coordinateSystem,u=n.getAreaSelectStyle(),c=u.width,f=n.axis.dim,d=l.getAxisLayout(f),h=Ie({strokeContainThreshold:c},d),v=new ss(n,h);F(z8e,v.add,v),this._axisGroup.add(v.getGroup()),this._refreshBrushController(h,u,n,s,c,a),pg(o,this._axisGroup,n)}}},t.prototype._refreshBrushController=function(n,r,a,i,o,s){var l=a.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),f=Rt.create({x:l[0],y:-o/2,width:u,height:o});f.x-=c,f.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:n.rotation,x:n.position[0],y:n.position[1]}).setPanels([{panelId:"pl",clipPath:PK(f),isTargetByCursor:RK(f,s,i),getLinearBrushOtherExtent:LK(f,0)}]).enableBrush({brushType:"lineX",brushStyle:r,removeOnClick:!0}).updateCovers(G8e(a))},t.prototype._onBrush=function(n){var r=n.areas,a=this.axisModel,i=a.axis,o=Oe(r,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!a.option.realtime===n.isEnd||n.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:a.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(An);function H8e(e,t,n){return n&&n.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:n})[0]===e}function G8e(e){var t=e.axis;return Oe(e.activeIntervals,function(n){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(n[0],!0),t.dataToCoord(n[1],!0)]}})}function W8e(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}const K8e=F8e;var U8e={type:"axisAreaSelect",event:"axisAreaSelected"};function Y8e(e){e.registerAction(U8e,function(t,n){n.eachComponent({mainType:"parallelAxis",query:t},function(r){r.axis.model.setActiveIntervals(t.intervals)})}),e.registerAction("parallelAxisExpand",function(t,n){n.eachComponent({mainType:"parallel",query:t},function(r){r.setAxisExpand(t)})})}var j8e={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function OK(e){e.registerComponentView(c8e),e.registerComponentModel(d8e),e.registerCoordinateSystem("parallel",C8e),e.registerPreprocessor(a8e),e.registerComponentModel(QN),e.registerComponentView(K8e),pd(e,"parallel",QN,j8e),Y8e(e)}function q8e(e){Bt(OK),e.registerChartView(XFe),e.registerSeriesModel(e8e),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,r8e)}var X8e=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return e}(),Z8e=function(e){ge(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new X8e},t.prototype.buildPath=function(n,r){var a=r.extent;n.moveTo(r.x1,r.y1),n.bezierCurveTo(r.cpx1,r.cpy1,r.cpx2,r.cpy2,r.x2,r.y2),r.orient==="vertical"?(n.lineTo(r.x2+a,r.y2),n.bezierCurveTo(r.cpx2+a,r.cpy2,r.cpx1+a,r.cpy1,r.x1+a,r.y1)):(n.lineTo(r.x2,r.y2+a),n.bezierCurveTo(r.cpx2,r.cpy2+a,r.cpx1,r.cpy1+a,r.x1,r.y1+a)),n.closePath()},t.prototype.highlight=function(){rs(this)},t.prototype.downplay=function(){as(this)},t}(zt),J8e=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._focusAdjacencyDisabled=!1,n}return t.prototype.render=function(n,r,a){var i=this,o=n.getGraph(),s=this.group,l=n.layoutInfo,u=l.width,c=l.height,f=n.getData(),d=n.getData("edge"),h=n.get("orient");this._model=n,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(v){var p=new Z8e,g=Tt(p);g.dataIndex=v.dataIndex,g.seriesIndex=n.seriesIndex,g.dataType="edge";var m=v.getModel(),b=m.getModel("lineStyle"),_=b.get("curveness"),w=v.node1.getLayout(),C=v.node1.getModel(),S=C.get("localX"),x=C.get("localY"),T=v.node2.getLayout(),M=v.node2.getModel(),A=M.get("localX"),k=M.get("localY"),E=v.getLayout(),D,L,B,N,O,$,I,z;p.shape.extent=Math.max(1,E.dy),p.shape.orient=h,h==="vertical"?(D=(S!=null?S*u:w.x)+E.sy,L=(x!=null?x*c:w.y)+w.dy,B=(A!=null?A*u:T.x)+E.ty,N=k!=null?k*c:T.y,O=D,$=L*(1-_)+N*_,I=B,z=L*_+N*(1-_)):(D=(S!=null?S*u:w.x)+w.dx,L=(x!=null?x*c:w.y)+E.sy,B=A!=null?A*u:T.x,N=(k!=null?k*c:T.y)+E.ty,O=D*(1-_)+B*_,$=L,I=D*_+B*(1-_),z=N),p.setShape({x1:D,y1:L,x2:B,y2:N,cpx1:O,cpy1:$,cpx2:I,cpy2:z}),p.useStyle(b.getItemStyle()),o3(p.style,h,v);var G=""+m.get("value"),U=lr(m,"edgeLabel");Tr(p,U,{labelFetcher:{getFormattedLabel:function(J,Q,ee,j,de,ve){return n.getFormattedLabel(J,Q,"edge",j,Ri(de,U.normal&&U.normal.get("formatter"),G),ve)}},labelDataIndex:v.dataIndex,defaultText:G}),p.setTextConfig({position:"inside"});var Z=m.getModel("emphasis");xr(p,m,"lineStyle",function(J){var Q=J.getItemStyle();return o3(Q,h,v),Q}),s.add(p),d.setItemGraphicEl(v.dataIndex,p);var ae=Z.get("focus");$n(p,ae==="adjacency"?v.getAdjacentDataIndices():ae==="trajectory"?v.getTrajectoryDataIndices():ae,Z.get("blurScope"),Z.get("disabled"))}),o.eachNode(function(v){var p=v.getLayout(),g=v.getModel(),m=g.get("localX"),b=g.get("localY"),_=g.getModel("emphasis"),w=new Zt({shape:{x:m!=null?m*u:p.x,y:b!=null?b*c:p.y,width:p.dx,height:p.dy},style:g.getModel("itemStyle").getItemStyle(),z2:10});Tr(w,lr(g),{labelFetcher:{getFormattedLabel:function(S,x){return n.getFormattedLabel(S,x,"node")}},labelDataIndex:v.dataIndex,defaultText:v.id}),w.disableLabelAnimation=!0,w.setStyle("fill",v.getVisual("color")),w.setStyle("decal",v.getVisual("style").decal),xr(w,g),s.add(w),f.setItemGraphicEl(v.dataIndex,w),Tt(w).dataType="node";var C=_.get("focus");$n(w,C==="adjacency"?v.getAdjacentDataIndices():C==="trajectory"?v.getTrajectoryDataIndices():C,_.get("blurScope"),_.get("disabled"))}),f.eachItemGraphicEl(function(v,p){var g=f.getItemModel(p);g.get("draggable")&&(v.drift=function(m,b){i._focusAdjacencyDisabled=!0,this.shape.x+=m,this.shape.y+=b,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:n.id,dataIndex:f.getRawIndex(p),localX:this.shape.x/u,localY:this.shape.y/c})},v.ondragend=function(){i._focusAdjacencyDisabled=!1},v.draggable=!0,v.cursor="move")}),!this._data&&n.isAnimationEnabled()&&s.setClipPath(Q8e(s.getBoundingRect(),n,function(){s.removeClipPath()})),this._data=n.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(vn);function o3(e,t,n){switch(e.fill){case"source":e.fill=n.node1.getVisual("color"),e.decal=n.node1.getVisual("style").decal;break;case"target":e.fill=n.node2.getVisual("color"),e.decal=n.node2.getVisual("style").decal;break;case"gradient":var r=n.node1.getVisual("color"),a=n.node2.getVisual("color");Je(r)&&Je(a)&&(e.fill=new Pd(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:r,offset:0},{color:a,offset:1}]))}}function Q8e(e,t,n){var r=new Zt({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return xn(r,{shape:{width:e.width+20}},t,n),r}const e6e=J8e;var t6e=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(n,r){var a=n.edges||n.links,i=n.data||n.nodes,o=n.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l<o.length;l++)o[l].depth!=null&&o[l].depth>=0&&(s[o[l].depth]=new dn(o[l],this,r));if(i&&a){var u=gK(i,a,this,!0,c);return u.data}function c(f,d){f.wrapMethod("getItemModel",function(h,v){var p=h.parentModel,g=p.getData().getItemLayout(v);if(g){var m=g.depth,b=p.levelModels[m];b&&(h.parentModel=b)}return h}),d.wrapMethod("getItemModel",function(h,v){var p=h.parentModel,g=p.getGraph().getEdgeByIndex(v),m=g.node1.getLayout();if(m){var b=m.depth,_=p.levelModels[b];_&&(h.parentModel=_)}return h})}},t.prototype.setNodePosition=function(n,r){var a=this.option.data||this.option.nodes,i=a[n];i.localX=r[0],i.localY=r[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(n,r,a){function i(h){return isNaN(h)||h==null}if(a==="edge"){var o=this.getDataParams(n,a),s=o.data,l=o.value,u=s.source+" -- "+s.target;return ur("nameValue",{name:u,value:l,noValue:i(l)})}else{var c=this.getGraph().getNodeByIndex(n),f=c.getLayout().value,d=this.getDataParams(n,a).data.name;return ur("nameValue",{name:d!=null?d+"":null,value:f,noValue:i(f)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(n,r){var a=e.prototype.getDataParams.call(this,n,r);if(a.value==null&&r==="node"){var i=this.getGraph().getNodeByIndex(n),o=i.getLayout().value;a.value=o}return a},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}(_n);const n6e=t6e;function r6e(e,t){e.eachSeriesByType("sankey",function(n){var r=n.get("nodeWidth"),a=n.get("nodeGap"),i=a6e(n,t);n.layoutInfo=i;var o=i.width,s=i.height,l=n.getGraph(),u=l.nodes,c=l.edges;o6e(u);var f=ln(u,function(p){return p.getLayout().value===0}),d=f.length!==0?0:n.get("layoutIterations"),h=n.get("orient"),v=n.get("nodeAlign");i6e(u,c,r,a,o,s,d,h,v)})}function a6e(e,t){return Xn(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function i6e(e,t,n,r,a,i,o,s,l){s6e(e,t,n,a,i,s,l),f6e(e,t,i,a,r,o,s),_6e(e,s)}function o6e(e){F(e,function(t){var n=sl(t.outEdges,ub),r=sl(t.inEdges,ub),a=t.getValue()||0,i=Math.max(n,r,a);t.setLayout({value:i},!0)})}function s6e(e,t,n,r,a,i,o){for(var s=[],l=[],u=[],c=[],f=0,d=0;d<t.length;d++)s[d]=1;for(var d=0;d<e.length;d++)l[d]=e[d].inEdges.length,l[d]===0&&u.push(e[d]);for(var h=-1;u.length;){for(var v=0;v<u.length;v++){var p=u[v],g=p.hostGraph.data.getRawDataItem(p.dataIndex),m=g.depth!=null&&g.depth>=0;m&&g.depth>h&&(h=g.depth),p.setLayout({depth:m?g.depth:f},!0),i==="vertical"?p.setLayout({dy:n},!0):p.setLayout({dx:n},!0);for(var b=0;b<p.outEdges.length;b++){var _=p.outEdges[b],w=t.indexOf(_);s[w]=0;var C=_.node2,S=e.indexOf(C);--l[S]===0&&c.indexOf(C)<0&&c.push(C)}}++f,u=c,c=[]}for(var d=0;d<s.length;d++)if(s[d]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var x=h>f-1?h:f-1;o&&o!=="left"&&l6e(e,o,i,x);var T=i==="vertical"?(a-n)/x:(r-n)/x;c6e(e,T,i)}function $K(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return t.depth!=null&&t.depth>=0}function l6e(e,t,n,r){if(t==="right"){for(var a=[],i=e,o=0;i.length;){for(var s=0;s<i.length;s++){var l=i[s];l.setLayout({skNodeHeight:o},!0);for(var u=0;u<l.inEdges.length;u++){var c=l.inEdges[u];a.indexOf(c.node1)<0&&a.push(c.node1)}}i=a,a=[],++o}F(e,function(f){$K(f)||f.setLayout({depth:Math.max(0,r-f.getLayout().skNodeHeight)},!0)})}else t==="justify"&&u6e(e,r)}function u6e(e,t){F(e,function(n){!$K(n)&&!n.outEdges.length&&n.setLayout({depth:t},!0)})}function c6e(e,t,n){F(e,function(r){var a=r.getLayout().depth*t;n==="vertical"?r.setLayout({y:a},!0):r.setLayout({x:a},!0)})}function f6e(e,t,n,r,a,i,o){var s=d6e(e,o);h6e(s,t,n,r,a,o),MS(s,a,n,r,o);for(var l=1;i>0;i--)l*=.99,v6e(s,l,o),MS(s,a,n,r,o),b6e(s,l,o),MS(s,a,n,r,o)}function d6e(e,t){var n=[],r=t==="vertical"?"y":"x",a=Jx(e,function(i){return i.getLayout()[r]});return a.keys.sort(function(i,o){return i-o}),F(a.keys,function(i){n.push(a.buckets.get(i))}),n}function h6e(e,t,n,r,a,i){var o=1/0;F(e,function(s){var l=s.length,u=0;F(s,function(f){u+=f.getLayout().value});var c=i==="vertical"?(r-(l-1)*a)/u:(n-(l-1)*a)/u;c<o&&(o=c)}),F(e,function(s){F(s,function(l,u){var c=l.getLayout().value*o;i==="vertical"?(l.setLayout({x:u},!0),l.setLayout({dx:c},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:c},!0))})}),F(t,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function MS(e,t,n,r,a){var i=a==="vertical"?"x":"y";F(e,function(o){o.sort(function(p,g){return p.getLayout()[i]-g.getLayout()[i]});for(var s,l,u,c=0,f=o.length,d=a==="vertical"?"dx":"dy",h=0;h<f;h++)l=o[h],u=c-l.getLayout()[i],u>0&&(s=l.getLayout()[i]+u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]+l.getLayout()[d]+t;var v=a==="vertical"?r:n;if(u=c-t-v,u>0){s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var h=f-2;h>=0;--h)l=o[h],u=l.getLayout()[i]+l.getLayout()[d]+t-c,u>0&&(s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]}})}function v6e(e,t,n){F(e.slice().reverse(),function(r){F(r,function(a){if(a.outEdges.length){var i=sl(a.outEdges,p6e,n)/sl(a.outEdges,ub);if(isNaN(i)){var o=a.outEdges.length;i=o?sl(a.outEdges,g6e,n)/o:0}if(n==="vertical"){var s=a.getLayout().x+(i-_l(a,n))*t;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-_l(a,n))*t;a.setLayout({y:l},!0)}}})})}function p6e(e,t){return _l(e.node2,t)*e.getValue()}function g6e(e,t){return _l(e.node2,t)}function m6e(e,t){return _l(e.node1,t)*e.getValue()}function y6e(e,t){return _l(e.node1,t)}function _l(e,t){return t==="vertical"?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function ub(e){return e.getValue()}function sl(e,t,n){for(var r=0,a=e.length,i=-1;++i<a;){var o=+t(e[i],n);isNaN(o)||(r+=o)}return r}function b6e(e,t,n){F(e,function(r){F(r,function(a){if(a.inEdges.length){var i=sl(a.inEdges,m6e,n)/sl(a.inEdges,ub);if(isNaN(i)){var o=a.inEdges.length;i=o?sl(a.inEdges,y6e,n)/o:0}if(n==="vertical"){var s=a.getLayout().x+(i-_l(a,n))*t;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-_l(a,n))*t;a.setLayout({y:l},!0)}}})})}function _6e(e,t){var n=t==="vertical"?"x":"y";F(e,function(r){r.outEdges.sort(function(a,i){return a.node2.getLayout()[n]-i.node2.getLayout()[n]}),r.inEdges.sort(function(a,i){return a.node1.getLayout()[n]-i.node1.getLayout()[n]})}),F(e,function(r){var a=0,i=0;F(r.outEdges,function(o){o.setLayout({sy:a},!0),a+=o.getLayout().dy}),F(r.inEdges,function(o){o.setLayout({ty:i},!0),i+=o.getLayout().dy})})}function w6e(e){e.eachSeriesByType("sankey",function(t){var n=t.getGraph(),r=n.nodes,a=n.edges;if(r.length){var i=1/0,o=-1/0;F(r,function(s){var l=s.getLayout().value;l<i&&(i=l),l>o&&(o=l)}),F(r,function(s){var l=new wr({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:t.get("color")}),u=l.mapValueToVisual(s.getLayout().value),c=s.getModel().get(["itemStyle","color"]);c!=null?(s.setVisual("color",c),s.setVisual("style",{fill:c})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}a.length&&F(a,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function S6e(e){e.registerChartView(e6e),e.registerSeriesModel(n6e),e.registerLayout(r6e),e.registerVisual(w6e),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,n){n.eachComponent({mainType:"series",subType:"sankey",query:t},function(r){r.setNodePosition(t.dataIndex,[t.localX,t.localY])})})}var NK=function(){function e(){}return e.prototype.getInitialData=function(t,n){var r,a=n.getComponent("xAxis",this.get("xAxisIndex")),i=n.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=i.get("type"),l;o==="category"?(t.layout="horizontal",r=a.getOrdinalMeta(),l=!0):s==="category"?(t.layout="vertical",r=i.getOrdinalMeta(),l=!0):t.layout=t.layout||"horizontal";var u=["x","y"],c=t.layout==="horizontal"?0:1,f=this._baseAxisDim=u[c],d=u[1-c],h=[a,i],v=h[c].get("type"),p=h[1-c].get("type"),g=t.data;if(g&&l){var m=[];F(g,function(w,C){var S;Re(w)?(S=w.slice(),w.unshift(C)):Re(w.value)?(S=Ie({},w),S.value=S.value.slice(),w.value.unshift(C)):S=w,m.push(S)}),t.data=m}var b=this.defaultValueDimensions,_=[{name:f,type:Z0(v),ordinalMeta:r,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:Z0(p),dimsDef:b.slice()}];return Yd(this,{coordDimensions:_,dimensionsCount:b.length+1,encodeDefaulter:xt(iW,_,this)})},e.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},e}(),BK=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}(_n);Vn(BK,NK,!0);const C6e=BK;var x6e=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){var i=n.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=n.get("layout")==="horizontal"?1:0;i.diff(s).add(function(u){if(i.hasValue(u)){var c=i.getItemLayout(u),f=s3(c,i,u,l,!0);i.setItemGraphicEl(u,f),o.add(f)}}).update(function(u,c){var f=s.getItemGraphicEl(c);if(!i.hasValue(u)){o.remove(f);return}var d=i.getItemLayout(u);f?(Gi(f),VK(d,f,i,u)):f=s3(d,i,u,l),o.add(f),i.setItemGraphicEl(u,f)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&o.remove(c)}).execute(),this._data=i},t.prototype.remove=function(n){var r=this.group,a=this._data;this._data=null,a&&a.eachItemGraphicEl(function(i){i&&r.remove(i)})},t.type="boxplot",t}(vn),T6e=function(){function e(){}return e}(),M6e=function(e){ge(t,e);function t(n){var r=e.call(this,n)||this;return r.type="boxplotBoxPath",r}return t.prototype.getDefaultShape=function(){return new T6e},t.prototype.buildPath=function(n,r){var a=r.points,i=0;for(n.moveTo(a[i][0],a[i][1]),i++;i<4;i++)n.lineTo(a[i][0],a[i][1]);for(n.closePath();i<a.length;i++)n.moveTo(a[i][0],a[i][1]),i++,n.lineTo(a[i][0],a[i][1])},t}(zt);function s3(e,t,n,r,a){var i=e.ends,o=new M6e({shape:{points:a?k6e(i,r,e):i}});return VK(e,o,t,n,a),o}function VK(e,t,n,r,a){var i=n.hostModel,o=gg[a?"initProps":"updateProps"];o(t,{shape:{points:e.ends}},i,r),t.useStyle(n.getItemVisual(r,"style")),t.style.strokeNoScale=!0,t.z2=100;var s=n.getItemModel(r),l=s.getModel("emphasis");xr(t,s),$n(t,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function k6e(e,t,n){return Oe(e,function(r){return r=r.slice(),r[t]=n.initBaseline,r})}const A6e=x6e;var Mv=F;function E6e(e){var t=I6e(e);Mv(t,function(n){var r=n.seriesModels;r.length&&(D6e(n),Mv(r,function(a,i){P6e(a,n.boxOffsetList[i],n.boxWidthList[i])}))})}function I6e(e){var t=[],n=[];return e.eachSeriesByType("boxplot",function(r){var a=r.getBaseAxis(),i=$t(n,a);i<0&&(i=n.length,n[i]=a,t[i]={axis:a,seriesModels:[]}),t[i].seriesModels.push(r)}),t}function D6e(e){var t=e.axis,n=e.seriesModels,r=n.length,a=e.boxWidthList=[],i=e.boxOffsetList=[],o=[],s;if(t.type==="category")s=t.getBandWidth();else{var l=0;Mv(n,function(v){l=Math.max(l,v.getData().count())});var u=t.getExtent();s=Math.abs(u[1]-u[0])/l}Mv(n,function(v){var p=v.get("boxWidth");Re(p)||(p=[p,p]),o.push([qe(p[0],s)||0,qe(p[1],s)||0])});var c=s*.8-2,f=c/r*.3,d=(c-f*(r-1))/r,h=d/2-c/2;Mv(n,function(v,p){i.push(h),h+=f+d,a.push(Math.min(Math.max(d,o[p][0]),o[p][1]))})}function P6e(e,t,n){var r=e.coordinateSystem,a=e.getData(),i=n/2,o=e.get("layout")==="horizontal"?0:1,s=1-o,l=["x","y"],u=a.mapDimension(l[o]),c=a.mapDimensionsAll(l[s]);if(u==null||c.length<5)return;for(var f=0;f<a.count();f++){var d=a.get(u,f),h=_(d,c[2],f),v=_(d,c[0],f),p=_(d,c[1],f),g=_(d,c[3],f),m=_(d,c[4],f),b=[];w(b,p,!1),w(b,g,!0),b.push(v,p,m,g),C(b,v),C(b,m),C(b,h),a.setItemLayout(f,{initBaseline:h[s],ends:b})}function _(S,x,T){var M=a.get(x,T),A=[];A[o]=S,A[s]=M;var k;return isNaN(S)||isNaN(M)?k=[NaN,NaN]:(k=r.dataToPoint(A),k[o]+=t),k}function w(S,x,T){var M=x.slice(),A=x.slice();M[o]+=i,A[o]-=i,T?S.push(M,A):S.push(A,M)}function C(S,x){var T=x.slice(),M=x.slice();T[o]-=i,M[o]+=i,S.push(T,M)}}function L6e(e,t){t=t||{};for(var n=[],r=[],a=t.boundIQR,i=a==="none"||a===0,o=0;o<e.length;o++){var s=Ea(e[o].slice()),l=By(s,.25),u=By(s,.5),c=By(s,.75),f=s[0],d=s[s.length-1],h=(a??1.5)*(c-l),v=i?f:Math.max(f,l-h),p=i?d:Math.min(d,c+h),g=t.itemNameFormatter,m=ut(g)?g({value:o}):Je(g)?g.replace("{value}",o+""):o+"";n.push([m,v,l,u,c,p]);for(var b=0;b<s.length;b++){var _=s[b];if(_<v||_>p){var w=[m,_];r.push(w)}}}return{boxData:n,outliers:r}}var R6e={type:"echarts:boxplot",transform:function(t){var n=t.upstream;if(n.sourceFormat!==Br){var r="";an(r)}var a=L6e(n.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function O6e(e){e.registerSeriesModel(C6e),e.registerChartView(A6e),e.registerLayout(E6e),e.registerTransform(R6e)}var $6e=["color","borderColor"],N6e=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(n),this._isLargeDraw?this._renderLarge(n):this._renderNormal(n)},t.prototype.incrementalPrepareRender=function(n,r,a){this._clear(),this._updateDrawMode(n)},t.prototype.incrementalRender=function(n,r,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(n,r):this._incrementalRenderNormal(n,r)},t.prototype.eachRendered=function(n){Ll(this._progressiveEls||this.group,n)},t.prototype._updateDrawMode=function(n){var r=n.pipelineContext.large;(this._isLargeDraw==null||r!==this._isLargeDraw)&&(this._isLargeDraw=r,this._clear())},t.prototype._renderNormal=function(n){var r=n.getData(),a=this._data,i=this.group,o=r.getLayout("isSimpleBox"),s=n.get("clip",!0),l=n.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),r.diff(a).add(function(c){if(r.hasValue(c)){var f=r.getItemLayout(c);if(s&&l3(u,f))return;var d=kS(f,c,!0);xn(d,{shape:{points:f.ends}},n,c),AS(d,r,c,o),i.add(d),r.setItemGraphicEl(c,d)}}).update(function(c,f){var d=a.getItemGraphicEl(f);if(!r.hasValue(c)){i.remove(d);return}var h=r.getItemLayout(c);if(s&&l3(u,h)){i.remove(d);return}d?(nn(d,{shape:{points:h.ends}},n,c),Gi(d)):d=kS(h),AS(d,r,c,o),i.add(d),r.setItemGraphicEl(c,d)}).remove(function(c){var f=a.getItemGraphicEl(c);f&&i.remove(f)}).execute(),this._data=r},t.prototype._renderLarge=function(n){this._clear(),u3(n,this.group);var r=n.get("clip",!0)?Y1(n.coordinateSystem,!1,n):null;r?this.group.setClipPath(r):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(n,r){for(var a=r.getData(),i=a.getLayout("isSimpleBox"),o;(o=n.next())!=null;){var s=a.getItemLayout(o),l=kS(s);AS(l,a,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(n,r){u3(r,this.group,this._progressiveEls,!0)},t.prototype.remove=function(n){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(vn),B6e=function(){function e(){}return e}(),V6e=function(e){ge(t,e);function t(n){var r=e.call(this,n)||this;return r.type="normalCandlestickBox",r}return t.prototype.getDefaultShape=function(){return new B6e},t.prototype.buildPath=function(n,r){var a=r.points;this.__simpleBox?(n.moveTo(a[4][0],a[4][1]),n.lineTo(a[6][0],a[6][1])):(n.moveTo(a[0][0],a[0][1]),n.lineTo(a[1][0],a[1][1]),n.lineTo(a[2][0],a[2][1]),n.lineTo(a[3][0],a[3][1]),n.closePath(),n.moveTo(a[4][0],a[4][1]),n.lineTo(a[5][0],a[5][1]),n.moveTo(a[6][0],a[6][1]),n.lineTo(a[7][0],a[7][1]))},t}(zt);function kS(e,t,n){var r=e.ends;return new V6e({shape:{points:n?z6e(r,e):r},z2:100})}function l3(e,t){for(var n=!0,r=0;r<t.ends.length;r++)if(e.contain(t.ends[r][0],t.ends[r][1])){n=!1;break}return n}function AS(e,t,n,r){var a=t.getItemModel(n);e.useStyle(t.getItemVisual(n,"style")),e.style.strokeNoScale=!0,e.__simpleBox=r,xr(e,a)}function z6e(e,t){return Oe(e,function(n){return n=n.slice(),n[1]=t.initBaseline,n})}var F6e=function(){function e(){}return e}(),ES=function(e){ge(t,e);function t(n){var r=e.call(this,n)||this;return r.type="largeCandlestickBox",r}return t.prototype.getDefaultShape=function(){return new F6e},t.prototype.buildPath=function(n,r){for(var a=r.points,i=0;i<a.length;)if(this.__sign===a[i++]){var o=a[i++];n.moveTo(o,a[i++]),n.lineTo(o,a[i++])}else i+=3},t}(zt);function u3(e,t,n,r){var a=e.getData(),i=a.getLayout("largePoints"),o=new ES({shape:{points:i},__sign:1,ignoreCoarsePointer:!0});t.add(o);var s=new ES({shape:{points:i},__sign:-1,ignoreCoarsePointer:!0});t.add(s);var l=new ES({shape:{points:i},__sign:0,ignoreCoarsePointer:!0});t.add(l),IS(1,o,e),IS(-1,s,e),IS(0,l,e),r&&(o.incremental=!0,s.incremental=!0),n&&n.push(o,s)}function IS(e,t,n,r){var a=n.get(["itemStyle",e>0?"borderColor":"borderColor0"])||n.get(["itemStyle",e>0?"color":"color0"]);e===0&&(a=n.get(["itemStyle","borderColorDoji"]));var i=n.getModel("itemStyle").getItemStyle($6e);t.useStyle(i),t.style.fill=null,t.style.stroke=a}const H6e=N6e;var zK=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(n,r,a){var i=r.getItemLayout(n);return i&&a.rect(i.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(_n);Vn(zK,NK,!0);const G6e=zK;function W6e(e){!e||!Re(e.series)||F(e.series,function(t){ht(t)&&t.type==="k"&&(t.type="candlestick")})}var K6e=["itemStyle","borderColor"],U6e=["itemStyle","borderColor0"],Y6e=["itemStyle","borderColorDoji"],j6e=["itemStyle","color"],q6e=["itemStyle","color0"],X6e={seriesType:"candlestick",plan:Hd(),performRawSeries:!0,reset:function(e,t){function n(i,o){return o.get(i>0?j6e:q6e)}function r(i,o){return o.get(i===0?Y6e:i>0?K6e:U6e)}if(!t.isSeriesFiltered(e)){var a=e.pipelineContext.large;return!a&&{progress:function(i,o){for(var s;(s=i.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,c=l.getItemStyle();c.fill=n(u,l),c.stroke=r(u,l)||c.fill;var f=o.ensureUniqueItemVisual(s,"style");Ie(f,c)}}}}}};const Z6e=X6e;var J6e={seriesType:"candlestick",plan:Hd(),reset:function(e){var t=e.coordinateSystem,n=e.getData(),r=Q6e(e,n),a=0,i=1,o=["x","y"],s=n.getDimensionIndex(n.mapDimension(o[a])),l=Oe(n.mapDimensionsAll(o[i]),n.getDimensionIndex,n),u=l[0],c=l[1],f=l[2],d=l[3];if(n.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),s<0||l.length<4)return;return{progress:e.pipelineContext.large?v:h};function h(p,g){for(var m,b=g.getStore();(m=p.next())!=null;){var _=b.get(s,m),w=b.get(u,m),C=b.get(c,m),S=b.get(f,m),x=b.get(d,m),T=Math.min(w,C),M=Math.max(w,C),A=O(T,_),k=O(M,_),E=O(S,_),D=O(x,_),L=[];$(L,k,0),$(L,A,1),L.push(z(D),z(k),z(E),z(A));var B=g.getItemModel(m),N=!!B.get(["itemStyle","borderColorDoji"]);g.setItemLayout(m,{sign:c3(b,m,w,C,c,N),initBaseline:w>C?k[i]:A[i],ends:L,brushRect:I(S,x,_)})}function O(G,U){var Z=[];return Z[a]=U,Z[i]=G,isNaN(U)||isNaN(G)?[NaN,NaN]:t.dataToPoint(Z)}function $(G,U,Z){var ae=U.slice(),J=U.slice();ae[a]=Fy(ae[a]+r/2,1,!1),J[a]=Fy(J[a]-r/2,1,!0),Z?G.push(ae,J):G.push(J,ae)}function I(G,U,Z){var ae=O(G,Z),J=O(U,Z);return ae[a]-=r/2,J[a]-=r/2,{x:ae[0],y:ae[1],width:r,height:J[1]-ae[1]}}function z(G){return G[a]=Fy(G[a],1),G}}function v(p,g){for(var m=fo(p.count*4),b=0,_,w=[],C=[],S,x=g.getStore(),T=!!e.get(["itemStyle","borderColorDoji"]);(S=p.next())!=null;){var M=x.get(s,S),A=x.get(u,S),k=x.get(c,S),E=x.get(f,S),D=x.get(d,S);if(isNaN(M)||isNaN(E)||isNaN(D)){m[b++]=NaN,b+=3;continue}m[b++]=c3(x,S,A,k,c,T),w[a]=M,w[i]=E,_=t.dataToPoint(w,null,C),m[b++]=_?_[0]:NaN,m[b++]=_?_[1]:NaN,w[i]=D,_=t.dataToPoint(w,null,C),m[b++]=_?_[1]:NaN}g.setLayout("largePoints",m)}}};function c3(e,t,n,r,a,i){var o;return n>r?o=-1:n<r?o=1:o=i?0:t>0?e.get(a,t-1)<=r?1:-1:1,o}function Q6e(e,t){var n=e.getBaseAxis(),r,a=n.type==="category"?n.getBandWidth():(r=n.getExtent(),Math.abs(r[1]-r[0])/t.count()),i=qe(Lt(e.get("barMaxWidth"),a),a),o=qe(Lt(e.get("barMinWidth"),1),a),s=e.get("barWidth");return s!=null?qe(s,a):Math.max(Math.min(a/2,i),o)}const eHe=J6e;function tHe(e){e.registerChartView(H6e),e.registerSeriesModel(G6e),e.registerPreprocessor(W6e),e.registerVisual(Z6e),e.registerLayout(eHe)}function f3(e,t){var n=t.rippleEffectColor||t.color;e.eachChild(function(r){r.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType==="stroke"?n:null,fill:t.brushType==="fill"?n:null}})})}var nHe=function(e){ge(t,e);function t(n,r){var a=e.call(this)||this,i=new wg(n,r),o=new bt;return a.add(i),a.add(o),a.updateData(n,r),a}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(n){for(var r=n.symbolType,a=n.color,i=n.rippleNumber,o=this.childAt(1),s=0;s<i;s++){var l=Hn(r,-1,-1,2,2,a);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-s/i*n.period+n.effectOffset;l.animate("",!0).when(n.period,{scaleX:n.rippleScale/2,scaleY:n.rippleScale/2}).delay(u).start(),l.animateStyle(!0).when(n.period,{opacity:0}).delay(u).start(),o.add(l)}f3(o,n)},t.prototype.updateEffectAnimation=function(n){for(var r=this._effectCfg,a=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],o=0;o<i.length;o++){var s=i[o];if(r[s]!==n[s]){this.stopEffectAnimation(),this.startEffectAnimation(n);return}}f3(a,n)},t.prototype.highlight=function(){rs(this)},t.prototype.downplay=function(){as(this)},t.prototype.getSymbolType=function(){var n=this.childAt(0);return n&&n.getSymbolType()},t.prototype.updateData=function(n,r){var a=this,i=n.hostModel;this.childAt(0).updateData(n,r);var o=this.childAt(1),s=n.getItemModel(r),l=n.getItemVisual(r,"symbol"),u=Wd(n.getItemVisual(r,"symbolSize")),c=n.getItemVisual(r,"style"),f=c&&c.fill,d=s.getModel("emphasis");o.setScale(u),o.traverse(function(g){g.setStyle("fill",f)});var h=kc(n.getItemVisual(r,"symbolOffset"),u);h&&(o.x=h[0],o.y=h[1]);var v=n.getItemVisual(r,"symbolRotate");o.rotation=(v||0)*Math.PI/180||0;var p={};p.showEffectOn=i.get("showEffectOn"),p.rippleScale=s.get(["rippleEffect","scale"]),p.brushType=s.get(["rippleEffect","brushType"]),p.period=s.get(["rippleEffect","period"])*1e3,p.effectOffset=r/n.count(),p.z=i.getShallow("z")||0,p.zlevel=i.getShallow("zlevel")||0,p.symbolType=l,p.color=f,p.rippleEffectColor=s.get(["rippleEffect","color"]),p.rippleNumber=s.get(["rippleEffect","number"]),p.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(p):this.startEffectAnimation(p),this._effectCfg=p):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(g){g==="emphasis"?p.showEffectOn!=="render"&&a.startEffectAnimation(p):g==="normal"&&p.showEffectOn!=="render"&&a.stopEffectAnimation()}),this._effectCfg=p,$n(this,d.get("focus"),d.get("blurScope"),d.get("disabled"))},t.prototype.fadeOut=function(n){n&&n()},t}(bt);const rHe=nHe;var aHe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){this._symbolDraw=new Sg(rHe)},t.prototype.render=function(n,r,a){var i=n.getData(),o=this._symbolDraw;o.updateData(i,{clipShape:this._getClipShape(n)}),this.group.add(o.group)},t.prototype._getClipShape=function(n){var r=n.coordinateSystem,a=r&&r.getArea&&r.getArea();return n.get("clip",!0)?a:null},t.prototype.updateTransform=function(n,r,a){var i=n.getData();this.group.dirty();var o=Cg("").reset(n,r,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},t.prototype._updateGroupTransform=function(n){var r=n.coordinateSystem;r&&r.getRoamTransform&&(this.group.transform=eH(r.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(n,r){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t}(vn);const iHe=aHe;var oHe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.getInitialData=function(n,r){return Io(null,this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(n,r,a){return a.point(r.getItemLayout(n))},t.type="series.effectScatter",t.dependencies=["grid","polar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},t}(_n);const sHe=oHe;function lHe(e){e.registerChartView(iHe),e.registerSeriesModel(sHe),e.registerLayout(Cg("effectScatter"))}var uHe=function(e){ge(t,e);function t(n,r,a){var i=e.call(this)||this;return i.add(i.createLine(n,r,a)),i._updateEffectSymbol(n,r),i}return t.prototype.createLine=function(n,r,a){return new eE(n,r,a)},t.prototype._updateEffectSymbol=function(n,r){var a=n.getItemModel(r),i=a.getModel("effect"),o=i.get("symbolSize"),s=i.get("symbol");Re(o)||(o=[o,o]);var l=n.getItemVisual(r,"style"),u=i.get("color")||l&&l.stroke,c=this.childAt(1);this._symbolType!==s&&(this.remove(c),c=Hn(s,-.5,-.5,1,1,u),c.z2=100,c.culling=!0,this.add(c)),c&&(c.setStyle("shadowColor",u),c.setStyle(i.getItemStyle(["color"])),c.scaleX=o[0],c.scaleY=o[1],c.setColor(u),this._symbolType=s,this._symbolScale=o,this._updateEffectAnimation(n,i,r))},t.prototype._updateEffectAnimation=function(n,r,a){var i=this.childAt(1);if(i){var o=n.getItemLayout(a),s=r.get("period")*1e3,l=r.get("loop"),u=r.get("roundTrip"),c=r.get("constantSpeed"),f=rr(r.get("delay"),function(h){return h/n.count()*s/3});if(i.ignore=!0,this._updateAnimationPoints(i,o),c>0&&(s=this._getLineLength(i)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var d=void 0;ut(f)?d=f(a):d=f,i.__t>0&&(d=-s*i.__t),this._animateSymbol(i,s,d,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},t.prototype._animateSymbol=function(n,r,a,i,o){if(r>0){n.__t=0;var s=this,l=n.animate("",i).when(o?r*2:r,{__t:o?2:1}).delay(a).during(function(){s._updateSymbolPosition(n)});i||l.done(function(){s.remove(n)}),l.start()}},t.prototype._getLineLength=function(n){return Go(n.__p1,n.__cp1)+Go(n.__cp1,n.__p2)},t.prototype._updateAnimationPoints=function(n,r){n.__p1=r[0],n.__p2=r[1],n.__cp1=r[2]||[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]},t.prototype.updateData=function(n,r,a){this.childAt(0).updateData(n,r,a),this._updateEffectSymbol(n,r)},t.prototype._updateSymbolPosition=function(n){var r=n.__p1,a=n.__p2,i=n.__cp1,o=n.__t<1?n.__t:2-n.__t,s=[n.x,n.y],l=s.slice(),u=fr,c=Nx;s[0]=u(r[0],i[0],a[0],o),s[1]=u(r[1],i[1],a[1],o);var f=n.__t<1?c(r[0],i[0],a[0],o):c(a[0],i[0],r[0],1-o),d=n.__t<1?c(r[1],i[1],a[1],o):c(a[1],i[1],r[1],1-o);n.rotation=-Math.atan2(d,f)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(n.__lastT!==void 0&&n.__lastT<n.__t?(n.scaleY=Go(l,s)*1.05,o===1&&(s[0]=l[0]+(s[0]-l[0])/2,s[1]=l[1]+(s[1]-l[1])/2)):n.__lastT===1?n.scaleY=2*Go(r,s):n.scaleY=this._symbolScale[1]),n.__lastT=n.__t,n.ignore=!1,n.x=s[0],n.y=s[1]},t.prototype.updateLayout=function(n,r){this.childAt(0).updateLayout(n,r);var a=n.getItemModel(r).getModel("effect");this._updateEffectAnimation(n,a,r)},t}(bt);const FK=uHe;var cHe=function(e){ge(t,e);function t(n,r,a){var i=e.call(this)||this;return i._createPolyline(n,r,a),i}return t.prototype._createPolyline=function(n,r,a){var i=n.getItemLayout(r),o=new ia({shape:{points:i}});this.add(o),this._updateCommonStl(n,r,a)},t.prototype.updateData=function(n,r,a){var i=n.hostModel,o=this.childAt(0),s={shape:{points:n.getItemLayout(r)}};nn(o,s,i,r),this._updateCommonStl(n,r,a)},t.prototype._updateCommonStl=function(n,r,a){var i=this.childAt(0),o=n.getItemModel(r),s=a&&a.emphasisLineStyle,l=a&&a.focus,u=a&&a.blurScope,c=a&&a.emphasisDisabled;if(!a||n.hasItemOption){var f=o.getModel("emphasis");s=f.getModel("lineStyle").getLineStyle(),c=f.get("disabled"),l=f.get("focus"),u=f.get("blurScope")}i.useStyle(n.getItemVisual(r,"style")),i.style.fill=null,i.style.strokeNoScale=!0;var d=i.ensureState("emphasis");d.style=s,$n(this,l,u,c)},t.prototype.updateLayout=function(n,r){var a=this.childAt(0);a.setShape("points",n.getItemLayout(r))},t}(bt);const HK=cHe;var fHe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n._lastFrame=0,n._lastFramePercent=0,n}return t.prototype.createLine=function(n,r,a){return new HK(n,r,a)},t.prototype._updateAnimationPoints=function(n,r){this._points=r;for(var a=[0],i=0,o=1;o<r.length;o++){var s=r[o-1],l=r[o];i+=Go(s,l),a.push(i)}if(i===0){this._length=0;return}for(var o=0;o<a.length;o++)a[o]/=i;this._offsets=a,this._length=i},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(n){var r=n.__t<1?n.__t:2-n.__t,a=this._points,i=this._offsets,o=a.length;if(i){var s=this._lastFrame,l;if(r<this._lastFramePercent){var u=Math.min(s+1,o-1);for(l=u;l>=0&&!(i[l]<=r);l--);l=Math.min(l,o-2)}else{for(l=s;l<o&&!(i[l]>r);l++);l=Math.min(l-1,o-2)}var c=(r-i[l])/(i[l+1]-i[l]),f=a[l],d=a[l+1];n.x=f[0]*(1-c)+c*d[0],n.y=f[1]*(1-c)+c*d[1];var h=n.__t<1?d[0]-f[0]:f[0]-d[0],v=n.__t<1?d[1]-f[1]:f[1]-d[1];n.rotation=-Math.atan2(v,h)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=r,n.ignore=!1}},t}(FK);const dHe=fHe;var hHe=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),vHe=function(e){ge(t,e);function t(n){var r=e.call(this,n)||this;return r._off=0,r.hoverDataIdx=-1,r}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new hHe},t.prototype.buildPath=function(n,r){var a=r.segs,i=r.curveness,o;if(r.polyline)for(o=this._off;o<a.length;){var s=a[o++];if(s>0){n.moveTo(a[o++],a[o++]);for(var l=1;l<s;l++)n.lineTo(a[o++],a[o++])}}else for(o=this._off;o<a.length;){var u=a[o++],c=a[o++],f=a[o++],d=a[o++];if(n.moveTo(u,c),i>0){var h=(u+f)/2-(c-d)*i,v=(c+d)/2-(f-u)*i;n.quadraticCurveTo(h,v,f,d)}else n.lineTo(f,d)}this.incremental&&(this._off=o,this.notClear=!0)},t.prototype.findDataIndex=function(n,r){var a=this.shape,i=a.segs,o=a.curveness,s=this.style.lineWidth;if(a.polyline)for(var l=0,u=0;u<i.length;){var c=i[u++];if(c>0)for(var f=i[u++],d=i[u++],h=1;h<c;h++){var v=i[u++],p=i[u++];if(Bs(f,d,v,p,s,n,r))return l}l++}else for(var l=0,u=0;u<i.length;){var f=i[u++],d=i[u++],v=i[u++],p=i[u++];if(o>0){var g=(f+v)/2-(d-p)*o,m=(d+p)/2-(v-f)*o;if(jH(f,d,g,m,v,p,s,n,r))return l}else if(Bs(f,d,v,p,s,n,r))return l;l++}return-1},t.prototype.contain=function(n,r){var a=this.transformCoordToLocal(n,r),i=this.getBoundingRect();if(n=a[0],r=a[1],i.contain(n,r)){var o=this.hoverDataIdx=this.findDataIndex(n,r);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var n=this._rect;if(!n){for(var r=this.shape,a=r.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u<a.length;){var c=a[u++],f=a[u++];i=Math.min(c,i),s=Math.max(c,s),o=Math.min(f,o),l=Math.max(f,l)}n=this._rect=new Rt(i,o,s,l)}return n},t}(zt),pHe=function(){function e(){this.group=new bt}return e.prototype.updateData=function(t){this._clear();var n=this._create();n.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(n,t)},e.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clear()},e.prototype.incrementalUpdate=function(t,n){var r=this._newAdded[0],a=n.getLayout("linesPoints"),i=r&&r.shape.segs;if(i&&i.length<2e4){var o=i.length,s=new Float32Array(o+a.length);s.set(i),s.set(a,o),r.setShape({segs:s})}else{this._newAdded=[];var l=this._create();l.incremental=!0,l.setShape({segs:a}),this._setCommon(l,n),l.__startIndex=t.start}},e.prototype.remove=function(){this._clear()},e.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},e.prototype._create=function(){var t=new vHe({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(t),this.group.add(t),t},e.prototype._setCommon=function(t,n,r){var a=n.hostModel;t.setShape({polyline:a.get("polyline"),curveness:a.get(["lineStyle","curveness"])}),t.useStyle(a.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var i=n.getVisual("style");i&&i.stroke&&t.setStyle("stroke",i.stroke),t.setStyle("fill",null);var o=Tt(t);o.seriesIndex=a.seriesIndex,t.on("mousemove",function(s){o.dataIndex=null;var l=t.hoverDataIdx;l>0&&(o.dataIndex=l+t.__startIndex)})},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}();const gHe=pHe;var mHe={seriesType:"lines",plan:Hd(),reset:function(e){var t=e.coordinateSystem;if(t){var n=e.get("polyline"),r=e.pipelineContext.large;return{progress:function(a,i){var o=[];if(r){var s=void 0,l=a.end-a.start;if(n){for(var u=0,c=a.start;c<a.end;c++)u+=e.getLineCoordsCount(c);s=new Float32Array(l+u*2)}else s=new Float32Array(l*4);for(var f=0,d=[],c=a.start;c<a.end;c++){var h=e.getLineCoords(c,o);n&&(s[f++]=h);for(var v=0;v<h;v++)d=t.dataToPoint(o[v],!1,d),s[f++]=d[0],s[f++]=d[1]}i.setLayout("linesPoints",s)}else for(var c=a.start;c<a.end;c++){var p=i.getItemModel(c),h=e.getLineCoords(c,o),g=[];if(n)for(var m=0;m<h;m++)g.push(t.dataToPoint(o[m]));else{g[0]=t.dataToPoint(o[0]),g[1]=t.dataToPoint(o[1]);var b=p.get(["lineStyle","curveness"]);+b&&(g[2]=[(g[0][0]+g[1][0])/2-(g[0][1]-g[1][1])*b,(g[0][1]+g[1][1])/2-(g[1][0]-g[0][0])*b])}i.setItemLayout(c,g)}}}}}};const GK=mHe;var yHe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){var i=n.getData(),o=this._updateLineDraw(i,n),s=n.get("zlevel"),l=n.get(["effect","trailLength"]),u=a.getZr(),c=u.painter.getType()==="svg";c||u.painter.getLayer(s).clear(!0),this._lastZlevel!=null&&!c&&u.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(n)&&l>0&&(c||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(i);var f=n.get("clip",!0)&&Y1(n.coordinateSystem,!1,n);f?this.group.setClipPath(f):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},t.prototype.incrementalPrepareRender=function(n,r,a){var i=n.getData(),o=this._updateLineDraw(i,n);o.incrementalPrepareUpdate(i),this._clearLayer(a),this._finished=!1},t.prototype.incrementalRender=function(n,r,a){this._lineDraw.incrementalUpdate(n,r.getData()),this._finished=n.end===r.getData().count()},t.prototype.eachRendered=function(n){this._lineDraw&&this._lineDraw.eachRendered(n)},t.prototype.updateTransform=function(n,r,a){var i=n.getData(),o=n.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=GK.reset(n,r,a);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(a)},t.prototype._updateLineDraw=function(n,r){var a=this._lineDraw,i=this._showEffect(r),o=!!r.get("polyline"),s=r.pipelineContext,l=s.large;return(!a||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=l?new gHe:new tE(o?i?dHe:HK:i?FK:eE),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(a.group),a},t.prototype._showEffect=function(n){return!!n.get(["effect","show"])},t.prototype._clearLayer=function(n){var r=n.getZr(),a=r.painter.getType()==="svg";!a&&this._lastZlevel!=null&&r.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(n,r){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(r)},t.prototype.dispose=function(n,r){this.remove(n,r)},t.type="lines",t}(vn);const bHe=yHe;var _He=typeof Uint32Array>"u"?Array:Uint32Array,wHe=typeof Float64Array>"u"?Array:Float64Array;function d3(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=Oe(t,function(n){var r=[n[0].coord,n[1].coord],a={coords:r};return n[0].name&&(a.fromName=n[0].name),n[1].name&&(a.toName=n[1].name),d1([a,n[0],n[1]])}))}var SHe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return t.prototype.init=function(n){n.data=n.data||[],d3(n);var r=this._processFlatCoordsArray(n.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(n.data=new Float32Array(r.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(n){if(d3(n),n.data){var r=this._processFlatCoordsArray(n.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(n.data=new Float32Array(r.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(n){var r=this._processFlatCoordsArray(n.data);r.flatCoords&&(this._flatCoords?(this._flatCoords=cp(this._flatCoords,r.flatCoords),this._flatCoordsOffset=cp(this._flatCoordsOffset,r.flatCoordsOffset)):(this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset),n.data=new Float32Array(r.count)),this.getRawData().appendData(n.data)},t.prototype._getCoordsFromItemModel=function(n){var r=this.getData().getItemModel(n),a=r.option instanceof Array?r.option:r.getShallow("coords");return a},t.prototype.getLineCoordsCount=function(n){return this._flatCoordsOffset?this._flatCoordsOffset[n*2+1]:this._getCoordsFromItemModel(n).length},t.prototype.getLineCoords=function(n,r){if(this._flatCoordsOffset){for(var a=this._flatCoordsOffset[n*2],i=this._flatCoordsOffset[n*2+1],o=0;o<i;o++)r[o]=r[o]||[],r[o][0]=this._flatCoords[a+o*2],r[o][1]=this._flatCoords[a+o*2+1];return i}else{for(var s=this._getCoordsFromItemModel(n),o=0;o<s.length;o++)r[o]=r[o]||[],r[o][0]=s[o][0],r[o][1]=s[o][1];return s.length}},t.prototype._processFlatCoordsArray=function(n){var r=0;if(this._flatCoords&&(r=this._flatCoords.length),Qt(n[0])){for(var a=n.length,i=new _He(a),o=new wHe(a),s=0,l=0,u=0,c=0;c<a;){u++;var f=n[c++];i[l++]=s+r,i[l++]=f;for(var d=0;d<f;d++){var h=n[c++],v=n[c++];o[s++]=h,o[s++]=v}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:n.length}},t.prototype.getInitialData=function(n,r){var a=new Or(["value"],this);return a.hasItemOption=!1,a.initData(n.data,[],function(i,o,s,l){if(i instanceof Array)return NaN;a.hasItemOption=!0;var u=i.value;if(u!=null)return u instanceof Array?u[l]:u}),a},t.prototype.formatTooltip=function(n,r,a){var i=this.getData(),o=i.getItemModel(n),s=o.get("name");if(s)return s;var l=o.get("fromName"),u=o.get("toName"),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),ur("nameValue",{name:c.join(" > ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var n=this.option.progressive;return n??(this.option.large?1e4:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var n=this.option.progressiveThreshold;return n??(this.option.large?2e4:this.get("progressiveThreshold"))},t.prototype.getZLevelKey=function(){var n=this.getModel("effect"),r=n.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:n.get("show")&&r>0?r+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(_n);const CHe=SHe;function Um(e){return e instanceof Array||(e=[e,e]),e}var xHe={seriesType:"lines",reset:function(e){var t=Um(e.get("symbol")),n=Um(e.get("symbolSize")),r=e.getData();r.setVisual("fromSymbol",t&&t[0]),r.setVisual("toSymbol",t&&t[1]),r.setVisual("fromSymbolSize",n&&n[0]),r.setVisual("toSymbolSize",n&&n[1]);function a(i,o){var s=i.getItemModel(o),l=Um(s.getShallow("symbol",!0)),u=Um(s.getShallow("symbolSize",!0));l[0]&&i.setItemVisual(o,"fromSymbol",l[0]),l[1]&&i.setItemVisual(o,"toSymbol",l[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:r.hasItemOption?a:null}}};const THe=xHe;function MHe(e){e.registerChartView(bHe),e.registerSeriesModel(CHe),e.registerLayout(GK),e.registerVisual(THe)}var kHe=256,AHe=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=Vi.createCanvas();this.canvas=t}return e.prototype.update=function(t,n,r,a,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),c=this.pointSize+this.blurSize,f=this.canvas,d=f.getContext("2d"),h=t.length;f.width=n,f.height=r;for(var v=0;v<h;++v){var p=t[v],g=p[0],m=p[1],b=p[2],_=a(b);d.globalAlpha=_,d.drawImage(s,g-c,m-c)}if(!f.width||!f.height)return f;for(var w=d.getImageData(0,0,f.width,f.height),C=w.data,S=0,x=C.length,T=this.minOpacity,M=this.maxOpacity,A=M-T;S<x;){var _=C[S+3]/256,k=Math.floor(_*(kHe-1))*4;if(_>0){var E=o(_)?l:u;_>0&&(_=_*A+T),C[S++]=E[k],C[S++]=E[k+1],C[S++]=E[k+2],C[S++]=E[k+3]*_*256}else S+=4}return d.putImageData(w,0,0),f},e.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=Vi.createCanvas()),n=this.pointSize+this.blurSize,r=n*2;t.width=r,t.height=r;var a=t.getContext("2d");return a.clearRect(0,0,r,r),a.shadowOffsetX=r,a.shadowBlur=this.blurSize,a.shadowColor="#000",a.beginPath(),a.arc(-n,n,this.pointSize,0,Math.PI*2,!0),a.closePath(),a.fill(),t},e.prototype._getGradient=function(t,n){for(var r=this._gradientPixels,a=r[n]||(r[n]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)t[n](s/255,!0,i),a[o++]=i[0],a[o++]=i[1],a[o++]=i[2],a[o++]=i[3];return a},e}();const EHe=AHe;function IHe(e,t,n){var r=e[1]-e[0];t=Oe(t,function(o){return{interval:[(o.interval[0]-e[0])/r,(o.interval[1]-e[0])/r]}});var a=t.length,i=0;return function(o){var s;for(s=i;s<a;s++){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}if(s===a)for(s=i-1;s>=0;s--){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s<a&&n[s]}}function DHe(e,t){var n=e[1]-e[0];return t=[(t[0]-e[0])/n,(t[1]-e[0])/n],function(r){return r>=t[0]&&r<=t[1]}}function h3(e){var t=e.dimensions;return t[0]==="lng"&&t[1]==="lat"}var PHe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){var i;r.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===n&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=n.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(n,a,0,n.getData().count()):h3(o)&&this._renderOnGeo(o,n,i,a)},t.prototype.incrementalPrepareRender=function(n,r,a){this.group.removeAll()},t.prototype.incrementalRender=function(n,r,a,i){var o=r.coordinateSystem;o&&(h3(o)?this.render(r,a,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(r,i,n.start,n.end,!0)))},t.prototype.eachRendered=function(n){Ll(this._progressiveEls||this.group,n)},t.prototype._renderOnCartesianAndCalendar=function(n,r,a,i,o){var s=n.coordinateSystem,l=Ac(s,"cartesian2d"),u,c,f,d;if(l){var h=s.getAxis("x"),v=s.getAxis("y");u=h.getBandWidth()+.5,c=v.getBandWidth()+.5,f=h.scale.getExtent(),d=v.scale.getExtent()}for(var p=this.group,g=n.getData(),m=n.getModel(["emphasis","itemStyle"]).getItemStyle(),b=n.getModel(["blur","itemStyle"]).getItemStyle(),_=n.getModel(["select","itemStyle"]).getItemStyle(),w=n.get(["itemStyle","borderRadius"]),C=lr(n),S=n.getModel("emphasis"),x=S.get("focus"),T=S.get("blurScope"),M=S.get("disabled"),A=l?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],k=a;k<i;k++){var E=void 0,D=g.getItemVisual(k,"style");if(l){var L=g.get(A[0],k),B=g.get(A[1],k);if(isNaN(g.get(A[2],k))||isNaN(L)||isNaN(B)||L<f[0]||L>f[1]||B<d[0]||B>d[1])continue;var N=s.dataToPoint([L,B]);E=new Zt({shape:{x:N[0]-u/2,y:N[1]-c/2,width:u,height:c},style:D})}else{if(isNaN(g.get(A[1],k)))continue;E=new Zt({z2:1,shape:s.dataToRect([g.get(A[0],k)]).contentShape,style:D})}if(g.hasItemOption){var O=g.getItemModel(k),$=O.getModel("emphasis");m=$.getModel("itemStyle").getItemStyle(),b=O.getModel(["blur","itemStyle"]).getItemStyle(),_=O.getModel(["select","itemStyle"]).getItemStyle(),w=O.get(["itemStyle","borderRadius"]),x=$.get("focus"),T=$.get("blurScope"),M=$.get("disabled"),C=lr(O)}E.shape.r=w;var I=n.getRawValue(k),z="-";I&&I[2]!=null&&(z=I[2]+""),Tr(E,C,{labelFetcher:n,labelDataIndex:k,defaultOpacity:D.opacity,defaultText:z}),E.ensureState("emphasis").style=m,E.ensureState("blur").style=b,E.ensureState("select").style=_,$n(E,x,T,M),E.incremental=o,o&&(E.states.emphasis.hoverLayer=!0),p.add(E),g.setItemGraphicEl(k,E),this._progressiveEls&&this._progressiveEls.push(E)}},t.prototype._renderOnGeo=function(n,r,a,i){var o=a.targetVisuals.inRange,s=a.targetVisuals.outOfRange,l=r.getData(),u=this._hmLayer||this._hmLayer||new EHe;u.blurSize=r.get("blurSize"),u.pointSize=r.get("pointSize"),u.minOpacity=r.get("minOpacity"),u.maxOpacity=r.get("maxOpacity");var c=n.getViewRect().clone(),f=n.getRoamTransform();c.applyTransform(f);var d=Math.max(c.x,0),h=Math.max(c.y,0),v=Math.min(c.width+c.x,i.getWidth()),p=Math.min(c.height+c.y,i.getHeight()),g=v-d,m=p-h,b=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(b,function(x,T,M){var A=n.dataToPoint([x,T]);return A[0]-=d,A[1]-=h,A.push(M),A}),w=a.getExtent(),C=a.type==="visualMap.continuous"?DHe(w,a.option.range):IHe(w,a.getPieceList(),a.option.selected);u.update(_,g,m,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},C);var S=new vr({style:{width:g,height:m,x:d,y:h,image:u.canvas},silent:!0});this.group.add(S)},t.type="heatmap",t}(vn);const LHe=PHe;var RHe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(n,r){return Io(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var n=Fd.get(this.get("coordinateSystem"));if(n&&n.dimensions)return n.dimensions[0]==="lng"&&n.dimensions[1]==="lat"},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(_n);const OHe=RHe;function $He(e){e.registerChartView(LHe),e.registerSeriesModel(OHe)}var NHe=["itemStyle","borderWidth"],v3=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],DS=new Hi,BHe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){var i=this.group,o=n.getData(),s=this._data,l=n.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),f=l.master.getRect(),d={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:n,coordSys:l,coordSysExtent:[[f.x,f.x+f.width],[f.y,f.y+f.height]],isHorizontal:c,valueDim:v3[+c],categoryDim:v3[1-+c]};return o.diff(s).add(function(h){if(o.hasValue(h)){var v=g3(o,h),p=p3(o,h,v,d),g=m3(o,d,p);o.setItemGraphicEl(h,g),i.add(g),b3(g,d,p)}}).update(function(h,v){var p=s.getItemGraphicEl(v);if(!o.hasValue(h)){i.remove(p);return}var g=g3(o,h),m=p3(o,h,g,d),b=qK(o,m);p&&b!==p.__pictorialShapeStr&&(i.remove(p),o.setItemGraphicEl(h,null),p=null),p?KHe(p,d,m):p=m3(o,d,m,!0),o.setItemGraphicEl(h,p),p.__pictorialSymbolMeta=m,i.add(p),b3(p,d,m)}).remove(function(h){var v=s.getItemGraphicEl(h);v&&y3(s,h,v.__pictorialSymbolMeta.animationModel,v)}).execute(),this._data=o,this.group},t.prototype.remove=function(n,r){var a=this.group,i=this._data;n.get("animation")?i&&i.eachItemGraphicEl(function(o){y3(i,Tt(o).dataIndex,n,o)}):a.removeAll()},t.type="pictorialBar",t}(vn);function p3(e,t,n,r){var a=e.getItemLayout(t),i=n.get("symbolRepeat"),o=n.get("symbolClip"),s=n.get("symbolPosition")||"start",l=n.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=n.get("symbolPatternSize")||2,f=n.isAnimationEnabled(),d={dataIndex:t,layout:a,itemModel:n,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:f?n:null,hoverScale:f&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};VHe(n,i,a,r,d),zHe(e,t,a,i,o,d.boundingLength,d.pxSign,c,r,d),FHe(n,d.symbolScale,u,r,d);var h=d.symbolSize,v=kc(n.get("symbolOffset"),h);return HHe(n,h,a,i,o,v,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,r,d),d}function VHe(e,t,n,r,a){var i=r.valueDim,o=e.get("symbolBoundingData"),s=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(n[i.wh]<=0),c;if(Re(o)){var f=[PS(s,o[0])-l,PS(s,o[1])-l];f[1]<f[0]&&f.reverse(),c=f[u]}else o!=null?c=PS(s,o)-l:t?c=r.coordSysExtent[i.index][u]-l:c=n[i.wh];a.boundingLength=c,t&&(a.repeatCutLength=n[i.wh]),a.pxSign=c>0?1:-1}function PS(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function zHe(e,t,n,r,a,i,o,s,l,u){var c=l.valueDim,f=l.categoryDim,d=Math.abs(n[f.wh]),h=e.getItemVisual(t,"symbolSize"),v;Re(h)?v=h.slice():h==null?v=["100%","100%"]:v=[h,h],v[f.index]=qe(v[f.index],d),v[c.index]=qe(v[c.index],r?d:Math.abs(i)),u.symbolSize=v;var p=u.symbolScale=[v[0]/s,v[1]/s];p[c.index]*=(l.isHorizontal?-1:1)*o}function FHe(e,t,n,r,a){var i=e.get(NHe)||0;i&&(DS.attr({scaleX:t[0],scaleY:t[1],rotation:n}),DS.updateTransform(),i/=DS.getLineScale(),i*=t[r.valueDim.index]),a.valueLineWidth=i||0}function HHe(e,t,n,r,a,i,o,s,l,u,c,f){var d=c.categoryDim,h=c.valueDim,v=f.pxSign,p=Math.max(t[h.index]+s,0),g=p;if(r){var m=Math.abs(l),b=rr(e.get("symbolMargin"),"15%")+"",_=!1;b.lastIndexOf("!")===b.length-1&&(_=!0,b=b.slice(0,b.length-1));var w=qe(b,t[h.index]),C=Math.max(p+w*2,0),S=_?0:w*2,x=Pk(r),T=x?r:_3((m+S)/C),M=m-T*p;w=M/2/(_?T:Math.max(T-1,1)),C=p+w*2,S=_?0:w*2,!x&&r!=="fixed"&&(T=u?_3((Math.abs(u)+S)/C):0),g=T*C-S,f.repeatTimes=T,f.symbolMargin=w}var A=v*(g/2),k=f.pathPosition=[];k[d.index]=n[d.wh]/2,k[h.index]=o==="start"?A:o==="end"?l-A:l/2,i&&(k[0]+=i[0],k[1]+=i[1]);var E=f.bundlePosition=[];E[d.index]=n[d.xy],E[h.index]=n[h.xy];var D=f.barRectShape=Ie({},n);D[h.wh]=v*Math.max(Math.abs(n[h.wh]),Math.abs(k[h.index]+A)),D[d.wh]=n[d.wh];var L=f.clipShape={};L[d.xy]=-n[d.xy],L[d.wh]=c.ecSize[d.wh],L[h.xy]=0,L[h.wh]=n[h.wh]}function WK(e){var t=e.symbolPatternSize,n=Hn(e.symbolType,-t/2,-t/2,t,t);return n.attr({culling:!0}),n.type!=="image"&&n.setStyle({strokeNoScale:!0}),n}function KK(e,t,n,r){var a=e.__pictorialBundle,i=n.symbolSize,o=n.valueLineWidth,s=n.pathPosition,l=t.valueDim,u=n.repeatTimes||0,c=0,f=i[t.valueDim.index]+o+n.symbolMargin*2;for(uE(e,function(p){p.__pictorialAnimationIndex=c,p.__pictorialRepeatTimes=u,c<u?zf(p,null,v(c),n,r):zf(p,null,{scaleX:0,scaleY:0},n,r,function(){a.remove(p)}),c++});c<u;c++){var d=WK(n);d.__pictorialAnimationIndex=c,d.__pictorialRepeatTimes=u,a.add(d);var h=v(c);zf(d,{x:h.x,y:h.y,scaleX:0,scaleY:0},{scaleX:h.scaleX,scaleY:h.scaleY,rotation:h.rotation},n,r)}function v(p){var g=s.slice(),m=n.pxSign,b=p;return(n.symbolRepeatDirection==="start"?m>0:m<0)&&(b=u-1-p),g[l.index]=f*(b-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function UK(e,t,n,r){var a=e.__pictorialBundle,i=e.__pictorialMainPath;i?zf(i,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,r):(i=e.__pictorialMainPath=WK(n),a.add(i),zf(i,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,r))}function YK(e,t,n){var r=Ie({},t.barRectShape),a=e.__pictorialBarRect;a?zf(a,null,{shape:r},t,n):(a=e.__pictorialBarRect=new Zt({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,e.add(a))}function jK(e,t,n,r){if(n.symbolClip){var a=e.__pictorialClipPath,i=Ie({},n.clipShape),o=t.valueDim,s=n.animationModel,l=n.dataIndex;if(a)nn(a,{shape:i},s,l);else{i[o.wh]=0,a=new Zt({shape:i}),e.__pictorialBundle.setClipPath(a),e.__pictorialClipPath=a;var u={};u[o.wh]=n.clipShape[o.wh],gg[r?"updateProps":"initProps"](a,{shape:u},s,l)}}}function g3(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=GHe,n.isAnimationEnabled=WHe,n}function GHe(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function WHe(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function m3(e,t,n,r){var a=new bt,i=new bt;return a.add(i),a.__pictorialBundle=i,i.x=n.bundlePosition[0],i.y=n.bundlePosition[1],n.symbolRepeat?KK(a,t,n):UK(a,t,n),YK(a,n,r),jK(a,t,n,r),a.__pictorialShapeStr=qK(e,n),a.__pictorialSymbolMeta=n,a}function KHe(e,t,n){var r=n.animationModel,a=n.dataIndex,i=e.__pictorialBundle;nn(i,{x:n.bundlePosition[0],y:n.bundlePosition[1]},r,a),n.symbolRepeat?KK(e,t,n,!0):UK(e,t,n,!0),YK(e,n,!0),jK(e,t,n,!0)}function y3(e,t,n,r){var a=r.__pictorialBarRect;a&&a.removeTextContent();var i=[];uE(r,function(o){i.push(o)}),r.__pictorialMainPath&&i.push(r.__pictorialMainPath),r.__pictorialClipPath&&(n=null),F(i,function(o){ml(o,{scaleX:0,scaleY:0},n,t,function(){r.parent&&r.parent.remove(r)})}),e.setItemGraphicEl(t,null)}function qK(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function uE(e,t,n){F(e.__pictorialBundle.children(),function(r){r!==e.__pictorialBarRect&&t.call(n,r)})}function zf(e,t,n,r,a,i){t&&e.attr(t),r.symbolClip&&!a?n&&e.attr(n):n&&gg[a?"updateProps":"initProps"](e,n,r.animationModel,r.dataIndex,i)}function b3(e,t,n){var r=n.dataIndex,a=n.itemModel,i=a.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=a.getModel(["blur","itemStyle"]).getItemStyle(),l=a.getModel(["select","itemStyle"]).getItemStyle(),u=a.getShallow("cursor"),c=i.get("focus"),f=i.get("blurScope"),d=i.get("scale");uE(e,function(p){if(p instanceof vr){var g=p.style;p.useStyle(Ie({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},n.style))}else p.useStyle(n.style);var m=p.ensureState("emphasis");m.style=o,d&&(m.scaleX=p.scaleX*1.1,m.scaleY=p.scaleY*1.1),p.ensureState("blur").style=s,p.ensureState("select").style=l,u&&(p.cursor=u),p.z2=n.z2});var h=t.valueDim.posDesc[+(n.boundingLength>0)],v=e.__pictorialBarRect;Tr(v,lr(a),{labelFetcher:t.seriesModel,labelDataIndex:r,defaultText:vd(t.seriesModel.getData(),r),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:h}),$n(e,c,f,i.get("disabled"))}function _3(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}const UHe=BHe;var YHe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return t.prototype.getInitialData=function(n){return n.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=Rl(nb.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(nb);const jHe=YHe;function qHe(e){e.registerChartView(UHe),e.registerSeriesModel(jHe),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,xt(I9,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,D9("pictorialBar"))}var XHe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._layers=[],n}return t.prototype.render=function(n,r,a){var i=n.getData(),o=this,s=this.group,l=n.getLayerSeries(),u=i.getLayout("layoutInfo"),c=u.rect,f=u.boundaryGap;s.x=0,s.y=c.y+f[0];function d(g){return g.name}var h=new is(this._layersSeries||[],l,d,d),v=[];h.add(et(p,this,"add")).update(et(p,this,"update")).remove(et(p,this,"remove")).execute();function p(g,m,b){var _=o._layers;if(g==="remove"){s.remove(_[m]);return}for(var w=[],C=[],S,x=l[m].indices,T=0;T<x.length;T++){var M=i.getItemLayout(x[T]),A=M.x,k=M.y0,E=M.y;w.push(A,k),C.push(A,k+E),S=i.getItemVisual(x[T],"style")}var D,L=i.getItemLayout(x[0]),B=n.getModel("label"),N=B.get("margin"),O=n.getModel("emphasis");if(g==="add"){var $=v[m]=new bt;D=new b7({shape:{points:w,stackedOnPoints:C,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),$.add(D),s.add($),n.isAnimationEnabled()&&D.setClipPath(ZHe(D.getBoundingRect(),n,function(){D.removeClipPath()}))}else{var $=_[b];D=$.childAt(0),s.add($),v[m]=$,nn(D,{shape:{points:w,stackedOnPoints:C}},n),Gi(D)}Tr(D,lr(n),{labelDataIndex:x[T-1],defaultText:i.getName(x[T-1]),inheritColor:S.fill},{normal:{verticalAlign:"middle"}}),D.setTextConfig({position:null,local:!0});var I=D.getTextContent();I&&(I.x=L.x-N,I.y=L.y0+L.y/2),D.useStyle(S),i.setItemGraphicEl(m,D),xr(D,n),$n(D,O.get("focus"),O.get("blurScope"),O.get("disabled"))}this._layersSeries=l,this._layers=v},t.type="themeRiver",t}(vn);function ZHe(e,t,n){var r=new Zt({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return xn(r,{shape:{x:e.x-50,width:e.width+100,height:e.height+20}},t,n),r}const JHe=XHe;var LS=2,QHe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Tg(et(this.getData,this),et(this.getRawData,this))},t.prototype.fixData=function(n){var r=n.length,a={},i=Jx(n,function(d){return a.hasOwnProperty(d[0]+"")||(a[d[0]+""]=-1),d[2]}),o=[];i.buckets.each(function(d,h){o.push({name:h,dataList:d})});for(var s=o.length,l=0;l<s;++l){for(var u=o[l].name,c=0;c<o[l].dataList.length;++c){var f=o[l].dataList[c][0]+"";a[f]=l}for(var f in a)a.hasOwnProperty(f)&&a[f]!==l&&(a[f]=l,n[r]=[f,0,u],r++)}return n},t.prototype.getInitialData=function(n,r){for(var a=this.getReferringComponents("singleAxis",Wn).models[0],i=a.get("type"),o=ln(n.data,function(v){return v[2]!==void 0}),s=this.fixData(o||[]),l=[],u=this.nameMap=ot(),c=0,f=0;f<s.length;++f)l.push(s[f][LS]),u.get(s[f][LS])||(u.set(s[f][LS],c),c++);var d=Kd(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:Z0(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,h=new Or(d,this);return h.initData(s),h},t.prototype.getLayerSeries=function(){for(var n=this.getData(),r=n.count(),a=[],i=0;i<r;++i)a[i]=i;var o=n.mapDimension("single"),s=Jx(a,function(u){return n.get("name",u)}),l=[];return s.buckets.each(function(u,c){u.sort(function(f,d){return n.get(o,f)-n.get(o,d)}),l.push({name:c,indices:u})}),l},t.prototype.getAxisTooltipData=function(n,r,a){Re(n)||(n=n?[n]:[]);for(var i=this.getData(),o=this.getLayerSeries(),s=[],l=o.length,u,c=0;c<l;++c){for(var f=Number.MAX_VALUE,d=-1,h=o[c].indices.length,v=0;v<h;++v){var p=i.get(n[0],o[c].indices[v]),g=Math.abs(p-r);g<=f&&(u=p,f=g,d=o[c].indices[v])}s.push(d)}return{dataIndices:s,nestestValue:u}},t.prototype.formatTooltip=function(n,r,a){var i=this.getData(),o=i.getName(n),s=i.get(i.mapDimension("value"),n);return ur("nameValue",{name:o,value:s})},t.type="series.themeRiver",t.dependencies=["singleAxis"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},t}(_n);const eGe=QHe;function tGe(e,t){e.eachSeriesByType("themeRiver",function(n){var r=n.getData(),a=n.coordinateSystem,i={},o=a.getRect();i.rect=o;var s=n.get("boundaryGap"),l=a.getAxis();if(i.boundaryGap=s,l.orient==="horizontal"){s[0]=qe(s[0],o.height),s[1]=qe(s[1],o.height);var u=o.height-s[0]-s[1];w3(r,n,u)}else{s[0]=qe(s[0],o.width),s[1]=qe(s[1],o.width);var c=o.width-s[0]-s[1];w3(r,n,c)}r.setLayout("layoutInfo",i)})}function w3(e,t,n){if(e.count())for(var r=t.coordinateSystem,a=t.getLayerSeries(),i=e.mapDimension("single"),o=e.mapDimension("value"),s=Oe(a,function(g){return Oe(g.indices,function(m){var b=r.dataToPoint(e.get(i,m));return b[1]=e.get(o,m),b})}),l=nGe(s),u=l.y0,c=n/l.max,f=a.length,d=a[0].indices.length,h,v=0;v<d;++v){h=u[v]*c,e.setItemLayout(a[0].indices[v],{layerIndex:0,x:s[0][v][0],y0:h,y:s[0][v][1]*c});for(var p=1;p<f;++p)h+=s[p-1][v][1]*c,e.setItemLayout(a[p].indices[v],{layerIndex:p,x:s[p][v][0],y0:h,y:s[p][v][1]*c})}}function nGe(e){for(var t=e.length,n=e[0].length,r=[],a=[],i=0,o=0;o<n;++o){for(var s=0,l=0;l<t;++l)s+=e[l][o][1];s>i&&(i=s),r.push(s)}for(var u=0;u<n;++u)a[u]=(i-r[u])/2;i=0;for(var c=0;c<n;++c){var f=r[c]+a[c];f>i&&(i=f)}return{y0:a,max:i}}function rGe(e){e.registerChartView(JHe),e.registerSeriesModel(eGe),e.registerLayout(tGe),e.registerProcessor(xg("themeRiver"))}var aGe=2,iGe=4,oGe=function(e){ge(t,e);function t(n,r,a,i){var o=e.call(this)||this;o.z2=aGe,o.textConfig={inside:!0},Tt(o).seriesIndex=r.seriesIndex;var s=new Xt({z2:iGe,silent:n.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,n,r,a,i),o}return t.prototype.updateData=function(n,r,a,i,o){this.node=r,r.piece=this,a=a||this._seriesModel,i=i||this._ecModel;var s=this;Tt(s).dataIndex=r.dataIndex;var l=r.getModel(),u=l.getModel("emphasis"),c=r.getLayout(),f=Ie({},c);f.label=null;var d=r.getVisual("style");d.lineJoin="bevel";var h=r.getVisual("decal");h&&(d.decal=hd(h,o));var v=Gu(l.getModel("itemStyle"),f,!0);Ie(f,v),F(ta,function(b){var _=s.ensureState(b),w=l.getModel([b,"itemStyle"]);_.style=w.getItemStyle();var C=Gu(w,f);C&&(_.shape=C)}),n?(s.setShape(f),s.shape.r=c.r0,xn(s,{shape:{r:c.r}},a,r.dataIndex)):(nn(s,{shape:f},a),Gi(s)),s.useStyle(d),this._updateLabel(a);var p=l.getShallow("cursor");p&&s.attr("cursor",p),this._seriesModel=a||this._seriesModel,this._ecModel=i||this._ecModel;var g=u.get("focus"),m=g==="ancestor"?r.getAncestorsIndices():g==="descendant"?r.getDescendantIndices():g;$n(this,m,u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(n){var r=this,a=this.node.getModel(),i=a.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),c=Math.sin(l),f=this,d=f.getTextContent(),h=this.node.dataIndex,v=i.get("minAngle")/180*Math.PI,p=i.get("show")&&!(v!=null&&Math.abs(s)<v);d.ignore=!p,F(_p,function(m){var b=m==="normal"?a.getModel("label"):a.getModel([m,"label"]),_=m==="normal",w=_?d:d.ensureState(m),C=n.getFormattedLabel(h,m);_&&(C=C||r.node.name),w.style=gn(b,{},null,m!=="normal",!0),C&&(w.style.text=C);var S=b.get("show");S!=null&&!_&&(w.ignore=!S);var x=g(b,"position"),T=_?f:f.states[m],M=T.style.fill;T.textConfig={outsideFill:b.get("color")==="inherit"?M:null,inside:x!=="outside"};var A,k=g(b,"distance")||0,E=g(b,"align");x==="outside"?(A=o.r+k,E=l>Math.PI/2?"right":"left"):!E||E==="center"?(s===2*Math.PI&&o.r0===0?A=0:A=(o.r+o.r0)/2,E="center"):E==="left"?(A=o.r0+k,l>Math.PI/2&&(E="right")):E==="right"&&(A=o.r-k,l>Math.PI/2&&(E="left")),w.style.align=E,w.style.verticalAlign=g(b,"verticalAlign")||"middle",w.x=A*u+o.cx,w.y=A*c+o.cy;var D=g(b,"rotate"),L=0;D==="radial"?(L=Ii(-l),L>Math.PI/2&&L<Math.PI*1.5&&(L+=Math.PI)):D==="tangential"?(L=Math.PI/2-l,L>Math.PI/2?L-=Math.PI:L<-Math.PI/2&&(L+=Math.PI)):Qt(D)&&(L=D*Math.PI/180),w.rotation=Ii(L)});function g(m,b){var _=m.get(b);return _??i.get(b)}d.dirtyStyle()},t}(na);const S3=oGe;var Z2="sunburstRootToNode",C3="sunburstHighlight",sGe="sunburstUnhighlight";function lGe(e){e.registerAction({type:Z2,update:"updateView"},function(t,n){n.eachComponent({mainType:"series",subType:"sunburst",query:t},r);function r(a,i){var o=Rp(t,[Z2],a);if(o){var s=a.getViewRoot();s&&(t.direction=jA(s,o.node)?"rollUp":"drillDown"),a.resetViewRoot(o.node)}}}),e.registerAction({type:C3,update:"none"},function(t,n,r){t=Ie({},t),n.eachComponent({mainType:"series",subType:"sunburst",query:t},a);function a(i){var o=Rp(t,[C3],i);o&&(t.dataIndex=o.node.dataIndex)}r.dispatchAction(Ie(t,{type:"highlight"}))}),e.registerAction({type:sGe,update:"updateView"},function(t,n,r){t=Ie({},t),r.dispatchAction(Ie(t,{type:"downplay"}))})}var uGe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a,i){var o=this;this.seriesModel=n,this.api=a,this.ecModel=r;var s=n.getData(),l=s.tree.root,u=n.getViewRoot(),c=this.group,f=n.get("renderLabelForZeroData"),d=[];u.eachNode(function(b){d.push(b)});var h=this._oldChildren||[];v(d,h),m(l,u),this._initEvents(),this._oldChildren=d;function v(b,_){if(b.length===0&&_.length===0)return;new is(_,b,w,w).add(C).update(C).remove(xt(C,null)).execute();function w(S){return S.getId()}function C(S,x){var T=S==null?null:b[S],M=x==null?null:_[x];p(T,M)}}function p(b,_){if(!f&&b&&!b.getValue()&&(b=null),b!==l&&_!==l){if(_&&_.piece)b?(_.piece.updateData(!1,b,n,r,a),s.setItemGraphicEl(b.dataIndex,_.piece)):g(_);else if(b){var w=new S3(b,n,r,a);c.add(w),s.setItemGraphicEl(b.dataIndex,w)}}}function g(b){b&&b.piece&&(c.remove(b.piece),b.piece=null)}function m(b,_){_.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,b,n,r,a):(o.virtualPiece=new S3(b,n,r,a),c.add(o.virtualPiece)),_.piece.off("click"),o.virtualPiece.on("click",function(w){o._rootToNode(_.parentNode)})):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}},t.prototype._initEvents=function(){var n=this;this.group.off("click"),this.group.on("click",function(r){var a=!1,i=n.seriesModel.getViewRoot();i.eachNode(function(o){if(!a&&o.piece&&o.piece===r.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")n._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";F0(u,c)}}a=!0}})})},t.prototype._rootToNode=function(n){n!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:Z2,from:this.uid,seriesId:this.seriesModel.id,targetNode:n})},t.prototype.containPoint=function(n,r){var a=r.getData(),i=a.getItemLayout(0);if(i){var o=n[0]-i.cx,s=n[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},t.type="sunburst",t}(vn);const cGe=uGe;var fGe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreStyleOnData=!0,n}return t.prototype.getInitialData=function(n,r){var a={name:n.name,children:n.data};XK(a);var i=this._levelModels=Oe(n.levels||[],function(l){return new dn(l,this,r)},this),o=YA.createTree(a,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var f=o.getNodeByDataIndex(c),d=i[f.depth];return d&&(u.parentModel=d),u})}return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(n){var r=e.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(n);return r.treePathInfo=X1(a,this),r},t.prototype.getLevelModel=function(n){return this._levelModels&&this._levelModels[n.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(n){n?this._viewRoot=n:n=this._viewRoot;var r=this.getRawData().tree.root;(!n||n!==r&&!r.contains(n))&&(this._viewRoot=r)},t.prototype.enableAriaDecal=function(){eK(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}(_n);function XK(e){var t=0;F(e.children,function(r){XK(r);var a=r.value;Re(a)&&(a=a[0]),t+=a});var n=e.value;Re(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=t),n<0&&(n=0),Re(e.value)?e.value[0]=n:e.value=n}const dGe=fGe;var x3=Math.PI/180;function hGe(e,t,n){t.eachSeriesByType(e,function(r){var a=r.get("center"),i=r.get("radius");Re(i)||(i=[0,i]),Re(a)||(a=[a,a]);var o=n.getWidth(),s=n.getHeight(),l=Math.min(o,s),u=qe(a[0],o),c=qe(a[1],s),f=qe(i[0],l/2),d=qe(i[1],l/2),h=-r.get("startAngle")*x3,v=r.get("minAngle")*x3,p=r.getData().tree.root,g=r.getViewRoot(),m=g.depth,b=r.get("sort");b!=null&&ZK(g,b);var _=0;F(g.children,function(N){!isNaN(N.getValue())&&_++});var w=g.getValue(),C=Math.PI/(w||_)*2,S=g.depth>0,x=g.height-(S?-1:1),T=(d-f)/(x||1),M=r.get("clockwise"),A=r.get("stillShowZeroSum"),k=M?1:-1,E=function(N,O){if(N){var $=O;if(N!==p){var I=N.getValue(),z=w===0&&A?C:I*C;z<v&&(z=v),$=O+k*z;var G=N.depth-m-(S?-1:1),U=f+T*G,Z=f+T*(G+1),ae=r.getLevelModel(N);if(ae){var J=ae.get("r0",!0),Q=ae.get("r",!0),ee=ae.get("radius",!0);ee!=null&&(J=ee[0],Q=ee[1]),J!=null&&(U=qe(J,l/2)),Q!=null&&(Z=qe(Q,l/2))}N.setLayout({angle:z,startAngle:O,endAngle:$,clockwise:M,cx:u,cy:c,r0:U,r:Z})}if(N.children&&N.children.length){var j=0;F(N.children,function(de){j+=E(de,O+j)})}return $-O}};if(S){var D=f,L=f+T,B=Math.PI*2;p.setLayout({angle:B,startAngle:h,endAngle:h+B,clockwise:M,cx:u,cy:c,r0:D,r:L})}E(g,h)})}function ZK(e,t){var n=e.children||[];e.children=vGe(n,t),n.length&&F(e.children,function(r){ZK(r,t)})}function vGe(e,t){if(ut(t)){var n=Oe(e,function(a,i){var o=a.getValue();return{params:{depth:a.depth,height:a.height,dataIndex:a.dataIndex,getValue:function(){return o}},index:i}});return n.sort(function(a,i){return t(a.params,i.params)}),Oe(n,function(a){return e[a.index]})}else{var r=t==="asc";return e.sort(function(a,i){var o=(a.getValue()-i.getValue())*(r?1:-1);return o===0?(a.dataIndex-i.dataIndex)*(r?-1:1):o})}}function pGe(e){var t={};function n(r,a,i){for(var o=r;o&&o.depth>1;)o=o.parentNode;var s=a.getColorFromPalette(o.name||o.dataIndex+"",t);return r.depth>1&&Je(s)&&(s=I0(s,(r.depth-1)/(i-1)*.5)),s}e.eachSeriesByType("sunburst",function(r){var a=r.getData(),i=a.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=n(o,r,i.root.height));var u=a.ensureUniqueItemVisual(o.dataIndex,"style");Ie(u,l)})})}function gGe(e){e.registerChartView(cGe),e.registerSeriesModel(dGe),e.registerLayout(xt(hGe,"sunburst")),e.registerProcessor(xt(xg,"sunburst")),e.registerVisual(pGe),lGe(e)}var T3={color:"fill",borderColor:"stroke"},mGe={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},qo=en(),yGe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(n,r){return Io(null,this)},t.prototype.getDataParams=function(n,r,a){var i=e.prototype.getDataParams.call(this,n,r);return a&&(i.info=qo(a).info),i},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(_n);const bGe=yGe;function _Ge(e,t){return t=t||[0,0],Oe(["x","y"],function(n,r){var a=this.getAxis(n),i=t[r],o=e[r]/2;return a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(i-o)-a.dataToCoord(i+o))},this)}function wGe(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(n){return e.dataToPoint(n)},size:et(_Ge,e)}}}function SGe(e,t){return t=t||[0,0],Oe([0,1],function(n){var r=t[n],a=e[n]/2,i=[],o=[];return i[n]=r-a,o[n]=r+a,i[1-n]=o[1-n]=t[1-n],Math.abs(this.dataToPoint(i)[n]-this.dataToPoint(o)[n])},this)}function CGe(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(n){return e.dataToPoint(n)},size:et(SGe,e)}}}function xGe(e,t){var n=this.getAxis(),r=t instanceof Array?t[0]:t,a=(e instanceof Array?e[0]:e)/2;return n.type==="category"?n.getBandWidth():Math.abs(n.dataToCoord(r-a)-n.dataToCoord(r+a))}function TGe(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(n){return e.dataToPoint(n)},size:et(xGe,e)}}}function MGe(e,t){return t=t||[0,0],Oe(["Radius","Angle"],function(n,r){var a="get"+n+"Axis",i=this[a](),o=t[r],s=e[r]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return n==="Angle"&&(l=l*Math.PI/180),l},this)}function kGe(e){var t=e.getRadiusAxis(),n=e.getAngleAxis(),r=t.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:r[1],r0:r[0]},api:{coord:function(a){var i=t.dataToRadius(a[0]),o=n.dataToAngle(a[1]),s=e.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:et(MGe,e)}}}function AGe(e){var t=e.getRect(),n=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(r,a){return e.dataToPoint(r,a)}}}}function JK(e,t,n,r){return e&&(e.legacy||e.legacy!==!1&&!n&&!r&&t!=="tspan"&&(t==="text"||nt(e,"text")))}function QK(e,t,n){var r=e,a,i,o;if(t==="text")o=r;else{o={},nt(r,"text")&&(o.text=r.text),nt(r,"rich")&&(o.rich=r.rich),nt(r,"textFill")&&(o.fill=r.textFill),nt(r,"textStroke")&&(o.stroke=r.textStroke),nt(r,"fontFamily")&&(o.fontFamily=r.fontFamily),nt(r,"fontSize")&&(o.fontSize=r.fontSize),nt(r,"fontStyle")&&(o.fontStyle=r.fontStyle),nt(r,"fontWeight")&&(o.fontWeight=r.fontWeight),i={type:"text",style:o,silent:!0},a={};var s=nt(r,"textPosition");n?a.position=s?r.textPosition:"inside":s&&(a.position=r.textPosition),nt(r,"textPosition")&&(a.position=r.textPosition),nt(r,"textOffset")&&(a.offset=r.textOffset),nt(r,"textRotation")&&(a.rotation=r.textRotation),nt(r,"textDistance")&&(a.distance=r.textDistance)}return M3(o,e),F(o.rich,function(l){M3(l,l)}),{textConfig:a,textContent:i}}function M3(e,t){t&&(t.font=t.textFont||t.font,nt(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),nt(t,"textAlign")&&(e.align=t.textAlign),nt(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),nt(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),nt(t,"textWidth")&&(e.width=t.textWidth),nt(t,"textHeight")&&(e.height=t.textHeight),nt(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),nt(t,"textPadding")&&(e.padding=t.textPadding),nt(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),nt(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),nt(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),nt(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),nt(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),nt(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),nt(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function k3(e,t,n){var r=e;r.textPosition=r.textPosition||n.position||"inside",n.offset!=null&&(r.textOffset=n.offset),n.rotation!=null&&(r.textRotation=n.rotation),n.distance!=null&&(r.textDistance=n.distance);var a=r.textPosition.indexOf("inside")>=0,i=e.fill||"#000";A3(r,t);var o=r.textFill==null;return a?o&&(r.textFill=n.insideFill||"#fff",!r.textStroke&&n.insideStroke&&(r.textStroke=n.insideStroke),!r.textStroke&&(r.textStroke=i),r.textStrokeWidth==null&&(r.textStrokeWidth=2)):(o&&(r.textFill=e.fill||n.outsideFill||"#000"),!r.textStroke&&n.outsideStroke&&(r.textStroke=n.outsideStroke)),r.text=t.text,r.rich=t.rich,F(t.rich,function(s){A3(s,s)}),r}function A3(e,t){t&&(nt(t,"fill")&&(e.textFill=t.fill),nt(t,"stroke")&&(e.textStroke=t.fill),nt(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),nt(t,"font")&&(e.font=t.font),nt(t,"fontStyle")&&(e.fontStyle=t.fontStyle),nt(t,"fontWeight")&&(e.fontWeight=t.fontWeight),nt(t,"fontSize")&&(e.fontSize=t.fontSize),nt(t,"fontFamily")&&(e.fontFamily=t.fontFamily),nt(t,"align")&&(e.textAlign=t.align),nt(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),nt(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),nt(t,"width")&&(e.textWidth=t.width),nt(t,"height")&&(e.textHeight=t.height),nt(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),nt(t,"padding")&&(e.textPadding=t.padding),nt(t,"borderColor")&&(e.textBorderColor=t.borderColor),nt(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),nt(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),nt(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),nt(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),nt(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),nt(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),nt(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),nt(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),nt(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),nt(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var eU={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},E3=Gt(eU);ui(Co,function(e,t){return e[t]=1,e},{});Co.join(", ");var cb=["","style","shape","extra"],md=en();function cE(e,t,n,r,a){var i=e+"Animation",o=Ld(e,r,a)||{},s=md(t).userDuring;return o.duration>0&&(o.during=s?et(LGe,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),Ie(o,n[i]),o}function Yy(e,t,n,r){r=r||{};var a=r.dataIndex,i=r.isInit,o=r.clearStyle,s=n.isAnimationEnabled(),l=md(e),u=t.style;l.userDuring=t.during;var c={},f={};if(OGe(e,t,f),D3("shape",t,f),D3("extra",t,f),!i&&s&&(RGe(e,t,c),I3("shape",e,t,c),I3("extra",e,t,c),$Ge(e,t,u,c)),f.style=u,EGe(e,f,o),DGe(e,t),s)if(i){var d={};F(cb,function(v){var p=v?t[v]:t;p&&p.enterFrom&&(v&&(d[v]=d[v]||{}),Ie(v?d[v]:d,p.enterFrom))});var h=cE("enter",e,t,n,a);h.duration>0&&e.animateFrom(d,h)}else IGe(e,t,a||0,n,c);tU(e,t),u?e.dirty():e.markRedraw()}function tU(e,t){for(var n=md(e).leaveToProps,r=0;r<cb.length;r++){var a=cb[r],i=a?t[a]:t;i&&i.leaveTo&&(n||(n=md(e).leaveToProps={}),a&&(n[a]=n[a]||{}),Ie(a?n[a]:n,i.leaveTo))}}function Q1(e,t,n,r){if(e){var a=e.parent,i=md(e).leaveToProps;if(i){var o=cE("update",e,t,n,0);o.done=function(){a.remove(e),r&&r()},e.animateTo(i,o)}else a.remove(e),r&&r()}}function nc(e){return e==="all"}function EGe(e,t,n){var r=t.style;if(!e.isGroup&&r){if(n){e.useStyle({});for(var a=e.animators,i=0;i<a.length;i++){var o=a[i];o.targetName==="style"&&o.changeTarget(e.style)}}e.setStyle(r)}t&&(t.style=null,t&&e.attr(t),t.style=r)}function IGe(e,t,n,r,a){if(a){var i=cE("update",e,t,r,n);i.duration>0&&e.animateFrom(a,i)}}function DGe(e,t){nt(t,"silent")&&(e.silent=t.silent),nt(t,"ignore")&&(e.ignore=t.ignore),e instanceof ci&&nt(t,"invisible")&&(e.invisible=t.invisible),e instanceof zt&&nt(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var eo={},PGe={setTransform:function(e,t){return eo.el[e]=t,this},getTransform:function(e){return eo.el[e]},setShape:function(e,t){var n=eo.el,r=n.shape||(n.shape={});return r[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){var t=eo.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=eo.el,r=n.style;return r&&(r[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){var t=eo.el.style;if(t)return t[e]},setExtra:function(e,t){var n=eo.el.extra||(eo.el.extra={});return n[e]=t,this},getExtra:function(e){var t=eo.el.extra;if(t)return t[e]}};function LGe(){var e=this,t=e.el;if(t){var n=md(t).userDuring,r=e.userDuring;if(n!==r){e.el=e.userDuring=null;return}eo.el=t,r(PGe)}}function I3(e,t,n,r){var a=n[e];if(a){var i=t[e],o;if(i){var s=n.transition,l=a.transition;if(l)if(!o&&(o=r[e]={}),nc(l))Ie(o,i);else for(var u=hn(l),c=0;c<u.length;c++){var f=u[c],d=i[f];o[f]=d}else if(nc(s)||$t(s,e)>=0){!o&&(o=r[e]={});for(var h=Gt(i),c=0;c<h.length;c++){var f=h[c],d=i[f];NGe(a[f],d)&&(o[f]=d)}}}}}function D3(e,t,n){var r=t[e];if(r)for(var a=n[e]={},i=Gt(r),o=0;o<i.length;o++){var s=i[o];a[s]=pv(r[s])}}function RGe(e,t,n){for(var r=t.transition,a=nc(r)?Co:hn(r||[]),i=0;i<a.length;i++){var o=a[i];if(!(o==="style"||o==="shape"||o==="extra")){var s=e[o];n[o]=s}}}function OGe(e,t,n){for(var r=0;r<E3.length;r++){var a=E3[r],i=eU[a],o=t[a];o&&(n[i[0]]=o[0],n[i[1]]=o[1])}for(var r=0;r<Co.length;r++){var s=Co[r];t[s]!=null&&(n[s]=t[s])}}function $Ge(e,t,n,r){if(n){var a=e.style,i;if(a){var o=n.transition,s=t.transition;if(o&&!nc(o)){var l=hn(o);!i&&(i=r.style={});for(var u=0;u<l.length;u++){var c=l[u],f=a[c];i[c]=f}}else if(e.getAnimationStyleProps&&(nc(s)||nc(o)||$t(s,"style")>=0)){var d=e.getAnimationStyleProps(),h=d?d.style:null;if(h){!i&&(i=r.style={});for(var v=Gt(n),u=0;u<v.length;u++){var c=v[u];if(h[c]){var f=a[c];i[c]=f}}}}}}}function NGe(e,t){return Cr(e)?e!==t:e!=null&&isFinite(e)}var nU=en(),BGe=["percent","easing","shape","style","extra"];function rU(e){e.stopAnimation("keyframe"),e.attr(nU(e))}function fb(e,t,n){if(!(!n.isAnimationEnabled()||!t)){if(Re(t)){F(t,function(s){fb(e,s,n)});return}var r=t.keyframes,a=t.duration;if(n&&a==null){var i=Ld("enter",n,0);a=i&&i.duration}if(!(!r||!a)){var o=nU(e);F(cb,function(s){if(!(s&&!e[s])){var l;r.sort(function(u,c){return u.percent-c.percent}),F(r,function(u){var c=e.animators,f=s?u[s]:u;if(f){var d=Gt(f);if(s||(d=ln(d,function(p){return $t(BGe,p)<0})),!!d.length){l||(l=e.animate(s,t.loop,!0),l.scope="keyframe");for(var h=0;h<c.length;h++)c[h]!==l&&c[h].targetName===l.targetName&&c[h].stopTracks(d);s&&(o[s]=o[s]||{});var v=s?o[s]:o;F(d,function(p){v[p]=((s?e[s]:e)||{})[p]}),l.whenWithKeys(a*u.percent,f,d,u.easing)}}}),l&&l.delay(t.delay||0).duration(a).start(t.easing)}})}}}var Xo="emphasis",qs="normal",fE="blur",dE="select",wl=[qs,Xo,fE,dE],RS={normal:["itemStyle"],emphasis:[Xo,"itemStyle"],blur:[fE,"itemStyle"],select:[dE,"itemStyle"]},OS={normal:["label"],emphasis:[Xo,"label"],blur:[fE,"label"],select:[dE,"label"]},VGe=["x","y"],zGe="e\0\0",Va={normal:{},emphasis:{},blur:{},select:{}},FGe={cartesian2d:wGe,geo:CGe,single:TGe,polar:kGe,calendar:AGe};function J2(e){return e instanceof zt}function Q2(e){return e instanceof ci}function HGe(e,t){t.copyTransform(e),Q2(t)&&Q2(e)&&(t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel,t.invisible=e.invisible,t.ignore=e.ignore,J2(t)&&J2(e)&&t.setShape(e.shape))}var GGe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a,i){this._progressiveEls=null;var o=this._data,s=n.getData(),l=this.group,u=P3(n,s,r,a);o||l.removeAll(),s.diff(o).add(function(f){$S(a,null,f,u(f,i),n,l,s)}).remove(function(f){var d=o.getItemGraphicEl(f);d&&Q1(d,qo(d).option,n)}).update(function(f,d){var h=o.getItemGraphicEl(d);$S(a,h,f,u(f,i),n,l,s)}).execute();var c=n.get("clip",!0)?Y1(n.coordinateSystem,!1,n):null;c?l.setClipPath(c):l.removeClipPath(),this._data=s},t.prototype.incrementalPrepareRender=function(n,r,a){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(n,r,a,i,o){var s=r.getData(),l=P3(r,s,a,i),u=this._progressiveEls=[];function c(h){h.isGroup||(h.incremental=!0,h.ensureState("emphasis").hoverLayer=!0)}for(var f=n.start;f<n.end;f++){var d=$S(null,null,f,l(f,o),r,this.group,s);d&&(d.traverse(c),u.push(d))}},t.prototype.eachRendered=function(n){Ll(this._progressiveEls||this.group,n)},t.prototype.filterForExposedEvent=function(n,r,a,i){var o=r.element;if(o==null||a.name===o)return!0;for(;(a=a.__hostTarget||a.parent)&&a!==this.group;)if(a.name===o)return!0;return!1},t.type="custom",t}(vn);const WGe=GGe;function hE(e){var t=e.type,n;if(t==="path"){var r=e.shape,a=r.width!=null&&r.height!=null?{x:r.x||0,y:r.y||0,width:r.width,height:r.height}:null,i=oU(r);n=vg(i,null,a,r.layout||"center"),qo(n).customPathData=i}else if(t==="image")n=new vr({}),qo(n).customImagePath=e.style.image;else if(t==="text")n=new Xt({});else if(t==="group")n=new bt;else{if(t==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var o=E1(t);if(!o){var s="";an(s)}n=new o}return qo(n).customGraphicType=t,n.name=e.name,n.z2EmphasisLift=1,n.z2SelectLift=1,n}function vE(e,t,n,r,a,i,o){rU(t);var s=a&&a.normal.cfg;s&&t.setTextConfig(s),r&&r.transition==null&&(r.transition=VGe);var l=r&&r.style;if(l){if(t.type==="text"){var u=l;nt(u,"textFill")&&(u.fill=u.textFill),nt(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,f=J2(t)?l.decal:null;e&&f&&(f.dirty=!0,c=hd(f,e)),l.__decalPattern=c}if(Q2(t)&&l){var c=l.__decalPattern;c&&(l.decal=c)}Yy(t,r,i,{dataIndex:n,isInit:o,clearStyle:!0}),fb(t,r.keyframeAnimation,i)}function aU(e,t,n,r,a){var i=t.isGroup?null:t,o=a&&a[e].cfg;if(i){var s=i.ensureState(e);if(r===!1){var l=i.getState(e);l&&(l.style=null)}else s.style=r||null;o&&(s.textConfig=o),dc(i)}}function KGe(e,t,n){if(!e.isGroup){var r=e,a=n.currentZ,i=n.currentZLevel;r.z=a,r.zlevel=i;var o=t.z2;o!=null&&(r.z2=o||0);for(var s=0;s<wl.length;s++)UGe(r,t,wl[s])}}function UGe(e,t,n){var r=n===qs,a=r?t:db(t,n),i=a?a.z2:null,o;i!=null&&(o=r?e:e.ensureState(n),o.z2=i||0)}function P3(e,t,n,r){var a=e.get("renderItem"),i=e.coordinateSystem,o={};i&&(o=i.prepareCustoms?i.prepareCustoms(i):FGe[i.type](i));for(var s=ft({getWidth:r.getWidth,getHeight:r.getHeight,getZr:r.getZr,getDevicePixelRatio:r.getDevicePixelRatio,value:w,style:S,ordinalRawValue:C,styleEmphasis:x,visual:A,barLayout:k,currentSeriesIndices:E,font:D},o.api||{}),l={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:o.coordSys,dataInsideLength:t.count(),encode:YGe(e.getData())},u,c,f={},d={},h={},v={},p=0;p<wl.length;p++){var g=wl[p];h[g]=e.getModel(RS[g]),v[g]=e.getModel(OS[g])}function m(L){return L===u?c||(c=t.getItemModel(L)):t.getItemModel(L)}function b(L,B){return t.hasItemOption?L===u?f[B]||(f[B]=m(L).getModel(RS[B])):m(L).getModel(RS[B]):h[B]}function _(L,B){return t.hasItemOption?L===u?d[B]||(d[B]=m(L).getModel(OS[B])):m(L).getModel(OS[B]):v[B]}return function(L,B){return u=L,c=null,f={},d={},a&&a(ft({dataIndexInside:L,dataIndex:t.getRawIndex(L),actionType:B?B.type:null},l),s)};function w(L,B){return B==null&&(B=u),t.getStore().get(t.getDimensionIndex(L||0),B)}function C(L,B){B==null&&(B=u),L=L||0;var N=t.getDimensionInfo(L);if(!N){var O=t.getDimensionIndex(L);return O>=0?t.getStore().get(O,B):void 0}var $=t.get(N.name,B),I=N&&N.ordinalMeta;return I?I.categories[$]:$}function S(L,B){B==null&&(B=u);var N=t.getItemVisual(B,"style"),O=N&&N.fill,$=N&&N.opacity,I=b(B,qs).getItemStyle();O!=null&&(I.fill=O),$!=null&&(I.opacity=$);var z={inheritColor:Je(O)?O:"#000"},G=_(B,qs),U=gn(G,null,z,!1,!0);U.text=G.getShallow("show")?Lt(e.getFormattedLabel(B,qs),vd(t,B)):null;var Z=V0(G,z,!1);return M(L,I),I=k3(I,U,Z),L&&T(I,L),I.legacy=!0,I}function x(L,B){B==null&&(B=u);var N=b(B,Xo).getItemStyle(),O=_(B,Xo),$=gn(O,null,null,!0,!0);$.text=O.getShallow("show")?Ri(e.getFormattedLabel(B,Xo),e.getFormattedLabel(B,qs),vd(t,B)):null;var I=V0(O,null,!0);return M(L,N),N=k3(N,$,I),L&&T(N,L),N.legacy=!0,N}function T(L,B){for(var N in B)nt(B,N)&&(L[N]=B[N])}function M(L,B){L&&(L.textFill&&(B.textFill=L.textFill),L.textPosition&&(B.textPosition=L.textPosition))}function A(L,B){if(B==null&&(B=u),nt(T3,L)){var N=t.getItemVisual(B,"style");return N?N[T3[L]]:null}if(nt(mGe,L))return t.getItemVisual(B,L)}function k(L){if(i.type==="cartesian2d"){var B=i.getBaseAxis();return ONe(ft({axis:B},L))}}function E(){return n.getCurrentSeriesIndices()}function D(L){return BG(L,n)}}function YGe(e){var t={};return F(e.dimensions,function(n){var r=e.getDimensionInfo(n);if(!r.isExtraCoord){var a=r.coordDim,i=t[a]=t[a]||[];i[r.coordDimIndex]=e.getDimensionIndex(n)}}),t}function $S(e,t,n,r,a,i,o){if(!r){i.remove(t);return}var s=pE(e,t,n,r,a,i);return s&&o.setItemGraphicEl(n,s),s&&$n(s,r.focus,r.blurScope,r.emphasisDisabled),s}function pE(e,t,n,r,a,i){var o=-1,s=t;t&&iU(t,r,a)&&(o=$t(i.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=hE(r),s&&HGe(s,u)),r.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Va.normal.cfg=Va.normal.conOpt=Va.emphasis.cfg=Va.emphasis.conOpt=Va.blur.cfg=Va.blur.conOpt=Va.select.cfg=Va.select.conOpt=null,Va.isLegacy=!1,qGe(u,n,r,a,l,Va),jGe(u,n,r,a,l),vE(e,u,n,r,Va,a,l),nt(r,"info")&&(qo(u).info=r.info);for(var c=0;c<wl.length;c++){var f=wl[c];if(f!==qs){var d=db(r,f),h=gE(r,d,f);aU(f,u,d,h,Va)}}return KGe(u,r,a),r.type==="group"&&XGe(e,u,n,r,a),o>=0?i.replaceAt(u,o):i.add(u),u}function iU(e,t,n){var r=qo(e),a=t.type,i=t.shape,o=t.style;return n.isUniversalTransitionEnabled()||a!=null&&a!==r.customGraphicType||a==="path"&&eWe(i)&&oU(i)!==r.customPathData||a==="image"&&nt(o,"image")&&o.image!==r.customImagePath}function jGe(e,t,n,r,a){var i=n.clipPath;if(i===!1)e&&e.getClipPath()&&e.removeClipPath();else if(i){var o=e.getClipPath();o&&iU(o,i,r)&&(o=null),o||(o=hE(i),e.setClipPath(o)),vE(null,o,t,i,null,r,a)}}function qGe(e,t,n,r,a,i){if(!e.isGroup){L3(n,null,i),L3(n,Xo,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var c=e.getTextContent();if(o===!1)c&&e.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=hE(o),e.setTextContent(c)),vE(null,c,t,o,null,r,a);for(var f=o&&o.style,d=0;d<wl.length;d++){var h=wl[d];if(h!==qs){var v=i[h].conOpt;aU(h,c,v,gE(o,v,h),null)}}f?c.dirty():c.markRedraw()}}}}function L3(e,t,n){var r=t?db(e,t):e,a=t?gE(e,r,Xo):e.style,i=e.type,o=r?r.textConfig:null,s=e.textContent,l=s?t?db(s,t):s:null;if(a&&(n.isLegacy||JK(a,i,!!o,!!l))){n.isLegacy=!0;var u=QK(a,i,!t);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!t&&l){var c=l;!c.type&&(c.type="text")}var f=t?n[t]:n.normal;f.cfg=o,f.conOpt=l}function db(e,t){return t?e?e[t]:null:e}function gE(e,t,n){var r=t&&t.style;return r==null&&n===Xo&&e&&(r=e.styleEmphasis),r}function XGe(e,t,n,r,a){var i=r.children,o=i?i.length:0,s=r.$mergeChildren,l=s==="byName"||r.diffChildrenByName,u=s===!1;if(!(!o&&!l&&!u)){if(l){JGe({api:e,oldChildren:t.children()||[],newChildren:i||[],dataIndex:n,seriesModel:a,group:t});return}u&&t.removeAll();for(var c=0;c<o;c++){var f=i[c],d=t.childAt(c);f?(f.ignore==null&&(f.ignore=!1),pE(e,d,n,f,a,t)):d.ignore=!0}for(var h=t.childCount()-1;h>=c;h--){var v=t.childAt(h);ZGe(t,v,a)}}}function ZGe(e,t,n){t&&Q1(t,qo(e).option,n)}function JGe(e){new is(e.oldChildren,e.newChildren,R3,R3,e).add(O3).update(O3).remove(QGe).execute()}function R3(e,t){var n=e&&e.name;return n??zGe+t}function O3(e,t){var n=this.context,r=e!=null?n.newChildren[e]:null,a=t!=null?n.oldChildren[t]:null;pE(n.api,a,n.dataIndex,r,n.seriesModel,n.group)}function QGe(e){var t=this.context,n=t.oldChildren[e];n&&Q1(n,qo(n).option,t.seriesModel)}function oU(e){return e&&(e.pathData||e.d)}function eWe(e){return e&&(nt(e,"pathData")||nt(e,"d"))}function tWe(e){e.registerChartView(WGe),e.registerSeriesModel(bGe)}var ku=en(),$3=pt,NS=et,nWe=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,n,r,a){var i=n.get("value"),o=n.get("status");if(this._axisModel=t,this._axisPointerModel=n,this._api=r,!(!a&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,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,i,t,n,r);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(r),this._lastGraphicKey=c;var f=this._moveAnimation=this.determineAnimation(t,n);if(!s)s=this._group=new bt,this.createPointerEl(s,u,t,n),this.createLabelEl(s,u,t,n),r.getZr().add(s);else{var d=xt(N3,n,f);this.updatePointerEl(s,u,d),this.updateLabelEl(s,u,d,n)}V3(s,n,!0),this._renderHandle(i)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,n){var r=n.get("animation"),a=t.axis,i=a.type==="category",o=n.get("snap");if(!o&&!i)return!1;if(r==="auto"||r==null){var s=this.animationThreshold;if(i&&a.getBandWidth()>s)return!0;if(o){var l=zA(t).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return r===!0},e.prototype.makeElOption=function(t,n,r,a,i){},e.prototype.createPointerEl=function(t,n,r,a){var i=n.pointer;if(i){var o=ku(t).pointerEl=new gg[i.type]($3(n.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,n,r,a){if(n.label){var i=ku(t).labelEl=new Xt($3(n.label));t.add(i),B3(i,a)}},e.prototype.updatePointerEl=function(t,n,r){var a=ku(t).pointerEl;a&&n.pointer&&(a.setStyle(n.pointer.style),r(a,{shape:n.pointer.shape}))},e.prototype.updateLabelEl=function(t,n,r,a){var i=ku(t).labelEl;i&&(i.setStyle(n.label.style),r(i,{x:n.label.x,y:n.label.y}),B3(i,a))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var n=this._axisPointerModel,r=this._api.getZr(),a=this._handle,i=n.getModel("handle"),o=n.get("status");if(!i.get("show")||!o||o==="hide"){a&&r.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=Rd(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){ns(u.event)},onmousedown:NS(this._onHandleDragMove,this,0,0),drift:NS(this._onHandleDragMove,this),ondragend:NS(this._onHandleDragEnd,this)}),r.add(a)),V3(a,n,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");Re(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,Gd(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,n){N3(this._axisPointerModel,!n&&this._moveAnimation,this._handle,BS(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,n){var r=this._handle;if(r){this._dragging=!0;var a=this.updateHandleTransform(BS(r),[t,n],this._axisModel,this._axisPointerModel);this._payloadInfo=a,r.stopAnimation(),r.attr(BS(a)),ku(r).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var n=this._payloadInfo,r=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:n.cursorPoint[0],y:n.cursorPoint[1],tooltipOption:n.tooltipOption,axesInfo:[{axisDim:r.axis.dim,axisIndex:r.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var n=this._axisPointerModel.get("value");this._moveHandleToValue(n),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var n=t.getZr(),r=this._group,a=this._handle;n&&r&&(this._lastGraphicKey=null,r&&n.remove(r),a&&n.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),kp(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,n,r){return r=r||0,{x:t[r],y:t[1-r],width:n[r],height:n[1-r]}},e}();function N3(e,t,n,r){sU(ku(n).lastProp,r)||(ku(n).lastProp=r,t?nn(n,r,e):(n.stopAnimation(),n.attr(r)))}function sU(e,t){if(ht(e)&&ht(t)){var n=!0;return F(t,function(r,a){n=n&&sU(e[a],r)}),!!n}else return e===t}function B3(e,t){e[t.get(["label","show"])?"show":"hide"]()}function BS(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function V3(e,t,n){var r=t.get("z"),a=t.get("zlevel");e&&e.traverse(function(i){i.type!=="group"&&(r!=null&&(i.z=r),a!=null&&(i.zlevel=a),i.silent=n)})}const mE=nWe;function yE(e){var t=e.get("type"),n=e.getModel(t+"Style"),r;return t==="line"?(r=n.getLineStyle(),r.fill=null):t==="shadow"&&(r=n.getAreaStyle(),r.stroke=null),r}function lU(e,t,n,r,a){var i=n.get("value"),o=uU(i,t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=Mc(s.get("padding")||0),u=s.getFont(),c=ug(o,u),f=a.position,d=c.width+l[1]+l[3],h=c.height+l[0]+l[2],v=a.align;v==="right"&&(f[0]-=d),v==="center"&&(f[0]-=d/2);var p=a.verticalAlign;p==="bottom"&&(f[1]-=h),p==="middle"&&(f[1]-=h/2),rWe(f,d,h,r);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),e.label={x:f[0],y:f[1],style:gn(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function rWe(e,t,n,r){var a=r.getWidth(),i=r.getHeight();e[0]=Math.min(e[0]+t,a)-t,e[1]=Math.min(e[1]+n,i)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function uU(e,t,n,r,a){e=t.scale.parse(e);var i=t.scale.getLabel({value:e},{precision:a.precision}),o=a.formatter;if(o){var s={value:DA(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};F(r,function(l){var u=n.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),Je(o)?i=o.replace("{value}",i):ut(o)&&(i=o(s))}return i}function bE(e,t,n){var r=La();return Pl(r,r,n.rotation),zi(r,r,n.position),Ni([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function cU(e,t,n,r,a,i){var o=ss.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=a.get(["label","margin"]),lU(t,r,a,i,{position:bE(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function _E(e,t,n){return n=n||0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function fU(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function z3(e,t,n,r,a,i){return{cx:e,cy:t,r0:n,r,startAngle:a,endAngle:i,clockwise:!0}}var aWe=function(e){ge(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(n,r,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),c=F3(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(r,!0));if(u&&u!=="none"){var d=yE(i),h=iWe[u](s,f,c);h.style=d,n.graphicKey=h.type,n.pointer=h}var v=O2(l.model,a);cU(r,n,v,a,i,o)},t.prototype.getHandleTransform=function(n,r,a){var i=O2(r.axis.grid.model,r,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=bE(r.axis,n,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(n,r,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=F3(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,f=[n.x,n.y];f[c]+=r[c],f[c]=Math.min(l[1],f[c]),f[c]=Math.max(l[0],f[c]);var d=(u[1]+u[0])/2,h=[d,d];h[c]=f[c];var v=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:n.rotation,cursorPoint:h,tooltipOption:v[c]}},t}(mE);function F3(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var iWe={line:function(e,t,n){var r=_E([t,n[0]],[t,n[1]],H3(e));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(e,t,n){var r=Math.max(1,e.getBandWidth()),a=n[1]-n[0];return{type:"Rect",shape:fU([t-r/2,n[0]],[r,a],H3(e))}}};function H3(e){return e.dim==="x"?0:1}const oWe=aWe;var sWe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!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}(Yt);const lWe=sWe;var Yo=en(),uWe=F;function dU(e,t,n){if(!Jt.node){var r=t.getZr();Yo(r).records||(Yo(r).records={}),cWe(r,t);var a=Yo(r).records[e]||(Yo(r).records[e]={});a.handler=n}}function cWe(e,t){if(Yo(e).initialized)return;Yo(e).initialized=!0,n("click",xt(G3,"click")),n("mousemove",xt(G3,"mousemove")),n("globalout",dWe);function n(r,a){e.on(r,function(i){var o=hWe(t);uWe(Yo(e).records,function(s){s&&a(s,i,o.dispatchAction)}),fWe(o.pendings,t)})}}function fWe(e,t){var n=e.showTip.length,r=e.hideTip.length,a;n?a=e.showTip[n-1]:r&&(a=e.hideTip[r-1]),a&&(a.dispatchAction=null,t.dispatchAction(a))}function dWe(e,t,n){e.handler("leave",null,n)}function G3(e,t,n,r){t.handler(e,n,r)}function hWe(e){var t={showTip:[],hideTip:[]},n=function(r){var a=t[r.type];a?a.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}function eT(e,t){if(!Jt.node){var n=t.getZr(),r=(Yo(n).records||{})[e];r&&(Yo(n).records[e]=null)}}var vWe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){var i=r.getComponent("tooltip"),o=n.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";dU("axisPointer",a,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(n,r){eT("axisPointer",r)},t.prototype.dispose=function(n,r){eT("axisPointer",r)},t.type="axisPointer",t}(An);const pWe=vWe;function hU(e,t){var n=[],r=e.seriesIndex,a;if(r==null||!(a=t.getSeriesByIndex(r)))return{point:[]};var i=a.getData(),o=cc(i,e);if(o==null||o<0||Re(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)n=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,d=u.dim,h=f==="x"||f==="radius"?1:0,v=i.mapDimension(d),p=[];p[h]=i.get(v,o),p[1-h]=i.get(i.getCalculationInfo("stackResultDimension"),o),n=l.dataToPoint(p)||[]}else n=l.dataToPoint(i.getValues(Oe(l.dimensions,function(m){return i.mapDimension(m)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),n=[g.x+g.width/2,g.y+g.height/2]}return{point:n,el:s}}var W3=en();function gWe(e,t,n){var r=e.currTrigger,a=[e.x,e.y],i=e,o=e.dispatchAction||et(n.dispatchAction,n),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){jy(a)&&(a=hU({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=jy(a),u=i.axesInfo,c=s.axesInfo,f=r==="leave"||jy(a),d={},h={},v={list:[],map:{}},p={showPointer:xt(yWe,h),showTooltip:xt(bWe,v)};F(s.coordSysMap,function(m,b){var _=l||m.containPoint(a);F(s.coordSysAxesInfo[b],function(w,C){var S=w.axis,x=CWe(u,w);if(!f&&_&&(!u||x)){var T=x&&x.value;T==null&&!l&&(T=S.pointToData(a)),T!=null&&K3(w,T,p,!1,d)}})});var g={};return F(c,function(m,b){var _=m.linkGroup;_&&!h[b]&&F(_.axesInfo,function(w,C){var S=h[C];if(w!==m&&S){var x=S.value;_.mapper&&(x=m.axis.scale.parse(_.mapper(x,U3(w),U3(m)))),g[m.key]=x}})}),F(g,function(m,b){K3(c[b],m,p,!0,d)}),_We(h,c,d),wWe(v,a,e,o),SWe(c,o,n),d}}function K3(e,t,n,r,a){var i=e.axis;if(!(i.scale.isBlank()||!i.containData(t))){if(!e.involveSeries){n.showPointer(e,t);return}var o=mWe(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&Ie(a,s[0]),!r&&e.snap&&i.containData(l)&&l!=null&&(t=l),n.showPointer(e,t,s),n.showTooltip(e,o,l)}}function mWe(e,t){var n=t.axis,r=n.dim,a=e,i=[],o=Number.MAX_VALUE,s=-1;return F(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(r),f,d;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(c,e,n);d=h.dataIndices,f=h.nestestValue}else{if(d=l.getData().indicesOfNearest(c[0],e,n.type==="category"?.5:null),!d.length)return;f=l.getData().get(c[0],d[0])}if(!(f==null||!isFinite(f))){var v=e-f,p=Math.abs(v);p<=o&&((p<o||v>=0&&s<0)&&(o=p,s=v,a=f,i.length=0),F(d,function(g){i.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:i,snapToValue:a}}function yWe(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function bWe(e,t,n,r){var a=n.payloadBatch,i=t.axis,o=i.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!a.length)){var l=t.coordSys.model,u=Lp(l),c=e.map[u];c||(c=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(c)),c.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function _We(e,t,n){var r=n.axesInfo=[];F(t,function(a,i){var o=a.axisPointerModel.option,s=e[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&r.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function wWe(e,t,n,r){if(jy(t)||!e.list.length){r({type:"hideTip"});return}var a=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:e.list})}function SWe(e,t,n){var r=n.getZr(),a="axisPointerLastHighlights",i=W3(r)[a]||{},o=W3(r)[a]={};F(e,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&F(f.seriesDataIndices,function(d){var h=d.seriesIndex+" | "+d.dataIndex;o[h]=d})});var s=[],l=[];F(i,function(u,c){!o[c]&&l.push(u)}),F(o,function(u,c){!i[c]&&s.push(u)}),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function CWe(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}function U3(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=t.componentIndex,n.axisName=n[r+"AxisName"]=t.name,n.axisId=n[r+"AxisId"]=t.id,n}function jy(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function Ag(e){Ec.registerAxisPointerClass("CartesianAxisPointer",oWe),e.registerComponentModel(lWe),e.registerComponentView(pWe),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var n=t.axisPointer.link;n&&!Re(n)&&(t.axisPointer.link=[n])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,n){t.getComponent("axisPointer").coordSysAxesInfo=cVe(t,n)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},gWe)}function xWe(e){Bt(V7),Bt(Ag)}var TWe=function(e){ge(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(n,r,a,i,o){var s=a.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),f=s.dataToCoord(r),d=i.get("type");if(d&&d!=="none"){var h=yE(i),v=kWe[d](s,l,f,c);v.style=h,n.graphicKey=v.type,n.pointer=v}var p=i.get(["label","margin"]),g=MWe(r,a,i,l,p);lU(n,a,i,o,g)},t}(mE);function MWe(e,t,n,r,a){var i=t.axis,o=i.dataToCoord(e),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=r.getRadiusAxis().getExtent(),u,c,f;if(i.dim==="radius"){var d=La();Pl(d,d,s),zi(d,d,[r.cx,r.cy]),u=Ni([o,-a],d);var h=t.getModel("axisLabel").get("rotate")||0,v=ss.innerTextLayout(s,h*Math.PI/180,-1);c=v.textAlign,f=v.textVerticalAlign}else{var p=l[1];u=r.coordToPoint([p+a,o]);var g=r.cx,m=r.cy;c=Math.abs(u[0]-g)/p<.3?"center":u[0]>g?"left":"right",f=Math.abs(u[1]-m)/p<.3?"middle":u[1]>m?"top":"bottom"}return{position:u,align:c,verticalAlign:f}}var kWe={line:function(e,t,n,r){return e.dim==="angle"?{type:"Line",shape:_E(t.coordToPoint([r[0],n]),t.coordToPoint([r[1],n]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:n}}},shadow:function(e,t,n,r){var a=Math.max(1,e.getBandWidth()),i=Math.PI/180;return e.dim==="angle"?{type:"Sector",shape:z3(t.cx,t.cy,r[0],r[1],(-n-a/2)*i,(-n+a/2)*i)}:{type:"Sector",shape:z3(t.cx,t.cy,n-a/2,n+a/2,0,Math.PI*2)}}};const AWe=TWe;var EWe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.findAxisModel=function(n){var r,a=this.ecModel;return a.eachComponent(n,function(i){i.getCoordSysModel()===this&&(r=i)},this),r},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(Yt);const IWe=EWe;var wE=function(e){ge(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Wn).models[0]},t.type="polarAxis",t}(Yt);Vn(wE,Ud);var DWe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="angleAxis",t}(wE),PWe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="radiusAxis",t}(wE),SE=function(e){ge(t,e);function t(n,r){return e.call(this,"radius",n,r)||this}return t.prototype.pointToData=function(n,r){return this.polar.pointToData(n,r)[this.dim==="radius"?0:1]},t}(pi);SE.prototype.dataToRadius=pi.prototype.dataToCoord;SE.prototype.radiusToData=pi.prototype.coordToData;const LWe=SE;var RWe=en(),CE=function(e){ge(t,e);function t(n,r){return e.call(this,"angle",n,r||[0,360])||this}return t.prototype.pointToData=function(n,r){return this.polar.pointToData(n,r)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var n=this,r=n.getLabelModel(),a=n.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=n.dataToCoord(s+1)-n.dataToCoord(s),u=Math.abs(l),c=ug(s==null?"":s+"",r.getFont(),"center","top"),f=Math.max(c.height,7),d=f/u;isNaN(d)&&(d=1/0);var h=Math.max(0,Math.floor(d)),v=RWe(n.model),p=v.lastAutoInterval,g=v.lastTickCount;return p!=null&&g!=null&&Math.abs(p-h)<=1&&Math.abs(g-o)<=1&&p>h?h=p:(v.lastTickCount=o,v.lastAutoInterval=h),h},t}(pi);CE.prototype.dataToAngle=pi.prototype.dataToCoord;CE.prototype.angleToData=pi.prototype.coordToData;const OWe=CE;var vU=["radius","angle"],$We=function(){function e(t){this.dimensions=vU,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new LWe,this._angleAxis=new OWe,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(t){var n=this.pointToCoord(t);return this._radiusAxis.contain(n[0])&&this._angleAxis.contain(n[1])},e.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},e.prototype.getAxis=function(t){var n="_"+t+"Axis";return this[n]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(t){var n=[],r=this._angleAxis,a=this._radiusAxis;return r.scale.type===t&&n.push(r),a.scale.type===t&&n.push(a),n},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(t){var n=this._angleAxis;return t===n?this._radiusAxis:n},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(t){var n=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[n],otherAxes:[this.getOtherAxis(n)]}},e.prototype.dataToPoint=function(t,n){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],n),this._angleAxis.dataToAngle(t[1],n)])},e.prototype.pointToData=function(t,n){var r=this.pointToCoord(t);return[this._radiusAxis.radiusToData(r[0],n),this._angleAxis.angleToData(r[1],n)]},e.prototype.pointToCoord=function(t){var n=t[0]-this.cx,r=t[1]-this.cy,a=this.getAngleAxis(),i=a.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);a.inverse?o=s-360:s=o+360;var l=Math.sqrt(n*n+r*r);n/=l,r/=l;for(var u=Math.atan2(-r,n)/Math.PI*180,c=u<o?1:-1;u<o||u>s;)u+=c*360;return[l,u]},e.prototype.coordToPoint=function(t){var n=t[0],r=t[1]/180*Math.PI,a=Math.cos(r)*n+this.cx,i=-Math.sin(r)*n+this.cy;return[a,i]},e.prototype.getArea=function(){var t=this.getAngleAxis(),n=this.getRadiusAxis(),r=n.getExtent().slice();r[0]>r[1]&&r.reverse();var a=t.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:r[0],r:r[1],startAngle:-a[0]*i,endAngle:-a[1]*i,clockwise:t.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,c=l*l+u*u-1e-4,f=this.r,d=this.r0;return c<=f*f&&c>=d*d}}},e.prototype.convertToPixel=function(t,n,r){var a=Y3(n);return a===this?this.dataToPoint(r):null},e.prototype.convertFromPixel=function(t,n,r){var a=Y3(n);return a===this?this.pointToData(r):null},e}();function Y3(e){var t=e.seriesModel,n=e.polarModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}const NWe=$We;function BWe(e,t,n){var r=t.get("center"),a=n.getWidth(),i=n.getHeight();e.cx=qe(r[0],a),e.cy=qe(r[1],i);var o=e.getRadiusAxis(),s=Math.min(a,i)/2,l=t.get("radius");l==null?l=[0,"100%"]:Re(l)||(l=[0,l]);var u=[qe(l[0],s),qe(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function VWe(e,t){var n=this,r=n.getAngleAxis(),a=n.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),e.eachSeries(function(s){if(s.coordinateSystem===n){var l=s.getData();F(J0(l,"radius"),function(u){a.scale.unionExtentFromData(l,u)}),F(J0(l,"angle"),function(u){r.scale.unionExtentFromData(l,u)})}}),vc(r.scale,r.model),vc(a.scale,a.model),r.type==="category"&&!r.onBand){var i=r.getExtent(),o=360/r.scale.count();r.inverse?i[1]+=o:i[1]-=o,r.setExtent(i[0],i[1])}}function zWe(e){return e.mainType==="angleAxis"}function j3(e,t){if(e.type=t.get("type"),e.scale=bg(t),e.onBand=t.get("boundaryGap")&&e.type==="category",e.inverse=t.get("inverse"),zWe(t)){e.inverse=e.inverse!==t.get("clockwise");var n=t.get("startAngle");e.setExtent(n,n+(e.inverse?-360:360))}t.axis=e,e.model=t}var FWe={dimensions:vU,create:function(e,t){var n=[];return e.eachComponent("polar",function(r,a){var i=new NWe(a+"");i.update=VWe;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=r.findAxisModel("radiusAxis"),u=r.findAxisModel("angleAxis");j3(o,l),j3(s,u),BWe(i,r,t),n.push(i),r.coordinateSystem=i,i.model=r}),e.eachSeries(function(r){if(r.get("coordinateSystem")==="polar"){var a=r.getReferringComponents("polar",Wn).models[0];r.coordinateSystem=a.coordinateSystem}}),n}};const HWe=FWe;var GWe=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Ym(e,t,n){t[1]>t[0]&&(t=t.slice().reverse());var r=e.coordToPoint([t[0],n]),a=e.coordToPoint([t[1],n]);return{x1:r[0],y1:r[1],x2:a[0],y2:a[1]}}function jm(e){var t=e.getRadiusAxis();return t.inverse?0:1}function q3(e){var t=e[0],n=e[e.length-1];t&&n&&Math.abs(Math.abs(t.coord-n.coord)-360)<1e-4&&e.pop()}var WWe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return t.prototype.render=function(n,r){if(this.group.removeAll(),!!n.get("show")){var a=n.axis,i=a.polar,o=i.getRadiusAxis().getExtent(),s=a.getTicksCoords(),l=a.getMinorTicksCoords(),u=Oe(a.getViewLabels(),function(c){c=pt(c);var f=a.scale,d=f.type==="ordinal"?f.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=a.dataToCoord(d),c});q3(u),q3(s),F(GWe,function(c){n.get([c,"show"])&&(!a.scale.isBlank()||c==="axisLine")&&KWe[c](this.group,n,i,s,l,o,u)},this)}},t.type="angleAxis",t}(Ec),KWe={axisLine:function(e,t,n,r,a,i){var o=t.getModel(["axisLine","lineStyle"]),s=jm(n),l=s?0:1,u;i[l]===0?u=new Hi({shape:{cx:n.cx,cy:n.cy,r:i[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new dg({shape:{cx:n.cx,cy:n.cy,r:i[s],r0:i[l]},style:o.getLineStyle(),z2:1,silent:!0}),u.style.fill=null,e.add(u)},axisTick:function(e,t,n,r,a,i){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[jm(n)],u=Oe(r,function(c){return new ar({shape:Ym(n,[l,l+s],c.coord)})});e.add(Ma(u,{style:ft(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,n,r,a,i){if(a.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[jm(n)],c=[],f=0;f<a.length;f++)for(var d=0;d<a[f].length;d++)c.push(new ar({shape:Ym(n,[u,u+l],a[f][d].coord)}));e.add(Ma(c,{style:ft(s.getModel("lineStyle").getLineStyle(),ft(o.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(e,t,n,r,a,i,o){var s=t.getCategories(!0),l=t.getModel("axisLabel"),u=l.get("margin"),c=t.get("triggerEvent");F(o,function(f,d){var h=l,v=f.tickValue,p=i[jm(n)],g=n.coordToPoint([p+u,f.coord]),m=n.cx,b=n.cy,_=Math.abs(g[0]-m)/p<.3?"center":g[0]>m?"left":"right",w=Math.abs(g[1]-b)/p<.3?"middle":g[1]>b?"top":"bottom";if(s&&s[v]){var C=s[v];ht(C)&&C.textStyle&&(h=new dn(C.textStyle,l,l.ecModel))}var S=new Xt({silent:ss.isLabelSilent(t),style:gn(h,{x:g[0],y:g[1],fill:h.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:f.formattedLabel,align:_,verticalAlign:w})});if(e.add(S),c){var x=ss.makeAxisEventDataBase(t);x.targetType="axisLabel",x.value=f.rawLabel,Tt(S).eventData=x}},this)},splitLine:function(e,t,n,r,a,i){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=0;f<r.length;f++){var d=u++%l.length;c[d]=c[d]||[],c[d].push(new ar({shape:Ym(n,i,r[f].coord)}))}for(var f=0;f<c.length;f++)e.add(Ma(c[f],{style:ft({stroke:l[f%l.length]},s.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(e,t,n,r,a,i){if(a.length){for(var o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<a.length;u++)for(var c=0;c<a[u].length;c++)l.push(new ar({shape:Ym(n,i,a[u][c].coord)}));e.add(Ma(l,{style:s.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(e,t,n,r,a,i){if(r.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=Math.PI/180,d=-r[0].coord*f,h=Math.min(i[0],i[1]),v=Math.max(i[0],i[1]),p=t.get("clockwise"),g=1,m=r.length;g<=m;g++){var b=g===m?r[0].coord:r[g].coord,_=u++%l.length;c[_]=c[_]||[],c[_].push(new na({shape:{cx:n.cx,cy:n.cy,r0:h,r:v,startAngle:d,endAngle:-b*f,clockwise:p},silent:!0})),d=-b*f}for(var g=0;g<c.length;g++)e.add(Ma(c[g],{style:ft({fill:l[g%l.length]},s.getAreaStyle()),silent:!0}))}}};const UWe=WWe;var YWe=["axisLine","axisTickLabel","axisName"],jWe=["splitLine","splitArea","minorSplitLine"],qWe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return t.prototype.render=function(n,r){if(this.group.removeAll(),!!n.get("show")){var a=this._axisGroup,i=this._axisGroup=new bt;this.group.add(i);var o=n.axis,s=o.polar,l=s.getAngleAxis(),u=o.getTicksCoords(),c=o.getMinorTicksCoords(),f=l.getExtent()[0],d=o.getExtent(),h=ZWe(s,n,f),v=new ss(n,h);F(YWe,v.add,v),i.add(v.getGroup()),pg(a,i,n),F(jWe,function(p){n.get([p,"show"])&&!o.scale.isBlank()&&XWe[p](this.group,n,s,f,d,u,c)},this)}},t.type="radiusAxis",t}(Ec),XWe={splitLine:function(e,t,n,r,a,i){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=0;f<i.length;f++){var d=u++%l.length;c[d]=c[d]||[],c[d].push(new Hi({shape:{cx:n.cx,cy:n.cy,r:Math.max(i[f].coord,0)}}))}for(var f=0;f<c.length;f++)e.add(Ma(c[f],{style:ft({stroke:l[f%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(e,t,n,r,a,i,o){if(o.length){for(var s=t.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],c=0;c<o.length;c++)for(var f=0;f<o[c].length;f++)u.push(new Hi({shape:{cx:n.cx,cy:n.cy,r:o[c][f].coord}}));e.add(Ma(u,{style:ft({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(e,t,n,r,a,i){if(i.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=i[0].coord,d=1;d<i.length;d++){var h=u++%l.length;c[h]=c[h]||[],c[h].push(new na({shape:{cx:n.cx,cy:n.cy,r0:f,r:i[d].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),f=i[d].coord}for(var d=0;d<c.length;d++)e.add(Ma(c[d],{style:ft({fill:l[d%l.length]},s.getAreaStyle()),silent:!0}))}}};function ZWe(e,t,n){return{position:[e.cx,e.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}const JWe=qWe;function pU(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function gU(e,t){return t.dim+e.model.componentIndex}function QWe(e,t,n){var r={},a=e9e(ln(t.getSeriesByType(e),function(i){return!t.isSeriesFiltered(i)&&i.coordinateSystem&&i.coordinateSystem.type==="polar"}));t.eachSeriesByType(e,function(i){if(i.coordinateSystem.type==="polar"){var o=i.getData(),s=i.coordinateSystem,l=s.getBaseAxis(),u=gU(s,l),c=pU(i),f=a[u][c],d=f.offset,h=f.width,v=s.getOtherAxis(l),p=i.coordinateSystem.cx,g=i.coordinateSystem.cy,m=i.get("barMinHeight")||0,b=i.get("barMinAngle")||0;r[c]=r[c]||[];for(var _=o.mapDimension(v.dim),w=o.mapDimension(l.dim),C=os(o,_),S=l.dim!=="radius"||!i.get("roundCap",!0),x=v.dataToCoord(0),T=0,M=o.count();T<M;T++){var A=o.get(_,T),k=o.get(w,T),E=A>=0?"p":"n",D=x;C&&(r[c][k]||(r[c][k]={p:x,n:x}),D=r[c][k][E]);var L=void 0,B=void 0,N=void 0,O=void 0;if(v.dim==="radius"){var $=v.dataToCoord(A)-x,I=l.dataToCoord(k);Math.abs($)<m&&($=($<0?-1:1)*m),L=D,B=D+$,N=I-d,O=N-h,C&&(r[c][k][E]=B)}else{var z=v.dataToCoord(A,S)-x,G=l.dataToCoord(k);Math.abs(z)<b&&(z=(z<0?-1:1)*b),L=G+d,B=L+h,N=D,O=D+z,C&&(r[c][k][E]=O)}o.setItemLayout(T,{cx:p,cy:g,r0:L,r:B,startAngle:-N*Math.PI/180,endAngle:-O*Math.PI/180,clockwise:N>=O})}}})}function e9e(e){var t={};F(e,function(r,a){var i=r.getData(),o=r.coordinateSystem,s=o.getBaseAxis(),l=gU(o,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),f=t[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},d=f.stacks;t[l]=f;var h=pU(r);d[h]||f.autoWidthCount++,d[h]=d[h]||{width:0,maxWidth:0};var v=qe(r.get("barWidth"),c),p=qe(r.get("barMaxWidth"),c),g=r.get("barGap"),m=r.get("barCategoryGap");v&&!d[h].width&&(v=Math.min(f.remainedWidth,v),d[h].width=v,f.remainedWidth-=v),p&&(d[h].maxWidth=p),g!=null&&(f.gap=g),m!=null&&(f.categoryGap=m)});var n={};return F(t,function(r,a){n[a]={};var i=r.stacks,o=r.bandWidth,s=qe(r.categoryGap,o),l=qe(r.gap,1),u=r.remainedWidth,c=r.autoWidthCount,f=(u-s)/(c+(c-1)*l);f=Math.max(f,0),F(i,function(p,g){var m=p.maxWidth;m&&m<f&&(m=Math.min(m,u),p.width&&(m=Math.min(m,p.width)),u-=m,p.width=m,c--)}),f=(u-s)/(c+(c-1)*l),f=Math.max(f,0);var d=0,h;F(i,function(p,g){p.width||(p.width=f),h=p,d+=p.width*(1+l)}),h&&(d-=h.width*l);var v=-d/2;F(i,function(p,g){n[a][g]=n[a][g]||{offset:v,width:p.width},v+=p.width*(1+l)})}),n}var t9e={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},n9e={splitNumber:5},r9e=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="polar",t}(An);function a9e(e){Bt(Ag),Ec.registerAxisPointerClass("PolarAxisPointer",AWe),e.registerCoordinateSystem("polar",HWe),e.registerComponentModel(IWe),e.registerComponentView(r9e),pd(e,"angle",DWe,t9e),pd(e,"radius",PWe,n9e),e.registerComponentView(UWe),e.registerComponentView(JWe),e.registerLayout(xt(QWe,"bar"))}function tT(e,t){t=t||{};var n=e.coordinateSystem,r=e.axis,a={},i=r.position,o=r.orient,s=n.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};a.position=[o==="vertical"?u.vertical[i]:l[0],o==="horizontal"?u.horizontal[i]:l[3]];var c={horizontal:0,vertical:1};a.rotation=Math.PI/2*c[o];var f={top:-1,bottom:1,right:1,left:-1};a.labelDirection=a.tickDirection=a.nameDirection=f[i],e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),rr(t.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var d=t.rotate;return d==null&&(d=e.get(["axisLabel","rotate"])),a.labelRotation=i==="top"?-d:d,a.z2=1,a}var i9e=["axisLine","axisTickLabel","axisName"],o9e=["splitArea","splitLine"],s9e=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="SingleAxisPointer",n}return t.prototype.render=function(n,r,a,i){var o=this.group;o.removeAll();var s=this._axisGroup;this._axisGroup=new bt;var l=tT(n),u=new ss(n,l);F(i9e,u.add,u),o.add(this._axisGroup),o.add(u.getGroup()),F(o9e,function(c){n.get([c,"show"])&&l9e[c](this,this.group,this._axisGroup,n)},this),pg(s,this._axisGroup,n),e.prototype.render.call(this,n,r,a,i)},t.prototype.remove=function(){$7(this)},t.type="singleAxis",t}(Ec),l9e={splitLine:function(e,t,n,r){var a=r.axis;if(!a.scale.isBlank()){var i=r.getModel("splitLine"),o=i.getModel("lineStyle"),s=o.get("color");s=s instanceof Array?s:[s];for(var l=o.get("width"),u=r.coordinateSystem.getRect(),c=a.isHorizontal(),f=[],d=0,h=a.getTicksCoords({tickModel:i}),v=[],p=[],g=0;g<h.length;++g){var m=a.toGlobalCoord(h[g].coord);c?(v[0]=m,v[1]=u.y,p[0]=m,p[1]=u.y+u.height):(v[0]=u.x,v[1]=m,p[0]=u.x+u.width,p[1]=m);var b=new ar({shape:{x1:v[0],y1:v[1],x2:p[0],y2:p[1]},silent:!0});fd(b.shape,l);var _=d++%s.length;f[_]=f[_]||[],f[_].push(b)}for(var w=o.getLineStyle(["color"]),g=0;g<f.length;++g)t.add(Ma(f[g],{style:ft({stroke:s[g%s.length]},w),silent:!0}))}},splitArea:function(e,t,n,r){O7(e,n,r,r)}};const u9e=s9e;var mU=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getCoordSysModel=function(){return this},t.type="singleAxis",t.layoutMode="box",t.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},t}(Yt);Vn(mU,Ud.prototype);const VS=mU;var c9e=function(e){ge(t,e);function t(n,r,a,i,o){var s=e.call(this,n,r,a)||this;return s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var n=this.position;return n==="top"||n==="bottom"},t.prototype.pointToData=function(n,r){return this.coordinateSystem.pointToData(n)[0]},t}(pi);const f9e=c9e;var yU=["single"],d9e=function(){function e(t,n,r){this.type="single",this.dimension="single",this.dimensions=yU,this.axisPointerEnabled=!0,this.model=t,this._init(t,n,r)}return e.prototype._init=function(t,n,r){var a=this.dimension,i=new f9e(a,bg(t),[0,0],t.get("type"),t.get("position")),o=i.type==="category";i.onBand=o&&t.get("boundaryGap"),i.inverse=t.get("inverse"),i.orient=t.get("orient"),t.axis=i,i.model=t,i.coordinateSystem=this,this._axis=i},e.prototype.update=function(t,n){t.eachSeries(function(r){if(r.coordinateSystem===this){var a=r.getData();F(a.mapDimensionsAll(this.dimension),function(i){this._axis.scale.unionExtentFromData(a,i)},this),vc(this._axis.scale,this._axis.model)}},this)},e.prototype.resize=function(t,n){this._rect=Xn({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:n.getWidth(),height:n.getHeight()}),this._adjustAxis()},e.prototype.getRect=function(){return this._rect},e.prototype._adjustAxis=function(){var t=this._rect,n=this._axis,r=n.isHorizontal(),a=r?[0,t.width]:[0,t.height],i=n.inverse?1:0;n.setExtent(a[i],a[1-i]),this._updateAxisTransform(n,r?t.x:t.y)},e.prototype._updateAxisTransform=function(t,n){var r=t.getExtent(),a=r[0]+r[1],i=t.isHorizontal();t.toGlobalCoord=i?function(o){return o+n}:function(o){return a-o+n},t.toLocalCoord=i?function(o){return o-n}:function(o){return a-o+n}},e.prototype.getAxis=function(){return this._axis},e.prototype.getBaseAxis=function(){return this._axis},e.prototype.getAxes=function(){return[this._axis]},e.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},e.prototype.containPoint=function(t){var n=this.getRect(),r=this.getAxis(),a=r.orient;return a==="horizontal"?r.contain(r.toLocalCoord(t[0]))&&t[1]>=n.y&&t[1]<=n.y+n.height:r.contain(r.toLocalCoord(t[1]))&&t[0]>=n.y&&t[0]<=n.y+n.height},e.prototype.pointToData=function(t){var n=this.getAxis();return[n.coordToData(n.toLocalCoord(t[n.orient==="horizontal"?0:1]))]},e.prototype.dataToPoint=function(t){var n=this.getAxis(),r=this.getRect(),a=[],i=n.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),a[i]=n.toGlobalCoord(n.dataToCoord(+t)),a[1-i]=i===0?r.y+r.height/2:r.x+r.width/2,a},e.prototype.convertToPixel=function(t,n,r){var a=X3(n);return a===this?this.dataToPoint(r):null},e.prototype.convertFromPixel=function(t,n,r){var a=X3(n);return a===this?this.pointToData(r):null},e}();function X3(e){var t=e.seriesModel,n=e.singleAxisModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}function h9e(e,t){var n=[];return e.eachComponent("singleAxis",function(r,a){var i=new d9e(r,e,t);i.name="single_"+a,i.resize(r,t),r.coordinateSystem=i,n.push(i)}),e.eachSeries(function(r){if(r.get("coordinateSystem")==="singleAxis"){var a=r.getReferringComponents("singleAxis",Wn).models[0];r.coordinateSystem=a&&a.coordinateSystem}}),n}var v9e={create:h9e,dimensions:yU};const p9e=v9e;var Z3=["x","y"],g9e=["width","height"],m9e=function(e){ge(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(n,r,a,i,o){var s=a.axis,l=s.coordinateSystem,u=zS(l,1-hb(s)),c=l.dataToPoint(r)[0],f=i.get("type");if(f&&f!=="none"){var d=yE(i),h=y9e[f](s,c,u);h.style=d,n.graphicKey=h.type,n.pointer=h}var v=tT(a);cU(r,n,v,a,i,o)},t.prototype.getHandleTransform=function(n,r,a){var i=tT(r,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=bE(r.axis,n,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(n,r,a,i){var o=a.axis,s=o.coordinateSystem,l=hb(o),u=zS(s,l),c=[n.x,n.y];c[l]+=r[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var f=zS(s,1-l),d=(f[1]+f[0])/2,h=[d,d];return h[l]=c[l],{x:c[0],y:c[1],rotation:n.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},t}(mE),y9e={line:function(e,t,n){var r=_E([t,n[0]],[t,n[1]],hb(e));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(e,t,n){var r=e.getBandWidth(),a=n[1]-n[0];return{type:"Rect",shape:fU([t-r/2,n[0]],[r,a],hb(e))}}};function hb(e){return e.isHorizontal()?0:1}function zS(e,t){var n=e.getRect();return[n[Z3[t]],n[Z3[t]]+n[g9e[t]]]}const b9e=m9e;var _9e=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="single",t}(An);function w9e(e){Bt(Ag),Ec.registerAxisPointerClass("SingleAxisPointer",b9e),e.registerComponentView(_9e),e.registerComponentView(u9e),e.registerComponentModel(VS),pd(e,"single",VS,VS.defaultOption),e.registerCoordinateSystem("single",p9e)}var S9e=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r,a){var i=Bd(n);e.prototype.init.apply(this,arguments),J3(n,i)},t.prototype.mergeOption=function(n){e.prototype.mergeOption.apply(this,arguments),J3(this.option,n)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(Yt);function J3(e,t){var n=e.cellSize,r;Re(n)?r=n:r=e.cellSize=[n,n],r.length===1&&(r[1]=r[0]);var a=Oe([0,1],function(i){return dRe(t,i)&&(r[i]="auto"),r[i]!=null&&r[i]!=="auto"});yl(e,t,{type:"box",ignoreSize:a})}const C9e=S9e;var x9e=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){var i=this.group;i.removeAll();var o=n.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=r.getLocaleModel();this._renderDayRect(n,s,i),this._renderLines(n,s,l,i),this._renderYearText(n,s,l,i),this._renderMonthText(n,u,l,i),this._renderWeekText(n,u,s,l,i)},t.prototype._renderDayRect=function(n,r,a){for(var i=n.coordinateSystem,o=n.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=r.start.time;u<=r.end.time;u=i.getNextNDay(u,1).time){var c=i.dataToRect([u],!1).tl,f=new Zt({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});a.add(f)}},t.prototype._renderLines=function(n,r,a,i){var o=this,s=n.coordinateSystem,l=n.getModel(["splitLine","lineStyle"]).getLineStyle(),u=n.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var f=r.start,d=0;f.time<=r.end.time;d++){v(f.formatedDate),d===0&&(f=s.getDateInfo(r.start.y+"-"+r.start.m));var h=f.date;h.setMonth(h.getMonth()+1),f=s.getDateInfo(h)}v(s.getNextNDay(r.end.time,1).formatedDate);function v(p){o._firstDayOfMonth.push(s.getDateInfo(p)),o._firstDayPoints.push(s.dataToRect([p],!1).tl);var g=o._getLinePointsOfOneWeek(n,p,a);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,c,a),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,c,a),l,i)},t.prototype._getEdgesPoints=function(n,r,a){var i=[n[0].slice(),n[n.length-1].slice()],o=a==="horizontal"?0:1;return i[0][o]=i[0][o]-r/2,i[1][o]=i[1][o]+r/2,i},t.prototype._drawSplitline=function(n,r,a){var i=new ia({z2:20,shape:{points:n},style:r});a.add(i)},t.prototype._getLinePointsOfOneWeek=function(n,r,a){for(var i=n.coordinateSystem,o=i.getDateInfo(r),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),c=i.dataToRect([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[a==="horizontal"?"bl":"tr"]}return s},t.prototype._formatterLabel=function(n,r){return Je(n)&&n?lRe(n,r):ut(n)?n(r):r.nameMap},t.prototype._yearTextPositionControl=function(n,r,a,i,o){var s=r[0],l=r[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var c=0;return(i==="left"||i==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},t.prototype._renderYearText=function(n,r,a,i){var o=n.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=a!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,f=(u[0][1]+u[1][1])/2,d=a==="horizontal"?0:1,h={top:[c,u[d][1]],bottom:[c,u[1-d][1]],left:[u[1-d][0],f],right:[u[d][0],f]},v=r.start.y;+r.end.y>+r.start.y&&(v=v+"-"+r.end.y);var p=o.get("formatter"),g={start:r.start.y,end:r.end.y,nameMap:v},m=this._formatterLabel(p,g),b=new Xt({z2:30,style:gn(o,{text:m})});b.attr(this._yearTextPositionControl(b,h[l],a,l,s)),i.add(b)}},t.prototype._monthTextPositionControl=function(n,r,a,i,o){var s="left",l="top",u=n[0],c=n[1];return a==="horizontal"?(c=c+o,r&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,r&&(l="middle"),i==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},t.prototype._renderMonthText=function(n,r,a,i){var o=n.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),c=o.get("align"),f=[this._tlpoints,this._blpoints];(!s||Je(s))&&(s&&(r=c2(s)||r),s=r.get(["time","monthAbbr"])||[]);var d=u==="start"?0:1,h=a==="horizontal"?0:1;l=u==="start"?-l:l;for(var v=c==="center",p=0;p<f[d].length-1;p++){var g=f[d][p].slice(),m=this._firstDayOfMonth[p];if(v){var b=this._firstDayPoints[p];g[h]=(b[h]+f[0][p+1][h])/2}var _=o.get("formatter"),w=s[+m.m-1],C={yyyy:m.y,yy:(m.y+"").slice(2),MM:m.m,M:+m.m,nameMap:w},S=this._formatterLabel(_,C),x=new Xt({z2:30,style:Ie(gn(o,{text:S}),this._monthTextPositionControl(g,v,a,u,l))});i.add(x)}}},t.prototype._weekTextPositionControl=function(n,r,a,i,o){var s="center",l="middle",u=n[0],c=n[1],f=a==="start";return r==="horizontal"?(u=u+i+(f?1:-1)*o[0]/2,s=f?"right":"left"):(c=c+i+(f?1:-1)*o[1]/2,l=f?"bottom":"top"),{x:u,y:c,align:s,verticalAlign:l}},t.prototype._renderWeekText=function(n,r,a,i,o){var s=n.getModel("dayLabel");if(s.get("show")){var l=n.coordinateSystem,u=s.get("position"),c=s.get("nameMap"),f=s.get("margin"),d=l.getFirstDayOfWeek();if(!c||Je(c)){c&&(r=c2(c)||r);var h=r.get(["time","dayOfWeekShort"]);c=h||Oe(r.get(["time","dayOfWeekAbbr"]),function(C){return C[0]})}var v=l.getNextNDay(a.end.time,7-a.lweek).time,p=[l.getCellWidth(),l.getCellHeight()];f=qe(f,Math.min(p[1],p[0])),u==="start"&&(v=l.getNextNDay(a.start.time,-(7+a.fweek)).time,f=-f);for(var g=0;g<7;g++){var m=l.getNextNDay(v,g),b=l.dataToRect([m.time],!1).center,_=g;_=Math.abs((g+d)%7);var w=new Xt({z2:30,style:Ie(gn(s,{text:c[_]}),this._weekTextPositionControl(b,i,u,f,p))});o.add(w)}}},t.type="calendar",t}(An);const T9e=x9e;var FS=864e5,M9e=function(){function e(t,n,r){this.type="calendar",this.dimensions=e.dimensions,this.getDimensionsInfo=e.getDimensionsInfo,this._model=t}return e.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},e.prototype.getRangeInfo=function(){return this._rangeInfo},e.prototype.getModel=function(){return this._model},e.prototype.getRect=function(){return this._rect},e.prototype.getCellWidth=function(){return this._sw},e.prototype.getCellHeight=function(){return this._sh},e.prototype.getOrient=function(){return this._orient},e.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},e.prototype.getDateInfo=function(t){t=Ra(t);var n=t.getFullYear(),r=t.getMonth()+1,a=r<10?"0"+r:""+r,i=t.getDate(),o=i<10?"0"+i:""+i,s=t.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:n+"",m:a,d:o,day:s,time:t.getTime(),formatedDate:n+"-"+a+"-"+o,date:t}},e.prototype.getNextNDay=function(t,n){return n=n||0,n===0?this.getDateInfo(t):(t=new Date(this.getDateInfo(t).time),t.setDate(t.getDate()+n),this.getDateInfo(t))},e.prototype.update=function(t,n){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var r=this._rangeInfo.weeks||1,a=["width","height"],i=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[r,7]:[7,r];F([0,1],function(f){c(i,f)&&(o[a[f]]=i[f]*s[f])});var l={width:n.getWidth(),height:n.getHeight()},u=this._rect=Xn(o,l);F([0,1],function(f){c(i,f)||(i[f]=u[a[f]]/s[f])});function c(f,d){return f[d]!=null&&f[d]!=="auto"}this._sw=i[0],this._sh=i[1]},e.prototype.dataToPoint=function(t,n){Re(t)&&(t=t[0]),n==null&&(n=!0);var r=this.getDateInfo(t),a=this._rangeInfo,i=r.formatedDate;if(n&&!(r.time>=a.start.time&&r.time<a.end.time+FS))return[NaN,NaN];var o=r.day,s=this._getRangeInfo([a.start.time,i]).nthWeek;return this._orient==="vertical"?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]:[this._rect.x+s*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},e.prototype.pointToData=function(t){var n=this.pointToDate(t);return n&&n.time},e.prototype.dataToRect=function(t,n){var r=this.dataToPoint(t,n);return{contentShape:{x:r[0]-(this._sw-this._lineWidth)/2,y:r[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:r,tl:[r[0]-this._sw/2,r[1]-this._sh/2],tr:[r[0]+this._sw/2,r[1]-this._sh/2],br:[r[0]+this._sw/2,r[1]+this._sh/2],bl:[r[0]-this._sw/2,r[1]+this._sh/2]}},e.prototype.pointToDate=function(t){var n=Math.floor((t[0]-this._rect.x)/this._sw)+1,r=Math.floor((t[1]-this._rect.y)/this._sh)+1,a=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(r,n-1,a):this._getDateByWeeksAndDay(n,r-1,a)},e.prototype.convertToPixel=function(t,n,r){var a=Q3(n);return a===this?a.dataToPoint(r):null},e.prototype.convertFromPixel=function(t,n,r){var a=Q3(n);return a===this?a.pointToData(r):null},e.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},e.prototype._initRangeOption=function(){var t=this._model.get("range"),n;if(Re(t)&&t.length===1&&(t=t[0]),Re(t))n=t;else{var r=t.toString();if(/^\d{4}$/.test(r)&&(n=[r+"-01-01",r+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(r)){var a=this.getDateInfo(r),i=a.date;i.setMonth(i.getMonth()+1);var o=this.getNextNDay(i,-1);n=[a.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(r)&&(n=[r,r])}if(!n)return t;var s=this._getRangeInfo(n);return s.start.time>s.end.time&&n.reverse(),n},e.prototype._getRangeInfo=function(t){var n=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],r;n[0].time>n[1].time&&(r=!0,n.reverse());var a=Math.floor(n[1].time/FS)-Math.floor(n[0].time/FS)+1,i=new Date(n[0].time),o=i.getDate(),s=n[1].date.getDate();i.setDate(o+a-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-n[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-n[1].time)*u>0;)a-=u,i.setDate(l-u);var c=Math.floor((a+n[0].day+6)/7),f=r?-c+1:c-1;return r&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:a,weeks:c,nthWeek:f,fweek:n[0].day,lweek:n[1].day}},e.prototype._getDateByWeeksAndDay=function(t,n,r){var a=this._getRangeInfo(r);if(t>a.weeks||t===0&&n<a.fweek||t===a.weeks&&n>a.lweek)return null;var i=(t-1)*7-a.fweek+n,o=new Date(a.start.time);return o.setDate(+a.start.d+i),this.getDateInfo(o)},e.create=function(t,n){var r=[];return t.eachComponent("calendar",function(a){var i=new e(a);r.push(i),a.coordinateSystem=i}),t.eachSeries(function(a){a.get("coordinateSystem")==="calendar"&&(a.coordinateSystem=r[a.get("calendarIndex")||0])}),r},e.dimensions=["time","value"],e}();function Q3(e){var t=e.calendarModel,n=e.seriesModel,r=t?t.coordinateSystem:n?n.coordinateSystem:null;return r}const k9e=M9e;function A9e(e){e.registerComponentModel(C9e),e.registerComponentView(T9e),e.registerCoordinateSystem("calendar",k9e)}function E9e(e,t){var n=e.existing;if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),t.parentId==null){var r=t.parentOption;r?t.parentId=r.id:n&&(t.parentId=n.parentId)}t.parentOption=null}function e4(e,t){var n;return F(t,function(r){e[r]!=null&&e[r]!=="auto"&&(n=!0)}),n}function I9e(e,t,n){var r=Ie({},n),a=e[t],i=n.$action||"merge";i==="merge"?a?(Dt(a,r,!0),yl(a,r,{ignoreSize:!0}),eW(n,a),qm(n,a),qm(n,a,"shape"),qm(n,a,"style"),qm(n,a,"extra"),n.clipPath=a.clipPath):e[t]=r:i==="replace"?e[t]=r:i==="remove"&&a&&(e[t]=null)}var bU=["transition","enterFrom","leaveTo"],D9e=bU.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function qm(e,t,n){if(n&&(!e[n]&&t[n]&&(e[n]={}),e=e[n],t=t[n]),!(!e||!t))for(var r=n?bU:D9e,a=0;a<r.length;a++){var i=r[a];e[i]==null&&t[i]!=null&&(e[i]=t[i])}}function P9e(e,t){if(e&&(e.hv=t.hv=[e4(t,["left","right"]),e4(t,["top","bottom"])],e.type==="group")){var n=e,r=t;n.width==null&&(n.width=r.width=0),n.height==null&&(n.height=r.height=0)}}var L9e=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.preventAutoZ=!0,n}return t.prototype.mergeOption=function(n,r){var a=this.option.elements;this.option.elements=null,e.prototype.mergeOption.call(this,n,r),this.option.elements=a},t.prototype.optionUpdated=function(n,r){var a=this.option,i=(r?a:n).elements,o=a.elements=r?[]:a.elements,s=[];this._flatten(i,s,null);var l=NH(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];F(l,function(c,f){var d=c.newOption;d&&(u.push(d),E9e(c,d),I9e(o,f,d),P9e(o[f],d))},this),a.elements=ln(o,function(c){return c&&delete c.$action,c!=null})},t.prototype._flatten=function(n,r,a){F(n,function(i){if(i){a&&(i.parentOption=a),r.push(i);var o=i.children;o&&o.length&&this._flatten(o,r,i),delete i.children}},this)},t.prototype.useElOptionsToUpdate=function(){var n=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,n},t.type="graphic",t.defaultOption={elements:[]},t}(Yt),t4={path:null,compoundPath:null,group:bt,image:vr,text:Xt},Ka=en(),R9e=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){this._elMap=ot()},t.prototype.render=function(n,r,a){n!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=n,this._updateElements(n),this._relocate(n,a)},t.prototype._updateElements=function(n){var r=n.useElOptionsToUpdate();if(r){var a=this._elMap,i=this.group,o=n.get("z"),s=n.get("zlevel");F(r,function(l){var u=tr(l.id,null),c=u!=null?a.get(u):null,f=tr(l.parentId,null),d=f!=null?a.get(f):i,h=l.type,v=l.style;h==="text"&&v&&l.hv&&l.hv[1]&&(v.textVerticalAlign=v.textBaseline=v.verticalAlign=v.align=null);var p=l.textContent,g=l.textConfig;if(v&&JK(v,h,!!g,!!p)){var m=QK(v,h,!0);!g&&m.textConfig&&(g=l.textConfig=m.textConfig),!p&&m.textContent&&(p=m.textContent)}var b=O9e(l),_=l.$action||"merge",w=_==="merge",C=_==="replace";if(w){var S=!c,x=c;S?x=n4(u,d,l.type,a):(x&&(Ka(x).isNew=!1),rU(x)),x&&(Yy(x,b,n,{isInit:S}),r4(x,l,o,s))}else if(C){qy(c,l,a,n);var T=n4(u,d,l.type,a);T&&(Yy(T,b,n,{isInit:!0}),r4(T,l,o,s))}else _==="remove"&&(tU(c,l),qy(c,l,a,n));var M=a.get(u);if(M&&p)if(w){var A=M.getTextContent();A?A.attr(p):M.setTextContent(new Xt(p))}else C&&M.setTextContent(new Xt(p));if(M){var k=l.clipPath;if(k){var E=k.type,D=void 0,S=!1;if(w){var L=M.getClipPath();S=!L||Ka(L).type!==E,D=S?nT(E):L}else C&&(S=!0,D=nT(E));M.setClipPath(D),Yy(D,k,n,{isInit:S}),fb(D,k.keyframeAnimation,n)}var B=Ka(M);M.setTextConfig(g),B.option=l,$9e(M,n,l),Od({el:M,componentModel:n,itemName:M.name,itemTooltipOption:l.tooltip}),fb(M,l.keyframeAnimation,n)}})}},t.prototype._relocate=function(n,r){for(var a=n.option.elements,i=this.group,o=this._elMap,s=r.getWidth(),l=r.getHeight(),u=["x","y"],c=0;c<a.length;c++){var f=a[c],d=tr(f.id,null),h=d!=null?o.get(d):null;if(!(!h||!h.isGroup)){var v=h.parent,p=v===i,g=Ka(h),m=Ka(v);g.width=qe(g.option.width,p?s:m.width)||0,g.height=qe(g.option.height,p?l:m.height)||0}}for(var c=a.length-1;c>=0;c--){var f=a[c],d=tr(f.id,null),h=d!=null?o.get(d):null;if(h){var v=h.parent,m=Ka(v),b=v===i?{width:s,height:l}:{width:m.width,height:m.height},_={},w=$1(h,f,b,null,{hv:f.hv,boundingMode:f.bounding},_);if(!Ka(h).isNew&&w){for(var C=f.transition,S={},x=0;x<u.length;x++){var T=u[x],M=_[T];C&&(nc(C)||$t(C,T)>=0)?S[T]=M:h[T]=M}nn(h,S,n,0)}else h.attr(_)}}},t.prototype._clear=function(){var n=this,r=this._elMap;r.each(function(a){qy(a,Ka(a).option,r,n._lastGraphicModel)}),this._elMap=ot()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(An);function nT(e){var t=nt(t4,e)?t4[e]:E1(e),n=new t({});return Ka(n).type=e,n}function n4(e,t,n,r){var a=nT(n);return t.add(a),r.set(e,a),Ka(a).id=e,Ka(a).isNew=!0,a}function qy(e,t,n,r){var a=e&&e.parent;a&&(e.type==="group"&&e.traverse(function(i){qy(i,t,n,r)}),Q1(e,t,r),n.removeKey(Ka(e).id))}function r4(e,t,n,r){e.isGroup||F([["cursor",ci.prototype.cursor],["zlevel",r||0],["z",n||0],["z2",0]],function(a){var i=a[0];nt(t,i)?e[i]=Lt(t[i],a[1]):e[i]==null&&(e[i]=a[1])}),F(Gt(t),function(a){if(a.indexOf("on")===0){var i=t[a];e[a]=ut(i)?i:null}}),nt(t,"draggable")&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function O9e(e){return e=Ie({},e),F(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(QG),function(t){delete e[t]}),e}function $9e(e,t,n){var r=Tt(e).eventData;!e.silent&&!e.ignore&&!r&&(r=Tt(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),r&&(r.info=n.info)}function N9e(e){e.registerComponentModel(L9e),e.registerComponentView(R9e),e.registerPreprocessor(function(t){var n=t.graphic;Re(n)?!n[0]||!n[0].elements?t.graphic=[{elements:n}]:t.graphic=[t.graphic[0]]:n&&!n.elements&&(t.graphic=[{elements:[n]}])})}var a4=["x","y","radius","angle","single"],B9e=["cartesian2d","polar","singleAxis"];function V9e(e){var t=e.get("coordinateSystem");return $t(B9e,t)>=0}function Xs(e){return e+"Axis"}function z9e(e,t){var n=ot(),r=[],a=ot();e.eachComponent({mainType:"dataZoom",query:t},function(c){a.get(c.uid)||s(c)});var i;do i=!1,e.eachComponent("dataZoom",o);while(i);function o(c){!a.get(c.uid)&&l(c)&&(s(c),i=!0)}function s(c){a.set(c.uid,!0),r.push(c),u(c)}function l(c){var f=!1;return c.eachTargetAxis(function(d,h){var v=n.get(d);v&&v[h]&&(f=!0)}),f}function u(c){c.eachTargetAxis(function(f,d){(n.get(f)||n.set(f,[]))[d]=!0})}return r}function _U(e){var t=e.ecModel,n={infoList:[],infoMap:ot()};return e.eachTargetAxis(function(r,a){var i=t.getComponent(Xs(r),a);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,l=n.infoMap.get(s);l||(l={model:o,axisModels:[]},n.infoList.push(l),n.infoMap.set(s,l)),l.axisModels.push(i)}}}),n}var HS=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},e}(),F9e=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return t.prototype.init=function(n,r,a){var i=i4(n);this.settledOption=i,this.mergeDefaultAndTheme(n,a),this._doInit(i)},t.prototype.mergeOption=function(n){var r=i4(n);Dt(this.option,n,!0),Dt(this.settledOption,r,!0),this._doInit(r)},t.prototype._doInit=function(n){var r=this.option;this._setDefaultThrottle(n),this._updateRangeUse(n);var a=this.settledOption;F([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(r[i[0]]=a[i[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var n=this.get("orient",!0),r=this._targetAxisInfoMap=ot(),a=this._fillSpecifiedTargetAxis(r);a?this._orient=n||this._makeAutoOrientByTargetAxis():(this._orient=n||"horizontal",this._fillAutoTargetAxisByOrient(r,this._orient)),this._noTarget=!0,r.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(n){var r=!1;return F(a4,function(a){var i=this.getReferringComponents(Xs(a),KDe);if(i.specified){r=!0;var o=new HS;F(i.models,function(s){o.add(s.componentIndex)}),n.set(a,o)}},this),r},t.prototype._fillAutoTargetAxisByOrient=function(n,r){var a=this.ecModel,i=!0;if(i){var o=r==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=a.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===r}});l(s,"single")}function l(u,c){var f=u[0];if(f){var d=new HS;if(d.add(f.componentIndex),n.set(c,d),i=!1,c==="x"||c==="y"){var h=f.getReferringComponents("grid",Wn).models[0];h&&F(u,function(v){f.componentIndex!==v.componentIndex&&h===v.getReferringComponents("grid",Wn).models[0]&&d.add(v.componentIndex)})}}}i&&F(a4,function(u){if(i){var c=a.findComponents({mainType:Xs(u),filter:function(d){return d.get("type",!0)==="category"}});if(c[0]){var f=new HS;f.add(c[0].componentIndex),n.set(u,f),i=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var n;return this.eachTargetAxis(function(r){!n&&(n=r)},this),n==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(n){if(n.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var r=this.ecModel.option;this.option.throttle=r.animation&&r.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(n){var r=this._rangePropMode,a=this.get("rangeMode");F([["start","startValue"],["end","endValue"]],function(i,o){var s=n[i[0]]!=null,l=n[i[1]]!=null;s&&!l?r[o]="percent":!s&&l?r[o]="value":a?r[o]=a[o]:s&&(r[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var n;return this.eachTargetAxis(function(r,a){n==null&&(n=this.ecModel.getComponent(Xs(r),a))},this),n},t.prototype.eachTargetAxis=function(n,r){this._targetAxisInfoMap.each(function(a,i){F(a.indexList,function(o){n.call(r,i,o)})})},t.prototype.getAxisProxy=function(n,r){var a=this.getAxisModel(n,r);if(a)return a.__dzAxisProxy},t.prototype.getAxisModel=function(n,r){var a=this._targetAxisInfoMap.get(n);if(a&&a.indexMap[r])return this.ecModel.getComponent(Xs(n),r)},t.prototype.setRawRange=function(n){var r=this.option,a=this.settledOption;F([["start","startValue"],["end","endValue"]],function(i){(n[i[0]]!=null||n[i[1]]!=null)&&(r[i[0]]=a[i[0]]=n[i[0]],r[i[1]]=a[i[1]]=n[i[1]])},this),this._updateRangeUse(n)},t.prototype.setCalculatedRange=function(n){var r=this.option;F(["start","startValue","end","endValue"],function(a){r[a]=n[a]})},t.prototype.getPercentRange=function(){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataPercentWindow()},t.prototype.getValueRange=function(n,r){if(n==null&&r==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(n,r).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(n){if(n)return n.__dzAxisProxy;for(var r,a=this._targetAxisInfoMap.keys(),i=0;i<a.length;i++)for(var o=a[i],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;r||(r=u)}return r},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t}(Yt);function i4(e){var t={};return F(["start","end","startValue","endValue","throttle"],function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}const Vp=F9e;var H9e=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="dataZoom.select",t}(Vp);const G9e=H9e;var W9e=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a,i){this.dataZoomModel=n,this.ecModel=r,this.api=a},t.type="dataZoom",t}(An);const xE=W9e;var K9e=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="dataZoom.select",t}(xE);const U9e=K9e;var hf=F,o4=Ea,Y9e=function(){function e(t,n,r,a){this._dimName=t,this._axisIndex=n,this.ecModel=a,this._dataZoomModel=r}return e.prototype.hostedBy=function(t){return this._dataZoomModel===t},e.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},e.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},e.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(n){if(V9e(n)){var r=Xs(this._dimName),a=n.getReferringComponents(r,Wn).models[0];a&&this._axisIndex===a.componentIndex&&t.push(n)}},this),t},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},e.prototype.getMinMaxSpan=function(){return pt(this._minMaxSpan)},e.prototype.calculateDataWindow=function(t){var n=this._dataExtent,r=this.getAxisModel(),a=r.axis.scale,i=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;hf(["start","end"],function(d,h){var v=t[d],p=t[d+"Value"];i[h]==="percent"?(v==null&&(v=o[h]),p=a.parse(sn(v,o,n))):(u=!0,p=p==null?n[h]:a.parse(p),v=sn(p,n,o)),l[h]=p==null||isNaN(p)?n[h]:p,s[h]=v==null||isNaN(v)?o[h]:v}),o4(l),o4(s);var c=this._minMaxSpan;u?f(l,s,n,o,!1):f(s,l,o,n,!0);function f(d,h,v,p,g){var m=g?"Span":"ValueSpan";Ic(0,d,v,"all",c["min"+m],c["max"+m]);for(var b=0;b<2;b++)h[b]=sn(d[b],v,p,!0),g&&(h[b]=a.parse(h[b]))}return{valueWindow:l,percentWindow:s}},e.prototype.reset=function(t){if(t===this._dataZoomModel){var n=this.getTargetSeriesModels();this._dataExtent=j9e(this,this._dimName,n),this._updateMinMaxSpan();var r=this.calculateDataWindow(t.settledOption);this._valueWindow=r.valueWindow,this._percentWindow=r.percentWindow,this._setAxisModel()}},e.prototype.filterData=function(t,n){if(t!==this._dataZoomModel)return;var r=this._dimName,a=this.getTargetSeriesModels(),i=t.get("filterMode"),o=this._valueWindow;if(i==="none")return;hf(a,function(l){var u=l.getData(),c=u.mapDimensionsAll(r);if(c.length){if(i==="weakFilter"){var f=u.getStore(),d=Oe(c,function(h){return u.getDimensionIndex(h)},u);u.filterSelf(function(h){for(var v,p,g,m=0;m<c.length;m++){var b=f.get(d[m],h),_=!isNaN(b),w=b<o[0],C=b>o[1];if(_&&!w&&!C)return!0;_&&(g=!0),w&&(v=!0),C&&(p=!0)}return g&&v&&p})}else hf(c,function(h){if(i==="empty")l.setData(u=u.map(h,function(p){return s(p)?p:NaN}));else{var v={};v[h]=o,u.selectRange(v)}});hf(c,function(h){u.setApproximateExtent(o,h)})}});function s(l){return l>=o[0]&&l<=o[1]}},e.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},n=this._dataZoomModel,r=this._dataExtent;hf(["min","max"],function(a){var i=n.get(a+"Span"),o=n.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=sn(r[0]+o,r,[0,100],!0):i!=null&&(o=sn(i,[0,100],r,!0)-r[0]),t[a+"Span"]=i,t[a+"ValueSpan"]=o},this)},e.prototype._setAxisModel=function(){var t=this.getAxisModel(),n=this._percentWindow,r=this._valueWindow;if(n){var a=Ek(r,[0,500]);a=Math.min(a,20);var i=t.axis.scale.rawExtentInfo;n[0]!==0&&i.setDeterminedMinMax("min",+r[0].toFixed(a)),n[1]!==100&&i.setDeterminedMinMax("max",+r[1].toFixed(a)),i.freeze()}},e}();function j9e(e,t,n){var r=[1/0,-1/0];hf(n,function(o){a3e(r,o.getData(),t)});var a=e.getAxisModel(),i=N9(a.axis.scale,a,r).calculate();return[i.min,i.max]}const q9e=Y9e;var X9e={getTargetSeries:function(e){function t(a){e.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=e.getComponent(Xs(o),s);a(o,s,l,i)})})}t(function(a,i,o,s){o.__dzAxisProxy=null});var n=[];t(function(a,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new q9e(a,i,s,e),n.push(o.__dzAxisProxy))});var r=ot();return F(n,function(a){F(a.getTargetSeriesModels(),function(i){r.set(i.uid,i)})}),r},overallReset:function(e,t){e.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(r,a){n.getAxisProxy(r,a).reset(n)}),n.eachTargetAxis(function(r,a){n.getAxisProxy(r,a).filterData(n,t)})}),e.eachComponent("dataZoom",function(n){var r=n.findRepresentativeAxisProxy();if(r){var a=r.getDataPercentWindow(),i=r.getDataValueWindow();n.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};const Z9e=X9e;function J9e(e){e.registerAction("dataZoom",function(t,n){var r=z9e(n,t);F(r,function(a){a.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var s4=!1;function TE(e){s4||(s4=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,Z9e),J9e(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function Q9e(e){e.registerComponentModel(G9e),e.registerComponentView(U9e),TE(e)}var Ya=function(){function e(){}return e}(),wU={};function vf(e,t){wU[e]=t}function SU(e){return wU[e]}var e7e=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var n=this.ecModel;F(this.option.feature,function(r,a){var i=SU(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(n)),Dt(r,i.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(Yt);const t7e=e7e;function n7e(e,t,n){var r=t.getBoxLayoutParams(),a=t.get("padding"),i={width:n.getWidth(),height:n.getHeight()},o=Xn(r,i,a);Ju(t.get("orient"),e,t.get("itemGap"),o.width,o.height),$1(e,r,i,a)}function CU(e,t){var n=Mc(t.get("padding")),r=t.getItemStyle(["color","opacity"]);return r.fill=t.get("backgroundColor"),e=new Zt({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get("borderRadius")},style:r,silent:!0,z2:-1}),e}var r7e=function(e){ge(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(n,r,a,i){var o=this.group;if(o.removeAll(),!n.get("show"))return;var s=+n.get("itemSize"),l=n.get("orient")==="vertical",u=n.get("feature")||{},c=this._features||(this._features={}),f=[];F(u,function(v,p){f.push(p)}),new is(this._featureNames||[],f).add(d).update(d).remove(xt(d,null)).execute(),this._featureNames=f;function d(v,p){var g=f[v],m=f[p],b=u[g],_=new dn(b,n,n.ecModel),w;if(i&&i.newTitle!=null&&i.featureName===g&&(b.title=i.newTitle),g&&!m){if(a7e(g))w={onclick:_.option.onclick,featureName:g};else{var C=SU(g);if(!C)return;w=new C}c[g]=w}else if(w=c[m],!w)return;w.uid=Nd("toolbox-feature"),w.model=_,w.ecModel=r,w.api=a;var S=w instanceof Ya;if(!g&&m){S&&w.dispose&&w.dispose(r,a);return}if(!_.get("show")||S&&w.unusable){S&&w.remove&&w.remove(r,a);return}h(_,w,g),_.setIconStatus=function(x,T){var M=this.option,A=this.iconPaths;M.iconStatus=M.iconStatus||{},M.iconStatus[x]=T,A[x]&&(T==="emphasis"?rs:as)(A[x])},w instanceof Ya&&w.render&&w.render(_,r,a,i)}function h(v,p,g){var m=v.getModel("iconStyle"),b=v.getModel(["emphasis","iconStyle"]),_=p instanceof Ya&&p.getIcons?p.getIcons():v.get("icon"),w=v.get("title")||{},C,S;Je(_)?(C={},C[g]=_):C=_,Je(w)?(S={},S[g]=w):S=w;var x=v.iconPaths={};F(C,function(T,M){var A=Rd(T,{},{x:-s/2,y:-s/2,width:s,height:s});A.setStyle(m.getItemStyle());var k=A.ensureState("emphasis");k.style=b.getItemStyle();var E=new Xt({style:{text:S[M],align:b.get("textAlign"),borderRadius:b.get("textBorderRadius"),padding:b.get("textPadding"),fill:null},ignore:!0});A.setTextContent(E),Od({el:A,componentModel:n,itemName:M,formatterParamsExtra:{title:S[M]}}),A.__title=S[M],A.on("mouseover",function(){var D=b.getItemStyle(),L=l?n.get("right")==null&&n.get("left")!=="right"?"right":"left":n.get("bottom")==null&&n.get("top")!=="bottom"?"bottom":"top";E.setStyle({fill:b.get("textFill")||D.fill||D.stroke||"#000",backgroundColor:b.get("textBackgroundColor")}),A.setTextConfig({position:b.get("textPosition")||L}),E.ignore=!n.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){v.get(["iconStatus",M])!=="emphasis"&&a.leaveEmphasis(this),E.hide()}),(v.get(["iconStatus",M])==="emphasis"?rs:as)(A),o.add(A),A.on("click",et(p.onclick,p,r,a,M)),x[M]=A})}n7e(o,n,a),o.add(CU(o.getBoundingRect(),n)),l||o.eachChild(function(v){var p=v.__title,g=v.ensureState("emphasis"),m=g.textConfig||(g.textConfig={}),b=v.getTextContent(),_=b&&b.ensureState("emphasis");if(_&&!ut(_)&&p){var w=_.style||(_.style={}),C=ug(p,Xt.makeFont(w)),S=v.x+o.x,x=v.y+o.y+s,T=!1;x+C.height>a.getHeight()&&(m.position="top",T=!0);var M=T?-5-C.height:s+10;S+C.width/2>a.getWidth()?(m.position=["100%",M],w.align="right"):S-C.width/2<0&&(m.position=[0,M],w.align="left")}})},t.prototype.updateView=function(n,r,a,i){F(this._features,function(o){o instanceof Ya&&o.updateView&&o.updateView(o.model,r,a,i)})},t.prototype.remove=function(n,r){F(this._features,function(a){a instanceof Ya&&a.remove&&a.remove(n,r)}),this.group.removeAll()},t.prototype.dispose=function(n,r){F(this._features,function(a){a instanceof Ya&&a.dispose&&a.dispose(n,r)})},t.type="toolbox",t}(An);function a7e(e){return e.indexOf("my")===0}const i7e=r7e;var o7e=function(e){ge(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(n,r){var a=this.model,i=a.get("name")||n.get("title.0.text")||"echarts",o=r.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",l=r.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||n.get("backgroundColor")||"#fff",connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=Jt.browser;if(ut(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=i+"."+s,c.target="_blank",c.href=l;var f=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(f)}else if(window.navigator.msSaveOrOpenBlob||o){var d=l.split(","),h=d[0].indexOf("base64")>-1,v=o?decodeURIComponent(d[1]):d[1];h&&(v=window.atob(v));var p=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=v.length,m=new Uint8Array(g);g--;)m[g]=v.charCodeAt(g);var b=new Blob([m]);window.navigator.msSaveOrOpenBlob(b,p)}else{var _=document.createElement("iframe");document.body.appendChild(_);var w=_.contentWindow,C=w.document;C.open("image/svg+xml","replace"),C.write(v),C.close(),w.focus(),C.execCommand("SaveAs",!0,p),document.body.removeChild(_)}}else{var S=a.get("lang"),x='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(S&&S[0]||"")+'" /></body>',T=window.open();T.document.write(x),T.document.title=i}},t.getDefaultOption=function(n){var r={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:n.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:n.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return r},t}(Ya);const s7e=o7e;var l4="__ec_magicType_stack__",l7e=[["line","bar"],["stack"]],u7e=function(e){ge(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getIcons=function(){var n=this.model,r=n.get("icon"),a={};return F(n.get("type"),function(i){r[i]&&(a[i]=r[i])}),a},t.getDefaultOption=function(n){var r={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:n.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return r},t.prototype.onclick=function(n,r,a){var i=this.model,o=i.get(["seriesIndex",a]);if(u4[a]){var s={series:[]},l=function(f){var d=f.subType,h=f.id,v=u4[a](d,h,f,i);v&&(ft(v,f.option),s.series.push(v));var p=f.coordinateSystem;if(p&&p.type==="cartesian2d"&&(a==="line"||a==="bar")){var g=p.getAxesByScale("ordinal")[0];if(g){var m=g.dim,b=m+"Axis",_=f.getReferringComponents(b,Wn).models[0],w=_.componentIndex;s[b]=s[b]||[];for(var C=0;C<=w;C++)s[b][w]=s[b][w]||{};s[b][w].boundaryGap=a==="bar"}}};F(l7e,function(f){$t(f,a)>=0&&F(f,function(d){i.setIconStatus(d,"normal")})}),i.setIconStatus(a,"emphasis"),n.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=a;a==="stack"&&(u=Dt({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(c="tiled")),r.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},t}(Ya),u4={line:function(e,t,n,r){if(e==="bar")return Dt({id:t,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(e,t,n,r){if(e==="line")return Dt({id:t,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(e,t,n,r){var a=n.get("stack")===l4;if(e==="line"||e==="bar")return r.setIconStatus("stack",a?"normal":"emphasis"),Dt({id:t,stack:a?"":l4},r.get(["option","stack"])||{},!0)}};Yi({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)});const c7e=u7e;var e_=new Array(60).join("-"),yd=" ";function f7e(e){var t={},n=[],r=[];return e.eachRawSeries(function(a){var i=a.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},r.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(a)}else n.push(a)}else n.push(a)}),{seriesGroupByCategoryAxis:t,other:n,meta:r}}function d7e(e){var t=[];return F(e,function(n,r){var a=n.categoryAxis,i=n.valueAxis,o=i.dim,s=[" "].concat(Oe(n.series,function(h){return h.name})),l=[a.model.getCategories()];F(n.series,function(h){var v=h.getRawData();l.push(h.getRawData().mapArray(v.mapDimension(o),function(p){return p}))});for(var u=[s.join(yd)],c=0;c<l[0].length;c++){for(var f=[],d=0;d<l.length;d++)f.push(l[d][c]);u.push(f.join(yd))}t.push(u.join(`
  93. `))}),t.join(`
  94. `+e_+`
  95. `)}function h7e(e){return Oe(e,function(t){var n=t.getRawData(),r=[t.name],a=[];return n.each(n.dimensions,function(){for(var i=arguments.length,o=arguments[i-1],s=n.getName(o),l=0;l<i-1;l++)a[l]=arguments[l];r.push((s?s+yd:"")+a.join(yd))}),r.join(`
  96. `)}).join(`
  97. `+e_+`
  98. `)}function v7e(e){var t=f7e(e);return{value:ln([d7e(t.seriesGroupByCategoryAxis),h7e(t.other)],function(n){return!!n.replace(/[\n\t\s]/g,"")}).join(`
  99. `+e_+`
  100. `),meta:t.meta}}function vb(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function p7e(e){var t=e.slice(0,e.indexOf(`
  101. `));if(t.indexOf(yd)>=0)return!0}var rT=new RegExp("["+yd+"]+","g");function g7e(e){for(var t=e.split(/\n+/g),n=vb(t.shift()).split(rT),r=[],a=Oe(n,function(l){return{name:l,data:[]}}),i=0;i<t.length;i++){var o=vb(t[i]).split(rT);r.push(o.shift());for(var s=0;s<o.length;s++)a[s]&&(a[s].data[i]=o[s])}return{series:a,categories:r}}function m7e(e){for(var t=e.split(/\n+/g),n=vb(t.shift()),r=[],a=0;a<t.length;a++){var i=vb(t[a]);if(i){var o=i.split(rT),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),r[a]={name:s,value:[]},l=r[a].value):l=r[a]=[];for(var c=0;c<o.length;c++)l.push(+o[c]);l.length===1&&(u?r[a].value=l[0]:r[a]=l[0])}}return{name:n,data:r}}function y7e(e,t){var n=e.split(new RegExp(`
  102. *`+e_+`
  103. *`,"g")),r={series:[]};return F(n,function(a,i){if(p7e(a)){var o=g7e(a),s=t[i],l=s.axisDim+"Axis";s&&(r[l]=r[l]||[],r[l][s.axisIndex]={data:o.categories},r.series=r.series.concat(o.series))}else{var o=m7e(a);r.series.push(o)}}),r}var b7e=function(e){ge(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(n,r){setTimeout(function(){r.dispatchAction({type:"hideTip"})});var a=r.getDom(),i=this.model;this._dom&&a.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=i.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=i.get("lang")||[];s.innerHTML=l[0]||i.get("title"),s.style.cssText="margin:10px 20px",s.style.color=i.get("textColor");var u=document.createElement("div"),c=document.createElement("textarea");u.style.cssText="overflow:auto";var f=i.get("optionToContent"),d=i.get("contentToOption"),h=v7e(n);if(ut(f)){var v=f(r.getOption());Je(v)?u.innerHTML=v:ud(v)&&u.appendChild(v)}else{c.readOnly=i.get("readOnly");var p=c.style;p.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",p.color=i.get("textColor"),p.borderColor=i.get("textareaBorderColor"),p.backgroundColor=i.get("textareaColor"),c.value=h.value,u.appendChild(c)}var g=h.meta,m=document.createElement("div");m.style.cssText="position:absolute;bottom:5px;left:0;right:0";var b="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",_=document.createElement("div"),w=document.createElement("div");b+=";background-color:"+i.get("buttonColor"),b+=";color:"+i.get("buttonTextColor");var C=this;function S(){a.removeChild(o),C._dom=null}Ox(_,"click",S),Ox(w,"click",function(){if(d==null&&f!=null||d!=null&&f==null){S();return}var x;try{ut(d)?x=d(u,r.getOption()):x=y7e(c.value,g)}catch(T){throw S(),new Error("Data view format error "+T)}x&&r.dispatchAction({type:"changeDataView",newOption:x}),S()}),_.innerHTML=l[1],w.innerHTML=l[2],w.style.cssText=_.style.cssText=b,!i.get("readOnly")&&m.appendChild(w),m.appendChild(_),o.appendChild(s),o.appendChild(u),o.appendChild(m),u.style.height=a.clientHeight-80+"px",a.appendChild(o),this._dom=o},t.prototype.remove=function(n,r){this._dom&&r.getDom().removeChild(this._dom)},t.prototype.dispose=function(n,r){this.remove(n,r)},t.getDefaultOption=function(n){var r={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:n.getLocaleModel().get(["toolbox","dataView","title"]),lang:n.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return r},t}(Ya);function _7e(e,t){return Oe(e,function(n,r){var a=t&&t[r];if(ht(a)&&!Re(a)){var i=ht(n)&&!Re(n);i||(n={value:n});var o=a.name!=null&&n.name==null;return n=ft(n,a),o&&delete n.name,n}else return n})}Yi({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(e,t){var n=[];F(e.newOption.series,function(r){var a=t.getSeriesByName(r.name)[0];if(!a)n.push(Ie({type:"scatter"},r));else{var i=a.get("data");n.push({name:r.name,data:_7e(r.data,i)})}}),t.mergeOption(ft({series:n},e.newOption))});const w7e=b7e;var xU=F,TU=en();function S7e(e,t){var n=ME(e);xU(t,function(r,a){for(var i=n.length-1;i>=0;i--){var o=n[i];if(o[a])break}if(i<0){var s=e.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();n[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),n.push(t)}function C7e(e){var t=ME(e),n=t[t.length-1];t.length>1&&t.pop();var r={};return xU(n,function(a,i){for(var o=t.length-1;o>=0;o--)if(a=t[o][i],a){r[i]=a;break}}),r}function x7e(e){TU(e).snapshots=null}function T7e(e){return ME(e).length}function ME(e){var t=TU(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var M7e=function(e){ge(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(n,r){x7e(n),r.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(n){var r={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:n.getLocaleModel().get(["toolbox","restore","title"])};return r},t}(Ya);Yi({type:"restore",event:"restore",update:"prepareAndUpdate"},function(e,t){t.resetOption("recreate")});const k7e=M7e;var A7e=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],E7e=function(){function e(t,n,r){var a=this;this._targetInfoList=[];var i=c4(n,t);F(I7e,function(o,s){(!r||!r.include||$t(r.include,s)>=0)&&o(i,a._targetInfoList)})}return e.prototype.setOutputRanges=function(t,n){return this.matchOutputRanges(t,n,function(r,a,i){if((r.coordRanges||(r.coordRanges=[])).push(a),!r.coordRange){r.coordRange=a;var o=GS[r.brushType](0,i,a);r.__rangeOffset={offset:v4[r.brushType](o.values,r.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},e.prototype.matchOutputRanges=function(t,n,r){F(t,function(a){var i=this.findTargetInfo(a,n);i&&i!==!0&&F(i.coordSyses,function(o){var s=GS[a.brushType](1,o,a.range,!0);r(a,s.values,o,n)})},this)},e.prototype.setInputRanges=function(t,n){F(t,function(r){var a=this.findTargetInfo(r,n);if(r.range=r.range||[],a&&a!==!0){r.panelId=a.panelId;var i=GS[r.brushType](0,a.coordSys,r.coordRange),o=r.__rangeOffset;r.range=o?v4[r.brushType](i.values,o.offset,D7e(i.xyMinMax,o.xyMinMax)):i.values}},this)},e.prototype.makePanelOpts=function(t,n){return Oe(this._targetInfoList,function(r){var a=r.getPanelRect();return{panelId:r.panelId,defaultBrushType:n?n(r):null,clipPath:PK(a),isTargetByCursor:RK(a,t,r.coordSysModel),getLinearBrushOtherExtent:LK(a)}})},e.prototype.controlSeries=function(t,n,r){var a=this.findTargetInfo(t,r);return a===!0||a&&$t(a.coordSyses,n.coordinateSystem)>=0},e.prototype.findTargetInfo=function(t,n){for(var r=this._targetInfoList,a=c4(n,t),i=0;i<r.length;i++){var o=r[i],s=t.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<f4.length;l++)if(f4[l](a,o))return o}return!0},e}();function aT(e){return e[0]>e[1]&&e.reverse(),e}function c4(e,t){return mv(e,t,{includeMainTypes:A7e})}var I7e={grid:function(e,t){var n=e.xAxisModels,r=e.yAxisModels,a=e.gridModels,i=ot(),o={},s={};!n&&!r&&!a||(F(n,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),F(r,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),F(a,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,c=[];F(u.getCartesians(),function(f,d){($t(n,f.getAxis("x").model)>=0||$t(r,f.getAxis("y").model)>=0)&&c.push(f)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:d4.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(e,t){F(e.geoModels,function(n){var r=n.coordinateSystem;t.push({panelId:"geo--"+n.id,geoModel:n,coordSysModel:n,coordSys:r,coordSyses:[r],getPanelRect:d4.geo})})}},f4=[function(e,t){var n=e.xAxisModel,r=e.yAxisModel,a=e.gridModel;return!a&&n&&(a=n.axis.grid.model),!a&&r&&(a=r.axis.grid.model),a&&a===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],d4={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(al(e)),t}},GS={lineX:xt(h4,0),lineY:xt(h4,1),rect:function(e,t,n,r){var a=e?t.pointToData([n[0][0],n[1][0]],r):t.dataToPoint([n[0][0],n[1][0]],r),i=e?t.pointToData([n[0][1],n[1][1]],r):t.dataToPoint([n[0][1],n[1][1]],r),o=[aT([a[0],i[0]]),aT([a[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(e,t,n,r){var a=[[1/0,-1/0],[1/0,-1/0]],i=Oe(n,function(o){var s=e?t.pointToData(o,r):t.dataToPoint(o,r);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:i,xyMinMax:a}}};function h4(e,t,n,r){var a=n.getAxis(["x","y"][e]),i=aT(Oe([0,1],function(s){return t?a.coordToData(a.toLocalCoord(r[s]),!0):a.toGlobalCoord(a.dataToCoord(r[s]))})),o=[];return o[e]=i,o[1-e]=[NaN,NaN],{values:i,xyMinMax:o}}var v4={lineX:xt(p4,0),lineY:xt(p4,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return Oe(e,function(r,a){return[r[0]-n[0]*t[a][0],r[1]-n[1]*t[a][1]]})}};function p4(e,t,n,r){return[t[0]-r[e]*n[0],t[1]-r[e]*n[1]]}function D7e(e,t){var n=g4(e),r=g4(t),a=[n[0]/r[0],n[1]/r[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function g4(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}const kE=E7e;var iT=F,P7e=zDe("toolbox-dataZoom_"),L7e=function(e){ge(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(n,r,a,i){this._brushController||(this._brushController=new sE(a.getZr()),this._brushController.on("brush",et(this._onBrush,this)).mount()),$7e(n,r,this,i,a),O7e(n,r)},t.prototype.onclick=function(n,r,a){R7e[a].call(this)},t.prototype.remove=function(n,r){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(n,r){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(n){var r=n.areas;if(!n.isEnd||!r.length)return;var a={},i=this.ecModel;this._brushController.updateCovers([]);var o=new kE(AE(this.model),i,{include:["grid"]});o.matchOutputRanges(r,i,function(u,c,f){if(f.type==="cartesian2d"){var d=u.brushType;d==="rect"?(s("x",f,c[0]),s("y",f,c[1])):s({lineX:"x",lineY:"y"}[d],f,c)}}),S7e(i,a),this._dispatchZoomAction(a);function s(u,c,f){var d=c.getAxis(u),h=d.model,v=l(u,h,i),p=v.findRepresentativeAxisProxy(h).getMinMaxSpan();(p.minValueSpan!=null||p.maxValueSpan!=null)&&(f=Ic(0,f.slice(),d.scale.getExtent(),0,p.minValueSpan,p.maxValueSpan)),v&&(a[v.id]={dataZoomId:v.id,startValue:f[0],endValue:f[1]})}function l(u,c,f){var d;return f.eachComponent({mainType:"dataZoom",subType:"select"},function(h){var v=h.getAxisModel(u,c.componentIndex);v&&(d=h)}),d}},t.prototype._dispatchZoomAction=function(n){var r=[];iT(n,function(a,i){r.push(pt(a))}),r.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:r})},t.getDefaultOption=function(n){var r={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:n.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return r},t}(Ya),R7e={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(C7e(this.ecModel))}};function AE(e){var t={xAxisIndex:e.get("xAxisIndex",!0),yAxisIndex:e.get("yAxisIndex",!0),xAxisId:e.get("xAxisId",!0),yAxisId:e.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function O7e(e,t){e.setIconStatus("back",T7e(t)>1?"emphasis":"normal")}function $7e(e,t,n,r,a){var i=n._isZoomActive;r&&r.type==="takeGlobalCursor"&&(i=r.key==="dataZoomSelect"?r.dataZoomSelectActive:!1),n._isZoomActive=i,e.setIconStatus("zoom",i?"emphasis":"normal");var o=new kE(AE(e),t,{include:["grid"]}),s=o.makePanelOpts(a,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});n._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()}:!1)}yRe("dataZoom",function(e){var t=e.getComponent("toolbox",0),n=["feature","dataZoom"];if(!t||t.get(n)==null)return;var r=t.getModel(n),a=[],i=AE(r),o=mv(e,i);iT(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),iT(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var f=l.componentIndex,d={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:P7e+u+f};d[c]=f,a.push(d)}return a});const N7e=L7e;function B7e(e){e.registerComponentModel(t7e),e.registerComponentView(i7e),vf("saveAsImage",s7e),vf("magicType",c7e),vf("dataView",w7e),vf("dataZoom",N7e),vf("restore",k7e),Bt(Q9e)}var V7e=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}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}(Yt);const z7e=V7e;function MU(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function kU(e){if(Jt.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n<r;n++)if(e[n]in t)return e[n]}}var AU=kU(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),F7e=kU(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function EU(e,t){if(!e)return t;t=tA(t,!0);var n=e.indexOf(t);return e=n===-1?t:"-"+e.slice(0,n)+"-"+t,e.toLowerCase()}function H7e(e,t){var n=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return n?t?n[t]:n:null}var G7e=EU(F7e,"transition"),EE=EU(AU,"transform"),W7e="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Jt.transform3dSupported?"will-change:transform;":"");function K7e(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function U7e(e,t,n){if(!Je(n)||n==="inside")return"";var r=e.get("backgroundColor"),a=e.get("borderWidth");t=hc(t);var i=K7e(n),o=Math.max(Math.round(a)*1.5,6),s="",l=EE+":",u;$t(["left","right"],i)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var c=u*Math.PI/180,f=o+a,d=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),h=Math.round(((d-Math.SQRT2*a)/2+Math.SQRT2*a-(d-f)/2)*100)/100;s+=";"+i+":-"+h+"px";var v=t+" solid "+a+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+v,"border-right:"+v,"background-color:"+r+";"];return'<div style="'+p.join("")+'"></div>'}function Y7e(e,t){var n="cubic-bezier(0.23,1,0.32,1)",r=" "+e/2+"s "+n,a="opacity"+r+",visibility"+r;return t||(r=" "+e+"s "+n,a+=Jt.transformSupported?","+EE+r:",left"+r+",top"+r),G7e+":"+a}function m4(e,t,n){var r=e.toFixed(0)+"px",a=t.toFixed(0)+"px";if(!Jt.transformSupported)return n?"top:"+a+";left:"+r+";":[["top",a],["left",r]];var i=Jt.transform3dSupported,o="translate"+(i?"3d":"")+"("+r+","+a+(i?",0":"")+")";return n?"top:0;left:0;"+EE+":"+o+";":[["top",0],["left",0],[AU,o]]}function j7e(e){var t=[],n=e.get("fontSize"),r=e.getTextColor();r&&t.push("color:"+r),t.push("font:"+e.getFont()),n&&t.push("line-height:"+Math.round(n*3/2)+"px");var a=e.get("textShadowColor"),i=e.get("textShadowBlur")||0,o=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return a&&i&&t.push("text-shadow:"+o+"px "+s+"px "+i+"px "+a),F(["decoration","align"],function(l){var u=e.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function q7e(e,t,n){var r=[],a=e.get("transitionDuration"),i=e.get("backgroundColor"),o=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),c=e.getModel("textStyle"),f=LW(e,"html"),d=l+"px "+u+"px "+o+"px "+s;return r.push("box-shadow:"+d),t&&a&&r.push(Y7e(a,n)),i&&r.push("background-color:"+i),F(["width","color","radius"],function(h){var v="border-"+h,p=tA(v),g=e.get(p);g!=null&&r.push(v+":"+g+(h==="color"?"":"px"))}),r.push(j7e(c)),f!=null&&r.push("padding:"+Mc(f).join("px ")+"px"),r.join(";")+";"}function y4(e,t,n,r,a){var i=t&&t.painter;if(n){var o=i&&i.getViewportRoot();o&&aIe(e,o,document.body,r,a)}else{e[0]=r,e[1]=a;var s=i&&i.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var X7e=function(){function e(t,n,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Jt.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var i=this._zr=n.getZr(),o=this._appendToBody=r&&r.appendToBody;y4(this._styleCoord,i,o,n.getWidth()/2,n.getHeight()/2),o?document.body.appendChild(a):t.appendChild(a),this._container=t;var s=this;a.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},a.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,c=i.painter.getViewportRoot();Fa(c,l,!0),u.dispatch("mousemove",l)}},a.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){var n=this._container,r=H7e(n,"position"),a=n.style;a.position!=="absolute"&&r!=="absolute"&&(a.position="relative");var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=t.get("className")||""},e.prototype.show=function(t,n){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var r=this.el,a=r.style,i=this._styleCoord;r.innerHTML?a.cssText=W7e+q7e(t,!this._firstShow,this._longHide)+m4(i[0],i[1],!0)+("border-color:"+hc(n)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,n,r,a,i){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(Je(i)&&r.get("trigger")==="item"&&!MU(r)&&(s=U7e(r,a,i)),Je(t))o.innerHTML=t+s;else if(t){o.innerHTML="",Re(t)||(t=[t]);for(var l=0;l<t.length;l++)ud(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,n){var r=this._styleCoord;if(y4(r,this._zr,this._appendToBody,t,n),r[0]!=null&&r[1]!=null){var a=this.el.style,i=m4(r[0],r[1]);F(i,function(o){a[o[0]]=o[1]})}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],n=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),n*this._zr.getHeight())},e.prototype.hide=function(){var t=this,n=this.el.style;n.visibility="hidden",n.opacity="0",Jt.transform3dSupported&&(n.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(et(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 Z7e=X7e;var J7e=function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),_4(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return e.prototype.update=function(t){var n=t.get("alwaysShowContent");n&&this._moveIfResized(),this._alwaysShowContent=n},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(t,n,r,a,i){var o=this;ht(t)&&an(""),this.el&&this._zr.remove(this.el);var s=r.getModel("textStyle");this.el=new Xt({style:{rich:n.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:s.get("textShadowColor"),fill:r.get(["textStyle","color"]),padding:LW(r,"richText"),verticalAlign:"top",align:"left"},z:r.get("z")}),F(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=r.get(u)}),F(["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,n=this.el.getBoundingRect(),r=b4(t.style);return[n.width+r.left+r.right,n.height+r.top+r.bottom]},e.prototype.moveTo=function(t,n){var r=this.el;if(r){var a=this._styleCoord;_4(a,this._zr,t,n),t=a[0],n=a[1];var i=r.style,o=Os(i.borderWidth||0),s=b4(i);r.x=t+o+s.left,r.y=n+o+s.top,r.markRedraw()}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],n=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),n*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)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(et(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function Os(e){return Math.max(0,e)}function b4(e){var t=Os(e.shadowBlur||0),n=Os(e.shadowOffsetX||0),r=Os(e.shadowOffsetY||0);return{left:Os(t-n),right:Os(t+n),top:Os(t-r),bottom:Os(t+r)}}function _4(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}const Q7e=J7e;var eKe=new Zt({shape:{x:-1,y:-1,width:2,height:2}}),tKe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r){if(!(Jt.node||!r.getDom())){var a=n.getComponent("tooltip"),i=this._renderMode=YDe(a.get("renderMode"));this._tooltipContent=i==="richText"?new Q7e(r):new Z7e(r.getDom(),r,{appendToBody:a.get("appendToBody",!0)})}},t.prototype.render=function(n,r,a){if(!(Jt.node||!a.getDom())){this.group.removeAll(),this._tooltipModel=n,this._ecModel=r,this._api=a;var i=this._tooltipContent;i.update(n),i.setEnterable(n.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&n.get("transitionDuration")?Gd(this,"_updatePosition",50,"fixRate"):kp(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var n=this._tooltipModel,r=n.get("triggerOn");dU("itemTooltip",this._api,et(function(a,i,o){r!=="none"&&(r.indexOf(a)>=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var n=this._tooltipModel,r=this._ecModel,a=this._api,i=n.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(n,r,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(n,r,a,i){if(!(i.from===this.uid||Jt.node||!a.getDom())){var o=w4(i,a);this._ticket="";var s=i.dataByCoordSys,l=iKe(i,r,a);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:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var c=eKe;c.x=i.x,c.y=i.y,c.update(),Tt(c).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:c},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(n,r,a,i))return;var f=hU(i,r),d=f.point[0],h=f.point[1];d!=null&&h!=null&&this._tryShow({offsetX:d,offsetY:h,target:f.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},t.prototype.manuallyHideTip=function(n,r,a,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(w4(i,a))},t.prototype._manuallyAxisShowTip=function(n,r,a,i){var o=i.seriesIndex,s=i.dataIndex,l=r.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=r.getSeriesByIndex(o);if(u){var c=u.getData(),f=Eh([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},t.prototype._tryShow=function(n,r){var a=n.target,i=this._tooltipModel;if(i){this._lastX=n.offsetX,this._lastY=n.offsetY;var o=n.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,n);else if(a){this._lastDataByCoordSys=null;var s,l;zu(a,function(u){if(Tt(u).dataIndex!=null)return s=u,!0;if(Tt(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(n,s,r):l?this._showComponentItemTooltip(n,l,r):this._hide(r)}else this._lastDataByCoordSys=null,this._hide(r)}},t.prototype._showOrMove=function(n,r){var a=n.get("showDelay");r=et(r,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(r,a):r()},t.prototype._showAxisTooltip=function(n,r){var a=this._ecModel,i=this._tooltipModel,o=[r.offsetX,r.offsetY],s=Eh([r.tooltipOption],i),l=this._renderMode,u=[],c=ur("section",{blocks:[],noHeader:!0}),f=[],d=new Aw;F(n,function(b){F(b.dataByAxis,function(_){var w=a.getComponent(_.axisDim+"Axis",_.axisIndex),C=_.value;if(!(!w||C==null)){var S=uU(C,w.axis,a,_.seriesDataIndices,_.valueLabelOpt),x=ur("section",{header:S,noHeader:!Za(S),sortBlocks:!0,blocks:[]});c.blocks.push(x),F(_.seriesDataIndices,function(T){var M=a.getSeriesByIndex(T.seriesIndex),A=T.dataIndexInside,k=M.getDataParams(A);if(!(k.dataIndex<0)){k.axisDim=_.axisDim,k.axisIndex=_.axisIndex,k.axisType=_.axisType,k.axisId=_.axisId,k.axisValue=DA(w.axis,{value:C}),k.axisValueLabel=S,k.marker=d.makeTooltipMarker("item",hc(k.color),l);var E=sO(M.formatTooltip(A,!0,null)),D=E.frag;if(D){var L=Eh([M],i).get("valueFormatter");x.blocks.push(L?Ie({valueFormatter:L},D):D)}E.text&&f.push(E.text),u.push(k)}})}})}),c.blocks.reverse(),f.reverse();var h=r.position,v=s.get("order"),p=hO(c,d,l,v,a.get("useUTC"),s.get("textStyle"));p&&f.unshift(p);var g=l==="richText"?`
  104. `:"<br/>",m=f.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(n,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(n,r,a){var i=this._ecModel,o=Tt(r),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,d=u.getData(f),h=this._renderMode,v=n.positionDefault,p=Eh([d.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var m=u.getDataParams(c,f),b=new Aw;m.marker=b.makeTooltipMarker("item",hc(m.color),h);var _=sO(u.formatTooltip(c,!1,f)),w=p.get("order"),C=p.get("valueFormatter"),S=_.frag,x=S?hO(C?Ie({valueFormatter:C},S):S,b,h,w,i.get("useUTC"),p.get("textStyle")):_.text,T="item_"+u.name+"_"+c;this._showOrMove(p,function(){this._showTooltipContent(p,x,m,T,n.offsetX,n.offsetY,n.position,n.target,b)}),a({type:"showTip",dataIndexInside:c,dataIndex:d.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(n,r,a){var i=Tt(r),o=i.tooltipConfig,s=o.option||{};if(Je(s)){var l=s;s={content:l,formatter:l}}var u=[s],c=this._ecModel.getComponent(i.componentMainType,i.componentIndex);c&&u.push(c),u.push({formatter:s.content});var f=n.positionDefault,d=Eh(u,this._tooltipModel,f?{position:f}:null),h=d.get("content"),v=Math.random()+"",p=new Aw;this._showOrMove(d,function(){var g=pt(d.get("formatterParams")||{});this._showTooltipContent(d,h,g,v,n.offsetX,n.offsetY,n.position,r,p)}),a({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(n,r,a,i,o,s,l,u,c){if(this._ticket="",!(!n.get("showContent")||!n.get("show"))){var f=this._tooltipContent;f.setEnterable(n.get("enterable"));var d=n.get("formatter");l=l||n.get("position");var h=r,v=this._getNearestPoint([o,s],a,n.get("trigger"),n.get("borderColor")),p=v.color;if(d)if(Je(d)){var g=n.ecModel.get("useUTC"),m=Re(a)?a[0]:a,b=m&&m.axisType&&m.axisType.indexOf("time")>=0;h=d,b&&(h=mg(m.axisValue,h,g)),h=nA(h,a,!0)}else if(ut(d)){var _=et(function(w,C){w===this._ticket&&(f.setContent(C,c,n,p,l),this._updatePosition(n,l,o,s,f,a,u))},this);this._ticket=i,h=d(a,i,_)}else h=d;f.setContent(h,c,n,p,l),f.show(n,p),this._updatePosition(n,l,o,s,f,a,u)}},t.prototype._getNearestPoint=function(n,r,a,i){if(a==="axis"||Re(r))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!Re(r))return{color:i||r.color||r.borderColor}},t.prototype._updatePosition=function(n,r,a,i,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();r=r||n.get("position");var f=o.getSize(),d=n.get("align"),h=n.get("verticalAlign"),v=l&&l.getBoundingRect().clone();if(l&&v.applyTransform(l.transform),ut(r)&&(r=r([a,i],s,o.el,v,{viewSize:[u,c],contentSize:f.slice()})),Re(r))a=qe(r[0],u),i=qe(r[1],c);else if(ht(r)){var p=r;p.width=f[0],p.height=f[1];var g=Xn(p,{width:u,height:c});a=g.x,i=g.y,d=null,h=null}else if(Je(r)&&l){var m=aKe(r,v,f,n.get("borderWidth"));a=m[0],i=m[1]}else{var m=nKe(a,i,o,u,c,d?null:20,h?null:20);a=m[0],i=m[1]}if(d&&(a-=S4(d)?f[0]/2:d==="right"?f[0]:0),h&&(i-=S4(h)?f[1]/2:h==="bottom"?f[1]:0),MU(n)){var m=rKe(a,i,o,u,c);a=m[0],i=m[1]}o.moveTo(a,i)},t.prototype._updateContentNotChangedOnAxis=function(n,r){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===n.length;return o&&F(a,function(s,l){var u=s.dataByAxis||[],c=n[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&F(u,function(d,h){var v=f[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&&F(p,function(m,b){var _=g[b];o=o&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),i&&F(d.seriesDataIndices,function(m){var b=m.seriesIndex,_=r[b],w=i[b];_&&w&&w.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=n,this._cbParamsList=r,!!o},t.prototype._hide=function(n){this._lastDataByCoordSys=null,n({type:"hideTip",from:this.uid})},t.prototype.dispose=function(n,r){Jt.node||!r.getDom()||(kp(this,"_updatePosition"),this._tooltipContent.dispose(),eT("itemTooltip",r))},t.type="tooltip",t}(An);function Eh(e,t,n){var r=t.ecModel,a;n?(a=new dn(n,r,r),a=new dn(t.option,a,r)):a=t;for(var i=e.length-1;i>=0;i--){var o=e[i];o&&(o instanceof dn&&(o=o.get("tooltip",!0)),Je(o)&&(o={formatter:o}),o&&(a=new dn(o,a,r)))}return a}function w4(e,t){return e.dispatchAction||et(t.dispatchAction,t)}function nKe(e,t,n,r,a,i,o){var s=n.getSize(),l=s[0],u=s[1];return i!=null&&(e+l+i+2>r?e-=l+i:e+=i),o!=null&&(t+u+o>a?t-=u+o:t+=o),[e,t]}function rKe(e,t,n,r,a){var i=n.getSize(),o=i[0],s=i[1];return e=Math.min(e+o,r)-o,t=Math.min(t+s,a)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function aKe(e,t,n,r){var a=n[0],i=n[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=t.width,c=t.height;switch(e){case"inside":s=t.x+u/2-a/2,l=t.y+c/2-i/2;break;case"top":s=t.x+u/2-a/2,l=t.y-i-o;break;case"bottom":s=t.x+u/2-a/2,l=t.y+c+o;break;case"left":s=t.x-a-o,l=t.y+c/2-i/2;break;case"right":s=t.x+u+o,l=t.y+c/2-i/2}return[s,l]}function S4(e){return e==="center"||e==="middle"}function iKe(e,t,n){var r=Rk(e).queryOptionMap,a=r.keys()[0];if(!(!a||a==="series")){var i=cg(t,a,r.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=n.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=Tt(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}const oKe=tKe;function sKe(e){Bt(Ag),e.registerComponentModel(z7e),e.registerComponentView(oKe),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Nn),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Nn)}var lKe=["rect","polygon","keep","clear"];function uKe(e,t){var n=hn(e?e.brush:[]);if(n.length){var r=[];F(n,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(r=r.concat(u))});var a=e&&e.toolbox;Re(a)&&(a=a[0]),a||(a={feature:{}},e.toolbox=[a]);var i=a.feature||(a.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,r),cKe(s),t&&!s.length&&s.push.apply(s,lKe)}}function cKe(e){var t={};F(e,function(n){t[n]=1}),e.length=0,F(t,function(n,r){e.push(r)})}var C4=F;function x4(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function oT(e,t,n){var r={};return C4(t,function(i){var o=r[i]=a();C4(e[i],function(s,l){if(wr.isValidType(l)){var u={type:l,visual:s};n&&n(u,i),o[l]=new wr(u),l==="opacity"&&(u=pt(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new wr(u))}})}),r;function a(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function IU(e,t,n){var r;F(n,function(a){t.hasOwnProperty(a)&&x4(t[a])&&(r=!0)}),r&&F(n,function(a){t.hasOwnProperty(a)&&x4(t[a])?e[a]=pt(t[a]):delete e[a]})}function fKe(e,t,n,r,a,i){var o={};F(e,function(f){var d=wr.prepareVisualTypes(t[f]);o[f]=d});var s;function l(f){return vA(n,s,f)}function u(f,d){GW(n,s,f,d)}i==null?n.each(c):n.each([i],c);function c(f,d){s=i==null?f:d;var h=n.getRawDataItem(s);if(!(h&&h.visualMap===!1))for(var v=r.call(a,f),p=t[v],g=o[v],m=0,b=g.length;m<b;m++){var _=g[m];p[_]&&p[_].applyVisual(f,l,u)}}}function dKe(e,t,n,r){var a={};return F(e,function(i){var o=wr.prepareVisualTypes(t[i]);a[i]=o}),{progress:function(o,s){var l;r!=null&&(l=s.getDimensionIndex(r));function u(C){return vA(s,f,C)}function c(C,S){GW(s,f,C,S)}for(var f,d=s.getStore();(f=o.next())!=null;){var h=s.getRawDataItem(f);if(!(h&&h.visualMap===!1))for(var v=r!=null?d.get(l,f):f,p=n(v),g=t[p],m=a[p],b=0,_=m.length;b<_;b++){var w=m[b];g[w]&&g[w].applyVisual(v,u,c)}}}}}function hKe(e){var t=e.brushType,n={point:function(r){return T4[t].point(r,n,e)},rect:function(r){return T4[t].rect(r,n,e)}};return n}var T4={lineX:M4(0),lineY:M4(1),rect:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])},rect:function(e,t,n){return e&&n.boundingRect.intersect(e)}},polygon:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])&&Tu(n.range,e[0],e[1])},rect:function(e,t,n){var r=n.range;if(!e||r.length<=1)return!1;var a=e.x,i=e.y,o=e.width,s=e.height,l=r[0];if(Tu(r,a,i)||Tu(r,a+o,i)||Tu(r,a,i+s)||Tu(r,a+o,i+s)||Rt.create(e).contain(l[0],l[1])||Hh(a,i,a+o,i,r)||Hh(a,i,a,i+s,r)||Hh(a+o,i,a+o,i+s,r)||Hh(a,i+s,a+o,i+s,r))return!0}}};function M4(e){var t=["x","y"],n=["width","height"];return{point:function(r,a,i){if(r){var o=i.range,s=r[e];return Ih(s,o)}},rect:function(r,a,i){if(r){var o=i.range,s=[r[t[e]],r[t[e]]+r[n[e]]];return s[1]<s[0]&&s.reverse(),Ih(s[0],o)||Ih(s[1],o)||Ih(o[0],s)||Ih(o[1],s)}}}}function Ih(e,t){return t[0]<=e&&e<=t[1]}var k4=["inBrush","outOfBrush"],WS="__ecBrushSelect",sT="__ecInBrushSelectEvent";function DU(e){e.eachComponent({mainType:"brush"},function(t){var n=t.brushTargetManager=new kE(t.option,e);n.setInputRanges(t.areas,e)})}function vKe(e,t,n){var r=[],a,i;e.eachComponent({mainType:"brush"},function(o){n&&n.type==="takeGlobalCursor"&&o.setBrushOption(n.key==="brush"?n.brushOption:{brushType:!1})}),DU(e),e.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:pt(o.areas),selected:[]};r.push(l);var u=o.option,c=u.brushLink,f=[],d=[],h=[],v=!1;s||(a=u.throttleType,i=u.throttleDelay);var p=Oe(o.areas,function(C){var S=yKe[C.brushType],x=ft({boundingRect:S?S(C):void 0},C);return x.selectors=hKe(x),x}),g=oT(o.option,k4,function(C){C.mappingMethod="fixed"});Re(c)&&F(c,function(C){f[C]=1});function m(C){return c==="all"||!!f[C]}function b(C){return!!C.length}e.eachSeries(function(C,S){var x=h[S]=[];C.subType==="parallel"?_(C,S):w(C,S,x)});function _(C,S){var x=C.coordinateSystem;v=v||x.hasAxisBrushed(),m(S)&&x.eachActiveState(C.getData(),function(T,M){T==="active"&&(d[M]=1)})}function w(C,S,x){if(!(!C.brushSelector||mKe(o,S))&&(F(p,function(M){o.brushTargetManager.controlSeries(M,C,e)&&x.push(M),v=v||b(x)}),m(S)&&b(x))){var T=C.getData();T.each(function(M){A4(C,x,T,M)&&(d[M]=1)})}}e.eachSeries(function(C,S){var x={seriesId:C.id,seriesIndex:S,seriesName:C.name,dataIndex:[]};l.selected.push(x);var T=h[S],M=C.getData(),A=m(S)?function(k){return d[k]?(x.dataIndex.push(M.getRawIndex(k)),"inBrush"):"outOfBrush"}:function(k){return A4(C,T,M,k)?(x.dataIndex.push(M.getRawIndex(k)),"inBrush"):"outOfBrush"};(m(S)?v:b(T))&&fKe(k4,g,M,A)})}),pKe(t,a,i,r,n)}function pKe(e,t,n,r,a){if(a){var i=e.getZr();if(!i[sT]){i[WS]||(i[WS]=gKe);var o=Gd(i,WS,n,t);o(e,r)}}}function gKe(e,t){if(!e.isDisposed()){var n=e.getZr();n[sT]=!0,e.dispatchAction({type:"brushSelect",batch:t}),n[sT]=!1}}function A4(e,t,n,r){for(var a=0,i=t.length;a<i;a++){var o=t[a];if(e.brushSelector(r,n,o.selectors,o))return!0}}function mKe(e,t){var n=e.option.seriesIndex;return n!=null&&n!=="all"&&(Re(n)?$t(n,t)<0:t!==n)}var yKe={rect:function(e){return E4(e.range)},polygon:function(e){for(var t,n=e.range,r=0,a=n.length;r<a;r++){t=t||[[1/0,-1/0],[1/0,-1/0]];var i=n[r];i[0]<t[0][0]&&(t[0][0]=i[0]),i[0]>t[0][1]&&(t[0][1]=i[0]),i[1]<t[1][0]&&(t[1][0]=i[1]),i[1]>t[1][1]&&(t[1][1]=i[1])}return t&&E4(t)}};function E4(e){return new Rt(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var bKe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r){this.ecModel=n,this.api=r,this.model,(this._brushController=new sE(r.getZr())).on("brush",et(this._onBrush,this)).mount()},t.prototype.render=function(n,r,a,i){this.model=n,this._updateController(n,r,a,i)},t.prototype.updateTransform=function(n,r,a,i){DU(r),this._updateController(n,r,a,i)},t.prototype.updateVisual=function(n,r,a,i){this.updateTransform(n,r,a,i)},t.prototype.updateView=function(n,r,a,i){this._updateController(n,r,a,i)},t.prototype._updateController=function(n,r,a,i){(!i||i.$from!==n.id)&&this._brushController.setPanels(n.brushTargetManager.makePanelOpts(a)).enableBrush(n.brushOption).updateCovers(n.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(n){var r=this.model.id,a=this.model.brushTargetManager.setOutputRanges(n.areas,this.ecModel);(!n.isEnd||n.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:r,areas:pt(a),$from:r}),n.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:r,areas:pt(a),$from:r})},t.type="brush",t}(An);const _Ke=bKe;var wKe="#ddd",SKe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.areas=[],n.brushOption={},n}return t.prototype.optionUpdated=function(n,r){var a=this.option;!r&&IU(a,n,["inBrush","outOfBrush"]);var i=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:wKe},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(n){n&&(this.areas=Oe(n,function(r){return I4(this.option,r)},this))},t.prototype.setBrushOption=function(n){this.brushOption=I4(this.option,n),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(Yt);function I4(e,t){return Dt({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new dn(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}const CKe=SKe;var xKe=["rect","polygon","lineX","lineY","keep","clear"],TKe=function(e){ge(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(n,r,a){var i,o,s;r.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,F(n.get("type",!0),function(l){n.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},t.prototype.updateView=function(n,r,a){this.render(n,r,a)},t.prototype.getIcons=function(){var n=this.model,r=n.get("icon",!0),a={};return F(n.get("type",!0),function(i){r[i]&&(a[i]=r[i])}),a},t.prototype.onclick=function(n,r,a){var i=this._brushType,o=this._brushMode;a==="clear"?(r.dispatchAction({type:"axisAreaSelect",intervals:[]}),r.dispatchAction({type:"brush",command:"clear",areas:[]})):r.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:a==="keep"?i:i===a?!1:a,brushMode:a==="keep"?o==="multiple"?"single":"multiple":o}})},t.getDefaultOption=function(n){var r={show:!0,type:xKe.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:n.getLocaleModel().get(["toolbox","brush","title"])};return r},t}(Ya);const MKe=TKe;function kKe(e){e.registerComponentView(_Ke),e.registerComponentModel(CKe),e.registerPreprocessor(uKe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,vKe),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,n){n.eachComponent({mainType:"brush",query:t},function(r){r.setAreas(t.areas)})}),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Nn),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Nn),vf("brush",MKe)}var AKe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}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}(Yt),EKe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){if(this.group.removeAll(),!!n.get("show")){var i=this.group,o=n.getModel("textStyle"),s=n.getModel("subtextStyle"),l=n.get("textAlign"),u=Lt(n.get("textBaseline"),n.get("textVerticalAlign")),c=new Xt({style:gn(o,{text:n.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),d=n.get("subtext"),h=new Xt({style:gn(s,{text:d,fill:s.getTextColor(),y:f.height+n.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),v=n.get("link"),p=n.get("sublink"),g=n.get("triggerEvent",!0);c.silent=!v&&!g,h.silent=!p&&!g,v&&c.on("click",function(){F0(v,"_"+n.get("target"))}),p&&h.on("click",function(){F0(p,"_"+n.get("subtarget"))}),Tt(c).eventData=Tt(h).eventData=g?{componentType:"title",componentIndex:n.componentIndex}:null,i.add(c),d&&i.add(h);var m=i.getBoundingRect(),b=n.getBoxLayoutParams();b.width=m.width,b.height=m.height;var _=Xn(b,{width:a.getWidth(),height:a.getHeight()},n.get("padding"));l||(l=n.get("left")||n.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=n.get("top")||n.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),i.x=_.x,i.y=_.y,i.markRedraw();var w={align:l,verticalAlign:u};c.setStyle(w),h.setStyle(w),m=i.getBoundingRect();var C=_.margin,S=n.getItemStyle(["color","opacity"]);S.fill=n.get("backgroundColor");var x=new Zt({shape:{x:m.x-C[3],y:m.y-C[0],width:m.width+C[1]+C[3],height:m.height+C[0]+C[2],r:n.get("borderRadius")},style:S,subPixelOptimize:!0,silent:!0});i.add(x)}},t.type="title",t}(An);function IKe(e){e.registerComponentModel(AKe),e.registerComponentView(EKe)}var DKe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode="box",n}return t.prototype.init=function(n,r,a){this.mergeDefaultAndTheme(n,a),this._initData()},t.prototype.mergeOption=function(n){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(n){n==null&&(n=this.option.currentIndex);var r=this._data.count();this.option.loop?n=(n%r+r)%r:(n>=r&&(n=r-1),n<0&&(n=0)),this.option.currentIndex=n},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(n){this.option.autoPlay=!!n},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var n=this.option,r=n.data||[],a=n.axisType,i=this._names=[],o;a==="category"?(o=[],F(r,function(u,c){var f=tr(Id(u),""),d;ht(u)?(d=pt(u),d.value=c):d=c,o.push(d),i.push(f)})):o=r;var s={category:"ordinal",time:"time",value:"number"}[a]||"number",l=this._data=new Or([{name:"value",type:s}],this);l.initData(o,i)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(Yt);const D4=DKe;var PU=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="timeline.slider",t.defaultOption=Rl(D4.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(D4);Vn(PU,cA.prototype);const PKe=PU;var LKe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="timeline",t}(An);const RKe=LKe;var OKe=function(e){ge(t,e);function t(n,r,a,i){var o=e.call(this,n,r,a)||this;return o.type=i||"value",o}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(pi);const $Ke=OKe;var KS=Math.PI,P4=en(),NKe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r){this.api=r},t.prototype.render=function(n,r,a){if(this.model=n,this.api=a,this.ecModel=r,this.group.removeAll(),n.get("show",!0)){var i=this._layout(n,a),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,n);n.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return ur("nameValue",{noName:!0,value:c})},F(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,n)},this),this._renderAxisLabel(i,s,l,n),this._position(i,n)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(n,r){var a=n.get(["label","position"]),i=n.get("orient"),o=VKe(n,r),s;a==null||a==="auto"?s=i==="horizontal"?o.y+o.height/2<r.getHeight()/2?"-":"+":o.x+o.width/2<r.getWidth()/2?"+":"-":Je(a)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[i][a]:s=a;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:KS/2},f=i==="vertical"?o.height:o.width,d=n.getModel("controlStyle"),h=d.get("show",!0),v=h?d.get("itemSize"):0,p=h?d.get("itemGap"):0,g=v+p,m=n.get(["label","rotate"])||0;m=m*KS/180;var b,_,w,C=d.get("position",!0),S=h&&d.get("showPlayBtn",!0),x=h&&d.get("showPrevBtn",!0),T=h&&d.get("showNextBtn",!0),M=0,A=f;C==="left"||C==="bottom"?(S&&(b=[0,0],M+=g),x&&(_=[M,0],M+=g),T&&(w=[A-v,0],A-=g)):(S&&(b=[A-v,0],A-=g),x&&(_=[0,0],M+=g),T&&(w=[A-v,0],A-=g));var k=[M,A];return n.get("inverse")&&k.reverse(),{viewRect:o,mainLength:f,orient:i,rotation:c[i],labelRotation:m,labelPosOpt:s,labelAlign:n.get(["label","align"])||l[i],labelBaseline:n.get(["label","verticalAlign"])||n.get(["label","baseline"])||u[i],playPosition:b,prevBtnPosition:_,nextBtnPosition:w,axisExtent:k,controlSize:v,controlGap:p}},t.prototype._position=function(n,r){var a=this._mainGroup,i=this._labelGroup,o=n.viewRect;if(n.orient==="vertical"){var s=La(),l=o.x,u=o.y+o.height;zi(s,s,[-l,-u]),Pl(s,s,-KS/2),zi(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=b(o),f=b(a.getBoundingRect()),d=b(i.getBoundingRect()),h=[a.x,a.y],v=[i.x,i.y];v[0]=h[0]=c[0][0];var p=n.labelPosOpt;if(p==null||Je(p)){var g=p==="+"?0:1;_(h,f,c,1,g),_(v,d,c,1,1-g)}else{var g=p>=0?0:1;_(h,f,c,1,g),v[1]=h[1]+p}a.setPosition(h),i.setPosition(v),a.rotation=i.rotation=n.rotation,m(a),m(i);function m(w){w.originX=c[0][0]-w.x,w.originY=c[1][0]-w.y}function b(w){return[[w.x,w.x+w.width],[w.y,w.y+w.height]]}function _(w,C,S,x,T){w[x]+=S[x][T]-C[x][T]}},t.prototype._createAxis=function(n,r){var a=r.getData(),i=r.get("axisType"),o=BKe(r,i);o.getTicks=function(){return a.mapArray(["value"],function(u){return{value:u}})};var s=a.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new $Ke("value",o,n.axisExtent,i);return l.model=r,l},t.prototype._createGroup=function(n){var r=this[n]=new bt;return this.group.add(r),r},t.prototype._renderAxisLine=function(n,r,a,i){var o=a.getExtent();if(i.get(["lineStyle","show"])){var s=new ar({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:Ie({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});r.add(s);var l=this._progressLine=new ar({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:ft({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});r.add(l)}},t.prototype._renderAxisTick=function(n,r,a,i){var o=this,s=i.getData(),l=a.scale.getTicks();this._tickSymbols=[],F(l,function(u){var c=a.dataToCoord(u.value),f=s.getItemModel(u.value),d=f.getModel("itemStyle"),h=f.getModel(["emphasis","itemStyle"]),v=f.getModel(["progress","itemStyle"]),p={x:c,y:0,onclick:et(o._changeTimeline,o,u.value)},g=L4(f,d,r,p);g.ensureState("emphasis").style=h.getItemStyle(),g.ensureState("progress").style=v.getItemStyle(),rl(g);var m=Tt(g);f.get("tooltip")?(m.dataIndex=u.value,m.dataModel=i):m.dataIndex=m.dataModel=null,o._tickSymbols.push(g)})},t.prototype._renderAxisLabel=function(n,r,a,i){var o=this,s=a.getLabelModel();if(s.get("show")){var l=i.getData(),u=a.getViewLabels();this._tickLabels=[],F(u,function(c){var f=c.tickValue,d=l.getItemModel(f),h=d.getModel("label"),v=d.getModel(["emphasis","label"]),p=d.getModel(["progress","label"]),g=a.dataToCoord(c.tickValue),m=new Xt({x:g,y:0,rotation:n.labelRotation-n.rotation,onclick:et(o._changeTimeline,o,f),silent:!1,style:gn(h,{text:c.formattedLabel,align:n.labelAlign,verticalAlign:n.labelBaseline})});m.ensureState("emphasis").style=gn(v),m.ensureState("progress").style=gn(p),r.add(m),rl(m),P4(m).dataIndex=f,o._tickLabels.push(m)})}},t.prototype._renderControl=function(n,r,a,i){var o=n.controlSize,s=n.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),c=i.getPlayState(),f=i.get("inverse",!0);d(n.nextBtnPosition,"next",et(this._changeTimeline,this,f?"-":"+")),d(n.prevBtnPosition,"prev",et(this._changeTimeline,this,f?"+":"-")),d(n.playPosition,c?"stop":"play",et(this._handlePlayClick,this,!c),!0);function d(h,v,p,g){if(h){var m=Fi(Lt(i.get(["controlStyle",v+"BtnSize"]),o),o),b=[0,-m/2,m,m],_=zKe(i,v+"Icon",b,{x:h[0],y:h[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:p});_.ensureState("emphasis").style=u,r.add(_),rl(_)}}},t.prototype._renderCurrentPointer=function(n,r,a,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(f){f.draggable=!0,f.drift=et(u._handlePointerDrag,u),f.ondragend=et(u._handlePointerDragend,u),R4(f,u._progressLine,s,a,i,!0)},onUpdate:function(f){R4(f,u._progressLine,s,a,i)}};this._currentPointer=L4(l,l,this._mainGroup,{},this._currentPointer,c)},t.prototype._handlePlayClick=function(n){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:n,from:this.uid})},t.prototype._handlePointerDrag=function(n,r,a){this._clearTimer(),this._pointerChangeTimeline([a.offsetX,a.offsetY])},t.prototype._handlePointerDragend=function(n){this._pointerChangeTimeline([n.offsetX,n.offsetY],!0)},t.prototype._pointerChangeTimeline=function(n,r){var a=this._toAxisCoord(n)[0],i=this._axis,o=Ea(i.getExtent().slice());a>o[1]&&(a=o[1]),a<o[0]&&(a=o[0]),this._currentPointer.x=a,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=a,s.dirty());var l=this._findNearestTick(a),u=this.model;(r||l!==u.getCurrentIndex()&&u.get("realtime"))&&this._changeTimeline(l)},t.prototype._doPlayStop=function(){var n=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var r=n.model;n._changeTimeline(r.getCurrentIndex()+(r.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},t.prototype._toAxisCoord=function(n){var r=this._mainGroup.getLocalTransform();return Ni(n,r,!0)},t.prototype._findNearestTick=function(n){var r=this.model.getData(),a=1/0,i,o=this._axis;return r.each(["value"],function(s,l){var u=o.dataToCoord(s),c=Math.abs(u-n);c<a&&(a=c,i=l)}),i},t.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},t.prototype._changeTimeline=function(n){var r=this.model.getCurrentIndex();n==="+"?n=r+1:n==="-"&&(n=r-1),this.api.dispatchAction({type:"timelineChange",currentIndex:n,from:this.uid})},t.prototype._updateTicksStatus=function(){var n=this.model.getCurrentIndex(),r=this._tickSymbols,a=this._tickLabels;if(r)for(var i=0;i<r.length;i++)r&&r[i]&&r[i].toggleState("progress",i<n);if(a)for(var i=0;i<a.length;i++)a&&a[i]&&a[i].toggleState("progress",P4(a[i]).dataIndex<=n)},t.type="timeline.slider",t}(RKe);function BKe(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new kA({ordinalMeta:e.getCategories(),extent:[1/0,-1/0]});case"time":return new O9({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new bl}}function VKe(e,t){return Xn(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},e.get("padding"))}function zKe(e,t,n,r){var a=r.style,i=Rd(e.get(["controlStyle",t]),r||{},new Rt(n[0],n[1],n[2],n[3]));return a&&i.setStyle(a),i}function L4(e,t,n,r,a,i){var o=t.get("color");if(a)a.setColor(o),n.add(a),i&&i.onUpdate(a);else{var s=e.get("symbol");a=Hn(s,-1,-1,2,2,o),a.setStyle("strokeNoScale",!0),n.add(a),i&&i.onCreate(a)}var l=t.getItemStyle(["color"]);a.setStyle(l),r=Dt({rectHover:!0,z2:100},r,!0);var u=Wd(e.get("symbolSize"));r.scaleX=u[0]/2,r.scaleY=u[1]/2;var c=kc(e.get("symbolOffset"),u);c&&(r.x=(r.x||0)+c[0],r.y=(r.y||0)+c[1]);var f=e.get("symbolRotate");return r.rotation=(f||0)*Math.PI/180||0,a.attr(r),a.updateTransform(),a}function R4(e,t,n,r,a,i){if(!e.dragging){var o=a.getModel("checkpointStyle"),s=r.dataToCoord(a.getData().get("value",n));if(i||!o.get("animation",!0))e.attr({x:s,y:0}),t&&t.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};e.stopAnimation(null,!0),e.animateTo({x:s,y:0},l),t&&t.animateTo({shape:{x2:s}},l)}}}const FKe=NKe;function HKe(e){e.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,n,r){var a=n.getComponent("timeline");return a&&t.currentIndex!=null&&(a.setCurrentIndex(t.currentIndex),!a.get("loop",!0)&&a.isIndexMax()&&a.getPlayState()&&(a.setPlayState(!1),r.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),n.resetOption("timeline",{replaceMerge:a.get("replaceMerge",!0)}),ft({currentIndex:a.option.currentIndex},t)}),e.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,n){var r=n.getComponent("timeline");r&&t.playState!=null&&r.setPlayState(t.playState)})}function GKe(e){var t=e&&e.timeline;Re(t)||(t=t?[t]:[]),F(t,function(n){n&&WKe(n)})}function WKe(e){var t=e.type,n={number:"value",time:"time"};if(n[t]&&(e.axisType=n[t],delete e.type),O4(e),Au(e,"controlPosition")){var r=e.controlStyle||(e.controlStyle={});Au(r,"position")||(r.position=e.controlPosition),r.position==="none"&&!Au(r,"show")&&(r.show=!1,delete r.position),delete e.controlPosition}F(e.data||[],function(a){ht(a)&&!Re(a)&&(!Au(a,"value")&&Au(a,"name")&&(a.value=a.name),O4(a))})}function O4(e){var t=e.itemStyle||(e.itemStyle={}),n=t.emphasis||(t.emphasis={}),r=e.label||e.label||{},a=r.normal||(r.normal={}),i={normal:1,emphasis:1};F(r,function(o,s){!i[s]&&!Au(a,s)&&(a[s]=o)}),n.label&&!Au(r,"emphasis")&&(r.emphasis=n.label,delete n.label)}function Au(e,t){return e.hasOwnProperty(t)}function KKe(e){e.registerComponentModel(PKe),e.registerComponentView(FKe),e.registerSubTypeDefaulter("timeline",function(){return"slider"}),HKe(e),e.registerPreprocessor(GKe)}function IE(e,t){if(!e)return!1;for(var n=Re(e)?e:[e],r=0;r<n.length;r++)if(n[r]&&n[r][t])return!0;return!1}function Xm(e){uc(e,"label",["show"])}var Zm=en(),LU=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.createdBySelf=!1,n}return t.prototype.init=function(n,r,a){this.mergeDefaultAndTheme(n,a),this._mergeOption(n,a,!1,!0)},t.prototype.isAnimationEnabled=function(){if(Jt.node)return!1;var n=this.__hostSeries;return this.getShallow("animation")&&n&&n.isAnimationEnabled()},t.prototype.mergeOption=function(n,r){this._mergeOption(n,r,!1,!1)},t.prototype._mergeOption=function(n,r,a,i){var o=this.mainType;a||r.eachSeries(function(s){var l=s.get(this.mainType,!0),u=Zm(s)[o];if(!l||!l.data){Zm(s)[o]=null;return}u?u._mergeOption(l,r,!0):(i&&Xm(l),F(l.data,function(c){c instanceof Array?(Xm(c[0]),Xm(c[1])):Xm(c)}),u=this.createMarkerModelFromSeries(l,this,r),Ie(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),Zm(s)[o]=u},this)},t.prototype.formatTooltip=function(n,r,a){var i=this.getData(),o=this.getRawValue(n),s=i.getName(n);return ur("section",{header:this.name,blocks:[ur("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(n){this._data=n},t.getMarkerModelFromSeries=function(n,r){return Zm(n)[r]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(Yt);Vn(LU,cA.prototype);const Sl=LU;var UKe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.createMarkerModelFromSeries=function(n,r,a){return new t(n,r,a)},t.type="markPoint",t.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},t}(Sl);const YKe=UKe;function lT(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function jKe(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function Jm(e,t,n,r,a,i){var o=[],s=os(t,r),l=s?t.getCalculationInfo("stackResultDimension"):r,u=DE(t,l,e),c=t.indicesOfNearest(l,u)[0];o[a]=t.get(n,c),o[i]=t.get(l,c);var f=t.get(r,c),d=Ei(t.get(r,c));return d=Math.min(d,20),d>=0&&(o[i]=+o[i].toFixed(d)),[o,f]}var US={min:xt(Jm,"min"),max:xt(Jm,"max"),average:xt(Jm,"average"),median:xt(Jm,"median")};function zp(e,t){if(t){var n=e.getData(),r=e.coordinateSystem,a=r&&r.dimensions;if(!jKe(t)&&!Re(t.coord)&&Re(a)){var i=RU(t,n,r,e);if(t=pt(t),t.type&&US[t.type]&&i.baseAxis&&i.valueAxis){var o=$t(a,i.baseAxis.dim),s=$t(a,i.valueAxis.dim),l=US[t.type](n,i.baseDataDim,i.valueDataDim,o,s);t.coord=l[0],t.value=l[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!Re(a))t.coord=[];else for(var u=t.coord,c=0;c<2;c++)US[u[c]]&&(u[c]=DE(n,n.mapDimension(a[c]),u[c]));return t}}function RU(e,t,n,r){var a={};return e.valueIndex!=null||e.valueDim!=null?(a.valueDataDim=e.valueIndex!=null?t.getDimension(e.valueIndex):e.valueDim,a.valueAxis=n.getAxis(qKe(r,a.valueDataDim)),a.baseAxis=n.getOtherAxis(a.valueAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim)):(a.baseAxis=r.getBaseAxis(),a.valueAxis=n.getOtherAxis(a.baseAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim),a.valueDataDim=t.mapDimension(a.valueAxis.dim)),a}function qKe(e,t){var n=e.getData().getDimensionInfo(t);return n&&n.coordDim}function Fp(e,t){return e&&e.containData&&t.coord&&!lT(t)?e.containData(t.coord):!0}function XKe(e,t,n){return e&&e.containZone&&t.coord&&n.coord&&!lT(t)&&!lT(n)?e.containZone(t.coord,n.coord):!0}function OU(e,t){return e?function(n,r,a,i){var o=i<2?n.coord&&n.coord[i]:n.value;return ol(o,t[i])}:function(n,r,a,i){return ol(n.value,t[i])}}function DE(e,t,n){if(n==="average"){var r=0,a=0;return e.each(t,function(i,o){isNaN(i)||(r+=i,a++)}),r/a}else return n==="median"?e.getMedian(t):e.getDataExtent(t)[n==="max"?1:0]}var YS=en(),ZKe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){this.markerGroupMap=ot()},t.prototype.render=function(n,r,a){var i=this,o=this.markerGroupMap;o.each(function(s){YS(s).keep=!1}),r.eachSeries(function(s){var l=Sl.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,r,a)}),o.each(function(s){!YS(s).keep&&i.group.remove(s.group)})},t.prototype.markKeep=function(n){YS(n).keep=!0},t.prototype.toggleBlurSeries=function(n,r){var a=this;F(n,function(i){var o=Sl.getMarkerModelFromSeries(i,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(r?lG(l):zk(l))})}})},t.type="marker",t}(An);const PE=ZKe;function $4(e,t,n){var r=t.coordinateSystem;e.each(function(a){var i=e.getItemModel(a),o,s=qe(i.get("x"),n.getWidth()),l=qe(i.get("y"),n.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(t.getMarkerPosition)o=t.getMarkerPosition(e.getValues(e.dimensions,a));else if(r){var u=e.get(r.dimensions[0],a),c=e.get(r.dimensions[1],a);o=r.dataToPoint([u,c])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),e.setItemLayout(a,o)})}var JKe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(n,r,a){r.eachSeries(function(i){var o=Sl.getMarkerModelFromSeries(i,"markPoint");o&&($4(o.getData(),i,a),this.markerGroupMap.get(i.id).updateLayout())},this)},t.prototype.renderSeries=function(n,r,a,i){var o=n.coordinateSystem,s=n.id,l=n.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new Sg),f=QKe(o,n,r);r.setData(f),$4(r.getData(),n,i),f.each(function(d){var h=f.getItemModel(d),v=h.getShallow("symbol"),p=h.getShallow("symbolSize"),g=h.getShallow("symbolRotate"),m=h.getShallow("symbolOffset"),b=h.getShallow("symbolKeepAspect");if(ut(v)||ut(p)||ut(g)||ut(m)){var _=r.getRawValue(d),w=r.getDataParams(d);ut(v)&&(v=v(_,w)),ut(p)&&(p=p(_,w)),ut(g)&&(g=g(_,w)),ut(m)&&(m=m(_,w))}var C=h.getModel("itemStyle").getItemStyle(),S=yg(l,"color");C.fill||(C.fill=S),f.setItemVisual(d,{symbol:v,symbolSize:p,symbolRotate:g,symbolOffset:m,symbolKeepAspect:b,style:C})}),c.updateData(f),this.group.add(c.group),f.eachItemGraphicEl(function(d){d.traverse(function(h){Tt(h).dataModel=r})}),this.markKeep(c),c.group.silent=r.get("silent")||n.get("silent")},t.type="markPoint",t}(PE);function QKe(e,t,n){var r;e?r=Oe(e&&e.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return Ie(Ie({},l),{name:s,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var a=new Or(r,n),i=Oe(n.get("data"),xt(zp,t));e&&(i=ln(i,xt(Fp,e)));var o=OU(!!e,r);return a.initData(i,null,o),a}const eUe=JKe;function tUe(e){e.registerComponentModel(YKe),e.registerComponentView(eUe),e.registerPreprocessor(function(t){IE(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var nUe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.createMarkerModelFromSeries=function(n,r,a){return new t(n,r,a)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(Sl);const rUe=nUe;var Qm=en(),aUe=function(e,t,n,r){var a=e.getData(),i;if(Re(r))i=r;else{var o=r.type;if(o==="min"||o==="max"||o==="average"||o==="median"||r.xAxis!=null||r.yAxis!=null){var s=void 0,l=void 0;if(r.yAxis!=null||r.xAxis!=null)s=t.getAxis(r.yAxis!=null?"y":"x"),l=rr(r.yAxis,r.xAxis);else{var u=RU(r,a,t,e);s=u.valueAxis;var c=MA(a,u.valueDataDim);l=DE(a,c,o)}var f=s.dim==="x"?0:1,d=1-f,h=pt(r),v={coord:[]};h.type=null,h.coord=[],h.coord[d]=-1/0,v.coord[d]=1/0;var p=n.get("precision");p>=0&&Qt(l)&&(l=+l.toFixed(Math.min(p,20))),h.coord[f]=v.coord[f]=l,i=[h,v,{type:o,valueIndex:r.valueIndex,value:l}]}else i=[]}var g=[zp(e,i[0]),zp(e,i[1]),Ie({},i[2])];return g[2].type=g[2].type||null,Dt(g[2],g[0]),Dt(g[2],g[1]),g};function pb(e){return!isNaN(e)&&!isFinite(e)}function N4(e,t,n,r){var a=1-e,i=r.dimensions[e];return pb(t[a])&&pb(n[a])&&t[e]===n[e]&&r.getAxis(i).containData(t[e])}function iUe(e,t){if(e.type==="cartesian2d"){var n=t[0].coord,r=t[1].coord;if(n&&r&&(N4(1,n,r,e)||N4(0,n,r,e)))return!0}return Fp(e,t[0])&&Fp(e,t[1])}function jS(e,t,n,r,a){var i=r.coordinateSystem,o=e.getItemModel(t),s,l=qe(o.get("x"),a.getWidth()),u=qe(o.get("y"),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition)s=r.getMarkerPosition(e.getValues(e.dimensions,t));else{var c=i.dimensions,f=e.get(c[0],t),d=e.get(c[1],t);s=i.dataToPoint([f,d])}if(Ac(i,"cartesian2d")){var h=i.getAxis("x"),v=i.getAxis("y"),c=i.dimensions;pb(e.get(c[0],t))?s[0]=h.toGlobalCoord(h.getExtent()[n?0:1]):pb(e.get(c[1],t))&&(s[1]=v.toGlobalCoord(v.getExtent()[n?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}e.setItemLayout(t,s)}var oUe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(n,r,a){r.eachSeries(function(i){var o=Sl.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=Qm(o).from,u=Qm(o).to;l.each(function(c){jS(l,c,!0,i,a),jS(u,c,!1,i,a)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},t.prototype.renderSeries=function(n,r,a,i){var o=n.coordinateSystem,s=n.id,l=n.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new tE);this.group.add(c.group);var f=sUe(o,n,r),d=f.from,h=f.to,v=f.line;Qm(r).from=d,Qm(r).to=h,r.setData(v);var p=r.get("symbol"),g=r.get("symbolSize"),m=r.get("symbolRotate"),b=r.get("symbolOffset");Re(p)||(p=[p,p]),Re(g)||(g=[g,g]),Re(m)||(m=[m,m]),Re(b)||(b=[b,b]),f.from.each(function(w){_(d,w,!0),_(h,w,!1)}),v.each(function(w){var C=v.getItemModel(w).getModel("lineStyle").getLineStyle();v.setItemLayout(w,[d.getItemLayout(w),h.getItemLayout(w)]),C.stroke==null&&(C.stroke=d.getItemVisual(w,"style").fill),v.setItemVisual(w,{fromSymbolKeepAspect:d.getItemVisual(w,"symbolKeepAspect"),fromSymbolOffset:d.getItemVisual(w,"symbolOffset"),fromSymbolRotate:d.getItemVisual(w,"symbolRotate"),fromSymbolSize:d.getItemVisual(w,"symbolSize"),fromSymbol:d.getItemVisual(w,"symbol"),toSymbolKeepAspect:h.getItemVisual(w,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(w,"symbolOffset"),toSymbolRotate:h.getItemVisual(w,"symbolRotate"),toSymbolSize:h.getItemVisual(w,"symbolSize"),toSymbol:h.getItemVisual(w,"symbol"),style:C})}),c.updateData(v),f.line.eachItemGraphicEl(function(w){Tt(w).dataModel=r,w.traverse(function(C){Tt(C).dataModel=r})});function _(w,C,S){var x=w.getItemModel(C);jS(w,C,S,n,i);var T=x.getModel("itemStyle").getItemStyle();T.fill==null&&(T.fill=yg(l,"color")),w.setItemVisual(C,{symbolKeepAspect:x.get("symbolKeepAspect"),symbolOffset:Lt(x.get("symbolOffset",!0),b[S?0:1]),symbolRotate:Lt(x.get("symbolRotate",!0),m[S?0:1]),symbolSize:Lt(x.get("symbolSize"),g[S?0:1]),symbol:Lt(x.get("symbol",!0),p[S?0:1]),style:T})}this.markKeep(c),c.group.silent=r.get("silent")||n.get("silent")},t.type="markLine",t}(PE);function sUe(e,t,n){var r;e?r=Oe(e&&e.dimensions,function(u){var c=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return Ie(Ie({},c),{name:u,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var a=new Or(r,n),i=new Or(r,n),o=new Or([],n),s=Oe(n.get("data"),xt(aUe,t,e,n));e&&(s=ln(s,xt(iUe,e)));var l=OU(!!e,r);return a.initData(Oe(s,function(u){return u[0]}),null,l),i.initData(Oe(s,function(u){return u[1]}),null,l),o.initData(Oe(s,function(u){return u[2]})),o.hasItemOption=!0,{from:a,to:i,line:o}}const lUe=oUe;function uUe(e){e.registerComponentModel(rUe),e.registerComponentView(lUe),e.registerPreprocessor(function(t){IE(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var cUe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.createMarkerModelFromSeries=function(n,r,a){return new t(n,r,a)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(Sl);const fUe=cUe;var ey=en(),dUe=function(e,t,n,r){var a=r[0],i=r[1];if(!(!a||!i)){var o=zp(e,a),s=zp(e,i),l=o.coord,u=s.coord;l[0]=rr(l[0],-1/0),l[1]=rr(l[1],-1/0),u[0]=rr(u[0],1/0),u[1]=rr(u[1],1/0);var c=d1([{},o,s]);return c.coord=[o.coord,s.coord],c.x0=o.x,c.y0=o.y,c.x1=s.x,c.y1=s.y,c}};function gb(e){return!isNaN(e)&&!isFinite(e)}function B4(e,t,n,r){var a=1-e;return gb(t[a])&&gb(n[a])}function hUe(e,t){var n=t.coord[0],r=t.coord[1],a={coord:n,x:t.x0,y:t.y0},i={coord:r,x:t.x1,y:t.y1};return Ac(e,"cartesian2d")?n&&r&&(B4(1,n,r)||B4(0,n,r))?!0:XKe(e,a,i):Fp(e,a)||Fp(e,i)}function V4(e,t,n,r,a){var i=r.coordinateSystem,o=e.getItemModel(t),s,l=qe(o.get(n[0]),a.getWidth()),u=qe(o.get(n[1]),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition){var c=e.getValues(["x0","y0"],t),f=e.getValues(["x1","y1"],t),d=i.clampData(c),h=i.clampData(f),v=[];n[0]==="x0"?v[0]=d[0]>h[0]?f[0]:c[0]:v[0]=d[0]>h[0]?c[0]:f[0],n[1]==="y0"?v[1]=d[1]>h[1]?f[1]:c[1]:v[1]=d[1]>h[1]?c[1]:f[1],s=r.getMarkerPosition(v,n,!0)}else{var p=e.get(n[0],t),g=e.get(n[1],t),m=[p,g];i.clampData&&i.clampData(m,m),s=i.dataToPoint(m,!0)}if(Ac(i,"cartesian2d")){var b=i.getAxis("x"),_=i.getAxis("y"),p=e.get(n[0],t),g=e.get(n[1],t);gb(p)?s[0]=b.toGlobalCoord(b.getExtent()[n[0]==="x0"?0:1]):gb(g)&&(s[1]=_.toGlobalCoord(_.getExtent()[n[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var z4=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],vUe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(n,r,a){r.eachSeries(function(i){var o=Sl.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=Oe(z4,function(f){return V4(s,l,f,i,a)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},t.prototype.renderSeries=function(n,r,a,i){var o=n.coordinateSystem,s=n.id,l=n.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new bt});this.group.add(c.group),this.markKeep(c);var f=pUe(o,n,r);r.setData(f),f.each(function(d){var h=Oe(z4,function(T){return V4(f,d,T,n,i)}),v=o.getAxis("x").scale,p=o.getAxis("y").scale,g=v.getExtent(),m=p.getExtent(),b=[v.parse(f.get("x0",d)),v.parse(f.get("x1",d))],_=[p.parse(f.get("y0",d)),p.parse(f.get("y1",d))];Ea(b),Ea(_);var w=!(g[0]>b[1]||g[1]<b[0]||m[0]>_[1]||m[1]<_[0]),C=!w;f.setItemLayout(d,{points:h,allClipped:C});var S=f.getItemModel(d).getModel("itemStyle").getItemStyle(),x=yg(l,"color");S.fill||(S.fill=x,Je(S.fill)&&(S.fill=vp(S.fill,.4))),S.stroke||(S.stroke=x),f.setItemVisual(d,"style",S)}),f.diff(ey(c).data).add(function(d){var h=f.getItemLayout(d);if(!h.allClipped){var v=new ra({shape:{points:h.points}});f.setItemGraphicEl(d,v),c.group.add(v)}}).update(function(d,h){var v=ey(c).data.getItemGraphicEl(h),p=f.getItemLayout(d);p.allClipped?v&&c.group.remove(v):(v?nn(v,{shape:{points:p.points}},r,d):v=new ra({shape:{points:p.points}}),f.setItemGraphicEl(d,v),c.group.add(v))}).remove(function(d){var h=ey(c).data.getItemGraphicEl(d);c.group.remove(h)}).execute(),f.eachItemGraphicEl(function(d,h){var v=f.getItemModel(h),p=f.getItemVisual(h,"style");d.useStyle(f.getItemVisual(h,"style")),Tr(d,lr(v),{labelFetcher:r,labelDataIndex:h,defaultText:f.getName(h)||"",inheritColor:Je(p.fill)?vp(p.fill,1):"#000"}),xr(d,v),$n(d,null,null,v.get(["emphasis","disabled"])),Tt(d).dataModel=r}),ey(c).data=f,c.group.silent=r.get("silent")||n.get("silent")},t.type="markArea",t}(PE);function pUe(e,t,n){var r,a,i=["x0","y0","x1","y1"];if(e){var o=Oe(e&&e.dimensions,function(u){var c=t.getData(),f=c.getDimensionInfo(c.mapDimension(u))||{};return Ie(Ie({},f),{name:u,ordinalMeta:null})});a=Oe(i,function(u,c){return{name:u,type:o[c%2].type}}),r=new Or(a,n)}else a=[{name:"value",type:"float"}],r=new Or(a,n);var s=Oe(n.get("data"),xt(dUe,t,e,n));e&&(s=ln(s,xt(hUe,e)));var l=e?function(u,c,f,d){var h=u.coord[Math.floor(d/2)][d%2];return ol(h,a[d])}:function(u,c,f,d){return ol(u.value,a[d])};return r.initData(s,null,l),r.hasItemOption=!0,r}const gUe=vUe;function mUe(e){e.registerComponentModel(fUe),e.registerComponentView(gUe),e.registerPreprocessor(function(t){IE(t.series,"markArea")&&(t.markArea=t.markArea||{})})}var yUe=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"])}},bUe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return t.prototype.init=function(n,r,a){this.mergeDefaultAndTheme(n,a),n.selected=n.selected||{},this._updateSelector(n)},t.prototype.mergeOption=function(n,r){e.prototype.mergeOption.call(this,n,r),this._updateSelector(n)},t.prototype._updateSelector=function(n){var r=n.selector,a=this.ecModel;r===!0&&(r=n.selector=["all","inverse"]),Re(r)&&F(r,function(i,o){Je(i)&&(i={type:i}),r[o]=Dt(i,yUe(a,i.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var n=this._data;if(n[0]&&this.get("selectedMode")==="single"){for(var r=!1,a=0;a<n.length;a++){var i=n[a].get("name");if(this.isSelected(i)){this.select(i),r=!0;break}}!r&&this.select(n[0].get("name"))}},t.prototype._updateData=function(n){var r=[],a=[];n.eachRawSeries(function(l){var u=l.name;a.push(u);var c;if(l.legendVisualProvider){var f=l.legendVisualProvider,d=f.getAllNames();n.isSeriesFiltered(l)||(a=a.concat(d)),d.length?r=r.concat(d):c=!0}else c=!0;c&&Lk(l)&&r.push(l.name)}),this._availableNames=a;var i=this.get("data")||r,o=ot(),s=Oe(i,function(l){return(Je(l)||Qt(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new dn(l,this,this.ecModel))},this);this._data=ln(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(n){var r=this.option.selected,a=this.get("selectedMode");if(a==="single"){var i=this._data;F(i,function(o){r[o.get("name")]=!1})}r[n]=!0},t.prototype.unSelect=function(n){this.get("selectedMode")!=="single"&&(this.option.selected[n]=!1)},t.prototype.toggleSelected=function(n){var r=this.option.selected;r.hasOwnProperty(n)||(r[n]=!0),this[r[n]?"unSelect":"select"](n)},t.prototype.allSelect=function(){var n=this._data,r=this.option.selected;F(n,function(a){r[a.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var n=this._data,r=this.option.selected;F(n,function(a){var i=a.get("name",!0);r.hasOwnProperty(i)||(r[i]=!0),r[i]=!r[i]})},t.prototype.isSelected=function(n){var r=this.option.selected;return!(r.hasOwnProperty(n)&&!r[n])&&$t(this._availableNames,n)>=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}(Yt);const uT=bUe;var ef=xt,cT=F,ty=bt,_Ue=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return t.prototype.init=function(){this.group.add(this._contentGroup=new ty),this.group.add(this._selectorGroup=new ty),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(n,r,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!n.get("show",!0)){var o=n.get("align"),s=n.get("orient");(!o||o==="auto")&&(o=n.get("left")==="right"&&s==="vertical"?"right":"left");var l=n.get("selector",!0),u=n.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,n,r,a,l,s,u);var c=n.getBoxLayoutParams(),f={width:a.getWidth(),height:a.getHeight()},d=n.get("padding"),h=Xn(c,f,d),v=this.layoutInner(n,o,h,i,l,u),p=Xn(ft({width:v.width,height:v.height},c),f,d);this.group.x=p.x-v.x,this.group.y=p.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=CU(v,n))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(n,r,a,i,o,s,l){var u=this.getContentGroup(),c=ot(),f=r.get("selectedMode"),d=[];a.eachRawSeries(function(h){!h.get("legendHoverLink")&&d.push(h.id)}),cT(r.getData(),function(h,v){var p=h.get("name");if(!this.newlineDisabled&&(p===""||p===`
  105. `)){var g=new ty;g.newline=!0,u.add(g);return}var m=a.getSeriesByName(p)[0];if(!c.get(p))if(m){var b=m.getData(),_=b.getVisual("legendLineStyle")||{},w=b.getVisual("legendIcon"),C=b.getVisual("style"),S=this._createItem(m,p,v,h,r,n,_,C,w,f,i);S.on("click",ef(F4,p,null,i,d)).on("mouseover",ef(fT,m.name,null,i,d)).on("mouseout",ef(dT,m.name,null,i,d)),c.set(p,!0)}else a.eachRawSeries(function(x){if(!c.get(p)&&x.legendVisualProvider){var T=x.legendVisualProvider;if(!T.containName(p))return;var M=T.indexOfName(p),A=T.getItemVisual(M,"style"),k=T.getItemVisual(M,"legendIcon"),E=Xr(A.fill);E&&E[3]===0&&(E[3]=.2,A=Ie(Ie({},A),{fill:$i(E,"rgba")}));var D=this._createItem(x,p,v,h,r,n,{},A,k,f,i);D.on("click",ef(F4,null,p,i,d)).on("mouseover",ef(fT,null,p,i,d)).on("mouseout",ef(dT,null,p,i,d)),c.set(p,!0)}},this)},this),o&&this._createSelector(o,r,i,s,l)},t.prototype._createSelector=function(n,r,a,i,o){var s=this.getSelectorGroup();cT(n,function(u){var c=u.type,f=new Xt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(f);var d=r.getModel("selectorLabel"),h=r.getModel(["emphasis","selectorLabel"]);Tr(f,{normal:d,emphasis:h},{defaultText:u.title}),rl(f)})},t.prototype._createItem=function(n,r,a,i,o,s,l,u,c,f,d){var h=n.visualDrawType,v=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(r),m=i.get("symbolRotate"),b=i.get("symbolKeepAspect"),_=i.get("icon");c=_||c||"roundRect";var w=wUe(c,i,l,u,h,g,d),C=new ty,S=i.getModel("textStyle");if(ut(n.getLegendIcon)&&(!_||_==="inherit"))C.add(n.getLegendIcon({itemWidth:v,itemHeight:p,icon:c,iconRotate:m,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:b}));else{var x=_==="inherit"&&n.getData().getVisual("symbol")?m==="inherit"?n.getData().getVisual("symbolRotate"):m:0;C.add(SUe({itemWidth:v,itemHeight:p,icon:c,iconRotate:x,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:b}))}var T=s==="left"?v+5:-5,M=s,A=o.get("formatter"),k=r;Je(A)&&A?k=A.replace("{name}",r??""):ut(A)&&(k=A(r));var E=g?S.getTextColor():i.get("inactiveColor");C.add(new Xt({style:gn(S,{text:k,x:T,y:p/2,fill:E,align:M,verticalAlign:"middle"},{inheritColor:E})}));var D=new Zt({shape:C.getBoundingRect(),invisible:!0}),L=i.getModel("tooltip");return L.get("show")&&Od({el:D,componentModel:o,itemName:r,itemTooltipOption:L.option}),C.add(D),C.eachChild(function(B){B.silent=!0}),D.silent=!f,this.getContentGroup().add(C),rl(C),C.__legendDataIndex=a,C},t.prototype.layoutInner=function(n,r,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Ju(n.get("orient"),l,n.get("itemGap"),a.width,a.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){Ju("horizontal",u,n.get("selectorItemGap",!0));var d=u.getBoundingRect(),h=[-d.x,-d.y],v=n.get("selectorButtonGap",!0),p=n.getOrient().index,g=p===0?"width":"height",m=p===0?"height":"width",b=p===0?"y":"x";s==="end"?h[p]+=c[g]+v:f[p]+=d[g]+v,h[1-p]+=c[m]/2-d[m]/2,u.x=h[0],u.y=h[1],l.x=f[0],l.y=f[1];var _={x:0,y:0};return _[g]=c[g]+v+d[g],_[m]=Math.max(c[m],d[m]),_[b]=Math.min(0,d[b]+h[1-p]),_}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(An);function wUe(e,t,n,r,a,i,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),cT(g,function(b,_){g[_]==="inherit"&&(g[_]=m[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=e.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?r.decal:hd(f,o),u.fill==="inherit"&&(u.fill=r[a]),u.stroke==="inherit"&&(u.stroke=r[c]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?r:n).opacity),s(u,r);var d=t.getModel("lineStyle"),h=d.getLineStyle();if(s(h,n),u.fill==="auto"&&(u.fill=r.fill),u.stroke==="auto"&&(u.stroke=r.fill),h.stroke==="auto"&&(h.stroke=r.fill),!i){var v=t.get("inactiveBorderWidth"),p=u[c];u.lineWidth=v==="auto"?r.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 SUe(e){var t=e.icon||"roundRect",n=Hn(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function F4(e,t,n,r){dT(e,t,n,r),n.dispatchAction({type:"legendToggleSelect",name:e??t}),fT(e,t,n,r)}function $U(e){for(var t=e.getZr().storage.getDisplayList(),n,r=0,a=t.length;r<a&&!(n=t[r].states.emphasis);)r++;return n&&n.hoverLayer}function fT(e,t,n,r){$U(n)||n.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:r})}function dT(e,t,n,r){$U(n)||n.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:r})}const NU=_Ue;function CUe(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries(function(n){for(var r=0;r<t.length;r++)if(!t[r].isSelected(n.name))return!1;return!0})}function Dh(e,t,n){var r={},a=e==="toggleSelected",i;return n.eachComponent("legend",function(o){a&&i!=null?o[i?"select":"unSelect"](t.name):e==="allSelect"||e==="inverseSelect"?o[e]():(o[e](t.name),i=o.isSelected(t.name));var s=o.getData();F(s,function(l){var u=l.get("name");if(!(u===`
  106. `||u==="")){var c=o.isSelected(u);r.hasOwnProperty(u)?r[u]=r[u]&&c:r[u]=c}})}),e==="allSelect"||e==="inverseSelect"?{selected:r}:{name:t.name,selected:r}}function xUe(e){e.registerAction("legendToggleSelect","legendselectchanged",xt(Dh,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",xt(Dh,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",xt(Dh,"inverseSelect")),e.registerAction("legendSelect","legendselected",xt(Dh,"select")),e.registerAction("legendUnSelect","legendunselected",xt(Dh,"unSelect"))}function BU(e){e.registerComponentModel(uT),e.registerComponentView(NU),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,CUe),e.registerSubTypeDefaulter("legend",function(){return"plain"}),xUe(e)}var TUe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.setScrollDataIndex=function(n){this.option.scrollDataIndex=n},t.prototype.init=function(n,r,a){var i=Bd(n);e.prototype.init.call(this,n,r,a),H4(this,n,i)},t.prototype.mergeOption=function(n,r){e.prototype.mergeOption.call(this,n,r),H4(this,this.option,n)},t.type="legend.scroll",t.defaultOption=Rl(uT.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}(uT);function H4(e,t,n){var r=e.getOrient(),a=[1,1];a[r.index]=0,yl(t,n,{type:"box",ignoreSize:!!a})}const MUe=TUe;var G4=bt,qS=["width","height"],XS=["x","y"],kUe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new G4),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new G4)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(n,r,a,i,o,s,l){var u=this;e.prototype.renderInner.call(this,n,r,a,i,o,s,l);var c=this._controllerGroup,f=r.get("pageIconSize",!0),d=Re(f)?f:[f,f];v("pagePrev",0);var h=r.getModel("pageTextStyle");c.add(new Xt({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",b=Rd(r.get("pageIcons",!0)[r.getOrient().name][g],{onclick:et(u._pageGo,u,m,r,i)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});b.name=p,c.add(b)}},t.prototype.layoutInner=function(n,r,a,i,o,s){var l=this.getSelectorGroup(),u=n.getOrient().index,c=qS[u],f=XS[u],d=qS[1-u],h=XS[1-u];o&&Ju("horizontal",l,n.get("selectorItemGap",!0));var v=n.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],m=pt(a);o&&(m[c]=a[c]-p[c]-v);var b=this._layoutContentAndController(n,i,m,u,c,d,h,f);if(o){if(s==="end")g[u]+=b[c]+v;else{var _=p[c]+v;g[u]-=_,b[f]-=_}b[c]+=p[c]+v,g[1-u]+=b[h]+b[d]/2-p[d]/2,b[d]=Math.max(b[d],p[d]),b[h]=Math.min(b[h],p[h]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return b},t.prototype._layoutContentAndController=function(n,r,a,i,o,s,l,u){var c=this.getContentGroup(),f=this._containerGroup,d=this._controllerGroup;Ju(n.get("orient"),c,n.get("itemGap"),i?a.width:null,i?null:a.height),Ju("horizontal",d,n.get("pageButtonItemGap",!0));var h=c.getBoundingRect(),v=d.getBoundingRect(),p=this._showController=h[o]>a[o],g=[-h.x,-h.y];r||(g[i]=c[u]);var m=[0,0],b=[-v.x,-v.y],_=Lt(n.get("pageButtonGap",!0),n.get("itemGap",!0));if(p){var w=n.get("pageButtonPosition",!0);w==="end"?b[i]+=a[o]-v[o]:m[i]+=v[o]+_}b[1-i]+=h[s]/2-v[s]/2,c.setPosition(g),f.setPosition(m),d.setPosition(b);var C={x:0,y:0};if(C[o]=p?a[o]:h[o],C[s]=Math.max(h[s],v[s]),C[l]=Math.min(0,v[l]+b[1-i]),f.__rectSize=a[o],p){var S={x:0,y:0};S[o]=Math.max(a[o]-v[o]-_,0),S[s]=C[s],f.setClipPath(new Zt({shape:S})),f.__rectSize=S[o]}else d.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var x=this._getPageInfo(n);return x.pageIndex!=null&&nn(c,{x:x.contentPosition[0],y:x.contentPosition[1]},p?n:null),this._updatePageInfoView(n,x),C},t.prototype._pageGo=function(n,r,a){var i=this._getPageInfo(r)[n];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:r.id})},t.prototype._updatePageInfoView=function(n,r){var a=this._controllerGroup;F(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",d=r[f]!=null,h=a.childOfName(c);h&&(h.setStyle("fill",d?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),h.cursor=d?"pointer":"default")});var i=a.childOfName("pageText"),o=n.get("pageFormatter"),s=r.pageIndex,l=s!=null?s+1:0,u=r.pageCount;i&&o&&i.setStyle("text",Je(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(n){var r=n.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=n.getOrient().index,s=qS[o],l=XS[o],u=this._findTargetItemIndex(r),c=a.children(),f=c[u],d=c.length,h=d?1:0,v={contentPosition:[a.x,a.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return v;var p=w(f);v.contentPosition[o]=-p.s;for(var g=u+1,m=p,b=p,_=null;g<=d;++g)_=w(c[g]),(!_&&b.e>m.s+i||_&&!C(_,m.s))&&(b.i>m.i?m=b:m=_,m&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=m.i),++v.pageCount)),b=_;for(var g=u-1,m=p,b=p,_=null;g>=-1;--g)_=w(c[g]),(!_||!C(b,_.s))&&m.i<b.i&&(b=m,v.pagePrevDataIndex==null&&(v.pagePrevDataIndex=m.i),++v.pageCount,++v.pageIndex),m=_;return v;function w(S){if(S){var x=S.getBoundingRect(),T=x[l]+S[l];return{s:T,e:T+x[s],i:S.__legendDataIndex}}}function C(S,x){return S.e>=x&&S.s<=x+i}},t.prototype._findTargetItemIndex=function(n){if(!this._showController)return 0;var r,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===n&&(r=s)}),r??i},t.type="legend.scroll",t}(NU);const AUe=kUe;function EUe(e){e.registerAction("legendScroll","legendscroll",function(t,n){var r=t.scrollDataIndex;r!=null&&n.eachComponent({mainType:"legend",subType:"scroll",query:t},function(a){a.setScrollDataIndex(r)})})}function IUe(e){Bt(BU),e.registerComponentModel(MUe),e.registerComponentView(AUe),EUe(e)}function DUe(e){Bt(BU),Bt(IUe)}var PUe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="dataZoom.inside",t.defaultOption=Rl(Vp.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Vp);const LUe=PUe;var LE=en();function RUe(e,t,n){LE(e).coordSysRecordMap.each(function(r){var a=r.dataZoomInfoMap.get(t.uid);a&&(a.getRange=n)})}function OUe(e,t){for(var n=LE(e).coordSysRecordMap,r=n.keys(),a=0;a<r.length;a++){var i=r[a],o=n.get(i),s=o.dataZoomInfoMap;if(s){var l=t.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||VU(n,o))}}}function VU(e,t){if(t){e.removeKey(t.model.uid);var n=t.controller;n&&n.dispose()}}function $Ue(e,t){var n={model:t,containsPoint:xt(BUe,t),dispatchAction:xt(NUe,e),dataZoomInfoMap:null,controller:null},r=n.controller=new Mg(e.getZr());return F(["pan","zoom","scrollMove"],function(a){r.on(a,function(i){var o=[];n.dataZoomInfoMap.each(function(s){if(i.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[a],u=l&&l(s.dzReferCoordSysInfo,n.model.mainType,n.controller,i);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&n.dispatchAction(o)})}),n}function NUe(e,t){e.isDisposed()||e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function BUe(e,t,n,r){return e.coordinateSystem.containPoint([n,r])}function VUe(e){var t,n="type_",r={type_true:2,type_move:1,type_false:0,type_undefined:-1},a=!0;return e.each(function(i){var o=i.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;r[n+s]>r[n+t]&&(t=s),a=a&&o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function zUe(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(t,n){var r=LE(n),a=r.coordSysRecordMap||(r.coordSysRecordMap=ot());a.each(function(i){i.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=_U(i);F(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,$Ue(n,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=ot());c.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),a.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){VU(a,i);return}var c=VUe(l);o.enable(c.controlType,c.opt),o.setPointerChecker(i.containsPoint),Gd(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var FUe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="dataZoom.inside",n}return t.prototype.render=function(n,r,a){if(e.prototype.render.apply(this,arguments),n.noTarget()){this._clear();return}this.range=n.getPercentRange(),RUe(a,n,{pan:et(ZS.pan,this),zoom:et(ZS.zoom,this),scrollMove:et(ZS.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){OUe(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(xE),ZS={zoom:function(e,t,n,r){var a=this.range,i=a.slice(),o=e.axisModels[0];if(o){var s=JS[t](null,[r.originX,r.originY],o,n,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/r.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Ic(0,i,[0,100],0,c.minSpan,c.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:W4(function(e,t,n,r,a,i){var o=JS[r]([i.oldX,i.oldY],[i.newX,i.newY],t,a,n);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:W4(function(e,t,n,r,a,i){var o=JS[r]([0,0],[i.scrollDelta,i.scrollDelta],t,a,n);return o.signal*(e[1]-e[0])*i.scrollDelta})};function W4(e){return function(t,n,r,a){var i=this.range,o=i.slice(),s=t.axisModels[0];if(s){var l=e(o,s,t,n,r,a);if(Ic(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var JS={grid:function(e,t,n,r,a){var i=n.axis,o={},s=a.model.coordinateSystem.getRect();return e=e||[0,0],i.dim==="x"?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(e,t,n,r,a){var i=n.axis,o={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),n.mainType==="radiusAxis"?(o.pixel=t[0]-e[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(e,t,n,r,a){var i=n.axis,o=a.model.coordinateSystem.getRect(),s={};return e=e||[0,0],i.orient==="horizontal"?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};const HUe=FUe;function zU(e){TE(e),e.registerComponentModel(LUe),e.registerComponentView(HUe),zUe(e)}var GUe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=Rl(Vp.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(Vp);const WUe=GUe;var Ph=Zt,K4=7,KUe=1,QS=30,UUe=7,Lh="horizontal",U4="vertical",YUe=5,jUe=["line","bar","candlestick","scatter"],qUe={easing:"cubicOut",duration:100,delay:0},XUe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return t.prototype.init=function(n,r){this.api=r,this._onBrush=et(this._onBrush,this),this._onBrushEnd=et(this._onBrushEnd,this)},t.prototype.render=function(n,r,a,i){if(e.prototype.render.apply(this,arguments),Gd(this,"_dispatchZoomAction",n.get("throttle"),"fixRate"),this._orient=n.getOrient(),n.get("show")===!1){this.group.removeAll();return}if(n.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){kp(this,"_dispatchZoomAction");var n=this.api.getZr();n.off("mousemove",this._onBrush),n.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var n=this.group;n.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var r=this._displayables.sliderGroup=new bt;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),n.add(r),this._positionGroup()},t.prototype._resetLocation=function(){var n=this.dataZoomModel,r=this.api,a=n.get("brushSelect"),i=a?UUe:0,o=this._findCoordRect(),s={width:r.getWidth(),height:r.getHeight()},l=this._orient===Lh?{right:s.width-o.x-o.width,top:s.height-QS-K4-i,width:o.width,height:QS}:{right:K4,top:o.y,width:QS,height:o.height},u=Bd(n.option);F(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=Xn(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===U4&&this._size.reverse()},t.prototype._positionGroup=function(){var n=this.group,r=this._location,a=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(a===Lh&&!o?{scaleY:l?1:-1,scaleX:1}:a===Lh&&o?{scaleY:l?1:-1,scaleX:-1}:a===U4&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=n.getBoundingRect([s]);n.x=r.x-u.x,n.y=r.y-u.y,n.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var n=this.dataZoomModel,r=this._size,a=this._displayables.sliderGroup,i=n.get("brushSelect");a.add(new Ph({silent:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:n.get("backgroundColor")},z2:-40}));var o=new Ph({shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:"transparent"},z2:0,onclick:et(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),a.add(o)},t.prototype._renderDataShadow=function(){var n=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!n)return;var r=this._size,a=this._shadowSize||[],i=n.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():n.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||r[0]!==a[0]||r[1]!==a[1]){var f=o.getDataExtent(l),d=(f[1]-f[0])*.3;f=[f[0]-d,f[1]+d];var h=[0,r[1]],v=[0,r[0]],p=[[r[0],0],[0,0]],g=[],m=v[1]/(o.count()-1),b=0,_=Math.round(o.count()/r[0]),w;o.each([l],function(M,A){if(_>0&&A%_){b+=m;return}var k=M==null||isNaN(M)||M==="",E=k?0:sn(M,f,h,!0);k&&!w&&A?(p.push([p[p.length-1][0],0]),g.push([g[g.length-1][0],0])):!k&&w&&(p.push([b,0]),g.push([b,0])),p.push([b,E]),g.push([b,E]),b+=m,w=k}),u=this._shadowPolygonPts=p,c=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[r[0],r[1]];var C=this.dataZoomModel;function S(M){var A=C.getModel(M?"selectedDataBackground":"dataBackground"),k=new bt,E=new ra({shape:{points:u},segmentIgnoreThreshold:1,style:A.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),D=new ia({shape:{points:c},segmentIgnoreThreshold:1,style:A.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return k.add(E),k.add(D),k}for(var x=0;x<3;x++){var T=S(x===1);this._displayables.sliderGroup.add(T),this._displayables.dataShadowSegs.push(T)}},t.prototype._prepareDataShadowInfo=function(){var n=this.dataZoomModel,r=n.get("showDataShadow");if(r!==!1){var a,i=this.ecModel;return n.eachTargetAxis(function(o,s){var l=n.getAxisProxy(o,s).getTargetSeriesModels();F(l,function(u){if(!a&&!(r!==!0&&$t(jUe,u.get("type"))<0)){var c=i.getComponent(Xs(o),s).axis,f=ZUe(o),d,h=u.coordinateSystem;f!=null&&h.getOtherAxis&&(d=h.getOtherAxis(c).inverse),f=u.getData().mapDimension(f),a={thisAxis:c,series:u,thisDim:o,otherDim:f,otherAxisInverse:d}}},this)},this),a}},t.prototype._renderHandle=function(){var n=this.group,r=this._displayables,a=r.handles=[null,null],i=r.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,f=l.get("brushSelect"),d=r.filler=new Ph({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(d),o.add(new Ph({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:KUe,fill:"rgba(0,0,0,0)"}})),F([0,1],function(_){var w=l.get("handleIcon");!W0[w]&&w.indexOf("path://")<0&&w.indexOf("image://")<0&&(w="path://"+w);var C=Hn(w,-1,0,2,2,null,!0);C.attr({cursor:Y4(this._orient),draggable:!0,drift:et(this._onDragMove,this,_),ondragend:et(this._onDragEnd,this),onmouseover:et(this._showDataInfo,this,!0),onmouseout:et(this._showDataInfo,this,!1),z2:5});var S=C.getBoundingRect(),x=l.get("handleSize");this._handleHeight=qe(x,this._size[1]),this._handleWidth=S.width/S.height*this._handleHeight,C.setStyle(l.getModel("handleStyle").getItemStyle()),C.style.strokeNoScale=!0,C.rectHover=!0,C.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),rl(C);var T=l.get("handleColor");T!=null&&(C.style.fill=T),o.add(a[_]=C);var M=l.getModel("textStyle");n.add(i[_]=new Xt({silent:!0,invisible:!0,style:gn(M,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:M.getTextColor(),font:M.getFont()}),z2:10}))},this);var h=d;if(f){var v=qe(l.get("moveHandleSize"),s[1]),p=r.moveHandle=new Zt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:v}}),g=v*.8,m=r.moveHandleIcon=Hn(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);m.silent=!0,m.y=s[1]+v/2-.5,p.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var b=Math.min(s[1]/2,Math.max(v,10));h=r.moveZone=new Zt({invisible:!0,shape:{y:s[1]-b,height:v+b}}),h.on("mouseover",function(){u.enterEmphasis(p)}).on("mouseout",function(){u.leaveEmphasis(p)}),o.add(p),o.add(m),o.add(h)}h.attr({draggable:!0,cursor:Y4(this._orient),drift:et(this._onDragMove,this,"all"),ondragstart:et(this._showDataInfo,this,!0),ondragend:et(this._onDragEnd,this),onmouseover:et(this._showDataInfo,this,!0),onmouseout:et(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var n=this._range=this.dataZoomModel.getPercentRange(),r=this._getViewExtent();this._handleEnds=[sn(n[0],[0,100],r,!0),sn(n[1],[0,100],r,!0)]},t.prototype._updateInterval=function(n,r){var a=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Ic(r,i,o,a.get("zoomLock")?"all":n,s.minSpan!=null?sn(s.minSpan,l,o,!0):null,s.maxSpan!=null?sn(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=Ea([sn(i[0],o,l,!0),sn(i[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},t.prototype._updateView=function(n){var r=this._displayables,a=this._handleEnds,i=Ea(a.slice()),o=this._size;F([0,1],function(h){var v=r.handles[h],p=this._handleHeight;v.attr({scaleX:p/2,scaleY:p/2,x:a[h]+(h?-1:1),y:o[1]/2-p/2})},this),r.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};r.moveHandle&&(r.moveHandle.setShape(s),r.moveZone.setShape(s),r.moveZone.getBoundingRect(),r.moveHandleIcon&&r.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=r.dataShadowSegs,u=[0,i[0],i[1],o[0]],c=0;c<l.length;c++){var f=l[c],d=f.getClipPath();d||(d=new Zt,f.setClipPath(d)),d.setShape({x:u[c],y:0,width:u[c+1]-u[c],height:o[1]})}this._updateDataInfo(n)},t.prototype._updateDataInfo=function(n){var r=this.dataZoomModel,a=this._displayables,i=a.handleLabels,o=this._orient,s=["",""];if(r.get("showDetail")){var l=r.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,c=this._range,f=n?l.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(f[0],u),this._formatLabel(f[1],u)]}}var d=Ea(this._handleEnds.slice());h.call(this,0),h.call(this,1);function h(v){var p=al(a.handles[v].parent,this.group),g=I1(v===0?"right":"left",p),m=this._handleWidth/2+YUe,b=Ni([d[v]+(v===0?-m:m),this._size[1]/2],p);i[v].setStyle({x:b[0],y:b[1],verticalAlign:o===Lh?"middle":g,align:o===Lh?g:"center",text:s[v]})}},t.prototype._formatLabel=function(n,r){var a=this.dataZoomModel,i=a.get("labelFormatter"),o=a.get("labelPrecision");(o==null||o==="auto")&&(o=r.getPixelPrecision());var s=n==null||isNaN(n)?"":r.type==="category"||r.type==="time"?r.scale.getLabel({value:Math.round(n)}):n.toFixed(Math.min(o,20));return ut(i)?i(n,s):Je(i)?i.replace("{value}",s):s},t.prototype._showDataInfo=function(n){n=this._dragging||n;var r=this._displayables,a=r.handleLabels;a[0].attr("invisible",!n),a[1].attr("invisible",!n),r.moveHandle&&this.api[n?"enterEmphasis":"leaveEmphasis"](r.moveHandle,1)},t.prototype._onDragMove=function(n,r,a,i){this._dragging=!0,ns(i.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=Ni([r,a],o,!0),l=this._updateInterval(n,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var n=this.dataZoomModel.get("realtime");!n&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(n){var r=this._size,a=this._displayables.sliderGroup.transformCoordToLocal(n.offsetX,n.offsetY);if(!(a[0]<0||a[0]>r[0]||a[1]<0||a[1]>r[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",a[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(n){var r=n.offsetX,a=n.offsetY;this._brushStart=new Pt(r,a),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(n){if(this._brushing){var r=this._displayables.brushRect;if(this._brushing=!1,!!r){r.attr("ignore",!0);var a=r.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(a.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=Ea([sn(a.x,o,s,!0),sn(a.x+a.width,o,s,!0)]),this._handleEnds=[a.x,a.x+a.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(n){this._brushing&&(ns(n.event),this._updateBrushRect(n.offsetX,n.offsetY))},t.prototype._updateBrushRect=function(n,r){var a=this._displayables,i=this.dataZoomModel,o=a.brushRect;o||(o=a.brushRect=new Ph({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(n,r),c=l.transformCoordToLocal(s.x,s.y),f=this._size;u[0]=Math.max(Math.min(f[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:f[1]})},t.prototype._dispatchZoomAction=function(n){var r=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:n?qUe:null,start:r[0],end:r[1]})},t.prototype._findCoordRect=function(){var n,r=_U(this.dataZoomModel).infoList;if(!n&&r.length){var a=r[0].model.coordinateSystem;n=a.getRect&&a.getRect()}if(!n){var i=this.api.getWidth(),o=this.api.getHeight();n={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return n},t.type="dataZoom.slider",t}(xE);function ZUe(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function Y4(e){return e==="vertical"?"ns-resize":"ew-resize"}const JUe=XUe;function FU(e){e.registerComponentModel(WUe),e.registerComponentView(JUe),TE(e)}function QUe(e){Bt(zU),Bt(FU)}var eYe={get:function(e,t,n){var r=pt((tYe[e]||{})[t]);return n&&Re(r)?r[r.length-1]:r}},tYe={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const HU=eYe;var j4=wr.mapVisual,nYe=wr.eachVisual,rYe=Re,q4=F,aYe=Ea,iYe=sn,oYe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return t.prototype.init=function(n,r,a){this.mergeDefaultAndTheme(n,a)},t.prototype.optionUpdated=function(n,r){var a=this.option;!r&&IU(a,n,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(n){var r=this.stateList;n=et(n,this),this.controllerVisuals=oT(this.option.controller,r,n),this.targetVisuals=oT(this.option.target,r,n)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var n=this.option.seriesIndex,r=[];return n==null||n==="all"?this.ecModel.eachSeries(function(a,i){r.push(i)}):r=hn(n),r},t.prototype.eachTargetSeries=function(n,r){F(this.getTargetSeriesIndices(),function(a){var i=this.ecModel.getSeriesByIndex(a);i&&n.call(r,i)},this)},t.prototype.isTargetSeries=function(n){var r=!1;return this.eachTargetSeries(function(a){a===n&&(r=!0)}),r},t.prototype.formatValueText=function(n,r,a){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;a=a||["<",">"],Re(n)&&(n=n.slice(),u=!0);var c=r?n:u?[f(n[0]),f(n[1])]:f(n);if(Je(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(ut(l))return u?l(n[0],n[1]):l(n);if(u)return n[0]===s[0]?a[0]+" "+c[1]:n[1]===s[1]?a[1]+" "+c[0]:c[0]+" - "+c[1];return c;function f(d){return d===s[0]?"min":d===s[1]?"max":(+d).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var n=this.option,r=aYe([n.min,n.max]);this._dataExtent=r},t.prototype.getDataDimensionIndex=function(n){var r=this.option.dimension;if(r!=null)return n.getDimensionIndex(r);for(var a=n.dimensions,i=a.length-1;i>=0;i--){var o=a[i],s=n.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var n=this.ecModel,r=this.option,a={inRange:r.inRange,outOfRange:r.outOfRange},i=r.target||(r.target={}),o=r.controller||(r.controller={});Dt(i,a),Dt(o,a);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),c.call(this,o);function l(f){rYe(r.color)&&!f.inRange&&(f.inRange={color:r.color.slice().reverse()}),f.inRange=f.inRange||{color:n.get("gradientColor")}}function u(f,d,h){var v=f[d],p=f[h];v&&!p&&(p=f[h]={},q4(v,function(g,m){if(wr.isValidType(m)){var b=HU.get(m,"inactive",s);b!=null&&(p[m]=b,m==="color"&&!p.hasOwnProperty("opacity")&&!p.hasOwnProperty("colorAlpha")&&(p.opacity=[0,0]))}}))}function c(f){var d=(f.inRange||{}).symbol||(f.outOfRange||{}).symbol,h=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,v=this.get("inactiveColor"),p=this.getItemSymbol(),g=p||"roundRect";q4(this.stateList,function(m){var b=this.itemSize,_=f[m];_||(_=f[m]={color:s?v:[v]}),_.symbol==null&&(_.symbol=d&&pt(d)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=h&&pt(h)||(s?b[0]:[b[0],b[0]])),_.symbol=j4(_.symbol,function(S){return S==="none"?g:S});var w=_.symbolSize;if(w!=null){var C=-1/0;nYe(w,function(S){S>C&&(C=S)}),_.symbolSize=j4(w,function(S){return iYe(S,[0,C],[0,b[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(n){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(n){return null},t.prototype.getVisualMeta=function(n){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(Yt);const mb=oYe;var X4=[20,140],sYe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(n,r){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var n=this.itemSize;(n[0]==null||isNaN(n[0]))&&(n[0]=X4[0]),(n[1]==null||isNaN(n[1]))&&(n[1]=X4[1])},t.prototype._resetRange=function(){var n=this.getExtent(),r=this.option.range;!r||r.auto?(n.auto=1,this.option.range=n):Re(r)&&(r[0]>r[1]&&r.reverse(),r[0]=Math.max(r[0],n[0]),r[1]=Math.min(r[1],n[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),F(this.stateList,function(n){var r=this.option.controller[n].symbolSize;r&&r[0]!==r[1]&&(r[0]=r[1]/3)},this)},t.prototype.setSelected=function(n){this.option.range=n.slice(),this._resetRange()},t.prototype.getSelected=function(){var n=this.getExtent(),r=Ea((this.get("range")||[]).slice());return r[0]>n[1]&&(r[0]=n[1]),r[1]>n[1]&&(r[1]=n[1]),r[0]<n[0]&&(r[0]=n[0]),r[1]<n[0]&&(r[1]=n[0]),r},t.prototype.getValueState=function(n){var r=this.option.range,a=this.getExtent();return(r[0]<=a[0]||r[0]<=n)&&(r[1]>=a[1]||n<=r[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(n){var r=[];return this.eachTargetSeries(function(a){var i=[],o=a.getData();o.each(this.getDataDimensionIndex(o),function(s,l){n[0]<=s&&s<=n[1]&&i.push(l)},this),r.push({seriesId:a.id,dataIndex:i})},this),r},t.prototype.getVisualMeta=function(n){var r=Z4(this,"outOfRange",this.getExtent()),a=Z4(this,"inRange",this.option.range.slice()),i=[];function o(h,v){i.push({value:h,color:n(h,v)})}for(var s=0,l=0,u=a.length,c=r.length;l<c&&(!a.length||r[l]<=a[0]);l++)r[l]<a[s]&&o(r[l],"outOfRange");for(var f=1;s<u;s++,f=0)f&&i.length&&o(a[s],"outOfRange"),o(a[s],"inRange");for(var f=1;l<c;l++)(!a.length||a[a.length-1]<r[l])&&(f&&(i.length&&o(i[i.length-1].value,"outOfRange"),f=0),o(r[l],"outOfRange"));var d=i.length;return{stops:i,outerColors:[d?i[0].color:"transparent",d?i[d-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=Rl(mb.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),t}(mb);function Z4(e,t,n){if(n[0]===n[1])return n.slice();for(var r=200,a=(n[1]-n[0])/r,i=n[0],o=[],s=0;s<=r&&i<n[1];s++)o.push(i),i+=a;return o.push(n[1]),o}const lYe=sYe;var uYe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return t.prototype.init=function(n,r){this.ecModel=n,this.api=r},t.prototype.render=function(n,r,a,i){if(this.visualMapModel=n,n.get("show")===!1){this.group.removeAll();return}this.doRender(n,r,a,i)},t.prototype.renderBackground=function(n){var r=this.visualMapModel,a=Mc(r.get("padding")||0),i=n.getBoundingRect();n.add(new Zt({z2:-1,silent:!0,shape:{x:i.x-a[3],y:i.y-a[0],width:i.width+a[3]+a[1],height:i.height+a[0]+a[2]},style:{fill:r.get("backgroundColor"),stroke:r.get("borderColor"),lineWidth:r.get("borderWidth")}}))},t.prototype.getControllerVisual=function(n,r,a){a=a||{};var i=a.forceState,o=this.visualMapModel,s={};if(r==="color"){var l=o.get("contentColor");s.color=l}function u(h){return s[h]}function c(h,v){s[h]=v}var f=o.controllerVisuals[i||o.getValueState(n)],d=wr.prepareVisualTypes(f);return F(d,function(h){var v=f[h];a.convertOpacityToAlpha&&h==="opacity"&&(h="colorAlpha",v=f.__alphaForOpacity),wr.dependsOn(h,r)&&v&&v.applyVisual(n,u,c)}),s[r]},t.prototype.positionGroup=function(n){var r=this.visualMapModel,a=this.api;$1(n,r.getBoxLayoutParams(),{width:a.getWidth(),height:a.getHeight()})},t.prototype.doRender=function(n,r,a,i){},t.type="visualMap",t}(An);const GU=uYe;var J4=[["left","right","width"],["top","bottom","height"]];function WU(e,t,n){var r=e.option,a=r.align;if(a!=null&&a!=="auto")return a;for(var i={width:t.getWidth(),height:t.getHeight()},o=r.orient==="horizontal"?1:0,s=J4[o],l=[0,null,10],u={},c=0;c<3;c++)u[J4[1-o][c]]=l[c],u[s[c]]=c===2?n[0]:r[s[c]];var f=[["x","width",3],["y","height",0]][o],d=Xn(u,i,r.padding);return s[(d.margin[f[2]]||0)+d[f[0]]+d[f[1]]*.5<i[f[1]]*.5?0:1]}function Xy(e,t){return F(e||[],function(n){n.dataIndex!=null&&(n.dataIndexInside=n.dataIndex,n.dataIndex=null),n.highlightKey="visualMap"+(t?t.componentIndex:"")}),e}var to=sn,cYe=F,Q4=Math.min,eC=Math.max,fYe=12,dYe=6,hYe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return t.prototype.doRender=function(n,r,a,i){this._api=a,(!i||i.type!=="selectDataRange"||i.from!==this.uid)&&this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var n=this.visualMapModel,r=this.group;this._orient=n.get("orient"),this._useHandle=n.get("calculable"),this._resetInterval(),this._renderBar(r);var a=n.get("text");this._renderEndsText(r,a,0),this._renderEndsText(r,a,1),this._updateView(!0),this.renderBackground(r),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(r)},t.prototype._renderEndsText=function(n,r,a){if(r){var i=r[1-a];i=i!=null?i+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,c=this._applyTransform([l[0]/2,a===0?-s:l[1]+s],u),f=this._applyTransform(a===0?"bottom":"top",u),d=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new Xt({style:gn(h,{x:c[0],y:c[1],verticalAlign:d==="horizontal"?"middle":f,align:d==="horizontal"?f:"center",text:i})}))}},t.prototype._renderBar=function(n){var r=this.visualMapModel,a=this._shapes,i=r.itemSize,o=this._orient,s=this._useHandle,l=WU(r,this.api,i),u=a.mainGroup=this._createBarGroup(l),c=new bt;u.add(c),c.add(a.outOfRange=eB()),c.add(a.inRange=eB(null,s?nB(this._orient):null,et(this._dragHandle,this,"all",!1),et(this._dragHandle,this,"all",!0))),c.setClipPath(new Zt({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var f=r.textStyleModel.getTextRect("国"),d=eC(f.width,f.height);s&&(a.handleThumbs=[],a.handleLabels=[],a.handleLabelPoints=[],this._createHandle(r,u,0,i,d,o),this._createHandle(r,u,1,i,d,o)),this._createIndicator(r,u,i,d,o),n.add(u)},t.prototype._createHandle=function(n,r,a,i,o,s){var l=et(this._dragHandle,this,a,!1),u=et(this._dragHandle,this,a,!0),c=Fi(n.get("handleSize"),i[0]),f=Hn(n.get("handleIcon"),-c/2,-c/2,c,c,null,!0),d=nB(this._orient);f.attr({cursor:d,draggable:!0,drift:l,ondragend:u,onmousemove:function(m){ns(m.event)}}),f.x=i[0]/2,f.useStyle(n.getModel("handleStyle").getItemStyle()),f.setStyle({strokeNoScale:!0,strokeFirst:!0}),f.style.lineWidth*=2,f.ensureState("emphasis").style=n.getModel(["emphasis","handleStyle"]).getItemStyle(),Bu(f,!0),r.add(f);var h=this.visualMapModel.textStyleModel,v=new Xt({cursor:d,draggable:!0,drift:l,onmousemove:function(m){ns(m.event)},ondragend:u,style:gn(h,{x:0,y:0,text:""})});v.ensureState("blur").style={opacity:.1},v.stateTransition={duration:200},this.group.add(v);var p=[c,0],g=this._shapes;g.handleThumbs[a]=f,g.handleLabelPoints[a]=p,g.handleLabels[a]=v},t.prototype._createIndicator=function(n,r,a,i,o){var s=Fi(n.get("indicatorSize"),a[0]),l=Hn(n.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:a[0]/2});var u=n.getModel("indicatorStyle").getItemStyle();if(l instanceof vr){var c=l.style;l.useStyle(Ie({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},u))}else l.useStyle(u);r.add(l);var f=this.visualMapModel.textStyleModel,d=new Xt({silent:!0,invisible:!0,style:gn(f,{x:0,y:0,text:""})});this.group.add(d);var h=[(o==="horizontal"?i/2:dYe)+a[0]/2,0],v=this._shapes;v.indicator=l,v.indicatorLabel=d,v.indicatorLabelPoint=h,this._firstShowIndicator=!0},t.prototype._dragHandle=function(n,r,a,i){if(this._useHandle){if(this._dragging=!r,!r){var o=this._applyTransform([a,i],this._shapes.mainGroup,!0);this._updateInterval(n,o[1]),this._hideIndicator(),this._updateView()}r===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),r?!this._hovering&&this._clearHoverLinkToSeries():tB(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[n],!1)}},t.prototype._resetInterval=function(){var n=this.visualMapModel,r=this._dataInterval=n.getSelected(),a=n.getExtent(),i=[0,n.itemSize[1]];this._handleEnds=[to(r[0],a,i,!0),to(r[1],a,i,!0)]},t.prototype._updateInterval=function(n,r){r=r||0;var a=this.visualMapModel,i=this._handleEnds,o=[0,a.itemSize[1]];Ic(r,i,o,n,0);var s=a.getExtent();this._dataInterval=[to(i[0],o,s,!0),to(i[1],o,s,!0)]},t.prototype._updateView=function(n){var r=this.visualMapModel,a=r.getExtent(),i=this._shapes,o=[0,r.itemSize[1]],s=n?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,a,s,"inRange"),u=this._createBarVisual(a,a,o,"outOfRange");i.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),i.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},t.prototype._createBarVisual=function(n,r,a,i){var o={forceState:i,convertOpacityToAlpha:!0},s=this._makeColorGradient(n,o),l=[this.getControllerVisual(n[0],"symbolSize",o),this.getControllerVisual(n[1],"symbolSize",o)],u=this._createBarPoints(a,l);return{barColor:new Pd(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},t.prototype._makeColorGradient=function(n,r){var a=100,i=[],o=(n[1]-n[0])/a;i.push({color:this.getControllerVisual(n[0],"color",r),offset:0});for(var s=1;s<a;s++){var l=n[0]+o*s;if(l>n[1])break;i.push({color:this.getControllerVisual(l,"color",r),offset:s/a})}return i.push({color:this.getControllerVisual(n[1],"color",r),offset:1}),i},t.prototype._createBarPoints=function(n,r){var a=this.visualMapModel.itemSize;return[[a[0]-r[0],n[0]],[a[0],n[0]],[a[0],n[1]],[a[0]-r[1],n[1]]]},t.prototype._createBarGroup=function(n){var r=this._orient,a=this.visualMapModel.get("inverse");return new bt(r==="horizontal"&&!a?{scaleX:n==="bottom"?1:-1,rotation:Math.PI/2}:r==="horizontal"&&a?{scaleX:n==="bottom"?-1:1,rotation:-Math.PI/2}:r==="vertical"&&!a?{scaleX:n==="left"?1:-1,scaleY:-1}:{scaleX:n==="left"?1:-1})},t.prototype._updateHandle=function(n,r){if(this._useHandle){var a=this._shapes,i=this.visualMapModel,o=a.handleThumbs,s=a.handleLabels,l=i.itemSize,u=i.getExtent();cYe([0,1],function(c){var f=o[c];f.setStyle("fill",r.handlesColor[c]),f.y=n[c];var d=to(n[c],[0,l[1]],u,!0),h=this.getControllerVisual(d,"symbolSize");f.scaleX=f.scaleY=h/l[0],f.x=l[0]-h/2;var v=Ni(a.handleLabelPoints[c],al(f,this.group));s[c].setStyle({x:v[0],y:v[1],text:i.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(n,r,a,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,f=c.indicator;if(f){f.attr("invisible",!1);var d={convertOpacityToAlpha:!0},h=this.getControllerVisual(n,"color",d),v=this.getControllerVisual(n,"symbolSize"),p=to(n,s,u,!0),g=l[0]-v/2,m={x:f.x,y:f.y};f.y=p,f.x=g;var b=Ni(c.indicatorLabelPoint,al(f,this.group)),_=c.indicatorLabel;_.attr("invisible",!1);var w=this._applyTransform("left",c.mainGroup),C=this._orient,S=C==="horizontal";_.setStyle({text:(a||"")+o.formatValueText(r),verticalAlign:S?w:"middle",align:S?"center":w});var x={x:g,y:p,style:{fill:h}},T={style:{x:b[0],y:b[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var M={duration:100,easing:"cubicInOut",additive:!0};f.x=m.x,f.y=m.y,f.animateTo(x,M),_.animateTo(T,M)}else f.attr(x),_.attr(T);this._firstShowIndicator=!1;var A=this._shapes.handleLabels;if(A)for(var k=0;k<A.length;k++)this._api.enterBlur(A[k])}},t.prototype._enableHoverLinkToSeries=function(){var n=this;this._shapes.mainGroup.on("mousemove",function(r){if(n._hovering=!0,!n._dragging){var a=n.visualMapModel.itemSize,i=n._applyTransform([r.offsetX,r.offsetY],n._shapes.mainGroup,!0,!0);i[1]=Q4(eC(0,i[1]),a[1]),n._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=a[0])}}).on("mouseout",function(){n._hovering=!1,!n._dragging&&n._clearHoverLinkToSeries()})},t.prototype._enableHoverLinkFromSeries=function(){var n=this.api.getZr();this.visualMapModel.option.hoverLink?(n.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),n.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(n,r){var a=this.visualMapModel,i=a.itemSize;if(a.option.hoverLink){var o=[0,i[1]],s=a.getExtent();n=Q4(eC(o[0],n),o[1]);var l=vYe(a,s,o),u=[n-l,n+l],c=to(n,o,s,!0),f=[to(u[0],o,s,!0),to(u[1],o,s,!0)];u[0]<o[0]&&(f[0]=-1/0),u[1]>o[1]&&(f[1]=1/0),r&&(f[0]===-1/0?this._showIndicator(c,f[1],"< ",l):f[1]===1/0?this._showIndicator(c,f[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var d=this._hoverLinkDataIndices,h=[];(r||tB(a))&&(h=this._hoverLinkDataIndices=a.findTargetDataIndices(f));var v=GDe(d,h);this._dispatchHighDown("downplay",Xy(v[0],a)),this._dispatchHighDown("highlight",Xy(v[1],a))}},t.prototype._hoverLinkFromSeriesMouseOver=function(n){var r;if(zu(n.target,function(l){var u=Tt(l);if(u.dataIndex!=null)return r=u,!0},!0),!!r){var a=this.ecModel.getSeriesByIndex(r.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(a)){var o=a.getData(r.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),r.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var n=this._shapes;n.indicator&&n.indicator.attr("invisible",!0),n.indicatorLabel&&n.indicatorLabel.attr("invisible",!0);var r=this._shapes.handleLabels;if(r)for(var a=0;a<r.length;a++)this._api.leaveBlur(r[a])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var n=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",Xy(n,this.visualMapModel)),n.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var n=this.api.getZr();n.off("mouseover",this._hoverLinkFromSeriesMouseOver),n.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(n,r,a,i){var o=al(r,i?null:this.group);return Re(n)?Ni(n,o,a):I1(n,o,a)},t.prototype._dispatchHighDown=function(n,r){r&&r.length&&this.api.dispatchAction({type:n,batch:r})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.prototype.remove=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(GU);function eB(e,t,n,r){return new ra({shape:{points:e},draggable:!!n,cursor:t,drift:n,onmousemove:function(a){ns(a.event)},ondragend:r})}function vYe(e,t,n){var r=fYe/2,a=e.get("hoverLinkDataSize");return a&&(r=to(a,t,n,!0)/2),r}function tB(e){var t=e.get("hoverLinkOnHandle");return!!(t??e.get("realtime"))}function nB(e){return e==="vertical"?"ns-resize":"ew-resize"}const pYe=hYe;var gYe={type:"selectDataRange",event:"dataRangeSelected",update:"update"},mYe=function(e,t){t.eachComponent({mainType:"visualMap",query:e},function(n){n.setSelected(e.selected)})},yYe=[{createOnAllSeries:!0,reset:function(e,t){var n=[];return t.eachComponent("visualMap",function(r){var a=e.pipelineContext;!r.isTargetSeries(e)||a&&a.large||n.push(dKe(r.stateList,r.targetVisuals,et(r.getValueState,r),r.getDataDimensionIndex(e.getData())))}),n}},{createOnAllSeries:!0,reset:function(e,t){var n=e.getData(),r=[];t.eachComponent("visualMap",function(a){if(a.isTargetSeries(e)){var i=a.getVisualMeta(et(bYe,null,e,a))||{stops:[],outerColors:[]},o=a.getDataDimensionIndex(n);o>=0&&(i.dimension=o,r.push(i))}}),e.getData().setVisual("visualMeta",r)}}];function bYe(e,t,n,r){for(var a=t.targetVisuals[r],i=wr.prepareVisualTypes(a),o={color:yg(e.getData(),"color")},s=0,l=i.length;s<l;s++){var u=i[s],c=a[u==="opacity"?"__alphaForOpacity":u];c&&c.applyVisual(n,f,d)}return o.color;function f(h){return o[h]}function d(h,v){o[h]=v}}var rB=F;function _Ye(e){var t=e&&e.visualMap;Re(t)||(t=t?[t]:[]),rB(t,function(n){if(n){tf(n,"splitList")&&!tf(n,"pieces")&&(n.pieces=n.splitList,delete n.splitList);var r=n.pieces;r&&Re(r)&&rB(r,function(a){ht(a)&&(tf(a,"start")&&!tf(a,"min")&&(a.min=a.start),tf(a,"end")&&!tf(a,"max")&&(a.max=a.end))})}})}function tf(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var aB=!1;function KU(e){aB||(aB=!0,e.registerSubTypeDefaulter("visualMap",function(t){return!t.categories&&(!(t.pieces?t.pieces.length>0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),e.registerAction(gYe,mYe),F(yYe,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(_Ye))}function UU(e){e.registerComponentModel(lYe),e.registerComponentView(pYe),KU(e)}var wYe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return t.prototype.optionUpdated=function(n,r){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],SYe[this._mode].call(this,this._pieceList),this._resetSelected(n,r);var i=this.option.categories;this.resetVisual(function(o,s){a==="categories"?(o.mappingMethod="category",o.categories=pt(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=Oe(this._pieceList,function(l){return l=pt(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var n=this.option,r={},a=wr.listVisualTypes(),i=this.isCategory();F(n.pieces,function(s){F(a,function(l){s.hasOwnProperty(l)&&(r[l]=1)})}),F(r,function(s,l){var u=!1;F(this.stateList,function(c){u=u||o(n,c,l)||o(n.target,c,l)},this),!u&&F(this.stateList,function(c){(n[c]||(n[c]={}))[l]=HU.get(l,c==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(n,r){var a=this.option,i=this._pieceList,o=(r?a:n).selected||{};if(a.selected=o,F(i,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),a.selectedMode==="single"){var s=!1;F(i,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(n){return this._mode==="categories"?n.value+"":n.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var n=this.option;return n.pieces&&n.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(n){this.option.selected=pt(n)},t.prototype.getValueState=function(n){var r=wr.findPieceIndex(n,this._pieceList);return r!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[r])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(n){var r=[],a=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=wr.findPieceIndex(l,a);c===n&&o.push(u)},this),r.push({seriesId:i.id,dataIndex:o})},this),r},t.prototype.getRepresentValue=function(n){var r;if(this.isCategory())r=n.value;else if(n.value!=null)r=n.value;else{var a=n.interval||[];r=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return r},t.prototype.getVisualMeta=function(n){if(this.isCategory())return;var r=[],a=["",""],i=this;function o(c,f){var d=i.getRepresentValue({interval:c});f||(f=i.getValueState(d));var h=n(d,f);c[0]===-1/0?a[0]=h:c[1]===1/0?a[1]=h:r.push({value:c[0],color:h},{value:c[1],color:h})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return F(s,function(c){var f=c.interval;f&&(f[0]>u&&o([u,f[0]],"outOfRange"),o(f.slice()),u=f[1])},this),{stops:r,outerColors:a}},t.type="visualMap.piecewise",t.defaultOption=Rl(mb.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(mb),SYe={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),r=this.getExtent(),a=t.splitNumber;a=Math.max(parseInt(a,10),1),t.splitNumber=a;for(var i=(r[1]-r[0])/a;+i.toFixed(n)!==i&&n<5;)n++;t.precision=n,i=+i.toFixed(n),t.minOpen&&e.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o<a;s+=i,o++){var l=o===a-1?r[1]:s+i;e.push({interval:[s,l],close:[1,1]})}t.maxOpen&&e.push({interval:[r[1],1/0],close:[0,0]}),Zx(e),F(e,function(u,c){u.index=c,u.text=this.formatValueText(u.interval)},this)},categories:function(e){var t=this.option;F(t.categories,function(n){e.push({text:this.formatValueText(n,!0),value:n})},this),iB(t,e)},pieces:function(e){var t=this.option;F(t.pieces,function(n,r){ht(n)||(n={value:n});var a={text:"",index:r};if(n.label!=null&&(a.text=n.label),n.hasOwnProperty("value")){var i=a.value=n.value;a.interval=[i,i],a.close=[1,1]}else{for(var o=a.interval=[],s=a.close=[0,0],l=[1,0,1],u=[-1/0,1/0],c=[],f=0;f<2;f++){for(var d=[["gte","gt","min"],["lte","lt","max"]][f],h=0;h<3&&o[f]==null;h++)o[f]=n[d[h]],s[f]=l[h],c[f]=h===2;o[f]==null&&(o[f]=u[f])}c[0]&&o[1]===1/0&&(s[0]=0),c[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(a.value=o[0])}a.visual=wr.retrieveVisuals(n),e.push(a)},this),iB(t,e),Zx(e),F(e,function(n){var r=n.close,a=[["<","≤"][r[1]],[">","≥"][r[0]]];n.text=n.text||this.formatValueText(n.value!=null?n.value:n.interval,!1,a)},this)}};function iB(e,t){var n=e.inverse;(e.orient==="vertical"?!n:n)&&t.reverse()}const CYe=wYe;var xYe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.doRender=function(){var n=this.group;n.removeAll();var r=this.visualMapModel,a=r.get("textGap"),i=r.textStyleModel,o=i.getFont(),s=i.getTextColor(),l=this._getItemAlign(),u=r.itemSize,c=this._getViewData(),f=c.endsText,d=rr(r.get("showLabel",!0),!f);f&&this._renderEndsText(n,f[0],u,d,l),F(c.viewPieceList,function(h){var v=h.piece,p=new bt;p.onclick=et(this._onItemClick,this,v),this._enableHoverLink(p,h.indexInModelPieceList);var g=r.getRepresentValue(v);if(this._createItemSymbol(p,g,[0,0,u[0],u[1]]),d){var m=this.visualMapModel.getValueState(g);p.add(new Xt({style:{x:l==="right"?-a:u[0]+a,y:u[1]/2,text:v.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:m==="outOfRange"?.5:1}}))}n.add(p)},this),f&&this._renderEndsText(n,f[1],u,d,l),Ju(r.get("orient"),n,r.get("itemGap")),this.renderBackground(n),this.positionGroup(n)},t.prototype._enableHoverLink=function(n,r){var a=this;n.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=a.visualMapModel;s.option.hoverLink&&a.api.dispatchAction({type:o,batch:Xy(s.findTargetDataIndices(r),s)})}},t.prototype._getItemAlign=function(){var n=this.visualMapModel,r=n.option;if(r.orient==="vertical")return WU(n,this.api,n.itemSize);var a=r.align;return(!a||a==="auto")&&(a="left"),a},t.prototype._renderEndsText=function(n,r,a,i,o){if(r){var s=new bt,l=this.visualMapModel.textStyleModel;s.add(new Xt({style:gn(l,{x:i?o==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:i?o:"center",text:r})})),n.add(s)}},t.prototype._getViewData=function(){var n=this.visualMapModel,r=Oe(n.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),a=n.get("text"),i=n.get("orient"),o=n.get("inverse");return(i==="horizontal"?o:!o)?r.reverse():a&&(a=a.slice().reverse()),{viewPieceList:r,endsText:a}},t.prototype._createItemSymbol=function(n,r,a){n.add(Hn(this.getControllerVisual(r,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(r,"color")))},t.prototype._onItemClick=function(n){var r=this.visualMapModel,a=r.option,i=a.selectedMode;if(i){var o=pt(a.selected),s=r.getSelectedMapKey(n);i==="single"||i===!0?(o[s]=!0,F(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t}(GU);const TYe=xYe;function YU(e){e.registerComponentModel(CYe),e.registerComponentView(TYe),KU(e)}function MYe(e){Bt(UU),Bt(YU)}var kYe={label:{enabled:!0},decal:{show:!1}},oB=en(),AYe={};function EYe(e,t){var n=e.getModel("aria");if(!n.get("enabled"))return;var r=pt(kYe);Dt(r.label,e.getLocaleModel().get("aria"),!1),Dt(n.option,r,!1),a(),i();function a(){var u=n.getModel("decal"),c=u.get("show");if(c){var f=ot();e.eachSeries(function(d){if(!d.isColorBySeries()){var h=f.get(d.type);h||(h={},f.set(d.type,h)),oB(d).scope=h}}),e.eachRawSeries(function(d){if(e.isSeriesFiltered(d))return;if(ut(d.enableAriaDecal)){d.enableAriaDecal();return}var h=d.getData();if(d.isColorBySeries()){var b=h2(d.ecModel,d.name,AYe,e.getSeriesCount()),_=h.getVisual("decal");h.setVisual("decal",w(_,b))}else{var v=d.getRawData(),p={},g=oB(d).scope;h.each(function(C){var S=h.getRawIndex(C);p[S]=C});var m=v.count();v.each(function(C){var S=p[C],x=v.getName(C)||C+"",T=h2(d.ecModel,x,g,m),M=h.getItemVisual(S,"decal");h.setItemVisual(S,"decal",w(M,T))})}function w(C,S){var x=C?Ie(Ie({},S),C):S;return x.dirty=!0,x}})}}function i(){var u=e.getLocaleModel().get("aria"),c=n.getModel("label");if(c.option=ft(c.option,u),!!c.get("enabled")){var f=t.getZr().dom;if(c.get("description")){f.setAttribute("aria-label",c.get("description"));return}var d=e.getSeriesCount(),h=c.get(["data","maxCount"])||10,v=c.get(["series","maxCount"])||10,p=Math.min(d,v),g;if(!(d<1)){var m=s();if(m){var b=c.get(["general","withTitle"]);g=o(b,{title:m})}else g=c.get(["general","withoutTitle"]);var _=[],w=d>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);g+=o(w,{seriesCount:d}),e.eachSeries(function(T,M){if(M<p){var A=void 0,k=T.get("name"),E=k?"withName":"withoutName";A=d>1?c.get(["series","multiple",E]):c.get(["series","single",E]),A=o(A,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var D=T.getData();if(D.count()>h){var L=c.get(["data","partialData"]);A+=o(L,{displayCnt:h})}else A+=c.get(["data","allData"]);for(var B=c.get(["data","separator","middle"]),N=c.get(["data","separator","end"]),O=[],$=0;$<D.count();$++)if($<h){var I=D.getName($),z=D.getValues($),G=c.get(["data",I?"withName":"withoutName"]);O.push(o(G,{name:I,value:z.join(B)}))}A+=O.join(B)+N,_.push(A)}});var C=c.getModel(["series","multiple","separator"]),S=C.get("middle"),x=C.get("end");g+=_.join(S)+x,f.setAttribute("aria-label",g)}}}function o(u,c){if(!Je(u))return u;var f=u;return F(c,function(d,h){f=f.replace(new RegExp("\\{\\s*"+h+"\\s*\\}","g"),d)}),f}function s(){var u=e.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){return e.getLocaleModel().get(["series","typeNames"])[u]||"自定义图"}}function IYe(e){if(!(!e||!e.aria)){var t=e.aria;t.show!=null&&(t.enabled=t.show),t.label=t.label||{},F(["description","general","series","data"],function(n){t[n]!=null&&(t.label[n]=t[n])})}}function DYe(e){e.registerPreprocessor(IYe),e.registerVisual(e.PRIORITY.VISUAL.ARIA,EYe)}var sB={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},PYe=function(){function e(t){var n=this._condVal=Je(t)?new RegExp(t):Y6(t)?t:null;if(n==null){var r="";an(r)}}return e.prototype.evaluate=function(t){var n=typeof t;return Je(n)?this._condVal.test(t):Qt(n)?this._condVal.test(t+""):!1},e}(),LYe=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),RYe=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,n=0;n<t.length;n++)if(!t[n].evaluate())return!1;return!0},e}(),OYe=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,n=0;n<t.length;n++)if(t[n].evaluate())return!0;return!1},e}(),$Ye=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),NYe=function(){function e(){}return e.prototype.evaluate=function(){for(var t=!!this.valueParser,n=this.getValue,r=n(this.valueGetterParam),a=t?this.valueParser(r):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(t?a:r))return!1;return!0},e}();function RE(e,t){if(e===!0||e===!1){var n=new LYe;return n.value=e,n}var r="";return jU(e)||an(r),e.and?lB("and",e,t):e.or?lB("or",e,t):e.not?BYe(e,t):VYe(e,t)}function lB(e,t,n){var r=t[e],a="";Re(r)||an(a),r.length||an(a);var i=e==="and"?new RYe:new OYe;return i.children=Oe(r,function(o){return RE(o,n)}),i.children.length||an(a),i}function BYe(e,t){var n=e.not,r="";jU(n)||an(r);var a=new $Ye;return a.child=RE(n,t),a.child||an(r),a}function VYe(e,t){for(var n="",r=t.prepareGetValue(e),a=[],i=Gt(e),o=e.parser,s=o?_W(o):null,l=0;l<i.length;l++){var u=i[l];if(!(u==="parser"||t.valueGetterAttrMap.get(u))){var c=nt(sB,u)?sB[u]:u,f=e[u],d=s?s(f):f,h=nOe(c,d)||c==="reg"&&new PYe(d);h||an(n),a.push(h)}}a.length||an(n);var v=new NYe;return v.valueGetterParam=r,v.valueParser=s,v.getValue=t.getValue,v.subCondList=a,v}function jU(e){return ht(e)&&!Cr(e)}var zYe=function(){function e(t,n){this._cond=RE(t,n)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();function FYe(e,t){return new zYe(e,t)}var HYe={type:"echarts:filter",transform:function(e){for(var t=e.upstream,n,r=FYe(e.config,{valueGetterAttrMap:ot({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;nt(s,"dimension")||an(l);var c=t.getDimensionInfo(u);return c||an(l),{dimIdx:c.index}},getValue:function(s){return t.retrieveValueFromItem(n,s.dimIdx)}}),a=[],i=0,o=t.count();i<o;i++)n=t.getRawDataItem(i),r.evaluate()&&a.push(n);return{data:a}}},GYe={type:"echarts:sort",transform:function(e){var t=e.upstream,n=e.config,r="",a=hn(n);a.length||an(r);var i=[];F(a,function(c){var f=c.dimension,d=c.order,h=c.parser,v=c.incomparable;if(f==null&&an(r),d!=="asc"&&d!=="desc"&&an(r),v&&v!=="min"&&v!=="max"){var p="";an(p)}if(d!=="asc"&&d!=="desc"){var g="";an(g)}var m=t.getDimensionInfo(f);m||an(r);var b=h?_W(h):null;h&&!b&&an(r),i.push({dimIdx:m.index,parser:b,comparator:new SW(d,v)})});var o=t.sourceFormat;o!==Br&&o!==vi&&an(r);for(var s=[],l=0,u=t.count();l<u;l++)s.push(t.getRawDataItem(l));return s.sort(function(c,f){for(var d=0;d<i.length;d++){var h=i[d],v=t.retrieveValueFromItem(c,h.dimIdx),p=t.retrieveValueFromItem(f,h.dimIdx);h.parser&&(v=h.parser(v),p=h.parser(p));var g=h.comparator.evaluate(v,p);if(g!==0)return g}return 0}),{data:s}}};function WYe(e){e.registerTransform(HYe),e.registerTransform(GYe)}var KYe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="dataset",n}return t.prototype.init=function(n,r,a){e.prototype.init.call(this,n,r,a),this._sourceManager=new MW(this),fO(this)},t.prototype.mergeOption=function(n,r){e.prototype.mergeOption.call(this,n,r),fO(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:mo},t}(Yt),UYe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="dataset",n}return t.type="dataset",t}(An);function YYe(e){e.registerComponentModel(KYe),e.registerComponentView(UYe)}var Qi=To.CMD;function Sf(e,t){return Math.abs(e-t)<1e-5}function hT(e){var t=e.data,n=e.len(),r=[],a,i=0,o=0,s=0,l=0;function u(D,L){a&&a.length>2&&r.push(a),a=[D,L]}function c(D,L,B,N){Sf(D,B)&&Sf(L,N)||a.push(D,L,B,N,B,N)}function f(D,L,B,N,O,$){var I=Math.abs(L-D),z=Math.tan(I/4)*4/3,G=L<D?-1:1,U=Math.cos(D),Z=Math.sin(D),ae=Math.cos(L),J=Math.sin(L),Q=U*O+B,ee=Z*$+N,j=ae*O+B,de=J*$+N,ve=O*z*G,ie=$*z*G;a.push(Q-ve*Z,ee+ie*U,j+ve*J,de-ie*ae,j,de)}for(var d,h,v,p,g=0;g<n;){var m=t[g++],b=g===1;switch(b&&(i=t[g],o=t[g+1],s=i,l=o,(m===Qi.L||m===Qi.C||m===Qi.Q)&&(a=[s,l])),m){case Qi.M:i=s=t[g++],o=l=t[g++],u(s,l);break;case Qi.L:d=t[g++],h=t[g++],c(i,o,d,h),i=d,o=h;break;case Qi.C:a.push(t[g++],t[g++],t[g++],t[g++],i=t[g++],o=t[g++]);break;case Qi.Q:d=t[g++],h=t[g++],v=t[g++],p=t[g++],a.push(i+2/3*(d-i),o+2/3*(h-o),v+2/3*(d-v),p+2/3*(h-p),v,p),i=v,o=p;break;case Qi.A:var _=t[g++],w=t[g++],C=t[g++],S=t[g++],x=t[g++],T=t[g++]+x;g+=1;var M=!t[g++];d=Math.cos(x)*C+_,h=Math.sin(x)*S+w,b?(s=d,l=h,u(s,l)):c(i,o,d,h),i=Math.cos(T)*C+_,o=Math.sin(T)*S+w;for(var A=(M?-1:1)*Math.PI/2,k=x;M?k>T:k<T;k+=A){var E=M?Math.max(k+A,T):Math.min(k+A,T);f(k,E,_,w,C,S)}break;case Qi.R:s=i=t[g++],l=o=t[g++],d=s+t[g++],h=l+t[g++],u(d,l),c(d,l,d,h),c(d,h,s,h),c(s,h,s,l),c(s,l,d,l);break;case Qi.Z:a&&c(i,o,s,l),i=s,o=l;break}}return a&&a.length>2&&r.push(a),r}function vT(e,t,n,r,a,i,o,s,l,u){if(Sf(e,n)&&Sf(t,r)&&Sf(a,o)&&Sf(i,s)){l.push(o,s);return}var c=2/u,f=c*c,d=o-e,h=s-t,v=Math.sqrt(d*d+h*h);d/=v,h/=v;var p=n-e,g=r-t,m=a-o,b=i-s,_=p*p+g*g,w=m*m+b*b;if(_<f&&w<f){l.push(o,s);return}var C=d*p+h*g,S=-d*m-h*b,x=_-C*C,T=w-S*S;if(x<f&&C>=0&&T<f&&S>=0){l.push(o,s);return}var M=[],A=[];gl(e,n,a,o,.5,M),gl(t,r,i,s,.5,A),vT(M[0],A[0],M[1],A[1],M[2],A[2],M[3],A[3],l,u),vT(M[4],A[4],M[5],A[5],M[6],A[6],M[7],A[7],l,u)}function jYe(e,t){var n=hT(e),r=[];t=t||1;for(var a=0;a<n.length;a++){var i=n[a],o=[],s=i[0],l=i[1];o.push(s,l);for(var u=2;u<i.length;){var c=i[u++],f=i[u++],d=i[u++],h=i[u++],v=i[u++],p=i[u++];vT(s,l,c,f,d,h,v,p,o,t),s=v,l=p}r.push(o)}return r}function qU(e,t,n){var r=e[t],a=e[1-t],i=Math.abs(r/a),o=Math.ceil(Math.sqrt(i*n)),s=Math.floor(n/o);s===0&&(s=1,o=n);for(var l=[],u=0;u<o;u++)l.push(s);var c=o*s,f=n-c;if(f>0)for(var u=0;u<f;u++)l[u%o]+=1;return l}function uB(e,t,n){for(var r=e.r0,a=e.r,i=e.startAngle,o=e.endAngle,s=Math.abs(o-i),l=s*a,u=a-r,c=l>Math.abs(u),f=qU([l,u],c?0:1,t),d=(c?s:u)/f.length,h=0;h<f.length;h++)for(var v=(c?u:s)/f[h],p=0;p<f[h];p++){var g={};c?(g.startAngle=i+d*h,g.endAngle=i+d*(h+1),g.r0=r+v*p,g.r=r+v*(p+1)):(g.startAngle=i+v*p,g.endAngle=i+v*(p+1),g.r0=r+d*h,g.r=r+d*(h+1)),g.clockwise=e.clockwise,g.cx=e.cx,g.cy=e.cy,n.push(g)}}function qYe(e,t,n){for(var r=e.width,a=e.height,i=r>a,o=qU([r,a],i?0:1,t),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",c=i?"y":"x",f=e[s]/o.length,d=0;d<o.length;d++)for(var h=e[l]/o[d],v=0;v<o[d];v++){var p={};p[u]=d*f,p[c]=v*h,p[s]=f,p[l]=h,p.x+=e.x,p.y+=e.y,n.push(p)}}function cB(e,t,n,r){return e*r-n*t}function XYe(e,t,n,r,a,i,o,s){var l=n-e,u=r-t,c=o-a,f=s-i,d=cB(c,f,l,u);if(Math.abs(d)<1e-6)return null;var h=e-a,v=t-i,p=cB(h,v,c,f)/d;return p<0||p>1?null:new Pt(p*l+e,p*u+t)}function ZYe(e,t,n){var r=new Pt;Pt.sub(r,n,t),r.normalize();var a=new Pt;Pt.sub(a,e,t);var i=a.dot(r);return i}function nf(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function JYe(e,t,n){for(var r=e.length,a=[],i=0;i<r;i++){var o=e[i],s=e[(i+1)%r],l=XYe(o[0],o[1],s[0],s[1],t.x,t.y,n.x,n.y);l&&a.push({projPt:ZYe(l,t,n),pt:l,idx:i})}if(a.length<2)return[{points:e},{points:e}];a.sort(function(g,m){return g.projPt-m.projPt});var u=a[0],c=a[a.length-1];if(c.idx<u.idx){var f=u;u=c,c=f}for(var d=[u.pt.x,u.pt.y],h=[c.pt.x,c.pt.y],v=[d],p=[h],i=u.idx+1;i<=c.idx;i++)nf(v,e[i].slice());nf(v,h),nf(v,d);for(var i=c.idx+1;i<=u.idx+r;i++)nf(p,e[i%r].slice());return nf(p,d),nf(p,h),[{points:v},{points:p}]}function fB(e){var t=e.points,n=[],r=[];C1(t,n,r);var a=new Rt(n[0],n[1],r[0]-n[0],r[1]-n[1]),i=a.width,o=a.height,s=a.x,l=a.y,u=new Pt,c=new Pt;return i>o?(u.x=c.x=s+i/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+i),JYe(t,u,c)}function yb(e,t,n,r){if(n===1)r.push(t);else{var a=Math.floor(n/2),i=e(t);yb(e,i[0],a,r),yb(e,i[1],n-a,r)}return r}function QYe(e,t){for(var n=[],r=0;r<t;r++)n.push(Hk(e));return n}function eje(e,t){t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel}function tje(e){for(var t=[],n=0;n<e.length;)t.push([e[n++],e[n++]]);return t}function nje(e,t){var n=[],r=e.shape,a;switch(e.type){case"rect":qYe(r,t,n),a=Zt;break;case"sector":uB(r,t,n),a=na;break;case"circle":uB({r0:0,r:r.r,startAngle:0,endAngle:Math.PI*2,cx:r.cx,cy:r.cy},t,n),a=na;break;default:var i=e.getComputedTransform(),o=i?Math.sqrt(Math.max(i[0]*i[0]+i[1]*i[1],i[2]*i[2]+i[3]*i[3])):1,s=Oe(jYe(e.getUpdatedPathProxy(),o),function(m){return tje(m)}),l=s.length;if(l===0)yb(fB,{points:s[0]},t,n);else if(l===t)for(var u=0;u<l;u++)n.push({points:s[u]});else{var c=0,f=Oe(s,function(m){var b=[],_=[];C1(m,b,_);var w=(_[1]-b[1])*(_[0]-b[0]);return c+=w,{poly:m,area:w}});f.sort(function(m,b){return b.area-m.area});for(var d=t,u=0;u<l;u++){var h=f[u];if(d<=0)break;var v=u===l-1?d:Math.ceil(h.area/c*t);v<0||(yb(fB,{points:h.poly},v,n),d-=v)}}a=ra;break}if(!a)return QYe(e,t);for(var p=[],u=0;u<n.length;u++){var g=new a;g.setShape(n[u]),eje(e,g),p.push(g)}return p}function rje(e,t){var n=e.length,r=t.length;if(n===r)return[e,t];for(var a=[],i=[],o=n<r?e:t,s=Math.min(n,r),l=Math.abs(r-n)/6,u=(s-2)/6,c=Math.ceil(l/u)+1,f=[o[0],o[1]],d=l,h=2;h<s;){var v=o[h-2],p=o[h-1],g=o[h++],m=o[h++],b=o[h++],_=o[h++],w=o[h++],C=o[h++];if(d<=0){f.push(g,m,b,_,w,C);continue}for(var S=Math.min(d,c-1)+1,x=1;x<=S;x++){var T=x/S;gl(v,g,b,w,T,a),gl(p,m,_,C,T,i),v=a[3],p=i[3],f.push(a[1],i[1],a[2],i[2],v,p),g=a[5],m=i[5],b=a[6],_=i[6]}d-=S-1}return o===e?[f,t]:[e,f]}function dB(e,t){for(var n=e.length,r=e[n-2],a=e[n-1],i=[],o=0;o<t.length;)i[o++]=r,i[o++]=a;return i}function aje(e,t){for(var n,r,a,i=[],o=[],s=0;s<Math.max(e.length,t.length);s++){var l=e[s],u=t[s],c=void 0,f=void 0;l?u?(n=rje(l,u),c=n[0],f=n[1],r=c,a=f):(f=dB(a||l,l),c=l):(c=dB(r||u,u),f=u),i.push(c),o.push(f)}return[i,o]}function hB(e){for(var t=0,n=0,r=0,a=e.length,i=0,o=a-2;i<a;o=i,i+=2){var s=e[o],l=e[o+1],u=e[i],c=e[i+1],f=s*c-u*l;t+=f,n+=(s+u)*f,r+=(l+c)*f}return t===0?[e[0]||0,e[1]||0]:[n/t/3,r/t/3,t]}function ije(e,t,n,r){for(var a=(e.length-2)/6,i=1/0,o=0,s=e.length,l=s-2,u=0;u<a;u++){for(var c=u*6,f=0,d=0;d<s;d+=2){var h=d===0?c:(c+d-2)%l+2,v=e[h]-n[0],p=e[h+1]-n[1],g=t[d]-r[0],m=t[d+1]-r[1],b=g-v,_=m-p;f+=b*b+_*_}f<i&&(i=f,o=u)}return o}function oje(e){for(var t=[],n=e.length,r=0;r<n;r+=2)t[r]=e[n-r-2],t[r+1]=e[n-r-1];return t}function sje(e,t,n,r){for(var a=[],i,o=0;o<e.length;o++){var s=e[o],l=t[o],u=hB(s),c=hB(l);i==null&&(i=u[2]<0!=c[2]<0);var f=[],d=[],h=0,v=1/0,p=[],g=s.length;i&&(s=oje(s));for(var m=ije(s,l,u,c)*6,b=g-2,_=0;_<b;_+=2){var w=(m+_)%b+2;f[_+2]=s[w]-u[0],f[_+3]=s[w+1]-u[1]}if(f[0]=s[m]-u[0],f[1]=s[m+1]-u[1],n>0)for(var C=r/n,S=-r/2;S<=r/2;S+=C){for(var x=Math.sin(S),T=Math.cos(S),M=0,_=0;_<s.length;_+=2){var A=f[_],k=f[_+1],E=l[_]-c[0],D=l[_+1]-c[1],L=E*T-D*x,B=E*x+D*T;p[_]=L,p[_+1]=B;var N=L-A,O=B-k;M+=N*N+O*O}if(M<v){v=M,h=S;for(var $=0;$<p.length;$++)d[$]=p[$]}}else for(var I=0;I<g;I+=2)d[I]=l[I]-c[0],d[I+1]=l[I+1]-c[1];a.push({from:f,to:d,fromCp:u,toCp:c,rotation:-h})}return a}function bb(e){return e.__isCombineMorphing}var XU="__mOriginal_";function _b(e,t,n){var r=XU+t,a=e[r]||e[t];e[r]||(e[r]=e[t]);var i=n.replace,o=n.after,s=n.before;e[t]=function(){var l=arguments,u;return s&&s.apply(this,l),i?u=i.apply(this,l):u=a.apply(this,l),o&&o.apply(this,l),u}}function kv(e,t){var n=XU+t;e[n]&&(e[t]=e[n],e[n]=null)}function vB(e,t){for(var n=0;n<e.length;n++)for(var r=e[n],a=0;a<r.length;){var i=r[a],o=r[a+1];r[a++]=t[0]*i+t[2]*o+t[4],r[a++]=t[1]*i+t[3]*o+t[5]}}function ZU(e,t){var n=e.getUpdatedPathProxy(),r=t.getUpdatedPathProxy(),a=aje(hT(n),hT(r)),i=a[0],o=a[1],s=e.getComputedTransform(),l=t.getComputedTransform();function u(){this.transform=null}s&&vB(i,s),l&&vB(o,l),_b(t,"updateTransform",{replace:u}),t.transform=null;var c=sje(i,o,10,Math.PI),f=[];_b(t,"buildPath",{replace:function(d){for(var h=t.__morphT,v=1-h,p=[],g=0;g<c.length;g++){var m=c[g],b=m.from,_=m.to,w=m.rotation*h,C=m.fromCp,S=m.toCp,x=Math.sin(w),T=Math.cos(w);hv(p,C,S,h);for(var M=0;M<b.length;M+=2){var A=b[M],k=b[M+1],E=_[M],D=_[M+1],L=A*v+E*h,B=k*v+D*h;f[M]=L*T-B*x+p[0],f[M+1]=L*x+B*T+p[1]}var N=f[0],O=f[1];d.moveTo(N,O);for(var M=2;M<b.length;){var E=f[M++],D=f[M++],$=f[M++],I=f[M++],z=f[M++],G=f[M++];N===E&&O===D&&$===z&&I===G?d.lineTo(z,G):d.bezierCurveTo(E,D,$,I,z,G),N=z,O=G}}}})}function OE(e,t,n){if(!e||!t)return t;var r=n.done,a=n.during;ZU(e,t),t.__morphT=0;function i(){kv(t,"buildPath"),kv(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},ft({during:function(o){t.dirtyShape(),a&&a(o)},done:function(){i(),r&&r()}},n)),t}function lje(e,t,n,r,a,i){var o=16;e=a===n?0:Math.round(32767*(e-n)/(a-n)),t=i===r?0:Math.round(32767*(t-r)/(i-r));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var c=0,f=0;(e&u)>0&&(c=1),(t&u)>0&&(f=1),s+=u*u*(3*c^f),f===0&&(c===1&&(e=u-1-e,t=u-1-t),l=e,e=t,t=l)}return s}function wb(e){var t=1/0,n=1/0,r=-1/0,a=-1/0,i=Oe(e,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),f=l.y+l.height/2+(u?u[5]:0);return t=Math.min(c,t),n=Math.min(f,n),r=Math.max(c,r),a=Math.max(f,a),[c,f]}),o=Oe(i,function(s,l){return{cp:s,z:lje(s[0],s[1],t,n,r,a),path:e[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function JU(e){return nje(e.path,e.count)}function pT(){return{fromIndividuals:[],toIndividuals:[],count:0}}function uje(e,t,n){var r=[];function a(C){for(var S=0;S<C.length;S++){var x=C[S];bb(x)?a(x.childrenRef()):x instanceof zt&&r.push(x)}}a(e);var i=r.length;if(!i)return pT();var o=n.dividePath||JU,s=o({path:t,count:i});if(s.length!==i)return console.error("Invalid morphing: unmatched splitted path"),pT();r=wb(r),s=wb(s);for(var l=n.done,u=n.during,c=n.individualDelay,f=new Uo,d=0;d<i;d++){var h=r[d],v=s[d];v.parent=t,v.copyTransform(f),c||ZU(h,v)}t.__isCombineMorphing=!0,t.childrenRef=function(){return s};function p(C){for(var S=0;S<s.length;S++)s[S].addSelfToZr(C)}_b(t,"addSelfToZr",{after:function(C){p(C)}}),_b(t,"removeSelfFromZr",{after:function(C){for(var S=0;S<s.length;S++)s[S].removeSelfFromZr(C)}});function g(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,kv(t,"addSelfToZr"),kv(t,"removeSelfFromZr")}var m=s.length;if(c)for(var b=m,_=function(){b--,b===0&&(g(),l&&l())},d=0;d<m;d++){var w=c?ft({delay:(n.delay||0)+c(d,m,r[d],s[d]),done:_},n):n;OE(r[d],s[d],w)}else t.__morphT=0,t.animateTo({__morphT:1},ft({during:function(C){for(var S=0;S<m;S++){var x=s[S];x.__morphT=t.__morphT,x.dirtyShape()}u&&u(C)},done:function(){g();for(var C=0;C<e.length;C++)kv(e[C],"updateTransform");l&&l()}},n));return t.__zr&&p(t.__zr),{fromIndividuals:r,toIndividuals:s,count:m}}function cje(e,t,n){var r=t.length,a=[],i=n.dividePath||JU;function o(h){for(var v=0;v<h.length;v++){var p=h[v];bb(p)?o(p.childrenRef()):p instanceof zt&&a.push(p)}}if(bb(e)){o(e.childrenRef());var s=a.length;if(s<r)for(var l=0,u=s;u<r;u++)a.push(Hk(a[l++%s]));a.length=r}else{a=i({path:e,count:r});for(var c=e.getComputedTransform(),u=0;u<a.length;u++)a[u].setLocalTransform(c);if(a.length!==r)return console.error("Invalid morphing: unmatched splitted path"),pT()}a=wb(a),t=wb(t);for(var f=n.individualDelay,u=0;u<r;u++){var d=f?ft({delay:(n.delay||0)+f(u,r,a[u],t[u])},n):n;OE(a[u],t[u],d)}return{fromIndividuals:a,toIndividuals:t,count:t.length}}function pB(e){return Re(e[0])}function gB(e,t){for(var n=[],r=e.length,a=0;a<r;a++)n.push({one:e[a],many:[]});for(var a=0;a<t.length;a++){var i=t[a].length,o=void 0;for(o=0;o<i;o++)n[o%r].many.push(t[a][o])}for(var s=0,a=r-1;a>=0;a--)if(!n[a].many.length){var l=n[s].many;if(l.length<=1)if(s)s=0;else return n;var i=l.length,u=Math.ceil(i/2);n[a].many=l.slice(u,i),n[s].many=l.slice(0,u),s++}return n}var fje={clone:function(e){for(var t=[],n=1-Math.pow(1-e.path.style.opacity,1/e.count),r=0;r<e.count;r++){var a=Hk(e.path);a.setStyle("opacity",n),t.push(a)}return t},split:null};function tC(e,t,n,r,a,i){if(!e.length||!t.length)return;var o=Ld("update",r,a);if(!(o&&o.duration>0))return;var s=r.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;pB(e)&&(u=e,c=t),pB(t)&&(u=t,c=e);function f(m,b,_,w,C){var S=m.many,x=m.one;if(S.length===1&&!C){var T=b?S[0]:x,M=b?x:S[0];if(bb(T))f({many:[T],one:M},!0,_,w,!0);else{var A=s?ft({delay:s(_,w)},l):l;OE(T,M,A),i(T,M,T,M,A)}}else for(var k=ft({dividePath:fje[n],individualDelay:s&&function(O,$,I,z){return s(O+_,w)}},l),E=b?uje(S,x,k):cje(x,S,k),D=E.fromIndividuals,L=E.toIndividuals,B=D.length,N=0;N<B;N++){var A=s?ft({delay:s(N,B)},l):l;i(D[N],L[N],b?S[N]:m.one,b?m.one:S[N],A)}}for(var d=u?u===e:e.length>t.length,h=u?gB(c,u):gB(d?t:e,[d?e:t]),v=0,p=0;p<h.length;p++)v+=h[p].many.length;for(var g=0,p=0;p<h.length;p++)f(h[p],d,g,v),g+=h[p].many.length}function bu(e){if(!e)return[];if(Re(e)){for(var t=[],n=0;n<e.length;n++)t.push(bu(e[n]));return t}var r=[];return e.traverse(function(a){a instanceof zt&&!a.disableMorphing&&!a.invisible&&!a.ignore&&r.push(a)}),r}var QU=1e4,dje=en();function hje(e){for(var t=e.dimensions,n=0;n<t.length;n++){var r=e.getDimensionInfo(t[n]);if(r&&r.otherDims.itemGroupId===0)return t[n]}}function mB(e){var t=[];return F(e,function(n){var r=n.data;if(!(r.count()>QU))for(var a=r.getIndices(),i=hje(r),o=0;o<a.length;o++)t.push({dataGroupId:n.dataGroupId,data:r,dim:n.dim||i,divide:n.divide,dataIndex:o})}),t}function nC(e,t,n){e.traverse(function(r){r instanceof zt&&xn(r,{style:{opacity:0}},t,{dataIndex:n,isFrom:!0})})}function rC(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function rf(e){e.stopAnimation(),e.isGroup&&e.traverse(function(t){t.stopAnimation()})}function vje(e,t,n){var r=Ld("update",n,t);r&&e.traverse(function(a){if(a instanceof ci){var i=$Le(a);i&&a.animateFrom({style:i},r)}})}function pje(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++){var a=e[r],i=t[r];if(a.data.getId(a.dataIndex)!==i.data.getId(i.dataIndex))return!1}return!0}function eY(e,t,n){var r=mB(e),a=mB(t);function i(m,b,_,w,C){(_||m)&&b.animateFrom({style:_&&_!==m?Ie(Ie({},_.style),m.style):m.style},C)}function o(m){for(var b=0;b<m.length;b++)if(m[b].dim)return m[b].dim}var s=o(r),l=o(a),u=!1;function c(m,b){return function(_){var w=_.data,C=_.dataIndex;if(b)return w.getId(C);var S=_.dataGroupId,x=m?s||l:l||s,T=x&&w.getDimensionInfo(x),M=T&&T.ordinalMeta;if(T){var A=w.get(T.name,C);return M&&M.categories[A]||A+""}var k=w.getRawDataItem(C);return k&&k.groupId?k.groupId+"":S||w.getId(C)}}var f=pje(r,a),d={};if(!f)for(var h=0;h<a.length;h++){var v=a[h],p=v.data.getItemGraphicEl(v.dataIndex);p&&(d[p.id]=!0)}function g(m,b){var _=r[b],w=a[m],C=w.data.hostModel,S=_.data.getItemGraphicEl(_.dataIndex),x=w.data.getItemGraphicEl(w.dataIndex);if(S===x){x&&vje(x,w.dataIndex,C);return}S&&d[S.id]||x&&(rf(x),S?(rf(S),rC(S),u=!0,tC(bu(S),bu(x),w.divide,C,m,i)):nC(x,C,m))}new is(r,a,c(!0,f),c(!1,f),null,"multiple").update(g).updateManyToOne(function(m,b){var _=a[m],w=_.data,C=w.hostModel,S=w.getItemGraphicEl(_.dataIndex),x=ln(Oe(b,function(T){return r[T].data.getItemGraphicEl(r[T].dataIndex)}),function(T){return T&&T!==S&&!d[T.id]});S&&(rf(S),x.length?(F(x,function(T){rf(T),rC(T)}),u=!0,tC(bu(x),bu(S),_.divide,C,m,i)):nC(S,C,_.dataIndex))}).updateOneToMany(function(m,b){var _=r[b],w=_.data.getItemGraphicEl(_.dataIndex);if(!(w&&d[w.id])){var C=ln(Oe(m,function(x){return a[x].data.getItemGraphicEl(a[x].dataIndex)}),function(x){return x&&x!==w}),S=a[m[0]].data.hostModel;C.length&&(F(C,function(x){return rf(x)}),w?(rf(w),rC(w),u=!0,tC(bu(w),bu(C),_.divide,S,m[0],i)):F(C,function(x){return nC(x,S,m[0])}))}}).updateManyToMany(function(m,b){new is(b,m,function(_){return r[_].data.getId(r[_].dataIndex)},function(_){return a[_].data.getId(a[_].dataIndex)}).update(function(_,w){g(m[_],b[w])}).execute()}).execute(),u&&F(t,function(m){var b=m.data,_=b.hostModel,w=_&&n.getViewOfSeriesModel(_),C=Ld("update",_,0);w&&_.isAnimationEnabled()&&C&&C.duration>0&&w.group.traverse(function(S){S instanceof zt&&!S.animators.length&&S.animateFrom({style:{opacity:0}},C)})})}function yB(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function bB(e){return Re(e)?e.sort().join(","):e}function Vs(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function gje(e,t){var n=ot(),r=ot(),a=ot();return F(e.oldSeries,function(i,o){var s=e.oldDataGroupIds[o],l=e.oldData[o],u=yB(i),c=bB(u);r.set(c,{dataGroupId:s,data:l}),Re(u)&&F(u,function(f){a.set(f,{key:c,dataGroupId:s,data:l})})}),F(t.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=yB(i),u=bB(l),c=r.get(u);if(c)n.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:Vs(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:Vs(s),data:s}]});else if(Re(l)){var f=[];F(l,function(v){var p=r.get(v);p.data&&f.push({dataGroupId:p.dataGroupId,divide:Vs(p.data),data:p.data})}),f.length&&n.set(u,{oldSeries:f,newSeries:[{dataGroupId:o,data:s,divide:Vs(s)}]})}else{var d=a.get(l);if(d){var h=n.get(d.key);h||(h={oldSeries:[{dataGroupId:d.dataGroupId,data:d.data,divide:Vs(d.data)}],newSeries:[]},n.set(d.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:Vs(s)})}}}}),n}function _B(e,t){for(var n=0;n<e.length;n++){var r=t.seriesIndex!=null&&t.seriesIndex===e[n].seriesIndex||t.seriesId!=null&&t.seriesId===e[n].id;if(r)return n}}function mje(e,t,n,r){var a=[],i=[];F(hn(e.from),function(o){var s=_B(t.oldSeries,o);s>=0&&a.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:Vs(t.oldData[s]),dim:o.dimension})}),F(hn(e.to),function(o){var s=_B(n.updatedSeries,o);if(s>=0){var l=n.updatedSeries[s].getData();i.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:Vs(l),dim:o.dimension})}}),a.length>0&&i.length>0&&eY(a,i,r)}function yje(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,n,r){F(hn(r.seriesTransition),function(a){F(hn(a.to),function(i){for(var o=r.updatedSeries,s=0;s<o.length;s++)(i.seriesIndex!=null&&i.seriesIndex===o[s].seriesIndex||i.seriesId!=null&&i.seriesId===o[s].id)&&(o[s][Wy]=!0)})})}),e.registerUpdateLifecycle("series:transition",function(t,n,r){var a=dje(n);if(a.oldSeries&&r.updatedSeries&&r.optionChanged){var i=r.seriesTransition;if(i)F(hn(i),function(h){mje(h,a,r,n)});else{var o=gje(a,r);F(o.keys(),function(h){var v=o.get(h);eY(v.oldSeries,v.newSeries,n)})}F(r.updatedSeries,function(h){h[Wy]&&(h[Wy]=!1)})}for(var s=t.getSeries(),l=a.oldSeries=[],u=a.oldDataGroupIds=[],c=a.oldData=[],f=0;f<s.length;f++){var d=s[f].getData();d.count()<QU&&(l.push(s[f]),u.push(s[f].get("dataGroupId")),c.push(d))}})}Bt([O4e]);Bt([A4e]);Bt([iBe,CBe,$Be,CVe,zVe,R5e,fze,Zze,TFe,RFe,KFe,q8e,S6e,O6e,tHe,lHe,MHe,$He,qHe,rGe,gGe,tWe]);Bt(xWe);Bt(a9e);Bt(q7);Bt(w9e);Bt(OK);Bt(A9e);Bt(N9e);Bt(B7e);Bt(sKe);Bt(Ag);Bt(kKe);Bt(IKe);Bt(KKe);Bt(tUe);Bt(uUe);Bt(mUe);Bt(DUe);Bt(QUe);Bt(zU);Bt(FU);Bt(MYe);Bt(UU);Bt(YU);Bt(DYe);Bt(WYe);Bt(YYe);Bt(yje);Bt(j3e);const bje=Object.freeze(Object.defineProperty({__proto__:null,Axis:pi,ChartView:vn,ComponentModel:Yt,ComponentView:An,List:Or,Model:dn,PRIORITY:t9,SeriesModel:_n,color:GIe,connect:X$e,dataTool:rNe,dependencies:P$e,disConnect:Z$e,disconnect:u9,dispose:J$e,env:Jt,extendChartView:R3e,extendComponentModel:D3e,extendComponentView:P3e,extendSeriesModel:L3e,format:b3e,getCoordinateSystemDimensions:eNe,getInstanceByDom:_A,getInstanceById:Q$e,getMap:nNe,graphic:y3e,helper:c3e,init:q$e,innerDrawElementOnCanvas:gA,matrix:pIe,number:g3e,parseGeoJSON:A2,parseGeoJson:A2,registerAction:Yi,registerCoordinateSystem:d9,registerLayout:h9,registerLoading:TA,registerLocale:Xk,registerMap:v9,registerPostInit:c9,registerPostUpdate:f9,registerPreprocessor:SA,registerProcessor:CA,registerTheme:wA,registerTransform:p9,registerUpdateLifecycle:H1,registerVisual:Ol,setCanvasCreator:tNe,setPlatformAPI:H6,throttle:z1,time:m3e,use:Bt,util:_3e,vector:QEe,version:D$e,zrUtil:UEe,zrender:ADe},Symbol.toStringTag,{value:"Module"})),jd=PV(Aq);jd.use(HT);jd.use(KV);jd.use(EEe);jd.config.globalProperties.$echarts=bje;jd.mount("#app");jd.config.errorHandler=function(e,t,n){console.error("Vue error:",e,n)};export{sc as E,je as F,Pd as L,Tq as _,ct as a,Y as b,K as c,q as d,yt as e,Ot as f,cn as g,ce as h,q$e as i,Ut as j,se as k,dt as l,Sje as m,V as n,R as o,KV as p,sbe as q,H as r,_r as s,De as t,y as u,Kt as v,re as w,_je as x,wje as y};